You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.0 MiB
2 lines
3.0 MiB
/*! For license information please see 38.6bbd5c0f.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[38,4,5,7,12,16,31,43],Array(437).concat([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.convertFieldsError=s,t.format=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,o=t[0],s=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"!=typeof o)return o;for(var a=String(o).replace(r,(function(e){if("%%"===e)return"%";if(s<=i)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[i];i<s;l=t[++i])a+=" "+l;return a},t.isEmptyValue=function(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e)},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.asyncMap=function(e,t,n,i){if(t.first)return a(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,i);var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var r=Object.keys(e),l=r.length,u=0,c=[],d=new Promise((function(t,d){function h(e){if(c.push.apply(c,e),++u===l)return i(c),c.length?d({errors:c,fields:s(c)}):t()}r.forEach((function(t){var i,r,s,l,u,c,d=e[t];function p(e){l.push.apply(l,e),++u===c&&s(l)}-1!==o.indexOf(t)?a(d,n,h):(r=n,s=h,l=[],u=0,c=(i=d).length,i.forEach((function(e){r(e,p)})))}))}));return d.catch((function(e){return e})),d},t.complementError=function(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}},t.deepMerge=function(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(void 0===r?"undefined":o(r))&&"object"===o(e[n])?e[n]=i({},e[n],r):e[n]=r}return e};var r=/%[sdj%]/g;function s(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function a(e,t,n){var i=0,o=e.length;!function r(s){if(s&&s.length)n(s);else{var a=i;i+=1,a<o?t(e[a],r):n([])}}([])}t.warning=function(){}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f}));function i(e){0}function o(e){return"function"==typeof e.dispose&&0===e.dispose.length}function r(e){return Array.isArray(e)?(e.forEach((function(e){e&&(i(),e.dispose())})),[]):e?(i(),e.dispose(),e):void 0}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(i),{dispose:function(){return r(e)}}}function a(e){var t={dispose:function(){i(),e()}};return t}var l=(u.prototype.dispose=function(){this._isDisposed||(i(),this._isDisposed=!0,this.clear())},u.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},u.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return i(),this._isDisposed||this._toDispose.add(e),e},u);function u(){this._toDispose=new Set,this._isDisposed=!1}var c=(d.prototype.dispose=function(){i(),this._store.dispose()},d.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},d.None=Object.freeze({dispose:function(){}}),d);function d(){this._store=new l}var h=(Object.defineProperty(p.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&i(),this._value=e)},enumerable:!0,configurable:!0}),p.prototype.clear=function(){this.value=void 0},p.prototype.dispose=function(){this._isDisposed=!0,i(),this._value&&this._value.dispose(),this._value=void 0},p);function p(){this._isDisposed=!1}var f=(g.prototype.dispose=function(){},g);function g(e){this.object=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(450),o=(r.prototype.isEmpty=function(){return r.isEmpty(this)},r.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},r.prototype.containsPosition=function(e){return r.containsPosition(this,e)},r.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)},r.prototype.containsRange=function(e){return r.containsRange(this,e)},r.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)},r.prototype.strictContainsRange=function(e){return r.strictContainsRange(this,e)},r.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)},r.prototype.plusRange=function(e){return r.plusRange(this,e)},r.plusRange=function(e,t){var n,i,o,s;return i=t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,e.startColumn),s=t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,e.endColumn),new r(n,i,o,s)},r.prototype.intersectRanges=function(e){return r.intersectRanges(this,e)},r.intersectRanges=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),u<o?(o=u,s=c):o===u&&(s=Math.min(s,c)),o<n||n===o&&s<i?null:new r(n,i,o,s)},r.prototype.equalsRange=function(e){return r.equalsRange(this,e)},r.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},r.prototype.getEndPosition=function(){return new i.a(this.endLineNumber,this.endColumn)},r.prototype.getStartPosition=function(){return new i.a(this.startLineNumber,this.startColumn)},r.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},r.prototype.setEndPosition=function(e,t){return new r(this.startLineNumber,this.startColumn,e,t)},r.prototype.setStartPosition=function(e,t){return new r(e,t,this.endLineNumber,this.endColumn)},r.prototype.collapseToStart=function(){return r.collapseToStart(this)},r.collapseToStart=function(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},r.fromPositions=function(e,t){return void 0===t&&(t=e),new r(e.lineNumber,e.column,t.lineNumber,t.column)},r.lift=function(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},r.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},r.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},r.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},r.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n!=i)return n-i;var o=0|e.startColumn,r=0|t.startColumn;if(o!=r)return o-r;var s=0|e.endLineNumber,a=0|t.endLineNumber;return s!=a?s-a:(0|e.endColumn)-(0|t.endColumn)}return(e?1:0)-(t?1:0)},r.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},r.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},r);function r(e,t,n,i){n<e||e===n&&i<t?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=u(n(516)),o=u(n(607)),r=u(n(608)),s=u(n(609)),a=u(n(610)),l=u(n(611));function u(e){return e&&e.__esModule?e:{default:e}}t.default={required:i.default,whitespace:o.default,type:r.default,range:s.default,enum:a.default,pattern:l.default}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"f",(function(){return _}));var i,o,r=n(446),s=n(880),a=n(439),l=n(786),u=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function c(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}!function(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var o,r=!1;return o=e((function(e){if(!r)return o?o.dispose():r=!0,t.call(n,e)}),null,i),r&&o.dispose(),o}}function n(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){return n.call(i,t(e))}),null,o)}))}function i(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){t(e),n.call(i,e)}),null,o)}))}function o(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){return t(e)&&n.call(i,e)}),null,o)}))}function r(e,t,i){var o=i;return n(e,(function(e){return o=t(o,e)}))}function s(e){var t,n=new d({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e,t,n,i,o){var r;void 0===n&&(n=100),void 0===i&&(i=!1);var s=void 0,a=void 0,l=0,u=new d({leakWarningThreshold:o,onFirstListenerAdd:function(){r=e((function(e){l++,s=t(s,e),i&&!a&&(u.fire(s),s=void 0),clearTimeout(a),a=setTimeout((function(){var e=s;a=s=void 0,(!i||1<l)&&u.fire(e),l=0}),n)}))},onLastListenerRemove:function(){r.dispose()}});return u.event}function u(e){var t,n=!0;return o(e,(function(e){var i=n||e!==t;return n=!1,t=e,i}))}e.None=function(){return a.a.None},e.once=t,e.map=n,e.forEach=i,e.filter=o,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),a.e.apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,i)})))}},e.reduce=r,e.snapshot=s,e.debounce=l,e.stopwatch=function(e){var i=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-i}))},e.latch=u,e.buffer=function(e,t,n){function i(){o&&o.forEach((function(e){return s.fire(e)})),o=null}void 0===t&&(t=!1),void 0===n&&(n=[]);var o=n.slice(),r=e((function(e){o?o.push(e):s.fire(e)})),s=new d({onFirstListenerAdd:function(){r=r||e((function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){o&&(t?setTimeout(i):i())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event};var c=(h.prototype.map=function(e){return new h(n(this.event,e))},h.prototype.forEach=function(e){return new h(i(this.event,e))},h.prototype.filter=function(e){return new h(o(this.event,e))},h.prototype.reduce=function(e,t){return new h(r(this.event,e,t))},h.prototype.latch=function(){return new h(u(this.event))},h.prototype.debounce=function(e,t,n,i){return void 0===t&&(t=100),void 0===n&&(n=!1),new h(l(this.event,e,t,n,i))},h.prototype.on=function(e,t,n){return this.event(e,t,n)},h.prototype.once=function(e,n,i){return t(this.event)(e,n,i)},h);function h(e){this.event=e}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var o=new d({onFirstListenerAdd:function(){return e.on(t,i)},onLastListenerRemove:function(){return e.removeListener(t,i)}});return o.event},e.fromDOMEventEmitter=function(e,t,n){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var o=new d({onFirstListenerAdd:function(){return e.addEventListener(t,i)},onLastListenerRemove:function(){return e.removeEventListener(t,i)}});return o.event},e.fromPromise=function(e){var t=new d,n=!1;return e.then(void 0,(function(){return null})).then((function(){n?t.fire(void 0):setTimeout((function(){return t.fire(void 0)}),0)})),n=!0,t.event},e.toPromise=function(e){return new Promise((function(n){return t(e)(n)}))}}(o=o||{}),c.prototype.dispose=function(){this._stacks&&this._stacks.clear()},c.prototype.check=function(e){var t=this,n=-1;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),o=this._stacks.get(i)||0;if(this._stacks.set(i,o+1),--this._warnCountdown,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var s=0;this._stacks.forEach((function(e,t){(!r||s<e)&&(r=t,s=e)}))}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}}};var d=(Object.defineProperty(h.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t,n,i){e._listeners||(e._listeners=new l.a);var o=e._listeners.isEmpty();o&&e._options&&e._options.onFirstListenerAdd&&e._options.onFirstListenerAdd(e);var r,s,u=e._listeners.push(n?[t,n]:t);return o&&e._options&&e._options.onFirstListenerDidAdd&&e._options.onFirstListenerDidAdd(e),e._options&&e._options.onListenerDidAdd&&e._options.onListenerDidAdd(e,t,n),e._leakageMon&&(r=e._leakageMon.check(e._listeners.size)),s={dispose:function(){r&&r(),s.dispose=h._noop,e._disposed||(u(),e._options&&e._options.onLastListenerRemove&&(e._listeners&&!e._listeners.isEmpty()||e._options.onLastListenerRemove(e)))}},i instanceof a.b?i.add(s):Array.isArray(i)&&i.push(s),s}),this._event},enumerable:!0,configurable:!0}),h.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new l.a);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;0<this._deliveryQueue.size;){var i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){Object(r.e)(n)}}}},h.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},h._noop=function(){},h);function h(e){this._disposed=!1,this._options=e,this._leakageMon=void 0}var p,f=(u(g,p=d),g.prototype.pause=function(){this._isPaused++},g.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var e=this._eventQueue.toArray();this._eventQueue.clear(),p.prototype.fire.call(this,this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)p.prototype.fire.call(this,this._eventQueue.shift())},g.prototype.fire=function(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):p.prototype.fire.call(this,e))},g);function g(e){var t=p.call(this,e)||this;return t._isPaused=0,t._eventQueue=new l.a,t._mergeFn=e&&e.merge,t}var m=(Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(e){var t=this,n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),Object(a.h)(Object(s.a)((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},v.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},v.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},v.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},v.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v);function v(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}var y=(b.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e((function(e){var o=t.buffers[t.buffers.length-1];o?o.push((function(){return n.call(i,e)})):n.call(i,e)}),void 0,o)}},b.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},b);function b(){this.buffers=[]}var _=(Object.defineProperty(w.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),w.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},w);function w(){var e=this;this.listening=!1,this.inputEvent=o.None,this.inputEventListener=a.a.None,this.emitter=new d({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}},function(e,t,n){"use strict";n.d(t,"t",(function(){return b})),n.d(t,"R",(function(){return _})),n.d(t,"M",(function(){return w})),n.d(t,"I",(function(){return E})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return L})),n.d(t,"P",(function(){return D})),n.d(t,"Q",(function(){return M})),n.d(t,"Y",(function(){return T})),n.d(t,"j",(function(){return A})),n.d(t,"o",(function(){return j})),n.d(t,"n",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"i",(function(){return W})),n.d(t,"k",(function(){return V})),n.d(t,"l",(function(){return z})),n.d(t,"U",(function(){return H})),n.d(t,"W",(function(){return q})),n.d(t,"m",(function(){return ie})),n.d(t,"z",(function(){return oe})),n.d(t,"y",(function(){return re})),n.d(t,"b",(function(){return le})),n.d(t,"F",(function(){return ue})),n.d(t,"C",(function(){return ce})),n.d(t,"e",(function(){return de})),n.d(t,"H",(function(){return pe})),n.d(t,"B",(function(){return fe})),n.d(t,"A",(function(){return ge})),n.d(t,"G",(function(){return me})),n.d(t,"K",(function(){return ve})),n.d(t,"x",(function(){return ye})),n.d(t,"N",(function(){return _e})),n.d(t,"E",(function(){return we})),n.d(t,"w",(function(){return Ce})),n.d(t,"v",(function(){return xe})),n.d(t,"O",(function(){return ke})),n.d(t,"L",(function(){return Ee})),n.d(t,"d",(function(){return Ne})),n.d(t,"c",(function(){return Le})),n.d(t,"V",(function(){return De})),n.d(t,"T",(function(){return Me})),n.d(t,"Z",(function(){return Ae})),n.d(t,"q",(function(){return Re})),n.d(t,"a",(function(){return Ve})),n.d(t,"X",(function(){return ze})),n.d(t,"J",(function(){return He})),n.d(t,"S",(function(){return qe})),n.d(t,"D",(function(){return Ue})),n.d(t,"u",(function(){return Ke})),n.d(t,"ab",(function(){return Ge})),n.d(t,"p",(function(){return Ye})),n.d(t,"s",(function(){return Ze})),n.d(t,"r",(function(){return Xe}));var i,o=n(478),r=n(686),s=n(701),a=n(595),l=n(453),u=n(446),c=n(442),d=n(439),h=n(452),p=n(459),f=n(596),g=n(820),m=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return(v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},y=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function b(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function _(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e){for(;e;){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var C=(S.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,o=t.length;if(0!==o)if(i<o)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=i);for(var r,s=-1;0<=(s=n.indexOf(t,s+1));){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(0<s&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},S.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},S.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},S.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},S.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},S.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},S.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},new S);function S(){this._lastStart=-1,this._lastEnd=-1}var O=(x.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},x.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},x.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},x.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},x.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},x.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},new x);function x(){}var k=o.i?C:O,E=k.hasClass.bind(k),N=k.addClass.bind(k),L=k.addClasses.bind(k),D=k.removeClass.bind(k),M=k.removeClasses.bind(k),T=k.toggleClass.bind(k),I=(P.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},P);function P(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}function A(e,t,n,i){return new I(e,t,n,i)}function R(e){return function(t){return e(new a.b(t))}}var j=function(e,t,n,i){var o,r=n;return"click"===t||"mousedown"===t?r=R(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=n,r=function(e){return o(new s.a(e))}),A(e,t,r,i)},F=function(e,t,n){return B(e,R(t),n)};function B(e,t,n){return A(e,h.c&&g.a.pointerEvents?Ne.POINTER_DOWN:Ne.MOUSE_DOWN,t,n)}function W(e,t,n){return A(e,h.c&&g.a.pointerEvents?Ne.POINTER_UP:Ne.MOUSE_UP,t,n)}function V(e,t){return A(e,"mouseout",(function(n){for(var i=n.relatedTarget;i&&i!==e;)i=i.parentNode;i!==e&&t(n)}))}function z(e,t){return A(e,"pointerout",(function(n){for(var i=n.relatedTarget;i&&i!==e;)i=i.parentNode;i!==e&&t(n)}))}var H,q,U,K,G,Y,Z=null,X=($.prototype.dispose=function(){this._canceled=!0},$.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(u.e)(e)}},$.sort=function(e,t){return t.priority-e.priority},$);function $(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}function J(){for(K=U,Y=!(G=!(U=[]));0<K.length;)K.sort(X.sort),K.shift().execute();Y=!1}function Q(e,t){return t}K=null,Y=G=!(U=[]),q=function(e,t){void 0===t&&(t=0);var n=new X(e,t);return U.push(n),G||(G=!0,function(e){Z||(Z=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}),Z.call(self,e)}(J)),n},H=function(e,t){if(Y){var n=new X(e,t);return K.push(n),n}return q(e,t)};var ee,te=(m(ne,ee=d.a),ne);function ne(e,t,n,i,o){function r(){u=(new Date).getTime(),n(a),a=null}void 0===i&&(i=Q),void 0===o&&(o=16);var s=ee.call(this)||this,a=null,u=0,c=s._register(new l.e);return s._register(A(e,t,(function(e){a=i(a,e);var t=(new Date).getTime()-u;o<=t?(c.cancel(),r()):c.setIfNotSet(r,o-t)}))),s}function ie(e,t,n,i,o){return new te(e,t,n,i,o)}function oe(e){return document.defaultView.getComputedStyle(e,null)}function re(e){if(e!==document.body)return new le(e.clientWidth,e.clientHeight);if(h.c&&window.visualViewport){var t=window.visualViewport.width,n=window.visualViewport.height-(o.l?24:0);return new le(t,n)}if(window.innerWidth&&window.innerHeight)return new le(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new le(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new le(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var se=(ae.convertToPixels=function(e,t){return parseFloat(t)||0},ae.getDimension=function(e,t,n){var i=oe(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),ae.convertToPixels(e,o)},ae.getBorderLeftWidth=function(e){return ae.getDimension(e,"border-left-width","borderLeftWidth")},ae.getBorderRightWidth=function(e){return ae.getDimension(e,"border-right-width","borderRightWidth")},ae.getBorderTopWidth=function(e){return ae.getDimension(e,"border-top-width","borderTopWidth")},ae.getBorderBottomWidth=function(e){return ae.getDimension(e,"border-bottom-width","borderBottomWidth")},ae.getPaddingLeft=function(e){return ae.getDimension(e,"padding-left","paddingLeft")},ae.getPaddingRight=function(e){return ae.getDimension(e,"padding-right","paddingRight")},ae.getPaddingTop=function(e){return ae.getDimension(e,"padding-top","paddingTop")},ae.getPaddingBottom=function(e){return ae.getDimension(e,"padding-bottom","paddingBottom")},ae.getMarginLeft=function(e){return ae.getDimension(e,"margin-left","marginLeft")},ae.getMarginTop=function(e){return ae.getDimension(e,"margin-top","marginTop")},ae.getMarginRight=function(e){return ae.getDimension(e,"margin-right","marginRight")},ae.getMarginBottom=function(e){return ae.getDimension(e,"margin-bottom","marginBottom")},ae);function ae(){}var le=function(e,t){this.width=e,this.height=t};function ue(e){for(var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var o=be(e)?null:oe(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=se.getBorderLeftWidth(e),n+=se.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function ce(e){var t=e.getBoundingClientRect();return{left:t.left+de.scrollX,top:t.top+de.scrollY,width:t.width,height:t.height}}var de=(Object.defineProperty(he.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),new he);function he(){}function pe(e){var t=se.getMarginLeft(e)+se.getMarginRight(e);return e.offsetWidth+t}function fe(e){var t=se.getBorderLeftWidth(e)+se.getBorderRightWidth(e),n=se.getPaddingLeft(e)+se.getPaddingRight(e);return e.offsetWidth-t-n}function ge(e){var t=se.getBorderTopWidth(e)+se.getBorderBottomWidth(e),n=se.getPaddingTop(e)+se.getPaddingBottom(e);return e.offsetHeight-t-n}function me(e){var t=se.getMarginTop(e)+se.getMarginBottom(e);return e.offsetHeight+t}function ve(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ye(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(E(e,t))return e;if(n)if("string"==typeof n){if(E(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function be(e){return e&&e.host&&e.mode}function _e(e){return!!we(e)}function we(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return be(e)?e:null}function Ce(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var Se=null;function Oe(){return Se=Se||Ce()}function xe(e,t,n){void 0===n&&(n=Oe()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function ke(e,t){if(void 0===t&&(t=Oe()),t){for(var n,i=(n=t)&&n.sheet&&n.sheet.rules?n.sheet.rules:n&&n.sheet&&n.sheet.cssRules?n.sheet.cssRules:[],o=[],r=0;r<i.length;r++)-1!==i[r].selectorText.indexOf(e)&&o.push(r);for(r=o.length-1;0<=r;r--)t.sheet.deleteRule(o[r])}}function Ee(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var Ne={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:o.m?"webkitAnimationStart":"animationstart",ANIMATION_END:o.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:o.m?"webkitAnimationIteration":"animationiteration"},Le={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function De(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Me(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var Te,Ie=(m(Pe,Te=d.a),Pe);function Pe(e){var t=Te.call(this)||this;function n(){s=!1,o||(o=!0,t._onDidFocus.fire())}function i(){o&&(s=!0,window.setTimeout((function(){s&&(o=s=!1,t._onDidBlur.fire())}),0))}t._onDidFocus=t._register(new c.a),t.onDidFocus=t._onDidFocus.event,t._onDidBlur=t._register(new c.a),t.onDidBlur=t._onDidBlur.event;var o=ve(document.activeElement,e),s=!1;return t._refreshStateHandler=function(){ve(document.activeElement,e)!==o&&(o?i:n)()},t._register(Object(r.a)(e,Ne.FOCUS,!0)(n)),t._register(Object(r.a)(e,Ne.BLUR,!0)(i)),t}function Ae(e){return new Ie(e)}function Re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return e.appendChild(t)})),t[t.length-1]}var je,Fe,Be=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function We(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r=Be.exec(t);if(!r)throw new Error("Bad use of emmet");n=v({},n||{});var s,a=r[1]||"div";return s=e!==je.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),Object(p.d)(i).forEach((function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),s}function Ve(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return We.apply(void 0,y([je.HTML,e,t],n))}function ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="",o.removeAttribute("aria-hidden")}}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="none",o.setAttribute("aria-hidden","true")}}function qe(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e instanceof HTMLElement&&e.hasAttribute("tabIndex"))return e;e=e.parentNode}return null}(e.parentElement);t&&t.focus()}e.removeAttribute("tabindex")}}function Ue(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Ke(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Ge(e){if(h.f||o.g)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function Ye(e){var t=q((function n(){e(),t=q(n)}));return Object(d.h)((function(){return t.dispose()}))}function Ze(e){return e&&f.b.vscodeRemote===e.scheme?f.a.rewrite(e):e}function Xe(e){return e?"url('"+Ze(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}(Fe=je=je||{}).HTML="http://www.w3.org/1999/xhtml",Fe.SVG="http://www.w3.org/2000/svg",Ve.SVG=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return We.apply(void 0,y([je.SVG,e,t],n))},f.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r<t;r++)o.push(n);return o.reverse().join("")}n.d(t,"x",(function(){return i})),n.d(t,"F",(function(){return o})),n.d(t,"r",(function(){return s})),n.d(t,"o",(function(){return a})),n.d(t,"p",(function(){return l})),n.d(t,"Q",(function(){return u})),n.d(t,"K",(function(){return c})),n.d(t,"k",(function(){return d})),n.d(t,"N",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"I",(function(){return g})),n.d(t,"H",(function(){return m})),n.d(t,"q",(function(){return v})),n.d(t,"t",(function(){return y})),n.d(t,"D",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"B",(function(){return C})),n.d(t,"C",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"O",(function(){return E})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return L})),n.d(t,"z",(function(){return D})),n.d(t,"A",(function(){return M})),n.d(t,"u",(function(){return T})),n.d(t,"E",(function(){return P})),n.d(t,"G",(function(){return A})),n.d(t,"i",(function(){return j})),n.d(t,"g",(function(){return B})),n.d(t,"v",(function(){return V})),n.d(t,"h",(function(){return z})),n.d(t,"y",(function(){return H})),n.d(t,"w",(function(){return q})),n.d(t,"a",(function(){return U})),n.d(t,"P",(function(){return K})),n.d(t,"L",(function(){return G})),n.d(t,"J",(function(){return Y})),n.d(t,"j",(function(){return Z})),n.d(t,"M",(function(){return X})),n.d(t,"s",(function(){return $})),n.d(t,"b",(function(){return J}));var r=/{(\d+)}/g;function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(r,(function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function l(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e,t){return void 0===t&&(t=" "),c(function(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}(e,t),t)}function c(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var o=i,r=-1;-1!==(r=e.lastIndexOf(t,o-1))&&r+n===o;){if(0===r)return"";o=r}return e.substring(0,o)}function d(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function h(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function p(e,t){var n=e.length-t.length;return 0<n?e.indexOf(t,n)===n:0==n&&e===t}function f(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=l(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function g(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function v(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function y(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++){var o=e.charCodeAt(i);if(32!==o&&9!==o)return e.substring(t,i)}return e.substring(t,n)}function b(e,t){void 0===t&&(t=e.length-1);for(var n=t;0<=n;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function _(e,t){return e<t?-1:t<e?1:0}function w(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r){S(o)&&(o+=32),S(r)&&(r+=32);var s=o-r;if(0!=s)return C(o)&&C(r)?s:_(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function C(e){return 97<=e&&e<=122}function S(e){return 65<=e&&e<=90}function O(e){return C(e)||S(e)}function x(e,t){return e.length===t.length&&k(e,t)}function k(e,t,n){void 0===n&&(n=e.length);for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(O(o)&&O(r)){var s=Math.abs(o-r);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(o).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function E(e,t){var n=t.length;return!(t.length>e.length)&&k(e,t,n)}function N(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function L(e,t){var n,i=Math.min(e.length,t.length),o=e.length-1,r=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(o-n)!==t.charCodeAt(r-n))return n;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function T(e,t,n){var i=e.charCodeAt(n);if(D(i)&&n+1<t){var o=e.charCodeAt(n+1);if(M(o))return o-56320+(i-55296<<10)+65536}return i}function I(e,t){var n=e.charCodeAt(t-1);if(M(n)&&1<t){var i=e.charCodeAt(t-2);if(D(i))return n-56320+(i-55296<<10)+65536}return n}function P(e,t){var n=Q.getInstance(),i=t,o=e.length,r=T(e,o,t);t+=65536<=r?2:1;for(var s=n.getGraphemeBreakType(r);t<o;){var a=T(e,o,t),l=n.getGraphemeBreakType(a);if(J(s,l))break;t+=65536<=a?2:1,s=l}return t-i}function A(e,t){var n=Q.getInstance(),i=t,o=I(e,t);t-=65536<=o?2:1;for(var r=n.getGraphemeBreakType(o);0<t;){var s=I(e,t),a=n.getGraphemeBreakType(s);if(J(a,r))break;t-=65536<=s?2:1,r=a}return i-t}var R=/(?:[\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 j(e){return R.test(e)}var F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function B(e){return F.test(e)}var W=/^[\t\n\r\x20-\x7E]*$/;function V(e){return W.test(e)}function z(e){for(var t=0,n=e.length;t<n;t++)if(H(e.charCodeAt(t)))return!0;return!1}function H(e){return 11904<=(e=+e)&&e<=55215||63744<=e&&e<=64255||65281<=e&&e<=65374}function q(e){return 127462<=e&&e<=127487||9728<=e&&e<=10175||127744<=e&&e<=128591||128640<=e&&e<=128764||128992<=e&&e<=129003||129280<=e&&e<=129535||129648<=e&&e<=129651||129656<=e&&e<=129666||129680<=e&&e<=129685}var U=String.fromCharCode(65279);function K(e){return!!(e&&0<e.length&&65279===e.charCodeAt(0))}function G(e){return btoa(encodeURIComponent(e))}function Y(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function Z(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function X(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function $(e){return Q.getInstance().getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}var Q=(ee.getInstance=function(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE},ee.prototype.getGraphemeBreakType=function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var t=this._data,n=t.length/3,i=1;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0},ee._INSTANCE=null,ee);function ee(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},function(e,t,n){"use strict";function i(e,t){for(var n,i,o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return n=t,0===(i=o).length?n:n.replace(/\{(\d+)\}/g,(function(e,t){var n=t[0];return void 0!==i[n]?i[n]:e}))}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function i(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var o=new(i.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},i.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},i.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},i);function r(e){u(e)||o.onUnexpectedError(e)}function s(e){u(e)||o.onUnexpectedExternalError(e)}function a(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var l="Canceled";function u(e){return e instanceof Error&&e.name===l&&e.message===l}function c(){var e=new Error(l);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i="undefined"==typeof monaco?self.monaco:monaco,o={},r={},s=(a.getOrCreate=function(e){return r[e]||(r[e]=new a(e)),r[e]},a.prototype.whenLoaded=function(){return this._lazyLoadPromise},a.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},a);function a(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}function l(e){var t=e.id;o[t]=e,i.languages.register(e);var n=s.getOrCreate(t);i.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),i.languages.onLanguage(t,(function(){n.load().then((function(e){i.languages.setLanguageConfiguration(t,e.conf)}))}))}},function(e,t,n){"use strict";var i,o;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),(o=i=i||{}).serviceIds=new Map,o.DI_TARGET="$di$target",o.DI_DEPENDENCIES="$di$dependencies",o.getServiceDependencies=function(e){return e[o.DI_DEPENDENCIES]||[]};var r=a("instantiationService");function s(e,t,n,o){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:o}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:o}],t[i.DI_TARGET]=t)}function a(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);function t(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,i,!1)}return t.toString=function(){return e},i.serviceIds.set(e,t),t}function l(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,i,!0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return k})),n.d(t,"j",(function(){return N})),n.d(t,"e",(function(){return L})),n.d(t,"k",(function(){return D})),n.d(t,"l",(function(){return M})),n.d(t,"g",(function(){return T})),n.d(t,"f",(function(){return I})),n.d(t,"i",(function(){return P})),n.d(t,"h",(function(){return A})),n.d(t,"d",(function(){return O}));var i,o=n(446),r=n(479),s=n(504),a=n(450),l=n(598),u=n(787),c=n(755),d=n(489),h=n(456),p=n(788),f=n(571),g=n(821),m=n(465),v=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=(b.prototype.register=function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?h.a.and(t,this.precondition):this.precondition),p.a.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else d.a.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},b.prototype._registerMenuItem=function(e){c.c.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title},when:e.when,order:e.order})},b);function b(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}var _,w=(v(C,_=y),C.bindToContribution=function(e){return v(t,n=C),t.prototype.runEditorCommand=function(t,n,i){e(n)&&this._callback(e(n),i)},t;function t(e){var t=n.call(this,e)||this;return t._callback=e.handler,t}var n},C.prototype.runCommand=function(e,t){var n=this,i=e.get(s.a),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext((function(e){if(e.get(h.c).contextMatchesRules(Object(m.n)(n.precondition)))return n.runEditorCommand(e,o,t)}))},C);function C(){return null!==_&&_.apply(this,arguments)||this}var S,O,x,k=(v(E,S=w),E.convertOptions=function(e){var t;function n(t){return t.menuId||(t.menuId=7),t.title||(t.title=e.label),t.when=h.a.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push.apply(t,e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e},E.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},E.prototype.reportTelemetry=function(e,t){e.get(g.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},E);function E(e){var t=S.call(this,E.convertOptions(e))||this;return t.label=e.label,t.alias=e.alias,t}function N(e,t){d.a.registerCommand(e,(function(e,n){return t(e,n||{})}))}function L(e,t){N(e,(function(e,n){var i=n.resource,s=n.position;if(!(i instanceof r.a))throw Object(o.b)("resource");if(!a.a.isIPosition(s))throw Object(o.b)("position");var c=e.get(l.a).getModel(i);if(c){var d=a.a.lift(s);return t(c,d,n)}return e.get(u.a).createModelReference(i).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,a.a.lift(s),n))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function D(e,t){d.a.registerCommand(e,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],s=n[1];Object(m.a)(r.a.isUri(o)),Object(m.a)(a.a.isIPosition(s));var c=e.get(l.a).getModel(o);if(c){var d=a.a.lift(s);return t(c,d,n.slice(2))}return e.get(u.a).createModelReference(o).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,a.a.lift(s),n.slice(2)))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function M(e,t){d.a.registerCommand(e,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0];Object(m.a)(r.a.isUri(o));var s=e.get(l.a).getModel(o);return s?t(s,n.slice(1)):e.get(u.a).createModelReference(o).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,n.slice(1)))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function T(e){return R.INSTANCE.registerEditorCommand(e),e}function I(e){R.INSTANCE.registerEditorAction(new e)}function P(e){R.INSTANCE.registerEditorAction(e)}function A(e,t){R.INSTANCE.registerEditorContribution(e,t)}(x=O=O||{}).getEditorCommand=function(e){return R.INSTANCE.getEditorCommand(e)},x.getEditorActions=function(){return R.INSTANCE.getEditorActions()},x.getEditorContributions=function(){return R.INSTANCE.getEditorContributions()},x.getSomeEditorContributions=function(e){return R.INSTANCE.getEditorContributions().filter((function(t){return 0<=e.indexOf(t.id)}))},x.getDiffEditorContributions=function(){return R.INSTANCE.getDiffEditorContributions()};var R=(j.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},j.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},j.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},j.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},j.prototype.getEditorActions=function(){return this.editorActions.slice(0)},j.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},j.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},j.INSTANCE=new j,j);function j(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}f.a.add("editor.contributions",R.INSTANCE)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.with=function(e,t){return void 0===e&&(e=this.lineNumber),void 0===t&&(t=this.column),e===this.lineNumber&&t===this.column?this:new o(e,t)},o.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},o.prototype.equals=function(e){return o.equals(this,e)},o.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},o.prototype.isBefore=function(e){return o.isBefore(this,e)},o.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},o.prototype.isBeforeOrEqual=function(e){return o.isBeforeOrEqual(this,e)},o.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},o.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;return n!=i?n-i:(0|e.column)-(0|t.column)},o.prototype.clone=function(){return new o(this.lineNumber,this.column)},o.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},o.lift=function(e){return new o(e.lineNumber,e.column)},o.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},o);function o(e,t){this.lineNumber=e,this.column=t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f}));var i=n(448),o=n(439),r=n(571),s=n(442),a=Object(i.c)("themeService");function l(e){return{id:e}}var u="hc";function c(e){switch(e){case"dark":return"vs-dark";case u:return"hc-black";default:return"vs"}}var d={ThemingContribution:"base.contributions.theming"};function h(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.a}var p=new(h.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(o.h)((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},h.prototype.getThemingParticipants=function(){return this.themingParticipants},h);function f(e){return p.onThemeChange(e)}r.a.add(d.ThemingContribution,p)},function(e,t,n){"use strict";(function(e,i){n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"a",(function(){return C}));var o=!1,r=!1,s=!1,a=!1,l=!1,u=!1,c=void 0,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){o="win32"===e.platform,r="darwin"===e.platform,s="linux"===e.platform;var h=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).VSCODE_NLS_CONFIG;if(h)try{var p=JSON.parse(h);p.availableLanguages["*"],p.locale,p._translationsConfigFile}catch(e){}a=!0}}else o=0<=(c=navigator.userAgent).indexOf("Windows"),r=0<=c.indexOf("Macintosh"),u=0<=c.indexOf("Macintosh")&&!!navigator.maxTouchPoints&&0<navigator.maxTouchPoints,s=0<=c.indexOf("Linux"),l=!0;var f=o,g=r,m=s,v=a,y=l,b=u,_="object"==typeof self?self:"object"==typeof i?i:{},w=function(){if(_.setImmediate)return _.setImmediate.bind(_);if("function"==typeof _.postMessage&&!_.importScripts){var t=[];_.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n<i;n++){var o=t[n];if(o.id===e.data.vscodeSetImmediateId)return t.splice(n,1),void o.callback()}}));var n=0;return function(e){var i=++n;t.push({id:i,callback:e}),_.postMessage({vscodeSetImmediateId:i},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);var i=Promise.resolve();return function(e){return i.then(e)}}(),C=r?2:o?1:3}).call(this,n(114),n(64))},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return w}));var i=n(484),o=n(446),r=n(439);function s(e){return e&&"function"==typeof e.then}function a(e){var t=new i.b,n=e(t.token),r=new Promise((function(e,i){t.token.onCancellationRequested((function(){i(o.a())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),i(e)}))}));return s.prototype.cancel=function(){t.cancel()},s.prototype.then=function(e,t){return r.then(e,t)},s.prototype.catch=function(e){return this.then(void 0,e)},s.prototype.finally=function(e){return r.finally(e)},new s;function s(){}}function l(e,t,n){return Promise.race([e,new Promise((function(e){return t.onCancellationRequested((function(){return e(n)}))}))])}var u=(c.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){if(n.completionPromise=null,n.doResolve=null,n.task){var e=n.task;return n.task=null,e()}}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve&&n.doResolve(null)}),t),this.completionPromise},c.prototype.isTriggered=function(){return null!==this.timeout},c.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(o.a()),this.completionPromise=null)},c.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},c.prototype.dispose=function(){this.cancelTimeout()},c);function c(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}function d(e,t){return t?new Promise((function(n,i){var r=setTimeout(n,e);t.onCancellationRequested((function(){clearTimeout(r),i(o.a())}))})):a((function(t){return d(e,t)}))}function h(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(r.h)((function(){return clearTimeout(n)}))}function p(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,o=e.length;return function r(){if(o<=i)return Promise.resolve(n);var s=e[i++];return Promise.resolve(s()).then((function(e){return t(e)?Promise.resolve(e):r()}))}()}var f=(g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},g.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},g.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},g);function g(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}var m=(v.prototype.dispose=function(){this.cancel()},v.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},v.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},v);function v(){this._token=-1}var y,b=(_.prototype.dispose=function(){this.cancel(),this.runner=null},_.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},_.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},_.prototype.isScheduled=function(){return-1!==this.timeoutToken},_.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},_.prototype.doRun=function(){this.runner&&this.runner()},_);function _(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});y=function(t){var n=setTimeout((function(){return t(e)})),i=!1;return{dispose:function(){i||(i=!0,clearTimeout(n))}}}}else y=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n))}}}}();var w=(C.prototype.dispose=function(){this._handle.dispose()},C.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},C);function C(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}},this._handle=y((function(){return t._executor()}))}},function(e,t,n){"use strict";var i=n(465),o=n(479),r=n(440),s=n(442),a=n(439),l=n(1075);function u(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;r<s.length;r++){var a=u(s[r],t,n,i);if(10===a)return a;o<a&&(o=a)}return o}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var c=e.language,d=e.pattern,h=e.scheme,p=e.hasAccessToAllModels;if(!i&&!p)return 0;if(o=0,h)if(h===t.scheme)o=10;else{if("*"!==h)return 0;o=5}if(c)if(c===n)o=10;else{if("*"!==c)return 0;o=Math.max(o,5)}if(d){if(d!==t.fsPath&&!Object(l.a)(d,t.fsPath))return 0;o=10}return o}return 0}var c=n(598);function d(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h=(Object.defineProperty(p.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),p.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(a.h)((function(){if(i){var e=n._entries.indexOf(i);0<=e&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}))},p.prototype.has=function(e){return 0<this.all(e).length},p.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n<i.length;n++){var o=i[n];0<o._score&&t.push(o.provider)}return t},p.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},p.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))})),i},p.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];0<o._score&&t(o)}}},p.prototype._updateScores=function(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];if(o._score=u(o.selector,e.uri,e.getLanguageIdentifier().language,Object(c.b)(e)),d(o.selector)&&0<o._score){for(var r=0,s=this._entries;r<s.length;r++)s[r]._score=0;o._score=1e3;break}}this._entries.sort(p._compareByScoreAndTime)}},p._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},p);function p(){this._clock=0,this._entries=[],this._onDidChange=new s.a}var f=n(553),g=(m.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},m.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(a.h)((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},m.prototype.registerPromise=function(e,t){var n=this,i=null,o=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!o&&t&&(i=n.register(e,t))}))),Object(a.h)((function(){o=!0,i&&i.dispose()}))},m.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then((function(n){return t.get(e)})):null},m.prototype.get=function(e){return Object(i.o)(this._map.get(e))},m.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(f.d)(this._map),changedColorMap:!0})},m.prototype.getColorMap=function(){return this._colorMap},m.prototype.getDefaultBackground=function(){return this._colorMap&&2<this._colorMap.length?this._colorMap[2]:null},m);function m(){this._map=new Map,this._promises=new Map,this._onDidChange=new s.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}n.d(t,"r",(function(){return v})),n.d(t,"A",(function(){return y})),n.d(t,"F",(function(){return E})),n.d(t,"E",(function(){return N})),n.d(t,"y",(function(){return C})),n.d(t,"h",(function(){return O})),n.d(t,"G",(function(){return L})),n.d(t,"z",(function(){return k})),n.d(t,"n",(function(){return T})),n.d(t,"D",(function(){return M})),n.d(t,"u",(function(){return P})),n.d(t,"v",(function(){return A})),n.d(t,"d",(function(){return R})),n.d(t,"x",(function(){return j})),n.d(t,"p",(function(){return F})),n.d(t,"m",(function(){return B})),n.d(t,"i",(function(){return W})),n.d(t,"f",(function(){return V})),n.d(t,"e",(function(){return z})),n.d(t,"q",(function(){return H})),n.d(t,"C",(function(){return q})),n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return K})),n.d(t,"g",(function(){return G})),n.d(t,"j",(function(){return Y})),n.d(t,"t",(function(){return Z})),n.d(t,"s",(function(){return X})),n.d(t,"c",(function(){return $})),n.d(t,"w",(function(){return J})),n.d(t,"o",(function(){return Q})),n.d(t,"l",(function(){return ee})),n.d(t,"k",(function(){return te})),n.d(t,"B",(function(){return ne}));var v=function(e,t){this.language=e,this.id=t},y=(b.getLanguageId=function(e){return(255&e)>>>0},b.getTokenType=function(e){return(1792&e)>>>8},b.getFontStyle=function(e){return(14336&e)>>>11},b.getForeground=function(e){return(8372224&e)>>>14},b.getBackground=function(e){return(4286578688&e)>>>23},b.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},b.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},b);function b(){}var _,w,C,S,O,x,k,E=((_=Object.create(null))[0]="method",_[1]="function",_[2]="constructor",_[3]="field",_[4]="variable",_[5]="class",_[6]="struct",_[7]="interface",_[8]="module",_[9]="property",_[10]="event",_[11]="operator",_[12]="unit",_[13]="value",_[14]="constant",_[15]="enum",_[16]="enum-member",_[17]="keyword",_[25]="snippet",_[18]="text",_[19]="color",_[20]="file",_[21]="reference",_[22]="customcolor",_[23]="folder",_[24]="type-parameter",function(e){return _[e]||"property"}),N=((w=Object.create(null)).method=0,w.function=1,w.constructor=2,w.field=3,w.variable=4,w.class=5,w.struct=6,w.interface=7,w.module=8,w.property=9,w.event=10,w.operator=11,w.unit=12,w.value=13,w.constant=14,w.enum=15,w["enum-member"]=16,w.enumMember=16,w.keyword=17,w.snippet=25,w.text=18,w.color=19,w.file=20,w.reference=21,w.customcolor=22,w.folder=23,w["type-parameter"]=24,w.typeParameter=24,function(e,t){var n=w[e];return void 0!==n||t||(n=9),n});function L(e){return e&&o.a.isUri(e.uri)&&r.a.isIRange(e.range)&&(r.a.isIRange(e.originSelectionRange)||r.a.isIRange(e.targetSelectionRange))}(S=C=C||{})[S.Invoke=1]="Invoke",S[S.TriggerCharacter=2]="TriggerCharacter",S[S.ContentChange=3]="ContentChange",(x=O=O||{})[x.Text=0]="Text",x[x.Read=1]="Read",x[x.Write=2]="Write",function(e){var t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);var n=new Map;n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=function(e){return t.get(e)},e.toString=function(e){return n.get(e)},e.toCssClassName=function(e,t){return"codicon "+(t?"inline":"block")+" codicon-symbol-"+(n.get(e)||"property")}}(k=k||{});var D,M,T=(I.Comment=new I("comment"),I.Imports=new I("imports"),I.Region=new I("region"),I);function I(e){this.value=e}(D||(D={})).is=function(e){return Object(i.i)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))},(M||(M={})).is=function(e){return Object(i.i)(e)&&o.a.isUri(e.resource)&&Object(i.i)(e.edit)};var P=new h,A=new h,R=new h,j=new h,F=new h,B=new h,W=new h,V=new h,z=new h,H=new h,q=new h,U=new h,K=new h,G=new h,Y=new h,Z=new h,X=new h,$=new h,J=new h,Q=new h,ee=new h,te=new h,ne=new g},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return L})),n.d(t,"e",(function(){return D}));var i,o=n(444),r=n(448),s=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(l.has=function(e){return c.create(e)},l.equals=function(e,t){return h.create(e,t)},l.regex=function(e,t){return y.create(e,t)},l.not=function(e){return m.create(e)},l.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.create(e)},l.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O.create(e)},l.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},l._deserializeOrExpression=function(e,t){var n=this,i=e.split("||");return O.create(i.map((function(e){return n._deserializeAndExpression(e,t)})))},l._deserializeAndExpression=function(e,t){var n=this,i=e.split("&&");return C.create(i.map((function(e){return n._deserializeOne(e,t)})))},l._deserializeOne=function(e,t){if(0<=(e=e.trim()).indexOf("!=")){var n=e.split("!=");return f.create(n[0].trim(),this._deserializeValue(n[1],t))}return 0<=e.indexOf("==")?(n=e.split("=="),h.create(n[0].trim(),this._deserializeValue(n[1],t))):0<=e.indexOf("=~")?(n=e.split("=~"),y.create(n[0].trim(),this._deserializeRegexValue(n[1],t))):/^\!\s*/.test(e)?m.create(e.substr(1).trim()):c.create(e)},l._deserializeValue=function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},l._deserializeRegexValue=function(e,t){if(Object(o.x)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return null}var n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return null}var r=e.slice(n+1,i),s="i"===e[i+1]?"i":"";try{return new RegExp(r,s)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return null}},l);function l(){}function u(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case 1:case 2:case 3:case 4:case 6:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var c=(d.create=function(e){return new d(e)},d.prototype.getType=function(){return 1},d.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},d.prototype.equals=function(e){return e instanceof d&&this.key===e.key},d.prototype.evaluate=function(e){return!!e.getValue(this.key)},d.prototype.keys=function(){return[this.key]},d.prototype.negate=function(){return m.create(this.key)},d);function d(e){this.key=e}var h=(p.create=function(e,t){return"boolean"==typeof t?t?c.create(e):m.create(e):new p(e,t)},p.prototype.getType=function(){return 3},p.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},p.prototype.equals=function(e){return e instanceof p&&this.key===e.key&&this.value===e.value},p.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},p.prototype.keys=function(){return[this.key]},p.prototype.negate=function(){return f.create(this.key,this.value)},p);function p(e,t){this.key=e,this.value=t}var f=(g.create=function(e,t){return"boolean"==typeof t?t?m.create(e):c.create(e):new g(e,t)},g.prototype.getType=function(){return 4},g.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},g.prototype.equals=function(e){return e instanceof g&&this.key===e.key&&this.value===e.value},g.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return h.create(this.key,this.value)},g);function g(e,t){this.key=e,this.value=t}var m=(v.create=function(e){return new v(e)},v.prototype.getType=function(){return 2},v.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},v.prototype.equals=function(e){return e instanceof v&&this.key===e.key},v.prototype.evaluate=function(e){return!e.getValue(this.key)},v.prototype.keys=function(){return[this.key]},v.prototype.negate=function(){return c.create(this.key)},v);function v(e){this.key=e}var y=(b.create=function(e,t){return new b(e,t)},b.prototype.getType=function(){return 6},b.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:n<t?1:0},b.prototype.equals=function(e){if(e instanceof b){var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1},b.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return _.create(this)},b);function b(e,t){this.key=e,this.regexp=t}var _=(w.create=function(e){return new w(e)},w.prototype.getType=function(){return 7},w.prototype.cmp=function(e){return this._actual.cmp(e._actual)},w.prototype.equals=function(e){return e instanceof w&&this._actual.equals(e._actual)},w.prototype.evaluate=function(e){return!this._actual.evaluate(e)},w.prototype.keys=function(){return this._actual.keys()},w.prototype.negate=function(){return this._actual},w);function w(e){this._actual=e}var C=(S.create=function(e){var t=S._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new S(t)},S.prototype.getType=function(){return 5},S.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=u(this.expr[t],e.expr[t]);if(0!==i)return i}return 0},S.prototype.equals=function(e){if(e instanceof S){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},S.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},S._normalizeArr=function(e){var t=[];if(e){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(o)if(o instanceof S)t=t.concat(o.expr);else{if(o instanceof O)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');t.push(o)}}t.sort(u)}return t},S.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},S.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}return O.create(e)},S);function S(e){this.expr=e}var O=(x.create=function(e){var t=x._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new x(t)},x.prototype.getType=function(){return 8},x.prototype.equals=function(e){if(e instanceof x){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},x.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},x._normalizeArr=function(e){var t=[];if(e){for(var n=0,i=e.length;n<i;n++){var o=e[n];o&&(o instanceof x?t=t.concat(o.expr):t.push(o))}t.sort(u)}return t},x.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},x.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}for(var o=function(e){return e instanceof x?e.expr:[e]};1<e.length;){for(var r=e.shift(),s=e.shift(),l=[],u=0,c=o(r);u<c.length;u++)for(var d=c[u],h=0,p=o(s);h<p.length;h++){var f=p[h];l.push(a.and(d,f))}e.unshift(a.or.apply(a,l))}return e[0]},x);function x(e){this.expr=e}var k,E=(s(N,k=c),N.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},N.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},N.prototype.toNegated=function(){return a.not(this.key)},N);function N(e,t){var n=k.call(this,e)||this;return n._defaultValue=t,n}var L=Object(r.c)("contextKeyService"),D="setContext"},,,function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,o=e.length;i<o;i++)if(!n(e[i],t[i]))return!1;return!0}function s(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=(i+o)/2|0,s=n(e[r],t);if(s<0)i=1+r;else{if(!(0<s))return r;o=r-1}}return-(i+1)}function a(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n<i;){var o=Math.floor((n+i)/2);t(e[o])?i=o:n=o+1}return n}function l(e,t){return function e(t,n,i,o,r){if(!(o<=i)){var s=i+(o-i)/2|0;e(t,n,i,s,r),e(t,n,1+s,o,r),n(t[s],t[1+s])<=0||function(e,t,n,i,o,r){for(var s=n,a=i+1,l=n;l<=o;l++)r[l]=e[l];for(l=n;l<=o;l++)i<s||!(o<a)&&t(r[a],r[s])<0?e[l]=r[a++]:e[l]=r[s++]}(t,n,i,s,o,r)}}(e,t,0,e.length-1,[]),e}function u(e,t){for(var n=[],i=void 0,o=0,r=l(e.slice(0),t);o<r.length;o++){var s=r[o];i&&0===t(i[0],s)?i.push(s):(i=[s],n.push(i))}return n}function c(e){return e.filter((function(e){return!!e}))}function d(e){return!Array.isArray(e)||0===e.length}function h(e){return Array.isArray(e)&&0<e.length}function p(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 i=t(e);return!n[i]&&(n[i]=!0)}))}function f(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function g(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function m(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function v(e,t,n){void 0===n&&(n=void 0);var i=m(e,t);return i<0?n:e[i]}function y(e,t){return 0<e.length?e[0]:t}function b(e){var t;return(t=[]).concat.apply(t,e)}function _(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var o=n;o<t;o++)i.push(o);else for(o=n;t<o;o--)i.push(o);return i}function w(e,t,n){var i=e.slice(0,t),o=e.slice(t);return i.concat(n,o)}function C(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.unshift(t))}function S(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.push(t))}function O(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n,e))return i}}function x(e){return Array.isArray(e)?e:[e]}n.d(t,"v",(function(){return i})),n.d(t,"w",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"r",(function(){return l})),n.d(t,"o",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"n",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"u",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"t",(function(){return C})),n.d(t,"s",(function(){return S})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return x}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"Tb",(function(){return h})),n.d(t,"W",(function(){return f})),n.d(t,"U",(function(){return g})),n.d(t,"V",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"ec",(function(){return b})),n.d(t,"dc",(function(){return _})),n.d(t,"hc",(function(){return w})),n.d(t,"Z",(function(){return C})),n.d(t,"bb",(function(){return S})),n.d(t,"ab",(function(){return O})),n.d(t,"Y",(function(){return x})),n.d(t,"X",(function(){return k})),n.d(t,"fb",(function(){return E})),n.d(t,"hb",(function(){return N})),n.d(t,"gb",(function(){return L})),n.d(t,"ib",(function(){return D})),n.d(t,"kb",(function(){return M})),n.d(t,"jb",(function(){return T})),n.d(t,"cb",(function(){return I})),n.d(t,"eb",(function(){return P})),n.d(t,"db",(function(){return A})),n.d(t,"Ob",(function(){return F})),n.d(t,"Nb",(function(){return B})),n.d(t,"c",(function(){return W})),n.d(t,"d",(function(){return V})),n.d(t,"Vb",(function(){return z})),n.d(t,"Xb",(function(){return H})),n.d(t,"Yb",(function(){return q})),n.d(t,"Wb",(function(){return U})),n.d(t,"Sb",(function(){return K})),n.d(t,"q",(function(){return G})),n.d(t,"p",(function(){return Y})),n.d(t,"P",(function(){return Z})),n.d(t,"O",(function(){return X})),n.d(t,"H",(function(){return $})),n.d(t,"G",(function(){return J})),n.d(t,"z",(function(){return Q})),n.d(t,"y",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"x",(function(){return ne})),n.d(t,"Q",(function(){return ie})),n.d(t,"S",(function(){return oe})),n.d(t,"R",(function(){return re})),n.d(t,"T",(function(){return se})),n.d(t,"K",(function(){return ae})),n.d(t,"L",(function(){return le})),n.d(t,"F",(function(){return ue})),n.d(t,"M",(function(){return ce})),n.d(t,"N",(function(){return de})),n.d(t,"r",(function(){return he})),n.d(t,"t",(function(){return pe})),n.d(t,"v",(function(){return fe})),n.d(t,"s",(function(){return ge})),n.d(t,"u",(function(){return me})),n.d(t,"w",(function(){return ve})),n.d(t,"D",(function(){return ye})),n.d(t,"A",(function(){return be})),n.d(t,"C",(function(){return _e})),n.d(t,"B",(function(){return we})),n.d(t,"E",(function(){return Ce})),n.d(t,"n",(function(){return Se})),n.d(t,"J",(function(){return Oe})),n.d(t,"I",(function(){return xe})),n.d(t,"g",(function(){return ke})),n.d(t,"h",(function(){return Ee})),n.d(t,"j",(function(){return Ne})),n.d(t,"l",(function(){return Le})),n.d(t,"k",(function(){return De})),n.d(t,"m",(function(){return Me})),n.d(t,"i",(function(){return Te})),n.d(t,"rb",(function(){return Ie})),n.d(t,"sb",(function(){return Pe})),n.d(t,"lb",(function(){return Ae})),n.d(t,"mb",(function(){return Re})),n.d(t,"xb",(function(){return je})),n.d(t,"yb",(function(){return Fe})),n.d(t,"wb",(function(){return Be})),n.d(t,"ub",(function(){return We})),n.d(t,"vb",(function(){return Ve})),n.d(t,"nb",(function(){return ze})),n.d(t,"tb",(function(){return He})),n.d(t,"ob",(function(){return qe})),n.d(t,"qb",(function(){return Ue})),n.d(t,"pb",(function(){return Ke})),n.d(t,"gc",(function(){return Ge})),n.d(t,"Ab",(function(){return Ye})),n.d(t,"Bb",(function(){return Ze})),n.d(t,"zb",(function(){return Xe})),n.d(t,"Eb",(function(){return $e})),n.d(t,"Cb",(function(){return Je})),n.d(t,"Db",(function(){return Qe})),n.d(t,"Fb",(function(){return et})),n.d(t,"bc",(function(){return tt})),n.d(t,"cc",(function(){return nt})),n.d(t,"Zb",(function(){return it})),n.d(t,"ac",(function(){return ot})),n.d(t,"Lb",(function(){return rt})),n.d(t,"Mb",(function(){return st})),n.d(t,"Hb",(function(){return at})),n.d(t,"Ib",(function(){return lt})),n.d(t,"Gb",(function(){return ut})),n.d(t,"Jb",(function(){return ct})),n.d(t,"Pb",(function(){return dt})),n.d(t,"Rb",(function(){return ht})),n.d(t,"Qb",(function(){return pt})),n.d(t,"f",(function(){return ft})),n.d(t,"fc",(function(){return gt})),n.d(t,"Kb",(function(){return mt})),n.d(t,"Ub",(function(){return yt}));var i=n(571),o=n(490),r=n(442),s=n(445),a=n(1073),l=n(453),u={ColorContribution:"base.contributions.colors"};function c(){this._onDidChangeSchema=new r.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}var d=new(c.prototype.registerColor=function(e,t,n,i,o){void 0===i&&(i=!1);var r={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:o};this.colorsById[e]=r;var s={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},c.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return yt(n.defaults[t.type],t)},c.prototype.getColorSchema=function(){return this.colorSchema},c.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort((function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!=i?n-i:e.localeCompare(t)})).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},c);function h(e,t,n,i,o){return d.registerColor(e,t,n,i,o)}i.a.add(u.ColorContribution,d);var p,f=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),g=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=h("focusBorder",{dark:o.a.fromHex("#0E639C").transparent(.8),light:o.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},s.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),y=h("contrastActiveBorder",{light:null,dark:null,hc:m},s.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),b=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s.a("textLinkForeground","Foreground color for links in text.")),_=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:o.a.black},s.a("textCodeBlockBackground","Background color for code blocks in text.")),w=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},s.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),C=h("input.background",{dark:"#3C3C3C",light:o.a.white,hc:o.a.black},s.a("inputBoxBackground","Input box background.")),S=h("input.foreground",{dark:f,light:f,hc:f},s.a("inputBoxForeground","Input box foreground.")),O=h("input.border",{dark:null,light:null,hc:v},s.a("inputBoxBorder","Input box border.")),x=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},s.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),k=h("inputOption.activeBackground",{dark:gt(m,.5),light:gt(m,.3),hc:null},s.a("inputOption.activeBackground","Background color of activated options in input fields.")),E=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:o.a.black},s.a("inputValidationInfoBackground","Input validation background color for information severity.")),N=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},s.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),L=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},s.a("inputValidationInfoBorder","Input validation border color for information severity.")),D=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:o.a.black},s.a("inputValidationWarningBackground","Input validation background color for warning severity.")),M=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},s.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),T=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},s.a("inputValidationWarningBorder","Input validation border color for warning severity.")),I=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:o.a.black},s.a("inputValidationErrorBackground","Input validation background color for error severity.")),P=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},s.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),A=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},s.a("inputValidationErrorBorder","Input validation border color for error severity.")),R=h("dropdown.background",{dark:"#3C3C3C",light:o.a.white,hc:o.a.black},s.a("dropdownBackground","Dropdown background.")),j=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:o.a.white},s.a("dropdownForeground","Dropdown foreground.")),F=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:o.a.white},s.a("pickerGroupForeground","Quick picker color for grouping labels.")),B=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:o.a.white},s.a("pickerGroupBorder","Quick picker color for grouping borders.")),W=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:o.a.black},s.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),V=h("badge.foreground",{dark:o.a.white,light:"#333",hc:o.a.white},s.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),z=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),H=h("scrollbarSlider.background",{dark:o.a.fromHex("#797979").transparent(.4),light:o.a.fromHex("#646464").transparent(.4),hc:gt(v,.6)},s.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=h("scrollbarSlider.hoverBackground",{dark:o.a.fromHex("#646464").transparent(.7),light:o.a.fromHex("#646464").transparent(.7),hc:gt(v,.8)},s.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),U=h("scrollbarSlider.activeBackground",{dark:o.a.fromHex("#BFBFBF").transparent(.4),light:o.a.fromHex("#000000").transparent(.6),hc:v},s.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),K=h("progressBar.background",{dark:o.a.fromHex("#0E70C0"),light:o.a.fromHex("#0E70C0"),hc:v},s.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),G=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Y=h("editorError.border",{dark:null,light:null,hc:o.a.fromHex("#E47777").transparent(.8)},s.a("errorBorder","Border color of error boxes in the editor.")),Z=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},s.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),X=h("editorWarning.border",{dark:null,light:null,hc:o.a.fromHex("#FFCC00").transparent(.8)},s.a("warningBorder","Border color of warning boxes in the editor.")),$=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),J=h("editorInfo.border",{dark:null,light:null,hc:o.a.fromHex("#75BEFF").transparent(.8)},s.a("infoBorder","Border color of info boxes in the editor.")),Q=h("editorHint.foreground",{dark:o.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ee=h("editorHint.border",{dark:null,light:null,hc:o.a.fromHex("#eeeeee").transparent(.8)},s.a("hintBorder","Border color of hint boxes in the editor.")),te=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:o.a.black},s.a("editorBackground","Editor background color.")),ne=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:o.a.white},s.a("editorForeground","Editor default foreground color.")),ie=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),oe=h("editorWidget.foreground",{dark:f,light:f,hc:f},s.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),re=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},s.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),se=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ae=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s.a("editorSelectionBackground","Color of the editor selection.")),le=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s.a("editorSelectionForeground","Color of the selected text for high contrast.")),ue=h("editor.inactiveSelectionBackground",{light:gt(ae,.5),dark:gt(ae,.5),hc:gt(ae,.5)},s.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ce=h("editor.selectionHighlightBackground",{light:vt(ae,te,.3,.6),dark:vt(ae,te,.3,.6),hc:null},s.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),de=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:y},s.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),he=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s.a("editorFindMatch","Color of the current search match.")),pe=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),fe=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ge=h("editor.findMatchBorder",{light:null,dark:null,hc:y},s.a("editorFindMatchBorder","Border color of the current search match.")),me=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:y},s.a("findMatchHighlightBorder","Border color of the other search matches.")),ve=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:gt(y,.4)},s.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ye=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),be=h("editorHoverWidget.background",{light:ie,dark:ie,hc:ie},s.a("hoverBackground","Background color of the editor hover.")),_e=h("editorHoverWidget.foreground",{light:oe,dark:oe,hc:oe},s.a("hoverForeground","Foreground color of the editor hover.")),we=h("editorHoverWidget.border",{light:re,dark:re,hc:re},s.a("hoverBorder","Border color of the editor hover.")),Ce=h("editorHoverWidget.statusBarBackground",{dark:(.2,function(e){var t=yt(p,e);if(t)return t.lighten(.2)}),light:ft(p=be,.05),hc:ie},s.a("statusBarBackground","Background color of the editor hover status bar.")),Se=h("editorLink.activeForeground",{dark:"#4E94CE",light:o.a.blue,hc:o.a.cyan},s.a("activeLinkForeground","Color of active links.")),Oe=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),xe=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ke=new o.a(new o.c(155,185,85,.2)),Ee=new o.a(new o.c(255,0,0,.2)),Ne=h("diffEditor.insertedTextBackground",{dark:ke,light:ke,hc:null},s.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Le=h("diffEditor.removedTextBackground",{dark:Ee,light:Ee,hc:null},s.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),De=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Me=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Te=h("diffEditor.border",{dark:null,light:null,hc:v},s.a("diffEditorBorder","Border color between the two text editors.")),Ie=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Pe=h("list.focusForeground",{dark:null,light:null,hc:null},s.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ae=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},s.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Re=h("list.activeSelectionForeground",{dark:o.a.white,light:o.a.white,hc:null},s.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),je=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Fe=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Be=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),We=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ve=h("list.hoverForeground",{dark:null,light:null,hc:null},s.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ze=h("list.dropBackground",{dark:Ie,light:Ie,hc:null},s.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),He=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:m},s.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),qe=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:o.a.black},s.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Ue=h("listFilterWidget.outline",{dark:o.a.transparent,light:o.a.transparent,hc:"#f38518"},s.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ke=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},s.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ge=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ye=h("menu.border",{dark:null,light:null,hc:v},s.a("menuBorder","Border color of menus.")),Ze=h("menu.foreground",{dark:j,light:f,hc:j},s.a("menuForeground","Foreground color of menu items.")),Xe=h("menu.background",{dark:R,light:R,hc:R},s.a("menuBackground","Background color of menu items.")),$e=h("menu.selectionForeground",{dark:Re,light:Re,hc:Re},s.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Je=h("menu.selectionBackground",{dark:Ae,light:Ae,hc:Ae},s.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Qe=h("menu.selectionBorder",{dark:null,light:null,hc:y},s.a("menuSelectionBorder","Border color of the selected menu item in menus.")),et=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},s.a("menuSeparatorBackground","Color of a separator menu item in menus.")),tt=h("editor.snippetTabstopHighlightBackground",{dark:new o.a(new o.c(124,124,124,.3)),light:new o.a(new o.c(10,50,100,.2)),hc:new o.a(new o.c(124,124,124,.3))},s.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),nt=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),it=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),ot=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.a(new o.c(10,50,100,.5)),hc:"#525252"},s.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),rt=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),st=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),at=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),lt=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ut=h("minimap.errorHighlight",{dark:new o.a(new o.c(255,18,18,.7)),light:new o.a(new o.c(255,18,18,.7)),hc:new o.a(new o.c(255,50,50,1))},s.a("minimapError","Minimap marker color for errors.")),ct=h("minimap.warningHighlight",{dark:Z,light:Z,hc:X},s.a("overviewRuleWarning","Minimap marker color for warnings.")),dt=h("problemsErrorIcon.foreground",{dark:G,light:G,hc:G},s.a("problemsErrorIconForeground","The color used for the problems error icon.")),ht=h("problemsWarningIcon.foreground",{dark:Z,light:Z,hc:Z},s.a("problemsWarningIconForeground","The color used for the problems warning icon.")),pt=h("problemsInfoIcon.foreground",{dark:$,light:$,hc:$},s.a("problemsInfoIconForeground","The color used for the problems info icon."));function ft(e,t){return function(n){var i=yt(e,n);if(i)return i.darken(t)}}function gt(e,t){return function(n){var i=yt(e,n);if(i)return i.transparent(t)}}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,i=e;n<i.length;n++){var o=yt(i[n],t);if(o)return o}}}function vt(e,t,n,i){return function(r){var s=yt(e,r);if(s){var a=yt(t,r);return a?s.isDarkerThan(a)?o.a.getLighterColor(s,a,n).transparent(i):o.a.getDarkerColor(s,a,n).transparent(i):s.transparent(n*i)}}}function yt(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?o.a.fromHex(e):t.getColor(e):e instanceof o.a?e:"function"==typeof e?e(t):void 0}var bt="vscode://schemas/workbench-colors",_t=i.a.as(a.a.JSONContribution);_t.registerSchema(bt,d.getColorSchema());var wt=new l.d((function(){return _t.notifySchemaChanged(bt)}),200);d.onDidChangeSchema((function(){wt.isScheduled()||wt.schedule()}))},function(e,t,n){"use strict";var i=n(0),o=n(1),r=n(182),s=n(12),a=n.n(s),l=n(75),u=n.n(l),c=n(77);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},b=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=g(e).apply(this,arguments),(t=!o||"object"!==d(o)&&"function"!=typeof o?m(n):o).saveCheckbox=function(e){t.rcCheckbox=e},t.onChange=function(e){t.props.onChange&&t.props.onChange(e),t.context.radioGroup&&t.context.radioGroup.onChange&&t.context.radioGroup.onChange(e)},t.renderRadio=function(e){var n,o=e.getPrefixCls,s=m(t),l=s.props,u=s.context,c=l.prefixCls,d=l.className,f=l.children,g=l.style,v=y(l,["prefixCls","className","children","style"]),b=u.radioGroup,_=o("radio",c),w=p({},v);b&&(w.name=b.name,w.onChange=t.onChange,w.checked=l.value===b.value,w.disabled=l.disabled||b.disabled);var C=a()(d,(h(n={},"".concat(_,"-wrapper"),!0),h(n,"".concat(_,"-wrapper-checked"),w.checked),h(n,"".concat(_,"-wrapper-disabled"),w.disabled),n));return i.createElement("label",{className:C,style:g,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave},i.createElement(r.a,p({},w,{prefixCls:_,ref:t.saveCheckbox})),void 0!==f?i.createElement("span",null,f):null)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,i.Component),t=e,(n=[{key:"shouldComponentUpdate",value:function(e,t,n){return!u()(this.props,e)||!u()(this.state,t)||!u()(this.context.radioGroup,n.radioGroup)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return i.createElement(c.a,null,this.renderRadio)}}])&&f(t.prototype,n),e}();b.defaultProps={type:"radio"},b.contextTypes={radioGroup:o.any};var _=n(25);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=null,n=!1;return i.Children.forEach(e,(function(e){e&&e.props&&e.props.checked&&(t=e.props.value,n=!0)})),n?{value:t}:void 0}var E=function(){function e(t){var n,o,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,o=S(e).call(this,t),(n=!o||"object"!==w(o)&&"function"!=typeof o?O(this):o).onRadioChange=function(e){var t=n.state.value,i=e.target.value;"value"in n.props||n.setState({value:i});var o=n.props.onChange;o&&i!==t&&o(e)},n.renderGroup=function(e){var t,o,r,s=e.getPrefixCls,l=O(n).props,u=l.prefixCls,c=l.className,d=void 0===c?"":c,h=l.options,p=l.buttonStyle,f=s("radio",u),g="".concat(f,"-group"),m=a()(g,"".concat(g,"-").concat(p),(t={},o="".concat(g,"-").concat(l.size),r=l.size,o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t),d),v=l.children;return h&&0<h.length&&(v=h.map((function(e){return"string"==typeof e?i.createElement(b,{key:e,prefixCls:f,disabled:n.props.disabled,value:e,checked:n.state.value===e},e):i.createElement(b,{key:"radio-group-value-options-".concat(e.value),prefixCls:f,disabled:e.disabled||n.props.disabled,value:e.value,checked:n.state.value===e.value},e.label)}))),i.createElement("div",{className:m,style:l.style,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,id:l.id},v)},"value"in t)r=t.value;else if("defaultValue"in t)r=t.defaultValue;else{var s=k(t.children);r=s&&s.value}return n.state={value:r},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(e,i.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e){if("value"in e)return{value:e.value};var t=k(e.children);return t?{value:t.value}:null}}],(n=[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled,name:this.props.name}}}},{key:"shouldComponentUpdate",value:function(e,t){return!u()(this.props,e)||!u()(this.state,t)}},{key:"render",value:function(){return i.createElement(c.a,null,this.renderGroup)}}])&&C(t.prototype,n),o&&C(t,o),e}();E.defaultProps={buttonStyle:"outline"},E.childContextTypes={radioGroup:o.any},Object(_.polyfill)(E);var N=E;function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function M(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function T(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var A=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},R=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=T(this,I(e).apply(this,arguments))).renderRadioButton=function(e){var n=e.getPrefixCls,o=t.props,r=o.prefixCls,s=A(o,["prefixCls"]),a=n("radio-button",r);return t.context.radioGroup&&(s.checked=t.props.value===t.context.radioGroup.value,s.disabled=t.props.disabled||t.context.radioGroup.disabled),i.createElement(b,D({prefixCls:a},s))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){return i.createElement(c.a,null,this.renderRadioButton)}}])&&M(t.prototype,n),e}();R.contextTypes={radioGroup:o.any},b.Button=R,b.Group=N,t.a=b},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"n",(function(){return S})),n.d(t,"o",(function(){return O}));var i="number",o="string",r="undefined",s="object",a="function";function l(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i||e.constructor!==Array)}function u(e){return typeof e===o||e instanceof String}function c(e){return!(typeof e!==s||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function d(e){return(typeof e===i||e instanceof Number)&&!isNaN(e)}function h(e){return!0===e||!1===e}function p(e){return typeof e===r}function f(e){return p(e)||null===e}function g(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var m=Object.prototype.hasOwnProperty;function v(e){if(!c(e))return!1;for(var t in e)if(m.call(e,t))return!1;return!0}function y(e){return typeof e===a}function b(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)_(e[i],t[i])}function _(e,t){if(u(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(y(t)){try{if(e instanceof t)return}catch(e){}if(!f(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function w(e){for(var t=[],n=0,i=function(e){for(var t=[],n=Object.getPrototypeOf(e);Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e);n<i.length;n++){var o=i[n];"function"==typeof e[o]&&t.push(o)}return t}function C(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},i={},o=0,r=e;o<r.length;o++){var s=r[o];i[s]=n(s)}return i}function S(e){return null===e?void 0:e}function O(e){return void 0===e?null:e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i,o,r=n(450),s=n(440),a=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(l,o=s.a),l.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},l.prototype.equalsSelection=function(e){return l.selectionsEqual(this,e)},l.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},l.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},l.prototype.setEndPosition=function(e,t){return 0===this.getDirection()?new l(this.startLineNumber,this.startColumn,e,t):new l(e,t,this.startLineNumber,this.startColumn)},l.prototype.getPosition=function(){return new r.a(this.positionLineNumber,this.positionColumn)},l.prototype.setStartPosition=function(e,t){return 0===this.getDirection()?new l(e,t,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,e,t)},l.fromPositions=function(e,t){return void 0===t&&(t=e),new l(e.lineNumber,e.column,t.lineNumber,t.column)},l.liftSelection=function(e){return new l(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},l.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},l.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},l.createWithDirection=function(e,t,n,i,o){return 0===o?new l(e,t,n,i):new l(n,i,e,t)},l);function l(e,t,n,i){var r=o.call(this,e,t,n,i)||this;return r.selectionStartLineNumber=e,r.selectionStartColumn=t,r.positionLineNumber=n,r.positionColumn=i,r}},function(e,t,n){var i=n(477);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";var i,o;Object.defineProperty(t,"__esModule",{value:!0});var r={position:"absolute",top:"-9999px",width:"50px",height:"50px"};t.INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE",t.measureScrollbar=function(e){var t=e.direction,n=void 0===t?"vertical":t,s=e.prefixCls;if("undefined"==typeof document||"undefined"==typeof window)return 0;var a="vertical"===n;if(a&&i)return i;if(!a&&o)return o;var l=document.createElement("div");Object.keys(r).forEach((function(e){l.style[e]=r[e]})),l.className="".concat(s,"-hide-scrollbar scroll-div-append-to-body"),a?l.style.overflowY="scroll":l.style.overflowX="scroll",document.body.appendChild(l);var u=0;return a?(u=l.offsetWidth-l.clientWidth,i=u):(u=l.offsetHeight-l.clientHeight,o=u),document.body.removeChild(l),u},t.debounce=function(e,t,n){var i;function o(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];var a=this;r[0]&&r[0].persist&&r[0].persist();var l=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||e.apply(a,r)}),t),l&&e.apply(a,r)}return o.cancel=function(){i&&(clearTimeout(i),i=null)},o},t.remove=function(e,t){var n=e.indexOf(t),i=e.slice(0,n),o=e.slice(n+1,e.length);return i.concat(o)},t.getDataAndAriaProps=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,o,r=n(456);(o=i=i||{}).editorSimpleInput=new r.d("editorSimpleInput",!1),o.editorTextFocus=new r.d("editorTextFocus",!1),o.focus=new r.d("editorFocus",!1),o.textInputFocus=new r.d("textInputFocus",!1),o.readOnly=new r.d("editorReadonly",!1),o.writable=o.readOnly.toNegated(),o.hasNonEmptySelection=new r.d("editorHasSelection",!1),o.hasOnlyEmptySelection=o.hasNonEmptySelection.toNegated(),o.hasMultipleSelections=new r.d("editorHasMultipleSelections",!1),o.hasSingleSelection=o.hasMultipleSelections.toNegated(),o.tabMovesFocus=new r.d("editorTabMovesFocus",!1),o.tabDoesNotMoveFocus=o.tabMovesFocus.toNegated(),o.isInEmbeddedEditor=new r.d("isInEmbeddedEditor",!1),o.canUndo=new r.d("canUndo",!1),o.canRedo=new r.d("canRedo",!1),o.languageId=new r.d("editorLangId",""),o.hasCompletionItemProvider=new r.d("editorHasCompletionItemProvider",!1),o.hasCodeActionsProvider=new r.d("editorHasCodeActionsProvider",!1),o.hasCodeLensProvider=new r.d("editorHasCodeLensProvider",!1),o.hasDefinitionProvider=new r.d("editorHasDefinitionProvider",!1),o.hasDeclarationProvider=new r.d("editorHasDeclarationProvider",!1),o.hasImplementationProvider=new r.d("editorHasImplementationProvider",!1),o.hasTypeDefinitionProvider=new r.d("editorHasTypeDefinitionProvider",!1),o.hasHoverProvider=new r.d("editorHasHoverProvider",!1),o.hasDocumentHighlightProvider=new r.d("editorHasDocumentHighlightProvider",!1),o.hasDocumentSymbolProvider=new r.d("editorHasDocumentSymbolProvider",!1),o.hasReferenceProvider=new r.d("editorHasReferenceProvider",!1),o.hasRenameProvider=new r.d("editorHasRenameProvider",!1),o.hasSignatureHelpProvider=new r.d("editorHasSignatureHelpProvider",!1),o.hasDocumentFormattingProvider=new r.d("editorHasDocumentFormattingProvider",!1),o.hasDocumentSelectionFormattingProvider=new r.d("editorHasDocumentSelectionFormattingProvider",!1),o.hasMultipleDocumentFormattingProvider=new r.d("editorHasMultipleDocumentFormattingProvider",!1),o.hasMultipleDocumentSelectionFormattingProvider=new r.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)},function(e,t,n){"use strict";n(46),n(685)},,,function(e,t,n){(function(e){var i=n(166),o=n(524),r=t&&!t.nodeType&&t,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===r?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l}).call(this,n(262)(e))},function(e,t,n){var i=n(525),o=n(526),r=n(527),s=r&&r.isTypedArray,a=s?o(s):i;e.exports=a},function(e,t,n){var i=n(512),o=n(494);e.exports=function(e){return null!=e&&o(e.length)&&!i(e)}},,function(e,t,n){var i=n(457),o=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"o",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"g",(function(){return _})),n.d(t,"l",(function(){return w}));var i=n(442),o=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},r.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},r.INSTANCE=new r,r);function r(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}function s(){return o.INSTANCE.getZoomLevel()}function a(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function l(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function u(){return o.INSTANCE.getPixelRatio()}var c=navigator.userAgent,d=0<=c.indexOf("Trident"),h=0<=c.indexOf("Edge/"),p=d||h,f=0<=c.indexOf("Firefox"),g=0<=c.indexOf("AppleWebKit"),m=0<=c.indexOf("Chrome"),v=!m&&0<=c.indexOf("Safari"),y=!m&&!v&&g,b=0<=c.indexOf("iPad")||v&&0<navigator.maxTouchPoints,_=h&&0<=c.indexOf("WebView/"),w=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i,o,r=n(452),s=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//,c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=(p.isUri=function(e){return e instanceof p||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(p.prototype,"fsPath",{get:function(){return w(this)},enumerable:!0,configurable:!0}),p.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,o=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===i?i=this.path:null===i&&(i=""),void 0===o?o=this.query:null===o&&(o=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new m(t,n,i,o,r)},p.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new m(n[2]||"",O(n[4]||""),O(n[5]||""),O(n[7]||""),O(n[9]||""),t):new m("","","","","")},p.file=function(e){var t="";if(r.h&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){var n=e.indexOf(c,2);e=-1===n?(t=e.substring(2),c):(t=e.substring(2,n),e.substring(n)||c)}return new m("file",t,e,"","")},p.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},p.prototype.toString=function(e){return void 0===e&&(e=!1),C(this,e)},p.prototype.toJSON=function(){return this},p.revive=function(e){if(e){if(e instanceof p)return e;var t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}return e},p);function p(e,t,n,i,o,r){var s;void 0===r&&(r=!1),"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=(s=e)||r?s:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||""),this.query=i||"",this.fragment=o||"",function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.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(u.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 ("//")')}(this,r))}var f,g=r.h?1:void 0,m=(s(v,f=h),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=w(this)),this._fsPath},enumerable:!0,configurable:!0}),v.prototype.toString=function(e){return void 0===e&&(e=!1),e?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),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),e},v);function v(){var e=null!==f&&f.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}var y=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function b(e,t){for(var n=void 0,i=-1,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(97<=r&&r<=122||65<=r&&r<=90||48<=r&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=y[r];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=s):-1===i&&(i=o)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function _(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=y[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function w(e){var t;return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r.h&&(t=t.replace(/\//g,"\\")),t}function C(e,t){var n=t?_:b,i="",o=e.scheme,r=e.authority,s=e.path,a=e.query,l=e.fragment;if(o&&(i+=o,i+=":"),!r&&"file"!==o||(i+=c,i+=c),r){var u=r.indexOf("@");if(-1!==u){var d=r.substr(0,u);r=r.substr(u+1),-1===(u=d.indexOf(":"))?i+=n(d,!1):(i+=n(d.substr(0,u),!1),i+=":",i+=n(d.substr(u+1),!1)),i+="@"}-1===(u=(r=r.toLowerCase()).indexOf(":"))?i+=n(r,!1):(i+=n(r.substr(0,u),!1),i+=r.substr(u))}if(s){if(3<=s.length&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))65<=(h=s.charCodeAt(1))&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(2<=s.length&&58===s.charCodeAt(1)){var h;65<=(h=s.charCodeAt(0))&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:b(l,!1)),i}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(S)?e.replace(S,(function(e){return function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}}(e)})):e}},function(e,t,n){"use strict";var i,o=n(0),r=n.n(o),s=n(1),a=n.n(s),l=n(13),u=n.n(l),c=n(105),d=n(12),h=n.n(d),p={adjustX:1,adjustY:1},f=[0,0],g={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:f}},m=n(25),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},y=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(b,i=o.Component),b.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:null},b.prototype.getOverlayElement=function(){var e=this.props.overlay;return"function"==typeof e?e():e},b.prototype.getMenuElementOrLambda=function(){return"function"==typeof this.props.overlay?this.getMenuElement:this.getMenuElement()},b.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},b.prototype.getOpenClassName=function(){var e=this.props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},b.prototype.renderChildren=function(){var e=this.props.children,t=this.state.visible,n=e.props?e.props:{},i=h()(n.className,this.getOpenClassName());return t&&e?Object(o.cloneElement)(e,{className:i}):e},b.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.transitionName,i=e.animation,o=e.align,s=e.placement,a=e.getPopupContainer,l=e.showAction,u=e.hideAction,d=e.overlayClassName,h=e.overlayStyle,p=e.trigger,f=function(e,t){var n={};for(var i in e)0<=t.indexOf(i)||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),m=u;return m||-1===p.indexOf("contextMenu")||(m=["click"]),r.a.createElement(c.a,v({},f,{prefixCls:t,ref:this.saveTrigger,popupClassName:d,popupStyle:h,builtinPlacements:g,action:p,showAction:l,hideAction:m||[],popupPlacement:s,popupAlign:o,popupTransitionName:n,popupAnimation:i,popupVisible:this.state.visible,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElementOrLambda(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:a}),this.renderChildren())},b);function b(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e));return _.call(t),t.state="visible"in e?{visible:e.visible}:{visible:e.defaultVisible},t}y.propTypes={minOverlayWidthMatchTrigger:a.a.bool,onVisibleChange:a.a.func,onOverlayClick:a.a.func,prefixCls:a.a.string,children:a.a.any,transitionName:a.a.string,overlayClassName:a.a.string,openClassName:a.a.string,animation:a.a.any,align:a.a.object,overlayStyle:a.a.object,placement:a.a.string,overlay:a.a.oneOfType([a.a.node,a.a.func]),trigger:a.a.array,alignPoint:a.a.bool,showAction:a.a.array,hideAction:a.a.array,getPopupContainer:a.a.func,visible:a.a.bool,defaultVisible:a.a.bool},y.defaultProps={prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"};var _=function(){var e=this;this.onClick=function(t){var n=e.props,i=e.getOverlayElement().props;"visible"in n||e.setState({visible:!1}),n.onOverlayClick&&n.onOverlayClick(t),i.onClick&&i.onClick(t)},this.onVisibleChange=function(t){var n=e.props;"visible"in n||e.setState({visible:t}),n.onVisibleChange(t)},this.getMinOverlayWidthMatchTrigger=function(){var t=e.props,n=t.minOverlayWidthMatchTrigger,i=t.alignPoint;return"minOverlayWidthMatchTrigger"in e.props?n:!i},this.getMenuElement=function(){var t=e.props.prefixCls,n=e.getOverlayElement(),i={prefixCls:t+"-menu",onClick:e.onClick};return"string"==typeof n.type&&delete i.prefixCls,r.a.cloneElement(n,i)},this.afterVisibleChange=function(t){if(t&&e.getMinOverlayWidthMatchTrigger()){var n=e.getPopupDomNode(),i=u.a.findDOMNode(e);i&&n&&i.offsetWidth>n.offsetWidth&&(n.style.minWidth=i.offsetWidth+"px",e.trigger&&e.trigger._component&&e.trigger._component.alignInstance&&e.trigger._component.alignInstance.forceAlign())}},this.saveTrigger=function(t){e.trigger=t}};Object(m.polyfill)(y);var w=y,C=n(77),S=n(27),O=n(18),x=n(51);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function N(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function L(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return T})),Object(x.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var T=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=L(this,D(e).apply(this,arguments))).renderOverlay=function(e){var n,i=t.props.overlay;n="function"==typeof i?i():i;var r=(n=o.Children.only(n)).props;Object(S.a)(!r.mode||"vertical"===r.mode,"Dropdown",'mode="'.concat(r.mode,"\" is not supported for Dropdown's Menu."));var s=r.selectable,a=void 0!==s&&s,l=r.focusable,u=void 0===l||l,c=o.createElement("span",{className:"".concat(e,"-menu-submenu-arrow")},o.createElement(O.a,{type:"right",className:"".concat(e,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?i:o.cloneElement(n,{mode:"vertical",selectable:a,focusable:u,expandIcon:c})},t.renderDropDown=function(e){var n,i=e.getPopupContainer,r=e.getPrefixCls,s=t.props,a=s.prefixCls,l=s.children,u=s.trigger,c=s.disabled,d=s.getPopupContainer,p=r("dropdown",a),f=o.Children.only(l),g=o.cloneElement(f,{className:h()(f.props.className,"".concat(p,"-trigger")),disabled:c}),m=c?[]:u;return m&&-1!==m.indexOf("contextMenu")&&(n=!0),o.createElement(w,E({alignPoint:n},t.props,{prefixCls:p,getPopupContainer:d||i,transitionName:t.getTransitionName(),trigger:m,overlay:function(){return t.renderOverlay(p)}}),g)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(e,o.Component),t=e,(n=[{key:"getTransitionName",value:function(){var e=this.props,t=e.placement,n=void 0===t?"":t,i=e.transitionName;return void 0!==i?i:0<=n.indexOf("top")?"slide-down":"slide-up"}},{key:"render",value:function(){return o.createElement(C.a,null,this.renderDropDown)}}])&&N(t.prototype,n),e}();T.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"}},function(e,t,n){var i=n(464),o=n(519),r=n(520),s=n(521),a=n(522),l=n(523);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,e.exports=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"h",(function(){return b})),n.d(t,"l",(function(){return _}));var i=n(16),o=n.n(i),r=n(109),s=n.n(r),a=n(133),l=n.n(a);function u(e,t){var n;return e.displayName="Form("+((n=t).displayName||n.name||"WrappedComponent")+")",e.WrappedComponent=t,s()(e,t)}function c(e){return e}function d(e){return Array.prototype.concat.apply([],e)}function h(e,t,n){var i={};return function e(t,n,i,o,r){var s=0<arguments.length&&void 0!==t?t:"",a=n,u=i,c=o,d=r;if(u(s,a))d(s,a);else if(null!=a)if(Array.isArray(a))a.forEach((function(t,n){return e(s+"["+n+"]",t,u,c,d)}));else{if("object"!=typeof a)return void l()(!1,c);Object.keys(a).forEach((function(t){var n=a[t];e(s+(s?".":"")+t,n,u,c,d)}))}}(void 0,e,t,n,(function(e,t){i[e]=t})),i}function p(e,t,n){var i=e.map((function(e){var t=o()({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));return t&&i.push({trigger:n?[].concat(n):[],rules:t}),i}function f(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])}function g(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value}function m(e){return e?e.map((function(e){return e&&e.message?e.message:e})):e}function v(e,t,n){var i=e,o=t,r=n;return void 0===n&&("function"==typeof i?(r=i,o={},i=void 0):Array.isArray(i)?o="function"==typeof o?(r=o,{}):o||{}:(r=o,o=i||{},i=void 0)),{names:i,options:o,callback:r}}function y(e){return 0===Object.keys(e).length}function b(e){return!!e&&e.some((function(e){return e.rules&&e.rules.length}))}function _(e,t){return 0===e.lastIndexOf(t,0)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var i,o,r=n(442),s=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(o=i=i||{}).isCancellationToken=function(e){return e===o.None||e===o.Cancelled||e instanceof a||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.b.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s});var a=(l.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(l.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?s:(this._emitter||(this._emitter=new r.a),this._emitter.event)},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},l);function l(){this._isCancelled=!1,this._emitter=null}var u=(Object.defineProperty(c.prototype,"token",{get:function(){return this._token||(this._token=new a),this._token},enumerable:!0,configurable:!0}),c.prototype.cancel=function(){this._token?this._token instanceof a&&this._token.cancel():this._token=i.Cancelled},c.prototype.dispose=function(e){void 0===e&&(e=!1),e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=i.None},c);function c(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(443),o=(r.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},r.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},r.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},r.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},r.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},r.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},r.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},r.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},r.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},r.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},r.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},r.prototype.setFontFeatureSettings=function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},r.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},r.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},r.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},r.prototype.toggleClassName=function(e,t){i.Y(this.domNode,e,t),this._className=this.domNode.className},r.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},r.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},r.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},r.prototype.setBackgroundColor=function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)},r.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},r.prototype.setContain=function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)},r.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},r.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},r.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},r.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},r);function r(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}function s(e){return new o(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(439),o=n(465),r=n(448),s=n(442),a=n(786),l=n(553),u=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},c=Object(r.c)("commandService"),d=(h.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var r=[],s=0,l=e.description.args;s<l.length;s++){var c=l[s];r.push(c.constraint)}var d=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(o.m)(t,r),d.apply(void 0,u([e],t))}}var h=e.id,p=this._commands.get(h);p||(p=new a.a,this._commands.set(h,p));var f=p.unshift(e),g=Object(i.h)((function(){f();var e=n._commands.get(h);null!=e&&e.isEmpty()&&n._commands.delete(h)}));return this._onDidRegisterCommand.fire(h),g},h.prototype.registerCommandAlias=function(e,t){return d.registerCommand(e,(function(e){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return(n=e.get(c)).executeCommand.apply(n,u([t],i))}))},h.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},h.prototype.getCommands=function(){for(var e=new Map,t=0,n=Object(l.d)(this._commands);t<n.length;t++){var i=n[t],o=this.getCommand(i);o&&e.set(i,o)}return e},new h);function h(){this._commands=new Map,this._onDidRegisterCommand=new s.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}},function(e,t,n){"use strict";function i(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var o=(r.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},r);function r(e,t,n,o){void 0===o&&(o=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,o),0),3)}var s=(a.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},a.fromRGBA=function(e){var t=e.r/255,n=e.g/255,i=e.b/255,o=e.a,r=Math.max(t,n,i),s=Math.min(t,n,i),l=0,u=0,c=(s+r)/2,d=r-s;if(0<d){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),r){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new a(l,u,c,o)},a._hue2rgb=function(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},a.toRGBA=function(e){var t,n,i,r=e.h/360,s=e.s,l=e.l,u=e.a;if(0===s)t=n=i=l;else{var c=l<.5?l*(1+s):l+s-l*s,d=2*l-c;t=a._hue2rgb(d,c,r+1/3),n=a._hue2rgb(d,c,r),i=a._hue2rgb(d,c,r-1/3)}return new o(Math.round(255*t),Math.round(255*n),Math.round(255*i),u)},a);function a(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}var l=(u.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},u.fromRGBA=function(e){var t,n=e.r/255,i=e.g/255,o=e.b/255,r=Math.max(n,i,o),s=r-Math.min(n,i,o),a=0===r?0:s/r;return t=0==s?0:r===n?((i-o)/s%6+6)%6:r===i?(o-n)/s+2:(n-i)/s+4,new u(Math.round(60*t),a,r,e.a)},u.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,r=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),l=i-s,u=[0,0,0],c=u[0],d=u[1],h=u[2];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(c=a,h=s):t<360&&(c=s,h=a),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),new o(c,d,h,r)},u);function u(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}var c,d,h,p=(f.fromHex=function(e){return f.Format.CSS.parseHex(e)||f.red},Object.defineProperty(f.prototype,"hsla",{get:function(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"hsva",{get:function(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),f.prototype.equals=function(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)},f.prototype.getRelativeLuminance=function(){return i(.2126*f._relativeLuminanceForComponent(this.rgba.r)+.7152*f._relativeLuminanceForComponent(this.rgba.g)+.0722*f._relativeLuminanceForComponent(this.rgba.b),4)},f._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4)},f.prototype.isLighter=function(){return 128<=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3},f.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance();return e.getRelativeLuminance()<t},f.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},f.prototype.lighten=function(e){return new f(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))},f.prototype.darken=function(e){return new f(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))},f.prototype.transparent=function(e){var t=this.rgba,n=t.r,i=t.g,r=t.b,s=t.a;return new f(new o(n,i,r,s*e))},f.prototype.isTransparent=function(){return 0===this.rgba.a},f.prototype.isOpaque=function(){return 1===this.rgba.a},f.prototype.opposite=function(){return new f(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},f.prototype.toString=function(){return""+f.Format.CSS.format(this)},f.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-i)/o,e.lighten(n)},f.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)},f.white=new f(new o(255,255,255,1)),f.black=new f(new o(0,0,0,1)),f.red=new f(new o(255,0,0,1)),f.blue=new f(new o(0,0,255,1)),f.cyan=new f(new o(0,255,255,1)),f.lightgrey=new f(new o(211,211,211,1)),f.transparent=new f(new o(0,0,0,0)),f);function f(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof l))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=l.toRGBA(e)}}function g(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function m(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}(h=(d=(c=p=p||{}).Format||(c.Format={})).CSS||(d.CSS={})).formatRGB=function(e){return 1===e.rgba.a?"rgb("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+")":c.Format.CSS.formatRGBA(e)},h.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},h.formatHSL=function(e){return 1===e.hsla.a?"hsl("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%)":c.Format.CSS.formatHSLA(e)},h.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"},h.formatHex=function(e){return"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)},h.formatHexA=function(e,t){return void 0===t&&(t=!1),t&&1===e.rgba.a?c.Format.CSS.formatHex(e):"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)+g(Math.round(255*e.rgba.a))},h.format=function(e){return e.isOpaque()?c.Format.CSS.formatHex(e):c.Format.CSS.formatRGBA(e)},h.parseHex=function(e){var t=e.length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t){var n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),i=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));return new c(new o(n,i,r,1))}if(9!==t)return 4!==t?5===t&&(n=m(e.charCodeAt(1)),i=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),s=m(e.charCodeAt(4)),new c(new o(16*n+n,16*i+i,16*r+r,(16*s+s)/255))):(n=m(e.charCodeAt(1)),i=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),new c(new o(16*n+n,16*i+i,16*r+r)));n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),i=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));var s=16*m(e.charCodeAt(7))+m(e.charCodeAt(8));return new c(new o(n,i,r,s/255))}},,,function(e,t,n){var i=n(467),o=n(460),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];r.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},,function(e,t,n){"use strict";var i=n(446),o=n(442),r=n(439),s=n(444),a=n(479),l=n(530),u=n(450),c=n(440),d=n(466),h=n(599),p=(f.prototype.undo=function(e){for(var t=this.editOperations.length-1;0<=t;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f);function f(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}function g(e){return"\n"===e.getEOL()?0:1}var m=(v.prototype.undo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v.prototype.redo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v);function v(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}var y=(b.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},b.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},b.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=g(this.model),n=new m(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},b.prototype.pushEditOperation=function(e,t,n){this.future=[];var i=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof p?i=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(i=new p(this.model.getAlternativeVersionId(),e),this.currentOpenStackElement=i);var o={operations:this.model.applyEdits(t)};return i.editOperations.push(o),i.afterCursorState=b._computeCursorState(n,o.operations),i.afterVersionId=this.model.getVersionId(),i.afterCursorState},b._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){return Object(i.e)(e),null}},b.prototype.undo=function(){if(this.pushStackElement(),0<this.past.length){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Object(i.e)(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},b.prototype.canUndo=function(){return 0<this.past.length||null!==this.currentOpenStackElement},b.prototype.redo=function(){if(0<this.future.length){var e=this.future.pop();try{e.redo(this.model)}catch(e){return Object(i.e)(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},b.prototype.canRedo=function(){return 0<this.future.length},b);function b(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}var _=function(){this.spacesDiff=0,this.looksLikeAlignment=!1};function w(e,t,n,i,o){var r;for(o.spacesDiff=0,o.looksLikeAlignment=!1,r=0;r<t&&r<i&&e.charCodeAt(r)===n.charCodeAt(r);r++);for(var s=0,a=0,l=r;l<t;l++)32===e.charCodeAt(l)?s++:a++;var u=0,c=0;for(l=r;l<i;l++)32===n.charCodeAt(l)?u++:c++;if(!(0<s&&0<a||0<u&&0<c)){var d=Math.abs(a-c),h=Math.abs(s-u);0!==d?h%d!=0||(o.spacesDiff=h/d):0<(o.spacesDiff=h)&&0<=u-1&&u-1<e.length&&u<n.length&&32!==n.charCodeAt(u)&&32===e.charCodeAt(u-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0)}}function C(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,l=[0,0,0,0,0,0,0,0,0],u=new _,c=1;c<=i;c++){for(var d=e.getLineLength(c),h=e.getLineContent(c),p=d<=65536,f=!1,g=0,m=0,v=0,y=0,b=d;y<b;y++){var C=p?h.charCodeAt(y):e.getLineCharCode(c,y);if(9===C)v++;else{if(32!==C){f=!0,g=y;break}m++}}if(f&&(0<v?o++:1<m&&r++,w(s,a,h,g,u),!u.looksLikeAlignment||n&&t===u.spacesDiff)){var S=u.spacesDiff;S<=8&&l[S]++,s=h,a=g}}var O=n;o!==r&&(O=o<r);var x=t;if(O){var k=O?0:.1*i;[2,4,6,8,3,5,7].forEach((function(e){var t=l[e];k<t&&(k=t,x=e)})),4===x&&0<l[4]&&0<l[2]&&l[2]>=l[4]/2&&(x=2)}return{insertSpaces:O,tabSize:x}}function S(e){return(1&e.metadata)>>>0}function O(e,t){e.metadata=254&e.metadata|t<<0}function x(e){return(2&e.metadata)>>>1==1}function k(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function E(e){return(4&e.metadata)>>>2==1}function N(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function L(e){return(8&e.metadata)>>>3==1}function D(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function M(e,t){e.metadata=207&e.metadata|t<<4}function T(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var I=(P.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},P.prototype.setOptions=function(e){this.options=e;var t=this.options.className;N(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),M(this,this.options.stickiness),D(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),T(this,this.options.collapseOnReplaceEdit)},P.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},P.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},P);function P(e,t,n){this.metadata=0,O(((this.parent=this).left=this).right=this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,N(this,!1),M(this,1),D(this,!1),T(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,k(this,!1)}var A=new I(null,0,0);O(((A.parent=A).left=A).right=A,0);var R=(j.prototype.intervalSearch=function(e,t,n,i,o){return this.root===A?[]:function(e,t,n,i,o,r){for(var s=e.root,a=0,l=0,u=0,c=[],d=0;s!==A;)if(x(s))k(s.left,!1),k(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!x(s.left)){if(a+s.maxEnd<t){k(s,!0);continue}if(s.left!==A){s=s.left;continue}}if(n<(l=a+s.start))k(s,!0);else{if(t<=(u=a+s.end)){s.setCachedOffsets(l,u,r);var h=!0;i&&s.ownerId&&s.ownerId!==i&&(h=!1),o&&E(s)&&(h=!1),h&&(c[d++]=s)}k(s,!0),s.right===A||x(s.right)||(a+=s.delta,s=s.right)}}return k(e.root,!1),c}(this,e,t,n,i,o)},j.prototype.search=function(e,t,n){return this.root===A?[]:function(e,t,n,i){for(var o=e.root,r=0,s=0,a=0,l=[],u=0;o!==A;)if(x(o))k(o.left,!1),k(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===A||x(o.left)){s=r+o.start,a=r+o.end,o.setCachedOffsets(s,a,i);var c=!0;t&&o.ownerId&&o.ownerId!==t&&(c=!1),n&&E(o)&&(c=!1),c&&(l[u++]=o),k(o,!0),o.right===A||x(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return k(e.root,!1),l}(this,e,t,n)},j.prototype.collectNodesFromOwner=function(e){return function(e,t){for(var n=e.root,i=[],o=0;n!==A;)x(n)?(k(n.left,!1),k(n.right,!1),n=n.parent):n.left===A||x(n.left)?(n.ownerId===t&&(i[o++]=n),k(n,!0),n.right===A||x(n.right)||(n=n.right)):n=n.left;return k(e.root,!1),i}(this,e)},j.prototype.collectNodesPostOrder=function(){return function(e){for(var t=e.root,n=[],i=0;t!==A;)x(t)?(k(t.left,!1),k(t.right,!1),t=t.parent):t.left===A||x(t.left)?t.right===A||x(t.right)?k(n[i++]=t,!0):t=t.right:t=t.left;return k(e.root,!1),n}(this)},j.prototype.insert=function(e){W(this,e),this._normalizeDeltaIfNecessary()},j.prototype.delete=function(e){V(this,e),this._normalizeDeltaIfNecessary()},j.prototype.resolveNode=function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=n.start+i,r=n.end+i;n.setCachedOffsets(o,r,t)},j.prototype.acceptReplace=function(e,t,n,i){for(var o=function(e,t,n){for(var i=e.root,o=0,r=0,s=0,a=[],l=0;i!==A;)if(x(i))k(i.left,!1),k(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!x(i.left)){if(o+i.maxEnd<t){k(i,!0);continue}if(i.left!==A){i=i.left;continue}}n<(r=o+i.start)?k(i,!0):(t<=(s=o+i.end)&&(i.setCachedOffsets(r,s,0),a[l++]=i),k(i,!0),i.right===A||x(i.right)||(o+=i.delta,i=i.right))}return k(e.root,!1),a}(this,e,e+t),r=0,s=o.length;r<s;r++)V(this,a=o[r]);for(this._normalizeDeltaIfNecessary(),function(e,t,n,i){for(var o=e.root,r=0,s=i-(n-t);o!==A;)if(x(o))k(o.left,!1),k(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),K(o),o=o.parent;else{if(!x(o.left)){if(r+o.maxEnd<t){k(o,!0);continue}if(o.left!==A){o=o.left;continue}}n<r+o.start?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||1073741824<o.delta)&&(e.requestNormalizeDelta=!0),k(o,!0)):(k(o,!0),o.right===A||x(o.right)||(r+=o.delta,o=o.right))}k(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,s=o.length;r<s;r++){var a;(a=o[r]).start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,B(a,e,e+t,n,i),a.maxEnd=a.end,W(this,a)}this._normalizeDeltaIfNecessary()},j.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){for(var t=e.root,n=0;t!==A;)t=t.left===A||x(t.left)?t.right===A||x(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,K(t),k(t,!0),k(t.left,!1),k(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t.parent):(n+=t.delta,t.right):t.left;k(e.root,!1)}(this))},j);function j(){this.root=A,this.requestNormalizeDelta=!1}function F(e,t,n,i){return e<n||!(n<e||1===i)&&(2===i||t)}function B(e,t,n,i,o){var r=(48&e.metadata)>>>4,s=0==r||2==r,a=1==r||2==r,l=n-t,u=i,c=Math.min(l,u),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&(64&e.metadata)>>>6==1&&(e.start=t,h=!0,e.end=t,f=!0);var g=o?1:0<l?2:0;!h&&F(d,s,t,g)&&(h=!0),!f&&F(p,a,t,g)&&(f=!0),0<c&&!o&&(g=u<l?2:0,!h&&F(d,s,t+c,g)&&(h=!0),!f&&F(p,a,t+c,g)&&(f=!0)),g=o?1:0,!h&&F(d,s,n,g)&&(e.start=t+u,h=!0),!f&&F(p,a,n,g)&&(e.end=t+u,f=!0);var m=u-l;h||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,p+m)),e.start>e.end&&(e.end=e.start)}function W(e,t){if(e.root===A)return t.parent=A,t.left=A,t.right=A,O(t,0),e.root=t,e.root;!function(e,t){for(var n=0,i=e.root,o=t.start,r=t.end;;)if(Y(o,r,i.start+n,i.end+n)<0){if(i.left===A){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===A){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}t.parent=i,t.left=A,t.right=A,O(t,1)}(e,t),G(t.parent);for(var n=t;n!==e.root&&1===S(n.parent);){var i;n.parent===n.parent.parent.left?1===S(i=n.parent.parent.right)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&H(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),q(e,n.parent.parent)):1===S(i=n.parent.parent.left)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&q(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),H(e,n.parent.parent))}return O(e.root,0),t}function V(e,t){var n,i;if(t.left===A?((n=(i=t).right).delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===A?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==A;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0)),i===e.root)return O(e.root=n,0),t.detach(),z(),K(n),void(e.root.parent=A);var o,r=1===S(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,O(i,S(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==A&&(i.left.parent=i),i.right!==A&&(i.right.parent=i)),t.detach(),r)return G(n.parent),i!==t&&(G(i),G(i.parent)),void z();for(G(n),G(n.parent),i!==t&&(G(i),G(i.parent));n!==e.root&&0===S(n);)n=n===n.parent.left?(1===S(o=n.parent.right)&&(O(o,0),O(n.parent,1),H(e,n.parent),o=n.parent.right),0===S(o.left)&&0===S(o.right)?(O(o,1),n.parent):(0===S(o.right)&&(O(o.left,0),O(o,1),q(e,o),o=n.parent.right),O(o,S(n.parent)),O(n.parent,0),O(o.right,0),H(e,n.parent),e.root)):(1===S(o=n.parent.left)&&(O(o,0),O(n.parent,1),q(e,n.parent),o=n.parent.left),0===S(o.left)&&0===S(o.right)?(O(o,1),n.parent):(0===S(o.left)&&(O(o.right,0),O(o,1),H(e,o),o=n.parent.left),O(o,S(n.parent)),O(n.parent,0),O(o.left,0),q(e,n.parent),e.root));O(n,0),z()}function z(){(A.parent=A).delta=0,A.start=0,A.end=0}function H(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==A&&(n.left.parent=t),n.parent=t.parent,t.parent===A?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n,K(t),K(n)}function q(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||1073741824<t.delta)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==A&&(n.right.parent=t),n.parent=t.parent,t.parent===A?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n,K(t),K(n)}function U(e){var t=e.end;if(e.left!==A){var n=e.left.maxEnd;t<n&&(t=n)}if(e.right!==A){var i=e.right.maxEnd+e.delta;t<i&&(t=i)}return t}function K(e){e.maxEnd=U(e)}function G(e){for(;e!==A;){var t=U(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Y(e,t,n,i){return e===n?t-i:e-n}var Z=(X.prototype.next=function(){if(this.right!==$)return J(this.right);for(var e=this;e.parent!==$&&e.parent.left!==e;)e=e.parent;return e.parent===$?$:e.parent},X.prototype.prev=function(){if(this.left!==$)return Q(this.left);for(var e=this;e.parent!==$&&e.parent.right!==e;)e=e.parent;return e.parent===$?$:e.parent},X.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},X);function X(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,((this.parent=this).left=this).right=this}var $=new Z(null,0);function J(e){for(;e.left!==$;)e=e.left;return e}function Q(e){for(;e.right!==$;)e=e.right;return e}function ee(e){return e===$?0:e.size_left+e.piece.length+ee(e.right)}function te(e){return e===$?0:e.lf_left+e.piece.lineFeedCnt+te(e.right)}function ne(){$.parent=$}function ie(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==$&&(n.left.parent=t),n.parent=t.parent,t.parent===$?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n}function oe(e,t){var n=t.left;t.left=n.right,n.right!==$&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===$?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n}function re(e,t){var n,i;if(n=t.left===$?(i=t).right:t.right===$?(i=t).left:(i=J(t.right)).right,i===e.root)return(e.root=n).color=0,t.detach(),ne(),void(e.root.parent=$);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,le(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,le(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==$&&(i.left.parent=i),i.right!==$&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,le(e,i)),t.detach(),n.parent.left===n){var r=ee(n),s=te(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,l=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,ae(e,n.parent,a,l)}}if(le(e,n.parent),o)ne();else{for(var u;n!==e.root&&0===n.color;)n=n===n.parent.left?(1===(u=n.parent.right).color&&(u.color=0,n.parent.color=1,ie(e,n.parent),u=n.parent.right),0===u.left.color&&0===u.right.color?(u.color=1,n.parent):(0===u.right.color&&(u.left.color=0,u.color=1,oe(e,u),u=n.parent.right),u.color=n.parent.color,n.parent.color=0,u.right.color=0,ie(e,n.parent),e.root)):(1===(u=n.parent.left).color&&(u.color=0,n.parent.color=1,oe(e,n.parent),u=n.parent.left),0===u.left.color&&0===u.right.color?(u.color=1,n.parent):(0===u.left.color&&(u.right.color=0,u.color=1,ie(e,u),u=n.parent.left),u.color=n.parent.color,n.parent.color=0,u.left.color=0,oe(e,n.parent),e.root));n.color=0,ne()}}function se(e,t){for(le(e,t);t!==e.root&&1===t.parent.color;){var n;t.parent===t.parent.parent.left?1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&ie(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,oe(e,t.parent.parent)):1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&oe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,ie(e,t.parent.parent))}e.root.color=0}function ae(e,t,n,i){for(;t!==e.root&&t!==$;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function le(e,t){var n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=ee((t=t.parent).left)-t.size_left,i=te(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}((($.parent=$).left=$).right=$).color=0;var ue=n(947),ce=65535;function de(e){var t;return(t=new(e[e.length-1]<65536?Uint16Array:Uint32Array)(e.length)).set(e,0),t}var he=function(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o};function pe(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?o+1<r&&10===e.charCodeAt(o+1)?(n[i++]=o+2,o++):n[i++]=o+1:10===s&&(n[i++]=o+1)}return t?de(n):n}var fe=function(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o},ge=function(e,t){this.buffer=e,this.lineStarts=t},me=(ve.prototype.get=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},ve.prototype.get2=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},ve.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},ve.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i<n.length;i++){var o=n[i];(null===o.node.parent||o.nodeStartOffset>=e)&&(t=!(n[i]=null))}if(t){for(var r=[],s=0,a=n;s<a.length;s++){var l=a[s];null!==l&&r.push(l)}this._cache=r}},ve);function ve(e){this._limit=e,this._cache=[]}var ye=(be.prototype.create=function(e,t,n){this._buffers=[new ge("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=$,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,o=0,r=e.length;o<r;o++)if(0<e[o].buffer.length){e[o].lineStarts||(e[o].lineStarts=pe(e[o].buffer));var s=new fe(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s)}this._searchCache=new me(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},be.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),i=2*n,o="",r=0,s=[];if(this.iterate(this.root,(function(a){var l=t.getNodeContent(a),u=l.length;if(r<=n||r+u<i)return o+=l,r+=u,!0;var c=o.replace(/\r\n|\r|\n/g,e);return s.push(new ge(c,pe(c))),o=l,r=u,!0})),0<r){var a=o.replace(/\r\n|\r|\n/g,e);s.push(new ge(a,pe(a)))}this.create(s,e,!0)},be.prototype.getEOL=function(){return this._EOL},be.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},be.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==$;)if(i.left!==$&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},be.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==$;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0!==o.index)return new u.a(n+1,o.remainder+1);var r=i-this.getOffsetAt(n+1,1);return new u.a(n+1,r+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===$)return r=i-e-this.getOffsetAt(n+1,1),new u.a(n+1,r+1);t=t.right}return new u.a(1,1)},be.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return!t||t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t)},be.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),l=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==$;){var u=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){l+=u.substring(c,c+t.remainder);break}l+=u.substr(c,r.piece.length),r=r.next()}return l},be.prototype.getLinesContent=function(){var e=this,t=[],n=0,i="",o=!1;return this.iterate(this.root,(function(r){if(r===$)return!0;var s=r.piece,a=s.length;if(0===a)return!0;var l=e._buffers[s.bufferIndex].buffer,u=e._buffers[s.bufferIndex].lineStarts,c=s.start.line,d=s.end.line,h=u[c]+s.start.column;if(o&&(10===l.charCodeAt(h)&&(h++,a--),t[n++]=i,i="",o=!1,0===a))return!0;if(c===d)return e._EOLNormalized||13!==l.charCodeAt(h+a-1)?i+=l.substr(h,a):(o=!0,i+=l.substr(h,a-1)),!0;i+=e._EOLNormalized?l.substring(h,Math.max(h,u[c+1]-e._EOLLength)):l.substring(h,u[c+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;for(var p=c+1;p<d;p++)i=e._EOLNormalized?l.substring(u[p],u[p+1]-e._EOLLength):l.substring(u[p],u[p+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;return e._EOLNormalized||13!==l.charCodeAt(u[d]+s.end.column-1)?i=l.substr(u[d],s.end.column):(o=!0,0===s.end.column?n--:i=l.substr(u[d],s.end.column-1)),!0})),o&&(t[n++]=i,i=""),t[n++]=i,t},be.prototype.getLength=function(){return this._length},be.prototype.getLineCount=function(){return this._lineCnt},be.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||((this._lastVisitedLine.lineNumber=e)===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value},be.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r)}o=this._buffers[n.node.piece.bufferIndex];var s=(r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return o.buffer.charCodeAt(s)},be.prototype.getLineLength=function(e){if(e!==this.getLineCount())return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength;var t=this.getOffsetAt(e,1);return this.getLength()-t},be.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,l,u,d){var h,p,f,g=this._buffers[e.piece.bufferIndex],m=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,o),y=this.offsetInBuffer(e.piece.bufferIndex,r),b={line:0,column:0};t._wordSeparators?(p=g.buffer.substring(v,y),f=function(e){return e+v},t.reset(-1)):(p=g.buffer,f=function(e){return e},t.reset(v));do{if(h=t.next(p)){if(f(h.index)>=y)return u;this.positionInBuffer(e,f(h.index)-m,b);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,b),w=b.line===o.line?b.column-o.column+i:b.column+1,C=w+h[0].length;if(d[u++]=Object(ue.d)(new c.a(n+_,w,n+_,C),h,a),f(h.index)+h[0].length>=y)return u;if(l<=u)return u}}while(h);return u},be.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new ue.b(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var u=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,u,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==l.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,u,h.piece.end);if(1<=p){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[u.line+p],v=d===e.startLineNumber?e.startColumn:1;if(i<=(r=this.findMatchesInNode(h,s,d,v,u,this.positionInBuffer(h,m-g),t,n,i,r,o)))return o;d+=p}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(y,e.endColumn-1);return r=this._findMatchesInLine(t,s,b,e.endLineNumber,y,r,o,n,i),o}if(i<=(r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(y),d,y,r,o,n,i)))return o;d++,h=(a=this.nodeAt2(d,1)).node,u=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var _=d===e.startLineNumber?e.startColumn-1:0;return b=this.getLineContent(d).substring(_,e.endColumn-1),r=this._findMatchesInLine(t,s,b,e.endLineNumber,_,r,o,n,i),o}var w=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,s,d,w,u,c,t,n,i,r,o),o},be.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,l){var u,d=e.wordSeparators;if(!a&&e.simpleSearch){for(var p=e.simpleSearch,f=p.length,g=n.length,m=-f;-1!==(m=n.indexOf(p,m+f));)if((!d||Object(ue.e)(d,n,g,m,f))&&(s[r++]=new h.b(new c.a(i,m+1+o,i,m+1+f+o),null),l<=r))return r;return r}t.reset(0);do{if((u=t.next(n))&&(s[r++]=Object(ue.d)(new c.a(i,u.index+1+o,i,u.index+1+u[0].length+o),u,a),l<=r))return r}while(u);return r},be.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==$){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,l=a.bufferIndex,u=this.positionInBuffer(o,r);if(0===o.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<ce)return this.appendToNode(o,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,o),this._searchCache.valdiate(e);else if(s+o.piece.length>e){var c=[],d=new fe(a.bufferIndex,u,a.end,this.getLineFeedCnt(a.bufferIndex,u,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,u));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(o,r)){var h={line:d.start.line+1,column:0};d=new fe(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(o,r-1)){var p=this.positionInBuffer(o,r-1);this.deleteNodeTail(o,p),t="\r"+t,0===o.piece.length&&c.push(o)}else this.deleteNodeTail(o,u);else this.deleteNodeTail(o,u);var f=this.createNewPieces(t);0<d.length&&this.rbInsertRight(o,d);for(var g=o,m=0;m<f.length;m++)g=this.rbInsertRight(g,f[m]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,o)}else{var v=this.createNewPieces(t);for(o=this.rbInsertLeft(null,v[0]),m=1;m<v.length;m++)o=this.rbInsertRight(o,v[m])}this.computeBufferMetadata()},be.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===$)){var n=this.nodeAt(e),i=this.nodeAt(e+t),o=n.node,r=i.node;if(o===r){var s=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,i.remainder);if(n.nodeStartOffset!==e)return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o)):this.shrinkNode(o,s,a),void this.computeBufferMetadata();if(t!==o.piece.length)return this.deleteNodeHead(o,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata();var l=o.next();return re(this,o),this.validateCRLFWithPrevNode(l),void this.computeBufferMetadata()}var u=[],c=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,c),this._searchCache.valdiate(e),0===o.piece.length&&u.push(o);var d=this.positionInBuffer(r,i.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&u.push(r);for(var h=o.next();h!==$&&h!==r;h=h.next())u.push(h);var p=0===o.piece.length?o.prev():o;this.deleteNodes(u),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},be.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,o={line:i.start.line+1,column:0},r=new fe(i.bufferIndex,o,i.end,this.getLineFeedCnt(i.bufferIndex,o,i.end),i.length-1);t.piece=r,e+="\n",ae(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),l=s.length-2;0<=l;l--)a=this.rbInsertLeft(a,s[l]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},be.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r<n.length;r++)o=this.rbInsertRight(o,n[r]);this.validateCRLFWithPrevNode(i)},be.prototype.positionInBuffer=function(e,t,n){for(var i=e.piece,o=e.piece.bufferIndex,r=this._buffers[o].lineStarts,s=r[i.start.line]+i.start.column+t,a=i.start.line,l=i.end.line,u=0,c=0,d=0;a<=l&&(d=r[u=a+(l-a)/2|0],u!==l);)if(c=r[u+1],s<d)l=u-1;else{if(!(c<=s))break;a=u+1}return n?(n.line=u,n.column=s-d,null):{line:u,column:s-d}},be.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line+1],r=i[n.line]+n.column;if(r+1<o)return n.line-t.line;var s=r-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line},be.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},be.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)re(this,e[t])},be.prototype.createNewPieces=function(e){if(e.length>ce){for(var t=[];e.length>ce;){var n=e.charCodeAt(ce-1),i=void 0;e=13===n||55296<=n&&n<=56319?(i=e.substring(0,ce-1),e.substring(ce-1)):(i=e.substring(0,ce),e.substring(ce));var o=pe(i);t.push(new fe(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new ge(i,o))}var r=pe(e);return t.push(new fe(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new ge(e,r)),t}var s=this._buffers[0].buffer.length,a=pe(e,!1),l=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},l=this._lastChangeBufferPos;for(var u=0;u<a.length;u++)a[u]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1}else{if(0!==s)for(u=0;u<a.length;u++)a[u]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h={line:d,column:c-this._buffers[0].lineStarts[d]},p=new fe(0,l,h,this.getLineFeedCnt(0,l,h),c-s);return this._lastChangeBufferPos=h,[p]},be.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,i="",o=this._searchCache.get2(e);if(o){n=o.node;var r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var l=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return s.substring(a+r,a+l-t)}i=s.substring(a+r,a+n.piece.length)}else for(var u=0,c=e;n!==$;)if(n.left!==$&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),l=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),u+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:u,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+l-t);if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,u+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==$;){if(s=this._buffers[n.piece.bufferIndex].buffer,0<n.piece.lineFeedCnt)return l=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+s.substring(a,a+l-t);a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+=s.substr(a,n.piece.length),n=n.next()}return i},be.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==$;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},be.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},be.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},be.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),l=a-i,u=s-o,c=n.length+u;e.piece=new fe(n.bufferIndex,n.start,r,a,c),ae(this,e,u,l)},be.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=s-i,l=o-this.offsetInBuffer(n.bufferIndex,r),u=n.length+l;e.piece=new fe(n.bufferIndex,r,n.end,s,u),ae(this,e,l,a)},be.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,l=t,u=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new fe(i.bufferIndex,i.start,l,u,c),ae(this,e,c-s,u-a);var d=new fe(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},be.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=pe(t,!1),r=0;r<o.length;r++)o[r]+=i;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-s}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));var a=this._buffers[0].lineStarts.length-1,l={line:a,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[a]},u=e.piece.length+t.length,c=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,l),h=d-c;e.piece=new fe(e.piece.bufferIndex,e.piece.start,l,d,u),this._lastChangeBufferPos=l,ae(this,e,t.length,h)},be.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};for(var i=0;t!==$;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},be.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==$;)if(n.left!==$&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==$;){if(0<n.piece.lineFeedCnt){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},be.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},be.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},be.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},be.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===$||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;return i!==n.length-1&&!(o+1<n[i+1])&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},be.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==$&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},be.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},be.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},be.prototype.fixCRLF=function(e,t){var n,i=[],o=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var r=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new fe(e.piece.bufferIndex,e.piece.start,n,s,r),ae(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,u=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new fe(t.piece.bufferIndex,a,t.piece.end,u,l),ae(this,t,-1,-1),0===t.piece.length&&i.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<i.length;d++)re(this,i[d])},be.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)re(this,n);else{var i=n.piece,o={line:i.start.line+1,column:0},r=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,o,i.end);n.piece=new fe(i.bufferIndex,o,i.end,s,r),ae(this,n,-1,-1)}return!0}}return!1},be.prototype.iterate=function(e,t){if(e===$)return t($);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},be.prototype.getNodeContent=function(e){if(e===$)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,o)},be.prototype.rbInsertRight=function(e,t){var n=new Z(t,1);if(n.left=$,n.right=$,n.parent=$,n.size_left=0,n.lf_left=0,this.root===$)(this.root=n).color=0;else if(e.right===$)(e.right=n).parent=e;else{var i=J(e.right);(i.left=n).parent=i}return se(this,n),n},be.prototype.rbInsertLeft=function(e,t){var n=new Z(t,1);if(n.left=$,n.right=$,n.parent=$,n.size_left=0,n.lf_left=0,this.root===$)(this.root=n).color=0;else if(e.left===$)(e.left=n).parent=e;else{var i=Q(e.left);(i.right=n).parent=i}return se(this,n),n},be);function be(e,t,n){this.create(e,t,n)}var _e=(we.prototype.mightContainRTL=function(){return this._mightContainRTL},we.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},we.prototype.getBOM=function(){return this._BOM},we.prototype.getEOL=function(){return this._pieceTree.getEOL()},we.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},we.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},we.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),o=this.getPositionAt(n);return new c.a(i.lineNumber,i.column,o.lineNumber,o.column)},we.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},we.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n},we.prototype.getCharacterCountInRange=function(e,t){if(void 0===t&&(t=0),this._mightContainNonBasicASCII){for(var n=0,i=e.startLineNumber,o=e.endLineNumber,r=i;r<=o;r++)for(var a=this.getLineContent(r),l=r===i?e.startColumn-1:0,u=r===o?e.endColumn-1:a.length,c=l;c<u;c++)s.z(a.charCodeAt(c))?(n+=1,c+=1):n+=1;return n+this._getEndOfLine(t).length*(o-i)}return this.getValueLengthInRange(e,t)},we.prototype.getLength=function(){return this._pieceTree.getLength()},we.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},we.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},we.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},we.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},we.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},we.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=s.q(this.getLineContent(e));return-1===t?0:t+1},we.prototype.getLineLastNonWhitespaceColumn=function(e){var t=s.D(this.getLineContent(e));return-1===t?0:t+2},we.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},we.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},we.prototype.applyEdits=function(e,t){for(var n=this._mightContainRTL,i=this._mightContainNonBasicASCII,o=!0,r=[],a=0;a<e.length;a++){var l=e[a];o&&l._isTracked&&(o=!1);var u=l.range;!n&&l.text&&(n=s.i(l.text)),!i&&l.text&&(i=!s.v(l.text)),r[a]={sortIndex:a,identifier:l.identifier||null,range:u,rangeOffset:this.getOffsetAt(u.startLineNumber,u.startColumn),rangeLength:this.getValueLengthInRange(u),lines:l.text?l.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(l.forceMoveMarkers),isAutoWhitespaceEdit:l.isAutoWhitespaceEdit||!1}}r.sort(we._sortOpsAscending);for(var c=!1,d=(a=0,r.length-1);a<d;a++){var p=r[a].range.getEndPosition(),f=r[a+1].range.getStartPosition();if(f.isBeforeOrEqual(p)){if(f.isBefore(p))throw new Error("Overlapping ranges are not allowed!");c=!0}}o&&(r=this._reduceOperations(r));var g=we._getInverseEditRanges(r),m=[];for(a=0;a<r.length;a++){l=r[a];var v=g[a];if(t&&l.isAutoWhitespaceEdit&&l.range.isEmpty())for(var y=v.startLineNumber;y<=v.endLineNumber;y++){var b="";y===v.startLineNumber&&(b=this.getLineContent(l.range.startLineNumber),-1!==s.q(b))||m.push({lineNumber:y,oldContent:b})}}var _=[];for(a=0;a<r.length;a++)l=r[a],v=g[a],_[a]={sortIndex:l.sortIndex,identifier:l.identifier,range:v,text:this.getValueInRange(l.range),forceMoveMarkers:l.forceMoveMarkers};c||_.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=n,this._mightContainNonBasicASCII=i;var w=this._doApplyEdits(r),C=null;if(t&&0<m.length){m.sort((function(e,t){return t.lineNumber-e.lineNumber})),C=[],a=0;for(var S=m.length;a<S;a++)if(y=m[a].lineNumber,!(0<a&&m[a-1].lineNumber===y)){var O=m[a].oldContent,x=this.getLineContent(y);0!==x.length&&x!==O&&-1===s.q(x)&&C.push(y)}}return new h.a(_,w,C)},we.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},we.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new c.a(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],l=0,u=e.length;l<u;l++){var d=e[l],h=d.range;t=t||d.forceMoveMarkers;for(var p=r;p<h.startLineNumber;p++)p===r?a.push(this.getLineContent(p).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(p)));if(h.startLineNumber===r?a.push(this.getLineContent(h.startLineNumber).substring(s-1,h.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var f=0,g=d.lines.length;f<g;f++)0!==f&&a.push("\n"),a.push(d.lines[f]);r=d.range.endLineNumber,s=d.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},we.prototype._doApplyEdits=function(e){e.sort(we._sortOpsDescending);for(var t=[],n=0;n<e.length;n++){var i=e[n],o=i.range.startLineNumber,r=i.range.startColumn,s=i.range.endLineNumber,a=i.range.endColumn;if(o!==s||r!==a||i.lines&&0!==i.lines.length){var l=s-o,u=i.lines?i.lines.length-1:0,d=Math.min(l,u),h=i.lines?i.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,h,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength),d<u){for(var p=[],f=d+1;f<=u;f++)p.push(i.lines[f]);p[p.length-1]=this.getLineContent(o+u-1)}var g=new c.a(o,r,s,a);t.push({range:g,rangeLength:i.rangeLength,text:h,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}}return t},we.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)},we._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,o=null,r=0,s=e.length;r<s;r++){var a,l=e[r],u=void 0;a=o?o.range.endLineNumber===l.range.startLineNumber?(u=n,i+(l.range.startColumn-o.range.endColumn)):(u=n+(l.range.startLineNumber-o.range.endLineNumber),l.range.startColumn):(u=l.range.startLineNumber,l.range.startColumn);var d=void 0;if(l.lines&&0<l.lines.length){var h=l.lines.length,p=l.lines[0],f=l.lines[h-1];d=1===h?new c.a(u,a,u,a+p.length):new c.a(u,a,u+h-1,f.length+1)}else d=new c.a(u,a,u,a);n=d.endLineNumber,i=d.endColumn,t.push(d),o=l}return t},we._sortOpsAscending=function(e,t){var n=c.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},we._sortOpsDescending=function(e,t){var n=c.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},we);function we(e,t,n,i,o,r){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._pieceTree=new ye(e,n,r)}var Ce=(Se.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":t/2<n?"\r\n":"\n"},Se.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(0<this._cr||0<this._lf)||"\n"===t&&(0<this._cr||0<this._crlf)))for(var i=0,o=n.length;i<o;i++){var r=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=pe(r);n[i]=new ge(r,s)}return new _e(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Se);function Se(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}var Oe=(xe.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&s.P(e)&&(this.BOM=s.a,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||55296<=t&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1),this._previousChar=t}},xe.prototype._acceptChunk1=function(e,t){!t&&0===e.length||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},xe.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0;for(var n=1,i=e[0]=0,o=0,r=0,s=!0,a=0,l=t.length;a<l;a++){var u=t.charCodeAt(a);13===u?a+1<l&&10===t.charCodeAt(a+1)?(r++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===u?(o++,e[n++]=a+1):s&&9!==u&&(u<32||126<u)&&(s=!1)}var c=new he(de(e),i,o,r,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new ge(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=s.i(e))},xe.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Ce(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},xe.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=pe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},xe);function xe(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}var ke=function(){this.changeType=1},Ee=function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t},Ne=function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t},Le=function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n},De=function(){this.changeType=5},Me=(Te.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++)if(this.changes[t].changeType===e)return!0;return!1},Te.merge=function(e,t){return new Te([].concat(e.changes).concat(t.changes),t.versionId,e.isUndoing||t.isUndoing,e.isRedoing||t.isRedoing)},Te);function Te(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i}var Ie=(Pe.prototype.merge=function(e){var t=Me.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pe._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pe(t,n)},Pe._mergeChangeEvents=function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}},Pe);function Pe(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}var Ae,Re=n(459),je=n(824),Fe=n(454),Be=n(756),We=n(1054),Ve=n(948),ze=n(452),He=(Ae=function(e,t){return(Ae=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){function n(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),qe=(Ue.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},Ue.prototype.flush=function(e){this._reset(e)},Object.defineProperty(Ue.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Ue.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},Ue.prototype._isValid=function(e){return e<this._len&&this._valid[e]},Ue.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},Ue.prototype._ensureLine=function(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Ue.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},Ue.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=[],o=0;o<t;o++)n[o]=null,i[o]=!1;this._beginState=Re.a(this._beginState,e,n),this._valid=Re.a(this._valid,e,i),this._len+=t}},Ue.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},Ue.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},Ue.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);for(var o=t+1;o<e&&this._isValid(o);)o++;this._invalidLineStartIndex=o}},Ue.prototype.setFakeTokens=function(e){this._setValid(e,!1)},Ue.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,i=t,o=Math.min(n,i);0<=o;o--)this._invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new u.a(e.startLineNumber,e.startColumn),t)},Ue.prototype._acceptDeleteRange=function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},Ue.prototype._acceptInsertText=function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)},Ue);function Ue(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}var Ke,Ge=(He(Ye,Ke=r.a),Ye.prototype.dispose=function(){this._isDisposed=!0,Ke.prototype.dispose.call(this)},Ye.prototype._resetTokenizationState=function(){var e=function(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:Fe.B.get(t.language),o=null;if(n)try{o=n.getInitialState()}catch(e){Object(i.e)(e),n=null}return[n,o]}(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},Ye.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&ze.i((function(){e._isDisposed||e._revalidateTokensNow()}))},Ye.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());for(var t=new Ve.b,n=We.a.create(!1);this._hasLinesToTokenize()&&!(1<n.elapsed())&&!(e<=this._tokenizeOneInvalidLine(t)););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)},Ye.prototype.tokenizeViewport=function(e,t){var n=new Ve.b;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},Ye.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},Ye.prototype.forceTokenization=function(e){var t=new Ve.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},Ye.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(t<e)&&(e<t||this._textModel.getLineLength(e)<2048)},Ye.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},Ye.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},Ye.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),o=t-1,r=this._tokenizationStateStore.invalidLineStartIndex;r<=o;r++){var s=this._textModel.getLineContent(r+1),a=this._tokenizationStateStore.getBeginState(r),l=Ze(n,this._tokenizationSupport,s,a);e.add(r+1,l.tokens),this._tokenizationStateStore.setEndState(i,r,l.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}},Ye.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),o=[],r=null,s=t-1;0<i&&1<=s;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<i){if(r=this._tokenizationStateStore.getBeginState(s-1))break;o.push(this._textModel.getLineContent(s)),i=a}}r=r||this._tokenizationSupport.getInitialState();var l=this._textModel.getLanguageIdentifier(),u=r;for(s=o.length-1;0<=s;s--)u=(h=Ze(l,this._tokenizationSupport,o[s],u)).endState;for(var c=t;c<=n;c++){var d=this._textModel.getLineContent(c),h=Ze(l,this._tokenizationSupport,d,u);e.add(c,h.tokens),this._tokenizationStateStore.setFakeTokens(c-1),u=h.endState}}},Ye);function Ye(e){var t=Ke.call(this)||this;return t._isDisposed=!1,t._textModel=e,t._tokenizationStateStore=new qe,t._tokenizationSupport=null,t._register(Fe.B.onDidChange((function(e){var n=t._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(n.language)&&(t._resetTokenizationState(),t._textModel.clearTokens())}))),t._register(t._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&t._resetTokenizationState()}))),t._register(t._textModel.onDidChangeContentFast((function(e){for(var n=0,i=e.changes.length;n<i;n++){var o=e.changes[n],r=Object(Ve.f)(o.text)[0];t._tokenizationStateStore.applyEdits(o.range,r)}t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeAttached((function(){t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeLanguage((function(){t._resetTokenizationState(),t._textModel.clearTokens()}))),t._resetTokenizationState(),t}function Ze(e,t,n,o){var r=null;if(t)try{r=t.tokenize2(n,o.clone(),0)}catch(e){Object(i.e)(e)}return r=r||Object(Be.e)(e.id,n,o,0),je.a.convertToEndOffset(r.tokens,n.length),r}var Xe=n(882),$e=n(575),Je=n(949),Qe=n(950),et=n(465),tt=n(490);n.d(t,"b",(function(){return lt})),n.d(t,"a",(function(){return _t}));var nt,it=(nt=function(e,t){return(nt=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){function n(){this.constructor=e}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ot(e,t){return("string"==typeof e?function(e){var t=new Oe;return t.acceptChunk(e),t.finish()}(e):e).create(t)}function rt(){throw new Error("Invalid change accessor")}var st,at=0,lt=(it(ut,st=r.a),ut.createFromString=function(e,t,n,i){return void 0===t&&(t=ut.DEFAULT_CREATION_OPTIONS),void 0===n&&(n=null),void 0===i&&(i=null),new ut(e,t,n,i)},ut.resolveOptions=function(e,t){if(t.detectIndentation){var n=C(e,t.tabSize,t.insertSpaces);return new h.e({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h.e({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},ut.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},ut.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},ut.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},ut.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},ut.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,st.prototype.dispose.call(this),this._isDisposing=!1},ut.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},ut.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Ie(e,t))},ut.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=ot(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},ut.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s}},ut.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new ct,this._commandManager=new y(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Me([new ke],this._versionId,!1,!1),this._createContentChanged2(new c.a(1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},ut.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Me([new De],this._versionId,!1,!1),this._createContentChanged2(new c.a(1,1,o,r),0,i,this.getValue(),!1,!1,!1))}},ut.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},ut.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var o=t[n],r=o.cachedAbsoluteStart-o.start,s=this._buffer.getOffsetAt(o.range.startLineNumber,o.range.startColumn),a=this._buffer.getOffsetAt(o.range.endLineNumber,o.range.endColumn);o.cachedAbsoluteStart=s,o.cachedAbsoluteEnd=a,o.cachedVersionId=e,o.start=s-r,o.end=a-r,K(o)}},ut.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ut.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ut.prototype.isAttachedToEditor=function(){return 0<this._attachedEditorCount},ut.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},ut.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},ut.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},ut.prototype.isDisposed=function(){return this._isDisposed},ut.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);1e4<=o?t+=o:e+=o}return e<t},Object.defineProperty(ut.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),ut.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},ut.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},ut.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,i=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new h.e({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(!this._options.equals(r)){var s=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(s)}},ut.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=C(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},ut._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;var r="";if(!n){var s=Math.floor(i/t);for(i%=t,o=0;o<s;o++)r+="\t"}for(o=0;o<i;o++)r+=" ";return r},ut.normalizeIndentation=function(e,t,n){var i=s.q(e);return-1===i&&(i=e.length),ut._normalizeIndentationFromWhitespace(e.substring(0,i),t,n)+e.substring(i)},ut.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),ut.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},ut.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},ut.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},ut.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},ut.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},ut.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)},ut.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},ut.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},ut.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},ut.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i},ut.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i},ut.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},ut.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},ut.prototype.getCharacterCountInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)},ut.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},ut.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},ut.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},ut.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},ut.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},ut.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},ut.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},ut.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},ut.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},ut.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;n=o<1?t=1:i<o?(t=i,this.getLineMaxColumn(t)):(t=0|o,r<=1?1:(h=this.getLineMaxColumn(t))<=r?h:0|r);var s,a,l=e.endLineNumber,u=e.endColumn;if(l<1)a=s=1;else if(i<l)s=i,a=this.getLineMaxColumn(s);else{var h;s=0|l,a=u<=1?1:(h=this.getLineMaxColumn(s))<=u?h:0|u}return o===t&&r===n&&l===s&&u===a&&e instanceof c.a&&!(e instanceof d.a)?e:new c.a(t,n,s,a)},ut.prototype._isValidPosition=function(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(this._buffer.getLineCount()<e)return!1;if(1===t)return!0;if(this.getLineMaxColumn(e)<t)return!1;if(1===n){var i=this._buffer.getLineCharCode(e,t-2);if(s.z(i))return!1}return!0},ut.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(i<1)return new u.a(1,1);if(r<i)return new u.a(r,this.getLineMaxColumn(r));if(o<=1)return new u.a(i,1);var a=this.getLineMaxColumn(i);if(a<=o)return new u.a(i,a);if(1===n){var l=this._buffer.getLineCharCode(i,o-2);if(s.z(l))return new u.a(i,o-1)}return new u.a(i,o)},ut.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof u.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)},ut.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(o,r,0))return!1;if(1!==t)return!0;var a=1<i?this._buffer.getLineCharCode(n,i-2):0,l=1<r&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=s.z(a),c=s.z(l);return!u&&!c},ut.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof c.a&&!(e instanceof d.a)&&this._isValidRange(e,1))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,o=t.column,r=n.lineNumber,a=n.column,l=1<o?this._buffer.getLineCharCode(i,o-2):0,u=1<a&&a<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,a-2):0,h=s.z(l),p=s.z(u);return h||p?i===r&&o===a?new c.a(i,o-1,r,a-1):h&&p?new c.a(i,o-1,r,a+1):h?new c.a(i,o-1,r,a):new c.a(i,o,r,a+1):new c.a(i,o,r,a)},ut.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},ut.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new c.a(1,1,e,this.getLineMaxColumn(e))},ut.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},ut.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=c.a.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var l=new ue.a(e,n,i,o).parseSearchRequest();return l?this.findMatchesLineByLine(a,l,r,s):[]}return ue.c.findMatches(this,new ue.a(e,n,i,o),a,r,s)},ut.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new ue.a(e,n,i,o).parseSearchRequest();if(!a)return null;var l=this.getLineCount(),u=new c.a(s.lineNumber,s.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(u,a,r,1);return ue.c.findNextMatch(this,new ue.a(e,n,i,o),s,r),0<d.length?d[0]:(u=new c.a(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),0<(d=this.findMatchesLineByLine(u,a,r,1)).length?d[0]:null)}return ue.c.findNextMatch(this,new ue.a(e,n,i,o),s,r)},ut.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return ue.c.findPreviousMatch(this,new ue.a(e,n,i,o),s,r)},ut.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},ut.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map((function(e){return{range:i.validateRange(e.range),text:e.text}})),r=!0,s=0,a=e.length;s<a;s++){for(var l=e[s],u=!1,d=0,h=o.length;d<h;d++){var p=(y=o[d].range).startLineNumber>l.endLineNumber,f=l.startLineNumber>y.endLineNumber;if(!p&&!f){u=!0;break}}if(!u){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var g=this._trimAutoWhitespaceLines[s],m=this.getLineMaxColumn(g),v=!0;for(d=0,h=o.length;d<h;d++){var y=o[d].range,b=o[d].text;if(!(g<y.startLineNumber||g>y.endLineNumber||g===y.startLineNumber&&y.startColumn===m&&y.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(0)||g===y.startLineNumber&&1===y.startColumn&&y.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(b.length-1))){v=!1;break}}v&&t.push({range:new c.a(g,1,g,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},ut.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),r=this._buffer.getLineCount(),s=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],l=i;for(t=0,n=s.length;t<n;t++){var u=s[t],c=Object(Ve.f)(u.text),d=c[0],h=c[1],p=c[2];this._tokens.acceptEdit(u.range,d,h),this._tokens2.acceptEdit(u.range,d,h,p,0<u.text.length?u.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(u.rangeOffset,u.rangeLength,u.text.length,u.forceMoveMarkers);for(var f=u.range.startLineNumber,g=u.range.endLineNumber,m=g-f,v=d,y=Math.min(m,v),b=v-m,_=y;0<=_;_--){var w=f+_,C=r-l-b+w;a.push(new Ee(w,this.getLineContent(C)))}if(y<m){var S=f+y;a.push(new Ne(S+1,g))}if(y<v){for(var O=f+y,x=v-y,k=r-l-x+O+1,E=[],N=0;N<x;N++){var L=k+N;E[L-k]=this.getLineContent(L)}a.push(new Le(O+1,f+v,E))}l+=b}this._increaseVersionId(),this._emitContentChangedEvent(new Me(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return o.reverseEdits},ut.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ut.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype.canUndo=function(){return this._commandManager.canUndo()},ut.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ut.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype.canRedo=function(){return this._commandManager.canRedo()},ut.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._changeDecorations=function(e,t){var n=this,o={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,St(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i))}},r=null;try{r=t(o)}catch(t){Object(i.e)(t)}return o.addDecoration=rt,o.changeDecoration=rt,o.changeDecorationOptions=rt,o.removeDecoration=rt,o.deltaDecorations=rt,r},ut.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),0===(e=e||[]).length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},ut.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Ct[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),r,s,o),i.setOptions(Ct[n]),this._decorationsTree.insert(i),i.id},ut.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var o=t[n];this._decorationsTree.delete(o),delete this._decorations[o.id]}},ut.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},ut.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},ut.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},ut.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new c.a(r,1,s,a),n,i)},ut.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},ut.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},ut.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},ut.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},ut.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd))}return e},ut.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},ut.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),r=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,i),this._decorationsTree.insert(n)}},ut.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];n&&(!(!n.options.overviewRuler||!n.options.overviewRuler.color)!=!(!t.overviewRuler||!t.overviewRuler.color)?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t))},ut.prototype._deltaDecorationsImpl=function(e,t,n){for(var i=this.getVersionId(),o=t.length,r=0,s=n.length,a=0,l=new Array(s);r<o||a<s;){var u=null;if(r<o){for(;!(u=this._decorations[t[r++]])&&r<o;);u&&this._decorationsTree.delete(u)}if(a<s){if(!u){var c=++this._lastDecorationId,d=this._instanceId+";"+c;u=new I(d,0,0),this._decorations[d]=u}var h=n[a],p=this._validateRangeRelaxedNoAllocations(h.range),f=St(h.options),g=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),m=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);u.ownerId=e,u.reset(i,g,m,p),u.setOptions(f),this._decorationsTree.insert(u),l[a]=u.id,a++}else u&&delete this._decorations[u.id]}return l},ut.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},ut.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];t.push({fromLineNumber:o.startLineNumber,toLineNumber:o.startLineNumber+o.tokens.length-1});for(var r=0,s=o.tokens.length;r<s;r++)this.setLineTokens(o.startLineNumber+r,o.tokens[r])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},ut.prototype.setSemanticTokens=function(e){this._tokens2.set(e),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},ut.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},ut.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},ut.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},ut.prototype.resetTokenization=function(){this._tokenization.reset()},ut.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},ut.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},ut.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},ut.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},ut.prototype._getLineTokens=function(e){var t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)},ut.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},ut.prototype.getModeId=function(){return this._languageIdentifier.language},ut.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},ut.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new u.a(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))},ut.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),o=i.findTokenIndexAtOffset(t.column-1),r=ut._findLanguageBoundaries(i,o),s=r[0],a=r[1],l=Object(Xe.d)(t.column,$e.a.getWordDefinition(i.getLanguageId(o)),n.substring(s,a),s);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(0<o&&s===t.column-1){var u=ut._findLanguageBoundaries(i,o-1),c=u[0],d=u[1],h=Object(Xe.d)(t.column,$e.a.getWordDefinition(i.getLanguageId(o-1)),n.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null},ut._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;0<=o&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);for(var r=e.getLineContent().length,s=(o=t,e.getCount());o<s&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]},ut.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},ut.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),o=this._getLineTokens(i.lineNumber),r=o.getLanguageId(o.findTokenIndexAtOffset(i.column-1)),s=$e.a.getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},ut.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},ut.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=n.getCount(),o=this._buffer.getLineContent(t),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;var s=$e.a.getBracketsSupport(n.getLanguageId(r));if(s&&!Object(Je.b)(n.getStandardTokenType(r))){for(var a=Math.max(0,e.column-1-s.maxBracketLength),l=r-1;0<=l;l--){var u=n.getEndOffset(l);if(u<=a)break;Object(Je.b)(n.getStandardTokenType(l))&&(a=u)}for(var c=Math.min(o.length,e.column-1+s.maxBracketLength),d=null;m=Qe.a.findNextBracketInRange(s.forwardRegex,t,o,a,c);){if(m.startColumn<=e.column&&e.column<=m.endColumn){var h=o.substring(m.startColumn-1,m.endColumn-1).toLowerCase();(v=this._matchFoundBracket(m,s.textIsBracket[h],s.textIsOpenBracket[h]))&&(d=v)}a=m.endColumn-1}if(d)return d}if(0<r&&n.getStartOffset(r)===e.column-1){var p=r-1,f=$e.a.getBracketsSupport(n.getLanguageId(p));if(f&&!Object(Je.b)(n.getStandardTokenType(p))){for(a=Math.max(0,e.column-1-f.maxBracketLength),c=Math.min(o.length,e.column-1+f.maxBracketLength),l=1+p;l<i;l++){var g=n.getStartOffset(l);if(c<=g)break;Object(Je.b)(n.getStandardTokenType(l))&&(c=g)}var m,v;if((m=Qe.a.findPrevBracketInRange(f.reversedRegex,t,o,a,c))&&m.startColumn<=e.column&&e.column<=m.endColumn&&(h=o.substring(m.startColumn-1,m.endColumn-1).toLowerCase(),v=this._matchFoundBracket(m,f.textIsBracket[h],f.textIsOpenBracket[h])))return v}}return null},ut.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var i;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i]}else if(i=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,i];return null},ut.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=function(t,n,r,s){for(;;){var a=Qe.a.findPrevBracketInRange(i,t,n,r,s);if(!a)break;var l=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(l)?o++:e.isClose(l)&&o--,0===o)return a;s=a.startColumn-1}return null},s=t.lineNumber;1<=s;s--){var a=this._getLineTokens(s),l=a.getCount(),u=this._buffer.getLineContent(s),c=l-1,d=u.length,h=u.length;s===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,h=t.column-1);for(var p=!0;0<=c;c--){var f,g=a.getLanguageId(c)===n&&!Object(Je.b)(a.getStandardTokenType(c));if(g)p?d=a.getStartOffset(c):(d=a.getStartOffset(c),h=a.getEndOffset(c));else if(p&&d!==h&&(f=r(s,u,d,h)))return f;p=g}if(p&&d!==h&&(f=r(s,u,d,h)))return f}return null},ut.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=function(t,n,r,s){for(;;){var a=Qe.a.findNextBracketInRange(i,t,n,r,s);if(!a)break;var l=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(l)?o++:e.isClose(l)&&o--,0===o)return a;r=a.endColumn-1}return null},s=this.getLineCount(),a=t.lineNumber;a<=s;a++){var l=this._getLineTokens(a),u=l.getCount(),c=this._buffer.getLineContent(a),d=0,h=0,p=0;a===t.lineNumber&&(d=l.findTokenIndexAtOffset(t.column-1),h=t.column-1,p=t.column-1);for(var f=!0;d<u;d++){var g,m=l.getLanguageId(d)===n&&!Object(Je.b)(l.getStandardTokenType(d));if(m)f||(h=l.getStartOffset(d)),p=l.getEndOffset(d);else if(f&&h!==p&&(g=r(a,c,h,p)))return g;f=m}if(f&&h!==p&&(g=r(a,c,h,p)))return g}return null},ut.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;1<=o;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),l=s-1,u=a.length,c=a.length;o===t.lineNumber&&(l=r.findTokenIndexAtOffset(t.column-1),u=t.column-1,c=t.column-1,n!==(h=r.getLanguageId(l))&&(n=h,i=$e.a.getBracketsSupport(n)));for(var d=!0;0<=l;l--){var h;if(n!==(h=r.getLanguageId(l))){if(i&&d&&u!==c){if(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c))return this._toFoundBracket(i,p);d=!1}n=h,i=$e.a.getBracketsSupport(n)}var p,f=!!i&&!Object(Je.b)(r.getStandardTokenType(l));if(f)d?u=r.getStartOffset(l):(u=r.getStartOffset(l),c=r.getEndOffset(l));else if(i&&d&&u!==c&&(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c)))return this._toFoundBracket(i,p);d=f}if(i&&d&&u!==c&&(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c)))return this._toFoundBracket(i,p)}return null},ut.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=this.getLineCount(),i=-1,o=null,r=t.lineNumber;r<=n;r++){var s=this._getLineTokens(r),a=s.getCount(),l=this._buffer.getLineContent(r),u=0,c=0,d=0;r===t.lineNumber&&(u=s.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1,i!==(p=s.getLanguageId(u))&&(i=p,o=$e.a.getBracketsSupport(i)));for(var h=!0;u<a;u++){var p;if(i!==(p=s.getLanguageId(u))){if(o&&h&&c!==d){if(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d))return this._toFoundBracket(o,f);h=!1}i=p,o=$e.a.getBracketsSupport(i)}var f,g=!!o&&!Object(Je.b)(s.getStandardTokenType(u));if(g)h||(c=s.getStartOffset(u)),d=s.getEndOffset(u);else if(o&&h&&c!==d&&(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d)))return this._toFoundBracket(o,f);h=g}if(o&&h&&c!==d&&(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d)))return this._toFoundBracket(o,f)}return null},ut.prototype.findEnclosingBrackets=function(e,t){var n=this;void 0===t&&(t=1073741824);for(var i=this.validatePosition(e),o=this.getLineCount(),r=new Map,s=[],a=function(e,t){if(!r.has(e)){for(var n=[],i=0,o=t?t.brackets.length:0;i<o;i++)n[i]=0;r.set(e,n)}s=r.get(e)},l=function(e,t,i,o,r){for(;;){var a=Qe.a.findNextBracketInRange(e.forwardRegex,t,i,o,r);if(!a)break;var l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),u=e.textIsBracket[l];if(u&&(u.isOpen(l)?s[u.index]++:u.isClose(l)&&s[u.index]--,-1===s[u.index]))return n._matchFoundBracket(a,u,!1);o=a.endColumn-1}return null},u=-1,c=null,d=Date.now(),h=i.lineNumber;h<=o;h++){if(t<Date.now()-d)return null;var p=this._getLineTokens(h),f=p.getCount(),g=this._buffer.getLineContent(h),m=0,v=0,y=0;h===i.lineNumber&&(m=p.findTokenIndexAtOffset(i.column-1),v=i.column-1,y=i.column-1,u!==(_=p.getLanguageId(m))&&a(u=_,c=$e.a.getBracketsSupport(u)));for(var b=!0;m<f;m++){var _;if(u!==(_=p.getLanguageId(m))){if(c&&b&&v!==y){if(w=l(c,h,g,v,y))return w;b=!1}a(u=_,c=$e.a.getBracketsSupport(u))}var w,C=!!c&&!Object(Je.b)(p.getStandardTokenType(m));if(C)b||(v=p.getStartOffset(m)),y=p.getEndOffset(m);else if(c&&b&&v!==y&&(w=l(c,h,g,v,y)))return w;b=C}if(c&&b&&v!==y&&(w=l(c,h,g,v,y)))return w}return null},ut.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},ut.computeIndentLevel=function(e,t){for(var n=0,i=0,o=e.length;i<o;){var r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===o?-1:n},ut.prototype._computeIndentLevel=function(e){return ut.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},ut.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(e<1||o<e)throw new Error("Illegal value for lineNumber");for(var r=$e.a.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,l=-1,u=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||e-1<a)){l=a=-1;for(var t=e-2;0<=t;t--){var n=i._computeIndentLevel(t);if(0<=n){a=t,l=n;break}}}if(-2===u)for(c=u=-1,t=e;t<o;t++){var r=i._computeIndentLevel(t);if(0<=r){u=t,c=r;break}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){p=h=-1;for(var t=e-2;0<=t;t--){var n=i._computeIndentLevel(t);if(0<=n){h=t,p=n;break}}}if(-1!==f&&(-2===f||f<e-1))for(g=f=-1,t=e;t<o;t++){var r=i._computeIndentLevel(t);if(0<=r){f=t,g=r;break}}},v=0,y=!0,b=0,_=!0,w=0,C=0;y||_;C++){var S,O=e-C,x=e+C;if(0!==C&&(O<1||O<t)&&(y=!1),0!==C&&(o<x||n<x)&&(_=!1),5e4<C&&(_=y=!1),y){var k;if(k=0<=(S=this._computeIndentLevel(O-1))?(u=O-1,c=S,Math.ceil(S/this._options.indentSize)):(d(O),this._getIndentLevelForWhitespaceLine(s,l,c)),0===C){if(v=O,b=x,0===(w=k))return{startLineNumber:v,endLineNumber:b,indent:w};continue}w<=k?v=O:y=!1}_&&(w<=(0<=(S=this._computeIndentLevel(x-1))?(h=x-1,p=S,Math.ceil(S/this._options.indentSize)):(m(x),this._getIndentLevelForWhitespaceLine(s,p,g)))?b=x:_=!1)}return{startLineNumber:v,endLineNumber:b,indent:w}},ut.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||n<e)throw new Error("Illegal value for startLineNumber");if(t<1||n<t)throw new Error("Illegal value for endLineNumber");for(var i=$e.a.getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,l=-2,u=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(0<=h)s=c-1,a=h,r[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){a=s=-1;for(var p=c-2;0<=p;p--)if(0<=(f=this._computeIndentLevel(p))){s=p,a=f;break}}if(-1!==l&&(-2===l||l<c-1))for(u=l=-1,p=c;p<n;p++){var f;if(0<=(f=this._computeIndentLevel(p))){l=p,u=f;break}}r[d]=this._getIndentLevelForWhitespaceLine(o,a,u)}}return r},ut.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n||e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},ut.MODEL_SYNC_LIMIT=52428800,ut.LARGE_FILE_SIZE_THRESHOLD=20971520,ut.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,ut.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:l.c.tabSize,indentSize:l.c.indentSize,insertSpaces:l.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:l.c.trimAutoWhitespace,largeFileOptimizations:l.c.largeFileOptimizations},ut);function ut(e,t,n,i){void 0===i&&(i=null);var r=st.call(this)||this;r._onWillDispose=r._register(new o.a),r.onWillDispose=r._onWillDispose.event,r._onDidChangeDecorations=r._register(new xt),r.onDidChangeDecorations=r._onDidChangeDecorations.event,r._onDidChangeLanguage=r._register(new o.a),r.onDidChangeLanguage=r._onDidChangeLanguage.event,r._onDidChangeLanguageConfiguration=r._register(new o.a),r.onDidChangeLanguageConfiguration=r._onDidChangeLanguageConfiguration.event,r._onDidChangeTokens=r._register(new o.a),r.onDidChangeTokens=r._onDidChangeTokens.event,r._onDidChangeOptions=r._register(new o.a),r.onDidChangeOptions=r._onDidChangeOptions.event,r._onDidChangeAttached=r._register(new o.a),r.onDidChangeAttached=r._onDidChangeAttached.event,r._eventEmitter=r._register(new Nt),at++,r.id="$model"+at,r.isForSimpleWidget=t.isForSimpleWidget,r._associatedResource=null==i?a.a.parse("inmemory://model/"+at):i,r._attachedEditorCount=0,r._buffer=ot(e,t.defaultEOL),r._options=ut.resolveOptions(r._buffer,t);var l=r._buffer.getLineCount(),u=r._buffer.getValueLengthInRange(new c.a(1,1,l,r._buffer.getLineLength(l)+1),0);return t.largeFileOptimizations?r._isTooLargeForTokenization=ut.LARGE_FILE_SIZE_THRESHOLD<u||ut.LARGE_FILE_LINE_COUNT_THRESHOLD<l:r._isTooLargeForTokenization=!1,r._isTooLargeForSyncing=ut.MODEL_SYNC_LIMIT<u,r._versionId=1,r._alternativeVersionId=1,r._isDisposed=!1,r._isDisposing=!1,r._languageIdentifier=n||Be.a,r._languageRegistryListener=$e.a.onDidChange((function(e){e.languageIdentifier.id===r._languageIdentifier.id&&r._onDidChangeLanguageConfiguration.fire({})})),r._instanceId=s.M(at),r._lastDecorationId=0,r._decorations=Object.create(null),r._decorationsTree=new ct,r._commandManager=new y(r),r._isUndoing=!1,r._isRedoing=!1,r._trimAutoWhitespaceLines=null,r._tokens=new Ve.d,r._tokens2=new Ve.e,r._tokenization=new Ge(r),r}var ct=(dt.prototype.intervalSearch=function(e,t,n,i,o){var r=this._decorationsTree0.intervalSearch(e,t,n,i,o),s=this._decorationsTree1.intervalSearch(e,t,n,i,o);return r.concat(s)},dt.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var o=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return o.concat(r)},dt.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},dt.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},dt.prototype.insert=function(e){L(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},dt.prototype.delete=function(e){L(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},dt.prototype.resolveNode=function(e,t){L(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},dt.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},dt);function dt(){this._decorationsTree0=new R,this._decorationsTree1=new R}function ht(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function pt(e){this.color=e.color||"",this.darkColor=e.darkColor||""}var ft,gt=(it(mt,ft=pt),mt.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},mt.prototype.invalidateCachedColor=function(){this._resolvedColor=null},mt.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""},mt);function mt(e){var t=ft.call(this,e)||this;return t._resolvedColor=null,t.position="number"==typeof e.position?e.position:h.d.Center,t}var vt,yt=(it(bt,vt=pt),bt.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},bt.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},bt.prototype._resolveColor=function(e,t){return"string"==typeof e?tt.a.fromHex(e):t.getColor(e.id)},bt);function bt(e){var t=vt.call(this,e)||this;return t.position=e.position,t}var _t=(wt.register=function(e){return new wt(e)},wt.createDynamic=function(e){return new wt(e)},wt);function wt(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?ht(e.className):null,this.hoverMessage=Object(et.o)(e.hoverMessage),this.glyphMarginHoverMessage=Object(et.o)(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new gt(e.overviewRuler):null,this.minimap=e.minimap?new yt(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?ht(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?ht(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?ht(e.marginClassName):null,this.inlineClassName=e.inlineClassName?ht(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?ht(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?ht(e.afterContentClassName):null}_t.EMPTY=_t.register({});var Ct=[_t.register({stickiness:0}),_t.register({stickiness:1}),_t.register({stickiness:2}),_t.register({stickiness:3})];function St(e){return e instanceof _t?e:_t.createDynamic(e)}var Ot,xt=(it(kt,Ot=r.a),kt.prototype.beginDeferredEmit=function(){this._deferredCnt++},kt.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},kt.prototype.fire=function(){this._shouldFire=!0},kt);function kt(){var e=Ot.call(this)||this;return e._actual=e._register(new o.a),e.event=e._actual.event,e._deferredCnt=0,e._shouldFire=!1,e}var Et,Nt=(it(Lt,Et=r.a),Lt.prototype.beginDeferredEmit=function(){this._deferredCnt++},Lt.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},Lt.prototype.fire=function(e){0<this._deferredCnt?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},Lt);function Lt(){var e=Et.call(this)||this;return e._fastEmitter=e._register(new o.a),e.fastEvent=e._fastEmitter.event,e._slowEmitter=e._register(new o.a),e.slowEvent=e._slowEmitter.event,e._deferredCnt=0,e._deferredEvent=null,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n.n(i),r=n(134);function s(e){var t=[];return o.a.Children.forEach(e,(function(e){Object(r.isFragment)(e)&&e.props?t=t.concat(s(e.props.children)):t.push(e)})),t}},,,,function(e,t,n){"use strict";n(46),n(628),n(589)},function(e,t,n){"use strict";var i=n(0),o=n(1),r=n(12),s=n.n(r),a=n(16),l=n.n(a),u=n(13),c=n.n(u),d=n(770),h=n.n(d),p=n(629),f=n.n(p),g=n(518),m=n(591),v=n(482);function y(e,t){var n=window.getComputedStyle,i=n?n(e):e.currentStyle;if(i)return i[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var b={getForm:function(){return l()({},m.b.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var i=this,o=Object(v.e)(e,t,n),r=o.names,s=o.callback,a=o.options;return this.validateFields(r,a,(function(e,t){if(e){var n=i.fieldsStore.getValidFieldsName(),o=void 0,r=void 0;if(n.forEach((function(t){if(f()(e,t)){var n=i.getFieldInstance(t);if(n){var s=c.a.findDOMNode(n),a=s.getBoundingClientRect().top;"hidden"!==s.type&&(void 0===r||a<r)&&(r=a,o=s)}}})),o){var u=a.container||function(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var i=y(t,"overflowY");if(t!==e&&("auto"===i||"scroll"===i)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(o);h()(o,u,l()({onlyScrollIfNeeded:!0},a.scroll))}}"function"==typeof s&&s(e,t)}))}},_=function(e){return Object(g.a)(l()({},e),[b])},w=n(514),C=n(33),S=n(77),O=n(51),x=n(27),k=n(52),E=n(709),N=n(708),L=n(18),D="data-__meta",M="data-__field",T=n(169),I=n.n(T)()({labelAlign:"right",vertical:!1});function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var V=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},z=Object(O.a)("success","warning","error","validating","");Object(O.a)("left","right");var H=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=F(e).apply(this,arguments),(t=!o||"object"!==P(o)&&"function"!=typeof o?B(n):o).helpShow=!1,t.onLabelClick=function(){var e=t.props.id||t.getId();if(e){var n=u.findDOMNode(B(t)).querySelector('[id="'.concat(e,'"]'));n&&n.focus&&n.focus()}},t.onHelpAnimEnd=function(e,n){(t.helpShow=n)||t.setState({})},t.renderFormItem=function(e){var n,o=e.getPrefixCls,r=t.props,a=r.prefixCls,l=r.style,u=r.className,c=V(r,["prefixCls","style","className"]),d=o("form",a),h=t.renderChildren(d),p=(R(n={},"".concat(d,"-item"),!0),R(n,"".concat(d,"-item-with-help"),t.helpShow),R(n,"".concat(u),!!u),n);return i.createElement(E.a,A({className:s()(p),style:l},Object(C.default)(c,["id","htmlFor","label","labelAlign","labelCol","wrapperCol","help","extra","validateStatus","hasFeedback","required","colon"]),{key:"row"}),h)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.children,n=e.help,i=e.validateStatus,o=e.id;Object(x.a)(this.getControls(t,!0).length<=1||void 0!==n||void 0!==i,"Form.Item","Cannot generate `validateStatus` and `help` automatically, while there are more than one `getFieldDecorator` in it."),Object(x.a)(!o,"Form.Item","`id` is deprecated for its label `htmlFor`. Please use `htmlFor` directly.")}},{key:"getHelpMessage",value:function(){var e=this.props.help;if(void 0===e&&this.getOnlyControl()){var t=this.getField().errors;return t?t.map((function(e,t){var n=null;return i.isValidElement(e)?n=e:i.isValidElement(e.message)&&(n=e.message),n?i.cloneElement(n,{key:t}):e.message})).reduce((function(e,t){return[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e),[" ",t])}),[]).slice(1):""}return e}},{key:"getControls",value:function(t,n){for(var o=[],r=i.Children.toArray(t),s=0;s<r.length&&(n||!(0<o.length));s++){var a=r[s];(!a.type||a.type!==e&&"FormItem"!==a.type.displayName)&&a.props&&(D in a.props?o.push(a):a.props.children&&(o=o.concat(this.getControls(a.props.children,n))))}return o}},{key:"getOnlyControl",value:function(){var e=this.getControls(this.props.children,!1)[0];return void 0!==e?e:null}},{key:"getChildProp",value:function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp(D)}},{key:"getField",value:function(){return this.getChildProp(M)}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""}},{key:"isRequired",value:function(){var e=this.props.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))}},{key:"renderHelp",value:function(e){var t=this.getHelpMessage(),n=t?i.createElement("div",{className:"".concat(e,"-explain"),key:"help"},t):null;return n&&(this.helpShow=!!n),i.createElement(k.a,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(e){var t=this.props.extra;return t?i.createElement("div",{className:"".concat(e,"-extra")},t):null}},{key:"renderValidateWrapper",value:function(e,t,n,o){var r=this.props,a=this.getOnlyControl,l=void 0===r.validateStatus&&a?this.getValidateStatus():r.validateStatus,u="".concat(e,"-item-control");l&&(u=s()("".concat(e,"-item-control"),{"has-feedback":r.hasFeedback||"validating"===l,"has-success":"success"===l,"has-warning":"warning"===l,"has-error":"error"===l,"is-validating":"validating"===l}));var c="";switch(l){case"success":c="check-circle";break;case"warning":c="exclamation-circle";break;case"error":c="close-circle";break;case"validating":c="loading";break;default:c=""}var d=r.hasFeedback&&c?i.createElement("span",{className:"".concat(e,"-item-children-icon")},i.createElement(L.a,{type:c,theme:"loading"===c?"outlined":"filled"})):null;return i.createElement("div",{className:u},i.createElement("span",{className:"".concat(e,"-item-children")},t,d),n,o)}},{key:"renderWrapper",value:function(e,t){var n=this;return i.createElement(I.Consumer,{key:"wrapper"},(function(o){var r=o.wrapperCol,a=o.vertical,l=n.props.wrapperCol,u=("wrapperCol"in n.props?l:r)||{},c=s()("".concat(e,"-item-control-wrapper"),u.className);return i.createElement(I.Provider,{value:{vertical:a}},i.createElement(N.a,A({},u,{className:c}),t))}))}},{key:"renderLabel",value:function(e){var t=this;return i.createElement(I.Consumer,{key:"label"},(function(n){var o,r=n.vertical,a=n.labelAlign,l=n.labelCol,u=n.colon,c=t.props,d=c.label,h=c.labelCol,p=c.labelAlign,f=c.colon,g=c.id,m=c.htmlFor,v=t.isRequired(),y=("labelCol"in t.props?h:l)||{},b="labelAlign"in t.props?p:a,_="".concat(e,"-item-label"),w=s()(_,"left"===b&&"".concat(_,"-left"),y.className),C=d,S=!0===f||!1!==u&&!1!==f;S&&!r&&"string"==typeof d&&""!==d.trim()&&(C=d.replace(/[\uff1a:]\s*$/,""));var O=s()((R(o={},"".concat(e,"-item-required"),v),R(o,"".concat(e,"-item-no-colon"),!S),o));return d?i.createElement(N.a,A({},y,{className:w}),i.createElement("label",{htmlFor:m||g||t.getId(),className:O,title:"string"==typeof d?d:"",onClick:t.onLabelClick},C)):null}))}},{key:"renderChildren",value:function(e){var t=this.props.children;return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,t,this.renderHelp(e),this.renderExtra(e)))]}},{key:"render",value:function(){return i.createElement(S.a,null,this.renderFormItem)}}])&&j(t.prototype,n),e}();function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}H.defaultProps={hasFeedback:!1},H.propTypes={prefixCls:o.string,label:o.oneOfType([o.string,o.node]),labelCol:o.object,help:o.oneOfType([o.node,o.bool]),validateStatus:o.oneOf(z),hasFeedback:o.bool,wrapperCol:o.object,className:o.string,id:o.string,children:o.node,colon:o.bool};var X=Object(O.a)("horizontal","inline","vertical"),$=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,Y(e).call(this,t))).renderForm=function(e){var t,o=e.getPrefixCls,r=n.props,a=r.prefixCls,l=r.hideRequiredMark,u=r.className,c=void 0===u?"":u,d=r.layout,h=o("form",a),p=s()(h,(K(t={},"".concat(h,"-horizontal"),"horizontal"===d),K(t,"".concat(h,"-vertical"),"vertical"===d),K(t,"".concat(h,"-inline"),"inline"===d),K(t,"".concat(h,"-hide-required-mark"),l),t),c),f=Object(C.default)(n.props,["prefixCls","className","layout","form","hideRequiredMark","wrapperCol","labelAlign","labelCol","colon"]);return i.createElement("form",U({},f,{className:p}))},Object(x.a)(!t.form,"Form","It is unnecessary to pass `form` to `Form` after antd@1.7.0."),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){var e=this.props,t=e.wrapperCol,n=e.labelAlign,o=e.labelCol,r=e.layout,s=e.colon;return i.createElement(I.Provider,{value:{wrapperCol:t,labelAlign:n,labelCol:o,vertical:"vertical"===r,colon:s}},i.createElement(S.a,null,this.renderForm))}}])&&G(t.prototype,n),e}();$.defaultProps={colon:!0,layout:"horizontal",hideRequiredMark:!1,onSubmit:function(e){e.preventDefault()}},$.propTypes={prefixCls:o.string,layout:o.oneOf(X),children:o.any,onSubmit:o.func,hideRequiredMark:o.bool,colon:o.bool},$.Item=H,$.createFormField=w.a,$.create=function(e){return _(U(U({fieldNameProp:"id"},0<arguments.length&&void 0!==e?e:{}),{fieldMetaProp:D,fieldDataProp:M}))},t.a=$},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("codeEditorService")},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d}));var i=n(465);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"==typeof e[n]?t[n]=o(e[n]):t[n]=e[n]})),t}function r(e){if(!e||"object"!=typeof e)return e;for(var t=[e];0<t.length;){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e}var s=Object.prototype.hasOwnProperty;function a(e,t){return function e(t,n,o){if(Object(i.l)(t))return t;var r=n(t);if(void 0!==r)return r;if(Object(i.d)(t)){for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];a.push(e(c,n,o))}return a}if(Object(i.i)(t)){if(o.has(t))throw new Error("Cannot clone recursive data-structure");o.add(t);var d={};for(var h in t)s.call(t,h)&&(d[h]=e(t[h],n,o));return o.delete(t),d}return t}(e,t,new Set)}function l(e,t,n){return void 0===n&&(n=!0),Object(i.i)(e)?(Object(i.i)(t)&&Object.keys(t).forEach((function(o){o in e?n&&(Object(i.i)(e[o])&&Object(i.i)(t[o])?l(e[o],t[o],n):e[o]=t[o]):e[o]=t[o]})),e):t}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return Object.keys(t).forEach((function(n){return e[n]=t[n]}))})),e}function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1}else{var o=[];for(i in e)o.push(i);o.sort();var r=[];for(i in t)r.push(i);if(r.sort(),!c(o,r))return!1;for(n=0;n<o.length;n++)if(!c(e[o[n]],t[o[n]]))return!1}return!0}function d(e,t,n){var i=t(e);return void 0===i?n:i}},function(e,t,n){"use strict";var i=n(480),o=n(0),r=n(12),s=n.n(r),a=n(39),l=n(77),u=n(18);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},v=a.a.Group,y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,f(e).apply(this,arguments))).renderButton=function(e){var n=e.getPopupContainer,r=e.getPrefixCls,l=t.props,c=l.prefixCls,h=l.type,p=l.disabled,f=l.onClick,g=l.htmlType,y=l.children,b=l.className,_=l.overlay,w=l.trigger,C=l.align,S=l.visible,O=l.onVisibleChange,x=l.placement,k=l.getPopupContainer,E=l.href,N=l.icon,L=void 0===N?o.createElement(u.a,{type:"ellipsis"}):N,D=l.title,M=m(l,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title"]),T=r("dropdown-button",c),I={align:C,overlay:_,disabled:p,trigger:p?[]:w,onVisibleChange:O,placement:x,getPopupContainer:k||n};return"visible"in t.props&&(I.visible=S),o.createElement(v,d({},M,{className:s()(T,b)}),o.createElement(a.a,{type:h,disabled:p,onClick:f,htmlType:g,href:E,title:D},y),o.createElement(i.a,I,o.createElement(a.a,{type:h},L)))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(l.a,null,this.renderButton)}}])&&h(t.prototype,n),e}();y.defaultProps={placement:"bottomRight",type:"default"},i.a.Button=y,t.a=i.a},function(e,t,n){"use strict";var i=n(0),o=n(556),r=n(12),s=n.n(r),a=n(33),l=n(25),u=n(1),c=n(169),d=n.n(c)()({inlineCollapsed:!1});function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,m(e).apply(this,arguments))).onKeyDown=function(e){t.subMenu.onKeyDown(e)},t.saveSubMenu=function(e){t.subMenu=e},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,r=t.popupClassName;return i.createElement(d.Consumer,null,(function(t){var a=t.antdMenuTheme;return i.createElement(o.d,p({},e.props,{ref:e.saveSubMenu,popupClassName:s()("".concat(n,"-").concat(a),r)}))}))}}])&&f(t.prototype,n),e}();y.contextTypes={antdMenuTheme:u.string},y.isSubMenu=1;var b=y,_=n(167),w=n(697);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},L=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=x(this,k(e).apply(this,arguments))).onKeyDown=function(e){t.menuItem.onKeyDown(e)},t.saveMenuItem=function(e){t.menuItem=e},t.renderItem=function(e){var n=e.siderCollapsed,r=t.props,s=r.level,a=r.children,l=r.rootPrefixCls,u=t.props,c=u.title,h=N(u,["title"]);return i.createElement(d.Consumer,null,(function(e){var r=e.inlineCollapsed,u={title:c||(1===s?a:"")};return n||r||(u.title=null,u.visible=!1),i.createElement(_.a,S({},u,{placement:"right",overlayClassName:"".concat(l,"-inline-collapsed-tooltip")}),i.createElement(o.b,S({},h,{title:c,ref:t.saveMenuItem})))}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){return i.createElement(w.a.Consumer,null,this.renderItem)}}])&&O(t.prototype,n),e}();L.isMenuItem=!0;var D=n(77),M=n(27),T=n(56),I=n(782);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function F(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}function B(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}n.d(t,"a",(function(){return H}));var z=function(){function e(t){var n,r;return R(this,e),(n=B(this,W(e).call(this,t))).handleMouseEnter=function(e){n.restoreModeVerticalFromInline();var t=n.props.onMouseEnter;t&&t(e)},n.handleTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,i=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(i)?i.animVal:i,r="font-size"===e.propertyName&&0<=o.indexOf("anticon");(t||r)&&n.restoreModeVerticalFromInline()},n.handleClick=function(e){n.handleOpenChange([]);var t=n.props.onClick;t&&t(e)},n.handleOpenChange=function(e){n.setOpenKeys(e);var t=n.props.onOpenChange;t&&t(e)},n.renderMenu=function(e){var t,r,l,u=e.getPopupContainer,c=e.getPrefixCls,d=n.props,h=d.prefixCls,p=d.className,f=d.theme,g=d.collapsedWidth,m=Object(a.default)(n.props,["collapsedWidth","siderCollapsed"]),v=n.getRealMenuMode(),y=n.getOpenMotionProps(v),b=c("menu",h),_=s()(p,"".concat(b,"-").concat(f),(t={},r="".concat(b,"-inline-collapsed"),l=n.getInlineCollapsed(),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t)),w=A({openKeys:n.state.openKeys,onOpenChange:n.handleOpenChange,className:_,mode:v},y);return"inline"!==v&&(w.onClick=n.handleClick),!n.getInlineCollapsed()||0!==g&&"0"!==g&&"0px"!==g||(w.openKeys=[]),i.createElement(o.e,A({getPopupContainer:u},m,w,{prefixCls:b,onTransitionEnd:n.handleTransitionEnd,onMouseEnter:n.handleMouseEnter}))},Object(M.a)(!("onOpen"in t||"onClose"in t),"Menu","`onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),Object(M.a)(!("inlineCollapsed"in t&&"inline"!==t.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(M.a)(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),"openKeys"in t?r=t.openKeys:"defaultOpenKeys"in t&&(r=t.defaultOpenKeys),n.state={openKeys:r||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:t},n}return V(e,i.Component),F(e,[{key:"componentWillUnmount",value:function(){T.a.cancel(this.mountRafId)}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"getRealMenuMode",value:function(){var e=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&e)return"inline";var t=this.props.mode;return e?"vertical":t}},{key:"getInlineCollapsed",value:function(){var e=this.props.inlineCollapsed;return void 0!==this.props.siderCollapsed?this.props.siderCollapsed:e}},{key:"getOpenMotionProps",value:function(e){var t=this.props,n=t.openTransitionName,i=t.openAnimation,o=t.motion;return o?{motion:o}:i?(Object(M.a)("string"==typeof i,"Menu","`openAnimation` do not support object. Please use `motion` instead."),{openAnimation:i}):n?{openTransitionName:n}:"horizontal"===e?{motion:{motionName:"slide-up"}}:"inline"===e?{motion:I.a}:{motion:{motionName:this.state.switchingModeFromInline?"":"zoom-big"}}}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"render",value:function(){return i.createElement(d.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1,antdMenuTheme:this.props.theme}},i.createElement(D.a,null,this.renderMenu))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(i.switchingModeFromInline=!0),"openKeys"in e?i.openKeys=e.openKeys:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(i.switchingModeFromInline=!0,i.inlineOpenKeys=t.openKeys,i.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(i.openKeys=t.inlineOpenKeys,i.inlineOpenKeys=[])),i}}]),e}();z.defaultProps={className:"",theme:"light",focusable:!1},Object(l.polyfill)(z);var H=function(){function e(){return R(this,e),B(this,W(e).apply(this,arguments))}return V(e,i.Component),F(e,[{key:"render",value:function(){var e=this;return i.createElement(w.a.Consumer,null,(function(t){return i.createElement(z,A({},e.props,t))}))}}]),e}();H.Divider=o.a,H.Item=L,H.SubMenu=b,H.ItemGroup=o.c},function(e,t,n){var i=n(166).Uint8Array;e.exports=i},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var i=n(528),o=n(547),r=n(458),s=n(473),a=n(492),l=n(474),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),c=!n&&o(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var i=n(16),o=n.n(i),r=n(22),s=n.n(r),a=function e(t){s()(this,e),o()(this,t)};function l(e){return e instanceof a}function u(e){return l(e)?e:new a(e)}},function(e,t,n){"use strict";n(46),n(551),n(131)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,r,s){!e.required||n.hasOwnProperty(e.field)&&!i.isEmptyValue(t,s||e.type)||o.push(i.format(r.messages.required,e.fullField))}},function(e,t,n){var i=n(626);e.exports=function(e,t,n){return null==e?e:i(e,t,n)}},function(e,t,n){"use strict";var i=n(54),o=n.n(i),r=n(34),s=n.n(r),a=n(16),l=n.n(a),u=n(578),c=n.n(u),d=n(0),h=n.n(d),p=n(600),f=n.n(p),g=n(179),m=n(604),v=n.n(m),y=(n(133),n(511)),b=n.n(y),_=n(517),w=n.n(_),C=n(460),S=n.n(C),O=n(22),x=n.n(O),k=n(37),E=n.n(k),N=n(514),L=n(482);function D(e,t){return 0===t.indexOf(e)&&-1!==[".","["].indexOf(t[e.length])}function M(e){return Object(L.c)(e,(function(e,t){return Object(N.b)(t)}),"You must wrap field data with `createFormField`.")}var T=(E()(I,[{key:"updateFields",value:function(e){this.fields=M(e)}},{key:"flattenRegisteredFields",value:function(e){var t=this.getAllFieldsName();return Object(L.c)(e,(function(e){return 0<=t.indexOf(e)}),"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,i=l()({},this.fields,e),o={};Object.keys(n).forEach((function(e){o[e]=t.getValueFromFields(e,i)})),Object.keys(o).forEach((function(e){var n=o[e],r=t.getFieldMeta(e);if(r&&r.normalize){var s=r.normalize(n,t.getValueFromFields(e,t.fields),o);s!==n&&(i[e]=l()({},i[e],{value:s}))}})),this.fields=i}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var i=t[n];return i&&"value"in i&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],i=e.fieldsMeta[t];n&&i&&Object(L.h)(i.validate)&&(e.fields[t]=l()({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var i=this.getFieldMeta(e);return i&&i.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||Object(L.l)(e,t)&&0<=[".","["].indexOf(e[t.length])}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,i=e.valuePropName,o=this.getField(t),r="value"in o?o.value:e.initialValue;return n?n(r):s()({},i,r)}},{key:"getField",value:function(e){return l()({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return w()(e,t.name,Object(N.a)(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return w()(t,n,Object(N.a)(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return w()(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var i="["===n[0][e.length],o=i?e.length:e.length+1;return n.reduce((function(e,n){return w()(e,n.slice(o),t(n))}),i?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every((function(t){return!D(t,e)&&!D(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),I);function I(e){x()(this,I),P.call(this),this.fields=M(e),this.fieldsMeta={}}var P=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),i=e.fieldsMeta;Object.keys(n).forEach((function(t){i[t]&&e.setFieldMeta(t,l()({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,i){return w()(t,i,e.getValueFromFields(i,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return Object(L.d)(e.getFieldMember(t,"errors"))}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};t.a=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,i=e.onFieldsChange,r=e.onValuesChange,a=e.mapProps,u=void 0===a?L.i:a,d=e.mapPropsToFields,p=e.fieldNameProp,m=e.fieldMetaProp,y=e.fieldDataProp,_=e.formPropName,C=void 0===_?"form":_,O=e.name,x=e.withRef;return function(e){var a=f()({displayName:"Form",mixins:t,getInitialState:function(){var e=this,t=d&&d(this.props);return this.fieldsStore=new T(t||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.renderFields={},this.domFields={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},componentDidMount:function(){this.cleanUpUselessFields()},componentWillReceiveProps:function(e){d&&this.fieldsStore.updateFields(d(e))},componentDidUpdate:function(){this.cleanUpUselessFields()},onCollectCommon:function(e,t,n){var i=this.fieldsStore.getFieldMeta(e);if(i[t])i[t].apply(i,c()(n));else if(i.originalProps&&i.originalProps[t]){var o;(o=i.originalProps)[t].apply(o,c()(n))}var a=i.getValueFromEvent?i.getValueFromEvent.apply(i,c()(n)):L.g.apply(void 0,c()(n));if(r&&a!==this.fieldsStore.getFieldValue(e)){var u=this.fieldsStore.getAllValues(),d={};u[e]=a,Object.keys(u).forEach((function(e){return w()(d,e,u[e])})),r(l()(s()({},C,this.getForm()),this.props),w()({},e,a),d)}var h=this.fieldsStore.getField(e);return{name:e,field:l()({},h,{value:a,touched:!0}),fieldMeta:i}},onCollect:function(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var r=this.onCollectCommon(e,t,i),a=r.name,u=r.field,c=r.fieldMeta.validate;this.fieldsStore.setFieldsAsDirty();var d=l()({},u,{dirty:Object(L.h)(c)});this.setFields(s()({},a,d))},onCollectValidate:function(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var r=this.onCollectCommon(e,t,i),s=r.field,a=r.fieldMeta,u=l()({},s,{dirty:!0});this.fieldsStore.setFieldsAsDirty(),this.validateFieldsInternal([u],{action:t,options:{firstFields:!!a.validateFirst}})},getCacheBind:function(e,t,n){this.cachedBind[e]||(this.cachedBind[e]={});var i=this.cachedBind[e];return i[t]&&i[t].oriFn===n||(i[t]={fn:n.bind(this,e,t),oriFn:n}),i[t].fn},getFieldDecorator:function(e,t){var n=this,i=this.getFieldProps(e,t);return function(t){n.renderFields[e]=!0;var o=n.fieldsStore.getFieldMeta(e),r=t.props;return o.originalProps=r,o.ref=t.ref,h.a.cloneElement(t,l()({},i,n.fieldsStore.getFieldValuePropValue(o)))}},getFieldProps:function(e,t){var n=this,i=1<arguments.length&&void 0!==t?t:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var o=l()({name:e,trigger:"onChange",valuePropName:"value",validate:[]},i),r=o.rules,s=o.trigger,a=o.validateTrigger,u=void 0===a?s:a,c=o.validate,d=this.fieldsStore.getFieldMeta(e);"initialValue"in o&&(d.initialValue=o.initialValue);var h=l()({},this.fieldsStore.getFieldValuePropValue(o),{ref:this.getCacheBind(e,e+"__ref",this.saveRef)});p&&(h[p]=O?O+"_"+e:e);var f=Object(L.k)(c,r,u),g=Object(L.f)(f);g.forEach((function(t){h[t]||(h[t]=n.getCacheBind(e,t,n.onCollectValidate))})),s&&-1===g.indexOf(s)&&(h[s]=this.getCacheBind(e,s,this.onCollect));var v=l()({},d,o,{validate:f});return this.fieldsStore.setFieldMeta(e,v),m&&(h[m]=v),y&&(h[y]=this.fieldsStore.getField(e)),this.renderFields[e]=!0,h},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n=e.validate.filter((function(e){return!t||0<=e.trigger.indexOf(t)})).map((function(e){return e.rules}));return Object(L.b)(n)},setFields:function(e,t){var n=this,o=this.fieldsStore.flattenRegisteredFields(e);if(this.fieldsStore.setFields(o),i){var r=Object.keys(o).reduce((function(e,t){return w()(e,t,n.fieldsStore.getField(t))}),{});i(l()(s()({},C,this.getForm()),this.props),r,this.fieldsStore.getNestedAllFields())}this.forceUpdate(t)},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,i=this.fieldsStore.flattenRegisteredFields(e),o=Object.keys(i).reduce((function(e,t){if(n[t]){var o=i[t];e[t]={value:o}}return e}),{});if(this.setFields(o,t),r){var a=this.fieldsStore.getAllValues();r(l()(s()({},C,this.getForm()),this.props),e,a)}},saveRef:function(e,t,n){if(!n){var i=this.fieldsStore.getFieldMeta(e);return i.preserve||(this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:i},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e);var o=this.fieldsStore.getFieldMeta(e);if(o){var r=o.ref;if(r){if("string"==typeof r)throw new Error("can not set ref string for "+e);"function"==typeof r?r(n):Object.prototype.hasOwnProperty.call(r,"current")&&(r.current=n)}}this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);0<Object.keys(n).length&&this.setFields(n),e?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields(s()({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,i){var o=this,r=t.fieldNames,s=t.action,a=t.options,u=void 0===a?{}:a,c={},d={},h={},p={};if(e.forEach((function(e){var t=e.name;if(!0===u.force||!1!==e.dirty){var n=o.fieldsStore.getFieldMeta(t),i=l()({},e);i.errors=void 0,i.validating=!0,i.dirty=!0,c[t]=o.getRules(n,s),d[t]=i.value,h[t]=i}else e.errors&&w()(p,t,{errors:e.errors})})),this.setFields(h),Object.keys(d).forEach((function(e){d[e]=o.fieldsStore.getFieldValue(e)})),i&&Object(L.j)(h))i(Object(L.j)(p)?null:p,this.fieldsStore.getFieldsValue(r));else{var f=new v.a(c);n&&f.messages(n),f.validate(d,u,(function(e){var t=l()({},p);e&&e.length&&e.forEach((function(e){var n=e.field,i=n;Object.keys(c).some((function(e){var t=c[e]||[];if(e===n)return i=e,!0;if(t.every((function(e){return"array"!==e.type}))||0!==n.indexOf(e+"."))return!1;var o=n.slice(e.length+1);return!!/^\d+$/.test(o)&&(i=e,!0)}));var o=b()(t,i);"object"==typeof o&&!Array.isArray(o)||w()(t,i,{errors:[]}),b()(t,i.concat(".errors")).push(e)}));var n=[],s={};Object.keys(c).forEach((function(e){var i=b()(t,e),r=o.fieldsStore.getField(e);S()(r.value,d[e])?(r.errors=i&&i.errors,r.value=d[e],r.validating=!1,r.dirty=!1,s[e]=r):n.push({name:e})})),o.setFields(s),i&&(n.length&&n.forEach((function(e){var n=e.name,i=[{message:n+" need to revalidate",field:n}];w()(t,n,{expired:!0,errors:i})})),i(Object(L.j)(t)?null:t,o.fieldsStore.getFieldsValue(r)))}))}},validateFields:function(e,t,n){var i=this,o=new Promise((function(o,r){var s=Object(L.e)(e,t,n),a=s.names,l=s.options,u=Object(L.e)(e,t,n).callback;if(!u||"function"==typeof u){var c=u;u=function(e,t){c&&c(e,t),e?r({errors:e,values:t}):o(t)}}var d=a?i.fieldsStore.getValidFieldsFullName(a):i.fieldsStore.getValidFieldsName(),h=d.filter((function(e){var t=i.fieldsStore.getFieldMeta(e);return Object(L.h)(t.validate)})).map((function(e){var t=i.fieldsStore.getField(e);return t.value=i.fieldsStore.getFieldValue(e),t}));h.length?("firstFields"in l||(l.firstFields=d.filter((function(e){return!!i.fieldsStore.getFieldMeta(e).validateFirst}))),i.validateFieldsInternal(h,{fieldNames:d,options:l},u)):u(null,i.fieldsStore.getFieldsValue(d))}));return o.catch((function(e){return console.error,e})),o},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))},render:function(){var t=this.props,n=t.wrappedComponentRef,i=o()(t,["wrappedComponentRef"]),r=s()({},C,this.getForm());x?r.ref="wrappedComponent":n&&(r.ref=n);var a=u.call(this,l()({},r,i));return h.a.createElement(e,a)}});return Object(L.a)(Object(g.a)(a),e)}}},function(e,t,n){var i=n(464);e.exports=function(){this.__data__=new i,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var i=n(464),o=n(502),r=n(503);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(s)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var i=n(263),o=n(494),r=n(261),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&o(e.length)&&!!s[i(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var i=n(267),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===o&&i.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(262)(e))},function(e,t){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return z})),n.d(t,"d",(function(){return ne})),n.d(t,"j",(function(){return We})),n.d(t,"b",(function(){return it})),n.d(t,"c",(function(){return ot})),n.d(t,"i",(function(){return rt})),n.d(t,"e",(function(){return at}));var i,o=n(445),r=n(452),s=n(882),a=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u=8,c=(d.prototype.hasChanged=function(e){return this._values[e]},d);function d(e){this._values=e}var h=(p.prototype._read=function(e){return this._values[e]},p.prototype.get=function(e){return this._values[e]},p.prototype._write=function(e,t){this._values[e]=t},p);function p(){this._values=[]}var f=(g.prototype.compute=function(e,t,n){return n},g);function g(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}var m=(v.prototype.validate=function(e){return this.defaultValue},v);function v(e,t){void 0===t&&(t=null),this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}var y=(b.prototype.validate=function(e){return void 0===e?this.defaultValue:e},b.prototype.compute=function(e,t,n){return n},b);function b(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}var _,w=(a(C,_=y),C.boolean=function(e,t){return void 0===e?t:"false"!==e&&Boolean(e)},C.prototype.validate=function(e){return C.boolean(e,this.defaultValue)},C);function C(e,t,n,i){return void 0===i&&(i=void 0),void 0!==i&&(i.type="boolean",i.default=n),_.call(this,e,t,n,i)||this}var S,O=(a(x,S=y),x.clampedInt=function(e,t,n,i){var o;return void 0===e?o=t:(o=parseInt(e,10),isNaN(o)&&(o=t)),o=Math.max(n,o),0|Math.min(i,o)},x.prototype.validate=function(e){return x.clampedInt(e,this.defaultValue,this.minimum,this.maximum)},x);function x(e,t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return void 0!==r&&(r.type="integer",r.default=n,r.minimum=i,r.maximum=o),(s=S.call(this,e,t,n,r)||this).minimum=i,s.maximum=o,s}var k,E=(a(N,k=y),N.clamp=function(e,t,n){return e<t?t:n<e?n:e},N.float=function(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n},N.prototype.validate=function(e){return this.validationFn(N.float(e,this.defaultValue))},N);function N(e,t,n,i,o){var r=this;return void 0!==o&&(o.type="number",o.default=n),(r=k.call(this,e,t,n,o)||this).validationFn=i,r}var L,D=(a(M,L=y),M.string=function(e,t){return"string"!=typeof e?t:e},M.prototype.validate=function(e){return M.string(e,this.defaultValue)},M);function M(e,t,n,i){return void 0===i&&(i=void 0),void 0!==i&&(i.type="string",i.default=n),L.call(this,e,t,n,i)||this}var T,I=(a(P,T=y),P.stringSet=function(e,t,n){return"string"!=typeof e||-1===n.indexOf(e)?t:e},P.prototype.validate=function(e){return P.stringSet(e,this.defaultValue,this._allowedValues)},P);function P(e,t,n,i,o){void 0===o&&(o=void 0);var r=this;return void 0!==o&&(o.type="string",o.enum=i,o.default=n),(r=T.call(this,e,t,n,o)||this)._allowedValues=i,r}var A,R=(a(j,A=f),j.prototype.validate=function(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},j);function j(e,t,n,i,o,r,s){void 0===s&&(s=void 0);var a=this;return void 0!==s&&(s.type="string",s.enum=o,s.default=i),(a=A.call(this,e,t,n,s)||this)._allowedValues=o,a._convert=r,a}var F,B=(a(W,F=f),W.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},W.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},W);function W(){return F.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[o.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),o.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),o.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:o.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}var V,z,H,q=(a(U,V=f),U.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertSpace:w.boolean(t.insertSpace,this.defaultValue.insertSpace)}},U);function U(){var e={insertSpace:!0};return V.call(this,13,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:o.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this}(H=z=z||{})[H.Line=1]="Line",H[H.Block=2]="Block",H[H.Underline=3]="Underline",H[H.LineThin=4]="LineThin",H[H.BlockOutline=5]="BlockOutline",H[H.UnderlineThin=6]="UnderlineThin";var K,G=(a(Y,K=m),Y.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(26)&&(i+=" "+t.get(26)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(55)?i+=" mouse-default":"copy"===t.get(55)&&(i+=" mouse-copy"),t.get(85)&&(i+=" showUnused"),i},Y);function Y(){return K.call(this,104,[55,26])||this}var Z,X=(a($,Z=w),$.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},$);function $(){return Z.call(this,25,"emptySelectionClipboard",!0,{description:o.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}var J,Q=(a(ee,J=f),ee.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:w.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":I.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},ee);function ee(){var e={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return J.call(this,28,"find",e,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:o.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[o.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),o.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),o.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:o.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:o.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:o.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this}var te,ne=(a(ie,te=f),ie.prototype.validate=function(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?ie.OFF:"true"===e?ie.ON:e:Boolean(e)?ie.ON:ie.OFF},ie.OFF='"liga" off, "calt" off',ie.ON='"liga" on, "calt" on',ie);function ie(){return te.call(this,35,"fontLigatures",ie.OFF,{anyOf:[{type:"boolean",description:o.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:o.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:o.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}var oe,re=(a(se,oe=m),se.prototype.compute=function(e,t,n){return e.fontInfo},se);function se(){return oe.call(this,34)||this}var ae,le=(a(ue,ae=y),ue.prototype.validate=function(e){var t=E.float(e,this.defaultValue);return 0===t?it.fontSize:E.clamp(t,6,100)},ue.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},ue);function ue(){return ae.call(this,36,"fontSize",it.fontSize,{type:"number",minimum:6,maximum:100,default:it.fontSize,description:o.a("fontSize","Controls the font size in pixels.")})||this}var ce,de=(a(he,ce=f),he.prototype.validate=function(e){var t,n,i,o,r;if("object"!=typeof e)return this.defaultValue;var s=e;return{multiple:I.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:I.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:I.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:I.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=s.multipleImplementations)&&void 0!==o?o:I.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=s.multipleReferences)&&void 0!==r?r:I.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:D.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:D.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:D.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:D.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:D.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},he);function he(){var e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[o.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),o.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),o.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return ce.call(this,41,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:o.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":l({description:o.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":l({description:o.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":l({description:o.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":l({description:o.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":l({description:o.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:o.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,description:o.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,description:o.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,description:o.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,description:o.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this}var pe,fe=(a(ge,pe=f),ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),delay:O.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(t.sticky,this.defaultValue.sticky)}},ge);function ge(){var e={enabled:!0,delay:300,sticky:!0};return pe.call(this,44,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:o.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:o.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:o.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this}var me,ve=(a(ye,me=m),ye.prototype.compute=function(e,t,n){return ye.computeLayout(t,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},ye.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=e.get(40),h=0!==e.get(50).renderType,p=0|e.get(51),f=e.get(54),g=f.enabled,m=f.side,v=f.renderCharacters,y=2<=c?Math.round(2*f.scale):f.scale,b=0|f.maxColumn,_=e.get(78),w=0|_.verticalScrollbarSize,C=_.verticalHasArrows,S=0|_.arrowSize,x=0|_.horizontalScrollbarSize,k=e.get(48),E=e.get(30);if("string"==typeof k&&/^\d+(\.\d+)?ch$/.test(k)){var N=parseFloat(k.substr(0,k.length-2));n=O.clampedInt(N*a,0,0,1e3)}else n=O.clampedInt(k,0,0,1e3);E&&(n+=16);var L=0;if(h){var D=Math.max(s,p);L=Math.round(D*l)}var M=0;d&&(M=r);var T,I,P,A,R=0,j=R+M,F=j+L,B=F+n,W=i-M-L-n;if(g){var V=y/c;T=v?1:2,b<(P=Math.max(0,Math.floor((W-w-2)*V/(a+V)))+u)/V&&(P=Math.floor(b*V)),A=W-P,"left"===m?(I=0,R+=P,j+=P,F+=P,B+=P):I=i-P-w}else T=P=I=0,A=W;var z=C?S:0;return{width:i,height:o,glyphMarginLeft:R,glyphMarginWidth:M,lineNumbersLeft:j,lineNumbersWidth:L,decorationsLeft:F,decorationsWidth:n,contentLeft:B,contentWidth:A,renderMinimap:T,minimapLeft:I,minimapWidth:P,viewportColumn:Math.max(1,Math.floor((A-w-2)/a)),verticalScrollbarWidth:w,horizontalScrollbarHeight:x,overviewRuler:{top:z,width:w,height:o-2*z,right:0}}},ye);function ye(){return me.call(this,107,[40,48,30,54,78,50])||this}var be,_e=(a(we,be=f),we.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled)}},we);function we(){var e={enabled:!0};return be.call(this,47,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:o.a("codeActions","Enables the code action lightbulb in the editor.")}})||this}var Ce,Se=(a(Oe,Ce=O),Oe.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},Oe);function Oe(){return Ce.call(this,49,"lineHeight",it.lineHeight,0,150,{description:o.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}var xe,ke=(a(Ee,xe=f),Ee.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),side:I.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:I.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:O.clampedInt(t.scale,1,1,3),maxColumn:O.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Ee);function Ee(){var e={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return xe.call(this,54,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:o.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:o.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:o.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,description:o.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:o.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:o.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this}var Ne,Le=(a(De,Ne=f),De.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),cycle:w.boolean(t.cycle,this.defaultValue.cycle)}},De);function De(){var e={enabled:!0,cycle:!1};return Ne.call(this,64,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:o.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:o.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this}var Me,Te=(a(Ie,Me=m),Ie.prototype.compute=function(e,t,n){return e.pixelRatio},Ie);function Ie(){return Me.call(this,105)||this}var Pe,Ae=(a(Re,Pe=f),Re.prototype.validate=function(e){if("boolean"==typeof e)return e;if("object"!=typeof e)return this.defaultValue;var t=e,n={other:w.boolean(t.other,this.defaultValue.other),comments:w.boolean(t.comments,this.defaultValue.comments),strings:w.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n},Re);function Re(){var e=this,t={other:!0,comments:!1,strings:!1};return(e=Pe.call(this,66,"quickSuggestions",t,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:t.strings,description:o.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:t.comments,description:o.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:t.other,description:o.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:t,description:o.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this).defaultValue=t,e}var je,Fe=(a(Be,je=f),Be.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},Be);function Be(){return je.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[o.a("lineNumbers.off","Line numbers are not rendered."),o.a("lineNumbers.on","Line numbers are rendered as absolute number."),o.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),o.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:o.a("lineNumbers","Controls the display of line numbers.")})||this}function We(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var Ve,ze=(a(He,Ve=y),He.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t.push(O.clampedInt(o,0,0,1e4))}return t.sort((function(e,t){return e-t})),t}return this.defaultValue},He);function He(){var e=[];return Ve.call(this,77,"rulers",e,{type:"array",items:{type:"number"},default:e,description:o.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this}function qe(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var Ue,Ke=(a(Ge,Ue=f),Ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e,n=O.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=O.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:O.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:qe(t.vertical,this.defaultValue.vertical),horizontal:qe(t.horizontal,this.defaultValue.horizontal),useShadows:w.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:w.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:w.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:w.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:w.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:O.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:O.clampedInt(t.verticalSliderSize,i,0,1e3)}},Ge);function Ge(){return Ue.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}var Ye,Ze=(a(Xe,Ye=f),Xe.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertMode:I.stringSet(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:w.boolean(t.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:w.boolean(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:w.boolean(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:w.boolean(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:w.boolean(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:w.boolean(t.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:O.clampedInt(t.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:w.boolean(t.showMethods,this.defaultValue.showMethods),showFunctions:w.boolean(t.showFunctions,this.defaultValue.showFunctions),showConstructors:w.boolean(t.showConstructors,this.defaultValue.showConstructors),showFields:w.boolean(t.showFields,this.defaultValue.showFields),showVariables:w.boolean(t.showVariables,this.defaultValue.showVariables),showClasses:w.boolean(t.showClasses,this.defaultValue.showClasses),showStructs:w.boolean(t.showStructs,this.defaultValue.showStructs),showInterfaces:w.boolean(t.showInterfaces,this.defaultValue.showInterfaces),showModules:w.boolean(t.showModules,this.defaultValue.showModules),showProperties:w.boolean(t.showProperties,this.defaultValue.showProperties),showEvents:w.boolean(t.showEvents,this.defaultValue.showEvents),showOperators:w.boolean(t.showOperators,this.defaultValue.showOperators),showUnits:w.boolean(t.showUnits,this.defaultValue.showUnits),showValues:w.boolean(t.showValues,this.defaultValue.showValues),showConstants:w.boolean(t.showConstants,this.defaultValue.showConstants),showEnums:w.boolean(t.showEnums,this.defaultValue.showEnums),showEnumMembers:w.boolean(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:w.boolean(t.showKeywords,this.defaultValue.showKeywords),showWords:w.boolean(t.showWords,this.defaultValue.showWords),showColors:w.boolean(t.showColors,this.defaultValue.showColors),showFiles:w.boolean(t.showFiles,this.defaultValue.showFiles),showReferences:w.boolean(t.showReferences,this.defaultValue.showReferences),showFolders:w.boolean(t.showFolders,this.defaultValue.showFolders),showTypeParameters:w.boolean(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:w.boolean(t.showSnippets,this.defaultValue.showSnippets),hideStatusBar:w.boolean(t.hideStatusBar,this.defaultValue.hideStatusBar)}},Xe);function Xe(){var e={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,hideStatusBar:!0};return Ye.call(this,89,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[o.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),o.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:o.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:e.insertHighlight,description:o.a("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:o.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:o.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:o.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:o.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:o.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:o.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:o.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this}var $e,Je=(a(Qe,$e=m),Qe.prototype.compute=function(e,t,n){return!!t.get(68)||e.tabFocusMode},Qe);function Qe(){return $e.call(this,106,[68])||this}var et,tt=(a(nt,et=m),nt.prototype.compute=function(e,t,n){var i,o=t.get(97),r=t.get(100),s=t.get(101),a=t.get(107);return i=2===t.get(2)?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:s&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"on"===o?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"bounded"===o?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,a.viewportColumn),r)}:"wordWrapColumn"===o?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:r}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}},nt);function nt(){return et.call(this,108,[97,100,101,107,2])||this}var it={fontFamily:r.e?"Menlo, Monaco, 'Courier New', monospace":r.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.e?12:14,lineHeight:0,letterSpacing:0},ot={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},rt=[];function st(e){return rt[e.id]=e}var at={acceptSuggestionOnCommitCharacter:st(new w(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:o.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:st(new I(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",o.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:o.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:st(new B),accessibilityPageSize:st(new O(3,"accessibilityPageSize",10,1,1073741824,{description:o.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:st(new D(4,"ariaLabel",o.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:st(new I(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),o.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:st(new I(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",o.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:o.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:st(new I(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),o.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:st(new R(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[o.a("editor.autoIndent.none","The editor will not insert indentation automatically."),o.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),o.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),o.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),o.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:o.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:st(new w(9,"automaticLayout",!1)),autoSurround:st(new I(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[o.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),o.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),o.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:o.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:st(new w(11,"codeLens",!0,{description:o.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:st(new w(12,"colorDecorators",!0,{description:o.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:st(new q),contextmenu:st(new w(14,"contextmenu",!0)),copyWithSyntaxHighlighting:st(new w(15,"copyWithSyntaxHighlighting",!0,{description:o.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:st(new R(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:o.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:st(new w(17,"cursorSmoothCaretAnimation",!1,{description:o.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:st(new R(18,"cursorStyle",z.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return z.Line;case"block":return z.Block;case"underline":return z.Underline;case"line-thin":return z.LineThin;case"block-outline":return z.BlockOutline;case"underline-thin":return z.UnderlineThin}}),{description:o.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:st(new O(19,"cursorSurroundingLines",0,0,1073741824,{description:o.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:st(new I(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[o.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),o.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:o.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:st(new O(21,"cursorWidth",0,0,1073741824,{markdownDescription:o.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:st(new w(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:st(new w(23,"disableMonospaceOptimizations",!1)),dragAndDrop:st(new w(24,"dragAndDrop",!0,{description:o.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:st(new X),extraEditorClassName:st(new D(26,"extraEditorClassName","")),fastScrollSensitivity:st(new E(27,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:o.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:st(new Q),fixedOverflowWidgets:st(new w(29,"fixedOverflowWidgets",!1)),folding:st(new w(30,"folding",!0,{description:o.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:st(new I(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:o.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:st(new w(32,"foldingHighlight",!0,{description:o.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:st(new D(33,"fontFamily",it.fontFamily,{description:o.a("fontFamily","Controls the font family.")})),fontInfo:st(new re),fontLigatures2:st(new ne),fontSize:st(new le),fontWeight:st(new D(37,"fontWeight",it.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:o.a("fontWeight","Controls the font weight.")})),formatOnPaste:st(new w(38,"formatOnPaste",!1,{description:o.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:st(new w(39,"formatOnType",!1,{description:o.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:st(new w(40,"glyphMargin",!0,{description:o.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:st(new de),hideCursorInOverviewRuler:st(new w(42,"hideCursorInOverviewRuler",!1,{description:o.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:st(new w(43,"highlightActiveIndentGuide",!0,{description:o.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:st(new fe),inDiffEditor:st(new w(45,"inDiffEditor",!1)),letterSpacing:st(new E(46,"letterSpacing",it.letterSpacing,(function(e){return E.clamp(e,-5,20)}),{description:o.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:st(new _e),lineDecorationsWidth:st(new y(48,"lineDecorationsWidth",10)),lineHeight:st(new Se),lineNumbers:st(new Fe),lineNumbersMinChars:st(new O(51,"lineNumbersMinChars",5,1,300)),links:st(new w(52,"links",!0,{description:o.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:st(new I(53,"matchBrackets","always",["always","near","never"],{description:o.a("matchBrackets","Highlight matching brackets.")})),minimap:st(new ke),mouseStyle:st(new I(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:st(new E(56,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:o.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:st(new w(57,"mouseWheelZoom",!1,{markdownDescription:o.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:st(new w(58,"multiCursorMergeOverlapping",!0,{description:o.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:st(new R(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.e?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[o.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),o.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:o.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:st(new I(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[o.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),o.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:o.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:st(new w(61,"occurrencesHighlight",!0,{description:o.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:st(new w(62,"overviewRulerBorder",!0,{description:o.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:st(new O(63,"overviewRulerLanes",3,0,3)),parameterHints:st(new Le),peekWidgetDefaultFocus:st(new I(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[o.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),o.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:o.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:st(new Ae),quickSuggestionsDelay:st(new O(67,"quickSuggestionsDelay",10,0,1073741824,{description:o.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:st(new w(68,"readOnly",!1)),renderControlCharacters:st(new w(69,"renderControlCharacters",!1,{description:o.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:st(new w(70,"renderIndentGuides",!0,{description:o.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:st(new w(71,"renderFinalNewline",!0,{description:o.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:st(new I(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",o.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:o.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:st(new I(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:st(new I(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",o.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),o.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:o.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:st(new O(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:st(new w(76,"roundedSelection",!0,{description:o.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:st(new ze),scrollbar:st(new Ke),scrollBeyondLastColumn:st(new O(79,"scrollBeyondLastColumn",5,0,1073741824,{description:o.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:st(new w(80,"scrollBeyondLastLine",!0,{description:o.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:st(new w(81,"selectionClipboard",!0,{description:o.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.d})),selectionHighlight:st(new w(82,"selectionHighlight",!0,{description:o.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:st(new w(83,"selectOnLineNumbers",!0)),showFoldingControls:st(new I(84,"showFoldingControls","mouseover",["always","mouseover"],{description:o.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:st(new w(85,"showUnused",!0,{description:o.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:st(new I(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[o.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),o.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),o.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),o.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:o.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:st(new w(87,"smoothScrolling",!1,{description:o.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:st(new O(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:st(new Ze),suggestFontSize:st(new O(90,"suggestFontSize",0,0,1e3,{markdownDescription:o.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:st(new O(91,"suggestLineHeight",0,0,1e3,{markdownDescription:o.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:st(new w(92,"suggestOnTriggerCharacters",!0,{description:o.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:st(new I(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[o.a("suggestSelection.first","Always select the first suggestion."),o.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),o.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:o.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:st(new I(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[o.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),o.a("tabCompletion.off","Disable tab completions."),o.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:o.a("tabCompletion","Enables tab completions.")})),useTabStops:st(new w(95,"useTabStops",!0,{description:o.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:st(new D(96,"wordSeparators",s.b,{description:o.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:st(new I(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[o.a("wordWrap.off","Lines will never wrap."),o.a("wordWrap.on","Lines will wrap at the viewport width."),o.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),o.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:o.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:st(new D(98,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:st(new D(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:st(new O(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:o.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:st(new w(101,"wordWrapMinified",!0)),wrappingIndent:st(new R(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[o.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),o.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),o.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),o.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:o.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:st(new I(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[o.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),o.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:o.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:st(new G),pixelRatio:st(new Te),tabFocusMode:st(new Je),layoutInfo:st(new ve),wrappingInfo:st(new tt)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("keybindingService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i=n(889),o=n(448),r=(i.a,Object(o.c)("notificationService")),s=function(){}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return _}));var i=n(446),o=(r.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},r.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},r.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},r);function r(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}var s,a,l=new o,u=new o,c=new o;function d(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),l.define(e,t),u.define(e,n),c.define(e,i)}function h(e,t){return(e|(65535&t)<<16>>>0)>>>0}function p(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new v(0!=i?[f(n,t),f(i,t)]:[f(n,t)])}function f(e,t){var n=!!(2048&e),i=!!(256&e);return new g(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}d(0,"unknown"),d(1,"Backspace"),d(2,"Tab"),d(3,"Enter"),d(4,"Shift"),d(5,"Ctrl"),d(6,"Alt"),d(7,"PauseBreak"),d(8,"CapsLock"),d(9,"Escape"),d(10,"Space"),d(11,"PageUp"),d(12,"PageDown"),d(13,"End"),d(14,"Home"),d(15,"LeftArrow","Left"),d(16,"UpArrow","Up"),d(17,"RightArrow","Right"),d(18,"DownArrow","Down"),d(19,"Insert"),d(20,"Delete"),d(21,"0"),d(22,"1"),d(23,"2"),d(24,"3"),d(25,"4"),d(26,"5"),d(27,"6"),d(28,"7"),d(29,"8"),d(30,"9"),d(31,"A"),d(32,"B"),d(33,"C"),d(34,"D"),d(35,"E"),d(36,"F"),d(37,"G"),d(38,"H"),d(39,"I"),d(40,"J"),d(41,"K"),d(42,"L"),d(43,"M"),d(44,"N"),d(45,"O"),d(46,"P"),d(47,"Q"),d(48,"R"),d(49,"S"),d(50,"T"),d(51,"U"),d(52,"V"),d(53,"W"),d(54,"X"),d(55,"Y"),d(56,"Z"),d(57,"Meta"),d(58,"ContextMenu"),d(59,"F1"),d(60,"F2"),d(61,"F3"),d(62,"F4"),d(63,"F5"),d(64,"F6"),d(65,"F7"),d(66,"F8"),d(67,"F9"),d(68,"F10"),d(69,"F11"),d(70,"F12"),d(71,"F13"),d(72,"F14"),d(73,"F15"),d(74,"F16"),d(75,"F17"),d(76,"F18"),d(77,"F19"),d(78,"NumLock"),d(79,"ScrollLock"),d(80,";",";","OEM_1"),d(81,"=","=","OEM_PLUS"),d(82,",",",","OEM_COMMA"),d(83,"-","-","OEM_MINUS"),d(84,".",".","OEM_PERIOD"),d(85,"/","/","OEM_2"),d(86,"`","`","OEM_3"),d(110,"ABNT_C1"),d(111,"ABNT_C2"),d(87,"[","[","OEM_4"),d(88,"\\","\\","OEM_5"),d(89,"]","]","OEM_6"),d(90,"'","'","OEM_7"),d(91,"OEM_8"),d(92,"OEM_102"),d(93,"NumPad0"),d(94,"NumPad1"),d(95,"NumPad2"),d(96,"NumPad3"),d(97,"NumPad4"),d(98,"NumPad5"),d(99,"NumPad6"),d(100,"NumPad7"),d(101,"NumPad8"),d(102,"NumPad9"),d(103,"NumPad_Multiply"),d(104,"NumPad_Add"),d(105,"NumPad_Separator"),d(106,"NumPad_Subtract"),d(107,"NumPad_Decimal"),d(108,"NumPad_Divide"),(a=s=s||{}).toString=function(e){return l.keyCodeToStr(e)},a.fromString=function(e){return l.strToKeyCode(e)},a.toUserSettingsUS=function(e){return u.keyCodeToStr(e)},a.toUserSettingsGeneral=function(e){return c.keyCodeToStr(e)},a.fromUserSettings=function(e){return u.strToKeyCode(e)||c.strToKeyCode(e)};var g=(m.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},m.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},m.prototype.toChord=function(){return new v([this])},m.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},m);function m(e,t,n,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}var v=(y.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},y);function y(e){if(0===e.length)throw Object(i.b)("parts");this.parts=e}var b=function(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r},_=function(){}},,,function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b}));var i,o=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function r(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function s(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var a=(l.prototype.reset=function(e){return this._value=e,this._pos=0,this},l.prototype.next=function(){return this._pos+=1,this},l.prototype.hasNext=function(){return this._pos<this._value.length-1},l.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},l.prototype.value=function(){return this._value[this._pos]},l);function l(){this._value="",this._pos=0}var u=(c.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},c.prototype.hasNext=function(){return this._to<this._value.length},c.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this},c.prototype.cmp=function(e){for(var t=0,n=e.length,i=this._from;t<n&&i<this._to;){var o=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!=o)return o;t+=1,i+=1}return n===this._to-this._from?0:t<n?-1:1},c.prototype.value=function(){return this._value.substring(this._from,this._to)},c);function c(e){void 0===e&&(e=!0),this._splitOnBackslash=e}var d=function(){},h=(p.forPaths=function(){return new p(new u)},p.forStrings=function(){return new p(new a)},p.prototype.clear=function(){this._root=void 0},p.prototype.set=function(e,t){var n,i=this._iter.reset(e);for(this._root||(this._root=new d,this._root.segment=i.value()),n=this._root;;){var o=i.cmp(n.segment);if(0<o)n.left||(n.left=new d,n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new d,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new d,n.mid.segment=i.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r},p.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(0<i)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},p.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,i=void 0;n;){var o=t.cmp(n.segment);if(0<o)n=n.left;else if(o<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i},p.prototype.forEach=function(e){this._forEach(this._root,e)},p.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},p);function p(e){this._iter=e}var f=(g.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},g.prototype.get=function(e){return this.map.get(this.toKey(e))},g.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},g);function g(){this.map=new Map,this.ignoreCase=!1}var m=(v.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(v.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),v.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},v.prototype.set=function(e,t,n){void 0===n&&(n=0);var i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:default:this.addItemLast(i)}this._map.set(e,i),this._size++}},v.prototype.delete=function(e){return!!this.remove(e)},v.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},v.prototype.forEach=function(e,t){for(var n=this._head;n;)(t?e.bind(t):e)(n.value,n.key,this),n=n.next},v.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&e<n;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},v.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},v.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},v.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");(t.previous=n).next=t}e.next=void 0,e.previous=void 0},v.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i).next=n,e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,i=e.previous,e===this._head?(n.previous=void 0,this._head=n):(n.previous=i).next=n,e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},v.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},v);function v(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}var y,b=(o(_,y=m),_.prototype.get=function(e){return y.prototype.get.call(this,e,2)},_.prototype.peek=function(e){return y.prototype.get.call(this,e,0)},_.prototype.set=function(e,t){y.prototype.set.call(this,e,t,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_);function _(e,t){void 0===t&&(t=1);var n=y.call(this)||this;return n._limit=e,n._ratio=Math.min(Math.max(0,t),1),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return i}));var i,o,r=n(1076),s=n(791),a=n(479),l=n(444),u=n(596),c=n(452),d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function h(e){return!e||e.scheme!==u.b.file||!c.d}function p(e){return m(e)||e.authority}function f(e,t){return e===t||Object(l.n)(e,t)}function g(e,t,n){if(void 0===n&&(n=h(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;var i=e.path||"/",o=t.path||"/";return i===o||n&&Object(l.n)(i||"/",o||"/")}function m(e){return s.posix.basename(e.path)}function v(e){if(0===e.path.length)return e;if(e.scheme===u.b.file)return a.a.file(s.dirname(_(e)));var t=s.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/"),e.with({path:t})}function y(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e.scheme===u.b.file?a.a.file(s.join.apply(s,d([_(e)],i))).path:(t=s.posix).join.apply(t,d([e.path||"/"],i)),e.with({path:n})}function b(e){return e.path.length?(t=e.scheme===u.b.file?a.a.file(s.normalize(_(e))).path:s.posix.normalize(e.path),e.with({path:t})):e;var t}function _(e){var t,n=e.path;return t=e.authority&&1<n.length&&e.scheme===u.b.file?"//"+e.authority+n:c.h&&47===n.charCodeAt(0)&&r.b(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,c.h&&(t=t.replace(/\//g,"\\")),t}function w(e,t,n){if(void 0===n&&(n=h(e)),e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===u.b.file){var i=s.relative(e.path,t.path);return c.h?r.c(i):i}var o=e.path||"/",a=t.path||"/";if(n){for(var l=0,d=Math.min(o.length,a.length);l<d&&(o.charCodeAt(l)===a.charCodeAt(l)||o.charAt(l).toLowerCase()===a.charAt(l).toLowerCase());l++);o=a.substr(0,l)+o.substr(l)}return s.posix.relative(o,a)}}(o=i=i||{}).META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime",o.parseMetaData=function(e){var t=new Map;e.path.substring(e.path.indexOf(";")+1,e.path.lastIndexOf(";")).split(";").forEach((function(e){var n=e.split(":"),i=n[0],o=n[1];i&&o&&t.set(i,o)}));var n=e.path.substring(0,e.path.indexOf(";"));return n&&t.set(o.META_DATA_MIME,n),t}},function(e,t,n){"use strict";function i(){return!0}function o(){return!1}function r(e){return" "===e||"\t"===e}n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return O})),n.d(t,"a",(function(){return x})),n.d(t,"g",(function(){return E}));var s=n(446),a=n(444),l=n(450),u=n(440),c=n(466),d=n(495),h=n(575);function p(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var f=(g.shouldRecreate=function(e){return e.hasChanged(107)||e.hasChanged(96)||e.hasChanged(25)||e.hasChanged(58)||e.hasChanged(60)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(95)||e.hasChanged(49)||e.hasChanged(68)},Object.defineProperty(g.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var e=g._getElectricCharacters(this._languageIdentifier);if(e)for(var t=0,n=e;t<n.length;t++){var i=n[t];this._electricChars[i]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),g.prototype.normalizeIndentation=function(e){return d.b.normalizeIndentation(e,this.indentSize,this.insertSpaces)},g._getElectricCharacters=function(e){try{return h.a.getElectricCharacters(e.id)}catch(e){return Object(s.e)(e),null}},g._getAutoClosingPairs=function(e){try{return h.a.getAutoClosingPairs(e.id)}catch(e){return Object(s.e)(e),null}},g._getShouldAutoClose=function(e,t){switch(t){case"beforeWhitespace":return r;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return i;case"never":return o}},g._getLanguageDefinedShouldAutoClose=function(e){try{var t=h.a.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(e){return Object(s.e)(e),o}},g._getSurroundingPairs=function(e){try{return h.a.getSurroundingPairs(e.id)}catch(e){return Object(s.e)(e),null}},g);function g(e,t,n){this._languageIdentifier=e;var i=n.options,o=i.get(107);this.readOnly=i.get(68),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=i.get(49),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=i.get(95),this.wordSeparators=i.get(96),this.emptySelectionClipboard=i.get(25),this.copyWithSyntaxHighlighting=i.get(15),this.multiCursorMergeOverlapping=i.get(58),this.multiCursorPaste=i.get(60),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(7),this.autoClosingOvertype=i.get(6),this.autoSurround=i.get(10),this.autoIndent=i.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)};var r=g._getAutoClosingPairs(e);if(r)for(var s=0,a=r;s<a.length;s++){var l=a[s];p(this.autoClosingPairsOpen2,l.open.charAt(l.open.length-1),l),1===l.close.length&&p(this.autoClosingPairsClose2,l.close,l)}var u=g._getSurroundingPairs(e);if(u)for(var c=0,d=u;c<d.length;c++)l=d[c],this.surroundingPairs[l.open]=l.close}var m=(v.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},v.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},v.prototype.move=function(e,t,n,i){return e?new v(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new l.a(t,n),i):new v(new u.a(t,n,t,n),i,new l.a(t,n),i)},v._computeSelection=function(e,t){var n,i,o,r;return i=!e.isEmpty()&&t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,e.endColumn):(n=e.startLineNumber,e.startColumn),o=t.lineNumber,r=t.column,new c.a(n,i,o,r)},v);function v(e,t,n,i){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=v._computeSelection(this.selectionStart,this.position)}var y=(b.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},b.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},b.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new l.a(e,t))},b.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},b.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},b.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},b.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},b.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},b.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},b);function b(e,t,n){this.model=t,this.viewModel=n,this.config=new f(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}var _=function(e){this.modelState=e,this.viewState=null},w=function(e){this.modelState=null,this.viewState=e},C=(S.fromModelState=function(e){return new _(e)},S.fromViewState=function(e){return new w(e)},S.fromModelSelection=function(e){var t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,o=e.positionColumn,r=new m(new u.a(t,n,t,n),0,new l.a(i,o),0);return S.fromModelState(r)},S.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t},S.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},S);function S(e,t){this.modelState=e,this.viewState=t}var O=function(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter},x=(k.visibleColumnFromColumn=function(e,t,n){for(var i=e.length,o=t-1<i?t-1:i,r=0,s=0;s<o;){var l=a.u(e,o,s);if(s+=65536<=l?2:1,9===l)r=k.nextRenderTabStop(r,n);else{for(var u=a.s(l);s<o;){var c=a.u(e,o,s),d=a.s(c);if(a.b(u,d))break;s+=65536<=c?2:1,u=d}a.y(l)||a.w(l)?r+=2:r+=1}}return r},k.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},k.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var i=e.length,o=0,r=1,s=0;s<i;){var l=a.u(e,i,s);s+=65536<=l?2:1;var u=void 0;if(9===l)u=k.nextRenderTabStop(o,n);else{for(var c=a.s(l);s<i;){var d=a.u(e,i,s),h=a.s(d);if(a.b(c,h))break;s+=65536<=d?2:1,c=h}u=a.y(l)||a.w(l)?o+2:o+1}var p=s+1;if(t<=u)return u-t<t-o?p:r;o=u,r=p}return i+1},k.columnFromVisibleColumn2=function(e,t,n,i){var o=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),r=t.getLineMinColumn(n);if(o<r)return r;var s=t.getLineMaxColumn(n);return s<o?s:o},k.nextRenderTabStop=function(e,t){return e+t-e%t},k.nextIndentTabStop=function(e,t){return e+t-e%t},k.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},k.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},k);function k(){}function E(e){return"'"===e||'"'===e||"`"===e}},,,,,,,,function(e,t,n){var i=n(467),o=n(460);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t,n){var i=n(509)(Object.getPrototypeOf,Object);e.exports=i},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var i=n(510),o=n(729),r=n(475);e.exports=function(e){return r(e)?i(e,!0):o(e)}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=c(n(0)),p=c(n(1)),f=n(476),g=d(n(12)),m=d(n(742)),v=d(n(743)),y=d(n(568)),b=d(n(746)),_=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,l(e).apply(this,arguments))).handleRowHover=function(e,n){t.props.store.setState({currentHoverKey:e?n:null})},t.renderRows=function(e,n){for(var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],o=t.context.table,r=o.columnManager,s=o.components,a=o.props,l=a.prefixCls,u=a.childrenColumnName,c=a.rowClassName,d=a.rowRef,p=a.onRowClick,f=a.onRowDoubleClick,g=a.onRowContextMenu,m=a.onRowMouseEnter,v=a.onRowMouseLeave,_=a.onRow,w=t.props,C=w.getRowKey,S=w.fixed,O=w.expander,x=w.isAnyColumnsFixed,k=[],E=function(o){var a=e[o],w=C(a,o),E="string"==typeof c?c:c(a,o,n),N={};r.isAnyColumnsFixed()&&(N.onHover=t.handleRowHover);var L;L="left"===S?r.leftLeafColumns():"right"===S?r.rightLeafColumns():t.getColumns(r.leafColumns());var D="".concat(l,"-row"),M=h.createElement(b.default,Object.assign({},O.props,{fixed:S,index:o,prefixCls:D,record:a,key:w,rowKey:w,onRowClick:p,needIndentSpaced:O.needIndentSpaced,onExpandedChange:O.handleExpandChange}),(function(e){return h.createElement(y.default,Object.assign({fixed:S,indent:n,className:E,record:a,index:o,prefixCls:D,childrenColumnName:u,columns:L,onRow:_,onRowDoubleClick:f,onRowContextMenu:g,onRowMouseEnter:m,onRowMouseLeave:v},N,{rowKey:w,ancestorKeys:i,ref:d(a,o,n),components:s,isAnyColumnsFixed:x},e))}));k.push(M),O.renderRows(t.renderRows,k,a,o,n,S,w,i)},N=0;N<e.length;N+=1)E(N);return k},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,h.Component),t=e,(n=[{key:"getColumns",value:function(e){var t=this.props,n=t.columns,i=void 0===n?[]:n,s=t.fixed,a=this.context.table.props.prefixCls;return(e||i).map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{className:e.fixed&&!s?g.default("".concat(a,"-fixed-columns-in-body"),e.className):e.className})}))}},{key:"render",value:function(){var e=this.context.table,t=e.components,n=e.props,i=n.prefixCls,o=n.scroll,r=n.data,s=n.getBodyWrapper,a=this.props,l=a.expander,u=a.tableClassName,c=a.hasHead,d=a.hasBody,p=a.fixed,f={};!p&&o.x&&(f.width=!0===o.x?"max-content":o.x);var g,y=d?t.table:"table",b=t.body.wrapper;d&&(g=h.createElement(b,{className:"".concat(i,"-tbody")},this.renderRows(r,0)),s&&(g=s(g)));var _=this.getColumns();return h.createElement(y,{className:u,style:f,key:"table"},h.createElement(m.default,{columns:_,fixed:p}),c&&h.createElement(v.default,{expander:l,columns:_,fixed:p}),g)}}])&&s(t.prototype,n),e}();_.contextTypes={table:p.any},t.default=f.connect()(_)},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=h(n(13)),g=h(n(266)),m=n(476),v=n(25),y=h(n(12)),b=h(n(745)),_=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,u(e).apply(this,arguments))).state={},t.onTriggerEvent=function(e,n,i){var o=t.props,r=o.record,s=o.index;return function(){i&&i();for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];var l=o[0];n&&n(r,s,l),e&&e.apply(void 0,o)}},t.onMouseEnter=function(){var e=t.props;(0,e.onHover)(!0,e.rowKey)},t.onMouseLeave=function(){var e=t.props;(0,e.onHover)(!1,e.rowKey)},t}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(e,p.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.visible||!t.visible&&e.visible?{shouldRender:!0,visible:e.visible}:{visible:e.visible}}}],(n=[{key:"componentDidMount",value:function(){this.state.shouldRender&&this.saveRowRef()}},{key:"shouldComponentUpdate",value:function(e){return!(!this.props.visible&&!e.visible)}},{key:"componentDidUpdate",value:function(){this.state.shouldRender&&!this.rowRef&&this.saveRowRef()}},{key:"setExpandedRowHeight",value:function(){var e=this.props,t=e.store,n=e.rowKey,i=t.getState().expandedRowsHeight;i=r({},i,s({},n,this.rowRef.getBoundingClientRect().height)),t.setState({expandedRowsHeight:i})}},{key:"setRowHeight",value:function(){var e=this.props,t=e.store,n=e.rowKey,i=t.getState().fixedColumnsBodyRowsHeight,o=this.rowRef.getBoundingClientRect().height;t.setState({fixedColumnsBodyRowsHeight:r({},i,s({},n,o))})}},{key:"getStyle",value:function(){var e=this.props,t=e.height,n=e.visible;return t&&t!==this.style.height&&(this.style=r({},this.style,{height:t})),n||this.style.display||(this.style=r({},this.style,{display:"none"})),this.style}},{key:"saveRowRef",value:function(){this.rowRef=f.default.findDOMNode(this);var e=this.props,t=e.isAnyColumnsFixed,n=e.fixed,i=e.expandedRow,o=e.ancestorKeys;t&&this.rowRef&&(!n&&i&&this.setExpandedRowHeight(),!n&&0<=o.length&&this.setRowHeight())}},{key:"render",value:function(){if(!this.state.shouldRender)return null;var e=this.props,t=e.prefixCls,n=e.columns,i=e.record,o=e.rowKey,s=e.index,a=e.onRow,l=e.indent,u=e.indentSize,c=e.hovered,d=e.height,h=e.visible,f=e.components,m=e.hasExpandIcon,v=e.renderExpandIcon,_=e.renderExpandIconCell,w=e.onRowClick,C=e.onRowDoubleClick,S=e.onRowMouseEnter,O=e.onRowMouseLeave,x=e.onRowContextMenu,k=f.body.row,E=f.body.cell,N=this.props.className;c&&(N+=" ".concat(t,"-hover"));var L=[];_(L);for(var D=0;D<n.length;D+=1){var M=n[D];g.default(void 0===M.onCellClick,"column[onCellClick] is deprecated, please use column[onCell] instead."),L.push(p.createElement(b.default,{prefixCls:t,record:i,indentSize:u,indent:l,index:s,column:M,key:M.key||M.dataIndex,expandIcon:m(D)&&v(),component:E}))}var T=a(i,s)||{},I=T.className,P=T.style,A=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(T,["className","style"]),R={height:d};h||(R.display="none"),R=r({},R,{},P);var j=y.default(t,N,"".concat(t,"-level-").concat(l),I);return p.createElement(k,Object.assign({},A,{onClick:this.onTriggerEvent(A.onClick,w),onDoubleClick:this.onTriggerEvent(A.onDoubleClick,C),onMouseEnter:this.onTriggerEvent(A.onMouseEnter,S,this.onMouseEnter),onMouseLeave:this.onTriggerEvent(A.onMouseLeave,O,this.onMouseLeave),onContextMenu:this.onTriggerEvent(A.onContextMenu,x),className:j,style:R,"data-row-key":o}),L)}}])&&a(t.prototype,n),i&&a(t,i),e}();_.defaultProps={onRow:function(){},onHover:function(){},hasExpandIcon:function(){},renderExpandIcon:function(){},renderExpandIconCell:function(){}},v.polyfill(_),t.default=m.connect((function(e,t){var n,i,o,r,s,a,l=e.currentHoverKey,u=e.expandedRowKeys,c=void 0===u?[]:u,d=t.rowKey,h=t.ancestorKeys;return{visible:0===h.length||h.every((function(e){return c.includes(e)})),hovered:l===d,height:(i=t,o=(n=e).expandedRowsHeight,r=n.fixedColumnsBodyRowsHeight,s=i.fixed,a=i.rowKey,s?o[a]?o[a]:r[a]?r[a]:null:null)}}))(_)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return null}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(0)),u=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,r(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(e,l.Component),e}();(t.default=u).isTableColumnGroup=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(465),o=n(944);function r(){this.data=new Map}var s=new(r.prototype.add=function(e,t){o.a(i.j(e)),o.a(i.i(t)),o.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},r.prototype.as=function(e){return this.data.get(e)||null},r)},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"m",(function(){return w})),n.d(t,"e",(function(){return C})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"l",(function(){return x})),n.d(t,"n",(function(){return E})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return L})),n.d(t,"r",(function(){return D})),n.d(t,"q",(function(){return M}));var i=n(445),o=n(490),r=n(461),s=n(451),a=Object(r.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i.a("lineHighlight","Background color for the highlight of line at the cursor position.")),l=Object(r.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),u=Object(r.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(r.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:r.b},i.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(r.Tb)("editor.symbolHighlightBackground",{dark:r.t,light:r.t,hc:null},i.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(r.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:r.b},i.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),p=Object(r.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:o.a.black,hc:o.a.white},i.a("caret","Color of the editor cursor.")),f=Object(r.Tb)("editorCursor.background",null,i.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(r.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i.a("editorWhitespaces","Color of whitespace characters in the editor.")),m=Object(r.Tb)("editorIndentGuide.background",{dark:g,light:g,hc:g},i.a("editorIndentGuides","Color of the editor indentation guides.")),v=Object(r.Tb)("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},i.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),y=Object(r.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:o.a.white},i.a("editorLineNumbers","Color of editor line numbers.")),b=Object(r.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:r.b},i.a("editorActiveLineNumber","Color of editor active line number"),!1,i.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),_=Object(r.Tb)("editorLineNumber.activeForeground",{dark:b,light:b,hc:b},i.a("editorActiveLineNumber","Color of editor active line number")),w=Object(r.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:o.a.lightgrey,hc:o.a.white},i.a("editorRuler","Color of the editor rulers.")),C=Object(r.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},i.a("editorCodeLensForeground","Foreground color of editor code lenses")),S=Object(r.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i.a("editorBracketMatchBackground","Background color behind matching brackets")),O=Object(r.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:r.e},i.a("editorBracketMatchBorder","Color for matching brackets boxes")),x=Object(r.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i.a("editorOverviewRulerBorder","Color of the overview ruler border.")),k=Object(r.Tb)("editorGutter.background",{dark:r.o,light:r.o,hc:r.o},i.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),E=Object(r.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:o.a.fromHex("#fff").transparent(.8)},i.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),N=Object(r.Tb)("editorUnnecessaryCode.opacity",{dark:o.a.fromHex("#000a"),light:o.a.fromHex("#0007"),hc:null},i.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),L=Object(r.Tb)("editorOverviewRuler.errorForeground",{dark:new o.a(new o.c(255,18,18,.7)),light:new o.a(new o.c(255,18,18,.7)),hc:new o.a(new o.c(255,50,50,1))},i.a("overviewRuleError","Overview ruler marker color for errors.")),D=Object(r.Tb)("editorOverviewRuler.warningForeground",{dark:r.P,light:r.P,hc:r.O},i.a("overviewRuleWarning","Overview ruler marker color for warnings.")),M=Object(r.Tb)("editorOverviewRuler.infoForeground",{dark:r.H,light:r.H,hc:r.G},i.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(s.e)((function(e,t){var n=e.getColor(r.o);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(r.x);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var o=e.getColor(k);o&&t.addRule(".monaco-editor .margin { background-color: "+o+"; }");var s=e.getColor(u);s&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+s+"; }");var a=e.getColor(c);a&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+a+"; }");var l=e.getColor(d);l&&t.addRule(".monaco-editor .symbolHighlight { background-color: "+l+"; }");var p=e.getColor(h);p&&t.addRule(".monaco-editor .symbolHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+p+"; }");var f=e.getColor(g);f&&t.addRule(".vs-whitespace { color: "+f+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f}));var i=n(571),o=n(448),r=n(789),s=Object(o.c)("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a<o.length;a++){var l=o[a],u=s[l];switch(typeof u){case"undefined":u=s[l]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+o.slice(0,a+1).join(".")+" is "+JSON.stringify(u))}s=u}"object"==typeof s?s[r]=n:i("Ignoring "+t+" as "+o.join(".")+" is "+JSON.stringify(s))}function u(e,t){!function e(t,n){var i=n.shift();if(0!==n.length){if(-1!==Object.keys(t).indexOf(i)){var o=t[i];"object"!=typeof o||Array.isArray(o)||(e(o,n),0===Object.keys(o).length&&delete t[i])}}else delete t[i]}(e,t.split("."))}function c(e,t,n){var i=function(e,t){for(var n=e,i=0,o=t;i<o.length;i++){var r=o[i];if("object"!=typeof n||null===n)return;n=n[r]}return n}(e,t.split("."));return void 0===i?n:i}function d(){var e=i.a.as(r.a.Configuration).getConfigurationProperties();return Object.keys(e)}function h(){var e=Object.create(null),t=i.a.as(r.a.Configuration).getConfigurationProperties();for(var n in t)l(e,n,t[n].default,(function(e){}));return e}function p(e){return e.substring(1,e.length-1)}function f(e,t,n){var i=e.inspect(t),o=e.inspect(n);return void 0!==i.userValue||void 0!==i.workspaceValue||void 0!==i.workspaceFolderValue?i.value:void 0!==o.userValue||void 0!==o.workspaceValue||void 0!==o.workspaceFolderValue?o.value:i.defaultValue}},,function(e,t,n){"use strict";var i=n(442),o=n(439),r=n(444),s=n(882),a=n(825),l=n(949),u=(c.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},c.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},c.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i);return e.isOK(o)},c.prototype.getSurroundingPairs=function(){return this._surroundingPairs},c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",c);function c(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((function(e){return new a.b(e)})):e.brackets?this._autoClosingPairs=e.brackets.map((function(e){return new a.b({open:e[0],close:e[1]})})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){var t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.b({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}var d=n(950),h=(p.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets;t<n.length;t++)for(var i=0,o=n[t].close;i<o.length;i++){var r=o[i],s=r.charAt(r.length-1);e.push(s)}return e.filter((function(e,t,n){return n.indexOf(e)===t}))},p.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(Object(l.b)(t.getStandardTokenType(i)))return null;var o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,s=d.a.findPrevBracketInRange(o,1,r,0,r.length);if(!s)return null;var a=r.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;var u=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(u)?{matchOpenBracket:a}:null},p);function p(e){this._richEditBrackets=e}var f=(g.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},g.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},g.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},g.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},g.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},g);function g(e){this._indentationRules=e}var m=n(446),v=(y.prototype.onEnter=function(e,t,n,i){if(3<=e)for(var o=0,r=this._regExpRules.length;o<r;o++){var s=this._regExpRules[o];if([{reg:s.beforeText,text:n},{reg:s.afterText,text:i},{reg:s.oneLineAboveText,text:t}].every((function(e){return!e.reg||e.reg.test(e.text)})))return s.action}if(2<=e&&0<n.length&&0<i.length)for(o=0,r=this._brackets.length;o<r;o++)if((l=this._brackets[o]).openRegExp.test(n)&&l.closeRegExp.test(i))return{indentAction:a.a.IndentOutdent};if(2<=e&&0<n.length)for(o=0,r=this._brackets.length;o<r;o++){var l;if((l=this._brackets[o]).openRegExp.test(n))return{indentAction:a.a.Indent}}return null},y._createOpenBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),y._safeRegExp(t+="\\s*$")},y._createCloseBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),y._safeRegExp(t="^\\s*"+t)},y._safeRegExp=function(e){try{return new RegExp(e)}catch(e){return Object(m.e)(e),null}},y);function y(e){var t=this;(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((function(e){var n=y._createOpenBracketRegExp(e[0]),i=y._createCloseBracketRegExp(e[1]);n&&i&&t._brackets.push({open:e[0],openRegExp:n,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}n.d(t,"a",(function(){return S}));var b=(Object.defineProperty(_.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new d.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new h(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),_.prototype.onEnter=function(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null},_._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},_._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r}return n},_);function _(e,t,n){this._languageIdentifier=e,this._brackets=null;var i=this._electricCharacter=null;t&&(i=t._conf),this._conf=_._mergeConf(i,n),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new v(this._conf):null,this.comments=_._handleComments(this._conf),this.characterPair=new u(this._conf),this.wordDefinition=this._conf.wordPattern||s.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new f(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}var w=function(e){this.languageIdentifier=e};function C(){this._entries=new Map,this._onDidChange=new i.a,this.onDidChange=this._onDidChange.event}var S=new(C.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),r=new b(e,i,t);return this._entries.set(e.id,r),this._onDidChange.fire(new w(e)),Object(o.h)((function(){n._entries.get(e.id)===r&&(n._entries.set(e.id,i),n._onDidChange.fire(new w(e)))}))},C.prototype._getRichEditSupport=function(e){return this._entries.get(e)},C.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},C.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},C.prototype.onElectricCharacter=function(e,t,n){var i=Object(l.a)(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},C.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},C.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},C.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},C.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},C.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},C.prototype.shouldAutoClosePair=function(e,t,n){var i=Object(l.a)(t,n-1);return u.shouldAutoClosePair(e,i,n-i.firstCharOffset)},C.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?Object(s.c)(t.wordDefinition||null):Object(s.c)(null)},C.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},C.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},C.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(1<t){var o=void 0,r=-1;for(o=t-1;1<=o;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},C.prototype.getInheritIndentForLine=function(e,t,n,i){if(void 0===i&&(i=!0),e<4)return null;var o=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!o)return null;if(n<=1)return{indentation:"",action:null};var s=this.getPrecedingValidLine(t,n,o);if(s<0)return null;if(s<1)return{indentation:"",action:null};var l=t.getLineContent(s);if(o.shouldIncrease(l)||o.shouldIndentNextLine(l))return{indentation:r.t(l),action:a.a.Indent,line:s};if(o.shouldDecrease(l))return{indentation:r.t(l),action:null,line:s};if(1===s)return{indentation:r.t(t.getLineContent(s)),action:null,line:s};var u=s-1,c=o.getIndentMetadata(t.getLineContent(u));if(!(3&c)&&4&c){for(var d=0,h=u-1;0<h;h--)if(!o.shouldIndentNextLine(t.getLineContent(h))){d=h;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(i)return{indentation:r.t(t.getLineContent(s)),action:null,line:s};for(h=s;0<h;h--){var p=t.getLineContent(h);if(o.shouldIncrease(p))return{indentation:r.t(p),action:a.a.Indent,line:h};if(o.shouldIndentNextLine(p)){d=0;for(var f=h-1;0<f;f--)if(!o.shouldIndentNextLine(t.getLineContent(h))){d=f;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(o.shouldDecrease(p))return{indentation:r.t(p),action:null,line:h}}return{indentation:r.t(t.getLineContent(1)),action:null,line:1}},C.prototype.getGoodIndentForLine=function(e,t,n,i,o){if(e<4)return null;var s=this._getRichEditSupport(n);if(!s)return null;var l=this.getIndentRulesSupport(n);if(!l)return null;var u=this.getInheritIndentForLine(e,t,i),c=t.getLineContent(i);if(u){var d=u.line;if(void 0!==d){var h=s.onEnter(e,"",t.getLineContent(d),"");if(h){var p=r.t(t.getLineContent(d));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===a.a.Indent||h.indentAction===a.a.IndentOutdent?p=o.shiftIndent(p):h.indentAction===a.a.Outdent&&(p=o.unshiftIndent(p)),l.shouldDecrease(c)&&(p=o.unshiftIndent(p)),h.appendText&&(p+=h.appendText),r.t(p)}}return l.shouldDecrease(c)?u.action===a.a.Indent?u.indentation:o.unshiftIndent(u.indentation):u.action===a.a.Indent?o.shiftIndent(u.indentation):u.indentation}return null},C.prototype.getIndentForEnter=function(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);var o,s,u=t.getLineTokens(n.startLineNumber),c=Object(l.a)(u,n.startColumn-1),d=c.getLineContent(),h=!1;o=0<c.firstCharOffset&&u.getLanguageId(0)!==c.languageId?(h=!0,d.substr(0,n.startColumn-1-c.firstCharOffset)):u.getLineContent().substring(0,n.startColumn-1),s=n.isEmpty()?d.substr(n.startColumn-1-c.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-c.firstCharOffset);var p=this.getIndentRulesSupport(c.languageId);if(!p)return null;var f=o,g=r.t(o),m={getLineTokens:function(e){return t.getLineTokens(e)},getLanguageIdentifier:function(){return t.getLanguageIdentifier()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)},getLineContent:function(e){return e===n.startLineNumber?f:t.getLineContent(e)}},v=r.t(u.getLineContent()),y=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!y){var b=h?v:g;return{beforeEnter:b,afterEnter:b}}var _=h?v:y.indentation;return y.action===a.a.Indent&&(_=i.shiftIndent(_)),p.shouldDecrease(s)&&(_=i.unshiftIndent(_)),{beforeEnter:h?v:g,afterEnter:_}},C.prototype.getIndentActionForType=function(e,t,n,i,o){if(e<4)return null;var r=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),s=this.getIndentRulesSupport(r.languageId);if(!s)return null;var l,u=r.getLineContent(),c=u.substr(0,n.startColumn-1-r.firstCharOffset);if(l=n.isEmpty()?u.substr(n.startColumn-1-r.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-r.firstCharOffset),s.shouldDecrease(c+l)||!s.shouldDecrease(c+i+l))return null;var d=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!d)return null;var h=d.indentation;return d.action!==a.a.Indent&&(h=o.unshiftIndent(h)),h},C.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return!n||t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t))},C.prototype.getEnterAction=function(e,t,n){var i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),o=this._getRichEditSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),l=s.substr(0,n.startColumn-1-i.firstCharOffset);r=n.isEmpty()?s.substr(n.startColumn-1-i.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-i.firstCharOffset);var u="";if(1<n.startLineNumber&&0===i.firstCharOffset){var c=this.getScopedLineTokens(t,n.startLineNumber-1);c.languageId===i.languageId&&(u=c.getLineContent())}var d=o.onEnter(e,u,l,r);if(!d)return null;var h=d.indentAction,p=d.appendText,f=d.removeText||0;p=p||(h===a.a.Indent||h===a.a.IndentOutdent?"\t":"");var g=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return f&&(g=g.substring(0,g.length-f)),{indentAction:h,appendText:p,removeText:f,indentation:g}},C.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=r.t(i);return o.length>n-1&&(o=o.substring(0,n-1)),o},C.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(l.a)(i,o)},C.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},C)},,,function(e,t,n){"use strict";t.__esModule=!0;var i,o=(i=n(580))&&i.__esModule?i:{default:i};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,o.default)(e)}},,function(e,t,n){e.exports={default:n(581),__esModule:!0}},function(e,t,n){n(271),n(582),e.exports=n(62).Array.from},function(e,t,n){"use strict";var i=n(177),o=n(85),r=n(137),s=n(583),a=n(584),l=n(270),u=n(585),c=n(586);o(o.S+o.F*!n(588)((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,d,h,p,f=r(e),g="function"==typeof this?this:Array,m=arguments.length,v=1<m?t:void 0,y=void 0!==v,b=0,_=c(f);if(y&&(v=i(v,2<m?n:void 0,2)),null==_||g==Array&&a(_))for(d=new g(o=l(f.length));b<o;b++)u(d,b,y?v(f[b],b):f[b]);else for(p=_.call(f),d=new g;!(h=p.next()).done;b++)u(d,b,y?s(p,v,[h.value,b],!0):h.value);return d.length=b,d}})},function(e,t,n){var i=n(96);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){var i=n(135),o=n(83)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},function(e,t,n){"use strict";var i=n(76),o=n(108);e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var i=n(587),o=n(83)("iterator"),r=n(135);e.exports=n(62).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(178),o=n(83)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var i=n(83)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},function(e,t,n){"use strict";n(46),n(796)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var i=n(518),o={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t.a=function(e){return Object(i.a)(e,[o])}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var i,o=n(478),r=n(1072),s=n(452),a=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(u.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},u.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},u);function u(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=r.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}var c,d=(a(h,c=l),h);function h(e){var t=c.call(this,e)||this;return t.dataTransfer=e.dataTransfer,t}var p=(f.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},f.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},f);function f(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var i=e,r=e;if(void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS?this.deltaY=-r.detail/3:"wheel"===e.type&&((a=e).deltaMode===a.DOM_DELTA_LINE?this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==i.wheelDeltaX)o.k&&s.h?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120;else if(void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){var a;(a=e).deltaMode===a.DOM_DELTA_LINE?this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var i,o,r=n(479),s=n(452);function a(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}(o=i=i||{}).inMemory="inmemory",o.vscode="vscode",o.internal="private",o.walkThrough="walkThrough",o.walkThroughSnippet="walkThroughSnippet",o.http="http",o.https="https",o.file="file",o.mailto="mailto",o.untitled="untitled",o.data="data",o.command="command",o.vscodeRemote="vscode-remote",o.vscodeRemoteResource="vscode-remote-resource",o.userData="vscode-userdata";var l=new(a.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},a.prototype.rewrite=function(e){if(this._delegate)return this._delegate(e);var t=e.authority,n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n="["+n+"]");var o=this._ports[t],a=this._connectionTokens[t],l="path="+encodeURIComponent(e.path);return"string"==typeof a&&(l+="&tkn="+encodeURIComponent(a)),r.a.from({scheme:s.g?this._preferredWebSchema:i.vscodeRemoteResource,authority:n+":"+o,path:"/vscode-remote-resource",query:l})},a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o,r=n(443),s=n(701),a=n(595),l=n(439),u=n(702),c=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(d,o=l.a),d.prototype.onclick=function(e,t){this._register(r.j(e,r.d.CLICK,(function(e){return t(new a.b(e))})))},d.prototype.onmousedown=function(e,t){this._register(r.j(e,r.d.MOUSE_DOWN,(function(e){return t(new a.b(e))})))},d.prototype.onmouseover=function(e,t){this._register(r.j(e,r.d.MOUSE_OVER,(function(e){return t(new a.b(e))})))},d.prototype.onnonbubblingmouseout=function(e,t){this._register(r.k(e,(function(e){return t(new a.b(e))})))},d.prototype.onkeydown=function(e,t){this._register(r.j(e,r.d.KEY_DOWN,(function(e){return t(new s.a(e))})))},d.prototype.onkeyup=function(e,t){this._register(r.j(e,r.d.KEY_UP,(function(e){return t(new s.a(e))})))},d.prototype.oninput=function(e,t){this._register(r.j(e,r.d.INPUT,t))},d.prototype.onblur=function(e,t){this._register(r.j(e,r.d.BLUR,t))},d.prototype.onfocus=function(e,t){this._register(r.j(e,r.d.FOCUS,t))},d.prototype.ignoreGesture=function(e){u.b.ignoreTarget(e)},d);function d(){return null!==o&&o.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(448),o=Object(i.c)("modelService");function r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";var i,o,r,s;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),(o=i=i||{})[o.Left=1]="Left",o[o.Center=2]="Center",o[o.Right=4]="Right",o[o.Full=7]="Full",(s=r=r||{})[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter";var a=(l.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},l.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},l);function l(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}var u=function(e,t){this.range=e,this.matches=t},c=function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}},function(e,t,n){"use strict";var i=n(0),o=n(601);if(void 0===i)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new i.Component).updater;e.exports=o(i.Component,i.isValidElement,r)},function(e,t,n){"use strict";var i=n(97),o=n(602),r=n(603);e.exports=function(e,t,n){var s=[],a={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=i({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=i({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=i({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var i=t[n];if(t.hasOwnProperty(n)){if(r(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var o=l.hasOwnProperty(n)?l[n]:null;return r("DEFINE_MANY_MERGED"===o,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=h(e[n],i)}e[n]=i}}}(e,t)},autobind:function(){}};function c(e,n){if(n){r("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),r(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var i,o,s,l=e.prototype,c=l.__reactAutoBindPairs;for(var d in n.hasOwnProperty("mixins")&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(d)&&"mixins"!==d){var f=n[d],g=l.hasOwnProperty(d);if(i=g,o=d,s=a.hasOwnProperty(o)?a[o]:null,v.hasOwnProperty(o)&&r("OVERRIDE_BASE"===s,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",o),i&&r("DEFINE_MANY"===s||"DEFINE_MANY_MERGED"===s,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",o),u.hasOwnProperty(d))u[d](e,f);else{var m=a.hasOwnProperty(d);if("function"!=typeof f||m||g||!1===n.autobind)if(g){var y=a[d];r(m&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,d),"DEFINE_MANY_MERGED"===y?l[d]=h(l[d],f):"DEFINE_MANY"===y&&(l[d]=p(l[d],f))}else l[d]=f;else c.push(d,f),l[d]=f}}}}function d(e,t){for(var n in r(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(r(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),i=t.apply(this,arguments);if(null==n)return i;if(null==i)return n;var o={};return d(o,n),d(o,i),o}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function f(){}var g={componentDidMount:function(){this.__isMounted=!0}},m={componentWillUnmount:function(){this.__isMounted=!1}},v={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}};return i(f.prototype,e.prototype,v),function(e){var t=function(e,i,s){this.__reactAutoBindPairs.length&&function(e){for(var t,n=e.__reactAutoBindPairs,i=0;i<n.length;i+=2){var o=n[i],r=n[i+1];e[o]=(t=e,r.bind(t))}}(this),this.props=e,this.context=i,this.refs=o,this.updater=s||n,this.state=null;var a=this.getInitialState?this.getInitialState():null;r("object"==typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a};for(var i in t.prototype=new f,(t.prototype.constructor=t).prototype.__reactAutoBindPairs=[],s.forEach(c.bind(null,t)),c(t,g),c(t,e),c(t,m),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),r(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),a)t.prototype[i]||(t.prototype[i]=null);return t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,r,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=n(437),a=(i=n(605))&&i.__esModule?i:{default:i},l=n(625);function u(e){this.rules=null,this._messages=l.messages,this.define(e)}u.prototype={messages:function(e){return e&&(this._messages=(0,s.deepMerge)((0,l.newMessages)(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":r(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var i=this,a=e,c=1<arguments.length&&void 0!==t?t:{},d=2<arguments.length&&void 0!==n?n:function(){};if("function"==typeof c&&(d=c,c={}),!this.rules||0===Object.keys(this.rules).length)return d&&d(),Promise.resolve();if(c.messages){var h=this.messages();h===l.messages&&(h=(0,l.newMessages)()),(0,s.deepMerge)(h,c.messages),c.messages=h}else c.messages=this.messages();var p=void 0,f=void 0,g={};(c.keys||Object.keys(this.rules)).forEach((function(t){p=i.rules[t],f=a[t],p.forEach((function(n){var r=n;"function"==typeof r.transform&&(a===e&&(a=o({},a)),f=a[t]=r.transform(f)),(r="function"==typeof r?{validator:r}:o({},r)).validator=i.getValidationMethod(r),r.field=t,r.fullField=r.fullField||t,r.type=i.getType(r),r.validator&&(g[t]=g[t]||[],g[t].push({rule:r,value:f,source:a,field:t}))}))}));var m={};return(0,s.asyncMap)(g,c,(function(e,t){var n=e.rule,i=!("object"!==n.type&&"array"!==n.type||"object"!==r(n.fields)&&"object"!==r(n.defaultField));function a(e,t){return o({},t,{fullField:n.fullField+"."+e})}function l(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(r)||(r=[r]),!c.suppressWarning&&r.length&&u.warning("async-validator:",r),r.length&&n.message&&(r=[].concat(n.message)),r=r.map((0,s.complementError)(n)),c.first&&r.length)return m[n.field]=1,t(r);if(i){if(n.required&&!e.value)return r=n.message?[].concat(n.message).map((0,s.complementError)(n)):c.error?[c.error(n,(0,s.format)(c.messages.required,n.field))]:[],t(r);var l={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(l[d]=n.defaultField);for(var h in l=o({},l,e.rule.fields))if(l.hasOwnProperty(h)){var p=Array.isArray(l[h])?l[h]:[l[h]];l[h]=p.map(a.bind(null,h))}var f=new u(l);f.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),f.validate(e.value,e.rule.options||c,(function(e){var n=[];r&&r.length&&n.push.apply(n,r),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(r)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=void 0;n.asyncValidator?d=n.asyncValidator(n,e.value,l,e.source,c):n.validator&&(!0===(d=n.validator(n,e.value,l,e.source,c))?l():!1===d?l(n.message||n.field+" fails"):d instanceof Array?l(d):d instanceof Error&&l(d.message)),d&&d.then&&d.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){!function(e){var t,n,i=void 0,o=[];for(i=0;i<e.length;i++)t=e[i],Array.isArray(t)?o=o.concat.apply(o,t):o.push(t);n=o.length?(0,s.convertFieldsError)(o):o=null,d(o,n)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!a.default.hasOwnProperty(e.type))throw new Error((0,s.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?a.default.required:a.default[this.getType(e)]||!1}},u.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");a.default[e]=t},u.warning=s.warning,u.messages=l.messages,t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=v(n(606)),o=v(n(612)),r=v(n(613)),s=v(n(614)),a=v(n(615)),l=v(n(616)),u=v(n(617)),c=v(n(618)),d=v(n(619)),h=v(n(620)),p=v(n(621)),f=v(n(622)),g=v(n(623)),m=v(n(624));function v(e){return e&&e.__esModule?e:{default:e}}t.default={string:i.default,method:o.default,number:r.default,boolean:s.default,regexp:a.default,integer:l.default,float:u.default,array:c.default,object:d.default,enum:h.default,pattern:p.default,date:f.default,url:m.default,hex:m.default,email:m.default,required:g.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"string")&&!e.required)return n();o.default.required(e,t,i,a,s,"string"),(0,r.isEmptyValue)(t,"string")||(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s),o.default.pattern(e,t,i,a,s),!0===e.whitespace&&o.default.whitespace(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,r){!/^\s+$/.test(t)&&""!==t||o.push(i.format(r.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437)),s=(i=n(516))&&i.__esModule?i:{default:i},a={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},l={integer:function(e){return l.number(e)&&parseInt(e,10)===e},float:function(e){return l.number(e)&&!l.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!l.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(a.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(a.url)},hex:function(e){return"string"==typeof e&&!!e.match(a.hex)}};t.default=function(e,t,n,i,a){if(e.required&&void 0===t)(0,s.default)(e,t,n,i,a);else{var u=e.type;-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)?l[u](t)||i.push(r.format(a.messages.types[u],e.fullField,e.type)):u&&(void 0===t?"undefined":o(t))!==e.type&&i.push(r.format(a.messages.types[u],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,r){var s="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,d="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(d?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),h&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),s?u!==e.len&&o.push(i.format(r.messages[c].len,e.fullField,e.len)):a&&!l&&u<e.min?o.push(i.format(r.messages[c].min,e.fullField,e.min)):l&&!a&&u>e.max?o.push(i.format(r.messages[c].max,e.fullField,e.max)):a&&l&&(u<e.min||u>e.max)&&o.push(i.format(r.messages[c].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(i.format(r.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(i.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(i.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(437),r=(i=n(441))&&i.__esModule?i:{default:i};t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();r.default.required(e,t,i,a,s),void 0!==t&&r.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),(0,r.isEmptyValue)(t)||o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"array")&&!e.required)return n();o.default.required(e,t,i,a,s,"array"),(0,r.isEmptyValue)(t,"array")||(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),t&&o.default.enum(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"string")&&!e.required)return n();o.default.required(e,t,i,a,s),(0,r.isEmptyValue)(t,"string")||o.default.pattern(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();if(o.default.required(e,t,i,a,s),!(0,r.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,o.default.type(e,l,i,a,s),l&&o.default.range(e,l.getTime(),i,a,s)}}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(i=n(441))&&i.__esModule?i:{default:i};t.default=function(e,t,n,i,s){var a=[],l=Array.isArray(t)?"array":void 0===t?"undefined":o(t);r.default.required(e,t,i,a,s,l),n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(441))&&i.__esModule?i:{default:i},r=n(437);t.default=function(e,t,n,i,s){var a=e.type,l=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,a)&&!e.required)return n();o.default.required(e,t,i,l,s,a),(0,r.isEmptyValue)(t,a)||o.default.type(e,t,i,l,s)}n(l)}},function(e,t,n){"use strict";function i(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=i,t.messages=i()},function(e,t,n){var i=n(493),o=n(634),r=n(492),s=n(168),a=n(487);e.exports=function(e,t,n,l){if(!s(e))return e;for(var u=-1,c=(t=o(t,e)).length,d=c-1,h=e;null!=h&&++u<c;){var p=a(t[u]),f=n;if(u!=d){var g=h[p];void 0===(f=l?l(g,p,h):void 0)&&(f=s(g)?g:r(t[u+1])?[]:{})}i(h,p,f),h=h[p]}return e}},,function(e,t,n){},function(e,t,n){var i=n(630),o=n(633);e.exports=function(e,t){return null!=e&&o(e,t,i)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(51),o=Object(i.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n(1319);var i,o,r,s=n(445),a=n(452),l=n(443);function u(e){(i=document.createElement("div")).className="monaco-aria-container",(o=document.createElement("div")).className="monaco-alert",o.setAttribute("role","alert"),o.setAttribute("aria-atomic","true"),i.appendChild(o),(r=document.createElement("div")).className="monaco-status",r.setAttribute("role","status"),r.setAttribute("aria-atomic","true"),i.appendChild(r),e.appendChild(i)}function c(e,t){f(o,e,t)}function d(e,t){a.e?c(e,t):f(r,e,t)}var h=0,p=void 0;function f(e,t,n){if(i){if(!n)switch(p===t?h++:(p=t,h=0),h){case 0:break;case 1:t=s.a("repeated","{0} (occurred again)",t);break;default:t=s.a("repeatedNtimes","{0} (occurred {1} times)",t,h)}l.t(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var i=n(479),o=n(448),r=n(439),s=n(444),a=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},l=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},u=Object(o.c)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return r.a.None},registerValidator:function(){return r.a.None},registerExternalUriResolver:function(){return r.a.None},setExternalOpener:function(){},open:function(){return a(this,void 0,void 0,(function(){return l(this,(function(e){return[2,!1]}))}))},resolveExternalUri:function(e){return a(this,void 0,void 0,(function(){return l(this,(function(t){return[2,{resolved:e,dispose:function(){}}]}))}))}});function d(e,t){return i.a.isUri(e)?Object(s.n)(e.scheme,t):Object(s.O)(e,t+":")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(46),n(710),n(273),n(470),n(260),n(515),n(104),n(498)},,function(e,t,n){"use strict";function i(e){return o.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)}var o=n(0),r=n(33),s=n(711),a=n.n(s),l=n(1),u=n(12),c=n.n(u),d=n(75),h=n.n(d),p=n(25),f=n(13),g=n(556),m=n(750),v=n.n(m),y=n(506),b=n(18),_=n(92),w=n(462);function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function S(e,t){var n=1<arguments.length&&void 0!==t?t:"children",i=[];return function e(t){t.forEach((function(t){if(t[n]){var o=C({},t);delete o[n],i.push(o),0<t[n].length&&e(t[n])}else i.push(t)}))}(0<arguments.length&&void 0!==e?e:[]),i}function O(e,t,n){var i=2<arguments.length&&void 0!==n?n:"children";return e.map((function(e,n){var o={};return e[i]&&(o[i]=O(e[i],t,i)),C(C({},t(e,n)),o)}))}function x(e,t){return e.reduce((function(e,n){if(t(n)&&e.push(n),n.children){var i=x(n.children,t);e.push.apply(e,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(i))}return e}),[])}function k(e){var t=[];return o.Children.forEach(e,(function(e){if(o.isValidElement(e)){var n=C({},e.props);e.key&&(n.key=e.key),e.type&&e.type.__ANT_TABLE_COLUMN_GROUP&&(n.children=k(n.children)),t.push(n)}})),t}function E(e,t){var n=1<arguments.length&&void 0!==t?t:{};return(e||[]).forEach((function(e){var t=e.value,i=e.children;n[t.toString()]=t,E(i,n)})),n}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()}var A=function(){function e(t){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=M(e).call(this,t),(n=!i||"object"!==N(i)&&"function"!=typeof i?T(this):i).setNeverShown=function(e){var t=f.findDOMNode(T(n));!v()(t,".ant-table-scroll")||(n.neverShown=!!e.fixed)},n.setSelectedKeys=function(e){var t=e.selectedKeys;n.setState({selectedKeys:t})},n.handleClearFilters=function(){n.setState({selectedKeys:[]},n.handleConfirm)},n.handleConfirm=function(){n.setVisible(!1),n.setState({},n.confirmFilter)},n.onVisibleChange=function(e){n.setVisible(e);var t=n.props.column;e||t.filterDropdown instanceof Function||n.confirmFilter()},n.handleMenuItemClick=function(e){var t=n.state.selectedKeys;if(e.keyPath&&!(e.keyPath.length<=1)){var i=n.state.keyPathOfSelectedItem;t&&0<=t.indexOf(e.key)?delete i[e.key]:i[e.key]=e.keyPath,n.setState({keyPathOfSelectedItem:i})}},n.renderFilterIcon=function(){var e,t=n.props,i=t.column,r=t.locale,s=t.prefixCls,a=t.selectedKeys,l=a&&0<a.length,u=i.filterIcon;"function"==typeof u&&(u=u(l));var d=c()((L(e={},"".concat(s,"-selected"),l),L(e,"".concat(s,"-open"),n.getDropdownVisible()),e));return u?o.isValidElement(u)?o.cloneElement(u,{title:u.props.title||r.filterTitle,className:c()("".concat(s,"-icon"),d,u.props.className),onClick:P}):o.createElement("span",{className:c()("".concat(s,"-icon"),d)},u):o.createElement(b.a,{title:r.filterTitle,type:"filter",theme:"filled",className:d,onClick:P})};var r="filterDropdownVisible"in t.column&&t.column.filterDropdownVisible;return n.state={selectedKeys:t.selectedKeys,valueKeys:E(t.column.filters),keyPathOfSelectedItem:{},visible:r,prevProps:t},n}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(e,o.Component),t=e,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.column,i=t.prevProps,o={prevProps:e};return"selectedKeys"in e&&!h()(i.selectedKeys,e.selectedKeys)&&(o.selectedKeys=e.selectedKeys),h()((i.column||{}).filters,(e.column||{}).filters)||(o.valueKeys=E(e.column.filters)),"filterDropdownVisible"in n&&(o.visible=n.filterDropdownVisible),o}}],(n=[{key:"componentDidMount",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"componentDidUpdate",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"getDropdownVisible",value:function(){return!this.neverShown&&this.state.visible}},{key:"setVisible",value:function(e){var t=this.props.column;"filterDropdownVisible"in t||this.setState({visible:e}),t.onFilterDropdownVisibleChange&&t.onFilterDropdownVisibleChange(e)}},{key:"hasSubMenu",value:function(){var e=this.props.column.filters;return(void 0===e?[]:e).some((function(e){return!!(e.children&&0<e.children.length)}))}},{key:"confirmFilter",value:function(){var e=this.props,t=e.column,n=e.selectedKeys,i=e.confirmFilter,o=this.state,r=o.selectedKeys,s=o.valueKeys,a=t.filterDropdown;h()(r,n)||i(t,a?r:r.map((function(e){return s[e]})).filter((function(e){return void 0!==e})))}},{key:"renderMenus",value:function(e){var t=this,n=this.props,i=n.dropdownPrefixCls,r=n.prefixCls;return e.map((function(e){if(e.children&&0<e.children.length){var n=t.state.keyPathOfSelectedItem,s=Object.keys(n).some((function(t){return 0<=n[t].indexOf(e.value)})),a=c()("".concat(r,"-dropdown-submenu"),L({},"".concat(i,"-submenu-contain-selected"),s));return o.createElement(g.d,{title:e.text,popupClassName:a,key:e.value.toString()},t.renderMenus(e.children))}return t.renderMenuItem(e)}))}},{key:"renderMenuItem",value:function(e){var t=this.props.column,n=this.state.selectedKeys,i=!("filterMultiple"in t)||t.filterMultiple,r=(n||[]).map((function(e){return e.toString()})),s=i?o.createElement(_.a,{checked:0<=r.indexOf(e.value.toString())}):o.createElement(w.a,{checked:0<=r.indexOf(e.value.toString())});return o.createElement(g.b,{key:e.value},s,o.createElement("span",null,e.text))}},{key:"render",value:function(){var e=this,t=this.state.selectedKeys,n=this.props,r=n.column,s=n.locale,a=n.prefixCls,l=n.dropdownPrefixCls,u=n.getPopupContainer,d=!("filterMultiple"in r)||r.filterMultiple,h=c()(L({},"".concat(l,"-menu-without-submenu"),!this.hasSubMenu())),p=r.filterDropdown;p instanceof Function&&(p=p({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(t){return e.setSelectedKeys({selectedKeys:t})},selectedKeys:t,confirm:this.handleConfirm,clearFilters:this.handleClearFilters,filters:r.filters,visible:this.getDropdownVisible()}));var f=p?o.createElement(i,{className:"".concat(a,"-dropdown")},p):o.createElement(i,{className:"".concat(a,"-dropdown")},o.createElement(g.e,{multiple:d,onClick:this.handleMenuItemClick,prefixCls:"".concat(l,"-menu"),className:h,onSelect:this.setSelectedKeys,onDeselect:this.setSelectedKeys,selectedKeys:t&&t.map((function(e){return e.toString()})),getPopupContainer:u},this.renderMenus(r.filters)),o.createElement("div",{className:"".concat(a,"-dropdown-btns")},o.createElement("a",{className:"".concat(a,"-dropdown-link confirm"),onClick:this.handleConfirm},s.filterConfirm),o.createElement("a",{className:"".concat(a,"-dropdown-link clear"),onClick:this.handleClearFilters},s.filterReset)));return o.createElement(y.a,{trigger:["click"],placement:"bottomRight",overlay:f,visible:this.getDropdownVisible(),onVisibleChange:this.onVisibleChange,getPopupContainer:u,forceRender:!0},this.renderFilterIcon())}}])&&D(t.prototype,n),r&&D(t,r),e}();A.defaultProps={column:{}},Object(p.polyfill)(A);var R=A;function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function W(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var H=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,V(e).call(this,t))).state={checked:n.getCheckState(t)},n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"getCheckState",value:function(e){var t=e.store,n=e.defaultSelection,i=e.rowIndex;return t.getState().selectionDirty?0<=t.getState().selectedRowKeys.indexOf(i):0<=t.getState().selectedRowKeys.indexOf(i)||0<=n.indexOf(i)}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var t=e.getCheckState(e.props);e.setState({checked:t})}))}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.rowIndex,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["type","rowIndex"]),r=this.state.checked;return"radio"===t?o.createElement(w.a,B({checked:r,value:n},i)):o.createElement(_.a,B({checked:r},i))}}])&&W(t.prototype,n),e}(),q=n(507);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function X(e){var t=e.store,n=e.getCheckboxPropsByItem,i=e.getRecordKey,o=e.data,r=e.type;return e.byDefaultChecked?o[r]((function(e,t){return n(e,t).defaultChecked})):o[r]((function(e,n){return 0<=t.getState().selectedRowKeys.indexOf(i(e,n))}))}function $(e){var t=e.store,n=e.data;if(!n.length)return!1;var i=X(Z(Z({},e),{data:n,type:"some",byDefaultChecked:!1}))&&!X(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1})),o=X(Z(Z({},e),{data:n,type:"some",byDefaultChecked:!0}))&&!X(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!0}));return t.getState().selectionDirty?i:i||o}function J(e){var t=e.store,n=e.data;return!!n.length&&(t.getState().selectionDirty?X(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1})):X(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1}))||X(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!0})))}var Q=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,G(e).call(this,t))).state={checked:!1,indeterminate:!1},n.handleSelectAllChange=function(e){var t=e.target.checked;n.props.onSelect(t?"all":"removeAll",0,null)},n.defaultSelections=t.hideDefaultSelections?[]:[{key:"all",text:t.locale.selectAll},{key:"invert",text:t.locale.selectInvert}],n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=J(e),i=$(e),o={};return i!==t.indeterminate&&(o.indeterminate=i),n!==t.checked&&(o.checked=n),o}}],(n=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"setCheckState",value:function(e){var t=J(e),n=$(e);this.setState((function(e){var i={};return n!==e.indeterminate&&(i.indeterminate=n),t!==e.checked&&(i.checked=t),i}))}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){e.setCheckState(e.props)}))}},{key:"renderMenus",value:function(e){var t=this;return e.map((function(e,n){return o.createElement(q.a.Item,{key:e.key||n},o.createElement("div",{onClick:function(){t.props.onSelect(e.key,n,e.onSelect)}},e.text))}))}},{key:"render",value:function(){var e,t,n,i=this.props,r=i.disabled,s=i.prefixCls,a=i.selections,l=i.getPopupContainer,u=this.state,d=u.checked,h=u.indeterminate,p="".concat(s,"-selection"),f=null;if(a){var g=Array.isArray(a)?this.defaultSelections.concat(a):this.defaultSelections,m=o.createElement(q.a,{className:"".concat(p,"-menu"),selectedKeys:[]},this.renderMenus(g));f=0<g.length?o.createElement(y.a,{overlay:m,getPopupContainer:l},o.createElement("div",{className:"".concat(p,"-down")},o.createElement(b.a,{type:"down"}))):null}return o.createElement("div",{className:p},o.createElement(_.a,{className:c()((e={},t="".concat(p,"-select-all-custom"),n=f,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),checked:d,indeterminate:h,disabled:r,onChange:this.handleSelectAllChange}),f)}}])&&K(t.prototype,n),i&&K(t,i),e}();Object(p.polyfill)(Q);var ee=Q;function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){return!t||"object"!==te(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var re=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ne(this,ie(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(e,o.Component),e}();function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ce=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ae(this,le(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ue(e,t)}(e,o.Component),e}();function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function pe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function fe(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=0<arguments.length&&void 0!==e?e:"tr";return function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=fe(this,ge(e).call(this,t))).store=t.store;var i=n.store.getState().selectedRowKeys;return n.state={selected:0<=i.indexOf(t.rowKey)},n}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(e,o.Component),n=e,(i=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"subscribe",value:function(){var e=this,t=this.props,n=t.store,i=t.rowKey;this.unsubscribe=n.subscribe((function(){var t=0<=e.store.getState().selectedRowKeys.indexOf(i);t!==e.state.selected&&e.setState({selected:t})}))}},{key:"render",value:function(){var e,n,i,s=Object(r.default)(this.props,["prefixCls","rowKey","store"]),a=c()(this.props.className,(e={},n="".concat(this.props.prefixCls,"-row-selected"),i=this.state.selected,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return o.createElement(t,he(he({},s),{className:a}),this.props.children)}}])&&pe(n.prototype,i),e}()}ce.__ANT_TABLE_COLUMN_GROUP=!0;var ye=n(106),be=n.n(ye);var _e=n(499),we=n(60),Ce=n(23);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(){return(Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ke(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Le={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},De=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=ke(this,Ee(e).apply(this,arguments))).onKeyDown=function(e){e.keyCode===Ce.a.ENTER&&e.preventDefault()},t.onKeyUp=function(e){var n=e.keyCode,i=t.props.onClick;n===Ce.a.ENTER&&i&&i()},t.setRef=function(e){t.div=e},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(e,o.Component),t=e,(n=[{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.noStyle,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["style","noStyle"]);return o.createElement("div",Oe({role:"button",tabIndex:0,ref:this.setRef},i,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:Oe(Oe({},n?null:Le),t)}))}}])&&xe(t.prototype,n),e}(),Me=n(55),Te=n(94),Ie=n(77),Pe=n(27);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Be(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function We(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function He(){return(He=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function qe(){}function Ue(e){e.stopPropagation()}function Ke(e){return e.rowSelection||{}}function Ge(e,t){return e.key||e.dataIndex||t}function Ye(e,t){return e&&t&&e.key&&e.key===t.key||e===t||h()(e,t,(function(e,t){return"function"==typeof e&&"function"==typeof t?e===t||e.toString()===t.toString():Array.isArray(e)&&Array.isArray(t)?e===t||h()(e,t):void 0}))}function Ze(e){var t=0<arguments.length&&void 0!==e?e:{},n=t&&t.body&&t.body.row;return He(He({},t),{body:He(He({},t.body),{row:ve(n)})})}var Xe={onChange:qe,onShowSizeChange:qe},$e={};function Je(e,t){return x(t||(e||{}).columns||[],(function(e){return void 0!==e.filteredValue}))}function Qe(e,t){var n={};return Je(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0).forEach((function(e){var t=Ge(e);n[t]=e.filteredValue})),n}var et=function(){function e(t){var n;je(this,e),(n=We(this,Ve(e).call(this,t))).setTableRef=function(e){n.rcTable=e},n.getCheckboxPropsByItem=function(e,t){var i=Ke(n.props);if(!i.getCheckboxProps)return{};var o=n.getRecordKey(e,t);if(!n.props.checkboxPropsCache[o]){n.props.checkboxPropsCache[o]=i.getCheckboxProps(e)||{};var r=n.props.checkboxPropsCache[o];Object(Pe.a)(!("checked"in r||"defaultChecked"in r),"Table","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}return n.props.checkboxPropsCache[o]},n.getRecordKey=function(e,t){var i=n.props.rowKey,o="function"==typeof i?i(e,t):e[i];return Object(Pe.a)(void 0!==o,"Table","Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key, see https://u.ant.design/table-row-key"),void 0===o?t:o},n.onRow=function(e,t,i){var o=n.props.onRow;return He(He({},o?o(t,i):{}),{prefixCls:e,store:n.props.store,rowKey:n.getRecordKey(t,i)})},n.generatePopupContainerFunc=function(e){var t=n.props.scroll,i=n.rcTable;return e||(t&&i?function(){return i.tableNode}:void 0)},n.scrollToFirstRow=function(){var e=n.props.scroll;e&&!1!==e.scrollToFirstRowOnChange&&function(e,t){var n=1<arguments.length&&void 0!==t?t:{},i=n.getContainer,o=void 0===i?function(){return window}:i,r=n.callback,s=n.duration,a=void 0===s?450:s,l=o(),u=function(e,t){if("undefined"==typeof window)return 0;var n="scrollTop",i=e===window,o=i?e.pageYOffset:e[n];return i&&"number"!=typeof o&&(o=document.documentElement[n]),o}(l),c=Date.now();be()((function t(){var n,i,o,s=Date.now()-c,d=(n=a<s?a:s,o=e-(i=u),(n/=a/2)<1?o/2*n*n*n+i:o/2*((n-=2)*n*n+2)+i);l===window?window.scrollTo(window.pageXOffset,d):l.scrollTop=d,s<a?be()(t):"function"==typeof r&&r()}))}(0,{getContainer:function(){return n.rcTable.bodyTable}})},n.handleFilter=function(e,t){var i=n.props,o=He({},n.state.pagination),r=He(He({},n.state.filters),Re({},Ge(e),t)),s=[];O(n.state.columns,(function(e){e.children||s.push(Ge(e))})),Object.keys(r).forEach((function(e){s.indexOf(e)<0&&delete r[e]})),i.pagination&&(o.current=1,o.onChange(o.current));var a={pagination:o,filters:{}},l=He({},r);Je(n.state).forEach((function(e){var t=Ge(e);t&&delete l[t]})),0<Object.keys(l).length&&(a.filters=l),"object"===Ae(i.pagination)&&"current"in i.pagination&&(a.pagination=He(He({},o),{current:n.state.pagination.current})),n.setState(a,(function(){n.scrollToFirstRow(),n.props.store.setState({selectionDirty:!1});var e=n.props.onChange;e&&e.apply(null,n.prepareParamsArguments(He(He({},n.state),{selectionDirty:!1,filters:r,pagination:o})))}))},n.handleSelect=function(e,t,i){var o=i.target.checked,r=i.nativeEvent,s=n.props.store.getState().selectionDirty?[]:n.getDefaultSelection(),a=n.props.store.getState().selectedRowKeys.concat(s),l=n.getRecordKey(e,t),u=n.state.pivot,c=n.getFlatCurrentPageData(),d=t;if(n.props.expandedRowRender&&(d=c.findIndex((function(e){return n.getRecordKey(e,t)===l}))),r.shiftKey&&void 0!==u&&d!==u){for(var h=[],p=Math.sign(u-d),f=Math.abs(u-d),g=0,m=function(){var e=d+g*p;g+=1;var t=c[e],i=n.getRecordKey(t,e);n.getCheckboxPropsByItem(t,e).disabled||(a.includes(i)?o||(a=a.filter((function(e){return i!==e})),h.push(i)):o&&(a.push(i),h.push(i)))};g<=f;)m();n.setState({pivot:d}),n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(a,{selectWay:"onSelectMultiple",record:e,checked:o,changeRowKeys:h,nativeEvent:r})}else o?a.push(n.getRecordKey(e,d)):a=a.filter((function(e){return l!==e})),n.setState({pivot:d}),n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(a,{selectWay:"onSelect",record:e,checked:o,changeRowKeys:void 0,nativeEvent:r})},n.handleRadioSelect=function(e,t,i){var o=i.target.checked,r=i.nativeEvent,s=[n.getRecordKey(e,t)];n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(s,{selectWay:"onSelect",record:e,checked:o,changeRowKeys:void 0,nativeEvent:r})},n.handleSelectRow=function(e,t,i){var o,r=n.getFlatCurrentPageData(),s=n.props.store.getState().selectionDirty?[]:n.getDefaultSelection(),a=n.props.store.getState().selectedRowKeys.concat(s),l=r.filter((function(e,t){return!n.getCheckboxPropsByItem(e,t).disabled})).map((function(e,t){return n.getRecordKey(e,t)})),u=[],c="onSelectAll";switch(e){case"all":l.forEach((function(e){a.indexOf(e)<0&&(a.push(e),u.push(e))})),c="onSelectAll",o=!0;break;case"removeAll":l.forEach((function(e){0<=a.indexOf(e)&&(a.splice(a.indexOf(e),1),u.push(e))})),o=!(c="onSelectAll");break;case"invert":l.forEach((function(e){a.indexOf(e)<0?a.push(e):a.splice(a.indexOf(e),1),u.push(e),c="onSelectInvert"}))}n.props.store.setState({selectionDirty:!0});var d=n.props.rowSelection,h=2;if(d&&d.hideDefaultSelections&&(h=0),h<=t&&"function"==typeof i)return i(l);n.setSelectedRowKeys(a,{selectWay:c,checked:o,changeRowKeys:u})},n.handlePageChange=function(e){var t=n.props,i=He({},n.state.pagination);i.current=e||i.current||1;for(var o=arguments.length,r=new Array(1<o?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];i.onChange.apply(i,[i.current].concat(r));var a={pagination:i};t.pagination&&"object"===Ae(t.pagination)&&"current"in t.pagination&&(a.pagination=He(He({},i),{current:n.state.pagination.current})),n.setState(a,n.scrollToFirstRow),n.props.store.setState({selectionDirty:!1});var l=n.props.onChange;l&&l.apply(null,n.prepareParamsArguments(He(He({},n.state),{selectionDirty:!1,pagination:i})))},n.handleShowSizeChange=function(e,t){var i=n.state.pagination;i.onShowSizeChange(e,t);var o=He(He({},i),{pageSize:t,current:e});n.setState({pagination:o},n.scrollToFirstRow);var r=n.props.onChange;r&&r.apply(null,n.prepareParamsArguments(He(He({},n.state),{pagination:o})))},n.renderExpandIcon=function(e){return function(t){var n=t.expandable,i=t.expanded,r=t.needIndentSpaced,s=t.record,a=t.onExpand;return n?o.createElement(Me.a,{componentName:"Table",defaultLocale:Te.a.Table},(function(t){var n;return o.createElement(De,{className:c()("".concat(e,"-row-expand-icon"),(Re(n={},"".concat(e,"-row-collapsed"),!i),Re(n,"".concat(e,"-row-expanded"),i),n)),onClick:function(e){a(s,e)},"aria-label":i?t.collapse:t.expand,noStyle:!0})})):r?o.createElement("span",{className:"".concat(e,"-row-expand-icon ").concat(e,"-row-spaced")}):null}},n.renderSelectionBox=function(e){return function(t,i,r){var s=n.getRecordKey(i,r),a=n.getCheckboxPropsByItem(i,r);return o.createElement("span",{onClick:Ue},o.createElement(H,He({type:e,store:n.props.store,rowIndex:s,onChange:function(t){return"radio"===e?n.handleRadioSelect(i,r,t):n.handleSelect(i,r,t)},defaultSelection:n.getDefaultSelection()},a)))}},n.renderTable=function(e){var t,i=e.prefixCls,s=e.renderEmpty,l=e.dropdownPrefixCls,u=e.contextLocale,d=e.getPopupContainer,h=n.props,p=h.showHeader,f=h.locale,g=h.getPopupContainer,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(h,["showHeader","locale","getPopupContainer"]),v=Object(r.default)(m,["style"]),y=n.getCurrentPageData(),b=n.props.expandedRowRender&&!1!==n.props.expandIconAsCell,_=g||d,w=He(He({},u),f);f&&f.emptyText||(w.emptyText=s("Table"));var C=c()("".concat(i,"-").concat(n.props.size),(Re(t={},"".concat(i,"-bordered"),n.props.bordered),Re(t,"".concat(i,"-empty"),!y.length),Re(t,"".concat(i,"-without-column-header"),!p),t)),S=n.renderRowSelection({prefixCls:i,locale:w,getPopupContainer:_}),O=n.renderColumnsDropdown({columns:S,prefixCls:i,dropdownPrefixCls:l,locale:w,getPopupContainer:_}).map((function(e,t){var n=He({},e);return n.key=Ge(n,t),n})),x=O[0]&&"selection-column"===O[0].key?1:0;return"expandIconColumnIndex"in v&&(x=v.expandIconColumnIndex),o.createElement(a.a,He({ref:n.setTableRef,key:"table",expandIcon:n.renderExpandIcon(i)},v,{onRow:function(e,t){return n.onRow(i,e,t)},components:n.state.components,prefixCls:i,data:y,columns:O,showHeader:p,className:C,expandIconColumnIndex:x,expandIconAsCell:b,emptyText:w.emptyText}))},n.renderComponent=function(e){var t=e.getPrefixCls,i=e.renderEmpty,r=e.getPopupContainer,s=n.props,a=s.prefixCls,l=s.dropdownPrefixCls,u=s.style,d=s.className,h=n.getCurrentPageData(),p=n.props.loading;"boolean"==typeof p&&(p={spinning:p});var f=t("table",a),g=t("dropdown",l),m=o.createElement(Me.a,{componentName:"Table",defaultLocale:Te.a.Table},(function(e){return n.renderTable({prefixCls:f,renderEmpty:i,dropdownPrefixCls:g,contextLocale:e,getPopupContainer:r})})),v=n.hasPagination()&&h&&0!==h.length?"".concat(f,"-with-pagination"):"".concat(f,"-without-pagination");return o.createElement("div",{className:c()("".concat(f,"-wrapper"),d),style:u},o.createElement(we.a,He({},p,{className:p.spinning?"".concat(v," ").concat(f,"-spin-holder"):""}),n.renderPagination(f,"top"),m,n.renderPagination(f,"bottom")))};var i=t.expandedRowRender,s=t.columns;Object(Pe.a)(!("columnsPageRange"in t||"columnsPageSize"in t),"Table","`columnsPageRange` and `columnsPageSize` are removed, please use fixed columns instead, see: https://u.ant.design/fixed-columns."),i&&(s||[]).some((function(e){return!!e.fixed}))&&Object(Pe.a)(!1,"Table","`expandedRowRender` and `Column.fixed` are not compatible. Please use one of them at one time.");var l=s||k(t.children);return n.state=He(He({},n.getDefaultSortOrder(l||[])),{filters:n.getDefaultFilters(l),pagination:n.getDefaultPagination(t),pivot:void 0,prevProps:t,components:Ze(t.components),columns:l}),n}return ze(e,o.Component),Be(e,[{key:"componentDidUpdate",value:function(){var e=this.state,t=e.columns,n=e.sortColumn,i=e.sortOrder;if(0<this.getSortOrderColumns(t).length){var o=this.getSortStateFromColumns(t);Ye(o.sortColumn,n)&&o.sortOrder===i||this.setState(o)}}},{key:"getDefaultSelection",value:function(){var e=this;return Ke(this.props).getCheckboxProps?this.getFlatData().filter((function(t,n){return e.getCheckboxPropsByItem(t,n).defaultChecked})).map((function(t,n){return e.getRecordKey(t,n)})):[]}},{key:"getDefaultPagination",value:function(e){var t,n,i="object"===Ae(e.pagination)?e.pagination:{};return"current"in i?t=i.current:"defaultCurrent"in i&&(t=i.defaultCurrent),"pageSize"in i?n=i.pageSize:"defaultPageSize"in i&&(n=i.defaultPageSize),this.hasPagination(e)?He(He(He({},Xe),i),{current:t||1,pageSize:n||10}):{}}},{key:"getSortOrderColumns",value:function(e){return x(e||(this.state||{}).columns||[],(function(e){return"sortOrder"in e}))}},{key:"getDefaultFilters",value:function(e){var t=Qe(this.state,e);return He(He({},x(e||[],(function(e){return void 0!==e.defaultFilteredValue})).reduce((function(e,t){return e[Ge(t)]=t.defaultFilteredValue,e}),{})),t)}},{key:"getDefaultSortOrder",value:function(e){var t=this.getSortStateFromColumns(e),n=x(e||[],(function(e){return null!=e.defaultSortOrder}))[0];return n&&!t.sortColumn?{sortColumn:n,sortOrder:n.defaultSortOrder}:t}},{key:"getSortStateFromColumns",value:function(e){var t=this.getSortOrderColumns(e).filter((function(e){return e.sortOrder}))[0];return t?{sortColumn:t,sortOrder:t.sortOrder}:{sortColumn:null,sortOrder:null}}},{key:"getMaxCurrent",value:function(e){var t=this.state.pagination,n=t.current,i=t.pageSize;return e<=(n-1)*i?Math.floor((e-1)/i)+1:n}},{key:"getSorterFn",value:function(e){var t=e||this.state,n=t.sortOrder,i=t.sortColumn;if(n&&i&&"function"==typeof i.sorter)return function(e,t){var o=i.sorter(e,t,n);return 0!==o?"descend"===n?-o:o:0}}},{key:"getCurrentPageData",value:function(){var e,t,n=this.getLocalData(),i=this.state;return e=this.hasPagination()?(t=i.pagination.pageSize,this.getMaxCurrent(i.pagination.total||n.length)):(t=Number.MAX_VALUE,1),(n.length>t||t===Number.MAX_VALUE)&&(n=n.slice((e-1)*t,e*t)),n}},{key:"getFlatData",value:function(){var e=this.props.childrenColumnName;return S(this.getLocalData(null,!1),e)}},{key:"getFlatCurrentPageData",value:function(){var e=this.props.childrenColumnName;return S(this.getCurrentPageData(),e)}},{key:"getLocalData",value:function(e,t){var n=this,i=!(1<arguments.length&&void 0!==t)||t,o=e||this.state,r=this.props.dataSource||[];r=r.slice(0);var s=this.getSorterFn(o);return s&&(r=this.recursiveSort(r,s)),i&&o.filters&&Object.keys(o.filters).forEach((function(e){var t=n.findColumn(e);if(t){var i=o.filters[e]||[];if(0!==i.length){var s=t.onFilter;r=s?r.filter((function(e){return i.some((function(t){return s(t,e)}))})):r}}})),r}},{key:"setSelectedRowKeys",value:function(e,t){var n=this,i=t.selectWay,o=t.record,r=t.checked,s=t.changeRowKeys,a=t.nativeEvent,l=Ke(this.props);!l||"selectedRowKeys"in l||this.props.store.setState({selectedRowKeys:e});var u=this.getFlatData();if(l.onChange||l[i]){var c=u.filter((function(t,i){return 0<=e.indexOf(n.getRecordKey(t,i))}));if(l.onChange&&l.onChange(e,c),"onSelect"===i&&l.onSelect)l.onSelect(o,r,c,a);else if("onSelectMultiple"===i&&l.onSelectMultiple){var d=u.filter((function(e,t){return 0<=s.indexOf(n.getRecordKey(e,t))}));l.onSelectMultiple(r,c,d)}else if("onSelectAll"===i&&l.onSelectAll){var h=u.filter((function(e,t){return 0<=s.indexOf(n.getRecordKey(e,t))}));l.onSelectAll(r,c,h)}else"onSelectInvert"===i&&l.onSelectInvert&&l.onSelectInvert(e)}}},{key:"toggleSortOrder",value:function(e){var t,n=e.sortDirections||this.props.sortDirections,i=this.state,o=i.sortOrder;if(Ye(i.sortColumn,e)&&void 0!==o){var r=n.indexOf(o)+1;t=r===n.length?void 0:n[r]}else t=n[0];var s={sortOrder:t,sortColumn:t?e:null};0===this.getSortOrderColumns().length&&this.setState(s,this.scrollToFirstRow);var a=this.props.onChange;a&&a.apply(null,this.prepareParamsArguments(He(He({},this.state),s),e))}},{key:"hasPagination",value:function(e){return!1!==(e||this.props).pagination}},{key:"isSortColumn",value:function(e){var t=this.state.sortColumn;return!(!e||!t)&&Ge(t)===Ge(e)}},{key:"prepareParamsArguments",value:function(e,t){var n=He({},e.pagination);delete n.onChange,delete n.onShowSizeChange;var i=e.filters,o={},r=t;return e.sortColumn&&e.sortOrder&&(r=e.sortColumn,o.column=e.sortColumn,o.order=e.sortOrder),r&&(o.field=r.dataIndex,o.columnKey=Ge(r)),[n,i,o,{currentDataSource:this.getLocalData(e)}]}},{key:"findColumn",value:function(e){var t;return O(this.state.columns,(function(n){Ge(n)===e&&(t=n)})),t}},{key:"recursiveSort",value:function(e,t){var n=this,i=this.props.childrenColumnName,o=void 0===i?"children":i;return e.sort(t).map((function(e){return e[o]?He(He({},e),Re({},o,n.recursiveSort(e[o],t))):e}))}},{key:"renderPagination",value:function(e,t){if(!this.hasPagination())return null;var n="default",i=this.state.pagination;i.size?n=i.size:"middle"!==this.props.size&&"small"!==this.props.size||(n="small");var r=i.position||"bottom",s=i.total||this.getLocalData().length;return 0<s&&(r===t||"both"===r)?o.createElement(_e.a,He({key:"pagination-".concat(t)},i,{className:c()(i.className,"".concat(e,"-pagination")),onChange:this.handlePageChange,total:s,size:n,current:this.getMaxCurrent(s),onShowSizeChange:this.handleShowSizeChange})):null}},{key:"renderRowSelection",value:function(e){var t=this,n=e.prefixCls,i=e.locale,r=e.getPopupContainer,a=this.props.rowSelection,l=this.state.columns.concat();if(a){var u=this.getFlatCurrentPageData().filter((function(e,n){return!a.getCheckboxProps||!t.getCheckboxPropsByItem(e,n).disabled})),d=c()("".concat(n,"-selection-column"),Re({},"".concat(n,"-selection-column-custom"),a.selections)),h=Re({key:"selection-column",render:this.renderSelectionBox(a.type),className:d,fixed:a.fixed,width:a.columnWidth,title:a.columnTitle},s.INTERNAL_COL_DEFINE,{className:"".concat(n,"-selection-col")});if("radio"!==a.type){var p=u.every((function(e,n){return t.getCheckboxPropsByItem(e,n).disabled}));h.title=h.title||o.createElement(ee,{store:this.props.store,locale:i,data:u,getCheckboxPropsByItem:this.getCheckboxPropsByItem,getRecordKey:this.getRecordKey,disabled:p,prefixCls:n,onSelect:this.handleSelectRow,selections:a.selections,hideDefaultSelections:a.hideDefaultSelections,getPopupContainer:this.generatePopupContainerFunc(r)})}"fixed"in a?h.fixed=a.fixed:l.some((function(e){return"left"===e.fixed||!0===e.fixed}))&&(h.fixed="left"),l[0]&&"selection-column"===l[0].key?l[0]=h:l.unshift(h)}return l}},{key:"renderColumnsDropdown",value:function(e){var t=this,n=e.prefixCls,i=e.dropdownPrefixCls,r=e.columns,s=e.locale,a=e.getPopupContainer,l=this.state,u=l.sortOrder,d=l.filters;return O(r,(function(e,r){var l,h,p,f=Ge(e,r),g=e.onHeaderCell,m=t.isSortColumn(e);if(e.filters&&0<e.filters.length||e.filterDropdown){var v=f in d?d[f]:[];h=o.createElement(R,{locale:s,column:e,selectedKeys:v,confirmFilter:t.handleFilter,prefixCls:"".concat(n,"-filter"),dropdownPrefixCls:i||"ant-dropdown",getPopupContainer:t.generatePopupContainerFunc(a),key:"filter-dropdown"})}if(e.sorter){var y=e.sortDirections||t.props.sortDirections,_=m&&"ascend"===u,w=m&&"descend"===u,C=-1!==y.indexOf("ascend")&&o.createElement(b.a,{className:"".concat(n,"-column-sorter-up ").concat(_?"on":"off"),type:"caret-up",theme:"filled"}),S=-1!==y.indexOf("descend")&&o.createElement(b.a,{className:"".concat(n,"-column-sorter-down ").concat(w?"on":"off"),type:"caret-down",theme:"filled"});p=o.createElement("div",{title:s.sortTitle,className:c()("".concat(n,"-column-sorter-inner"),C&&S&&"".concat(n,"-column-sorter-inner-full")),key:"sorter"},C,S),g=function(n){var i={};e.onHeaderCell&&(i=He({},e.onHeaderCell(n)));var o=i.onClick;return i.onClick=function(){t.toggleSortOrder(e),o&&o.apply(void 0,arguments)},i}}return He(He({},e),{className:c()(e.className,(Re(l={},"".concat(n,"-column-has-actions"),p||h),Re(l,"".concat(n,"-column-has-filters"),h),Re(l,"".concat(n,"-column-has-sorters"),p),Re(l,"".concat(n,"-column-sort"),m&&u),l)),title:[o.createElement("span",{key:"title",className:"".concat(n,"-header-column")},o.createElement("div",{className:p?"".concat(n,"-column-sorters"):void 0},o.createElement("span",{className:"".concat(n,"-column-title")},t.renderColumnTitle(e.title)),o.createElement("span",{className:"".concat(n,"-column-sorter")},p))),h],onHeaderCell:g})}))}},{key:"renderColumnTitle",value:function(e){var t=this.state,n=t.filters,i=t.sortOrder,o=t.sortColumn;return e instanceof Function?e({filters:n,sortOrder:i,sortColumn:o}):e}},{key:"render",value:function(){return o.createElement(Ie.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i,o=t.prevProps,r=e.columns||k(e.children),s=He(He({},t),{prevProps:e,columns:r});if("pagination"in e||"pagination"in o){var a=He(He(He({},Xe),t.pagination),e.pagination);a.current=a.current||1,a.pageSize=a.pageSize||10,s=He(He({},s),{pagination:!1!==e.pagination?a:$e})}if(e.rowSelection&&"selectedRowKeys"in e.rowSelection?e.store.setState({selectedRowKeys:e.rowSelection.selectedRowKeys||[]}):o.rowSelection&&!e.rowSelection&&e.store.setState({selectedRowKeys:[]}),"dataSource"in e&&e.dataSource!==o.dataSource&&e.store.setState({selectionDirty:!1}),e.setCheckboxPropsCache({}),0<Je(s,s.columns).length){var l=Qe(s,s.columns),u=He({},s.filters);Object.keys(l).forEach((function(e){u[e]=l[e]})),n=s,i=u,Object.keys(i).length===Object.keys(n.filters).length&&!Object.keys(i).some((function(e){return i[e]!==n.filters[e]}))||(s=He(He({},s),{filters:u}))}if(!function(e,t){var n=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length&&void 0!==t?t:{};return n===i||["table","header","body"].every((function(e){return h()(n[e],i[e])}))}(e.components,o.components)){var c=Ze(e.components);s=He(He({},s),{components:c})}return s}}]),e}();et.propTypes={dataSource:l.array,columns:l.array,prefixCls:l.string,useFixedHeader:l.bool,rowSelection:l.object,className:l.string,size:l.string,loading:l.oneOfType([l.bool,l.object]),bordered:l.bool,onChange:l.func,locale:l.object,dropdownPrefixCls:l.string,sortDirections:l.array,getPopupContainer:l.func},et.defaultProps={dataSource:[],useFixedHeader:!1,className:"",size:"default",loading:!1,bordered:!1,indentSize:20,locale:{},rowKey:"key",showHeader:!0,sortDirections:["ascend","descend"],childrenColumnName:"children"},Object(p.polyfill)(et);var tt=function(){function e(t){var n;return je(this,e),(n=We(this,Ve(e).call(this,t))).setCheckboxPropsCache=function(e){return n.CheckboxPropsCache=e},n.CheckboxPropsCache={},n.store=function(e){var t=e,n=[];return{setState:function(e){t=j(j({},t),e);for(var i=0;i<n.length;i++)n[i]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}({selectedRowKeys:Ke(t).selectedRowKeys||[],selectionDirty:!1}),n}return ze(e,o.Component),Be(e,[{key:"render",value:function(){return o.createElement(et,He({},this.props,{store:this.store,checkboxPropsCache:this.CheckboxPropsCache,setCheckboxPropsCache:this.setCheckboxPropsCache}))}}]),e}();tt.displayName="withStore(Table)",tt.Column=re,tt.ColumnGroup=ce;var nt=tt;t.a=nt},function(e,t,n){"use strict";n(46),n(687)},function(e,t,n){"use strict";var i=n(0),o=n(12),r=n.n(o),s=n(33),a=n(25),l=n(18),u=n(77);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=f(this,g(e).apply(this,arguments))).handleClick=function(){var e=t.props,n=e.checked,i=e.onChange;i&&i(!n)},t.renderCheckableTag=function(e){var n,o=e.getPrefixCls,s=t.props,a=s.prefixCls,l=s.className,u=s.checked,c=v(s,["prefixCls","className","checked"]),p=o("tag",a),f=r()(p,(h(n={},"".concat(p,"-checkable"),!0),h(n,"".concat(p,"-checkable-checked"),u),n),l);return delete c.onChange,i.createElement("span",d({},c,{className:f,onClick:t.handleClick}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){return i.createElement(u.a,null,this.renderCheckableTag)}}])&&p(t.prototype,n),e}(),b=n(632),_=n(27),w=n(181);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=new RegExp("^(".concat(b.a.join("|"),")(-inverse)?$")),L=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,k(e).call(this,t))).state={visible:!0},n.handleIconClick=function(e){e.stopPropagation(),n.setVisible(!1,e)},n.renderTag=function(e){var t=n.props,o=t.children,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(t,["children"]),a="onClick"in r||o&&"a"===o.type,l=Object(s.default)(r,["onClose","afterClose","color","visible","closable","prefixCls"]);return a?i.createElement(w.a,null,i.createElement("span",O({},l,{className:n.getTagClassName(e),style:n.getTagStyle()}),o,n.renderCloseIcon())):i.createElement("span",O({},l,{className:n.getTagClassName(e),style:n.getTagStyle()}),o,n.renderCloseIcon())},Object(_.a)(!("afterClose"in t),"Tag","'afterClose' will be deprecated, please use 'onClose', we will remove this in the next version."),n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(e,i.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(n=[{key:"getTagStyle",value:function(){var e=this.props,t=e.color,n=e.style,i=this.isPresetColor();return O({backgroundColor:t&&!i?t:void 0},n)}},{key:"getTagClassName",value:function(e){var t,n=e.getPrefixCls,i=this.props,o=i.prefixCls,s=i.className,a=i.color,l=this.state.visible,u=this.isPresetColor(),c=n("tag",o);return r()(c,(S(t={},"".concat(c,"-").concat(a),u),S(t,"".concat(c,"-has-color"),a&&!u),S(t,"".concat(c,"-hidden"),!l),t),s)}},{key:"setVisible",value:function(e,t){var n=this.props,i=n.onClose,o=n.afterClose;i&&i(t),o&&!i&&o(),t.defaultPrevented||"visible"in this.props||this.setState({visible:e})}},{key:"isPresetColor",value:function(){var e=this.props.color;return!!e&&N.test(e)}},{key:"renderCloseIcon",value:function(){return this.props.closable?i.createElement(l.a,{type:"close",onClick:this.handleIconClick}):null}},{key:"render",value:function(){return i.createElement(u.a,null,this.renderTag)}}])&&x(t.prototype,n),o&&x(t,o),e}();L.CheckableTag=y,L.defaultProps={closable:!1},Object(a.polyfill)(L),t.a=L},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(442),o=function(e,t,n){function o(e){return r.fire(e)}var r=new i.a({onFirstListenerAdd:function(){e.addEventListener(t,o,n)},onLastListenerRemove:function(){e.removeEventListener(t,o,n)}});return r.event};function r(e){return i.b.map(e,(function(e){return e.preventDefault(),e.stopPropagation(),e}))}},function(e,t,n){},function(e,t,n){"use strict";n(1328);var i,o,r=n(478),s=n(443),a=n(488),l=n(595),u=n(793),c=n(597),d=n(453),h=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(p,o=c.a),p.prototype._arrowMouseDown=function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((function(){t._mousedownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,u.b,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},p);function p(e){var t=o.call(this)||this;return t._onActivate=e.onActivate,t.bgDomNode=document.createElement("div"),t.bgDomNode.className="arrow-background",t.bgDomNode.style.position="absolute",t.bgDomNode.style.width=e.bgWidth+"px",t.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(t.bgDomNode.style.top="0px"),void 0!==e.left&&(t.bgDomNode.style.left="0px"),void 0!==e.bottom&&(t.bgDomNode.style.bottom="0px"),void 0!==e.right&&(t.bgDomNode.style.right="0px"),t.domNode=document.createElement("div"),t.domNode.className=e.className,t.domNode.style.position="absolute",t.domNode.style.width="11px",t.domNode.style.height="11px",void 0!==e.top&&(t.domNode.style.top=e.top+"px"),void 0!==e.left&&(t.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(t.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(t.domNode.style.right=e.right+"px"),t._mouseMoveMonitor=t._register(new u.a),t.onmousedown(t.bgDomNode,(function(e){return t._arrowMouseDown(e)})),t.onmousedown(t.domNode,(function(e){return t._arrowMouseDown(e)})),t._mousedownRepeatTimer=t._register(new d.c),t._mousedownScheduleRepeatTimer=t._register(new d.e),t}var f,g,m=n(439),v=((f=function(e,t){return(f=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){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(y,g=m.a),y.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},y.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},y.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},y.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},y.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},y.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))},y.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},y);function y(e,t,n){var i=g.call(this)||this;return i._visibility=e,i._visibleClassName=t,i._invisibleClassName=n,i._domNode=null,i._isVisible=!1,i._isNeeded=!1,i._shouldBeVisible=!1,i._revealTimer=i._register(new d.e),i}var b,_,w=n(452),C=((b=function(e,t){return(b=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){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(S,_=c.a),S.prototype._createArrow=function(e){var t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},S.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=Object(a.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof n&&this.slider.setWidth(n),"number"==typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),o._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},S.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},S.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},S.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},S.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},S.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);n<=o&&o<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){}))):this._onMouseDown(e)},S.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var i=s.C(this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){})))},S.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),o=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,u.b,(function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-o);if(w.h&&140<s)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e)-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},S.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},S);function S(e){var t=_.call(this)||this;return t._lazyRender=e.lazyRender,t._host=e.host,t._scrollable=e.scrollable,t._scrollbarState=e.scrollbarState,t._visibilityController=t._register(new v(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),t._visibilityController.setIsNeeded(t._scrollbarState.isNeeded()),t._mouseMoveMonitor=t._register(new u.a),t._shouldRender=!0,t.domNode=Object(a.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t._visibilityController.setDomNode(t.domNode),t.domNode.setPosition("absolute"),t.onmousedown(t.domNode.domNode,(function(e){return t._domNodeMouseDown(e)})),t}var O=(x.prototype.clone=function(){return new x(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},x.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},x.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},x.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},x._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=0<i&&n<i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var l=Math.round(Math.max(20,Math.floor(n*s/i))),u=(s-l)/(i-n),c=o*u;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:u,computedSliderPosition:Math.round(c)}},x.prototype._refreshComputedValues=function(){var e=x._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition},x.prototype.getArrowSize=function(){return this._arrowSize},x.prototype.getScrollPosition=function(){return this._scrollPosition},x.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},x.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},x.prototype.isNeeded=function(){return this._computedIsNeeded},x.prototype.getSliderSize=function(){return this._computedSliderSize},x.prototype.getSliderPosition=function(){return this._computedSliderPosition},x.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},x.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},x);function x(e,t,n,i,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}var k,E,N=((k=function(e,t){return(k=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){function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(L,E=C),L.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},L.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},L.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},L.prototype._mouseDownRelativePosition=function(e,t){return e},L.prototype._sliderMousePosition=function(e){return e.posx},L.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},L.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},L);function L(e,t,n){var i=this,o=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(i=E.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,o.width,o.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e})||this,t.horizontalHasArrows){var s=(t.arrowSize-11)/2,a=(t.horizontalScrollbarSize-11)/2;i._createArrow({className:"left-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,1,0))}}),i._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:s,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,-1,0))}})}return i._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize),i}var D,M,T=((D=function(e,t){return(D=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){function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(I,M=C),I.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},I.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},I.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},I.prototype._mouseDownRelativePosition=function(e,t){return t},I.prototype._sliderMousePosition=function(e){return e.posy},I.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},I.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},I);function I(e,t,n){var i=this,o=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(i=M.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,o.height,o.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e})||this,t.verticalHasArrows){var s=(t.arrowSize-11)/2,a=(t.verticalScrollbarSize-11)/2;i._createArrow({className:"up-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,0,1))}}),i._createArrow({className:"down-arrow",top:void 0,left:a,bottom:s,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,0,-1))}})}return i._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0),i}var P=n(442),A=n(1082);n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return Y})),n.d(t,"a",(function(){return $}));var R,j=(R=function(e,t){return(R=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){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0},B=(W.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5},W.prototype.accept=function(e,t,n){var i=new F(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},W.prototype._computeScore=function(e){if(0<Math.abs(e.deltaX)&&0<Math.abs(e.deltaY))return 1;var t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],(0<Math.abs(e.deltaX-Math.round(e.deltaX))||0<Math.abs(e.deltaY-Math.round(e.deltaY)))&&(t+=.25),Math.min(Math.max(t,0),1)},W.INSTANCE=new W,W);function W(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}var V,z=(j(H,V=c.a),H.prototype.dispose=function(){this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),V.prototype.dispose.call(this)},H.prototype.getDomNode=function(){return this._domNode},H.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},H.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},H.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},H.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},H.prototype.updateClassName=function(e){this._options.className=e,w.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},H.prototype.updateOptions=function(e){var t=Q(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},H.prototype._setListeningToMouseWheel=function(e){var t=this;0<this._mouseWheelToDispose.length!==e&&(this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(s.j(this._listenOnDomNode,r.f?"mousewheel":"wheel",(function(e){t._onMouseWheel(new l.c(e))}),{passive:!1}))},H.prototype._onMouseWheel=function(e){var t,n=B.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(i=(t=[o,i])[0],o=t[1]);var r=!w.e&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var l=s.scrollTop-50*i;this._verticalScrollbar.writeScrollPosition(a,l)}if(o){var u=s.scrollLeft-50*o;this._horizontalScrollbar.writeScrollPosition(a,u)}a=this._scrollable.validateScrollPosition(a),s.scrollLeft===a.scrollLeft&&s.scrollTop===a.scrollTop||(this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},H.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},H.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},H.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=0<e.scrollTop,n=0<e.scrollLeft;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},H.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},H.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},H.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},H.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},H.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},H.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},H.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)},H);function H(e,t,n){var i=V.call(this)||this;i._onScroll=i._register(new P.a),i.onScroll=i._onScroll.event,e.style.overflow="hidden",i._options=Q(t),i._scrollable=n,i._register(i._scrollable.onScroll((function(e){i._onDidScroll(e),i._onScroll.fire(e)})));var o={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};return i._verticalScrollbar=i._register(new T(i._scrollable,i._options,o)),i._horizontalScrollbar=i._register(new N(i._scrollable,i._options,o)),i._domNode=document.createElement("div"),i._domNode.className="monaco-scrollable-element "+i._options.className,i._domNode.setAttribute("role","presentation"),i._domNode.style.position="relative",i._domNode.style.overflow="hidden",i._domNode.appendChild(e),i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode),i._domNode.appendChild(i._verticalScrollbar.domNode.domNode),i._options.useShadows?(i._leftShadowDomNode=Object(a.b)(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=Object(a.b)(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=Object(a.b)(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)):(i._leftShadowDomNode=null,i._topShadowDomNode=null,i._topLeftShadowDomNode=null),i._listenOnDomNode=i._options.listenOnDomNode||i._domNode,i._mouseWheelToDispose=[],i._setListeningToMouseWheel(i._options.handleMouseWheel),i.onmouseover(i._listenOnDomNode,(function(e){return i._onMouseOver(e)})),i.onnonbubblingmouseout(i._listenOnDomNode,(function(e){return i._onMouseOut(e)})),i._hideTimeout=i._register(new d.e),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i._revealOnScroll=!0,i}var q,U=(j(K,q=z),K.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},K.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},K);function K(e,t){var n=this;(t=t||{}).mouseWheelSmoothScroll=!1;var i=new A.a(0,(function(e){return s.W(e)}));return(n=q.call(this,e,t,i)||this)._register(i),n}var G,Y=(j(Z,G=z),Z);function Z(e,t,n){return G.call(this,e,t,n)||this}var X,$=(j(J,X=U),J.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},J);function J(e,t){var n=X.call(this,e,t)||this;return n._element=e,n.onScroll((function(e){e.scrollTopChanged&&(n._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(n._element.scrollLeft=e.scrollLeft)})),n.scanDomNode(),n}function Q(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,w.e&&(t.className+=" mac"),t}},,,,function(e,t,n){"use strict";var i=n(169),o=n.n(i)()({});t.a=o},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);}}},,,,function(e,t,n){"use strict";var i=n(169),o=n.n(i),r=n(0),s=n(25),a=n(12),l=n.n(a),u=n(33),c=n(783),d=n(77),h=n(18);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return E}));"undefined"!=typeof window&&(window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}));var C,S={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=o()({}),x=(C=0,function(){return C+=1,"".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").concat(C)}),k=function(){function e(t){var n,i,o;return m(this,e),(n=b(this,_(e).call(this,t))).responsiveHandler=function(e){n.setState({below:e.matches});var t=n.props.onBreakpoint;t&&t(e.matches),n.state.collapsed!==e.matches&&n.setCollapsed(e.matches,"responsive")},n.setCollapsed=function(e,t){"collapsed"in n.props||n.setState({collapsed:e});var i=n.props.onCollapse;i&&i(e,t)},n.toggle=function(){var e=!n.state.collapsed;n.setCollapsed(e,"clickTrigger")},n.belowShowChange=function(){n.setState((function(e){return{belowShow:!e.belowShow}}))},n.renderSider=function(e){var t,i=e.getPrefixCls,o=n.props,s=o.prefixCls,a=o.className,c=o.theme,d=o.collapsible,p=o.reverseArrow,m=o.trigger,v=o.style,y=o.width,b=o.collapsedWidth,_=o.zeroWidthTriggerStyle,w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(o,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),C=i("layout-sider",s),S=Object(u.default)(w,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),O=n.state.collapsed?b:y,x=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(O)?"".concat(O,"px"):String(O),k=0===parseFloat(String(b||0))?r.createElement("span",{onClick:n.toggle,className:"".concat(C,"-zero-width-trigger ").concat(C,"-zero-width-trigger-").concat(p?"right":"left"),style:_},r.createElement(h.a,{type:"bars"})):null,E={expanded:p?r.createElement(h.a,{type:"right"}):r.createElement(h.a,{type:"left"}),collapsed:p?r.createElement(h.a,{type:"left"}):r.createElement(h.a,{type:"right"})}[n.state.collapsed?"collapsed":"expanded"],N=null!==m?k||r.createElement("div",{className:"".concat(C,"-trigger"),onClick:n.toggle,style:{width:x}},m||E):null,L=g(g({},v),{flex:"0 0 ".concat(x),maxWidth:x,minWidth:x,width:x}),D=l()(a,C,"".concat(C,"-").concat(c),(f(t={},"".concat(C,"-collapsed"),!!n.state.collapsed),f(t,"".concat(C,"-has-trigger"),d&&null!==m&&!k),f(t,"".concat(C,"-below"),!!n.state.below),f(t,"".concat(C,"-zero-width"),0===parseFloat(x)),t));return r.createElement("aside",g({className:D},S,{style:L}),r.createElement("div",{className:"".concat(C,"-children")},n.props.children),d||n.state.below&&k?N:null)},n.uniqueId=x("ant-sider-"),"undefined"!=typeof window&&(i=window.matchMedia),i&&t.breakpoint&&t.breakpoint in S&&(n.mql=i("(max-width: ".concat(S[t.breakpoint],")"))),o="collapsed"in t?t.collapsed:t.defaultCollapsed,n.state={collapsed:o,below:!1},n}return w(e,r.Component),y(e,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(O.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(d.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),e}();k.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"},Object(s.polyfill)(k);var E=function(){function e(){return m(this,e),b(this,_(e).apply(this,arguments))}return w(e,r.Component),y(e,[{key:"render",value:function(){var e=this;return r.createElement(c.a.Consumer,null,(function(t){return r.createElement(k,g({},t,e.props))}))}}]),e}()},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return v}));var i,o,r,s,a=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l={done:!0,value:void 0};r=o=o||{},s={next:function(){return l}},r.empty=function(){return s},r.single=function(e){var t=!1;return{next:function(){return t?l:{done:!(t=!0),value:e}}}},r.fromArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return n<=t?l:{done:!1,value:e[t++]}}}},r.fromNativeIterator=function(e){return{next:function(){var t=e.next();return t.done?l:{done:!1,value:t.value}}}},r.from=function(e){return e?Array.isArray(e)?r.fromArray(e):e:r.empty()},r.map=function(e,t){return{next:function(){var n=e.next();return n.done?l:{done:!1,value:t(n.value)}}}},r.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return l;if(t(n.value))return{done:!1,value:n.value}}}}},r.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},r.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var i=0,o=e.next();!o.done&&(n.push(o.value),!(++i>=t));o=e.next());return n},r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return l;var t=e[n].next();return t.done?(n++,this.next()):t}}},r.chain=function(e){return new u(e)};var u=(c.prototype.next=function(){return this.it.next()},c);function c(e){this.it=e}function d(e){return Array.isArray(e)?o.fromArray(e):e||o.empty()}var h=(p.prototype.first=function(){return this.index=this.start,this.current()},p.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},p.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},p);function p(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i}var f,g=(a(m,f=h),m.prototype.current=function(){return f.prototype.current.call(this)},m.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},m.prototype.first=function(){return this.index=this.start,this.current()},m.prototype.last=function(){return this.index=this.end-1,this.current()},m.prototype.parent=function(){return null},m);function m(e,t,n,i){return void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),f.call(this,e,t,n,i)||this}var v=(y.prototype.next=function(){return this.fn(this.iterator.next())},y);function y(e,t){this.iterator=e,this.fn=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(478),o=n(548),r=n(452),s=new Array(230),a=new Array(112);!function(){for(var e=0;e<a.length;e++)a[e]=-1;function t(e,t){s[e]=t,a[t]=e}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),i.i?t(91,57):i.h?(t(59,80),t(107,81),t(109,83),r.e&&t(224,57)):i.m&&(t(91,57),r.e?t(93,57):t(92,57))}();var l=r.e?256:2048,u=r.e?2048:256,c=(d.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},d.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},d.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},d.prototype.equals=function(e){return this._asKeybinding===e},d.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=u),t|e},d.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},d);function d(e){this._standardKeyboardEventBrand=!0;var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return o.b.fromString(t)}return s[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return h}));var i,o,r,s=n(459),a=n(439),l=n(443),u=n(881),c=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(r=o=o||{}).Tap="-monaco-gesturetap",r.Change="-monaco-gesturechange",r.Start="-monaco-gesturestart",r.End="-monaco-gesturesend",r.Contextmenu="-monaco-gesturecontextmenu";var d,h=(c(p,d=a.a),p.addTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.targets.push(e),{dispose:function(){p.INSTANCE.targets=p.INSTANCE.targets.filter((function(t){return t!==e}))}}):a.a.None},p.ignoreTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.ignoreTargets.push(e),{dispose:function(){p.INSTANCE.ignoreTargets=p.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):a.a.None},p.isTouchDevice=function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},p.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),d.prototype.dispose.call(this)},p.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n<i;n++){var r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};var s=this.newGestureEvent(o.Start,r.target);s.pageX=r.pageX,s.pageY=r.pageY,this.dispatchEvent(s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.onTouchEnd=function(e){for(var t=Date.now(),n=Object.keys(this.activeTouches).length,i=function(i){var a=e.changedTouches.item(i);if(!r.activeTouches.hasOwnProperty(String(a.identifier)))return"continue";var l=r.activeTouches[a.identifier],u=Date.now()-l.initialTimeStamp;if(u<p.HOLD_DELAY&&Math.abs(l.initialPageX-s.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-s.v(l.rollingPageY))<30)(c=r.newGestureEvent(o.Tap,l.initialTarget)).pageX=s.v(l.rollingPageX),c.pageY=s.v(l.rollingPageY),r.dispatchEvent(c);else if(p.HOLD_DELAY<=u&&Math.abs(l.initialPageX-s.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-s.v(l.rollingPageY))<30){var c;(c=r.newGestureEvent(o.Contextmenu,l.initialTarget)).pageX=s.v(l.rollingPageX),c.pageY=s.v(l.rollingPageY),r.dispatchEvent(c)}else if(1===n){var d=s.v(l.rollingPageX),h=s.v(l.rollingPageY),f=s.v(l.rollingTimestamps)-l.rollingTimestamps[0],g=d-l.rollingPageX[0],m=h-l.rollingPageY[0],v=r.targets.filter((function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)}));r.inertia(v,t,Math.abs(g)/f,0<g?1:-1,d,Math.abs(m)/f,0<m?1:-1,h)}r.dispatchEvent(r.newGestureEvent(o.End,l.initialTarget)),delete r.activeTouches[a.identifier]},r=this,a=0,l=e.changedTouches.length;a<l;a++)i(a);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n},p.prototype.dispatchEvent=function(e){var t=this;if(e.type===o.Tap){var n,i=(new Date).getTime();n=i-this._lastSetTapCountTime>p.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=i,e.tapCount=n}else e.type!==o.Change&&e.type!==o.Contextmenu||(this._lastSetTapCountTime=0);for(var r=0;r<this.ignoreTargets.length;r++)if(e.initialTarget instanceof Node&&this.ignoreTargets[r].contains(e.initialTarget))return;this.targets.forEach((function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)}))},p.prototype.inertia=function(e,t,n,i,r,s,a,u){var c=this;this.handle=l.W((function(){var l=Date.now(),d=l-t,h=0,f=0,g=!0;0<(n+=p.SCROLL_FRICTION*d)&&(g=!1,h=i*n*d),0<(s+=p.SCROLL_FRICTION*d)&&(g=!1,f=a*s*d);var m=c.newGestureEvent(o.Change);m.translationX=h,m.translationY=f,e.forEach((function(e){return e.dispatchEvent(m)})),g||c.inertia(e,l,n,i,r+h,s,a,u+f)}))},p.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n<i;n++){var r=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(r.identifier))){var a=this.activeTouches[r.identifier],l=this.newGestureEvent(o.Change,a.initialTarget);l.translationX=r.pageX-s.v(a.rollingPageX),l.translationY=r.pageY-s.v(a.rollingPageY),l.pageX=r.pageX,l.pageY=r.pageY,this.dispatchEvent(l),3<a.rollingPageX.length&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(r.pageX),a.rollingPageY.push(r.pageY),a.rollingTimestamps.push(t)}}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.SCROLL_FRICTION=-.005,p.HOLD_DELAY=700,p.CLEAR_TAP_COUNT_TIME=400,function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);3<r&&s&&Object.defineProperty(t,n,s)}([u.a],p,"isTouchDevice",null),p);function p(){var e=d.call(this)||this;return e.dispatched=!1,e.activeTouches={},e.handle=null,e.targets=[],e.ignoreTargets=[],e._lastSetTapCountTime=0,e._register(l.j(document,"touchstart",(function(t){return e.onTouchStart(t)}))),e._register(l.j(document,"touchend",(function(t){return e.onTouchEnd(t)}))),e._register(l.j(document,"touchmove",(function(t){return e.onTouchMove(t)}))),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i,o,r=n(439),s=n(442),a=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(a(u,o=r.a),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),u.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(u.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),u.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(u.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),u.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(u.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),u.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(u.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),u.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},u.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},u);function u(e,t,n,i,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0);var a=o.call(this)||this;return a._onDidChange=a._register(new s.a),a.onDidChange=a._onDidChange.event,a._enabled=!0,a._checked=!1,a._id=e,a._label=t,a._cssClass=n,a._enabled=i,a._actionCallback=r,a}var c,d=(a(h,c=r.a),h.prototype.run=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(o){switch(o.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=o.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return i=o.sent(),this._onDidRun.fire({action:e,error:i}),[3,4];case 4:return[2]}}))}))},h.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},h);function h(){var e=null!==c&&c.apply(this,arguments)||this;return e._onDidBeforeRun=e._register(new s.a),e.onDidBeforeRun=e._onDidBeforeRun.event,e._onDidRun=e._register(new s.a),e.onDidRun=e._onDidRun.event,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(440),o=(r.insert=function(e,t){return{range:new i.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},r.delete=function(e){return{range:e,text:null}},r.replace=function(e,t){return{range:e,text:t}},r.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},r);function r(){}},,,function(e,t,n){"use strict";var i=n(478),o=n(442),r=n(439),s=n(452),a=(l.prototype.fulfill=function(e){this.width=e},l);function l(e,t){this.chr=e,this.type=t,this.width=0}var u=(c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.prototype._createDomElements=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";var t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);for(var o=[],r=0,s=this._requests;r<s.length;r++){var a=s[r],l=void 0;0===a.type&&(l=t),2===a.type&&(l=n),1===a.type&&(l=i),l.appendChild(document.createElement("br"));var u=document.createElement("span");c._render(u,a),l.appendChild(u),o.push(u)}this._container=e,this._testElements=o},c._render=function(e,t){if(" "===t.chr){for(var n=" ",i=0;i<8;i++)n+=n;e.innerHTML=n}else{var o=t.chr;for(i=0;i<8;i++)o+=o;e.textContent=o}},c.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256)}},c);function c(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}var d=n(1087),h=n(945),p=n(530),f=n(946);n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return O}));var g,m=(g=function(e,t){return(g=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){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(y.prototype.has=function(e){var t=e.getId();return!!this._values[t]},y.prototype.get=function(e){var t=e.getId();return this._values[t]},y.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},y.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},y.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},y);function y(){this._keys=Object.create(null),this._values=Object.create(null)}function b(){w.INSTANCE.clearCache()}var _,w=(m(C,_=r.a),C.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),_.prototype.dispose.call(this)},C.prototype.clearCache=function(){this._cache=new v,this._onDidChange.fire()},C.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()}),5e3))},C.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,i=e.length;n<i;n++){var o=e[n];o.isTrusted||(t=!0,this._cache.remove(o))}t&&this._onDidChange.fire()},C.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var t=C._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new f.b({zoomLevel:i.c(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)},C.createRequest=function(e,t,n,i){var o=new a(e,t);return n.push(o),i&&i.push(o),o},C._actualReadConfiguration=function(e){var t=[],n=[],o=this.createRequest("n",0,t,n),r=this.createRequest("\uff4d",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),l=this.createRequest("1",0,t,n),c=this.createRequest("2",0,t,n),d=this.createRequest("3",0,t,n),h=this.createRequest("4",0,t,n),g=this.createRequest("5",0,t,n),m=this.createRequest("6",0,t,n),v=this.createRequest("7",0,t,n),y=this.createRequest("8",0,t,n),b=this.createRequest("9",0,t,n),_=this.createRequest("\u2192",0,t,n),w=this.createRequest("\uffeb",0,t,null),C=this.createRequest("\xb7",0,t,n);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),new u(e,t).read();for(var S=Math.max(a.width,l.width,c.width,d.width,h.width,g.width,m.width,v.width,y.width,b.width),O=e.fontFeatureSettings===p.d.OFF,x=n[0].width,k=1,E=n.length;O&&k<E;k++){var N=x-n[k].width;if(N<-.001||.001<N){O=!1;break}}var L=!0;O&&w.width!==x&&(L=!1),w.width>_.width&&(L=!1);var D=2e3<i.b();return new f.b({zoomLevel:i.c(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:s.width,middotWidth:C.width,maxDigitWidth:S},D)},C.INSTANCE=new C,C);function C(){var e=_.call(this)||this;return e._onDidChange=e._register(new o.a),e.onDidChange=e._onDidChange.event,e._cache=new v,e._evictUntrustedReadingsTimeout=-1,e}var S,O=(m(x,S=h.a),x.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},x.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},x.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},x.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},x.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},x.prototype.dispose=function(){S.prototype.dispose.call(this)},x.prototype._getExtraEditorClassName=function(){var e="";return i.k||i.n||(e+="no-user-select "),s.e&&(e+="mac "),e},x.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i.m||i.h,pixelRatio:i.a(),zoomLevel:i.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},x.prototype.readConfiguration=function(e){return w.INSTANCE.readConfiguration(e)},x);function x(e,t,n,o){void 0===n&&(n=null);var r=S.call(this,e,t)||this;return r.accessibilityService=o,r._elementSizeObserver=r._register(new d.a(n,t.dimension,(function(){return r._onReferenceDomElementSizeChanged()}))),r._register(w.INSTANCE.onDidChange((function(){return r._onCSSBasedConfigurationChanged()}))),r._validatedOptions.get(9)&&r._elementSizeObserver.startObserving(),r._register(i.o((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeScreenReaderOptimized((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i=n(0),o=n(1),r=n(12),s=n.n(r),a=n(692),l=n(77);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},v=o.oneOfType([o.object,o.number]),y=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=p(e).apply(this,arguments),(t=!o||"object"!==d(o)&&"function"!=typeof o?f(n):o).renderCol=function(e){var n,o=e.getPrefixCls,r=f(t).props,l=r.prefixCls,h=r.span,p=r.order,g=r.offset,v=r.push,y=r.pull,b=r.className,_=r.children,w=m(r,["prefixCls","span","order","offset","push","pull","className","children"]),C=o("col",l),S={};["xs","sm","md","lg","xl","xxl"].forEach((function(e){var t,n={},i=r[e];"number"==typeof i?n.span=i:"object"===d(i)&&(n=i||{}),delete w[e],S=c(c({},S),(u(t={},"".concat(C,"-").concat(e,"-").concat(n.span),void 0!==n.span),u(t,"".concat(C,"-").concat(e,"-order-").concat(n.order),n.order||0===n.order),u(t,"".concat(C,"-").concat(e,"-offset-").concat(n.offset),n.offset||0===n.offset),u(t,"".concat(C,"-").concat(e,"-push-").concat(n.push),n.push||0===n.push),u(t,"".concat(C,"-").concat(e,"-pull-").concat(n.pull),n.pull||0===n.pull),t))}));var O=s()(C,(u(n={},"".concat(C,"-").concat(h),void 0!==h),u(n,"".concat(C,"-order-").concat(p),p),u(n,"".concat(C,"-offset-").concat(g),g),u(n,"".concat(C,"-push-").concat(v),v),u(n,"".concat(C,"-pull-").concat(y),y),n),b,S);return i.createElement(a.a.Consumer,null,(function(e){var t=e.gutter,n=w.style;return t&&(n=c(c(c({},0<t[0]?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),0<t[1]?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),n)),i.createElement("div",c({},w,{style:n,className:O}),_)}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){return i.createElement(l.a,null,this.renderCol)}}])&&h(t.prototype,n),e}();y.propTypes={span:o.number,order:o.number,offset:o.number,push:o.number,pull:o.number,className:o.string,children:o.node,xs:v,sm:v,md:v,lg:v,xl:v,xxl:v}},function(e,t,n){"use strict";var i,o=n(0),r=n(12),s=n.n(r),a=n(1),l=n(77),u=n(692),c=n(51);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}"undefined"!=typeof window&&(window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}),i=n(798));var p=["xxl","xl","lg","md","sm","xs"],f={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},g=[],m=-1,v={},y={dispatch:function(e){return v=e,!(g.length<1)&&(g.forEach((function(e){e.func(v)})),!0)},subscribe:function(e){0===g.length&&this.register();var t=(++m).toString();return g.push({token:t,func:e}),e(v),t},unsubscribe:function(e){0===(g=g.filter((function(t){return t.token!==e}))).length&&this.unregister()},unregister:function(){Object.keys(f).map((function(e){return i.unregister(f[e])}))},register:function(){var e=this;Object.keys(f).map((function(t){return i.register(f[t],{match:function(){var n=h(h({},v),d({},t,!0));e.dispatch(n)},unmatch:function(){var n=h(h({},v),d({},t,!1));e.dispatch(n)},destroy:function(){}})}))}};function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function S(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return L}));var k=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},E=Object(c.a)("top","middle","bottom","stretch"),N=Object(c.a)("start","end","center","space-around","space-between"),L=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=S(this,O(e).apply(this,arguments))).state={screens:{}},t.renderRow=function(e){var n,i=e.getPrefixCls,r=t.props,a=r.prefixCls,l=r.type,c=r.justify,d=r.align,h=r.className,p=r.style,f=r.children,g=k(r,["prefixCls","type","justify","align","className","style","children"]),m=i("row",a),v=t.getGutter(),y=s()((w(n={},m,!l),w(n,"".concat(m,"-").concat(l),l),w(n,"".concat(m,"-").concat(l,"-").concat(c),l&&c),w(n,"".concat(m,"-").concat(l,"-").concat(d),l&&d),n),h),b=_(_(_({},0<v[0]?{marginLeft:v[0]/-2,marginRight:v[0]/-2}:{}),0<v[1]?{marginTop:v[1]/-2,marginBottom:v[1]/-2}:{}),p),C=_({},g);return delete C.gutter,o.createElement(u.a.Provider,{value:{gutter:v}},o.createElement("div",_({},C,{className:y,style:b}),f))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this;this.token=y.subscribe((function(t){var n=e.props.gutter;"object"!==b(n)&&(!Array.isArray(n)||"object"!==b(n[0])&&"object"!==b(n[1]))||e.setState({screens:t})}))}},{key:"componentWillUnmount",value:function(){y.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach((function(t,i){if("object"===b(t))for(var o=0;o<p.length;o++){var r=p[o];if(n[r]&&void 0!==t[r]){e[i]=t[r];break}}else e[i]=t||0})),e}},{key:"render",value:function(){return o.createElement(l.a,null,this.renderRow)}}])&&C(t.prototype,n),e}();L.defaultProps={gutter:0},L.propTypes={type:a.oneOf(["flex"]),align:a.oneOf(E),justify:a.oneOf(N),className:a.string,children:a.node,gutter:a.oneOfType([a.object,a.number,a.array]),prefixCls:a.string}},function(e,t,n){},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(712)),r=i(n(569));t.Column=r.default;var s=i(n(570));t.ColumnGroup=s.default;var a=n(468);t.INTERNAL_COL_DEFINE=a.INTERNAL_COL_DEFINE,t.default=o.default},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=u(n(0)),h=u(n(1)),p=c(n(75)),f=c(n(713)),g=c(n(266)),m=n(476),v=c(n(714)),y=c(n(187)),b=c(n(12)),_=n(25),w=n(468),C=c(n(740)),S=c(n(741)),O=c(n(748)),x=c(n(569)),k=c(n(570)),E=c(n(749)),N=function(){function e(t){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,o=s(e).call(this,t),(n=!o||"object"!==i(o)&&"function"!=typeof o?a(this):o).state={},n.getRowKey=function(e,t){var i=n.props.rowKey,o="function"==typeof i?i(e,t):e[i];return g.default(void 0!==o,"Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key."),void 0===o?t:o},n.handleWindowResize=function(){n.syncFixedTableRowHeight(),n.setScrollPositionClassName()},n.syncFixedTableRowHeight=function(){var e=n.tableNode.getBoundingClientRect();if(!(void 0!==e.height&&e.height<=0)){var t=n.props.prefixCls,i=n.headTable?n.headTable.querySelectorAll("thead"):n.bodyTable.querySelectorAll("thead"),o=n.bodyTable.querySelectorAll(".".concat(t,"-row"))||[],r=[].map.call(i,(function(e){return e.getBoundingClientRect().height||"auto"})),s=n.store.getState(),a=[].reduce.call(o,(function(e,t){var n=t.getAttribute("data-row-key"),i=t.getBoundingClientRect().height||s.fixedColumnsBodyRowsHeight[n]||"auto";return e[n]=i,e}),{});p.default(s.fixedColumnsHeadRowsHeight,r)&&p.default(s.fixedColumnsBodyRowsHeight,a)||n.store.setState({fixedColumnsHeadRowsHeight:r,fixedColumnsBodyRowsHeight:a})}},n.handleBodyScrollLeft=function(e){if(e.currentTarget===e.target){var t=e.target,i=n.props.scroll,o=void 0===i?{}:i,r=a(n),s=r.headTable,l=r.bodyTable;t.scrollLeft!==n.lastScrollLeft&&o.x&&(t===l&&s?s.scrollLeft=t.scrollLeft:t===s&&l&&(l.scrollLeft=t.scrollLeft),n.setScrollPositionClassName()),n.lastScrollLeft=t.scrollLeft}},n.handleBodyScrollTop=function(e){var t=e.target;if(e.currentTarget===t){var i=n.props.scroll,o=void 0===i?{}:i,r=a(n),s=r.headTable,l=r.bodyTable,u=r.fixedColumnsBodyLeft,c=r.fixedColumnsBodyRight;if(t.scrollTop!==n.lastScrollTop&&o.y&&t!==s){var d=t.scrollTop;u&&t!==u&&(u.scrollTop=d),c&&t!==c&&(c.scrollTop=d),l&&t!==l&&(l.scrollTop=d)}n.lastScrollTop=t.scrollTop}},n.handleBodyScroll=function(e){n.handleBodyScrollLeft(e),n.handleBodyScrollTop(e)},n.handleWheel=function(e){var t=n.props.scroll,i=void 0===t?{}:t;if(window.navigator.userAgent.match(/Trident\/7\./)&&i.y){e.preventDefault();var o,r=e.deltaY,s=e.target,l=a(n),u=l.bodyTable,c=l.fixedColumnsBodyLeft,d=l.fixedColumnsBodyRight;o=n.lastScrollTop?n.lastScrollTop+r:r,c&&s!==c&&(c.scrollTop=o),d&&s!==d&&(d.scrollTop=o),u&&s!==u&&(u.scrollTop=o)}},n.saveRef=function(e){return function(t){n[e]=t}},n.saveTableNodeRef=function(e){n.tableNode=e},["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){g.default(void 0===t[e],"".concat(e," is deprecated, please use onRow instead."))})),g.default(void 0===t.getBodyWrapper,"getBodyWrapper is deprecated, please use custom components instead."),n.columnManager=new C.default(t.columns,t.children),n.store=m.create({currentHoverKey:null,fixedColumnsHeadRowsHeight:[],fixedColumnsBodyRowsHeight:{}}),n.setScrollPosition("left"),n.debouncedWindowResize=w.debounce(n.handleWindowResize,150),n}var t,n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(e,d.Component),t=e,u=[{key:"getDerivedStateFromProps",value:function(e,t){return e.columns&&e.columns!==t.columns?{columns:e.columns,children:null}:e.children!==t.children?{columns:null,children:e.children}:null}}],(n=[{key:"getChildContext",value:function(){return{table:{props:this.props,columnManager:this.columnManager,saveRef:this.saveRef,components:v.default({table:"table",header:{wrapper:"thead",row:"tr",cell:"th"},body:{wrapper:"tbody",row:"tr",cell:"td"}},this.props.components)}}}},{key:"componentDidMount",value:function(){this.columnManager.isAnyColumnsFixed()&&(this.handleWindowResize(),this.resizeEvent=f.default(window,"resize",this.debouncedWindowResize)),this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"componentDidUpdate",value:function(e){this.columnManager.isAnyColumnsFixed()&&(this.handleWindowResize(),this.resizeEvent||(this.resizeEvent=f.default(window,"resize",this.debouncedWindowResize))),0<e.data.length&&0===this.props.data.length&&this.hasScrollX()&&this.resetScrollX()}},{key:"componentWillUnmount",value:function(){this.resizeEvent&&this.resizeEvent.remove(),this.debouncedWindowResize&&this.debouncedWindowResize.cancel()}},{key:"setScrollPosition",value:function(e){if(this.scrollPosition=e,this.tableNode){var t=this.props.prefixCls;"both"===e?y.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-left")).add("".concat(t,"-scroll-position-right")):y.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-").concat(e))}}},{key:"setScrollPositionClassName",value:function(){var e=this.bodyTable,t=0===e.scrollLeft,n=e.scrollLeft+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")}},{key:"isTableLayoutFixed",value:function(){var e=this.props,t=e.tableLayout,n=e.columns,i=void 0===n?[]:n,o=e.useFixedHeader,r=e.scroll,s=void 0===r?{}:r;return void 0!==t?"fixed"===t:!!i.some((function(e){return!!e.ellipsis}))||!(!o&&!s.y)||!(!s.x||!0===s.x||"max-content"===s.x)}},{key:"resetScrollX",value:function(){this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"hasScrollX",value:function(){var e=this.props.scroll;return"x"in(void 0===e?{}:e)}},{key:"renderMainTable",value:function(){var e=this.props,t=e.scroll,n=e.prefixCls,i=this.columnManager.isAnyColumnsFixed(),o=i||t.x||t.y,r=[this.renderTable({columns:this.columnManager.groupedColumns(),isAnyColumnsFixed:i}),this.renderEmptyText(),this.renderFooter()];return o?d.createElement("div",{className:"".concat(n,"-scroll")},r):r}},{key:"renderLeftFixedTable",value:function(){var e=this.props.prefixCls;return d.createElement("div",{className:"".concat(e,"-fixed-left")},this.renderTable({columns:this.columnManager.leftColumns(),fixed:"left"}))}},{key:"renderRightFixedTable",value:function(){var e=this.props.prefixCls;return d.createElement("div",{className:"".concat(e,"-fixed-right")},this.renderTable({columns:this.columnManager.rightColumns(),fixed:"right"}))}},{key:"renderTable",value:function(e){var t=e.columns,n=e.fixed,i=e.isAnyColumnsFixed,o=this.props,r=o.prefixCls,s=o.scroll,a=(void 0===s?{}:s).x||n?"".concat(r,"-fixed"):"";return[d.createElement(S.default,{key:"head",columns:t,fixed:n,tableClassName:a,handleBodyScrollLeft:this.handleBodyScrollLeft,expander:this.expander}),d.createElement(O.default,{key:"body",columns:t,fixed:n,tableClassName:a,getRowKey:this.getRowKey,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,expander:this.expander,isAnyColumnsFixed:i})]}},{key:"renderTitle",value:function(){var e=this.props,t=e.title,n=e.prefixCls;return t?d.createElement("div",{className:"".concat(n,"-title"),key:"title"},t(this.props.data)):null}},{key:"renderFooter",value:function(){var e=this.props,t=e.footer,n=e.prefixCls;return t?d.createElement("div",{className:"".concat(n,"-footer"),key:"footer"},t(this.props.data)):null}},{key:"renderEmptyText",value:function(){var e=this.props,t=e.emptyText,n=e.prefixCls;if(e.data.length)return null;var i="".concat(n,"-placeholder");return d.createElement("div",{className:i,key:"emptyText"},"function"==typeof t?t():t)}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.prefixCls;this.state.columns?this.columnManager.reset(n.columns):this.state.children&&this.columnManager.reset(null,n.children);var r=b.default(n.prefixCls,n.className,(o(e={},"".concat(i,"-fixed-header"),n.useFixedHeader||n.scroll&&n.scroll.y),o(e,"".concat(i,"-scroll-position-left ").concat(i,"-scroll-position-right"),"both"===this.scrollPosition),o(e,"".concat(i,"-scroll-position-").concat(this.scrollPosition),"both"!==this.scrollPosition),o(e,"".concat(i,"-layout-fixed"),this.isTableLayoutFixed()),e)),s=this.columnManager.isAnyColumnsLeftFixed(),a=this.columnManager.isAnyColumnsRightFixed(),l=w.getDataAndAriaProps(n);return d.createElement(m.Provider,{store:this.store},d.createElement(E.default,Object.assign({},n,{columnManager:this.columnManager,getRowKey:this.getRowKey}),(function(e){return t.expander=e,d.createElement("div",Object.assign({ref:t.saveTableNodeRef,className:r,style:n.style,id:n.id},l),t.renderTitle(),d.createElement("div",{className:"".concat(i,"-content")},t.renderMainTable(),s&&t.renderLeftFixedTable(),a&&t.renderRightFixedTable()))})))}}])&&r(t.prototype,n),u&&r(t,u),e}();N.childContextTypes={table:h.any,components:h.any},N.Column=x.default,N.ColumnGroup=k.default,N.defaultProps={data:[],useFixedHeader:!1,rowKey:"key",rowClassName:function(){return""},onRow:function(){},onHeaderRow:function(){},prefixCls:"rc-table",bodyStyle:{},style:{},showHeader:!0,scroll:{},rowRef:function(){return null},emptyText:function(){return"No Data"}},_.polyfill(N),t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){var s=o.default.unstable_batchedUpdates?function(e){o.default.unstable_batchedUpdates(n,e)}:n;return(0,i.default)(e,t,s,r)};var i=r(n(188)),o=r(n(13));function r(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var i=n(715),o=n(731)((function(e,t,n){i(e,t,n)}));e.exports=o},function(e,t,n){var i=n(481),o=n(563),r=n(716),s=n(718),a=n(168),l=n(566),u=n(565);e.exports=function e(t,n,c,d,h){t!==n&&r(n,(function(r,l){if(h=h||new i,a(r))s(t,n,l,c,e,d,h);else{var p=d?d(u(t,l),r,l+"",t,n,h):void 0;void 0===p&&(p=r),o(t,l,p)}}),l)}},function(e,t,n){var i=n(717)();e.exports=i},function(e,t){e.exports=function(e){return function(t,n,i){for(var o=-1,r=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(r[l],l,r))break}return t}}},function(e,t,n){var i=n(563),o=n(719),r=n(720),s=n(722),a=n(723),l=n(547),u=n(458),c=n(725),d=n(473),h=n(512),p=n(168),f=n(726),g=n(474),m=n(565),v=n(727);e.exports=function(e,t,n,y,b,_,w){var C=m(e,n),S=m(t,n),O=w.get(S);if(O)i(e,n,O);else{var x=_?_(C,S,n+"",e,t,w):void 0,k=void 0===x;if(k){var E=u(S),N=!E&&d(S),L=!E&&!N&&g(S);x=S,E||N||L?x=u(C)?C:c(C)?s(C):N?o(S,!(k=!1)):L?r(S,!(k=!1)):[]:f(S)||l(S)?l(x=C)?x=v(C):p(C)&&!h(C)||(x=a(S)):k=!1}k&&(w.set(S,x),b(x,S,y,_,w),w.delete(S)),i(e,n,x)}}},function(e,t,n){(function(e){var i=n(166),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===o?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}).call(this,n(262)(e))},function(e,t,n){var i=n(721);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var i=n(508);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t){e.exports=function(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}},function(e,t,n){var i=n(724),o=n(564),r=n(485);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(o(e))}},function(e,t,n){var i=n(168),o=Object.create;function r(){}e.exports=function(e){if(!i(e))return{};if(o)return o(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}},function(e,t,n){var i=n(475),o=n(261);e.exports=function(e){return o(e)&&i(e)}},function(e,t,n){var i=n(263),o=n(564),r=n(261),s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(e,t,n){var i=n(728),o=n(566);e.exports=function(e){return i(e,o(e))}},function(e,t,n){var i=n(493),o=n(467);e.exports=function(e,t,n,r){var s=!n;n=n||{};for(var a=-1,l=t.length;++a<l;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),(s?o:i)(n,u,c)}return n}},function(e,t,n){var i=n(168),o=n(485),r=n(730),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var i=n(732),o=n(739);e.exports=function(e){return i((function(t,n){var i=-1,r=n.length,s=1<r?n[r-1]:void 0,a=2<r?n[2]:void 0;for(s=3<e.length&&"function"==typeof s?(r--,s):void 0,a&&o(n[0],n[1],a)&&(s=r<3?void 0:s,r=1),t=Object(t);++i<r;){var l=n[i];l&&e(t,l,i,s)}return t}))}},function(e,t,n){var i=n(486),o=n(733),r=n(735);e.exports=function(e,t){return r(o(e,t,i),e+"")}},function(e,t,n){var i=n(734),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,a=o(r.length-t,0),l=Array(a);++s<a;)l[s]=r[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=r[s];return u[t]=n(l),i(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var i=n(736),o=n(738)(i);e.exports=o},function(e,t,n){var i=n(737),o=n(477),r=n(486),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=s},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,i=0;return function(){var o=n(),r=16-(o-i);if(i=o,0<r){if(800<=++t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var i=n(460),o=n(475),r=n(492),s=n(168);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?o(n)&&r(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(0)),u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cached={},this.columns=t||this.normalize(n)}var t,n;return t=e,(n=[{key:"isAnyColumnsFixed",value:function(){var e=this;return this._cache("isAnyColumnsFixed",(function(){return e.columns.some((function(e){return!!e.fixed}))}))}},{key:"isAnyColumnsLeftFixed",value:function(){var e=this;return this._cache("isAnyColumnsLeftFixed",(function(){return e.columns.some((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"isAnyColumnsRightFixed",value:function(){var e=this;return this._cache("isAnyColumnsRightFixed",(function(){return e.columns.some((function(e){return"right"===e.fixed}))}))}},{key:"leftColumns",value:function(){var e=this;return this._cache("leftColumns",(function(){return e.groupedColumns().filter((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"rightColumns",value:function(){var e=this;return this._cache("rightColumns",(function(){return e.groupedColumns().filter((function(e){return"right"===e.fixed}))}))}},{key:"leafColumns",value:function(){var e=this;return this._cache("leafColumns",(function(){return e._leafColumns(e.columns)}))}},{key:"leftLeafColumns",value:function(){var e=this;return this._cache("leftLeafColumns",(function(){return e._leafColumns(e.leftColumns())}))}},{key:"rightLeafColumns",value:function(){var e=this;return this._cache("rightLeafColumns",(function(){return e._leafColumns(e.rightColumns())}))}},{key:"groupedColumns",value:function(){var e=this;return this._cache("groupedColumns",(function(){return function e(t,n,i,r){var s=1<arguments.length&&void 0!==n?n:0,a=2<arguments.length&&void 0!==i?i:{},l=3<arguments.length&&void 0!==r?r:[];function u(e){var t=l.length-s;e&&!e.children&&1<t&&(!e.rowSpan||e.rowSpan<t)&&(e.rowSpan=t)}l[s]=l[s]||[];var c=[];return t.forEach((function(n,i){var r=o({},n);l[s].push(r),a.colSpan=a.colSpan||0,r.children&&0<r.children.length?(r.children=e(r.children,s+1,r,l),a.colSpan+=r.colSpan):a.colSpan+=1;for(var d=0;d<l[s].length-1;d+=1)u(l[s][d]);i+1===t.length&&u(r),c.push(r)})),c}(e.columns)}))}},{key:"normalize",value:function(e){var t=this,n=[];return l.Children.forEach(e,(function(e){if(l.isValidElement(e)){var i=o({},e.props);e.key&&(i.key=e.key),e.type.isTableColumnGroup&&(i.children=t.normalize(i.children)),n.push(i)}})),n}},{key:"reset",value:function(e,t){this.columns=e||this.normalize(t),this._cached={}}},{key:"_cache",value:function(e,t){return e in this._cached||(this._cached[e]=t()),this._cached[e]}},{key:"_leafColumns",value:function(e){var t=this,n=[];return e.forEach((function(e){e.children?n.push.apply(n,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t._leafColumns(e.children))):n.push(e)})),n}}])&&s(t.prototype,n),e}();t.default=u},function(e,t,n){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),s=i(n(1)),a=o(n(12)),l=n(468),u=o(n(567));(t.default=function(e,t){var n,i,o,s=t.table,c=s.props,d=c.prefixCls,h=c.scroll,p=c.showHeader,f=e.columns,g=e.fixed,m=e.tableClassName,v=e.handleBodyScrollLeft,y=e.expander,b=s.saveRef,_=s.props.useFixedHeader,w={},C=l.measureScrollbar({direction:"vertical"});if(h.y){_=!0;var S=l.measureScrollbar({direction:"horizontal",prefixCls:d});0<S&&!g&&(w.marginBottom="-".concat(S,"px"),w.paddingBottom="0px",w.minWidth="".concat(C,"px"),w.overflowX="scroll",w.overflowY=0===C?"hidden":"scroll")}return _&&p?r.createElement("div",{key:"headTable",ref:g?null:b("headTable"),className:a.default("".concat(d,"-header"),(n={},i="".concat(d,"-hide-scrollbar"),o=0<C,i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n)),style:w,onScroll:v},r.createElement(u.default,{tableClassName:m,hasHead:!0,hasBody:!1,fixed:g,columns:f,expander:y})):null}).contextTypes={table:s.any}},function(e,t,n){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};function o(e,t){var n,i=t.table,o=i.props,s=o.prefixCls,l=o.expandIconAsCell,u=e.fixed,c=[];return l&&"right"!==u&&c.push(r.createElement("col",{className:"".concat(s,"-expand-icon-col"),key:"rc-table-expand-icon-col"})),n="left"===u?i.columnManager.leftLeafColumns():"right"===u?i.columnManager.rightLeafColumns():i.columnManager.leafColumns(),c=c.concat(n.map((function(e){var t=e.key,n=e.dataIndex,i=e.width,o=e[a.INTERNAL_COL_DEFINE],s=void 0!==t?t:n;return r.createElement("col",Object.assign({key:s,style:{width:i,minWidth:i}},o))}))),r.createElement("colgroup",null,c)}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),s=i(n(1)),a=n(468);o.contextTypes={table:s.any},t.default=o},function(e,t,n){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),s=i(n(1)),a=o(n(744));function l(e,t){var n=t.table,i=n.components,o=n.props,s=o.prefixCls,l=o.showHeader,u=o.onHeaderRow,c=e.expander,d=e.columns,h=e.fixed;if(!l)return null;var p=function e(t){var n=t.columns,i=void 0===n?[]:n,o=t.currentRow,r=void 0===o?0:o,s=t.rows,a=void 0===s?[]:s,l=t.isLast,u=void 0===l||l;return a[r]=a[r]||[],i.forEach((function(t,n){if(t.rowSpan&&a.length<t.rowSpan)for(;a.length<t.rowSpan;)a.push([]);var o=u&&n===i.length-1,s={key:t.key,className:t.className||"",children:t.title,isLast:o,column:t};t.children&&e({columns:t.children,currentRow:r+1,rows:a,isLast:o}),"colSpan"in t&&(s.colSpan=t.colSpan),"rowSpan"in t&&(s.rowSpan=t.rowSpan),0!==s.colSpan&&a[r].push(s)})),a.filter((function(e){return 0<e.length}))}({columns:d});c.renderExpandIndentCell(p,h);var f=i.header.wrapper;return r.createElement(f,{className:"".concat(s,"-thead")},p.map((function(e,t){return r.createElement(a.default,{prefixCls:s,key:t,index:t,fixed:h,columns:d,rows:p,row:e,components:i,onHeaderRow:u})})))}l.contextTypes={table:s.any},t.default=l},function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(0)),u=n(476),c=a(n(12));t.default=u.connect((function(e,t){return{height:(n=t,i=e.fixedColumnsHeadRowsHeight,o=n.columns,r=n.rows,s=n.fixed,a=i[0],s&&a&&o?"auto"===a?"auto":a/r.length:null)};var n,i,o,r,s,a}))((function(e){var t=e.row,n=e.index,i=e.height,s=e.components,a=e.onHeaderRow,u=e.prefixCls,d=s.header.row,h=s.header.cell,p=a(t.map((function(e){return e.column})),n),f=p?p.style:{},g=o({height:1<t.length&&0===n&&i&&"auto"!==i?parseInt(i.toString(),10):i},f);return l.createElement(d,Object.assign({},p,{style:g}),t.map((function(e,t){var n,i=e.column,s=e.isLast,a=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["column","isLast"]),d=i.onHeaderCell?i.onHeaderCell(i):{};return i.align&&(d.style=o({},d.style,{textAlign:i.align})),d.className=c.default(d.className,i.className,(r(n={},"".concat(u,"-align-").concat(i.align),!!i.align),r(n,"".concat(u,"-row-cell-ellipsis"),!!i.ellipsis),r(n,"".concat(u,"-row-cell-break-word"),!!i.width),r(n,"".concat(u,"-row-cell-last"),s),n)),l.createElement(h,Object.assign({},a,d,{key:i.key||i.dataIndex||t}))})))}))},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=h(n(12)),g=h(n(511));function m(e){return e&&!p.isValidElement(e)&&"[object Object]"===Object.prototype.toString.call(e)}var v=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,u(e).apply(this,arguments))).handleClick=function(e){var n=t.props,i=n.record,o=n.column.onCellClick;o&&o(i,e)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(e,p.Component),t=e,(n=[{key:"render",value:function(){var e,t,n=this.props,i=n.record,o=n.indentSize,a=n.prefixCls,l=n.indent,u=n.index,c=n.expandIcon,d=n.column,h=n.component,v=d.dataIndex,y=d.render,b=d.className,_=void 0===b?"":b;t="number"==typeof v||v&&0!==v.length?g.default(i,v):i;var w,C,S={};y&&m(t=y(t,i,u))&&(w=(S=t.props||S).colSpan,C=S.rowSpan,t=t.children),d.onCell&&(S=r({},S,{},d.onCell(i,u))),m(t)&&(t=null);var O=c?p.createElement("span",{style:{paddingLeft:"".concat(o*l,"px")},className:"".concat(a,"-indent indent-level-").concat(l)}):null;if(0===C||0===w)return null;d.align&&(S.style=r({textAlign:d.align},S.style));var x=f.default(_,(s(e={},"".concat(a,"-cell-ellipsis"),!!d.ellipsis),s(e,"".concat(a,"-cell-break-word"),!!d.width),e));if(d.ellipsis)if("string"==typeof t)S.title=t;else if(t){var k=t.props;k&&k.children&&"string"==typeof k.children&&(S.title=k.children)}return p.createElement(h,Object.assign({className:x,onClick:this.handleClick},S),O,c,t)}}])&&a(t.prototype,n),e}();t.default=v},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=l(n(0)),d=n(476),h=u(n(747)),p=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=r(this,s(e).apply(this,arguments))).hasExpandIcon=function(e){var n=t.props,i=n.expandRowByClick,o=n.expandIcon;return!t.expandIconAsCell&&e===t.expandIconColumnIndex&&(!!o||!i)},t.handleExpandChange=function(e,n){var i=t.props,o=i.onExpandedChange,r=i.expanded,s=i.rowKey;t.expandable&&o(!r,e,n,s)},t.handleRowClick=function(e,n,i){var o=t.props,r=o.expandRowByClick,s=o.onRowClick;r&&t.handleExpandChange(e,i),s&&s(e,n,i)},t.renderExpandIcon=function(){var e=t.props,n=e.prefixCls,i=e.expanded,o=e.record,r=e.needIndentSpaced,s=e.expandIcon;return s?s({prefixCls:n,expanded:i,record:o,needIndentSpaced:r,expandable:t.expandable,onExpand:t.handleExpandChange}):c.createElement(h.default,{expandable:t.expandable,prefixCls:n,onExpand:t.handleExpandChange,needIndentSpaced:r,expanded:i,record:o})},t.renderExpandIconCell=function(e){if(t.expandIconAsCell){var n=t.props.prefixCls;e.push(c.createElement("td",{className:"".concat(n,"-expand-icon-cell"),key:"rc-table-expand-icon-cell"},t.renderExpandIcon()))}},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(e,c.Component),t=e,(n=[{key:"componentWillUnmount",value:function(){this.handleDestroy()}},{key:"handleDestroy",value:function(){var e=this.props,t=e.onExpandedChange,n=e.rowKey,i=e.record;this.expandable&&t(!1,i,null,n,!0)}},{key:"render",value:function(){var e=this.props,t=e.childrenColumnName,n=e.expandedRowRender,i=e.indentSize,o=e.record,r=e.fixed,s=e.expanded;this.expandIconAsCell="right"!==r&&this.props.expandIconAsCell,this.expandIconColumnIndex="right"!==r?this.props.expandIconColumnIndex:-1;var a=o[t];this.expandable=!(!a&&!n);var l={indentSize:i,expanded:s,onRowClick:this.handleRowClick,hasExpandIcon:this.hasExpandIcon,renderExpandIcon:this.renderExpandIcon,renderExpandIconCell:this.renderExpandIconCell};return this.props.children(l)}}])&&o(t.prototype,n),e}();t.default=d.connect((function(e,t){var n=e.expandedRowKeys,i=void 0===n?[]:n,o=t.rowKey;return{expanded:i.includes(o)}}))(p)},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=l(n(0)),d=u(n(75)),h=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,s(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(e,c.Component),t=e,(n=[{key:"shouldComponentUpdate",value:function(e){return!d.default(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.expandable,n=e.prefixCls,i=e.onExpand,o=e.needIndentSpaced,r=e.expanded,s=e.record;if(t){var a=r?"expanded":"collapsed";return c.createElement("span",{className:"".concat(n,"-expand-icon ").concat(n,"-").concat(a),onClick:function(e){return i(s,e)}})}return o?c.createElement("span",{className:"".concat(n,"-expand-icon ").concat(n,"-spaced")}):null}}])&&o(t.prototype,n),e}();t.default=h},function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(0)),u=s(n(1)),c=n(468),d=a(n(567));(t.default=function(e,t){var n=t.table,i=n.props,r=i.prefixCls,s=i.scroll,a=e.columns,u=e.fixed,h=e.tableClassName,p=e.getRowKey,f=e.handleBodyScroll,g=e.handleWheel,m=e.expander,v=e.isAnyColumnsFixed,y=n.saveRef,b=n.props.useFixedHeader,_=o({},n.props.bodyStyle),w={};if((s.x||u)&&(_.overflowX=_.overflowX||"scroll",_.WebkitTransform="translate3d (0, 0, 0)"),s.y){u?(w.maxHeight=_.maxHeight||s.y,w.overflowY=_.overflowY||"scroll"):_.maxHeight=_.maxHeight||s.y,_.overflowY=_.overflowY||"scroll",b=!0;var C=c.measureScrollbar({direction:"vertical"});0<C&&u&&(_.marginBottom="-".concat(C,"px"),_.paddingBottom="0px")}var S,O=l.createElement(d.default,{tableClassName:h,hasHead:!b,hasBody:!0,fixed:u,columns:a,expander:m,getRowKey:p,isAnyColumnsFixed:v});if(u&&a.length)return"left"===a[0].fixed||!0===a[0].fixed?S="fixedColumnsBodyLeft":"right"===a[0].fixed&&(S="fixedColumnsBodyRight"),delete _.overflowX,delete _.overflowY,l.createElement("div",{key:"bodyTable",className:"".concat(r,"-body-outer"),style:o({},_)},l.createElement("div",{className:"".concat(r,"-body-inner"),style:w,ref:y(S),onWheel:g,onScroll:f},O));var x=s&&(s.x||s.y);return l.createElement("div",{tabIndex:x?-1:void 0,key:"bodyTable",className:"".concat(r,"-body"),style:_,ref:y("bodyTable"),onWheel:g,onScroll:f},O)}).contextTypes={table:u.any}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=n(476),g=n(25),m=h(n(75)),v=h(n(568)),y=n(468),b=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=l(this,u(e).call(this,t))).handleExpandChange=function(e,t,i,o){var r=4<arguments.length&&void 0!==arguments[4]&&arguments[4];i&&i.stopPropagation();var a=n.props,l=a.onExpandedRowsChange,u=a.onExpand,c=n.store.getState().expandedRowKeys;e?c=[].concat(s(c),[o]):-1!==c.indexOf(o)&&(c=y.remove(c,o)),n.props.expandedRowKeys||n.store.setState({expandedRowKeys:c}),n.latestExpandedRows&&m.default(n.latestExpandedRows,c)||l(n.latestExpandedRows=c),r||u(e,t)},n.renderExpandIndentCell=function(e,t){var i=n.props,s=i.prefixCls;if(i.expandIconAsCell&&"right"!==t&&e.length){var a={key:"rc-table-expand-icon-cell",className:"".concat(s,"-expand-icon-th"),title:"",rowSpan:e.length};e[0].unshift(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{column:a}))}},n.renderRows=function(e,t,i,o,r,a,l,u){var c=n.props,d=c.expandedRowClassName,h=c.expandedRowRender,p=i[c.childrenColumnName],f=[].concat(s(u),[l]),g=r+1;h&&t.push(n.renderExpandedRow(i,o,h,d(i,o,r),f,g,a)),p&&t.push.apply(t,s(e(p,g,f)))};var i=t.data,a=t.childrenColumnName,c=t.defaultExpandAllRows,d=t.expandedRowKeys,h=t.defaultExpandedRowKeys,p=t.getRowKey,f=[],g=s(i);if(c)for(var v=0;v<g.length;v+=1){var b=g[v];f.push(p(b,v)),g=g.concat(b[a]||[])}else f=d||h;return n.columnManager=t.columnManager,n.store=t.store,n.store.setState({expandedRowsHeight:{},expandedRowKeys:f}),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(e,p.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.handleUpdated()}},{key:"componentDidUpdate",value:function(){"expandedRowKeys"in this.props&&this.store.setState({expandedRowKeys:this.props.expandedRowKeys}),this.handleUpdated()}},{key:"handleUpdated",value:function(){this.latestExpandedRows=null}},{key:"renderExpandedRow",value:function(e,t,n,i,o,r,s){var a,l=this,u=this.props,c=u.prefixCls,d=u.expandIconAsCell,h=u.indentSize,f=o[o.length-1],g="".concat(f,"-extra-row");a="left"===s?this.columnManager.leftLeafColumns().length:"right"===s?this.columnManager.rightLeafColumns().length:this.columnManager.leafColumns().length;var m=[{key:"extra-row",render:function(){var i=l.store.getState().expandedRowKeys,o=(void 0===i?[]:i).includes(f);return{props:{colSpan:a},children:"right"!==s?n(e,t,r,o):" "}}}];return d&&"right"!==s&&m.unshift({key:"expand-icon-placeholder",render:function(){return null}}),p.createElement(v.default,{key:g,columns:m,className:i,rowKey:g,ancestorKeys:o,prefixCls:"".concat(c,"-expanded-row"),indentSize:h,indent:r,fixed:s,components:{body:{row:"tr",cell:"td"}},expandedRow:!0})}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.childrenColumnName,i=e.children,o=t.some((function(e){return e[n]}));return i({props:this.props,needIndentSpaced:o,renderRows:this.renderRows,handleExpandChange:this.handleExpandChange,renderExpandIndentCell:this.renderExpandIndentCell})}}])&&a(t.prototype,n),e}();b.defaultProps={expandIconAsCell:!1,expandedRowClassName:function(){return""},expandIconColumnIndex:0,defaultExpandAllRows:!1,defaultExpandedRowKeys:[],childrenColumnName:"children",indentSize:15,onExpand:function(){},onExpandedRowsChange:function(){}},g.polyfill(b),t.default=f.connect()(b)},function(e,t,n){var i=n(751);e.exports=function(e,t,n){for(n=n||document,e={parentNode:e};(e=e.parentNode)&&e!==n;)if(i(e,t))return e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=window.Element.prototype,i=n.matches||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;if(!e||1!==e.nodeType)return!1;var o=e.parentNode;if(i)return i.call(e,t);for(var r=o.querySelectorAll(t),s=r.length,a=0;a<s;a++)if(r[a]===e)return!0;return!1}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"f",(function(){return g}));var i,o,r,s,a,l,u,c,d,h,p,f,g,m=n(445);(o=i=i||{}).noSelection=m.a("noSelection","No selection"),o.singleSelectionRange=m.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=m.a("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=m.a("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=m.a("multiSelection","{0} selections"),o.emergencyConfOn=m.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=m.a("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=m.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=m.a("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=m.a("readonlyEditor"," in a read-only code editor"),o.editableEditor=m.a("editableEditor"," in a code editor"),o.changeConfigToOnMac=m.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=m.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=m.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=m.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=m.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=m.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=m.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=m.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=m.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=m.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=m.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=m.a("showAccessibilityHelpAction","Show Accessibility Help"),(r||(r={})).inspectTokensAction=m.a("inspectTokens","Developer: Inspect Tokens"),(a=s=s||{}).gotoLineLabelValidLineAndColumn=m.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),a.gotoLineLabelValidLine=m.a("gotoLineLabelValidLine","Go to line {0}"),a.gotoLineLabelEmptyWithLineLimit=m.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),a.gotoLineLabelEmptyWithLineAndColumnLimit=m.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),a.gotoLineAriaLabel=m.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),a.gotoLineActionInput=m.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),a.gotoLineActionLabel=m.a("gotoLineActionLabel","Go to Line..."),(u=l=l||{}).ariaLabelEntryWithKey=m.a("ariaLabelEntryWithKey","{0}, {1}, commands"),u.ariaLabelEntry=m.a("ariaLabelEntry","{0}, commands"),u.quickCommandActionInput=m.a("quickCommandActionInput","Type the name of an action you want to execute"),u.quickCommandActionLabel=m.a("quickCommandActionLabel","Command Palette"),(d=c=c||{}).entryAriaLabel=m.a("entryAriaLabel","{0}, symbols"),d.quickOutlineActionInput=m.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),d.quickOutlineActionLabel=m.a("quickOutlineActionLabel","Go to Symbol..."),d._symbols_=m.a("symbols","symbols ({0})"),d._modules_=m.a("modules","modules ({0})"),d._class_=m.a("class","classes ({0})"),d._interface_=m.a("interface","interfaces ({0})"),d._method_=m.a("method","methods ({0})"),d._function_=m.a("function","functions ({0})"),d._property_=m.a("property","properties ({0})"),d._variable_=m.a("variable","variables ({0})"),d._variable2_=m.a("variable2","variables ({0})"),d._constructor_=m.a("_constructor","constructors ({0})"),d._call_=m.a("call","calls ({0})"),(p=h=h||{}).editorViewAccessibleLabel=m.a("editorViewAccessibleLabel","Editor content"),p.accessibilityHelpMessageIE=m.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),p.accessibilityHelpMessage=m.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(f||(f={})).toggleHighContrast=m.a("toggleHighContrast","Toggle High Contrast Theme"),(g||(g={})).bulkEditServiceSummary=m.a("bulkEditServiceSummary","Made {0} edits in {1} files")},function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return O}));var i,o=n(703),r=n(448),s=n(456),a=n(489),l=n(442),u=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function p(e){return void 0!==e.command}var f=Object(r.c)("menuService"),g=(m.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},m.prototype.getCommand=function(e){return this._commands.get(e)},m.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},m.prototype.appendMenuItem=function(e,t){var n=this,i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);0<=o&&(i.splice(o,1),n._onDidChangeMenu.fire(e))}}},m.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},m.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,i=e.filter((function(e){return p(e)}));n<i.length;n++){var o=i[n],r=o.command,s=o.alt;t.add(r.id),s&&t.add(s.id)}this._commands.forEach((function(n,i){t.has(i)||e.push({command:n})}))},new m);function m(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l.a,this.onDidChangeMenu=this._onDidChangeMenu.event}var v,y=(u(b,v=o.a),b.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,h([this.id],t))},b=c([d(2,a.b)],b));function b(e,t,n){var i=v.call(this,e,t)||this;return i._commandService=n,i}var _,w=(u(C,_=o.a),C);function C(e){var t=this;return(t="string"==typeof e.title?_.call(this,"",e.title,"submenu")||this:_.call(this,"",e.title.value,"submenu")||this).item=e,t}var S,O=(u(x,S=y),x.prototype.dispose=function(){this.alt&&this.alt.dispose(),S.prototype.dispose.call(this)},x.prototype.run=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[];return this._options.arg&&(n=h(n,[this._options.arg])),this._options.shouldForwardArgs&&(n=h(n,e)),S.prototype.run.apply(this,n)},x=c([d(3,s.c),d(4,a.b)],x));function x(e,t,n,i,o){var r=this;return(r="string"==typeof e.title?S.call(this,e.id,e.title,o)||this:S.call(this,e.id,e.title.value,o)||this)._cssClass=void 0,r._enabled=!e.precondition||i.contextMatchesRules(e.precondition),r._checked=Boolean(e.toggled&&i.contextMatchesRules(e.toggled)),r._options=n||{},r.item=e,r.alt=t?new x(t,void 0,r._options,i,o):void 0,r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return c}));var i=n(884),o=n(454);function r(){}var s=new(r.prototype.clone=function(){return this},r.prototype.equals=function(e){return this===e},r),a="vs.editor.nullMode",l=new o.r(a,0);function u(e,t,n,o){return new i.b([new i.a(o,"",e)],n)}function c(e,t,n,o){var r=new Uint32Array(2);return r[0]=o,r[1]=(e<<0|16384|2<<23)>>>0,new i.c(r,null===n?s:n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n(448),o=Object(i.c)("contextViewService"),r=Object(i.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("editorWorkerService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(448),o=n(456),r=Object(i.c)("accessibilityService"),s=new o.d("accessibilityModeEnabled",!1)},function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return M})),n.d(t,"e",(function(){return F}));var i=n(553),o=n(444);function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var i=0,o=e.length;i<o;i++){var r=e[i](t,n);if(r)return r}return null}}var s=function(e,t,n){return!n||n.length<t.length?null:(e?o.O(n,t):0===n.indexOf(t))?0<t.length?[{start:0,end:t.length}]:[]:null}.bind(void 0,!0);function a(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function u(e){return 48<=e&&e<=57}var c=new Set;function d(e){return a(e)||l(e)||u(e)}function h(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function p(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(l(i)||u(i)||0<n&&!d(e.charCodeAt(n-1)))return n}return e.length}function f(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;for(o=f(e,t,n+1,i+1);!o&&(r=p(t,r))<t.length;)o=f(e,t,n+1,r),r++;return null===o?null:h({start:i,end:i+1},o)}function g(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)l(o=e.charCodeAt(s))&&n++,a(o)&&i++,32!==(t=o)&&9!==t&&10!==t&&13!==t||r++;return 0!==n&&0!==i||0!==r?n<=5:e.length<=30}(e))return null;if(60<t.length)return null;var n,i,o,r,s,c,h,g=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)l(r=e.charCodeAt(s))&&t++,a(r)&&n++,d(r)&&i++,u(r)&&o++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:i/e.length,numericPercent:o/e.length}}(t);if(r=(o=g).upperPercent,s=o.lowerPercent,c=o.alphaPercent,h=o.numericPercent,!(.2<s&&r<.8&&.6<c&&h<.2)){if(i=(n=g).upperPercent,!(0===n.lowerPercent&&.6<i))return null;t=t.toLowerCase()}var m=null,v=0;for(e=e.toLowerCase();v<t.length&&null===(m=f(e,t,0,v));)v=p(t,v+1);return m}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return c.add(e.charCodeAt(0))}));var m=r(s,g,(function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]})),v=r(s,g,(function(e,t){return function e(t,n,i,o){if(i===t.length)return[];if(o===n.length)return null;if(t[i]!==n[o])return e(t,n,i,o+1);var r;return(r=e(t,n,i+1,o+1))?h({start:o,end:o+1},r):null}(e.toLowerCase(),t.toLowerCase(),0,0)})),y=new i.a(1e4);function b(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var i=y.get(e);i||(i=new RegExp(o.k(e),"i"),y.set(e,i));var r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:(n?v:m)(e,t)}function _(e,t,n,i,o,r){var s=M(e,t,0,i,o,0,!0);if(s)return s;for(var a=0,l=0,u=r,c=0;c<t.length&&c<C;++c){var d=o.indexOf(t.charAt(c),u);if(0<=d)l+=1,a+=Math.pow(2,d),u=d+1;else if(0!==a)break}return[l,a,r]}function w(e){if(void 0===e)return[];for(var t=e[1].toString(2),n=[],i=e[2];i<C;i++)if("1"===t[t.length-(i+1)]){var o=n[n.length-1];o&&o.end===i?o.end=i+1:n.push({start:i,end:i+1})}return n}var C=128;function S(){for(var e=[],t=[0],n=1;n<=C;n++)t.push(-n);for(n=0;n<=C;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var O,x,k=S(),E=S(),N=S();function L(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return 1;default:return}}function D(e,t,n){return t[e]!==n[e]}function M(e,t,n,i,o,r,s){var a=e.length>C?C:e.length,l=i.length>C?C:i.length;if(!(a<=n||l<=r||l-r<a-n)&&function(e,t,n,i,o,r){for(;t<n&&o<r;)e[t]===i[o]&&(t+=1),o+=1;return t===n}(t,n,a,o,r,l)){var u=1,c=1,d=n,h=r;for(u=1,d=n;d<a;u++,d++)for(c=1,h=r;h<l;c++,h++){var p=T(e,t,d,n,i,o,h);E[u][c]=p;var f=k[u-1][c-1]+(1<p?1:p),g=k[u-1][c]+-1,m=k[u][c-1]+-1;g<=m?f<m?(k[u][c]=m,N[u][c]=4):m===f?(k[u][c]=m,N[u][c]=6):(k[u][c]=f,N[u][c]=2):f<g?(k[u][c]=g,N[u][c]=1):g===f?(k[u][c]=g,N[u][c]=3):(k[u][c]=f,N[u][c]=2)}if(I=0,R=r,j=s,function e(t,n,i,o,r){if(!(10<=I||i<-25)){for(var s=0;0<t&&0<n;){var a=E[t][n],l=N[t][n];if(4===l)--n,r?i-=5:0!==o&&--i,r=!1,s=0;else{if(!(2&l))return;if(4&l&&e(t,n-1,0!==o?i-1:i,o,r),i+=a,--t,--n,r=!0,o+=Math.pow(2,n+R),1===a){if(s+=1,0===t&&!j)return}else i+=1+s*(a-1),s=0}}I+=1,A<(i-=3<=n?9:3*n)&&(A=i,P=o)}}(u-1,c-1,a===l?1:0,0,!(A=-100)),0!==I)return[A,P,r]}}function T(e,t,n,i,o,r,s){return t[n]!==r[s]?-1:s!==n-i&&(!D(s,o,r)||0!==s&&D(s-1,o,r))?L(r,s)&&(0===s||!L(r,s-1))||L(r,s-1)||function(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 32:case 9:return 1;default:return}}(r,s-1)?5:1:e[n]===o[s]?7:5}(x=O=O||{}).Default=Object.freeze([-100,0,0]),x.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]};var I=0,P=0,A=0,R=0,j=!1;function F(e,t,n,i,o,r,s){return function(e,t,n,i,o,r,s,a){var l=M(e,t,n,i,o,r,a);if(3<=e.length)for(var u=Math.min(7,e.length-1),c=n+1;c<u;c++){var d=B(e,c);if(d){var h=M(d,d.toLowerCase(),n,i,o,r,a);h&&(h[0]-=3,(!l||h[0]>l[0])&&(l=h))}}return l}(e,t,n,i,o,r,0,s)}function B(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}},function(e,t,n){"use strict";var i,o=n(444),r=n(484),s=n(439),a=n(449),l=n(456),u=n(786),c=n(448),d=n(792),h=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=Object(c.c)("IEditorCancelService"),f=new l.d("cancellableOperation",!1);function g(){this._tokens=new WeakMap}Object(d.b)(p,(g.prototype.add=function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){return{key:f.bindTo(e.get(l.c)),tokens:new u.a}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}},g.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},g),!0);var m,v,y=(h(b,m=r.b),b.prototype.dispose=function(){this._unregister(),m.prototype.dispose.call(this)},b);function b(e,t){var n=m.call(this,t)||this;return n.editor=e,n._unregister=e.invokeWithinContext((function(t){return t.get(p).add(e,n)})),n}function _(){return v.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:f})||this}Object(a.g)((h(_,v=a.c),_.prototype.runEditorCommand=function(e,t){e.get(p).cancel(t)},new _)),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return L})),n.d(t,"c",(function(){return M}));var w,C=(w=function(e,t){return(w=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){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=(O.prototype._equals=function(e){if(!(e instanceof O))return!1;var t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))},O.prototype.validate=function(e){return this._equals(new O(e,this.flags))},O);function O(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?o.r("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}var x,k=(C(E,x=y),E.prototype.dispose=function(){this._listener.dispose(),x.prototype.dispose.call(this)},E);function E(e,t,n){var i=x.call(this,e,n)||this;return i.editor=e,i._listener=new s.b,4&t&&i._listener.add(e.onDidChangeCursorPosition((function(e){return i.cancel()}))),2&t&&i._listener.add(e.onDidChangeCursorSelection((function(e){return i.cancel()}))),8&t&&i._listener.add(e.onDidScrollChange((function(e){return i.cancel()}))),1&t&&(i._listener.add(e.onDidChangeModel((function(e){return i.cancel()}))),i._listener.add(e.onDidChangeModelContent((function(e){return i.cancel()})))),i}var N,L=(C(D,N=r.b),D.prototype.dispose=function(){this._listener.dispose(),N.prototype.dispose.call(this)},D);function D(e,t){var n=N.call(this,t)||this;return n._listener=e.onDidChangeContent((function(){return n.cancel()})),n}var M=(T.capture=function(e){var t=null,n=0;if(0!==e.getScrollTop()){var i=e.getVisibleRanges();if(0<i.length){t=i[0].getStartPosition();var o=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-o}}return new T(t,n)},T.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},T);function T(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return E})),n(1324);var i,o,r=n(452),s=n(445),a=n(439),l=n(703),u=n(443),c=n(465),d=n(702),h=n(701),p=n(442),f=n(888),g=n(478),m=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(m(y,o=a.a),y.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(y.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new l.b)),this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),y.prototype.getAction=function(){return this._action},y.prototype.isEnabled=function(){return this._action.enabled},y.prototype.setActionContext=function(e){this._context=e},y.prototype.render=function(e){var t=this,n=this.element=e;this._register(d.b.addTarget(e));var i=this.options&&this.options.draggable;i&&(e.draggable=!0,g.h&&this._register(u.j(e,u.d.DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(f.a.TEXT,t._action.label)})))),this._register(u.j(n,d.a.Tap,(function(e){return t.onClick(e)}))),this._register(u.j(n,u.d.MOUSE_DOWN,(function(e){i||u.c.stop(e,!0),t._action.enabled&&0===e.button&&u.f(n,"active")}))),this._register(u.j(n,u.d.CLICK,(function(e){u.c.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):r.i((function(){return t.onClick(e)}))}))),this._register(u.j(n,u.d.DBLCLICK,(function(e){u.c.stop(e,!0)}))),[u.d.MOUSE_UP,u.d.MOUSE_OUT].forEach((function(e){t._register(u.j(n,e,(function(e){u.c.stop(e),u.P(n,"active")})))}))},y.prototype.onClick=function(e){var t;u.c.stop(e,!0),c.l(this._context)?t=e:(t=this._context,c.i(t)&&(t.event=e)),this.actionRunner.run(this._action,t)},y.prototype.focus=function(){this.element&&(this.element.focus(),u.f(this.element,"focused"))},y.prototype.blur=function(){this.element&&(this.element.blur(),u.P(this.element,"focused"))},y.prototype.updateEnabled=function(){},y.prototype.updateLabel=function(){},y.prototype.updateTooltip=function(){},y.prototype.updateClass=function(){},y.prototype.updateChecked=function(){},y.prototype.dispose=function(){this.element&&(u.R(this.element),this.element=void 0),o.prototype.dispose.call(this)},y);function y(e,t,n){var i=o.call(this)||this;return i.options=n,i._context=e||i,(i._action=t)instanceof l.a&&i._register(t.onDidChange((function(e){i.element&&i.handleActionChangeEvent(e)}))),i}var b,_=(m(w,b=l.a),w.ID="vs.actions.separator",w);function w(e){var t=b.call(this,w.ID,e,e?"separator text":"separator")||this;return t.checked=!1,t.enabled=!1,t}var C,S=(m(O,C=v),O.prototype.render=function(e){C.prototype.render.call(this,e),this.element&&(this.label=u.q(this.element,u.a("a.action-label"))),this.label&&(this._action.id===_.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(u.q(this.element,u.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},O.prototype.focus=function(){C.prototype.focus.call(this),this.label&&this.label.focus()},O.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},O.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=s.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)},O.prototype.updateClass=function(){this.cssClass&&this.label&&u.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(u.f(this.label,"codicon"),this.cssClass&&u.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&u.P(this.label,"codicon")},O.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),u.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&u.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),u.f(this.label,"disabled"),u.S(this.label)),this.element&&u.f(this.element,"disabled"))},O.prototype.updateChecked=function(){this.label&&(this.getAction().checked?u.f(this.label,"checked"):u.P(this.label,"checked"))},O);function O(e,t,n){void 0===n&&(n={});var i=C.call(this,e,t,n)||this;return i.options=n,i.options.icon=void 0!==n.icon&&n.icon,i.options.label=void 0===n.label||n.label,i.cssClass="",i}var x,k={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},E=(m(N,x=a.a),N.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},N.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(u.K(document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(N.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))},enumerable:!0,configurable:!0}),N.prototype.getContainer=function(){return this.domNode},N.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],o=c.h(t.index)?t.index:null;i.forEach((function(e){var i,r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),n._register(u.j(r,u.d.CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(i=n.options.actionViewItemProvider(e)),(i=i||new S(n.context,e,t)).actionRunner=n._actionRunner,i.setActionContext(n.context),i.render(r),null===o||o<0||o>=n.actionsList.children.length?(n.actionsList.appendChild(r),n.viewItems.push(i)):(n.actionsList.insertBefore(r,n.actionsList.children[o]),n.viewItems.splice(o,0,i),o++)}))},N.prototype.clear=function(){this.viewItems=Object(a.f)(this.viewItems),u.t(this.actionsList)},N.prototype.isEmpty=function(){return 0===this.viewItems.length},N.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},N.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);for(var e,t=this.focusedItem;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},N.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);for(var e,t=this.focusedItem;this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},N.prototype.updateFocus=function(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(var n=0;n<this.viewItems.length;n++){var i=this.viewItems[n];n===this.focusedItem?c.g(i.isEnabled)&&(i.isEnabled()&&c.g(i.focus)?i.focus(e):this.actionsList.focus({preventScroll:t})):c.g(i.blur)&&i.blur()}},N.prototype.doTrigger=function(e){if(void 0!==this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof v){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},N.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},N.prototype.run=function(e,t){return this._actionRunner.run(e,t)},N.prototype.dispose=function(){Object(a.f)(this.viewItems),this.viewItems=[],u.R(this.getContainer()),x.prototype.dispose.call(this)},N);function N(e,t){void 0===t&&(t=k);var n,i,o=x.call(this)||this;switch(o._onDidBlur=o._register(new p.a),o.onDidBlur=o._onDidBlur.event,o._onDidCancel=o._register(new p.a),o.onDidCancel=o._onDidCancel.event,o._onDidRun=o._register(new p.a),o.onDidRun=o._onDidRun.event,o._onDidBeforeRun=o._register(new p.a),o.onDidBeforeRun=o._onDidBeforeRun.event,o.options=t,o._context=t.context,o.options.triggerKeys||(o.options.triggerKeys=k.triggerKeys),o.options.actionRunner?o._actionRunner=o.options.actionRunner:(o._actionRunner=new l.b,o._register(o._actionRunner)),o._register(o._actionRunner.onDidRun((function(e){return o._onDidRun.fire(e)}))),o._register(o._actionRunner.onDidBeforeRun((function(e){return o._onDidBeforeRun.fire(e)}))),o.viewItems=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),!(o.domNode.className="monaco-action-bar")!==t.animated&&u.f(o.domNode,"animated"),o.options.orientation){case 0:n=15,i=17;break;case 1:n=17,i=15,o.domNode.className+=" reverse";break;case 2:n=16,i=18,o.domNode.className+=" vertical";break;case 3:n=18,i=16,o.domNode.className+=" vertical reverse"}return o._register(u.j(o.domNode,u.d.KEY_DOWN,(function(e){var t=new h.a(e),r=!0;t.equals(n)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():o.isTriggerKeyEvent(t)?o.options.triggerKeys&&o.options.triggerKeys.keyDown&&o.doTrigger(t):r=!1,r&&(t.preventDefault(),t.stopPropagation())}))),o._register(u.j(o.domNode,u.d.KEY_UP,(function(e){var t=new h.a(e);o.isTriggerKeyEvent(t)?(o.options.triggerKeys&&!o.options.triggerKeys.keyDown&&o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}))),o.focusTracker=o._register(u.Z(o.domNode)),o._register(o.focusTracker.onDidBlur((function(){document.activeElement!==o.domNode&&u.K(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)}))),o._register(o.focusTracker.onDidFocus((function(){return o.updateFocusedItem()}))),o.actionsList=document.createElement("ul"),o.actionsList.className="actions-container",o.actionsList.setAttribute("role","toolbar"),o.options.ariaLabel&&o.actionsList.setAttribute("aria-label",o.options.ariaLabel),o.domNode.appendChild(o.actionsList),e.appendChild(o.domNode),o}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return h}));var i,o,r,s,a,l=n(448),u=n(445),c=n(889);function d(e,t){var n=[a];return e.source?n.push(e.source.replace("\xa6","\xa6")):n.push(a),e.code?"string"==typeof e.code?n.push(e.code.replace("\xa6","\xa6")):n.push(e.code.value.replace("\xa6","\xa6")):n.push(a),void 0!==e.severity&&null!==e.severity?n.push(i.toString(e.severity)):n.push(a),e.message&&t?n.push(e.message.replace("\xa6","\xa6")):n.push(a),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(a),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(a),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(a),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(a),n.push(a),n.join("\xa6")}(o=i=i||{})[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error",function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=Object(u.a)("sev.error","Error"),t[e.Warning]=Object(u.a)("sev.warning","Warning"),t[e.Info]=Object(u.a)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case c.a.Error:return e.Error;case c.a.Warning:return e.Warning;case c.a.Info:return e.Info;case c.a.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return c.a.Error;case e.Warning:return c.a.Warning;case e.Info:return c.a.Info;case e.Hint:return c.a.Ignore}}}(i=i||{}),s=r=r||{},a="",s.makeKey=function(e){return d(e,!0)},s.makeKeyOptionalMessage=d;var h=Object(l.c)("markerService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("editorProgressService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return p}));var i,o,r,s=n(448),a=n(442),l=n(439),u=n(465),c=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=Object(s.c)("storageService");(r=o=o||{})[r.NONE=0]="NONE",r[r.SHUTDOWN=1]="SHUTDOWN";var h,p=(c(f,h=l.a),f.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},f.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(u.l)(i)?n:i},f.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(u.l)(i)?n:"true"===i},f.prototype.store=function(e,t,n){if(Object(u.l)(t))return this.remove(e,n);var i=String(t);return this.getCache(n).get(e)===i||(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},f.prototype.remove=function(e,t){return this.getCache(t).delete(e)&&this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()},f);function f(){var e=null!==h&&h.apply(this,arguments)||this;return e._onDidChangeStorage=e._register(new a.a),e.onDidChangeStorage=e._onDidChangeStorage.event,e._onWillSaveState=e._register(new a.a),e.onWillSaveState=e._onWillSaveState.event,e.globalCache=new Map,e.workspaceCache=new Map,e}},function(e,t,n){"use strict";function i(e){return e&&"string"==typeof e.id}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},r={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return c}));var i=n(444),o=function(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i},r=function(e,t){this.tabSize=e,this.data=t},s=function(e,t,n,i,o,r){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=o,this.tokens=r},a=(l.isBasicASCII=function(e,t){return!t||i.v(e)},l.containsRTL=function(e,t,n){return!(t||!n)&&i.i(e)},l);function l(e,t,n,i,o,r,s,a,u,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=l.isBasicASCII(n,r),this.containsRTL=l.containsRTL(n,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=a,this.tabSize=u,this.startVisibleColumn=c}var u=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},c=function(e,t){this.range=e,this.options=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("modeService")},,,,function(e,t,n){"use strict";function i(){return{height:0,opacity:0}}function o(e){return{height:e.scrollHeight,opacity:1}}var r={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:i};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(0),o=n(12),r=n.n(o),s=n(169),a=n.n(s),l=n(77);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function g(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}var y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},b=a()({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function _(e){var t=e.suffixCls,n=e.tagName,o=e.displayName;return function(e){var r;return(r=function(){function o(){var r;return h(this,o),(r=g(this,m(o).apply(this,arguments))).renderComponent=function(o){var s=o.getPrefixCls,a=r.props.prefixCls,l=s(t,a);return i.createElement(e,d({prefixCls:l,tagName:n},r.props))},r}return v(o,i.Component),f(o,[{key:"render",value:function(){return i.createElement(l.a,null,this.renderComponent)}}]),o}()).displayName=o,r}}function w(e){var t=e.prefixCls,n=e.className,o=e.children,s=e.tagName,a=y(e,["prefixCls","className","children","tagName"]),l=r()(n,t);return i.createElement(s,d({className:l},a),o)}var C=function(){function e(){var t;return h(this,e),(t=g(this,m(e).apply(this,arguments))).state={siders:[]},t}return v(e,i.Component),f(e,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(c(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){var e,t,n,o=this.props,s=o.prefixCls,a=o.className,l=o.children,u=o.hasSider,c=o.tagName,h=y(o,["prefixCls","className","children","hasSider","tagName"]),p=r()(a,s,(e={},t="".concat(s,"-has-sider"),n="boolean"==typeof u?u:0<this.state.siders.length,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return i.createElement(b.Provider,{value:{siderHook:this.getSiderHook()}},i.createElement(c,d({className:p},h),l))}}]),e}(),S=_({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),O=_({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(w),x=_({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(w),k=_({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(w);S.Header=O,S.Footer=x,S.Content=k,t.b=S},,function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^(http:)|(https:)|(file:)/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a)return"data:text/javascript;charset=utf-8,"+encodeURIComponent("/*"+t+'*/importScripts("'+r+'");')}return r}}),n(1159),n(1160),n(1256),n(1161),n(1162),n(1251),n(1004),n(1254),n(1257),n(927),n(1163),n(1258),n(1051),n(1248),n(1164),n(1252),n(1052),n(1165),n(1053),n(1005),n(1249),n(1166),n(1259),n(1167),n(1250),n(1260),n(1168),n(1253),n(1169),n(1255),n(1170),n(1261),n(1262),n(926),n(1247),n(1171),n(1003),n(1172),n(1173),n(1006),n(1174),e.exports=n(1401),n(1175),n(1176),n(1177),n(1178),n(1179),n(1180),n(1181),n(1182),n(1183),n(1184),n(1185),n(1186),n(1187),n(1188),n(1189),n(1190),n(1191),n(1192),n(1193),n(1194),n(1195),n(1196),n(1197),n(1198),n(1199),n(1200),n(1201),n(1202),n(1203),n(1204),n(1205),n(1206),n(1207),n(1208),n(1209),n(1210),n(1211),n(1212),n(1213),n(1214),n(1215),n(1216),n(1217),n(1218),n(1219),n(1220),n(1221),n(1222),n(1223),n(1224),n(1225),n(1226),n(1227),n(1228),n(1229),n(1230),n(1231),n(1232),n(1233),n(1234),n(1263),n(1235),n(1236),n(1237)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(700),o=(r.Undefined=new r(void 0),r);function r(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}var s=(Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return this._first===o.Undefined},a.prototype.clear=function(){this._first=o.Undefined,this._last=o.Undefined,this._size=0},a.prototype.unshift=function(e){return this._insert(e,!1)},a.prototype.push=function(e){return this._insert(e,!0)},a.prototype._insert=function(e,t){var n=this,i=new o(e);if(this._first===o.Undefined)this._first=i,this._last=i;else if(t){var r=this._last;((this._last=i).prev=r).next=i}else{var s=this._first;((this._first=i).next=s).prev=i}this._size+=1;var a=!1;return function(){a||(a=!0,n._remove(i))}},a.prototype.shift=function(){if(this._first!==o.Undefined){var e=this._first.element;return this._remove(this._first),e}},a.prototype.pop=function(){if(this._last!==o.Undefined){var e=this._last.element;return this._remove(this._last),e}},a.prototype._remove=function(e){if(e.prev!==o.Undefined&&e.next!==o.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===o.Undefined&&e.next===o.Undefined?(this._first=o.Undefined,this._last=o.Undefined):e.next===o.Undefined?(this._last=this._last.prev,this._last.next=o.Undefined):e.prev===o.Undefined&&(this._first=this._first.next,this._first.prev=o.Undefined);--this._size},a.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===o.Undefined?i.c:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},a.prototype.toArray=function(){for(var e=[],t=this._first;t!==o.Undefined;t=t.next)e.push(t.element);return e},a);function a(){this._first=o.Undefined,this._last=o.Undefined,this._size=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("textModelService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(548),o=n(452),r=n(489),s=n(571);function a(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}var l=new(a.bindToCurrentPlatform=function(e){if(1===o.a){if(e&&e.win)return e.win}else if(2===o.a){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},a.prototype.registerKeybindingRule=function(e){var t=a.bindToCurrentPlatform(e);if(t&&t.primary&&(s=Object(i.f)(t.primary,o.a))&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,0,e.when),t&&Array.isArray(t.secondary))for(var n=0,r=t.secondary.length;n<r;n++){var s,l=t.secondary[n];(s=Object(i.f)(l,o.a))&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,-n-1,e.when)}},a.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),r.a.registerCommand(e)},a._mightProduceChar=function(e){return 21<=e&&e<=30||31<=e&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e},a.prototype._assertNoCtrlAlt=function(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&a._mightProduceChar(e.keyCode)},a.prototype._registerDefaultKeybinding=function(e,t,n,i,r,s){1===o.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:r}),this._cachedMergedKeybindings=null},a.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)},a);function u(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}s.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return _}));var i=n(445),o=n(442),r=n(571),s=n(465),a=n(1073),l=n(553),u={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m="vscode://schemas/settings/resourceLanguage",v=r.a.as(a.a.JSONContribution),y=(b.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},b.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach((function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),v.registerSchema(m,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},b.prototype.registerOverrideIdentifiers=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.overrideIdentifiers.add(i)}this.updateOverridePropertyPatternKey()},b.prototype.validateAndRegisterProperties=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3),n=s.l(e.scope)?n:e.scope;var i=[],o=e.properties;if(o)for(var r in o)if(t&&S(r))delete o[r];else{var a=o[r],l=a.default;s.k(l)&&(a.default=w(a.type)),_.test(r)?a.scope=void 0:a.scope=s.l(a.scope)?n:a.scope,!o[r].hasOwnProperty("included")||o[r].included?(this.configurationProperties[r]=o[r],i.push(r)):(this.excludedConfigurationProperties[r]=o[r],delete o[r])}var u=e.allOf;if(u)for(var c=0,d=u;c<d.length;c++){var h=d[c];i.push.apply(i,this.validateAndRegisterProperties(h,t,n))}return i},b.prototype.getConfigurationProperties=function(){return this.configurationProperties},b.prototype.registerJSONConfiguration=function(e){var t=this;!function e(n){var i=n.properties;if(i)for(var o in i)switch(c.properties[o]=i[o],i[o].scope){case 1:d.properties[o]=i[o];break;case 2:h.properties[o]=i[o];break;case 6:p.properties[o]=i[o];break;case 3:f.properties[o]=i[o];break;case 4:g.properties[o]=i[o];break;case 5:g.properties[o]=i[o],t.resourceLanguageSettingsSchema.properties[o]=i[o]}var r=n.allOf;r&&r.forEach(e)}(e)},b.prototype.updateOverridePropertyPatternKey=function(){for(var e,t=0,n=Object(l.e)(this.overrideIdentifiers);t<n.length;t++){var o="["+n[t]+"]",r={type:"object",description:i.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:m,default:null===(e=this.defaultOverridesConfigurationNode.properties[o])||void 0===e?void 0:e.default};c.properties[o]=r,d.properties[o]=r,h.properties[o]=r,p.properties[o]=r,f.properties[o]=r,g.properties[o]=r}this._onDidSchemaChange.fire()},b);function b(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.a,this._onDidUpdateConfiguration=new o.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},v.registerSchema(m,this.resourceLanguageSettingsSchema)}var _=new RegExp("\\[.*\\]$");function w(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var C=new y;function S(e){return _.test(e)?i.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]&&i.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e)}r.a.add(u.Configuration,C)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(1074),o=(r._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},r.prototype.set=function(e,t){var n=Object(i.b)(t);0<=e&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},r.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},r);function r(e){var t=Object(i.b)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}var s=(a.prototype.add=function(e){this._actual.set(e,1)},a.prototype.has=function(e){return 1===this._actual.get(e)},a);function a(){this._actual=new o(0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"win32",(function(){return v})),n.d(t,"posix",(function(){return y})),n.d(t,"normalize",(function(){return b})),n.d(t,"join",(function(){return _})),n.d(t,"relative",(function(){return w})),n.d(t,"dirname",(function(){return C})),n.d(t,"basename",(function(){return S})),n.d(t,"extname",(function(){return O})),n.d(t,"sep",(function(){return x}));var i,o,r=n(1321),s=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=47,l=92,u=(s(c,o=Error),c);function c(e,t,n){var i,r=this;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var s=-1!==e.indexOf(".")?"property":"argument",a='The "'+e+'" '+s+" "+i+" of type "+t;return a+=". Received type "+typeof n,(r=o.call(this,a)||this).code="ERR_INVALID_ARG_TYPE",r}function d(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function h(e){return e===a||e===l}function p(e){return e===a}function f(e){return 65<=e&&e<=90||97<=e&&e<=122}function g(e,t,n,i){for(var o,r="",s=0,l=-1,u=0,c=0;c<=e.length;++c){if(c<e.length)o=e.charCodeAt(c);else{if(i(o))break;o=a}if(i(o)){if(l!==c-1&&1!==u)if(l!==c-1&&2===u){if(r.length<2||2!==s||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(2<r.length){var d=r.lastIndexOf(n);s=-1===d?(r="",0):(r=r.slice(0,d)).length-1-r.lastIndexOf(n),l=c,u=0;continue}if(2===r.length||1===r.length){r="",l=c,u=s=0;continue}}t&&(0<r.length?r+=n+"..":r="..",s=2)}else 0<r.length?r+=n+e.slice(l+1,c):r=e.slice(l+1,c),s=c-l-1;l=c,u=0}else 46===o&&-1!==u?++u:u=-1}return r}function m(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}var v={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i="",o=!1,s=e.length-1;-1<=s;s--){var a=void 0;if(0<=s?a=e[s]:n?void 0!==(a=r.b["="+n]||r.a())&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\"):a=r.a(),d(a,"path"),0!==a.length){var l=a.length,u=0,c="",p=!1,m=a.charCodeAt(0);if(1<l)if(h(m))if(p=!0,h(a.charCodeAt(1))){for(var v=2,y=v;v<l&&!h(a.charCodeAt(v));++v);if(v<l&&v!==y){var b=a.slice(y,v);for(y=v;v<l&&h(a.charCodeAt(v));++v);if(v<l&&v!==y){for(y=v;v<l&&!h(a.charCodeAt(v));++v);v===l?(c="\\\\"+b+"\\"+a.slice(y),u=v):v!==y&&(c="\\\\"+b+"\\"+a.slice(y,v),u=v)}}}else u=1;else f(m)&&58===a.charCodeAt(1)&&(c=a.slice(0,2),(u=2)<l&&h(a.charCodeAt(2))&&(p=!0,u=3));else h(m)&&(u=1,p=!0);if(!(0<c.length&&0<n.length&&c.toLowerCase()!==n.toLowerCase())&&(0===n.length&&0<c.length&&(n=c),o||(i=a.slice(u)+"\\"+i,o=p),0<n.length&&o))break}}return n+(o?"\\":"")+(i=g(i,!o,"\\",h))||"."},normalize:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n,i,o=0,r=!1,s=e.charCodeAt(0);if(1<t)if(h(s))if(r=!0,h(e.charCodeAt(1))){for(var a=2,l=a;a<t&&!h(e.charCodeAt(a));++a);if(a<t&&a!==l){var u=e.slice(l,a);for(l=a;a<t&&h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&!h(e.charCodeAt(a));++a);if(a===t)return"\\\\"+u+"\\"+e.slice(l)+"\\";a!==l&&(n="\\\\"+u+"\\"+e.slice(l,a),o=a)}}}else o=1;else f(s)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),(o=2)<t&&h(e.charCodeAt(2))&&(r=!0,o=3));else if(h(s))return"\\";return 0!==(i=o<t?g(e.slice(o),!r,"\\",h):"").length||r||(i="."),0<i.length&&h(e.charCodeAt(t-1))&&(i+="\\"),void 0===n?r?0<i.length?"\\"+i:"\\":0<i.length?i:"":r?0<i.length?n+"\\"+i:n+"\\":0<i.length?n+i:n},isAbsolute:function(e){d(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!h(n)||!!(f(n)&&2<t&&58===e.charCodeAt(1)&&h(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(0===n.length)return".";for(var o=0;o<n.length;++o){var r=n[o];d(r,"path"),0<r.length&&(void 0===e?e=t=r:e+="\\"+r)}if(void 0===e)return".";var s=!0,a=0;if("string"==typeof t&&h(t.charCodeAt(0))){++a;var l=t.length;1<l&&h(t.charCodeAt(1))&&(++a,2<l&&(h(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length&&h(e.charCodeAt(a));++a);2<=a&&(e="\\"+e.slice(a))}return v.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";var n=v.resolve(e),i=v.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";for(var o=0;o<e.length&&e.charCodeAt(o)===l;++o);for(var r=e.length;o<r-1&&e.charCodeAt(r-1)===l;--r);for(var s=r-o,a=0;a<t.length&&t.charCodeAt(a)===l;++a);for(var u=t.length;a<u-1&&t.charCodeAt(u-1)===l;--u);for(var c=u-a,h=s<c?s:c,p=-1,f=0;f<=h;++f){if(f===h){if(h<c){if(t.charCodeAt(a+f)===l)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}h<s&&(e.charCodeAt(o+f)===l?p=f:2===f&&(p=3));break}var g=e.charCodeAt(o+f);if(g!==t.charCodeAt(a+f))break;g===l&&(p=f)}if(f!==h&&-1===p)return i;var m="";for(-1===p&&(p=0),f=o+p+1;f<=r;++f)f!==r&&e.charCodeAt(f)!==l||(0===m.length?m+="..":m+="\\..");return 0<m.length?m+i.slice(a+p,u):(a+=p,i.charCodeAt(a)===l&&++a,i.slice(a,u))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=v.resolve(e);if(3<=t.length)if(t.charCodeAt(0)===l){if(t.charCodeAt(1)===l){var n=t.charCodeAt(2);if(63!==n&&46!==n)return"\\\\?\\UNC\\"+t.slice(2)}}else if(f(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===l)return"\\\\?\\"+t;return e},dirname:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=-1,o=!0,r=0,s=e.charCodeAt(0);if(1<t)if(h(s)){if(n=r=1,h(e.charCodeAt(1))){for(var a=2,l=a;a<t&&!h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&!h(e.charCodeAt(a));++a);if(a===t)return e;a!==l&&(n=r=a+1)}}}}else f(s)&&58===e.charCodeAt(1)&&(n=r=2,2<t&&h(e.charCodeAt(2))&&(n=r=3));else if(h(s))return e;for(var u=t-1;r<=u;--u)if(h(e.charCodeAt(u))){if(!o){i=u;break}}else o=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,i=0,o=-1,r=!0;if(2<=e.length&&f(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2),void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;i<=n;--n){var l=e.charCodeAt(n);if(h(l)){if(!r){i=n+1;break}}else-1===a&&(r=!1,a=n+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return i===o?o=a:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;i<=n;--n)if(h(e.charCodeAt(n))){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){d(e,"path");var t=0,n=-1,i=0,o=-1,r=!0,s=0;2<=e.length&&58===e.charCodeAt(1)&&f(e.charCodeAt(0))&&(t=i=2);for(var a=e.length-1;t<=a;--a){var l=e.charCodeAt(a);if(h(l)){if(r)continue;i=a+1;break}-1===o&&(r=!1,o=a+1),46===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("\\",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,o=e.charCodeAt(0);if(1<n){if(h(o)){if(i=1,h(e.charCodeAt(1))){for(var r=2,s=r;r<n&&!h(e.charCodeAt(r));++r);if(r<n&&r!==s){for(s=r;r<n&&h(e.charCodeAt(r));++r);if(r<n&&r!==s){for(s=r;r<n&&!h(e.charCodeAt(r));++r);r===n?i=r:r!==s&&(i=r+1)}}}}else if(f(o)&&58===e.charCodeAt(1)){if(!((i=2)<n))return t.root=t.dir=e,t;if(h(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(h(o))return t.root=t.dir=e,t;0<i&&(t.root=e.slice(0,i));for(var a=-1,l=i,u=-1,c=!0,p=e.length-1,g=0;i<=p;--p){if(h(o=e.charCodeAt(p))){if(c)continue;l=p+1;break}-1===u&&(c=!1,u=p+1),46===o?-1===a?a=p:1!==g&&(g=1):-1!==a&&(g=-1)}return-1===a||-1===u||0===g||1===g&&a===u-1&&a===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,a),t.base=e.slice(l,u),t.ext=e.slice(a,u)),t.dir=0<l&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i=!1,o=e.length-1;-1<=o&&!i;o--){var s=void 0;d(s=0<=o?e[o]:r.a(),"path"),0!==s.length&&(n=s+"/"+n,i=s.charCodeAt(0)===a)}return n=g(n,!i,"/",p),i?0<n.length?"/"+n:"/":0<n.length?n:"."},normalize:function(e){if(d(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===a,n=e.charCodeAt(e.length-1)===a;return 0!==(e=g(e,!t,"/",p)).length||t||(e="."),0<e.length&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return d(e,"path"),0<e.length&&e.charCodeAt(0)===a},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var i=0;i<t.length;++i){var o=arguments[i];d(o,"path"),0<o.length&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":y.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===a;++n);for(var i=e.length,o=i-n,r=1;r<t.length&&t.charCodeAt(r)===a;++r);for(var s=t.length-r,l=o<s?o:s,u=-1,c=0;c<=l;++c){if(c===l){if(l<s){if(t.charCodeAt(r+c)===a)return t.slice(r+c+1);if(0===c)return t.slice(r+c)}else l<o&&(e.charCodeAt(n+c)===a?u=c:0===c&&(u=0));break}var h=e.charCodeAt(n+c);if(h!==t.charCodeAt(r+c))break;h===a&&(u=c)}var p="";for(c=n+u+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==a||(0===p.length?p+="..":p+="/..");return 0<p.length?p+t.slice(r+u):(r+=u,t.charCodeAt(r)===a&&++r,t.slice(r))},toNamespacedPath:function(e){return e},dirname:function(e){if(d(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===a,n=-1,i=!0,o=e.length-1;1<=o;--o)if(e.charCodeAt(o)===a){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,i=0,o=-1,r=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;0<=n;--n){var u=e.charCodeAt(n);if(u===a){if(!r){i=n+1;break}}else-1===l&&(r=!1,l=n+1),0<=s&&(u===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;0<=n;--n)if(e.charCodeAt(n)===a){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){d(e,"path");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;0<=s;--s){var l=e.charCodeAt(s);if(l===a){if(o)continue;n=s+1;break}-1===i&&(o=!1,i=s+1),46===l?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1)}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("/",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===a;n=i?(t.root="/",1):0;for(var o=-1,r=0,s=-1,l=!0,u=e.length-1,c=0;n<=u;--u){var h=e.charCodeAt(u);if(h===a){if(l)continue;r=u+1;break}-1===s&&(l=!1,s=u+1),46===h?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1)}return-1===o||-1===s||0===c||1===c&&o===s-1&&o===r+1?-1!==s&&(t.base=t.name=0===r&&i?e.slice(1,s):e.slice(r,s)):(0===r&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(r,o),t.base=e.slice(r,s)),t.ext=e.slice(o,s)),0<r?t.dir=e.slice(0,r-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=v.win32=v,y.posix=v.posix=y;var b="win32"===r.c?v.normalize:y.normalize,_="win32"===r.c?v.join:y.join,w="win32"===r.c?v.relative:y.relative,C="win32"===r.c?v.dirname:y.dirname,S="win32"===r.c?v.basename:y.basename,O="win32"===r.c?v.extname:y.extname,x="win32"===r.c?v.sep:y.sep},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(1079),o=[];function r(e,t,n){o.push([e,new i.a(t,[],n)])}function s(){return o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(443),o=n(452),r=n(478),s=n(1072),a=n(595),l=n(439),u=n(820);function c(e,t){var n=new a.b(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var d=(h.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},h.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}},h.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},h.prototype.startMonitoring=function(e,t,n,l,c){var d=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=l,this._onStopCallback=c;var h=s.a.getSameOriginWindowChain(),p=o.c&&u.a.pointerEvents?"pointermove":"mousemove",f=o.c&&u.a.pointerEvents?"pointerup":"mouseup",g=h.map((function(e){return e.window.document})),m=i.E(e);m&&g.unshift(m);for(var v=0,y=g;v<y.length;v++){var b=y[v];this._hooks.add(i.m(b,p,(function(e){r.i||e.buttons===t?d._mouseMoveCallback(e):d.stopMonitoring(!0)}),(function(e,t){return d._mouseMoveEventMerger(e,t)}))),this._hooks.add(i.j(b,f,(function(e){return d.stopMonitoring(!0)})))}if(s.a.hasDifferentOriginAncestor()){var _=h[h.length-1];this._hooks.add(i.j(_.window.document,"mouseout",(function(e){"html"===new a.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i.j(_.window.document,"mouseover",(function(e){"html"===new a.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i.j(_.window.document.body,"mouseleave",(function(e){d.stopMonitoring(!0)})))}}},h);function h(){this._hooks=new l.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return h}));var i=n(466),o=(r.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},r.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},r);function r(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var s=(a.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},a.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)},a);function a(e,t){this._range=e,this._text=t}var l=(u.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},u.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},u);function u(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var c=(d.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},d.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},d);function d(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}var h=(p.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)},p.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},p);function p(e,t,n,i){void 0===i&&(i=!1),this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return h}));var i=n(459),o=n(890),r=(Object.defineProperty(s.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),s.prototype.appendText=function(e){return this._value+=(this._supportThemeIcons?Object(o.a)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace("\n","\n\n"),this},s.prototype.appendMarkdown=function(e){return this._value+=e,this},s.prototype.appendCodeblock=function(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this},s);function s(e,t){var n,i;void 0===e&&(e=""),void 0===t&&(t=!1),this._value=e,"boolean"==typeof t?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=null!==(n=t.isTrusted)&&void 0!==n&&n,this._supportThemeIcons=null!==(i=t.supportThemeIcons)&&void 0!==i&&i)}function a(e){return l(e)?!e.value:!Array.isArray(e)||e.every(a)}function l(e){return e instanceof r||e&&"object"==typeof e&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function u(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(i.g)(e,t,c):!(!l(e)||!l(t))&&c(e,t))}function c(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons}function d(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var o=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),s=o?o[1]:"",a=r?r[1]:"",l=isFinite(parseInt(a)),u=isFinite(parseInt(s));l&&t.push('width="'+a+'"'),u&&t.push('height="'+s+'"')}return{href:e,dimensions:t}}},function(e,t,n){},,function(e,t,n){var i=n(799);e.exports=new i},function(e,t,n){var i=n(800),o=n(693),r=o.each,s=o.isFunction,a=o.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var o=this.queries,l=n&&this.browserIsIncapable;return o[e]||(o[e]=new i(e,l)),s(t)&&(t={match:t}),a(t)||(t=[t]),r(t,(function(t){s(t)&&(t={match:t}),o[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},function(e,t,n){var i=n(801),o=n(693).each;function r(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}r.prototype={constuctor:r,addHandler:function(e){var t=new i(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,(function(n,i){if(n.equals(e))return n.destroy(),!t.splice(i,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,(function(t){t[e]()}))}},e.exports=r},function(e,t){function n(e){(this.options=e).deferSetup||this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},,function(e,t,n){"use strict";n(46),n(815)},function(e,t,n){"use strict";var i=n(0),o=n(12),r=n.n(o),s=n(77);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){return i.createElement(s.a,null,(function(t){var n,o=t.getPrefixCls,s=e.prefixCls,u=e.type,c=void 0===u?"horizontal":u,d=e.orientation,h=void 0===d?"center":d,p=e.className,f=e.children,g=e.dashed,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["prefixCls","type","orientation","className","children","dashed"]),v=o("divider",s),y=0<h.length?"-".concat(h):h,b=r()(p,v,"".concat(v,"-").concat(c),(l(n={},"".concat(v,"-with-text").concat(y),f),l(n,"".concat(v,"-dashed"),!!g),n));return i.createElement("div",a({className:b},m,{role:"separator"}),f&&i.createElement("span",{className:"".concat(v,"-inner-text")},f))}))}},,,,,,,,,,,function(e,t,n){},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(478),o=n(452),r={clipboard:{writeText:o.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(i.i)return!1;if(i.e){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||12<=t&&t<=16)return!1}return!0}()},keyboard:o.f||i.l?0:navigator.keyboard||i.k?1:2,touch:"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints,pointerEvents:window.PointerEvent&&("ontouchstart"in window||0<window.navigator.maxTouchPoints||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var i=Object.prototype.hasOwnProperty;function o(e){var t=[];for(var n in e)i.call(e,n)&&t.push(e[n]);return t}function r(e){for(var t in e)if(i.call(e,t))return e[t]}function s(e,t){function n(n){if(i.call(e,n)&&!1===t({key:n,value:e[n]},(function(){delete e[n]})))return{value:void 0}}for(var o in e){var r=n(o);if("object"==typeof r)return r.value}}var a=(l.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},l.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},l.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},l);function l(){this.map=new Map}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o,r=n(790),s=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(a,o=r.a),a);function a(e){for(var t=o.call(this,0)||this,n=0,i=e.length;n<i;n++)t.set(e.charCodeAt(n),2);return t.set(32,1),t.set(9,1),t}var l,u,c=(l=function(e){return new s(e)},u={},function(e){return u.hasOwnProperty(e)||(u[e]=l(e)),u[e]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(454),o=(r.prototype.equals=function(e){return e instanceof r&&this.slicedEquals(e,0,this._tokensCount)},r.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r<o;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0},r.prototype.getLineContent=function(){return this._text},r.prototype.getCount=function(){return this._tokensCount},r.prototype.getStartOffset=function(e){return 0<e?this._tokens[e-1<<1]:0},r.prototype.getMetadata=function(e){return this._tokens[1+(e<<1)]},r.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return i.A.getLanguageId(t)},r.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return i.A.getTokenType(t)},r.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return i.A.getForeground(t)},r.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return i.A.getClassNameFromMetadata(t)},r.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return i.A.getInlineStyleFromMetadata(n,t)},r.prototype.getEndOffset=function(e){return this._tokens[e<<1]},r.prototype.findTokenIndexAtOffset=function(e){return r.findIndexInTokensArray(this._tokens,e)},r.prototype.inflate=function(){return this},r.prototype.sliceAndInflate=function(e,t,n){return new s(this,e,t,n)},r.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t},r.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;for(var n=0,i=(e.length>>>1)-1;n<i;){var o=n+Math.floor((i-n)/2),r=e[o<<1];if(r===t)return o+1;r<t?n=o+1:t<r&&(i=o)}return n},r);function r(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}var s=(a.prototype.equals=function(e){return e instanceof a&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)},a.prototype.getCount=function(){return this._tokensCount},a.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},a.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},a.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},a.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},a.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},a);function a(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o<r&&!(n<=e.getStartOffset(o));o++)this._tokensCount++}},function(e,t,n){"use strict";var i,o;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),(o=i=i||{})[o.None=0]="None",o[o.Indent=1]="Indent",o[o.IndentOutdent=2]="IndentOutdent",o[o.Outdent=3]="Outdent";var r=(s.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)},s);function s(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++)switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var i=n(461),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t,n){function o(o){var r=function(e,t){var n=Object.create(null);for(var o in t){var r=t[o];r&&(n[o]=Object(i.Ub)(r,e))}return n}(e.getTheme(),t);"function"==typeof n?n(r):n.style(r)}return o(e.getTheme()),e.onThemeChange(o)}function s(e,t,n){return r(t,{badgeBackground:n&&n.badgeBackground||i.c,badgeForeground:n&&n.badgeForeground||i.d,badgeBorder:i.e},e)}function a(e,t,n){return r(t,{foreground:n&&n.foreground||i.W,background:n&&n.background||i.o,borderColor:n&&n.borderColor||i.e,widgetShadow:n&&n.widgetShadow||i.hc,progressBarBackground:n&&n.progressBarBackground||i.Sb,pickerGroupForeground:n&&n.pickerGroupForeground||i.Ob,pickerGroupBorder:n&&n.pickerGroupBorder||i.Nb,inputBackground:n&&n.inputBackground||i.Z,inputForeground:n&&n.inputForeground||i.bb,inputBorder:n&&n.inputBorder||i.ab,inputValidationInfoBorder:n&&n.inputValidationInfoBorder||i.gb,inputValidationInfoBackground:n&&n.inputValidationInfoBackground||i.fb,inputValidationInfoForeground:n&&n.inputValidationInfoForeground||i.hb,inputValidationWarningBorder:n&&n.inputValidationWarningBorder||i.jb,inputValidationWarningBackground:n&&n.inputValidationWarningBackground||i.ib,inputValidationWarningForeground:n&&n.inputValidationWarningForeground||i.kb,inputValidationErrorBorder:n&&n.inputValidationErrorBorder||i.db,inputValidationErrorBackground:n&&n.inputValidationErrorBackground||i.cb,inputValidationErrorForeground:n&&n.inputValidationErrorForeground||i.eb,listFocusBackground:n&&n.listFocusBackground||i.rb,listFocusForeground:n&&n.listFocusForeground||i.sb,listActiveSelectionBackground:n&&n.listActiveSelectionBackground||Object(i.f)(i.lb,.1),listActiveSelectionForeground:n&&n.listActiveSelectionForeground||i.mb,listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||i.lb,listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||i.mb,listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||i.xb,listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||i.yb,listInactiveFocusBackground:n&&n.listInactiveFocusBackground||i.wb,listHoverBackground:n&&n.listHoverBackground||i.ub,listHoverForeground:n&&n.listHoverForeground||i.vb,listDropBackground:n&&n.listDropBackground||i.nb,listFocusOutline:n&&n.listFocusOutline||i.b,listSelectionOutline:n&&n.listSelectionOutline||i.b,listHoverOutline:n&&n.listHoverOutline||i.b},e)}function l(e,t,n){return r(t,o(o({},u),n||{}),e)}var u={listFocusBackground:i.rb,listFocusForeground:i.sb,listActiveSelectionBackground:Object(i.f)(i.lb,.1),listActiveSelectionForeground:i.mb,listFocusAndSelectionBackground:i.lb,listFocusAndSelectionForeground:i.mb,listInactiveSelectionBackground:i.xb,listInactiveSelectionForeground:i.yb,listInactiveFocusBackground:i.wb,listHoverBackground:i.ub,listHoverForeground:i.vb,listDropBackground:i.nb,listFocusOutline:i.b,listSelectionOutline:i.b,listHoverOutline:i.b,listFilterWidgetBackground:i.ob,listFilterWidgetOutline:i.qb,listFilterWidgetNoMatchesOutline:i.pb,listMatchesShadow:i.hc,treeIndentGuidesStroke:i.gc},c={shadowColor:i.hc,borderColor:i.Ab,foregroundColor:i.Bb,backgroundColor:i.zb,selectionForegroundColor:i.Eb,selectionBackgroundColor:i.Cb,selectionBorderColor:i.Db,separatorColor:i.Fb};function d(e,t,n){return r(t,o(o({},c),n),e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("themeService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var i,o,r=n(448),s=Object(r.c)("logService");(o=i=i||{})[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off";var a=(l.prototype.getLevel=function(){return i.Info},l.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.dispose=function(){},l);function l(){}},function(e,t,n){(function(t){var n;n=function(){return i={},e.m=n=[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(18),r=n(19),s=n(45),a=n(46),l=n(47),u=n(48),c=n(49),d=n(12),h=n(32),p=n(33),f=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:i.default,Format:o.default,Leaf:r.default,Embed:u.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:h.default,Style:p.default,Store:f.default}};t.default=m},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=(o(a,r=Error),a);function a(e){var t=this;return e="[Parchment] "+e,(t=r.call(this,e)||this).message=e,t.name=t.constructor.name,t}t.ParchmentError=s;var l,u,c={},d={},h={},p={};function f(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=p[e]||c[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=p.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=p.block:e&l.LEVEL&l.INLINE&&(n=p.inline);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var o in i)if(n=d[i[o]])break;n=n||h[e.tagName]}return null!=n&&t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(u=l=t.Scope||(t.Scope={}))[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY",t.create=function(e,t){var n=f(e);if(null==n)throw new s("Unable to create "+e+" blot");var i=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t);return new i(o,t)},t.find=function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null},t.query=f,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1<t.length)return t.map((function(t){return e(t)}));var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new s("Invalid definition");if("abstract"===i.blotName)throw new s("Cannot register abstract class");return"string"==typeof(p[i.blotName||i.attrName]=i).keyName?c[i.keyName]=i:(null!=i.className&&(d[i.className]=i),null!=i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(e){return e.toUpperCase()})):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach((function(e){null!=h[e]&&null!=i.className||(h[e]=i)})))),i}},function(e,t,n){function i(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var o=n(51),r=n(11),s=n(3),a=n(20),l=String.fromCharCode(0);i.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(n.attributes=t),this.push(n))},i.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},i.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(n.attributes=t),this.push(n)},i.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=s(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(--t,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},i.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},i.prototype.filter=function(e){return this.ops.filter(e)},i.prototype.forEach=function(e){this.ops.forEach(e)},i.prototype.map=function(e){return this.ops.map(e)},i.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},i.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},i.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},i.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},i.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var s;r<e?s=o.next(e-r):(s=o.next(t-r),n.push(s)),r+=a.length(s)}return new i(n)},i.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],s=n.peek();if(null!=s&&"number"==typeof s.retain&&null==s.attributes){for(var l=s.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());0<s.retain-l&&n.next(s.retain-l)}for(var u=new i(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var f=a.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(f&&(p.attributes=f),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new i(t.rest());return u.concat(g).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&u.push(h)}return u.chop()},i.prototype.concat=function(e){var t=new i(this.ops.slice());return 0<e.ops.length&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},i.prototype.diff=function(e,t){if(this.ops===e.ops)return new i;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),s=new i,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;0<t;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),s.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),s.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var i=c.next(n),l=d.next(n);r(i.insert,l.insert)?s.retain(n,a.attributes.diff(i.attributes,l.attributes)):s.push(l).delete(n)}t-=n}})),s.chop()},i.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new i,r=0;n.hasNext();){if("insert"!==n.peekType())return;var s=n.peek(),l=a.length(s)-n.peekLength(),u="string"==typeof s.insert?s.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(0<u)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new i}}0<o.length()&&e(o,{},r)},i.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new i;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var s=Math.min(n.peekLength(),o.peekLength()),l=n.next(s),u=o.next(s);if(l.delete)continue;u.delete?r.push(u):r.retain(s,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},i.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var o=n.peekLength(),r=n.peekType();n.next(),"delete"!==r?("insert"===r&&(i<e||!t)&&(e+=o),i+=o):e-=Math.min(o,e-i)}return e},e.exports=i},function(e,t){"use strict";function n(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function i(e){if(e&&"[object Object]"===a.call(e)){var t,n=s.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&s.call(e.constructor.prototype,"isPrototypeOf");if(!e.constructor||n||i){for(t in e);return void 0===t||s.call(e,t)}}}function o(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue}function r(e,t){if("__proto__"===t){if(!s.call(e,t))return;if(u)return u(e,t).value}return e[t]}var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.exports=function e(t,s){var a,l,u,c,d,h=t,p=1,f=arguments.length,g=!1;for("boolean"==typeof h&&(g=h,h=s||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<f;++p)if(null!=(a=arguments[p]))for(l in a)u=r(h,l),h!==(c=r(a,l))&&(g&&c&&(i(c)||(d=n(c)))?o(h,{name:l,newValue:e(g,d?(d=!1,u&&n(u)?u:[]):u&&i(u)?u:{},c)}):void 0!==c&&o(h,{name:l,newValue:c}));return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:r(o,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var s=h(n(3)),a=h(n(2)),l=h(n(0)),u=h(n(16)),c=h(n(6)),d=h(n(7));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=(g(v,l.default.Embed),i(v,[{key:"attach",value:function(){r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,s.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,t,n){if("string"==typeof t&&t.endsWith("\n")){var i=l.default.create(y.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,t.slice(0,-1))}else r(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,e,t,n)}}]),v);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}m.scope=l.default.Scope.BLOCK_BLOT;var y=(g(b,l.default.Block),i(b,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),_(t))}),new a.default).insert("\n",_(this))),this.cache.delta}},{key:"deleteAt",value:function(e,t){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"deleteAt",this).call(this,e,t),this.cache={}}},{key:"formatAt",value:function(e,t,n,i){t<=0||(l.default.query(n,l.default.Scope.BLOCK)?e+t===this.length()&&this.format(n,i):r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,e,Math.min(t,this.length()-e-1),n,i),this.cache={})}},{key:"insertAt",value:function(e,t,n){if(null!=n)return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,e,t,n);if(0!==t.length){var i=t.split("\n"),o=i.shift();0<o.length&&(e<this.length()-1||null==this.children.tail?r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var s=this;i.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+o.length)}}},{key:"insertBefore",value:function(e,t){var n=this.children.head;r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,e,t),n instanceof u.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,t){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"moveChildren",this).call(this,e,t),this.cache={}}},{key:"optimize",value:function(e){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t;if(n&&(0===e||e>=this.length()-1)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),b);function b(e){p(this,b);var t=f(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e));return t.cache={},t}function _(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,s.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:_(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[c.default,l.default.Embed,d.default],t.bubbleFormats=_,t.BlockEmbed=m,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(50);var a=v(n(2)),l=v(n(14)),u=v(n(8)),c=v(n(9)),d=v(n(0)),h=n(15),p=v(h),f=v(n(3)),g=v(n(10)),m=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,g.default)("quill"),_=(r(w,null,[{key:"debug",value:function(e){!0===e&&(e="log"),g.default.level(e)}},{key:"find",value:function(e){return e.__quill||d.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t,n){var i=this,o=2<arguments.length&&void 0!==n&&n;if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(n){i.register(n,e[n],t)}))}else null==this.imports[e]||o||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?d.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),r(w,[{key:"addContainer",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null;if("string"==typeof e){var i=e;(e=document.createElement("div")).classList.add(i)}return this.container.insertBefore(e,n),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,r=O(e,t,n),s=o(r,4);return e=s[0],t=s[1],n=s[3],S.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t,n){var i=this,o=2<arguments.length&&void 0!==n?n:u.default.sources.API;return S.call(this,(function(){var n=i.getSelection(!0),o=new a.default;if(null==n)return o;if(d.default.query(e,d.default.Scope.BLOCK))o=i.editor.formatLine(n.index,n.length,y({},e,t));else{if(0===n.length)return i.selection.format(e,t),o;o=i.editor.formatText(n.index,n.length,y({},e,t))}return i.setSelection(n,u.default.sources.SILENT),o}),o)}},{key:"formatLine",value:function(e,t,n,i,r){var s,a=this,l=O(e,t,n,i,r),u=o(l,4);return e=u[0],t=u[1],s=u[2],r=u[3],S.call(this,(function(){return a.editor.formatLine(e,t,s)}),r,e,0)}},{key:"formatText",value:function(e,t,n,i,r){var s,a=this,l=O(e,t,n,i,r),u=o(l,4);return e=u[0],t=u[1],s=u[2],r=u[3],S.call(this,(function(){return a.editor.formatText(e,t,s)}),r,e,0)}},{key:"getBounds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=void 0;i="number"==typeof e?this.selection.getBounds(e,n):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:i.bottom-o.top,height:i.height,left:i.left-o.left,right:i.right-o.left,top:i.top-o.top,width:i.width}}},{key:"getContents",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:this.getLength()-n,r=O(n,i),s=o(r,2);return n=s[0],i=s[1],this.editor.getContents(n,i)}},{key:"getFormat",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:this.getSelection(!0),i=1<arguments.length&&void 0!==t?t:0;return"number"==typeof n?this.editor.getFormat(n,i):this.editor.getFormat(n.index,n.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:Number.MAX_VALUE;return"number"!=typeof n?this.scroll.lines(n.index,n.length):this.scroll.lines(n,i)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(e){return 0<arguments.length&&void 0!==e&&e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,i=1<arguments.length&&void 0!==t?t:this.getLength()-n,r=O(n,i),s=o(r,2);return n=s[0],i=s[1],this.editor.getText(n,i)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,t,n,i){var o=this,r=3<arguments.length&&void 0!==i?i:w.sources.API;return S.call(this,(function(){return o.editor.insertEmbed(e,t,n)}),r,e)}},{key:"insertText",value:function(e,t,n,i,r){var s,a=this,l=O(e,0,n,i,r),u=o(l,4);return e=u[0],s=u[2],r=u[3],S.call(this,(function(){return a.editor.insertText(e,t,s)}),r,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,r=O(e,t,n),s=o(r,4);return e=s[0],t=s[1],n=s[3],S.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e,t){var n=this,i=1<arguments.length&&void 0!==t?t:u.default.sources.API;return S.call(this,(function(){e=new a.default(e);var t=n.getLength(),i=n.editor.deleteText(0,t),o=n.editor.applyDelta(e),r=o.ops[o.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(n.editor.deleteText(n.getLength()-1,1),o.delete(1)),i.compose(o)}),i)}},{key:"setSelection",value:function(e,t,n){if(null==e)this.selection.setRange(null,t||w.sources.API);else{var i=O(e,t,n),r=o(i,4);e=r[0],t=r[1],n=r[3],this.selection.setRange(new h.Range(e,t),n),n!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:u.default.sources.API,i=(new a.default).insert(e);return this.setContents(i,n)}},{key:"update",value:function(e){var t=0<arguments.length&&void 0!==e?e:u.default.sources.USER,n=this.scroll.update(t);return this.selection.update(t),n}},{key:"updateContents",value:function(e,t){var n=this,i=1<arguments.length&&void 0!==t?t:u.default.sources.API;return S.call(this,(function(){return e=new a.default(e),n.editor.applyDelta(e,i)}),i,!0)}}]),w);function w(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),this.options=C(e,n),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",e);this.options.debug&&w.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",(this.container.__quill=this).root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=d.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e){e===u.default.events.TEXT_CHANGE&&t.root.classList.toggle("ql-blank",t.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(e,n){var i=t.selection.lastRange,o=i&&0===i.length?i.index:void 0;S.call(t,(function(){return t.editor.update(null,n,o)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}function C(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==_.DEFAULTS.theme){if(t.theme=_.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=_.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},_.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function S(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===u.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),r=this.editor.delta,s=e();if(null!=o&&(!0===n&&(n=o.index),null==i?o=x(o,s,t):0!==i&&(o=x(o,n,i,t)),this.setSelection(o,u.default.sources.SILENT)),0<s.length()){var l,c,d=[u.default.events.TEXT_CHANGE,s,r,t];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(d)),t!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return s}function O(e,t,n,o,r){var s={};return"number"==typeof e.index&&"number"==typeof e.length?("number"!=typeof t&&(r=o,o=n,n=t),t=e.length,e=e.index):"number"!=typeof t&&(r=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":i(n))?(s=n,r=o):"string"==typeof n&&(null!=o?s[n]=o:r=n),[e,t,s,r=r||u.default.sources.API]}function x(e,t,n,i){if(null==e)return null;var r=void 0,s=void 0;if(t instanceof a.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==u.default.sources.USER)})),c=o(l,2);r=c[0],s=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===u.default.sources.USER?e:0<=n?e+n:Math.max(t,e+n)})),p=o(d,2);r=p[0],s=p[1]}return new h.Range(r,s-r)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=u.default.events,_.sources=u.default.sources,_.version="1.3.7",_.imports={delta:a.default,parchment:d.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=C,t.overload=O,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r=a(n(7)),s=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var l=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s.default.Inline),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(u,[{key:"formatAt",value:function(e,t,n,i){if(u.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var r=this.isolate(e,t);i&&r.wrap(n,i)}else o(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"formatAt",this).call(this,e,t,n,i)}},{key:"optimize",value:function(e){if(o(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,e),this.parent instanceof u&&0<u.compare(this.statics.blotName,this.parent.statics.blotName)){var t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}],[{key:"compare",value:function(e,t){var n=u.order.indexOf(e),i=u.order.indexOf(t);return 0<=n||0<=i?n-i:e===t?0:e<t?-1:1}}]),u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}l.allowedChildren=[l,s.default.Embed,r.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,((i=n(0))&&i.__esModule?i:{default:i}).default.Text),r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=r(n(54));function r(e){return e&&e.__esModule?e:{default:e}}var s=(0,r(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(l,[{key:"emit",value:function(){s.log.apply(s,arguments),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node,o=t.handler;e.target!==i&&!i.contains(e.target)||o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return e.listeners={},e.on("error",s.error),e}a.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},a.sources={API:"api",SILENT:"silent",USER:"user"},t.default=a},function(e,t,n){"use strict";function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.quill=e,this.options=t}Object.defineProperty(t,"__esModule",{value:!0}),i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],o="warn";function r(e){if(i.indexOf(e)<=i.indexOf(o)){for(var t,n=arguments.length,r=Array(1<n?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];(t=console)[e].apply(t,r)}}function s(e){return i.reduce((function(t,n){return t[n]=r.bind(console,n,e),t}),{})}r.level=s.level=function(e){o=e},t.default=s},function(e,t,n){var i=Array.prototype.slice,o=n(52),r=n(53),s=e.exports=function(e,t,n){return n=n||{},e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e))return!!r(t)&&(e=i.call(e),t=i.call(t),s(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=o(e),h=o(t)}catch(e){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),u=d.length-1;0<=u;u--)if(d[u]!=h[u])return!1;for(u=d.length-1;0<=u;u--)if(c=d[u],!s(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||0<e.length&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=(r.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},r.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},r.prototype.canAdd=function(e,t){return null!=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?-1<this.whitelist.indexOf(t.replace(/["']/g,"")):-1<this.whitelist.indexOf(t)))},r.prototype.remove=function(e){e.removeAttribute(this.keyName)},r.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},r);function r(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|o:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:r(o,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var s=d(n(2)),a=d(n(0)),l=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(f(m,u.default),m);function m(){return h(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}g.blotName="code",g.tagName="CODE";var v=(f(y,l.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(y,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t){var n=this.descendant(c.default,this.length()-1),o=i(n,1)[0];null!=o&&o.deleteAt(o.length()-1,1),r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,e,t)}}},{key:"formatAt",value:function(e,t,n,i){if(0!==t&&null!=a.default.query(n,a.default.Scope.BLOCK)&&(n!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||e+t<=o)){var r=this.newlineIndex(e,!0)+1,s=o-r+1,l=this.isolate(r,s),u=l.next;l.format(n,i),u instanceof y&&u.formatAt(0,e-r+t-s,n,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),r=i(o,2),s=r[0],a=r[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e,t){if(1<arguments.length&&void 0!==t&&t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return-1<n?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===t.statics.formats(t.domNode)&&(t.optimize(e),t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var t=r(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,e);return t.setAttribute("spellcheck",!1),t}},{key:"formats",value:function(){return!0}}]),y);function y(){return h(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=g,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=v(n(2)),a=v(n(20)),l=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),h=v(d),p=v(n(16)),f=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(_,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(e=e.reduce((function(e,t){if(1===t.insert){var n=(0,f.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,f.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"!=typeof t.insert)return e.push(t);var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}),new s.default)).reduce((function(e,s){var u=s.retain||s.delete||s.insert.length||1,c=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var p=s.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),r<=e&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var f=t.scroll.line(e),g=o(f,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof h.default){var _=v.descendant(l.default.Leaf,y),w=o(_,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(w))}c=a.default.attributes.diff(b,c)||{}}else if("object"===i(s.insert)){var C=Object.keys(s.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,s.insert[C])}r+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t,n){var i=this,o=2<arguments.length&&void 0!==n?n:{};return this.scroll.update(),Object.keys(o).forEach((function(n){if(null==i.scroll.whitelist||i.scroll.whitelist[n]){var r=i.scroll.lines(e,Math.max(t,1)),s=t;r.forEach((function(t){var r=t.length();if(t instanceof u.default){var a=e-t.offset(i.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,n,o[n])}else t.format(n,o[n]);s-=r}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,f.default)(o)))}},{key:"formatText",value:function(e,t,n){var i=this,o=2<arguments.length&&void 0!==n?n:{};return Object.keys(o).forEach((function(n){i.scroll.formatAt(e,t,n,o[n])})),this.update((new s.default).retain(e).retain(t,(0,f.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,i=[],r=[];0===n?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof h.default?i.push(t):t instanceof l.default.Leaf&&r.push(t)})):(i=this.scroll.lines(e,n),r=this.scroll.descendants(l.default.Leaf,e,n));var s=[i,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());0<Object.keys(t).length;){var n=e.shift();if(null==n)return t;t=w((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,s)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert((r=n,(o=t)in(i={})?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r,i)));var i,o,r}},{key:"insertText",value:function(e,t,n){var i=this,o=2<arguments.length&&void 0!==n?n:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(n){i.scroll.formatAt(e,t.length,n,o[n])})),this.update((new s.default).retain(e).insert(t,(0,f.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(1<e.children.length)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),r=o(i,2),a=r[0],l=r[1],c=0,d=new s.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c).diff((new s.default).insert(n).concat(d)),p=(new s.default).retain(e).concat(h);return this.applyDelta(p)}},{key:"update",value:function(e,t,n){var i=1<arguments.length&&void 0!==t?t:[],o=2<arguments.length&&void 0!==n?n:void 0,r=this.delta;if(1===i.length&&"characterData"===i[0].type&&i[0].target.data.match(y)&&l.default.find(i[0].target)){var a=l.default.find(i[0].target),u=(0,d.bubbleFormats)(a),h=a.offset(this.scroll),p=i[0].oldValue.replace(c.default.CONTENTS,""),f=(new s.default).insert(p),m=(new s.default).insert(a.value());e=(new s.default).retain(h).concat(f.diff(m,o)).reduce((function(e,t){return t.insert?e.insert(t.insert,u):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,g.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,o));return e}}]),_);function _(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),this.scroll=e,this.delta=this.getDelta()}function w(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=u(n(0)),s=u(n(21)),a=u(n(11)),l=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;d(this,h),this.index=e,this.length=t}var p=(0,u(n(10)).default)("quill:selection"),f=(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(g,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=r.default.find(n.start.node,!1);if(null==i)return;if(i instanceof r.default.Leaf){var o=i.split(n.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,o=this.scroll.length();e=Math.min(e,o-1),n=Math.min(e+n,o-1)-e;var r=void 0,s=this.scroll.leaf(e),a=i(s,2),l=a[0],u=a[1];if(null==l)return null;var c=l.position(u,!0),d=i(c,2);r=d[0],u=d[1];var h=document.createRange();if(0<n){h.setStart(r,u);var p=this.scroll.leaf(e+n),f=i(p,2);if(l=f[0],u=f[1],null==l)return null;var g=l.position(u,!0),m=i(g,2);return r=m[0],u=m[1],h.setEnd(r,u),h.getBoundingClientRect()}var v="left",y=void 0;return r instanceof Text?(u<r.data.length?(h.setStart(r,u),h.setEnd(r,u+1)):(h.setStart(r,u-1),h.setEnd(r,u),v="right"),y=h.getBoundingClientRect()):(y=l.domNode.getBoundingClientRect(),0<u&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=i(e,2),o=n[0],s=n[1],a=r.default.find(o,!0),l=a.offset(t.scroll);return 0===s?l:a instanceof r.default.Container?l+a.length():l+a.index(o,s)})),s=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(c(o)));return new h(a,s-a)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&0<t.childNodes.length;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],r=this.scroll.length();return n.forEach((function(e,n){e=Math.min(r-1,e);var s,a=t.scroll.leaf(e),l=i(a,2),u=l[0],c=l[1],d=u.position(c,0!==n),h=i(d,2);s=h[0],c=h[1],o.push(s,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,r=this.scroll.line(Math.min(t.index,o)),s=i(r,1)[0],a=s;if(0<t.length){var l=this.scroll.line(Math.min(t.index+t.length,o));a=i(l,1)[0]}if(null!=s&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t,n,i,o){var r=2<arguments.length&&void 0!==n?n:e,s=3<arguments.length&&void 0!==i?i:t,a=4<arguments.length&&void 0!==o&&o;if(p.info("setNativeRange",e,t,r,s),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=r.parentNode){var l=document.getSelection();if(null!=l)if(null!=e){this.hasFocus()||this.root.focus();var u=(this.getNativeRange()||{}).native;if(null==u||a||e!==u.startContainer||t!==u.startOffset||r!==u.endContainer||s!==u.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==r.tagName&&(s=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var c=document.createRange();c.setStart(e,t),c.setEnd(r,s),l.removeAllRanges(),l.addRange(c)}}else l.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e,t,n){var i=1<arguments.length&&void 0!==t&&t,o=2<arguments.length&&void 0!==n?n:l.default.sources.API;if("string"==typeof i&&(o=i,i=!1),p.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([i]))}else this.setNativeRange(null);this.update(o)}},{key:"update",value:function(e){var t=0<arguments.length&&void 0!==e?e:l.default.sources.USER,n=this.lastRange,o=this.getRange(),r=i(o,2),u=r[0],c=r[1];if(this.lastRange=u,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(n,this.lastRange)){var d;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var h,p=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(n),t];(d=this.emitter).emit.apply(d,[l.default.events.EDITOR_CHANGE].concat(p)),t!==l.default.sources.SILENT&&(h=this.emitter).emit.apply(h,p)}}}]),g);function g(e,t){var n=this;d(this,g),this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&0<t.length()&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var i=t.range,o=i.startNode,r=i.startOffset,s=i.endNode,a=i.endOffset;n.setNativeRange(o,r,s,a)}})),this.update(l.default.sources.SILENT)}function m(e,t){try{t.parentNode}catch(e){return}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((o=n(0))&&o.__esModule?o:{default:o}).default.Embed),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(s,[{key:"insertInto",value:function(e,t){0===e.children.length?function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertInto",this).call(this,e,t):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}r.blotName="break",r.tagName="BR",t.default=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(44),a=n(30),l=n(1),u=(o(c,r=a.default),c.prototype.appendChild=function(e){this.insertBefore(e)},c.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},c.prototype.build=function(){var e=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=d(t);e.insertBefore(n,e.children.head||void 0)}catch(t){if(t instanceof l.ParchmentError)return;throw t}}))},c.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},c.prototype.descendant=function(e,t){var n=this.children.find(t),i=n[0],o=n[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof c?i.descendant(e,o):[null,-1]},c.prototype.descendants=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=Number.MAX_VALUE);var i=[],o=n;return this.children.forEachAt(t,n,(function(t,n,r){(null==e.blotName&&e(t)||null!=e.blotName&&t instanceof e)&&i.push(t),t instanceof c&&(i=i.concat(t.descendants(e,n,o))),o-=r})),i},c.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),r.prototype.detach.call(this)},c.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,i)}))},c.prototype.insertAt=function(e,t,n){var i=this.children.find(e),o=i[0],r=i[1];if(o)o.insertAt(r,t,n);else{var s=null==n?l.create("text",t):l.create(t,n);this.appendChild(s)}},c.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},c.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},c.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},c.prototype.optimize=function(e){if(r.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var t=l.create(this.statics.defaultChild);this.appendChild(t),t.optimize(e)}else this.remove()},c.prototype.path=function(e,t){void 0===t&&(t=!1);var n=this.children.find(e,t),i=n[0],o=n[1],r=[[this,e]];return i instanceof c?r.concat(i.path(o,t)):(null!=i&&r.push([i,o]),r)},c.prototype.removeChild=function(e){this.children.remove(e)},c.prototype.replace=function(e){e instanceof c&&e.moveChildren(this),r.prototype.replace.call(this,e)},c.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,o){e=e.split(i,t),n.appendChild(e)})),n},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(e,t){var n=this,i=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var i=d(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))}))},c);function c(e){var t=r.call(this,e)||this;return t.build(),t}function d(t){var n=l.find(t);if(null==n)try{n=l.create(t)}catch(e){n=l.create(l.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(e){n.domNode.appendChild(e)})),t.parentNode&&t.parentNode.replaceChild(n.domNode,t),n.attach()}return n}t.default=u},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(12),a=n(31),l=n(17),u=n(1),c=(o(d,r=l.default),d.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},d.prototype.format=function(e,t){var n=u.query(e);n instanceof s.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},d.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},d.prototype.replaceWith=function(e,t){var n=r.prototype.replaceWith.call(this,e,t);return this.attributes.copy(n),n},d.prototype.update=function(e,t){var n=this;r.prototype.update.call(this,e,t),e.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},d.prototype.wrap=function(e,t){var n=r.prototype.wrap.call(this,e,t);return n instanceof d&&n.statics.scope===this.statics.scope&&this.attributes.move(n),n},d);function d(e){var t=r.call(this,e)||this;return t.attributes=new a.default(t.domNode),t}t.default=c},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(30),a=n(1),l=(o(u,r=s.default),u.value=function(e){return!0},u.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},u.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return 0<e&&(n+=1),[this.parent.domNode,n]},u.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},u.scope=a.Scope.INLINE_BLOT,u);function u(){return null!==r&&r.apply(this,arguments)||this}t.default=l},function(e,t,n){var i=n(11),o=n(3),r={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=o(!0,{},t);for(var r in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[r]&&void 0===t[r]&&(i[r]=e[r]);return 0<Object.keys(i).length?i:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return i(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return 0<Object.keys(n).length?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return 0<Object.keys(i).length?i:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e=e||1/0;var t=this.ops[this.index];if(t){var n=this.offset,i=r.length(t);if(i-n<=e?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=r},function(e,n){var i=function(){"use strict";function n(e,t){return null!=t&&e instanceof t}var i,o,r;try{i=Map}catch(e){i=function(){}}try{o=Set}catch(e){o=function(){}}try{r=Promise}catch(e){r=function(){}}function s(e,a,u,c,d){"object"==typeof a&&(u=a.depth,c=a.prototype,d=a.includeNonEnumerable,a=a.circular);var h=[],p=[],f=void 0!==t;return void 0===a&&(a=!0),void 0===u&&(u=1/0),function e(u,g){if(null===u)return null;if(0===g)return u;var m,v;if("object"!=typeof u)return u;if(n(u,i))m=new i;else if(n(u,o))m=new o;else if(n(u,r))m=new r((function(t,n){u.then((function(n){t(e(n,g-1))}),(function(t){n(e(t,g-1))}))}));else if(s.__isArray(u))m=[];else if(s.__isRegExp(u))m=new RegExp(u.source,l(u)),u.lastIndex&&(m.lastIndex=u.lastIndex);else if(s.__isDate(u))m=new Date(u.getTime());else{if(f&&t.isBuffer(u))return m=t.allocUnsafe?t.allocUnsafe(u.length):new t(u.length),u.copy(m),m;n(u,Error)?m=Object.create(u):void 0===c?(v=Object.getPrototypeOf(u),m=Object.create(v)):(m=Object.create(c),v=c)}if(a){var y=h.indexOf(u);if(-1!=y)return p[y];h.push(u),p.push(m)}for(var b in n(u,i)&&u.forEach((function(t,n){var i=e(n,g-1),o=e(t,g-1);m.set(i,o)})),n(u,o)&&u.forEach((function(t){var n=e(t,g-1);m.add(n)})),u){var _;v&&(_=Object.getOwnPropertyDescriptor(v,b)),_&&null==_.set||(m[b]=e(u[b],g-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(b=0;b<w.length;b++){var C=w[b];(O=Object.getOwnPropertyDescriptor(u,C))&&!O.enumerable&&!d||(m[C]=e(u[C],g-1),O.enumerable||Object.defineProperty(m,C,{enumerable:!1}))}}if(d){var S=Object.getOwnPropertyNames(u);for(b=0;b<S.length;b++){var O,x=S[b];(O=Object.getOwnPropertyDescriptor(u,x))&&O.enumerable||(m[x]=e(u[x],g-1),Object.defineProperty(m,x,{enumerable:!1}))}}return m}(e,u)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return s.clonePrototype=function(e){if(null===e)return null;function t(){}return t.prototype=e,new t},s.__objToStr=a,s.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},s.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},s.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},s.__getRegExpFlags=l,s}();"object"==typeof e&&e.exports&&(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:r(o,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var s=p(n(0)),a=p(n(8)),l=n(4),u=p(l),c=p(n(16)),d=p(n(13)),h=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return e instanceof u.default||e instanceof l.BlockEmbed}var g=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(m,s.default.Scroll),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(m,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,t){var n=this.line(e),o=i(n,2),s=o[0],a=o[1],u=this.line(e+t),h=i(u,1)[0];if(r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,e,t),null!=h&&s!==h&&0<a){if(s instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var p=s.newlineIndex(s.length(),!0);if(-1<p&&(s=s.split(p+1))===h)return void this.optimize()}else if(h instanceof d.default){var f=h.newlineIndex(0);-1<f&&h.split(f+1)}var g=h.children.head instanceof c.default?null:h.children.head;s.moveChildren(h,g),s.remove()}this.optimize()}},{key:"enable",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(e,t,n,i){null!=this.whitelist&&!this.whitelist[n]||(r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,e,t,n,i),this.optimize())}},{key:"insertAt",value:function(e,t,n){if(null==n||null==this.whitelist||this.whitelist[t]){if(e>=this.length())if(null==n||null==s.default.query(t,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==n&&t.endsWith("\n")&&(t=t.slice(0,-1)),i.insertAt(0,t,n)}else{var o=s.default.create(t,n);this.appendChild(o)}else r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,e,t,n);this.optimize()}}},{key:"insertBefore",value:function(e,t){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var n=s.default.create(this.statics.defaultChild);n.appendChild(e),e=n}r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,e,t)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(f,e)}},{key:"lines",value:function(e,t){return function e(t,n,i){var o=[],r=i;return t.children.forEachAt(n,i,(function(t,n,i){f(t)?o.push(t):t instanceof s.default.Container&&(o=o.concat(e(t,n,r))),r-=i})),o}(this,0<arguments.length&&void 0!==e?e:0,1<arguments.length&&void 0!==t?t:Number.MAX_VALUE)}},{key:"optimize",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:[],i=1<arguments.length&&void 0!==t?t:{};!0!==this.batch&&(r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,n,i),0<n.length&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,n,i))}},{key:"path",value:function(e){return r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var t=a.default.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),0<e.length&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,t,e),r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"update",this).call(this,e.concat([])),0<e.length&&this.emitter.emit(a.default.events.SCROLL_UPDATE,t,e)}}}]),m);function m(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,e));return n.emitter=t.emitter,Array.isArray(t.whitelist)&&(n.whitelist=t.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[u.default,l.BlockEmbed,h.default],t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=m(n(21)),l=m(n(11)),u=m(n(3)),c=m(n(2)),d=m(n(20)),h=m(n(0)),p=m(n(5)),f=m(n(10)),g=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,f.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(w,g.default),r(w,null,[{key:"match",value:function(e,t){return t=L(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),r(w,[{key:"addBinding",value:function(e,t,n){var i=1<arguments.length&&void 0!==t?t:{},o=2<arguments.length&&void 0!==n?n:{},r=L(e);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof i&&(i={handler:i}),"function"==typeof o&&(o={handler:o}),r=(0,u.default)(r,i,o),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(t){if(!t.defaultPrevented){var n=t.which||t.keyCode,r=(e.bindings[n]||[]).filter((function(e){return w.match(t,e)}));if(0!==r.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var a=e.quill.getLine(s.index),u=o(a,2),c=u[0],d=u[1],p=e.quill.getLeaf(s.index),f=o(p,2),g=f[0],m=f[1],v=0===s.length?[g,m]:e.quill.getLeaf(s.index+s.length),y=o(v,2),b=y[0],_=y[1],C=g instanceof h.default.Text?g.value().slice(0,m):"",S=b instanceof h.default.Text?b.value().slice(_):"",O={collapsed:0===s.length,empty:0===s.length&&c.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:C,suffix:S};r.some((function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==O.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,l.default)(t.format[e],O.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix)||null!=t.suffix&&!t.suffix.test(O.suffix)||!0===t.handler.call(e,s,O))}))&&t.preventDefault()}}}}))}}]),w);function w(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,e,t));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:w.keys.ENTER,shiftKey:null},k),n.addBinding({key:w.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:w.keys.BACKSPACE},{collapsed:!0},S),n.addBinding({key:w.keys.DELETE},{collapsed:!0},O)):(n.addBinding({key:w.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},S),n.addBinding({key:w.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),n.addBinding({key:w.keys.BACKSPACE},{collapsed:!1},x),n.addBinding({key:w.keys.DELETE},{collapsed:!1},x),n.addBinding({key:w.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},S),n.listen(),n}function C(e,t){var n,i=e===_.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},i,/^$/),v(n,"handler",(function(n){var i=n.index;e===_.keys.RIGHT&&(i+=n.length+1);var r=this.quill.getLeaf(i);return!(o(r,1)[0]instanceof h.default.Embed)||(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),!1)})),n}function S(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=o(n,1)[0],r={};if(0===t.offset){var s=this.quill.getLine(e.index-1),a=o(s,1)[0];if(null!=a&&1<a.length()){var l=i.formats(),u=this.quill.getFormat(e.index-1,1);r=d.default.attributes.diff(l,u)||{}}}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-c,c,p.default.sources.USER),0<Object.keys(r).length&&this.quill.formatLine(e.index-c,c,r,p.default.sources.USER),this.quill.focus()}}function O(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},r=0,s=this.quill.getLine(e.index),a=o(s,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),u=o(l,1)[0];if(u){var c=a.formats(),h=this.quill.getFormat(e.index,1);i=d.default.attributes.diff(c,h)||{},r=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),0<Object.keys(i).length&&this.quill.formatLine(e.index+r-1,n,i,p.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),n={};if(1<t.length){var i=t[0].formats(),o=t[t.length-1].formats();n=d.default.attributes.diff(o,i)||{}}this.quill.deleteText(e,p.default.sources.USER),0<Object.keys(n).length&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function k(e,t){var n=this;0<e.length&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return h.default.query(n,h.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function E(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=h.default.query("code-block"),i=t.index,r=t.length,s=this.quill.scroll.descendant(n,i),a=o(s,2),l=a[0],u=a[1];if(null!=l){var c=this.quill.getIndex(l),d=l.newlineIndex(u,!0)+1,f=l.newlineIndex(c+u+r),g=l.domNode.textContent.slice(d,f).split("\n");u=0,g.forEach((function(t,o){e?(l.insertAt(d+u,n.TAB),u+=n.TAB.length,0===o?i+=n.TAB.length:r+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(d+u,n.TAB.length),u-=n.TAB.length,0===o?i-=n.TAB.length:r-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(i,r,p.default.sources.SILENT)}}}}function N(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function L(e){if("string"==typeof e||"number"==typeof e)return L({key:e});if("object"===(void 0===e?"undefined":i(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),i=n[0],r=n[1],s=(0,u.default)({},i.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",s).retain(i.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=o(n,2),r=i[0],s=i[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(r.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),r=o(i,2),s=r[0],a=r[1];if(n<a)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),i=n[0],r=n[1],s=(new c.default).retain(e.index+i.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,p.default.sources.USER)}},"embed left":C(_.keys.LEFT,!1),"embed left shift":C(_.keys.LEFT,!0),"embed right":C(_.keys.RIGHT,!1),"embed right shift":C(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=b},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:i(r,t,n)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,s.default.Embed),o(c,null,[{key:"value",value:function(){}}]),o(c,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,t){if(0!==this._length)return i(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t);for(var n=this,o=0;null!=n&&n.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=c.CONTENTS.length,n.optimize(),n.formatAt(o,c.CONTENTS.length,e,t),this._length=0)}},{key:"index",value:function(e,t){return e===this.textNode?0:i(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,e,t)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,t=this.selection.getNativeRange(),n=void 0,i=void 0,o=void 0;if(null!=t&&t.start.node===e&&t.end.node===e){var r=[e,t.start.offset,t.end.offset];n=r[0],i=r[1],o=r[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==c.CONTENTS){var l=this.textNode.data.split(c.CONTENTS).join("");this.next instanceof a.default?(n=this.next.domNode,this.next.insertAt(0,l),this.textNode.data=c.CONTENTS):(this.textNode.data=l,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(c.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([i,o].map((function(e){return Math.max(0,Math.min(n.data.length,e-1))})),2);return i=u[0],o=u[1],{startNode:n,startOffset:i,endNode:n,endOffset:o}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var i=this.restore();i&&(t.range=i)}}},{key:"value",value:function(){return""}}]),c);function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return n.selection=t,n.textNode=document.createTextNode(c.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(0)),o=n(4),r=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default.Container),l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}a.allowedChildren=[r.default,o.BlockEmbed,a],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(o=n(0))&&o.__esModule?o:{default:o},s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,r.default.Attributor.Style),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"value",value:function(e){var t=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,e);return t.startsWith("rgb(")?"#"+(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):t}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}var l=new r.default.Attributor.Class("color","ql-color",{scope:r.default.Scope.INLINE}),u=new s("color","color",{scope:r.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=l,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=n(6))&&r.__esModule?r:{default:r}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t)return o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,e,t);t=this.constructor.sanitize(t),this.domNode.setAttribute("href",t)}}],[{key:"create",value:function(e){var t=o(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,e);return e=this.sanitize(e),t.setAttribute("href",e),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}function l(e,t){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return-1<t.indexOf(i)}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=s,t.sanitize=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var l=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(d,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,o=this.container.querySelector(".ql-selected");if(e!==o&&(null!=o&&o.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),n))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),d);function d(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){t.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:t.togglePicker();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=v(n(0)),o=v(n(5)),r=n(4),s=v(r),a=v(n(16)),l=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),h=v(n(22)),p=v(n(7)),f=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":s.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":f.default,"modules/history":g.default,"modules/keyboard":m.default}),i.default.register(s.default,a.default,u.default,d.default,h.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=(Object.defineProperty(r.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),r.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return t=Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),"number"==typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},r.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},r.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},r.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},r.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},r.prototype.formatAt=function(e,t,n,o){var r=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&o)r.wrap(n,o);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var s=i.create(this.statics.scope);r.wrap(s),s.format(n,o)}},r.prototype.insertAt=function(e,t,n){var o=null==n?i.create("text",t):i.create(t,n),r=this.split(e);this.parent.insertBefore(o,r)},r.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},r.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},r.prototype.length=function(){return 1},r.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},r.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},r.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},r.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},r.prototype.replaceWith=function(e,t){var n="string"==typeof e?i.create(e,t):e;return n.replace(this),n},r.prototype.split=function(e,t){return 0===e?this:this.next},r.prototype.update=function(e,t){},r.prototype.wrap=function(e,t){var n="string"==typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},r.blotName="abstract",r);function r(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(32),r=n(33),s=n(1),a=(l.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},l.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=o.default.keys(this.domNode),a=r.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},l.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},l.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},l.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},l);function l(e){this.attributes={},this.domNode=e,this.build()}t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function s(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a,l=(o(u,a=r.default),u.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},u.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},u.prototype.remove=function(e){s(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},u.prototype.value=function(e){var t=(s(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},u);function u(){return null!==a&&a.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function s(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a,l=(o(u,a=r.default),u.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},u.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[s(this.keyName)]=t,!0)},u.prototype.remove=function(e){e.style[s(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},u.prototype.value=function(e){var t=e.style[s(this.keyName)];return this.canAdd(e,t)?t:""},u);function u(){return null!==a&&a.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(e,t,n){t&&i(e.prototype,t)}(r,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),r);function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.quill=e,this.options=t,this.modules={}}o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=s(n(0)),r=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var a="\ufeff",l=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,o.default.Embed),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(u,[{key:"index",value:function(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,e,t)}},{key:"restore",value:function(e){var t=void 0,n=void 0,i=e.data.split(a).join("");if(e===this.leftGuard)if(this.prev instanceof r.default){var s=this.prev.length();this.prev.insertAt(s,i),t={startNode:this.prev.domNode,startOffset:s+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(t=this.next instanceof r.default?(this.next.insertAt(0,i),{startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this.next),{startNode:n,startOffset:i.length}));return e.data=a,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var i=n.restore(e.target);i&&(t.range=i)}}))}}]),u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEach((function(e){t.contentNode.appendChild(e)})),t.leftGuard=document.createTextNode(a),t.rightGuard=document.createTextNode(a),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},r={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",r),a=new o.default.Attributor.Class("align","ql-align",r),l=new o.default.Attributor.Style("align","text-align",r);t.AlignAttribute=s,t.AlignClass=a,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},r=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},r={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",r),a=new o.default.Attributor.Class("direction","ql-direction",r),l=new o.default.Attributor.Style("direction","direction",r);t.DirectionAttribute=s,t.DirectionClass=a,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(o=n(0))&&o.__esModule?o:{default:o},s={scope:r.default.Scope.INLINE,whitelist:["serif","monospace"]},a=new r.default.Attributor.Class("font","ql-font",s);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}var u=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,r.default.Attributor.Style),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(l,[{key:"value",value:function(e){return function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),l)("font","font-family",s);t.FontStyle=u,t.FontClass=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},r=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=r,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=s(n(0)),r=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,s(n(9)).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(l,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],r.default.sources.USER),this.ignoreChange=!1;var i=u(n[e]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&0<this.stack.undo.length){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),l);function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(r.default.events.EDITOR_CHANGE,(function(e,t,i,o){e!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==r.default.sources.USER?n.transform(t):n.record(t,i))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}function u(e){var t,n,i=e.reduce((function(e,t){return e+(t.delete||0)}),0),r=e.length()-i;return null!=(n=(t=e).ops[t.ops.length-1])&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))&&--r,r}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=f(n(3)),s=f(n(2)),a=f(n(8)),l=f(n(23)),u=f(n(34)),c=f(n(59)),d=f(n(60)),h=f(n(28)),p=f(n(61));function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],w=["1","2","3",!1],C=["small",!1,"large","huge"],S=(v(O,u.default),i(O,[{key:"addModule",value:function(e){var t=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(t),t}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,b,"background"==n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,_):e.classList.contains("ql-header")?E(e,w):e.classList.contains("ql-size")&&E(e,C)),new h.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),O);function O(e,t){g(this,O);var n=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,e,t));return e.emitter.listenDOM("click",document.body,(function t(i){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(i.target)||e.close()}))})),n}S.DEFAULTS=(0,r.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(i.index).delete(i.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(i.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=(v(k,p.default),i(k,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:"link",i=1<arguments.length&&void 0!==t?t:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=i?this.textbox.value=i:n!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+n)||""),this.root.setAttribute("data-mode",n)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),k);function k(e,t){g(this,k);var n=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,e,t));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}function E(e,t,n){var i=2<arguments.length&&void 0!==n&&n;t.forEach((function(t){var n=document.createElement("option");t===i?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=x,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),1<e.length&&this.append.apply(this,e.slice(1))},o.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},o.prototype.insertBefore=function(e,t){e&&(null!=(e.next=t)?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?((this.tail.next=e).prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},o.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},o.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)},o.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},o.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,i=this.iterator();n=i();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},o.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},o.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var i,o=this.find(e),r=o[0],s=e-o[1],a=this.iterator(r);(i=a())&&s<e+t;){var l=i.length();s<e?n(i,e-s,Math.min(t,s+l-e)):n(i,0,Math.min(l,e+t-s)),s+=l}},o.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},o.prototype.reduce=function(e,t){for(var n,i=this.iterator();n=i();)t=e(t,n);return t},o);function o(){this.head=this.tail=null,this.length=0}t.default=i},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=(o(c,r=s.default),c.prototype.detach=function(){r.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(e,t){this.update(),0===e&&t===this.length()?this.children.forEach((function(e){e.remove()})):r.prototype.deleteAt.call(this,e,t)},c.prototype.formatAt=function(e,t,n,i){this.update(),r.prototype.formatAt.call(this,e,t,n,i)},c.prototype.insertAt=function(e,t,n){this.update(),r.prototype.insertAt.call(this,e,t,n)},c.prototype.optimize=function(e,t){var n=this;void 0===e&&(e=[]),void 0===t&&(t={}),r.prototype.optimize.call(this,t);for(var i=[].slice.call(this.observer.takeRecords());0<i.length;)e.push(i.pop());for(var o=function e(t,i){void 0===i&&(i=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),i&&e(t.parent))},l=function e(n){null!=n.domNode[a.DATA_KEY]&&null!=n.domNode[a.DATA_KEY].mutations&&(n instanceof s.default&&n.children.forEach(e),n.optimize(t))},u=e,c=0;0<u.length;c+=1){if(100<=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(o(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);o(t,!1),t instanceof s.default&&t.children.forEach((function(e){o(e,!1)}))}))):"attributes"===e.type&&o(t.prev)),o(t))})),this.children.forEach(l),i=(u=[].slice.call(this.observer.takeRecords())).slice();0<i.length;)e.push(i.pop())}},c.prototype.update=function(e,t){var n=this;void 0===t&&(t={}),(e=e||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],t)})),null!=this.domNode[a.DATA_KEY].mutations&&r.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,t),this.optimize(e,t)},c.blotName="scroll",c.defaultChild="block",c.scope=a.Scope.BLOCK_BLOT,c.tagName="DIV",c);function c(e){var t=r.call(this,e)||this;return(t.scroll=t).observer=new MutationObserver((function(e){t.update(e)})),t.observer.observe(t.domNode,l),t.attach(),t}t.default=u},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(18),a=n(1),l=(o(u,r=s.default),u.formats=function(e){if(e.tagName!==u.tagName)return r.formats.call(this,e)},u.prototype.format=function(e,t){var n=this;e!==this.statics.blotName||t?r.prototype.format.call(this,e,t):(this.children.forEach((function(e){e instanceof s.default||(e=e.wrap(u.blotName,!0)),n.attributes.copy(e)})),this.unwrap())},u.prototype.formatAt=function(e,t,n,i){null!=this.formats()[n]||a.query(n,a.Scope.ATTRIBUTE)?this.isolate(e,t).format(n,i):r.prototype.formatAt.call(this,e,t,n,i)},u.prototype.optimize=function(e){r.prototype.optimize.call(this,e);var t=this.formats();if(0===Object.keys(t).length)return this.unwrap();var n=this.next;n instanceof u&&n.prev===this&&function(e,t){if(Object.keys(e).length===Object.keys(t).length){for(var n in e)if(e[n]!==t[n])return;return 1}}(t,n.formats())&&(n.moveChildren(this),n.remove())},u.blotName="inline",u.scope=a.Scope.INLINE_BLOT,u.tagName="SPAN",u);function u(){return null!==r&&r.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(18),a=n(1),l=(o(u,r=s.default),u.formats=function(e){var t=a.query(u.blotName).tagName;if(e.tagName!==t)return r.formats.call(this,e)},u.prototype.format=function(e,t){null!=a.query(e,a.Scope.BLOCK)&&(e!==this.statics.blotName||t?r.prototype.format.call(this,e,t):this.replaceWith(u.blotName))},u.prototype.formatAt=function(e,t,n,i){null!=a.query(n,a.Scope.BLOCK)?this.format(n,i):r.prototype.formatAt.call(this,e,t,n,i)},u.prototype.insertAt=function(e,t,n){if(null==n||null!=a.query(t,a.Scope.INLINE))r.prototype.insertAt.call(this,e,t,n);else{var i=this.split(e),o=a.create(t,n);i.parent.insertBefore(o,i)}},u.prototype.update=function(e,t){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,e,t)},u.blotName="block",u.scope=a.Scope.BLOCK_BLOT,u.tagName="P",u);function u(){return null!==r&&r.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(19),a=(o(l,r=s.default),l.formats=function(e){},l.prototype.format=function(e,t){r.prototype.formatAt.call(this,0,this.length(),e,t)},l.prototype.formatAt=function(e,t,n,i){0===e&&t===this.length()?this.format(n,i):r.prototype.formatAt.call(this,e,t,n,i)},l.prototype.formats=function(){return this.statics.formats(this.domNode)},l);function l(){return null!==r&&r.apply(this,arguments)||this}t.default=a},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(19),a=n(1),l=(o(u,r=s.default),u.create=function(e){return document.createTextNode(e)},u.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},u.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},u.prototype.index=function(e,t){return this.domNode===e?t:-1},u.prototype.insertAt=function(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):r.prototype.insertAt.call(this,e,t,n)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(e){r.prototype.optimize.call(this,e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},u.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},u.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=a.Scope.INLINE_BLOT,u);function u(e){var t=r.call(this,e)||this;return t.text=t.statics.value(t.domNode),t}t.default=l},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1<arguments.length&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,o=arguments[1],r=0;r<i;r++)if(t=n[r],e.call(o,t,r,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function i(e,t,a){if(e==t)return e?[[0,e]]:[];(a<0||e.length<a)&&(a=null);var u=r(e,t),c=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var d=e.substring(e.length-u),h=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return a=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function o(e,t,n){for(var i,o,a,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!=(c=t.indexOf(u,c+1));){var h=r(e.substring(n),t.substring(c)),p=s(e.substring(0,n),t.substring(0,c));d.length<p+h&&(d=t.substring(c-p,c)+t.substring(c,c+h),i=e.substring(0,n-p),o=e.substring(n+h),a=t.substring(0,c-p),l=t.substring(c+h))}return 2*d.length>=e.length?[i,o,a,l,d]:null}var a,l,u,c,d,h=o(n,i,Math.ceil(n.length/4)),p=o(n,i,Math.ceil(n.length/2));return h||p?(a=!p||h&&h[4].length>p[4].length?h:p,e.length>t.length?(l=a[0],u=a[1],c=a[2],d=a[3]):(c=a[0],d=a[1],l=a[2],u=a[3]),[l,u,c,d,a[4]]):null}(e,t);if(d){var h=d[0],p=d[1],f=d[2],g=d[3],m=d[4],v=i(h,f),y=i(p,g);return v.concat([[0,m]],y)}return function(e,t){for(var i=e.length,r=t.length,s=Math.ceil((i+r)/2),a=s,l=2*s,u=new Array(l),c=new Array(l),d=0;d<l;d++)u[d]=-1,c[d]=-1;u[a+1]=0,c[a+1]=0;for(var h=i-r,p=h%2!=0,f=0,g=0,m=0,v=0,y=0;y<s;y++){for(var b=-y+f;b<=y-g;b+=2){for(var _=a+b,w=(k=b==-y||b!=y&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-b;k<i&&w<r&&e.charAt(k)==t.charAt(w);)k++,w++;if(u[_]=k,i<k)g+=2;else if(r<w)f+=2;else if(p&&0<=(O=a+h-b)&&O<l&&-1!=c[O]&&(S=i-c[O])<=k)return o(e,t,k,w)}for(var C=-y+m;C<=y-v;C+=2){for(var S,O=a+C,x=(S=C==-y||C!=y&&c[O-1]<c[O+1]?c[O+1]:c[O-1]+1)-C;S<i&&x<r&&e.charAt(i-S-1)==t.charAt(r-x-1);)S++,x++;if(c[O]=S,i<S)v+=2;else if(r<x)m+=2;else if(!p&&0<=(_=a+h-C)&&_<l&&-1!=u[_]){var k=u[_];if(w=a+k-_,(S=i-S)<=k)return o(e,t,k,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return c&&h.unshift([0,c]),d&&h.push([0,d]),function e(t){t.push([0,""]);for(var i,o=0,a=0,l=0,u="",c="";o<t.length;)switch(t[o][0]){case 1:l++,c+=t[o][1],o++;break;case n:a++,u+=t[o][1],o++;break;case 0:1<a+l?(0!==a&&0!==l&&(0!==(i=r(c,u))&&(0<o-a-l&&0==t[o-a-l-1][0]?t[o-a-l-1][1]+=c.substring(0,i):(t.splice(0,0,[0,c.substring(0,i)]),o++),c=c.substring(i),u=u.substring(i)),0!==(i=s(c,u))&&(t[o][1]=c.substring(c.length-i)+t[o][1],c=c.substring(0,c.length-i),u=u.substring(0,u.length-i))),0===a?t.splice(o-l,a+l,[1,c]):0===l?t.splice(o-a,a+l,[n,u]):t.splice(o-a-l,a+l,[n,u],[1,c]),o=o-a-l+(a?1:0)+(l?1:0)+1):0!==o&&0==t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,a=l=0,c=u=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(o=1;o<t.length-1;)0==t[o-1][0]&&0==t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),d=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),d=!0)),o++;d&&e(t)}(h),null!=a&&(h=function(e,t){var i=function(e,t){if(0===t)return[0,e];for(var i=0,o=0;o<e.length;o++){var r=e[o];if(r[0]===n||0===r[0]){var s=i+r[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var a=t-i,l=[r[0],r[1].slice(0,a)],u=[r[0],r[1].slice(a)];return e.splice(o,1,l,u),[o+1,e]}i=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=i[1],r=i[0],s=o[r],a=o[r+1];if(null==s)return e;if(0!==s[0])return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return o.splice(r,2,a,s),l(o,r,2);if(null==a||0!==a[1].indexOf(s[1]))return e;o.splice(r,2,[a[0],s[1]],[0,s[1]]);var u=a[1].slice(s[1].length);return 0<u.length&&o.splice(r+2,0,[a[0],u]),l(o,r,3)}(h,a)),function(e){function t(e){return 56320<=e.charCodeAt(0)&&e.charCodeAt(0)<=57343}for(var i=!1,o=2;o<e.length;o+=1)0===e[o-2][0]&&55296<=(r=e[o-2][1]).charCodeAt(r.length-1)&&r.charCodeAt(r.length-1)<=56319&&e[o-1][0]===n&&t(e[o-1][1])&&1===e[o][0]&&t(e[o][1])&&(i=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));var r;if(!i)return e;var s=[];for(o=0;o<e.length;o+=1)0<e[o][1].length&&s.push(e[o]);return s}(h)}function o(e,t,n,o){var r=e.substring(0,n),s=t.substring(0,o),a=e.substring(n),l=t.substring(o),u=i(r,s),c=i(a,l);return u.concat(c)}function r(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(r,o)==t.substring(r,o)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(e.length-o,e.length-r)==t.substring(t.length-o,t.length-r)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}var a=i;function l(e,t,n){for(var i=t+n-1;0<=i&&t-1<=i;i--)if(i+1<e.length){var o=e[i],r=e[i+1];o[0]===r[1]&&e.splice(i,2,[o[0],o[1]+r[1]])}return e}a.INSERT=1,a.DELETE=n,a.EQUAL=0,e.exports=a},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?i:o).supported=i,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e,t){var n=i?i+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var r=0,s=o.length,a=new Array(s);r<s;r++)a[r]=o[r].fn;return a},s.prototype.emit=function(e,t,n,o,r,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,r),!0;case 6:return c.fn.call(c.context,t,n,o,r,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){var o=new r(t,n||this),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},s.prototype.once=function(e,t,n){var o=new r(t,n||this,!0),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,r){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[s]);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[s]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new o:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=b(n(3)),a=b(n(2)),l=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),h=n(36),p=n(37),f=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,c.default)("quill:clipboard"),C="__ql-matcher",S=[[Node.TEXT_NODE,j],[Node.TEXT_NODE,A],["br",function(e,t){return D(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,function(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===L(e).fontStyle&&(n.italic=!0),i.fontWeight&&(L(e).fontWeight.startsWith("bold")||700<=parseInt(L(e).fontWeight))&&(n.bold=!0),0<Object.keys(n).length&&(t=N(t,n)),0<parseFloat(i.textIndent||0)&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!D(t,"\n"))return t;for(var i=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(i+=1),o=o.parentNode;return i<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new a.default}]],O=[h.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),x=[h.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(E,d.default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(E,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[f.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,_({},f.default.blotName,t[f.default.blotName]))}var i=this.prepareMatching(),r=o(i,2),s=r[0],l=r[1],u=function e(t,n,i){return t.nodeType===t.TEXT_NODE?i.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(o,r){var s=e(r,n,i);return r.nodeType===t.ELEMENT_NODE&&(s=n.reduce((function(e,t){return t(r,e)}),s),s=(r[C]||[]).reduce((function(e,t){return t(r,e)}),s)),o.concat(s)}),new a.default):new a.default}(this.container,s,l);return D(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t,n){var i=2<arguments.length&&void 0!==n?n:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(o),i),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,u.default.sources.USER),t.quill.setSelection(i.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var r=o(i,2),s=r[0],a=r[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[C]=e[C]||[],e[C].push(a)}))}})),[t,n]}}]),E);function E(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,e,t));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],S.concat(n.options.matchers).forEach((function(e){var i=o(e,2),r=i[0],s=i[1];!t.matchVisual&&s===R||n.addMatcher(r,s)})),n}function N(e,t,n){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return N(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},_({},t,n),i.attributes))}),new a.default)}function L(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function D(e,t){for(var n="",i=e.ops.length-1;0<=i&&n.length<t.length;--i){var o=e.ops[i];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function M(e){if(0!==e.childNodes.length){var t=L(e);return-1<["block","list-item"].indexOf(t.display)}}function T(e,t,n){return N(n,e,!0)}function I(e,t){var n=l.default.Attributor.Attribute.keys(e),i=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),r={};return n.concat(i).concat(o).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(r[n.attrName]=n.value(e),r[n.attrName])||(null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(r[n.attrName]=n.value(e)||void 0),null==(n=x[t])||n.attrName!==t&&n.keyName!==t||(n=x[t],r[n.attrName]=n.value(e)||void 0))})),0<Object.keys(r).length&&(t=N(t,r)),t}function P(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var i={},o=n.value(e);null!=o&&(i[n.blotName]=o,t=(new a.default).insert(i,n.formats(e)))}else"function"==typeof n.formats&&(t=N(t,n.blotName,n.formats(e)));return t}function A(e,t){return D(t,"\n")||(M(e)||0<t.length()&&e.nextSibling&&M(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(M(e)&&null!=e.nextElementSibling&&!D(t,"\n\n")){var n=e.offsetHeight+parseFloat(L(e).marginTop)+parseFloat(L(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function j(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!L(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&M(e.parentNode)||null!=e.previousSibling&&M(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&M(e.parentNode)||null!=e.nextSibling&&M(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}k.DEFAULTS={matchers:[],matchVisual:!0},t.default=k,t.matchAttributor=I,t.matchBlot=P,t.matchNewline=A,t.matchSpacing=R,t.matchText=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=n(6))&&r.__esModule?r:{default:r}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"optimize",value:function(e){o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=c(n(2)),s=c(n(0)),a=c(n(5)),l=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=(0,l.default)("quill:toolbar"),p=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,u.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(f,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);if(null==s.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];l=!u.hasAttribute("selected")&&u.value||!1}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c,d,h,p=t.quill.selection.getRange(),f=i(p,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new r.default).retain(f.index).delete(f.length).insert((h=l,(d=n)in(c={})?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h,c)),a.default.sources.USER)}else t.quill.format(n,l,a.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=i(n,2),r=o[0],s=o[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[r])a=s.querySelector("option[selected]");else if(!Array.isArray(t[r])){var l=t[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var u=t[r]===s.getAttribute("value")||null!=t[r]&&t[r].toString()===s.getAttribute("value")||null==t[r]&&!s.getAttribute("value");s.classList.toggle("ql-active",u)}else s.classList.toggle("ql-active",null!=t[r])}))}}]),f);function f(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var n,o=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,t));if(Array.isArray(o.options.container)){var r=document.createElement("div");m(r,o.options.container),e.container.parentNode.insertBefore(r,e.container),o.container=r}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=i(e,1)[0];o.update(t)})),o):(n=h.error("Container required for toolbar",o.options),d(o,n))}function g(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)g(n,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?(o=n,r=t,s=i,(a=document.createElement("select")).classList.add("ql-"+r),s.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),a.appendChild(t)})),o.appendChild(a)):g(n,t,i)}var o,r,s,a})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",i+o,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=n(28))&&r.__esModule?r:{default:r}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"buildItem",value:function(e){var t=o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,e);return t.style.backgroundColor=e.getAttribute("value")||"",t}},{key:"selectItem",value:function(e,t){o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,e,t);var n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=i:n.style.fill=i)}}]),a);function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return n.label.innerHTML=t,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),n}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((o=n(28))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(s,[{key:"selectItem",value:function(e,t){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0})(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,e,t),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),s);function s(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=t[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}t.default=r},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(e,t,n){t&&i(e.prototype,t)}(r,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),r=0;if(o.right>i.right&&(r=i.right-o.right,this.root.style.left=t+r+"px"),o.left<i.left&&(r=i.left-o.left,this.root.style.left=t+r+"px"),o.bottom>i.bottom){var s=o.bottom-o.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),r);function r(e,t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}t.default=o},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:i(r,t,n)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=p(n(3)),a=p(n(8)),l=n(43),u=p(l),c=p(n(27)),d=n(15),h=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=(m(b,u.default),o(b,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new _(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),b);function b(e,t){f(this,b),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=v);var n=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e,t));return n.quill.container.classList.add("ql-snow"),n}y.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var _=(m(w,l.BaseTooltip),o(w,[{key:"listen",value:function(){var e=this;i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===a.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.quill.scroll.descendant(c.default,t.index),2),r=o[0],s=o[1];if(null!=r){e.linkRange=new d.Range(t.index-s,r.length());var l=c.default.formats(r.domNode);return e.preview.textContent=l,e.preview.setAttribute("href",l),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),w);function w(e,t){f(this,w);var n=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,e,t));return n.preview=n.root.querySelector("a.ql-preview"),n}_.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=A(n(29)),o=n(36),r=n(38),s=n(64),a=A(n(65)),l=A(n(66)),u=n(67),c=A(u),d=n(37),h=n(26),p=n(39),f=n(40),g=A(n(56)),m=A(n(68)),v=A(n(27)),y=A(n(69)),b=A(n(70)),_=A(n(71)),w=A(n(72)),C=A(n(73)),S=n(13),O=A(S),x=A(n(74)),k=A(n(75)),E=A(n(57)),N=A(n(41)),L=A(n(28)),D=A(n(59)),M=A(n(60)),T=A(n(61)),I=A(n(108)),P=A(n(62));function A(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":f.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":f.SizeClass,"formats/blockquote":a.default,"formats/code-block":O.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":S.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":C.default,"formats/list/item":u.ListItem,"modules/formula":x.default,"modules/syntax":k.default,"modules/toolbar":E.default,"themes/bubble":I.default,"themes/snow":P.default,"ui/icons":N.default,"ui/picker":L.default,"ui/icon-picker":M.default,"ui/color-picker":D.default,"ui/tooltip":T.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=(r=n(0))&&r.__esModule?r:{default:r};function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}var l=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,s.default.Attributor.Class),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"add",value:function(e,t){if("+1"===t||"-1"===t){var n=this.value(e)||0;t="+1"===t?n+1:n-1}return 0===t?(this.remove(e),!0):o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,e,t)}},{key:"canAdd",value:function(e,t){return o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,e,t)||o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,e,parseInt(t))}},{key:"value",value:function(e){return parseInt(o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,e))||void 0}}]),a)("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,((i=n(4))&&i.__esModule?i:{default:i}).default),r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((o=n(4))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(s,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}r.blotName="header",r.tagName=["H1","H2","H3","H4","H5","H6"],t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:r(o,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var s=u(n(0)),a=u(n(4)),l=u(n(25));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=(h(f,a.default),i(f,[{key:"format",value:function(e,t){e!==g.blotName||t?r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,t):this.replaceWith(s.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,t){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,t),this):(this.parent.unwrap(),r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,e,t))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,e)}}]),f);function f(){return c(this,f),d(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}p.blotName="list-item",p.tagName="LI";var g=(h(m,l.default),i(m,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=r(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(m,[{key:"format",value:function(e,t){0<this.children.length&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,t){if(e instanceof p)r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var t=s.default.create(this.statics.defaultChild);e.moveChildren(t),this.appendChild(t)}r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replace",this).call(this,e)}}]),m);function m(e){function t(t){if(t.target.parentNode===e){var i=n.statics.formats(e),o=s.default.find(t.target);"checked"===i?o.format("list","unchecked"):"unchecked"===i&&o.format("list","checked")}}c(this,m);var n=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,e));return e.addEventListener("touchstart",t),e.addEventListener("mousedown",t),n}g.blotName="list",g.scope=s.default.Scope.BLOCK_BLOT,g.tagName=["OL","UL"],g.defaultChild="list-item",g.allowedChildren=[p],t.ListItem=p,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,((i=n(56))&&i.__esModule?i:{default:i}).default),r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o,r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((o=n(6))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(s,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}r.blotName="script",r.tagName=["SUB","SUP"],t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,((i=n(6))&&i.__esModule?i:{default:i}).default),r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}o.blotName="strike",o.tagName="S",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,((i=n(6))&&i.__esModule?i:{default:i}).default),r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}o.blotName="underline",o.tagName="U",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=(r=n(0))&&r.__esModule?r:{default:r},a=n(27),l=["alt","height","width"],u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,s.default.Embed),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(c,[{key:"format",value:function(e,t){-1<l.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:o(r,t,n)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(n):void 0}var r,s=n(4),a=(r=n(27))&&r.__esModule?r:{default:r},l=["height","width"],u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,s.BlockEmbed),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(c,[{key:"format",value:function(e,t){-1<l.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(n(35)),s=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(d(p,r.default),i(p,null,[{key:"create",value:function(e){var t=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),p);function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var f=(d(g,a.default),i(g,null,[{key:"register",value:function(){s.default.register(h,!0)}}]),g);function g(){u(this,g);var e=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}t.FormulaBlot=h,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(n(0)),s=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(d(p,l(n(13)).default),i(p,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((0<t.trim().length||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),p);function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.className="ql-syntax";var f=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),g=(d(m,a.default),i(m,null,[{key:"register",value:function(){s.default.register(f,!0),s.default.register(h,!0)}}]),i(m,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=t&&this.quill.setSelection(t,s.default.sources.SILENT)}}}]),m);function m(e,t){u(this,m);var n=c(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,e,t));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){n.highlight(),i=null}),n.options.interval)})),n.highlight(),n}g.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=f,t.default=g},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";function i(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:i(r,t,n)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=h(n(3)),a=h(n(8)),l=n(43),u=h(l),c=n(15),d=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=(g(y,u.default),o(y,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default)}}]),y);function y(e,t){p(this,y),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=m);var n=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e,t));return n.quill.container.classList.add("ql-bubble"),n}v.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=(g(_,l.BaseTooltip),o(_,[{key:"listen",value:function(){var e=this;i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var t=i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,e),n=this.root.querySelector(".ql-tooltip-arrow");if(n.style.marginLeft="",0===t)return t;n.style.marginLeft=-1*t-n.offsetWidth/2+"px"}}]),_);function _(e,t){p(this,_);var n=f(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,e,t));return n.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,i,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&0<t.length&&o===a.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var r=n.quill.getLines(t.index,t.length);if(1===r.length)n.position(n.quill.getBounds(t));else{var s=r[r.length-1],l=n.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=n.quill.getBounds(new c.Range(l,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=v},function(e,t,n){e.exports=n(63)}],e.c=i,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=109).default;function e(t){if(i[t])return i[t].exports;var o=i[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n,i},e.exports=n()}).call(this,n(1110).Buffer)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(46),n(980)},,,function(e,t,n){"use strict";var i=n(0),o=n.n(i),r=n(13),s=n(16),a=n.n(s),l=n(34),u=n.n(l),c=n(54),d=n.n(c),h=n(22),p=n.n(h),f=n(37),g=n.n(f),m=n(19),v=n.n(m),y=n(24),b=n.n(y),_=n(1),w=n.n(_),C=n(12),S=n.n(C),O=n(106),x=n.n(O),k=n(25);function E(e,t){for(var n=function(e){var t=[];return o.a.Children.forEach(e,(function(e){e&&t.push(e)})),t}(e),i=0;i<n.length;i++)if(n[i].key===t)return i;return-1}function N(e,t){e.transform=t,e.webkitTransform=t,e.mozTransform=t}function L(e){return("transform"in e||"webkitTransform"in e||"MozTransform"in e)&&window.atob}function D(e){return"left"===e||"right"===e}function M(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function T(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})}function I(e,t){return+e.getPropertyValue(t).replace("px","")}function P(e,t,n,i,o){var r=M(o,"padding-"+e);if(!i||!i.parentNode)return r;var s=i.parentNode.childNodes;return Array.prototype.some.call(s,(function(o){var s=window.getComputedStyle(o);return o!==i?(r+=I(s,"margin-"+e),r+=o[t],r+=I(s,"margin-"+n),"content-box"===s.boxSizing&&(r+=I(s,"border-"+e+"-width")+I(s,"border-"+n+"-width")),!1):(r+=I(s,"margin-"+e),!0)})),r}var A,R=n(23),j=n(169),F=n.n(j)()({}),B=F.Provider,W=F.Consumer,V={width:0,height:0,overflow:"hidden",position:"absolute"},z=(A=o.a.Component,b()(H,A),g()(H,[{key:"render",value:function(){var e=this.props.setRef;return o.a.createElement("div",{tabIndex:0,ref:e,style:V,onKeyDown:this.onKeyDown,role:"presentation"})}}]),H);function H(){var e,t,n,i;p()(this,H);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return(t=n=v()(this,(e=H.__proto__||Object.getPrototypeOf(H)).call.apply(e,[this].concat(r)))).onKeyDown=function(e){var t=e.target,i=e.which,o=e.shiftKey,r=n.props,s=r.nextElement,a=r.prevElement;i===R.a.TAB&&document.activeElement===t&&(!o&&s&&s.focus(),o&&a&&a.focus())},i=t,v()(n,i)}z.propTypes={setRef:w.a.func,prevElement:w.a.object,nextElement:w.a.object};var q,U=z,K=(q=o.a.Component,b()(G,q),g()(G,[{key:"render",value:function(){var e,t=this.props,n=t.id,i=t.className,r=t.destroyInactiveTabPane,s=t.active,l=t.forceRender,c=t.rootPrefixCls,h=t.style,p=t.children,f=t.placeholder,g=d()(t,["id","className","destroyInactiveTabPane","active","forceRender","rootPrefixCls","style","children","placeholder"]);this._isActived=this._isActived||s;var m=c+"-tabpane",v=S()((e={},u()(e,m,1),u()(e,m+"-inactive",!s),u()(e,m+"-active",s),u()(e,i,i),e)),y=(r?s:this._isActived)||l;return o.a.createElement(W,null,(function(e){var t=e.sentinelStart,i=e.sentinelEnd,r=e.setPanelSentinelStart,l=e.setPanelSentinelEnd,u=void 0,c=void 0;return s&&y&&(u=o.a.createElement(U,{setRef:r,prevElement:t}),c=o.a.createElement(U,{setRef:l,nextElement:i})),o.a.createElement("div",a()({style:h,role:"tabpanel","aria-hidden":s?"false":"true",className:v,id:n},T(g)),u,y?p:f,c)}))}}]),G);function G(){return p()(this,G),v()(this,(G.__proto__||Object.getPrototypeOf(G)).apply(this,arguments))}var Y=K;function Z(e){var t=void 0;return o.a.Children.forEach(e.children,(function(e){!e||t||e.props.disabled||(t=e.key)})),t}K.propTypes={className:w.a.string,active:w.a.bool,style:w.a.any,destroyInactiveTabPane:w.a.bool,forceRender:w.a.bool,placeholder:w.a.node,rootPrefixCls:w.a.string,children:w.a.node,id:w.a.string},K.defaultProps={placeholder:null};var X,$=(X=o.a.Component,b()(J,X),g()(J,[{key:"componentWillUnmount",value:function(){this.destroy=!0,x.a.cancel(this.sentinelId)}},{key:"updateSentinelContext",value:function(){var e=this;this.destroy||(x.a.cancel(this.sentinelId),this.sentinelId=x()((function(){e.destroy||e.forceUpdate()})))}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.navWrapper,r=t.tabBarPosition,s=t.className,l=t.renderTabContent,c=t.renderTabBar,h=t.destroyInactiveTabPane,p=t.direction,f=d()(t,["prefixCls","navWrapper","tabBarPosition","className","renderTabContent","renderTabBar","destroyInactiveTabPane","direction"]),g=S()((e={},u()(e,n,1),u()(e,n+"-"+r,1),u()(e,s,!!s),u()(e,n+"-rtl","rtl"===p),e));this.tabBar=c();var m=o.a.cloneElement(this.tabBar,{prefixCls:n,navWrapper:i,key:"tabBar",onKeyDown:this.onNavKeyDown,tabBarPosition:r,onTabClick:this.onTabClick,panels:t.children,activeKey:this.state.activeKey,direction:this.props.direction}),v=o.a.cloneElement(l(),{prefixCls:n,tabBarPosition:r,activeKey:this.state.activeKey,destroyInactiveTabPane:h,children:t.children,onChange:this.setActiveKey,key:"tabContent",direction:this.props.direction}),y=o.a.createElement(U,{key:"sentinelStart",setRef:this.setSentinelStart,nextElement:this.panelSentinelStart}),b=o.a.createElement(U,{key:"sentinelEnd",setRef:this.setSentinelEnd,prevElement:this.panelSentinelEnd}),_=[];return"bottom"===r?_.push(y,v,b,m):_.push(m,y,v,b),o.a.createElement(B,{value:{sentinelStart:this.sentinelStart,sentinelEnd:this.sentinelEnd,setPanelSentinelStart:this.setPanelSentinelStart,setPanelSentinelEnd:this.setPanelSentinelEnd}},o.a.createElement("div",a()({className:g,style:t.style},T(f),{onScroll:this.onScroll}),_))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i,r={};return"activeKey"in e?r.activeKey=e.activeKey:(n=e,i=t.activeKey,0<=o.a.Children.map(n.children,(function(e){return e&&e.key})).indexOf(i)||(r.activeKey=Z(e))),0<Object.keys(r).length?r:null}}]),J);function J(e){p()(this,J);var t=v()(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,e));Q.call(t);var n;return n="activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:Z(e),t.state={activeKey:n},t}var Q=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(39===n||40===n){t.preventDefault();var i=e.getNextActiveKey(!0);e.onTabClick(i)}else if(37===n||38===n){t.preventDefault();var o=e.getNextActiveKey(!1);e.onTabClick(o)}},this.onScroll=function(e){var t=e.target;t===e.currentTarget&&0<t.scrollLeft&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,i=[];o.a.Children.forEach(e.props.children,(function(e){e&&!e.props.disabled&&(t?i.push(e):i.unshift(e))}));var r=i.length,s=r&&i[0].key;return i.forEach((function(e,t){e.key===n&&(s=t===r-1?i[0].key:i[t+1].key)})),s}};$.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},$.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:function(){},navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},$.TabPane=Y,Object(k.polyfill)($);var ee,te=$,ne=(ee=o.a.Component,b()(ie,ee),g()(ie,[{key:"getTabPanes",value:function(){var e=this.props,t=e.activeKey,n=e.children,i=[];return o.a.Children.forEach(n,(function(n){if(n){var r=n.key,s=t===r;i.push(o.a.cloneElement(n,{active:s,destroyInactiveTabPane:e.destroyInactiveTabPane,rootPrefixCls:e.prefixCls}))}})),i}},{key:"render",value:function(){var e,t,n,i,r=this.props,s=r.prefixCls,l=r.children,c=r.activeKey,d=r.className,h=r.tabBarPosition,p=r.animated,f=r.animatedWithMargin,g=r.direction,m=r.style,v=S()((e={},u()(e,s+"-content",!0),u()(e,p?s+"-content-animated":s+"-content-no-animated",!0),e),d);if(p){var y=E(l,c);if(-1!==y){var b=f?(n=y,i=D(h)?"marginTop":"marginLeft",u()({},i,100*-n+"%")):{transform:t=function(e,t,n){var i=D(t)?"translateY":"translateX";return D(t)||"rtl"!==(2<arguments.length&&void 0!==n?n:"ltr")?i+"("+100*-e+"%) translateZ(0)":i+"("+100*e+"%) translateZ(0)"}(y,h,g),WebkitTransform:t,MozTransform:t};m=a()({},m,b)}else m=a()({},m,{display:"none"})}return o.a.createElement("div",{className:v,style:m},this.getTabPanes())}}]),ie);function ie(){return p()(this,ie),v()(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}var oe=ne;ne.propTypes={animated:w.a.bool,animatedWithMargin:w.a.bool,prefixCls:w.a.string,children:w.a.node,activeKey:w.a.string,style:w.a.any,tabBarPosition:w.a.string,className:w.a.string,destroyInactiveTabPane:w.a.bool,direction:w.a.string},ne.defaultProps={animated:!0};var re=te,se=n(33);function ae(e,t){var n=e.props,i=n.styles,o=n.panels,r=n.activeKey,s=n.direction,a=e.props.getRef("root"),l=e.props.getRef("nav")||a,u=e.props.getRef("inkBar"),c=e.props.getRef("activeTab"),d=u.style,h=e.props.tabBarPosition,p=E(o,r);if(t&&(d.display="none"),c){var f=c,g=L(d);if(N(d,""),d.width="",d.height="",d.left="",d.top="",d.bottom="",d.right="","top"===h||"bottom"===h){var m=P("left","offsetWidth","right",f,l),v=f.offsetWidth;v===a.offsetWidth?v=0:i.inkBar&&void 0!==i.inkBar.width&&(v=parseFloat(i.inkBar.width,10))&&(m+=(f.offsetWidth-v)/2),"rtl"===s&&(m=M(f,"margin-left")-m),g?N(d,"translate3d("+m+"px,0,0)"):d.left=m+"px",d.width=v+"px"}else{var y=P("top","offsetHeight","bottom",f,l),b=f.offsetHeight;i.inkBar&&void 0!==i.inkBar.height&&(b=parseFloat(i.inkBar.height,10))&&(y+=(f.offsetHeight-b)/2),g?(N(d,"translate3d(0,"+y+"px,0)"),d.top="0"):d.top=y+"px",d.height=b+"px"}}d.display=-1!==p?"block":"none"}var le,ue=(le=o.a.Component,b()(ce,le),g()(ce,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout((function(){ae(e,!0)}),0)}},{key:"componentDidUpdate",value:function(){ae(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.styles,r=t.inkBarAnimated,s=n+"-ink-bar",a=S()((e={},u()(e,s,!0),u()(e,r?s+"-animated":s+"-no-animated",!0),e));return o.a.createElement("div",{style:i.inkBar,className:a,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),ce);function ce(){return p()(this,ce),v()(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}var de=ue;ue.propTypes={prefixCls:w.a.string,styles:w.a.object,inkBarAnimated:w.a.bool,saveRef:w.a.func,direction:w.a.string},ue.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}};var he,pe=n(133),fe=n.n(pe),ge=(he=o.a.Component,b()(me,he),g()(me,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,i=t.activeKey,r=t.prefixCls,s=t.tabBarGutter,l=t.saveRef,c=t.tabBarPosition,d=t.renderTabBarNode,h=t.direction,p=[];return o.a.Children.forEach(n,(function(t,f){if(t){var g=t.key,m=i===g?r+"-tab-active":"";m+=" "+r+"-tab";var v={};t.props.disabled?m+=" "+r+"-tab-disabled":v={onClick:e.props.onTabClick.bind(e,g)};var y={};i===g&&(y.ref=l("activeTab"));var b=s&&f===n.length-1?0:s,_="rtl"===h?"marginLeft":"marginRight",w=u()({},D(c)?"marginBottom":_,b);fe()("tab"in t.props,"There must be `tab` property on children of Tabs.");var C=o.a.createElement("div",a()({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":i===g?"true":"false"},v,{className:m,key:g,style:w},y),t.props.tab);d&&(C=d(C)),p.push(C)}})),o.a.createElement("div",{ref:l("navTabsContainer")},p)}}]),me);function me(){return p()(this,me),v()(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}var ve=ge;ge.propTypes={activeKey:w.a.string,panels:w.a.node,prefixCls:w.a.string,tabBarGutter:w.a.number,onTabClick:w.a.func,saveRef:w.a.func,renderTabBarNode:w.a.func,tabBarPosition:w.a.string,direction:w.a.string},ge.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}};var ye,be=(ye=o.a.Component,b()(_e,ye),g()(_e,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,r=e.className,s=e.extraContent,l=e.style,c=e.tabBarPosition,h=e.children,p=d()(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),f=S()(t+"-bar",u()({},r,!!r)),g="top"===c||"bottom"===c,m=g?{float:"right"}:{},v=s&&s.props?s.props.style:{},y=h;return s&&(y=[Object(i.cloneElement)(s,{key:"extra",style:a()({},m,v)}),Object(i.cloneElement)(h,{key:"content"})],y=g?y:y.reverse()),o.a.createElement("div",a()({role:"tablist",className:f,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:l},T(p)),y)}}]),_e);function _e(){return p()(this,_e),v()(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}var we=be;be.propTypes={prefixCls:w.a.string,className:w.a.string,style:w.a.object,tabBarPosition:w.a.oneOf(["left","right","top","bottom"]),children:w.a.node,extraContent:w.a.node,onKeyDown:w.a.func,saveRef:w.a.func},be.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}};var Ce,Se=n(193),Oe=n.n(Se),xe=n(274),ke=(Ce=o.a.Component,b()(Ee,Ce),g()(Ee,[{key:"componentDidMount",value:function(){var e=this;this.componentDidUpdate(),this.debouncedResize=Oe()((function(){e.setNextPrev(),e.scrollToActiveTab()}),200),this.resizeObserver=new xe.default(this.debouncedResize),this.resizeObserver.observe(this.props.getRef("container"))}},{key:"componentDidUpdate",value:function(e){var t=this.props;if(e&&e.tabBarPosition!==t.tabBarPosition)this.setOffset(0);else{var n=this.setNextPrev();this.isNextPrevShown(this.state)!==this.isNextPrevShown(n)?this.setState({},this.scrollToActiveTab):e&&t.activeKey===e.activeKey||this.scrollToActiveTab()}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.debouncedResize&&this.debouncedResize.cancel&&this.debouncedResize.cancel()}},{key:"setNextPrev",value:function(){var e=this.props.getRef("nav"),t=this.props.getRef("navTabsContainer"),n=this.getScrollWH(t||e),i=this.getOffsetWH(this.props.getRef("container"))+1,o=this.getOffsetWH(this.props.getRef("navWrap")),r=this.offset,s=i-n,a=this.state,l=a.next,u=a.prev;if(0<=s)l=!1,this.setOffset(0,!1),r=0;else if(s<r)l=!0;else{l=!1;var c=o-n;this.setOffset(c,!1),r=c}return u=r<0,this.setNext(l),this.setPrev(u),{next:l,prev:u}}},{key:"getOffsetWH",value:function(e){var t=this.props.tabBarPosition,n="offsetWidth";return"left"!==t&&"right"!==t||(n="offsetHeight"),e[n]}},{key:"getScrollWH",value:function(e){var t=this.props.tabBarPosition,n="scrollWidth";return"left"!==t&&"right"!==t||(n="scrollHeight"),e[n]}},{key:"getOffsetLT",value:function(e){var t=this.props.tabBarPosition,n="left";return"left"!==t&&"right"!==t||(n="top"),e.getBoundingClientRect()[n]}},{key:"setOffset",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t,i=Math.min(0,e);if(this.offset!==i){this.offset=i;var o={},r=this.props.tabBarPosition,s=this.props.getRef("nav").style,a=L(s);o="left"===r||"right"===r?a?{value:"translate3d(0,"+i+"px,0)"}:{name:"top",value:i+"px"}:a?("rtl"===this.props.direction&&(i=-i),{value:"translate3d("+i+"px,0,0)"}):{name:"left",value:i+"px"},a?N(s,o.value):s[o.name]=o.value,n&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,i,r=this.state,s=r.next,a=r.prev,l=this.props,c=l.prefixCls,d=l.scrollAnimated,h=l.navWrapper,p=l.prevIcon,f=l.nextIcon,g=a||s,m=o.a.createElement("span",{onClick:a?this.prev:null,unselectable:"unselectable",className:S()((e={},u()(e,c+"-tab-prev",1),u()(e,c+"-tab-btn-disabled",!a),u()(e,c+"-tab-arrow-show",g),e)),onTransitionEnd:this.prevTransitionEnd},p||o.a.createElement("span",{className:c+"-tab-prev-icon"})),v=o.a.createElement("span",{onClick:s?this.next:null,unselectable:"unselectable",className:S()((t={},u()(t,c+"-tab-next",1),u()(t,c+"-tab-btn-disabled",!s),u()(t,c+"-tab-arrow-show",g),t))},f||o.a.createElement("span",{className:c+"-tab-next-icon"})),y=c+"-nav",b=S()((n={},u()(n,y,!0),u()(n,d?y+"-animated":y+"-no-animated",!0),n));return o.a.createElement("div",{className:S()((i={},u()(i,c+"-nav-container",1),u()(i,c+"-nav-container-scrolling",g),i)),key:"container",ref:this.props.saveRef("container")},m,v,o.a.createElement("div",{className:c+"-nav-wrap",ref:this.props.saveRef("navWrap")},o.a.createElement("div",{className:c+"-nav-scroll"},o.a.createElement("div",{className:b,ref:this.props.saveRef("nav")},h(this.props.children)))))}}]),Ee);function Ee(e){p()(this,Ee);var t=v()(this,(Ee.__proto__||Object.getPrototypeOf(Ee)).call(this,e));return t.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var n=t.props.getRef("container");t.scrollToActiveTab({target:n,currentTarget:n})}},t.scrollToActiveTab=function(e){var n=t.props.getRef("activeTab"),i=t.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&n){var o=t.isNextPrevShown()&&t.lastNextPrevShown;if(t.lastNextPrevShown=t.isNextPrevShown(),o){var r=t.getScrollWH(n),s=t.getOffsetWH(i),a=t.offset,l=t.getOffsetLT(i),u=t.getOffsetLT(n);u<l?(a+=l-u,t.setOffset(a)):l+s<u+r&&(a-=u+r-(l+s),t.setOffset(a))}}},t.prev=function(e){t.props.onPrevClick(e);var n=t.props.getRef("navWrap"),i=t.getOffsetWH(n),o=t.offset;t.setOffset(o+i)},t.next=function(e){t.props.onNextClick(e);var n=t.props.getRef("navWrap"),i=t.getOffsetWH(n),o=t.offset;t.setOffset(o-i)},t.offset=0,t.state={next:!1,prev:!1},t}var Ne=ke;ke.propTypes={activeKey:w.a.string,getRef:w.a.func.isRequired,saveRef:w.a.func.isRequired,tabBarPosition:w.a.oneOf(["left","right","top","bottom"]),prefixCls:w.a.string,scrollAnimated:w.a.bool,onPrevClick:w.a.func,onNextClick:w.a.func,navWrapper:w.a.func,children:w.a.node,prevIcon:w.a.node,nextIcon:w.a.node,direction:w.a.node},ke.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}};var Le,De=(Le=o.a.Component,b()(Me,Le),g()(Me,[{key:"render",value:function(){return this.props.children(this.saveRef,this.getRef)}}]),Me);function Me(){var e,t,n,i;p()(this,Me);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return(t=n=v()(this,(e=Me.__proto__||Object.getPrototypeOf(Me)).call.apply(e,[this].concat(r)))).getRef=function(e){return n[e]},n.saveRef=function(e){return function(t){t&&(n[e]=t)}},i=t,v()(n,i)}var Te=De;De.propTypes={children:w.a.func},De.defaultProps={children:function(){return null}};var Ie,Pe=(Ie=o.a.Component,b()(Ae,Ie),g()(Ae,[{key:"render",value:function(){var e=this.props,t=e.children,n=d()(e,["children"]);return o.a.createElement(Te,null,(function(e,i){return o.a.createElement(we,a()({saveRef:e},n),o.a.createElement(Ne,a()({saveRef:e,getRef:i},n),o.a.createElement(ve,a()({saveRef:e,renderTabBarNode:t},n)),o.a.createElement(de,a()({saveRef:e,getRef:i},n))))}))}}]),Ae);function Ae(){return p()(this,Ae),v()(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).apply(this,arguments))}var Re=Pe;Pe.propTypes={children:w.a.func};var je=n(18);function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ze(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qe(e,t){return(qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ue=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ze(this,He(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qe(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){var e,t,n=this.props,o=n.tabBarStyle,r=n.animated,s=n.renderTabBar,a=n.tabBarExtraContent,l=n.tabPosition,u=n.prefixCls,c=n.className,d=n.size,h=n.type,p="object"===We(r)?r.inkBar:r,f="left"===l||"right"===l,g=f?"up":"left",m=f?"down":"right",v=i.createElement("span",{className:"".concat(u,"-tab-prev-icon")},i.createElement(je.a,{type:g,className:"".concat(u,"-tab-prev-icon-target")})),y=i.createElement("span",{className:"".concat(u,"-tab-next-icon")},i.createElement(je.a,{type:m,className:"".concat(u,"-tab-next-icon-target")})),b=S()("".concat(u,"-").concat(l,"-bar"),(Be(e={},"".concat(u,"-").concat(d,"-bar"),!!d),Be(e,"".concat(u,"-card-bar"),h&&0<=h.indexOf("card")),e),c),_=Fe(Fe({},this.props),{children:null,inkBarAnimated:p,extraContent:a,style:o,prevIcon:v,nextIcon:y,className:b});return t=s?s(_,Re):i.createElement(Re,_),i.cloneElement(t)}}])&&Ve(t.prototype,n),e}();Ue.defaultProps={animated:!0,type:"line"};var Ke=n(77),Ge=n(27),Ye=function(e){if("undefined"!=typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1}(["flex","webkitFlex","Flex","msFlex"]);function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qe(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return it}));var nt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},it=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Qe(this,et(e).apply(this,arguments))).removeTab=function(e,n){if(n.stopPropagation(),e){var i=t.props.onEdit;i&&i(e,"remove")}},t.handleChange=function(e){var n=t.props.onChange;n&&n(e)},t.createNewTab=function(e){var n=t.props.onEdit;n&&n(e,"add")},t.renderTabs=function(e){var n,o=e.getPrefixCls,r=t.props,s=r.prefixCls,a=r.className,l=void 0===a?"":a,u=r.size,c=r.type,d=void 0===c?"line":c,h=r.tabPosition,p=r.children,f=r.animated,g=void 0===f||f,m=r.hideAdd,v=t.props.tabBarExtraContent,y="object"===$e(g)?g.tabPane:g;"line"!==d&&(y="animated"in t.props&&y),Object(Ge.a)(!(0<=d.indexOf("card")&&("small"===u||"large"===u)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var b=o("tabs",s),_=S()(l,(Xe(n={},"".concat(b,"-vertical"),"left"===h||"right"===h),Xe(n,"".concat(b,"-").concat(u),!!u),Xe(n,"".concat(b,"-card"),0<=d.indexOf("card")),Xe(n,"".concat(b,"-").concat(d),!0),Xe(n,"".concat(b,"-no-animation"),!y),n)),w=[];"editable-card"===d&&(w=[],i.Children.forEach(p,(function(e,n){if(!i.isValidElement(e))return e;var o=e.props.closable,r=(o=void 0===o||o)?i.createElement(je.a,{type:"close",className:"".concat(b,"-close-x"),onClick:function(n){return t.removeTab(e.key,n)}}):null;w.push(i.cloneElement(e,{tab:i.createElement("div",{className:o?void 0:"".concat(b,"-tab-unclosable")},e.props.tab,r),key:e.key||n}))})),m||(v=i.createElement("span",null,i.createElement(je.a,{type:"plus",className:"".concat(b,"-new-tab"),onClick:t.createNewTab}),v))),v=v?i.createElement("div",{className:"".concat(b,"-extra-content")},v):null;var C=nt(t.props,[]),O=S()("".concat(b,"-").concat(h,"-content"),0<=d.indexOf("card")&&"".concat(b,"-card-content"));return i.createElement(re,Ze({},t.props,{prefixCls:b,className:_,tabBarPosition:h,renderTabBar:function(){return i.createElement(Ue,Ze({},Object(se.default)(C,["className"]),{tabBarExtraContent:v}))},renderTabContent:function(){return i.createElement(oe,{className:O,animated:y,animatedWithMargin:!0})},onChange:t.handleChange}),0<w.length?w:p)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tt(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=r.findDOMNode(this);e&&!Ye&&-1===e.className.indexOf(" no-flex")&&(e.className+=" no-flex")}},{key:"render",value:function(){return i.createElement(Ke.a,null,this.renderTabs)}}])&&Je(t.prototype,n),e}();it.TabPane=Y,it.defaultProps={hideAdd:!1,tabPosition:"top"}},,,,,,,,,function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=0;function o(e,t,n){return function(){function e(e,i,o){var r=null,s=null;if("function"==typeof o.value?(r="value",(s=o.value).length):"function"==typeof o.get&&(r="get",s=o.get),!s)throw new Error("not supported");var a=t+":"+i;o[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(n=this).hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!0,enumerable:!1,writable:!0,value:s.apply(this,e)}),this[a]}}var t="$memoize"+i++,n=void 0;return e.clear=function(){void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(e){0===e.indexOf(t)&&delete n[e]}))},e}()(e,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return s}));var i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",o=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,o=i;n<o.length;n++){var r=o[n];0<=e.indexOf(r)||(t+="\\"+r)}return t+="\\s]+)",new RegExp(t,"g")}();function r(e){var t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function s(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=(0<=o[0].indexOf(" ")?function(e,t,n,i){var o,r=e-1-i;for(t.lastIndex=0;o=t.exec(n);){var s=o.index||0;if(r<s)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}:function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;for(t.lastIndex=s;o=t.exec(n);){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null})(e,t,n,i);return t.lastIndex=0,r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(442),o=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},new r);function r(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s}));var i=(o.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},o);function o(e,t,n){this.offset=0|e,this.type=t,this.language=n}var r=function(e,t){this.tokens=e,this.endState=t},s=function(e,t){this.tokens=e,this.endState=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return E}));var i,o,r=n(459),s=n(484),a=n(446),l=n(439),u=n(479),c=n(761),d=n(449),h=n(440),p=n(466),f=n(454),g=n(598),m=n(886),v=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},b=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},_="editor.action.codeAction",w="editor.action.refactor",C="editor.action.sourceAction",S="editor.action.organizeImports",O="editor.action.fixAll",x=(v(k,o=l.a),k.codeActionsComparator=function(e,t){return Object(r.q)(e.diagnostics)?Object(r.q)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(r.q)(t.diagnostics)?1:0},Object.defineProperty(k.prototype,"hasAutoFix",{get:function(){return this.validActions.some((function(e){return!!e.kind&&m.b.QuickFix.contains(new m.b(e.kind))&&!!e.isPreferred}))},enumerable:!0,configurable:!0}),k);function k(e,t){var n=o.call(this)||this;return n._register(t),n.allActions=Object(r.r)(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(e),k.codeActionsComparator),n.validActions=n.allActions.filter((function(e){return!e.disabled})),n}function E(e,t,n,i){var o,s,u,d=this,h=n.filter||{},p={only:null===(o=h.include)||void 0===o?void 0:o.value,trigger:n.type},g=new c.d(e,i),v=(s=e,u=h,f.a.all(s).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return Object(m.d)(u,new m.b(e))}))}))),_=new l.b,w=v.map((function(n){return y(d,void 0,void 0,(function(){var i,o;return b(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.provideCodeActions(e,t,p,g.token)];case 1:return i=r.sent(),g.token.isCancellationRequested||!i?[2,[]]:(_.add(i),[2,i.actions.filter((function(e){return e&&Object(m.c)(h,e)}))]);case 2:if(o=r.sent(),Object(a.d)(o))throw o;return Object(a.f)(o),[2,[]];case 3:return[2]}}))}))})),C=f.a.onDidChange((function(){var t=f.a.all(e);Object(r.g)(t,v)||g.cancel()}));return Promise.all(w).then(r.m).then((function(e){return new x(e,_)})).finally((function(){C.dispose(),g.dispose()}))}Object(d.j)("_executeCodeActionProvider",(function(e,t){return y(this,void 0,void 0,(function(){var n,i,o,r,l,c;return b(this,(function(d){switch(d.label){case 0:if(n=t.resource,i=t.rangeOrSelection,o=t.kind,!(n instanceof u.a))throw Object(a.b)();if(!(r=e.get(g.a).getModel(n)))throw Object(a.b)();if(!(l=p.a.isISelection(i)?p.a.liftSelection(i):h.a.isIRange(i)?r.validateRange(i):void 0))throw Object(a.b)();return[4,E(r,l,{type:2,filter:{includeSourceActions:!0,include:o&&o.value?new m.b(o.value):void 0}},s.a.None)];case 1:return c=d.sent(),setTimeout((function(){return c.dispose()}),100),[2,c.validActions]}}))}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var i=n(444),o=(r.prototype.equals=function(e){return this.value===e.value},r.prototype.contains=function(e){return this.equals(e)||""===this.value||Object(i.N)(e.value,this.value+r.sep)},r.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},r.prototype.append=function(e){return new r(this.value+r.sep+e)},r.sep=".",r.None=new r("@@none@@"),r.Empty=new r(""),r.QuickFix=new r("quickfix"),r.Refactor=new r("refactor"),r.Source=new r("source"),r.SourceOrganizeImports=r.Source.append("organizeImports"),r.SourceFixAll=r.Source.append("fixAll"),r);function r(e){this.value=e}function s(e,t){return!(e.include&&!e.include.intersects(t))&&(!e.excludes||!e.excludes.some((function(n){return l(t,n,e.include)})))&&!(!e.includeSourceActions&&o.Source.contains(t))}function a(e,t){var n=t.kind?new o(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&!(e.excludes&&n&&e.excludes.some((function(t){return l(n,t,e.include)})))&&!(!e.includeSourceActions&&n&&o.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)}function l(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}var u=(c.fromUser=function(e,t){return e&&"object"==typeof e?new c(c.getKindFromUser(e,t.kind),c.getApplyFromUser(e,t.apply),c.getPreferredUser(e)):new c(t.kind,t.apply,!1)},c.getApplyFromUser=function(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}},c.getKindFromUser=function(e,t){return"string"==typeof e.kind?new o(e.kind):t},c.getPreferredUser=function(e){return"boolean"==typeof e.preferred&&e.preferred},c);function c(e,t,n){this.kind=e,this.apply=t,this.preferred=n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1323);var i,o,r=n(445),s=n(453),a=n(439),l=n(635),u=n(440),c=n(449),d=n(456),h=n(451),p=n(461),f=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(g,o=a.a),g.get=function(e){return e.getContribution(g.ID)},g.prototype.dispose=function(){o.prototype.dispose.call(this),this._visible.reset()},g.prototype.showMessage=function(e,t){var n,i=this;Object(l.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return i.closeMessage()}))),this._messageListeners.add(new s.e((function(){return i.closeMessage()}),this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new u.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))},g.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))},g.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(r.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new d.d("messageVisible",!1),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,d.c)],g));function g(e,t){var n=o.call(this)||this;return n.closeTimeout=3e3,n._messageWidget=n._register(new a.d),n._messageListeners=n._register(new a.b),n._editor=e,n._visible=g.MESSAGE_VISIBLE.bindTo(t),n._register(n._editor.onDidAttemptReadOnlyEdit((function(){return n._onDidAttemptReadOnlyEdit()}))),n}var m=c.c.bindToContribution(f.get);Object(c.g)(new m({id:"leaveEditorMessage",precondition:f.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=(y.fadeOut=function(e){function t(){e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)}var n;return n=setTimeout(t,110),e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y);function y(e,t,n){var i=t.lineNumber,o=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(i,i,0),this._position={lineNumber:i,column:o-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);var s=document.createElement("div");s.classList.add("anchor"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}Object(c.h)(f.ID,f),Object(h.e)((function(e,t){var n=e.getColor(p.gb);if(n){var i=e.type===h.b?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+i+"px solid "+n+"; }")}var o=e.getColor(p.fb);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+o+"; }");var r=e.getColor(p.hb);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},o=(r.prototype.update=function(){},r.prototype.getData=function(){return this.data},r);function r(e){this.data=e}var s={CurrentDragAndDropData:void 0}},function(e,t,n){"use strict";var i,o,r,s,a=n(445),l=n(444);(o=i=i||{})[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error",r=i=i||{},(s=Object.create(null))[r.Error]=a.a("sev.error","Error"),s[r.Warning]=a.a("sev.warning","Warning"),s[r.Info]=a.a("sev.info","Info"),r.fromValue=function(e){return e?l.n("error",e)?r.Error:l.n("warning",e)||l.n("warn",e)?r.Warning:l.n("info",e)?r.Info:r.Ignore:r.Ignore},t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var i=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function o(e){return e.replace(i,(function(e,t){return t?e:"\\"+e}))}var r=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function s(e){return e.replace(r,(function(e){return"\\"+e}))}var a=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function l(e){return e.replace(a,(function(e,t,n,i,o){return t?"$("+n+")":'<span class="codicon codicon-'+i+(o?" codicon-animation-"+o:"")+'"></span>'}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1332);var i,o,r=n(439),s=n(478),a=n(452),l=n(465),u=n(702),c=n(595),d=n(442),h=n(443),p=n(686),f=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(g,o=r.a),Object.defineProperty(g.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(Object(h.Y)(this.el,"disabled",0===e),Object(h.Y)(this.el,"minimum",1===e),Object(h.Y)(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),g.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Object(h.f)(this.el,"horizontal"),Object(h.P)(this.el,"vertical")):(Object(h.P)(this.el,"horizontal"),Object(h.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},g.prototype.onMouseDown=function(e){var t=this;h.c.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var i=this.getOrthogonalSash(e);i&&(n=!0,e.__orthogonalSashEvent=!0,i.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(Object(h.D)("iframe"),Object(h.D)("webview")),s=0,l=o;s<l.length;s++)l[s].style.pointerEvents="none";var u=new c.b(e),d=u.posx,f=u.posy,g=u.altKey,m={startX:d,currentX:d,startY:f,currentY:f,altKey:g};Object(h.f)(this.el,"active"),this._onDidStart.fire(m);var v=Object(h.w)(this.el),y=function(){var e;e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":a.e?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":a.e?"col-resize":"ew-resize",v.innerHTML="* { cursor: "+e+" !important; }"},b=new r.b;y(),n||this.onDidEnablementChange(y,null,b),Object(p.a)(window,"mousemove")((function(e){h.c.stop(e,!1);var n=new c.b(e),i={startX:d,currentX:n.posx,startY:f,currentY:n.posy,altKey:g};t._onDidChange.fire(i)}),null,b),Object(p.a)(window,"mouseup")((function(e){h.c.stop(e,!1),t.el.removeChild(v),Object(h.P)(t.el,"active"),t._onDidEnd.fire(),b.dispose();for(var n=0,i=o;n<i.length;n++)i[n].style.pointerEvents="auto"}),null,b)}},g.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},g.prototype.onTouchStart=function(e){var t=this;h.c.stop(e);var n=[],i=e.pageX,o=e.pageY,s=e.altKey;this._onDidStart.fire({startX:i,currentX:i,startY:o,currentY:o,altKey:s}),n.push(Object(h.j)(this.el,u.a.Change,(function(e){l.h(e.pageX)&&l.h(e.pageY)&&t._onDidChange.fire({startX:i,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:s})}))),n.push(Object(h.j)(this.el,u.a.End,(function(e){t._onDidEnd.fire(),Object(r.f)(n)})))},g.prototype.layout=function(){var e=s.j?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}},g.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},g.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-start",0!==e)},g.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-end",0!==e)},g.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},g.prototype.dispose=function(){o.prototype.dispose.call(this),this.el.remove()},g);function g(e,t,n){void 0===n&&(n={});var i=o.call(this)||this;return i._state=3,i._onDidEnablementChange=i._register(new d.a),i.onDidEnablementChange=i._onDidEnablementChange.event,i._onDidStart=i._register(new d.a),i.onDidStart=i._onDidStart.event,i._onDidChange=i._register(new d.a),i.onDidChange=i._onDidChange.event,i._onDidReset=i._register(new d.a),i.onDidReset=i._onDidReset.event,i._onDidEnd=i._register(new d.a),i.onDidEnd=i._onDidEnd.event,i.linkedSash=void 0,i.orthogonalStartSashDisposables=i._register(new r.b),i.orthogonalEndSashDisposables=i._register(new r.b),i.el=Object(h.q)(e,Object(h.a)(".monaco-sash")),a.e&&Object(h.f)(i.el,"mac"),i._register(Object(p.a)(i.el,"mousedown")(i.onMouseDown,i)),i._register(Object(p.a)(i.el,"dblclick")(i.onMouseDoubleClick,i)),i._register(u.b.addTarget(i.el)),i._register(Object(p.a)(i.el,u.a.Start)(i.onTouchStart,i)),s.j&&Object(h.f)(i.el,"touch"),i.setOrientation(n.orientation||0),i.hidden=!1,i.layoutProvider=t,i.orthogonalStartSash=n.orthogonalStartSash,i.orthogonalEndSash=n.orthogonalEndSash,Object(h.Y)(i.el,"debug",!1),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(776);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===i.a.ICodeEditor}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return m}));var i=n(444),o=n(894),r=n(958),s=function(e,t){this.endIndex=e,this.type=t},a=(l.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},l);function l(e,t){this.startOffset=e,this.endOffset=t}var u=(c.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},c.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.a.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},c);function c(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f,g,m,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l,this.tabSize=u,this.startVisibleColumn=c,this.spaceWidth=d,this.middotWidth=h,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?3:"boundary"===f?1:"selection"===f?2:0,this.renderControlCharacters=g,this.fontLigatures=m,this.selectionsOnLine=v&&v.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}var d=(h.getPartIndex=function(e){return(4294901760&e)>>>16},h.getCharIndex=function(e){return(65535&e)>>>0},h.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n},h.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},h.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},h.prototype.partDataToCharOffset=function(e,t,n){if(0===this.length)return 0;for(var i=(e<<16|n<<0)>>>0,o=0,r=this.length-1;o+1<r;){var s=o+r>>>1,a=this._data[s];if(a===i)return s;i<a?r=s:o=s}if(o===r)return o;var l=this._data[o],u=this._data[r];if(l===i)return o;if(u===i)return r;var c=h.getPartIndex(l);return n-h.getCharIndex(l)<=(c!==h.getPartIndex(u)?t:h.getCharIndex(u))-n?o:r},h);function h(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}var p=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function f(e,t){if(0!==e.lineContent.length)return function(e,t){var n=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,s=e.lineContent,a=e.len,l=e.isOverflowing,u=e.parts,c=e.fauxIndentLength,h=e.tabSize,f=e.startVisibleColumn,g=e.containsRTL,m=e.spaceWidth,v=e.middotWidth,y=e.renderWhitespace,b=e.renderControlCharacters,_=m<v?11825:183,w=new d(a+1,u.length),C=0,S=f,O=0,x=0,k=0;t.appendASCIIString("<span>");for(var E=0,N=u.length;E<N;E++){k+=x;var L=u[E],D=L.endIndex,M=L.type,T=0!==y&&0<=M.indexOf("vs-whitespace");if(O=0,t.appendASCIIString('<span class="'),t.appendASCIIString(M),t.appendASCII(34),T){for(var I=0,P=C,A=S;P<D;P++){var R=s.charCodeAt(P);I+=j=0|(9===R?h-A%h:1),c<=P&&(A+=j)}for(n||"vs-whitespace"!==M&&r||(t.appendASCIIString(' style="display:inline-block;width:'),t.appendASCIIString(String(m*I)),t.appendASCIIString('px"')),t.appendASCII(62);C<D;C++){w.setPartData(C,E,O,k);var j=void 0;if(9===(R=s.charCodeAt(C))){j=h-S%h|0,!o||1<j?t.write1(8594):t.write1(65515);for(var F=2;F<=j;F++)t.write1(160)}else j=1,t.write1(_);O+=j,c<=C&&(S+=j)}x=I}else{for(I=0,g&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);C<D;C++){w.setPartData(C,E,O,k);var B=1;switch(j=1,R=s.charCodeAt(C)){case 9:for(j=B=h-S%h,F=1;F<=B;F++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:t.appendASCIIString("�");break;case 65279:case 8232:t.write1(65533);break;default:i.y(R)&&j++,b&&R<32?t.write1(9216+R):t.write1(R)}O+=B,I+=B,c<=C&&(S+=j)}x=I}t.appendASCIIString("</span>")}return w.setPartData(a,u.length-1,O,k),l&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new p(w,g,r)}(function(e){var t,n,o=e.useMonospaceOptimizations,a=e.lineContent;n=-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<a.length?(t=!0,e.stopRenderingLineAfter):(t=!1,a.length);var l=function(e,t,n){var i=[],o=0;0<t&&(i[o++]=new s(t,""));for(var r=0,a=e.getCount();r<a;r++){var l=e.getEndOffset(r);if(!(l<=t)){var u=e.getClassName(r);if(n<=l){i[o++]=new s(n,u);break}i[o++]=new s(l,u)}}return i}(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(l=function(e,t,n,o,r,a,l,u,c,d){var h,p=[],f=0,g=0,m=o[g].type,v=o[g].endIndex,y=o.length,b=i.q(e);h=-1===b?b=t:i.D(e);for(var _=!1,w=0,C=c&&c[w],S=l%a,O=r;O<t;O++){var x=e.charCodeAt(O);C&&O>=C.endOffset&&(w++,C=c&&c[w]);var k=void 0;if(O<b||h<O)k=!0;else if(9===x)k=!0;else if(32===x)if(d)if(_)k=!0;else{var E=O+1<t?e.charCodeAt(O+1):0;k=32===E||9===E}else k=!0;else k=!1;k&&c&&(k=!!C&&C.startOffset<=O&&C.endOffset>O),_?(!k||!u&&a<=S)&&(p[f++]=new s(O,"vs-whitespace"),S%=a):(O===v||k&&r<O)&&(p[f++]=new s(O,m),S%=a),9===x?S=a:i.y(x)?S+=2:S++,_=k,O===v&&++g<y&&(m=o[g].type,v=o[g].endIndex)}var N=!1;if(_)if(n&&d){var L=0<t?e.charCodeAt(t-1):0,D=1<t?e.charCodeAt(t-2):0;32===L&&32!==D&&9!==D||(N=!0)}else N=!0;return p[f++]=new s(t,N?"vs-whitespace":m),p}(a,n,e.continuesWithWrappedLine,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,o,e.selectionsOnLine,1===e.renderWhitespace));var u=0;if(0<e.lineDecorations.length){for(var c=0,d=e.lineDecorations.length;c<d;c++){var h=e.lineDecorations[c];3===h.type||1===h.type?u|=1:2===h.type&&(u|=2)}l=function(e,t,n){n.sort(r.a.compare);for(var i=r.b.normalize(e,n),o=i.length,a=0,l=[],u=0,c=0,d=0,h=t.length;d<h;d++){for(var p=t[d],f=p.endIndex,g=p.type;a<o&&i[a].startOffset<f;){var m=i[a];if(m.startOffset>c&&(c=m.startOffset,l[u++]=new s(c,g)),!(m.endOffset+1<=f)){c=f,l[u++]=new s(c,g+" "+m.className);break}c=m.endOffset+1,l[u++]=new s(c,g+" "+m.className),a++}c<f&&(c=f,l[u++]=new s(c,g))}var v=t[t.length-1].endIndex;if(a<o&&i[a].startOffset===v){for(var y=[];a<o&&i[a].startOffset===v;)y.push(i[a].className),a++;l[u++]=new s(c,y.join(" "))}return l}(a,l,e.lineDecorations)}return e.containsRTL||(l=function(e,t,n){var i=0,o=[],r=0;if(n)for(var a=0,l=t.length;a<l;a++){var u=(f=t[a]).endIndex;if(i+50<u){for(var c=f.type,d=-1,h=i,p=i;p<u;p++)32===e.charCodeAt(p)&&(d=p),-1!==d&&50<=p-h&&(o[r++]=new s(d+1,c),h=d+1,d=-1);h!==u&&(o[r++]=new s(u,c))}else o[r++]=f;i=u}else for(a=0,l=t.length;a<l;a++){var f=t[a],g=(u=f.endIndex)-i;if(50<g){c=f.type;var m=Math.ceil(g/50);for(p=1;p<m;p++){var v=i+50*p;o[r++]=new s(v,c)}o[r++]=new s(u,c)}else o[r++]=f;i=u}return o}(a,l,!e.isBasicASCII||e.fontLigatures)),new v(o,e.canUseHalfwidthRightwardsArrow,a,n,t,l,u,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.middotWidth,e.renderWhitespace,e.renderControlCharacters)}(e),t);var n=0,o="<span><span>\xa0</span></span>";if(0<e.lineDecorations.length){for(var a=[],l=[],u=0,c=e.lineDecorations.length;u<c;u++){var h=e.lineDecorations[u];1===h.type&&(a.push(e.lineDecorations[u].className),n|=1),2===h.type&&(l.push(e.lineDecorations[u].className),n|=2)}0!==n&&(o="<span>"+(0<a.length?'<span class="'+a.join(" ")+'"></span>':"")+(0<l.length?'<span class="'+l.join(" ")+'"></span>':"")+"</span>")}return t.appendASCIIString(o),new p(new d(0,0),!1,n)}var g=function(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i};function m(e){var t=Object(o.a)(1e4),n=f(e,t);return new g(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var v=function(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=u,this.containsRTL=c,this.spaceWidth=d,this.middotWidth=h,this.renderWhitespace=p,this.renderControlCharacters=f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,o=n(444);i="undefined"!=typeof TextDecoder?function(e){return new r(e)}:function(){return new a};var r=(s.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},s.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},s.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},s.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},s.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0!=t&&!o.z(e)||this._flushBuffer()),this._buffer[this._bufferLength++]=e},s.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},s.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)},s);function s(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}var a=(l.prototype.reset=function(){this._pieces=[],this._piecesLen=0},l.prototype.build=function(){return this._pieces.join("")},l.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},l);function l(){this._pieces=[],this._piecesLen=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},o.prototype.has=function(e){return this._entries.has(e)},o.prototype.get=function(e){return this._entries.get(e)},o);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];this.set(r,s)}}},function(e,t,n){"use strict";var i,o;function r(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function s(e){return e.end-e.start<=0}n.d(t,"a",(function(){return i})),(o=i=i||{}).intersect=r,o.isEmpty=s,o.intersects=function(e,t){return!s(r(e,t))},o.relativeComplement=function(e,t){var n=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return s(i)||n.push(i),s(o)||n.push(o),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m}));var i=n(445),o=n(442),r=n(554),s=n(439),a=n(444),l=n(959),u=n(440),c=(Object.defineProperty(d.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaMessage",{get:function(){return Object(i.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(r.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),d);function d(e,t,n,i){this.isProviderFirst=e,this.parent=t,this._range=n,this._rangeCallback=i,this.id=l.b.nextId()}var h=(p.prototype.dispose=function(){this._modelReference.dispose()},p.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=n.getWordUntilPosition({lineNumber:i,column:o-t}),l=new u.a(i,a.startColumn,i,o),c=new u.a(r,s,r,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e);return{value:d+h+n.getValueInRange(c).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+h.length}}}},p);function p(e){this._modelReference=e}var f=(g.prototype.dispose=function(){Object(s.f)(this._preview),this._preview=void 0},Object.defineProperty(g.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaMessage",{get:function(){var e=this.children.length;return 1===e?Object(i.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(r.b)(this.uri),this.uri.fsPath):Object(i.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(r.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),g.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this.uri).then((function(e){if(!e.object)throw e.dispose(),new Error;return t._preview=new h(e),t._resolved=!0,t}),(function(e){return t.children.length=0,t._resolved=!0,t._loadFailure=e,t})))},g);function g(e,t){this.parent=e,this.uri=t,this.children=[]}var m=(v.prototype.dispose=function(){Object(s.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},v.prototype.clone=function(){return new v(this._links,this._title)},Object.defineProperty(v.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isEmpty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(i.a)("aria.result.0","No results found"):1===this.references.length?Object(i.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),v.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.length,r=n.parent.groups.length;return 1===r||t&&i+1<o||!t&&0<i?(i=t?(i+1)%o:(i+o-1)%o,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%r,n.parent.groups[i].children[0]):(i=(i+r-1)%r,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))},v.prototype.nearestReference=function(e,t){var n=this.references.map((function(n,i){return{idx:i,prefixLen:a.c(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}})).sort((function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0}))[0];if(n)return this.references[n.idx]},v.prototype.referenceAt=function(e,t){for(var n=0,i=this.references;n<i.length;n++){var o=i[n];if(o.uri.toString()===e.toString()&&u.a.containsPosition(o.range,t))return o}},v.prototype.firstReference=function(){for(var e=0,t=this.references;e<t.length;e++){var n=t[e];if(n.isProviderFirst)return n}return this.references[0]},v._compareReferences=function(e,t){return a.e(e.uri.toString(),t.uri.toString())||u.a.compareRangesUsingStarts(e.range,t.range)},v);function v(e,t){var n=this;this._disposables=new s.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;var i,r=e[0];e.sort(v._compareReferences);for(var a=0,l=e;a<l.length;a++){var d=l[a];if(i&&i.uri.toString()===d.uri.toString()||(i=new f(this,d.uri),this.groups.push(i)),0===i.children.length||!u.a.equalsRange(d.range,i.children[i.children.length-1].range)){var h=new c(r===d,i,d.targetSelectionRange||d.range,(function(e){return n._onDidChangeReferenceRange.fire(e)}));this.references.push(h),i.children.push(h)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("label")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(448),o=Object(i.c)("textResourceConfigurationService"),r=Object(i.c)("textResourcePropertiesService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return k}));var i,o=n(453),r=n(505),s=n(446),a=n(449),l=n(454),u=n(450),c=n(456),d=n(484),h=n(440),p=n(760),f=n(439),g={Visible:new c.d("suggestWidgetVisible",!1),MultipleSuggestions:new c.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new c.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new c.d("acceptSuggestionOnEnter",!0)},m=function(e,t,n,i,o){var a=this;this.position=e,this.completion=t,this.container=n,this.provider=i,this.isResolved=!1,this.score=p.a.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),h.a.isIRange(t.range)?(this.editStart=new u.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new u.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new u.a(t.range.endLineNumber,t.range.endColumn)):(this.editStart=new u.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new u.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new u.a(t.range.replace.endLineNumber,t.range.replace.endColumn));var l,c=i.resolveCompletionItem;"function"!=typeof c?(this.resolve=function(){return Promise.resolve()},this.isResolved=!0):this.resolve=function(n){return l||(l=Promise.resolve(c.call(i,o,e,t,n)).then((function(e){Object(r.a)(t,e),a.isResolved=!0}),(function(e){Object(s.d)(e)&&(l=void 0)})),n.onCancellationRequested((function(){a.isResolved||(l=void 0)}))),l}},v=(y.default=new y,y);function y(e,t,n){void 0===e&&(e=2),void 0===t&&(t=new Set),void 0===n&&(n=new Set),this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}function b(){return i}function _(e,t,n,r,a){void 0===n&&(n=v.default),void 0===r&&(r={triggerKind:0}),void 0===a&&(a=d.a.None);var u=e.getWordAtPosition(t),c=u?new h.a(t.lineNumber,u.startColumn,t.lineNumber,u.endColumn):h.a.fromPositions(t),p=c.setEndPosition(t.lineNumber,t.column);t=t.clone();var g=l.d.orderedGroups(e);n.kindFilter.has(25);var y=[],b=new f.b,_=!1,w=g.map((function(o){return function(){return Promise.all(o.map((function(o){if(!(0<n.providerFilter.size)||n.providerFilter.has(o))return Promise.resolve(o.provideCompletionItems(e,t,r,a)).then((function(r){var s=y.length;if(r){for(var a=0,l=r.suggestions||[];a<l.length;a++){var u=l[a];n.kindFilter.has(u.kind)||(u.range||(u.range={insert:p,replace:c}),u.sortText||(u.sortText="string"==typeof u.label?u.label:u.label.name),y.push(new m(t,u,r,o,e)))}Object(f.g)(r)&&b.add(r)}s!==y.length&&o!==i&&(_=!0)}),s.f)})))}}));return Object(o.h)(w,(function(){return _||a.isCancellationRequested})).then((function(){return a.isCancellationRequested?(b.dispose(),Promise.reject(Object(s.a)())):y.sort(S(n.snippetSortOrder))}))}function w(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}var C=new Map;function S(e){return C.get(e)}C.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return w(e,t)})),C.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return w(e,t)})),C.set(1,w),Object(a.e)("_executeCompletionItemProvider",(function(e,t,n){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var i,o,r,s,a,l,u,c;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(h){switch(h.label){case 0:return i={incomplete:!1,suggestions:[]},o=new f.b,r=[],s=n.maxItemsToResolve||0,[4,_(e,t)];case 1:for(a=h.sent(),l=0,u=a;l<u.length;l++)c=u[l],r.length<s&&r.push(c.resolve(d.a.None)),i.incomplete=i.incomplete||c.container.incomplete,i.suggestions.push(c.completion),Object(f.g)(c.container)&&o.add(c.container);h.label=2;case 2:return h.trys.push([2,,4,5]),[4,Promise.all(r)];case 3:return h.sent(),[2,i];case 4:return setTimeout((function(){return o.dispose()}),100),[7];case 5:return[2]}}))}))}));var O=(x.prototype.provideCompletionItems=function(){var e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e},new x);function x(){this.onlyOnceSuggestions=[]}function k(e,t){setTimeout((function(){var n;(n=O.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(O))}),0)}l.d.register("*",O)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(445),o=n(442),r=n(454),s=n(575),a=n(571);function l(){this._onDidChangeLanguages=new o.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}var u=new(l.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},l.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},l);a.a.add("editor.modesRegistry",u);var c="plaintext",d=new r.r(c,1);u.registerLanguage({id:c,extensions:[".txt",".gitignore"],aliases:[i.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),s.a.register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},,,,,,,,,,,,,,function(e,t,n){"use strict";var i,o=n(443),r=n(943),s=n(446),a=n(795),l=n(959);(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:m,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:m,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,_;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),1<r[0].length&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e))e=e.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:b(r,"\n")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(l={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=y(l.cells[p],l.header.length);this.tokens.push(l)}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),u={type:"list_start",ordered:m=1<(s=r[2]).length,start:m?+s:"",loose:!1},this.tokens.push(u),i=!(c=[]),g=(r=r[0].match(this.rules.item)).length,p=0;p<g;p++)h=(l=r[p]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),p!==g-1&&(a=t.bullet.exec(r[p+1])[0],(1<s.length?1===a.length:1<a.length||this.options.smartLists&&a!==s)&&(e=r.slice(p+1).join("\n")+e,p=g-1)),o=i||/\n\n(?!\s*$)/.test(l),p!==g-1&&(i="\n"===l.charAt(l.length-1),o=o||i),o&&(u.loose=!0),_=void 0,(v=/^\[[ xX]\] /.test(l))&&(_=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:_,loose:o},c.push(d),this.tokens.push(d),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(u.loose)for(g=c.length,p=0;p<g;p++)c[p].loose=!0;this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(n&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if((r=this.rules.table.exec(e))&&(l={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=y(l.cells[p].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2]?1:2,text:r[1]});else if(n&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var o={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||w.defaults,this.links=e,this.rules=o.normal,this.renderer=this.options.renderer||new s,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.options.breaks?this.rules=o.breaks:this.rules=o.gfm)}function s(e){this.options=e||w.defaults}function a(){}function l(e){this.tokens=[],this.token=null,this.options=e||w.defaults,this.options.renderer=this.options.renderer||new s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new u}function u(){this.seen={}}function c(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,(function(e){return c.replacements[e]}))}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,(function(e){return c.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function h(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function p(e,t,n){if(e){try{var i=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!g.test(n)&&(n=function(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=b(e,"/",!0)),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}o._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",o.em=h(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=h(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=h(o.tag).replace("comment",t._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=h(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=h(o.reflink).replace("label",o._label).getRegex(),o.normal=v({},o),o.pedantic=v({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=v({},o.normal,{escape:h(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),o.gfm.url=h(o.gfm.url,"i").replace("email",o.gfm._extended_email).getRegex(),o.breaks=v({},o.gfm,{br:h(o.br).replace("{2,}","*").getRegex(),text:h(o.gfm.text).replace(/\{2,\}/g,"*").getRegex()}),r.rules=o,r.output=function(e,t,n){return new r(t,n).output(e)},r.prototype.output=function(e){for(var t,n,i,o,s,a,l="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),l+=c(s[1]);else if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(e)){var u=_(s[2],"()");if(-1<u){var d=s[0].length-(s[2].length-u)-(s[3]||"").length;s[2]=s[2].substring(0,u),s[0]=s[0].substring(0,d).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,i=s[2],o=this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))?(i=t[1],t[3]):"":s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(s,{href:r.escapes(i),title:r.escapes(o)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),l+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),l+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),l+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),i="@"===s[2]?"mailto:"+(n=c(this.mangle(s[1]))):n=c(s[1]),l+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?l+=this.renderer.text(s[0]):l+=this.renderer.text(c(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])i="mailto:"+(n=c(s[0]));else{for(;a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0],a!==s[0];);n=c(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),l+=this.renderer.link(i,null,n)}return l},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,i=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,c(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o<i;o++)t=e.charCodeAt(o),.5<Math.random()&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,i);null!=o&&o!==e&&(n=!0,e=o)}return i?'<pre><code class="'+this.options.langPrefix+c(i,!0)+'">'+(n?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:c(e,!0))+"</code></pre>"},s.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},s.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},s.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},s.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},s.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},s.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},s.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},s.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},s.prototype.strong=function(e){return"<strong>"+e+"</strong>"},s.prototype.em=function(e){return"<em>"+e+"</em>"},s.prototype.codespan=function(e){return"<code>"+e+"</code>"},s.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},s.prototype.del=function(e){return"<del>"+e+"</del>"},s.prototype.link=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+c(e)+'"';return t&&(i+=' title="'+t+'"'),i+">"+n+"</a>"},s.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+(this.options.xhtml?"/>":">")},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});r+=this.renderer.tablerow(n)}return this.renderer.table(o,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var s=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,s,a);case"list_item_start":r="";var l=this.token.loose,u=this.token.checked,c=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(u));"list_item_end"!==this.next().type;)r+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,c,u);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h)}},u.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t))for(var n=t;this.seen[n]++,t=n+"-"+this.seen[n],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function v(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,o=t;0<=--o&&"\\"===n[o];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function b(e,t,n){if(0===e.length)return"";for(var i=0;i<e.length;){var o=e.charAt(e.length-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,e.length-i)}function _(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}function w(e,t,i){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(i||"function"==typeof t){i||(i=t,t=null);var o,r,s=(t=v({},w.defaults,t||{})).highlight,a=0;try{o=n.lex(e,t)}catch(e){return i(e)}r=o.length;var u=function(e){if(e)return t.highlight=s,i(e);var n;try{n=l.parse(o,t)}catch(n){e=n}return t.highlight=s,e?i(e):i(null,n)};if(!s||s.length<3)return u();if(delete t.highlight,!r)return u();for(;a<o.length;a++)!function(e){"code"!==e.type?--r||u():s(e.text,e.lang,(function(t,n){return t?u(t):null==n||n===e.text?--r||u():(e.text=n,e.escaped=!0,void(--r||u()))}))}(o[a])}else try{return t=t&&v({},w.defaults,t),l.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||w.defaults).silent)return"<p>An error occurred:</p><pre>"+c(e.message+"",!0)+"</pre>";throw e}}m.exec=m,w.options=w.setOptions=function(e){return v(w.defaults,e),w},w.defaults=(w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}})(),w.Parser=l,w.parser=l.parse,w.Renderer=s,w.TextRenderer=a,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=r,w.inlineLexer=r.output,w.Slugger=u,i=w.parse=w}).call(void 0),i.Parser,i.parser;var u,c=i.Renderer,d=(i.TextRenderer,i.Lexer,i.lexer,i.InlineLexer,i.inlineLexer,i.parse);!function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,i)}return n[s].exports}for(var r=!1,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var i=e("./toMap");t.exports={uris:i(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(e,t,n){t.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(e,t,n){var i=e("./toMap");t.exports={voids:i(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),o=e("./parser"),r=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],l=!0===n?t:i({},s,t),u=r(a,l);return o(e,u),a.join("")}a.defaults=s,t.exports=a,u=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){t.exports=function e(t){for(var n,i,o=Array.prototype.slice.call(arguments,1);o.length;)for(i in n=o.shift())n.hasOwnProperty(i)&&("[object Object]"===Object.prototype.toString.call(t[i])?t[i]=e(t[i],n[i]):t[i]=n[i]);return t}},{}],7:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,u=/^</,c=/^<\s*\//;t.exports=function(e,t){for(var n,d,h=((n=[]).lastItem=function(){return n[n.length-1]},n),p=e;e;)f();function f(){d=!0,"\x3c!--"===e.substr(0,4)?function(){var n=e.indexOf("--\x3e");0<=n&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),d=!1)}():c.test(e)?g(a,v):u.test(e)&&g(s,m),function(){if(d){var n,i=e.indexOf("<");e=0<=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),t.chars&&t.chars(n)}}();var n=e===p;p=e,n&&(e="")}function g(t,n){var i=e.match(t);i&&(e=e.substring(i[0].length),i[0].replace(t,n),d=!1)}function m(e,n,s,a){var u={},c=o(n),d=r.voids[c]||!!a;s.replace(l,(function(e,t,n,o,r){u[t]=void 0===n&&void 0===o&&void 0===r?void 0:i.decode(n||o||r||"")})),d||h.push(c),t.start&&t.start(c,u,d)}function v(e,n){var i,r=0,s=o(n);if(s)for(r=h.length-1;0<=r&&h[r]!==s;r--);if(0<=r){for(i=h.length-1;r<=i;i--)t.end&&t.end(h[i]);h.length=r}}v()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=e("./attributes"),s=e("./elements");t.exports=function(e,t){var n,a=t||{};return c(),{start:function(e,t,s){var c=o(e);n.ignoring?u(c):-1!==(a.allowedTags||[]).indexOf(c)&&(!a.filter||a.filter({tag:c,attrs:t}))?(l("<"),l(c),Object.keys(t).forEach((function(e){var n=t[e],s=(a.allowedClasses||{})[c]||[],u=(a.allowedAttributes||{})[c]||[];u=u.concat((a.allowedAttributes||{})["*"]||[]);var d=o(e);("class"===d&&-1===u.indexOf(d)?(n=n.split(" ").filter((function(e){return s&&-1!==s.indexOf(e)})).join(" ").trim()).length:-1!==u.indexOf(d)&&(!0!==r.uris[d]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&i<n)return!0;var o=e.indexOf("#");return-1!==o&&o<n||a.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(i.encode(n)),l('"')))})),l(s?"/>":">")):u(c)},end:function(e){var t=o(e);-1!==(a.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l("</"),l(t),l(">")):function(e){n.ignoring===e&&--n.depth<=0&&c()}(t)},chars:function(e){!1===n.ignoring&&l(a.transformText?a.transformText(e):e)}};function l(t){e.push(t)}function u(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function c(){n={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},o={"&":"&","<":"<",">":">",""":'"',"'":"'"},r=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function l(e){return o[e]}function u(e){return null==e?"":String(e).replace(s,a)}function c(e){return null==e?"":String(e).replace(r,l)}u.options=c.options={},t.exports={encode:u,escape:u,decode:c,unescape:c,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e,t){return e[t]=!0,e}t.exports=function(e){return e.reduce(i,{})}},{}]},{},[4]);var h=u,p=n(1095),f=n(505),g=n(444),m=n(479),v=n(596),y=n(890);function b(e,t){function n(t,n){var i=e.uris&&e.uris[t];if(!i)return t;var r=m.a.revive(i);return m.a.parse(t).toString()===r.toString()?t:(n&&(r=o.s(r)),r.query&&(r=r.with({query:function(t){var n;try{n=Object(p.a)(decodeURIComponent(t))}catch(t){}return n?(n=Object(f.b)(n,(function(t){return e.uris&&e.uris[t]?m.a.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t}(r.query)})),r.toString(!0))}void 0===t&&(t={});var i,u=Object(r.a)(t),b=new Promise((function(e){return i=e})),_=new c;_.image=function(e,t,i){var o,r=[],s=[];return e&&(e=(o=Object(a.d)(e)).href,r=o.dimensions,e=n(e,!0),s.push('src="'+e+'"')),i&&s.push('alt="'+i+'"'),t&&s.push('title="'+t+'"'),r.length&&(s=s.concat(r)),"<img "+s.join(" ")+">"},_.link=function(t,i,o){return t===o&&(o=Object(a.e)(o)),t=n(t,!1),i=Object(a.e)(i),!(t=Object(a.e)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?o:'<a href="#" data-href="'+(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(i||t)+'">'+o+"</a>"},_.paragraph=function(t){return"<p>"+(e.supportThemeIcons?Object(y.c)(t):t)+"</p>"},t.codeBlockRenderer&&(_.code=function(e,n){var i=t.codeBlockRenderer(n,e),o=l.b.nextId(),r=Promise.all([i,b]).then((function(e){var t=e[0],n=u.querySelector('div[data-code="'+o+'"]');n&&(n.innerHTML=t)})).catch((function(e){}));return t.codeBlockRenderCallback&&r.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+o+'">'+Object(g.o)(e)+"</div>"});var w=t.actionHandler;w&&w.disposeables.add(o.o(u,"click",(function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement)&&"A"===t.tagName)try{var n=t.dataset.href;n&&w.callback(n,e)}catch(e){Object(s.e)(e)}finally{e.preventDefault()}})));var C={sanitize:!0,renderer:_},S=[v.b.http,v.b.https,v.b.mailto,v.b.data,v.b.file,v.b.vscodeRemote,v.b.vscodeRemoteResource];e.isTrusted&&S.push(v.b.command);var O=d(e.supportThemeIcons?Object(y.b)(e.value):e.value,C);return u.innerHTML=h(O,{allowedSchemes:S,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),i(),u}var _=n(636),w=n(778),C=n(1090),S=n(448),O=n(442),x=n(439),k=n(454);n.d(t,"a",(function(){return D}));var E,N,L=function(e,t){return function(n,i){t(n,i,e)}},D=((E=function(e,t){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])})(e,t)},function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(M,N=x.a),M.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var o=t._editor.getModel();o&&(i=o.getLanguageIdentifier().language)}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then((function(e){var t=k.B.getPromise(i||"");return t?t.then((function(e){return Object(C.b)(n,e)})):Object(C.b)(n,void 0)})).then((function(e){return'<span style="font-family: '+t._editor.getOption(34).fontFamily+'">'+e+"</span>"}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(e,{fromUserGesture:!0}).catch(s.e)},disposeables:e}}},M.prototype.render=function(e){var t=new x.b;return{element:e?b(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return t.dispose()}}},M=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([L(1,w.a),L(2,Object(S.d)(_.a))],M));function M(e,t,n){void 0===n&&(n=_.b);var i=N.call(this)||this;return i._editor=e,i._modeService=t,i._openerService=n,i._onDidRenderCodeBlock=i._register(new O.a),i.onDidRenderCodeBlock=i._onDidRenderCodeBlock.event,i}},function(e,t,n){"use strict";n(1336);var i=n(443),o=n(772),r=n(703),s=n(490),a=n(442),l=n(505),u=n(444),c=n(504),d=n(957),h=(n(1353),n(891)),p=n(959),f=n(439),g=n(440),m=n(495),v=new s.a(new s.c(0,122,204)),y={showArrow:!0,showFrame:!0,className:"",frameColor:v,arrowColor:v,keepEditorSelection:!1},b=(_.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},_.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},_);function _(e,t,n,i,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r}var w=(C.prototype.getId=function(){return this._id},C.prototype.getDomNode=function(){return this._domNode},C.prototype.getPosition=function(){return null},C);function C(e,t){this._id=e,this._domNode=t}var S=(O.prototype.dispose=function(){this.hide(),i.O(this._ruleName)},Object.defineProperty(O.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),O.prototype._updateStyle=function(){i.O(this._ruleName),i.v(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},O.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},O.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},O._IdGenerator=new p.a(".arrow-decoration-"),O);function O(e){this._editor=e,this._ruleName=O._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}var x=(k.prototype.dispose=function(){var e=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null})),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},k.prototype.create=function(){i.f(this.domNode,"zone-widget"),this.options.className&&i.f(this.domNode,this.options.className),this.container=document.createElement("div"),i.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},k.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},k.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}},k.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},k.prototype._getLeft=function(e){return 0<e.minimapWidth&&0===e.minimapLeft?e.minimapWidth:0},k.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},k.prototype._onViewZoneHeight=function(e){if(this.domNode.style.height=e+"px",this.container){var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(k.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition()}}},enumerable:!0,configurable:!0}),k.prototype.show=function(e,t){var n=g.a.isIRange(e)?g.a.lift(e):g.a.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:m.a.EMPTY}])},k.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},k.prototype._decoratingElementsHeight=function(){var e=this.editor.getOption(49),t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t},k.prototype._showImpl=function(e,t){var n=this,i=e.getStartPosition(),o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getOption(49),l=this.editor.getLayoutInfo().height/a*.8;l<=t&&(t=l);var u=0,c=0;if(this._arrow&&this.options.showArrow&&(u=Math.round(a/3),this._arrow.height=u,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones((function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new b(s,i.lineNumber,i.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new w("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=u+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=this.editor.getModel();if(p){var f=e.endLineNumber+1;f<=p.getLineCount()?this.revealLine(f,!1):this.revealLine(p.getLineCount(),!0)}},k.prototype.revealLine=function(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)},k.prototype.setCssClass=function(e,t){this.container&&(t&&this.container.classList.remove(t),i.f(this.container,e))},k.prototype._onWidth=function(e){},k.prototype._doLayout=function(e,t){},k.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))}))},k.prototype._initSash=function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new h.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getOption(49),o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;5<r&&r<35&&t._relayout(r)}}))))},k.prototype.getHorizontalSashLeft=function(){return 0},k.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},k.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},k);function k(e,t){var n=this;void 0===t&&(t={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new f.b,this.container=null,this._isShowing=!1,this.editor=e,this.options=l.c(t),l.g(this.options,y,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}var E=n(445),N=n(456),L=n(448),D=n(792),M=n(449),T=n(461);n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return V})),n.d(t,"c",(function(){return q})),n.d(t,"p",(function(){return K})),n.d(t,"q",(function(){return G})),n.d(t,"r",(function(){return Y})),n.d(t,"e",(function(){return Z})),n.d(t,"j",(function(){return X})),n.d(t,"l",(function(){return $})),n.d(t,"k",(function(){return J})),n.d(t,"n",(function(){return Q})),n.d(t,"o",(function(){return ee})),n.d(t,"f",(function(){return te})),n.d(t,"g",(function(){return ne})),n.d(t,"m",(function(){return ie})),n.d(t,"h",(function(){return oe})),n.d(t,"i",(function(){return re}));var I,P,A,R=(I=function(e,t){return(I=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){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=Object(L.c)("IPeekViewService");function F(){this._widgets=new Map}Object(D.b)(j,(F.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))}))})},F)),(A=P=P||{}).inPeekEditor=new N.d("inReferenceSearchEditor",!0),A.notInPeekEditor=A.inPeekEditor.toNegated();var B=(W.prototype.dispose=function(){},W.ID="editor.contrib.referenceController",W=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,N.c)],W));function W(e,t){e instanceof d.a&&P.inPeekEditor.bindTo(t)}function V(e){var t=e.get(c.a).getFocusedCodeEditor();return t instanceof d.a?t.getParentEditor():t}Object(M.h)(B.ID,B);var z,H={headerBackgroundColor:s.a.white,primaryHeadingColor:s.a.fromHex("#333333"),secondaryHeadingColor:s.a.fromHex("#6c6c6cb3")},q=(R(U,z=x),U.prototype.dispose=function(){z.prototype.dispose.call(this),this._onDidClose.fire(this)},U.prototype.style=function(e){var t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),z.prototype.style.call(this,e)},U.prototype._applyStyles=function(){z.prototype._applyStyles.call(this);var e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())},U.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=i.a(".head"),this._bodyElement=i.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},U.prototype._fillHead=function(e){var t=this,n=i.a(".peekview-title");i.q(this._headElement,n),i.o(n,"click",(function(e){return t._onTitleClick(e)})),this._fillTitleIcon(n),this._primaryHeading=i.a("span.filename"),this._secondaryHeading=i.a("span.dirname"),this._metaHeading=i.a("span.meta"),i.q(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var s=i.a(".peekview-actions");i.q(this._headElement,s);var a=this._getActionBarOptions();this._actionbarWidget=new o.a(s,a),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new r.a("peekview.close",E.a("label.close","Close"),"codicon-close",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},U.prototype._fillTitleIcon=function(e){},U.prototype._getActionBarOptions=function(){return{}},U.prototype._onTitleClick=function(e){},U.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=u.o(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=u.o(t):i.t(this._secondaryHeading))},U.prototype.setMetaTitle=function(e){this._metaHeading&&(e?(this._metaHeading.innerHTML=u.o(e),i.X(this._metaHeading)):i.J(this._metaHeading))},U.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(49)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},U.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},U.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},U);function U(e,t){void 0===t&&(t={});var n=z.call(this,e,t)||this;return n._onDidClose=new a.a,n.onDidClose=n._onDidClose.event,l.g(n.options,H,!1),n}var K=Object(T.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},E.a("peekViewTitleBackground","Background color of the peek view title area.")),G=Object(T.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},E.a("peekViewTitleForeground","Color of the peek view title.")),Y=Object(T.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},E.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Z=Object(T.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:T.e},E.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(T.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s.a.black},E.a("peekViewResultsBackground","Background color of the peek view result list.")),$=Object(T.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s.a.white},E.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),J=Object(T.Tb)("peekViewResult.fileForeground",{dark:s.a.white,light:"#1E1E1E",hc:s.a.white},E.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Q=Object(T.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},E.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ee=Object(T.Tb)("peekViewResult.selectionForeground",{dark:s.a.white,light:"#6C6C6C",hc:s.a.white},E.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),te=Object(T.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s.a.black},E.a("peekViewEditorBackground","Background color of the peek view editor.")),ne=Object(T.Tb)("peekViewEditorGutter.background",{dark:te,light:te,hc:te},E.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),ie=Object(T.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},E.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),oe=Object(T.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},E.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),re=Object(T.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:T.b},E.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},,,function(e,t,n){"use strict";var i=n(5),o=n.n(i),r=n(17),s=n(136),a=(n(1105),n(1106),n(1107),n(1108),n(1109),n(0)),l=n.n(a),u=n(829),c=n.n(u),d=n(1114),h=n.n(d),p=n(26),f=n(28),g=n(8),m=n(7),v=n(10),y=n(9);function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(y.a)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var _=n(11),w=function(e){function t(){return Object(g.a)(this,t),Object(v.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(_.a)(t,e),Object(m.a)(t,null,[{key:"create",value:function(e){var n=b(Object(y.a)(t),"create",this).call(this);return n.setAttribute("alt",e.alt),n.setAttribute("src",e.url),n.addEventListener("click",(function(){e.onclick(e.url)}),!1),e.width&&n.setAttribute("width",e.width),e.height&&n.setAttribute("height",e.height),e.id&&n.setAttribute("id",e.id),e.width||e.height||n.setAttribute("width","100%"),n}},{key:"value",value:function(e){return{alt:e.getAttribute("alt"),url:e.getAttribute("src"),onclick:e.onclick,width:e.width,height:e.height,display:e.getAttribute("display"),id:e.id}}}]),t}(c.a.import("blots/block/embed"));w.blotName="image",w.tagName="img";var C=function(e){function t(){return Object(g.a)(this,t),Object(v.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(_.a)(t,e),Object(m.a)(t,null,[{key:"create",value:function(e){var n=b(Object(y.a)(t),"cerate",this).call(this,e);return n.setAttribute("data_index",e.data_index),n.nodeValue=e.text,n}},{key:"value",value:function(e){return{data_index:e.getAttribute("data_index")}}}]),t}(c.a.import("blots/inline"));C.blotName="fill",C.tagName="span";var S=C,O=c.a.import("attributors/style/size"),x=c.a.import("formats/font");O.whitelist=["12px","14px","16px","18px","20px",!1],x.whitelist=["SimSun","SimHei","Microsoft-YaHei","KaiTi","FangSong","Arial","Times-New-Roman","sans-serif"],window.Quill=c.a,window.katex=h.a,c.a.register(w),c.a.register(O),c.a.register(x,!0),c.a.register({"formats/fill":S}),t.a=function(e){function t(e){S&&S(e,L)}var n=e.placeholder,i=e.readOnly,u=e.autoFocus,d=void 0!==u&&u,h=e.options,g=e.value,m=e.imgAttrs,v=void 0===m?{}:m,y=e.style,b=void 0===y?{}:y,_=e.wrapStyle,w=void 0===_?{}:_,C=e.showUploadImage,S=e.onContentChange,O=e.addFill,x=e.deleteFill,k=Object(a.useRef)(null),E=Object(a.useState)(null),N=Object(s.a)(E,2),L=N[0],D=N[1],M=Object(a.useState)(null),T=Object(s.a)(M,2),I=T[0],P=T[1],A=Object(a.useState)(0),R=Object(s.a)(A,2),j=R[0],F=R[1],B=Object(a.useState)({}),W=Object(s.a)(B,2),V=(W[0],W[1]),z={modules:{toolbar:h||["bold","italic","underline",{size:["12px","14px","16px","18px","20px"]},{align:[]},{list:"ordered"},{list:"bullet"},{script:"sub"},{script:"super"},{color:[]},{background:[]},{header:[1,2,3,4,5,!1]},"blockquote","code-block","link","image","video","formula","clean"],keyboard:{bindings:{tab:{key:9,handler:function(){}},backspace:{key:"Backspace",handler:function(e){var t=e.index,n=e.length,i=0===n?t-1:t,o=n||1,r=/\u2581/g,s=this.quill.getText(i,o).match(r);if(s){if(window.confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417?")){var a=((0===n?this.quill.getText(0,t-1):this.quill.getText(0,t)).match(r)||[]).length,l=[];return s.forEach((function(e,t){0===a?l.push(t):l.push(a+t)})),x&&x(l),!0}return!1}return!0}}}}},readOnly:i,placeholder:n,theme:i?"bubble":"snow"};return Object(a.useEffect)((function(){var e=document.createElement("div");k.current.appendChild(e);var t=new c.a(k.current,z);D(t),t.getModule("toolbar").addHandler("image",(function(e){var n=document.createElement("input");n.setAttribute("type","file"),n.setAttribute("accept","image/*"),n.click(),n.onchange=function(){var e=Object(r.a)(o.a.mark((function e(i){var r,s,a,l,u,c,d;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.files[0],(s=new FormData).append("file",r),a=t.getSelection(!0),l="",e.next=7,Object(p.n)(s);case 7:(u=e.sent).data&&u.data.id&&(l=Object(f.L)("api/attachments/".concat(u.data.id))),c=v.width,d=v.height,l&&t.insertEmbed(a.index,"image",{url:l,alt:"\u56fe\u7247\u4fe1\u606f",onClick:C,width:c,height:d});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),t.getModule("toolbar").addHandler("fill",(function(e){F(j+1);var n=t.getSelection(!0);t.insertText(n.index,"\u2581"),O&&O()}))}),[]),Object(a.useEffect)((function(){if(L){var e=L.getContents();g&&g.hasOwnProperty("ops")&&(g.ops||[]).forEach((function(e,t){e.insert.image&&(e.insert.image=Object.assign({},e.insert.image,{style:{cursor:"pointer"},onclick:function(e){return C(e)}}))})),function e(t,n){if(t===n)return!0;if(!t&&n||t&&!n||!t&&!n)return!1;if(Array.isArray(t)){if(!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(n[i],t[i]))return!1;return!0}if("object"!=typeof n)return!1;if("object"!=typeof t)return!1;var o=Object.keys(t),r=Object.keys(n);if(o.length!==r.length)return!1;o.sort(),r.sort();for(var s=0;s<o.length;s++){if(o[s]!==r[s])return!1;var a=o[s];if(!e(t[a],n[a]))return!1}return!0}(e,g)||(P(L.getSelection()),"string"==typeof g&&g?(L.clipboard.dangerouslyPasteHTML(g,"api"),d?L.focus():L.blur()):(L.setContents(g),d&&L.focus()))}}),[L,g,D,d]),Object(a.useEffect)((function(){L&&I&&(L.setSelection(I),P(null))}),[L,I,P]),Object(a.useEffect)((function(){L&&L.root&&(L.root.dataset.placeholder=n)}),[L,n]),Object(a.useEffect)((function(){var e;if(L)return L.on("text-change",e=function(){var e=L.getContents();V(e),t(L.getContents())}),function(){L.off("text-change",e)}}),[L,t]),l.a.createElement("div",{className:"quill_editor_for_react_area",style:w},l.a.createElement("div",{ref:k,style:b}))}},,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(439),o=n(444),r=n(449),s=n(440),a=n(466),l=n(469),u=n(900),c=n(456),d=n(828),h=n(459),p=(n(1379),n(704)),f=n(495),g=n(955),m=n(963),v=n(448),y=n(964),b=n(445),_=n(791),w=n(554),C=n(575),S=n(479),O="code-workspace";function x(e){return e instanceof S.a}var k=n(956),E=(N.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var i=n[t].resolve(e);if(void 0!==i)return i}},N);function N(e){this._delegates=e}var L=(D.prototype.resolve=function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0;if(n&&this._selection.startLineNumber!==this._selection.endLineNumber&&e.snippet){var i=this._model.getLineContent(this._selection.startLineNumber),r=Object(o.t)(i,0,this._selection.startColumn-1),s=r;e.snippet.walk((function(t){return t!==e&&(t instanceof y.d&&(s=Object(o.t)(t.value.split(/\r\n|\r|\n/).pop())),!0)}));var a=Object(o.c)(s,r);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return""+t+s.substr(a)+n}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"!==t)return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0;var l=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return l&&l.word||void 0},D);function D(e,t){this._model=e,this._selection=t}var M=(T.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return _.basename(this._model.uri.fsPath);if("TM_FILENAME_BASE"!==t)return"TM_DIRECTORY"===t&&this._labelService?"."===_.dirname(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(w.d)(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0;var n=_.basename(this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)},T);function T(e,t){this._labelService=e,this._model=t}var I=(P.prototype.resolve=function(e){if("CLIPBOARD"===e.name){var t=this._readClipboardText();if(t){if(this._spread){var n=t.split(/\r\n|\n|\r/).filter((function(e){return!Object(o.x)(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},P);function P(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}var A=(R.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),i=C.a.getComments(n.id);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0},R);function R(e){this._model=e}var j=(F.prototype.resolve=function(e){var t=e.name;return"CURRENT_YEAR"===t?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===t?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===t?Object(o.F)((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===t?Object(o.F)((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===t?Object(o.F)((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===t?Object(o.F)((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===t?Object(o.F)((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===t?F.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===t?F.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===t?F.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?F.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(Date.now()/1e3)):void 0},F.dayNames=[b.a("Sunday","Sunday"),b.a("Monday","Monday"),b.a("Tuesday","Tuesday"),b.a("Wednesday","Wednesday"),b.a("Thursday","Thursday"),b.a("Friday","Friday"),b.a("Saturday","Saturday")],F.dayNamesShort=[b.a("SundayShort","Sun"),b.a("MondayShort","Mon"),b.a("TuesdayShort","Tue"),b.a("WednesdayShort","Wed"),b.a("ThursdayShort","Thu"),b.a("FridayShort","Fri"),b.a("SaturdayShort","Sat")],F.monthNames=[b.a("January","January"),b.a("February","February"),b.a("March","March"),b.a("April","April"),b.a("May","May"),b.a("June","June"),b.a("July","July"),b.a("August","August"),b.a("September","September"),b.a("October","October"),b.a("November","November"),b.a("December","December")],F.monthNamesShort=[b.a("JanuaryShort","Jan"),b.a("FebruaryShort","Feb"),b.a("MarchShort","Mar"),b.a("AprilShort","Apr"),b.a("MayShort","May"),b.a("JuneShort","Jun"),b.a("JulyShort","Jul"),b.a("AugustShort","Aug"),b.a("SeptemberShort","Sep"),b.a("OctoberShort","Oct"),b.a("NovemberShort","Nov"),b.a("DecemberShort","Dec")],F);function F(){}var B=(W.prototype.resolve=function(e){if(this._workspaceService){var t,n=(t=this._workspaceService.getWorkspace()).configuration?{configPath:t.configuration,id:t.id}:1===t.folders.length?t.folders[0].uri:void 0;if(n)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(n):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(n):void 0}},W.prototype._resolveWorkspaceName=function(e){if(x(e))return _.basename(e.path);var t=_.basename(e.configPath.path);return Object(o.m)(t,O)&&(t=t.substr(0,t.length-O.length-1)),t},W.prototype._resoveWorkspacePath=function(e){if(x(e))return Object(k.c)(e.fsPath);var t=_.basename(e.configPath.path),n=e.configPath.fsPath;return Object(o.m)(n,t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(k.c)(n):"/"},W);function W(e){this._workspaceService=e}var V=(z.prototype.resolve=function(e){var t=e.name;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):void 0},z);function z(){}var H=n(451),q=n(461),U=n(898);Object(H.e)((function(e,t){function n(t){var n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(".monaco-editor .snippet-placeholder { background-color: "+n(q.bc)+"; outline-color: "+n(q.cc)+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(q.Zb)+"; outline-color: "+n(q.ac)+"; }")}));var K=(G.prototype.dispose=function(){if(this._placeholderDecorations){var e=[];this._placeholderDecorations.forEach((function(t){return e.push(t)})),this._editor.deltaDecorations(e,[])}this._placeholderGroups.length=0},G.prototype._initDecorations=function(){var e=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var t=this._editor.getModel();this._editor.changeDecorations((function(n){for(var i=0,o=e._snippet.placeholders;i<o.length;i++){var r=o[i],a=e._snippet.offset(r),l=e._snippet.fullLen(r),u=s.a.fromPositions(t.getPositionAt(e._offset+a),t.getPositionAt(e._offset+a+l)),c=r.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive,d=n.addDecoration(u,c);e._placeholderDecorations.set(r,d)}}))}},G.prototype.move=function(e){var t=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),0<=this._placeholderGroupsIdx){for(var n=[],i=0,o=this._placeholderGroups[this._placeholderGroupsIdx];i<o.length;i++){var r=o[i];if(r.transform){var s=this._placeholderDecorations.get(r),l=this._editor.getModel().getDecorationRange(s),u=this._editor.getModel().getValueInRange(l);n.push(p.a.replaceMove(l,r.transform.resolve(u)))}}0<n.length&&this._editor.executeEdits("snippet.placeholderTransform",n)}var c=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,c=!0):!1===e&&0<this._placeholderGroupsIdx&&(--this._placeholderGroupsIdx,c=!0);var d=this._editor.getModel().changeDecorations((function(e){for(var n=new Set,i=[],o=0,r=t._placeholderGroups[t._placeholderGroupsIdx];o<r.length;o++){var s=r[o],l=t._placeholderDecorations.get(s),u=t._editor.getModel().getDecorationRange(l);i.push(new a.a(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)),c=c&&t._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(l,s.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(s);for(var d=0,h=t._snippet.enclosingPlaceholders(s);d<h.length;d++){var p=h[d],f=t._placeholderDecorations.get(p);e.changeDecorationOptions(f,p.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(p)}}return t._placeholderDecorations.forEach((function(t,i){n.has(i)||e.changeDecorationOptions(t,i.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive)})),i}));return c?this.move(e):d},G.prototype._hasPlaceholderBeenCollapsed=function(e){for(var t=e;t;){if(t instanceof y.b){var n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&0<t.toString().length)return!0}t=t.parent}return!1},Object.defineProperty(G.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"hasPlaceholder",{get:function(){return 0<this._snippet.placeholders.length},enumerable:!0,configurable:!0}),G.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t<n.length;t++)for(var i=void 0,o=0,r=n[t];o<r.length;o++){var s=r[o];if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));var a=this._placeholderDecorations.get(s),l=this._editor.getModel().getDecorationRange(a);if(!l){e.delete(s.index);break}i.push(l)}return e},Object.defineProperty(G.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),G.prototype.merge=function(e){var t=this,n=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(i){for(var o=0,r=t._placeholderGroups[t._placeholderGroupsIdx];o<r.length;o++){for(var a=r[o],l=e.shift(),u=l._snippet.placeholderInfo.last.index,c=0,d=l._snippet.placeholderInfo.all;c<d.length;c++){var p=d[c];p.isFinalTabstop?p.index=a.index+(u+1)/t._nestingLevel:p.index=a.index+p.index/t._nestingLevel}t._snippet.replace(a,l._snippet.children);var f=t._placeholderDecorations.get(a);i.removeDecoration(f),t._placeholderDecorations.delete(a);for(var g=0,m=l._snippet.placeholders;g<m.length;g++){var v=m[g],b=l._snippet.offset(v),_=l._snippet.fullLen(v),w=s.a.fromPositions(n.getPositionAt(l._offset+b),n.getPositionAt(l._offset+b+_)),C=i.addDecoration(w,G._decor.inactive);t._placeholderDecorations.set(v,C)}}t._placeholderGroups=Object(h.o)(t._snippet.placeholders,y.b.compareByIndex)}))},G._decor={active:f.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:f.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"})},G);function G(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(h.o)(t.placeholders,y.b.compareByIndex),this._placeholderGroupsIdx=-1}var Y={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},Z=(X.adjustWhitespace=function(e,t,n,i,r){var s=e.getLineContent(t.lineNumber),a=Object(o.t)(s,0,t.column-1);n.walk((function(t){if(t instanceof y.d&&!(t.parent instanceof y.a)){var n=t.value.split(/\r\n|\r|\n/);if(i)for(var s=1;s<n.length;s++){var l=Object(o.t)(n[s]);n[s]=e.normalizeIndentation(a+l)+n[s].substr(l.length)}if(r){var u=n.join(e.getEOL());u!==t.value&&t.parent.replace(t,[new y.d(u)])}}return!0}))},X.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var o=t.positionLineNumber,r=t.positionColumn,s=r-n,l=r+i,u=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:l});t=a.a.createWithDirection(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn,t.getDirection())}return t},X.createEditsAndSnippets=function(e,t,n,i,o,r,a){var l=[],u=[];if(!e.hasModel())return{edits:l,snippets:u};for(var c=e.getModel(),d=e.invokeWithinContext((function(e){return e.get(m.a,v.d)})),h=e.invokeWithinContext((function(e){return new M(e.get(U.a,v.d),c)})),f=e.invokeWithinContext((function(e){return e.get(g.a,v.d)})),b=function(){return a||f&&f.readTextSync()},_=0,w=c.getValueInRange(X.adjustSelection(c,e.getSelection(),n,0)),C=c.getValueInRange(X.adjustSelection(c,e.getSelection(),0,i)),S=c.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),O=e.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return s.a.compareRangesUsingStarts(e.selection,t.selection)})),x=0,k=O;x<k.length;x++){var N=k[x],D=N.selection,T=N.idx,P=X.adjustSelection(c,D,n,0),R=X.adjustSelection(c,D,0,i);w!==c.getValueInRange(P)&&(P=D),C!==c.getValueInRange(R)&&(R=D);var F=D.setStartPosition(P.startLineNumber,P.startColumn).setEndPosition(R.endLineNumber,R.endColumn),W=(new y.c).parse(t,!0,o),z=F.getStartPosition();X.adjustWhitespace(c,z,W,r||0<T&&S!==c.getLineFirstNonWhitespaceColumn(D.positionLineNumber),!0),W.resolveVariables(new E([h,new I(b,T,O.length,"spread"===e.getOption(60)),new L(c,D),new A(c),new j,new B(d),new V]));var H=c.getOffsetAt(z)+_;_+=W.toString().length-c.getValueLengthInRange(F),l[T]=p.a.replace(F,W.toString()),u[T]=new K(e,W,H)}return{edits:l,snippets:u}},X.prototype.dispose=function(){Object(i.f)(this._snippets)},X.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},X.prototype.insert=function(){var e=this;if(this._editor.hasModel()){var t=X.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),n=t.edits,i=t.snippets;this._snippets=i,this._editor.executeEdits("snippet",n,(function(t){return e._snippets[0].hasPlaceholder?e._move(!0):t.map((function(e){return a.a.fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}},X.prototype.merge=function(e,t){var n=this;if(void 0===t&&(t=Y),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);var i=X.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText),o=i.edits,r=i.snippets;this._editor.executeEdits("snippet",o,(function(e){for(var t=0,i=n._snippets;t<i.length;t++)i[t].merge(r);return n._snippets[0].hasPlaceholder?n._move(void 0):e.map((function(e){return a.a.fromPositions(e.range.getEndPosition())}))}))}},X.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},X.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},X.prototype._move=function(e){for(var t=[],n=0,i=this._snippets;n<i.length;n++){var o=i[n].move(e);t.push.apply(t,o)}return t},Object.defineProperty(X.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),X.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;for(var t=new Map,n=function(n){var i=n.computePossibleSelections();if(0===t.size&&i.forEach((function(n,i){n.sort(s.a.compareRangesUsingStarts);for(var o=0,r=e;o<r.length;o++){var a=r[o];if(n[0].containsRange(a)){t.set(i,[]);break}}})),0===t.size)return{value:!1};t.forEach((function(e,t){e.push.apply(e,i.get(t))}))},i=0,o=this._snippets;i<o.length;i++){var r=n(o[i]);if("object"==typeof r)return r.value}return e.sort(s.a.compareRangesUsingStarts),t.forEach((function(n,i){if(n.length===e.length){n.sort(s.a.compareRangesUsingStarts);for(var o=0;o<n.length;o++)if(!n[o].containsRange(e[o]))return void t.delete(i)}else t.delete(i)})),0<t.size},X);function X(e,t,n){void 0===n&&(n=Y),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}n.d(t,"SnippetController2",(function(){return ee}));var $=function(){return($=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},J=function(e,t){return function(n,i){t(n,i,e)}},Q={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},ee=(te.get=function(e){return e.getContribution(te.ID)},te.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i.f)(this._session),this._snippetListener.dispose()},te.prototype.insert=function(e,t){try{this._doInsert(e,void 0===t?Q:$($({},Q),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},te.prototype._doInsert=function(e,t){var n=this;this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Z(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((function(e){return e.isFlush&&n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeModel((function(){return n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((function(){return n._updateState()}))))},te.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},te.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map((function(e){return a.a.fromPositions(e.getStartPosition())})));var n=t.options[0];Object(u.f)(this._editor,t.options.map((function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:Object(o.J)("a",i+1),range:s.a.fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}})))}}else this._currentChoice=void 0}else this._currentChoice=void 0},te.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},te.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(i.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},te.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},te.prototype.next=function(){this._session&&this._session.next(),this._updateState()},te.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},te.ID="snippetController2",te.InSnippetMode=new c.d("inSnippetMode",!1),te.HasNextTabstop=new c.d("hasNextTabstop",!1),te.HasPrevTabstop=new c.d("hasPrevTabstop",!1),te=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([J(1,d.a),J(2,c.c)],te));function te(e,t,n){this._editor=e,this._logService=t,this._snippetListener=new i.b,this._modelVersionId=-1,this._inSnippet=te.InSnippetMode.bindTo(n),this._hasNextTabstop=te.HasNextTabstop.bindTo(n),this._hasPrevTabstop=te.HasPrevTabstop.bindTo(n)}Object(r.h)(ee.ID,ee);var ne=r.c.bindToContribution(ee.get);Object(r.g)(new ne({id:"jumpToNextSnippetPlaceholder",precondition:c.a.and(ee.InSnippetMode,ee.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:2}})),Object(r.g)(new ne({id:"jumpToPrevSnippetPlaceholder",precondition:c.a.and(ee.InSnippetMode,ee.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:1026}})),Object(r.g)(new ne({id:"leaveSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(r.g)(new ne({id:"acceptSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.finish()}}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(465),r=n(449),s=n(504),a=n(555),l=n(450),u=n(440),c=(d.columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,c=o<n,d=r<i,h=i<r,p=[],f=0;f<s;f++){var g=n+(c?-f:f),m=a.a.columnFromVisibleColumn2(e,t,g,i),v=a.a.columnFromVisibleColumn2(e,t,g,r),y=a.a.visibleColumnFromColumn2(e,t,new l.a(g,m)),b=a.a.visibleColumnFromColumn2(e,t,new l.a(g,v));if(h){if(r<y)continue;if(b<i)continue}if(d){if(i<b)continue;if(y<r)continue}p.push(new a.f(new u.a(g,m,g,m),0,new l.a(g,v),0))}if(0===p.length)for(f=0;f<s;f++){g=n+(c?-f:f);var _=t.getLineMaxColumn(g);p.push(new a.f(new u.a(g,_,g,_),0,new l.a(g,_),0))}return{viewStates:p,reversed:c,fromLineNumber:n,fromVisualColumn:i,toLineNumber:o,toVisualColumn:r}},d.columnSelectLeft=function(e,t,n){var i=n.toViewVisualColumn;return 1<i&&i--,d.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,i)},d.columnSelectRight=function(e,t,n){for(var i=0,o=Math.min(n.fromViewLineNumber,n.toViewLineNumber),r=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=o;s<=r;s++){var u=t.getLineMaxColumn(s),c=a.a.visibleColumnFromColumn2(e,t,new l.a(s,u));i=Math.max(i,c)}var d=n.toViewVisualColumn;return d<i&&d++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,d)},d.columnSelectUp=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.max(1,n.toViewLineNumber-o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d.columnSelectDown=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.min(t.getLineCount(),n.toViewLineNumber+o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d);function d(){}var h=n(1083),p=n(1084),f=n(974),g=n(776),m=n(469),v=n(456);n.d(t,"CoreEditorCommand",(function(){return A})),n.d(t,"EditorScroll_",(function(){return _})),n.d(t,"RevealLine_",(function(){return C})),n.d(t,"CoreNavigationCommands",(function(){return O})),n.d(t,"CoreEditingCommands",(function(){return x}));var y,b,_,w,C,S,O,x,k,E,N,L,D,M,T,I,P=(y=function(e,t){return(y=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){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=(b=r.c,P(R,b),R.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},R);function R(){return null!==b&&b.apply(this,arguments)||this}function j(){return null!==E&&E.apply(this,arguments)||this}function F(){return N.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:301}}})||this}function B(){return L.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1026}})||this}function W(){return D.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}function V(){return M.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}function z(){return T.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}function H(e){e.register()}(w=_=_||{}).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!o.i(e))return!1;var t=e;return!!o.j(t.to)&&!(!o.k(t.by)&&!o.j(t.by))&&!(!o.k(t.value)&&!o.h(t.value))&&!(!o.k(t.revealCursor)&&!o.e(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},w.RawDirection={Up:"up",Down:"down"},w.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},w.parse=function(e){var t,n;switch(e.to){case w.RawDirection.Up:t=1;break;case w.RawDirection.Down:t=2;break;default:return null}switch(e.by){case w.RawUnit.Line:n=1;break;case w.RawUnit.WrappedLine:n=2;break;case w.RawUnit.Page:n=3;break;case w.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(S=C=C||{}).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!o.i(e))return!1;var t=e;return!!o.h(t.lineNumber)&&!(!o.k(t.at)&&!o.j(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},S.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t,n=(P(i,t=A),i.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!0,0,0)},i);function i(e){var n=t.call(this,e)||this;return n._inSelectionMode=e.inSelectionMode,n}e.MoveTo=Object(r.g)(new n({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(r.g)(new n({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var o,s,d,h,f=(P(g,o=A),g.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return a.d.fromViewState(e)}))),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(t.source,!0,n.reversed?1:2,0)},g);function g(){return null!==o&&o.apply(this,arguments)||this}function v(){return s.call(this,{id:"columnSelect",precondition:void 0})||this}function y(){return d.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}function b(){return h.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}e.ColumnSelect=Object(r.g)((P(v,s=f),v.prototype._getColumnSelectResult=function(e,t,n,i){var o=e.model.validatePosition(i.position),r=e.validateViewPosition(new l.a(i.viewPosition.lineNumber,i.viewPosition.column),o),s=i.doColumnSelect?n.fromViewLineNumber:r.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return c.columnSelect(e.config,e.viewModel,s,a,r.lineNumber,i.mouseColumn-1)},new v)),e.CursorColumnSelectLeft=Object(r.g)((P(y,d=f),y.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectLeft(e.config,e.viewModel,n)},new y)),e.CursorColumnSelectRight=Object(r.g)((P(b,h=f),b.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectRight(e.config,e.viewModel,n)},new b));var w,S=(P(O,w=f),O.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},O);function O(e){var t=w.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectUp=Object(r.g)(new S({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(r.g)(new S({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3595,linux:{primary:0}}}));var x,k=(P(E,x=f),E.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},E);function E(e){var t=x.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectDown=Object(r.g)(new k({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(r.g)(new k({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3596,linux:{primary:0}}}));var N,L=(P(D,N=A),D.prototype.runCoreEditorCommand=function(e,t){var n=p.a.parse(t);n&&this._runCursorMove(e,t.source,n)},D.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,p.b.move(e.context,e.getAll(),n)),e.reveal(t,!0,0,0)},D);function D(){return N.call(this,{id:"cursorMove",precondition:void 0,description:p.a.description})||this}e.CursorMoveImpl=L,e.CursorMove=Object(r.g)(new L);var M,T,I,R=(P(j,M=A),j.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},j);function j(e){var t=M.call(this,e)||this;return t._staticArgs=e.args,t}function F(){return T.call(this,{id:"createCursor",precondition:void 0})||this}function B(){return I.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}e.CursorLeft=Object(r.g)(new R({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(r.g)(new R({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1039}})),e.CursorRight=Object(r.g)(new R({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(r.g)(new R({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1041}})),e.CursorUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1035}})),e.CursorDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(r.g)((P(F,T=A),F.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?p.b.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):p.b.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(1<o.length)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,l=o.length;a<l;a++){var u=o[a];if((!r||u.modelState.selection.containsPosition(r))&&(!s||u.viewState.selection.containsPosition(s)))return o.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,o)}o.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},new F)),e.LastCursorMoveToSelect=Object(r.g)((P(B,I=A),B.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0);r[i]=p.b.moveTo(n,o[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},new B));var W,V,z=(P(H,W=A),H.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},H);function H(e){var t=W.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function q(){return V.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:287}}})||this}e.CursorHome=Object(r.g)(new z({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(r.g)(new z({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Object(r.g)((P(q,V=A),q.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},q.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber;n[i]=a.d.fromModelState(r.modelState.move(!1,s,1,0))}return n},new q));var U,K,G=(P(Y,U=A),Y.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},Y);function Y(e){var t=U.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function Z(){return K.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:291}}})||this}e.CursorEnd=Object(r.g)(new G({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Object(r.g)(new G({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Object(r.g)((P(Z,K=A),Z.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},Z.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber,l=e.model.getLineMaxColumn(s);n[i]=a.d.fromModelState(r.modelState.move(!1,s,l,0))}return n},new Z));var X,$=(P(J,X=A),J.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},J);function J(e){var t=X.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorTop=Object(r.g)(new $({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(r.g)(new $({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3086,mac:{primary:3088}}}));var Q,ee=(P(te,Q=A),te.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},te);function te(e){var t=Q.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorBottom=Object(r.g)(new ee({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(r.g)(new ee({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3085,mac:{primary:3090}}}));var ne,ie,oe,re,se,ae=(P(le,ne=A),le.prototype.runCoreEditorCommand=function(e,t){var n=_.parse(t);n&&this._runEditorScroll(e,t.source,n)},le.prototype._runEditorScroll=function(e,t,n){var i=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var o=e.context.getCompletelyVisibleViewRangeAtScrollTop(i);e.setStates(t,3,[p.b.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),o,n.select)])}e.scrollTo(i)},le.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n,i=e.getCompletelyVisibleModelRange();n=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value);var o=e.convertModelPositionToViewPosition(new l.a(n,1));return e.getVerticalOffsetForViewLine(o.lineNumber)}var r;r=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*r;return e.getCurrentScrollTop()+s*e.config.lineHeight},le);function le(){return ne.call(this,{id:"editorScroll",precondition:void 0,description:_.description})||this}function ue(){return ie.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2064,mac:{primary:267}}})||this}function ce(){return oe.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}function de(){return re.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2066,mac:{primary:268}}})||this}function he(){return se.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}e.EditorScrollImpl=ae,e.EditorScroll=Object(r.g)(new ae),e.ScrollLineUp=Object(r.g)((P(ue,ie=A),ue.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},new ue)),e.ScrollPageUp=Object(r.g)((P(ce,oe=A),ce.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},new ce)),e.ScrollLineDown=Object(r.g)((P(de,re=A),de.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},new de)),e.ScrollPageDown=Object(r.g)((P(he,se=A),he.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},new he));var pe,fe,ge=(P(me,pe=A),me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(t.source,!0,0,0)},me);function me(e){var t=pe.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function ve(){return fe.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}e.WordSelect=Object(r.g)(new ge({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(r.g)(new ge({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(r.g)((P(ve,fe=A),ve.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0),s=o[i];r[i]=p.b.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r)},new ve));var ye,be=(P(_e,ye=A),_e.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!1,0,0)},_e);function _e(e){var t=ye.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.LineSelect=Object(r.g)(new be({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(r.g)(new be({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var we,Ce,Se,Oe,xe,ke,Ee,Ne=(P(Le,we=A),Le.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[n]=p.b.line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},Le);function Le(e){var t=we.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function De(){return Ce.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2090}})||this}function Me(){return Se.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Te(){return Oe.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Ie(){return xe.call(this,{id:"revealLine",precondition:void 0,description:C.description})||this}function Pe(){return ke.call(this,{id:"selectAll",precondition:void 0})||this}function Ae(){return Ee.call(this,{id:"setSelection",precondition:void 0})||this}e.LastCursorLineSelect=Object(r.g)(new Ne({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(r.g)(new Ne({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(r.g)((P(De,Ce=A),De.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.expandLineSelection(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},new De)),e.CancelSelection=Object(r.g)((P(Me,Se=A),Me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(t.source,!0,0,0)},new Me)),e.RemoveSecondaryCursors=Object(r.g)((P(Te,Oe=A),Te.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(t.source,!0,0,0)},new Te)),e.RevealLine=Object(r.g)((P(Ie,xe=A),Ie.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var o=e.context.model.getLineCount();o<i&&(i=o);var r=new u.a(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case C.RawAtArgument.Top:s=3;break;case C.RawAtArgument.Center:s=1;break;case C.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,a,s,0)},new Ie)),e.SelectAll=Object(r.g)((P(Pe,ke=A),Pe.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.selectAll(e.context,e.getPrimaryCursor())])},new Pe)),e.SetSelection=Object(r.g)((P(Ae,Ee=A),Ae.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[a.d.fromModelSelection(t.selection)])},new Ae))}(O=O||{}),k=x=x||{},E=r.c,P(j,E),j.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},I=j,k.CoreEditingCommand=I,k.LineBreakInsert=Object(r.g)((P(F,N=I),F.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},new F)),k.Outdent=Object(r.g)((P(B,L=I),B.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new B)),k.Tab=Object(r.g)((P(W,D=I),W.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new W)),k.DeleteLeft=Object(r.g)((P(V,M=I),V.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)},new V)),k.DeleteRight=Object(r.g)((P(z,T=I),z.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)},new z));var q,U=(q=r.a,P(K,q),K.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&0<=["input","textarea"].indexOf(i.tagName.toLowerCase()))){var o=e.get(s.a).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(e,o,t)):void 0}document.execCommand(this._inputHandler)},K.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"==typeof i?t.trigger("keyboard",i,n):((n=n||{}).source="keyboard",i.runEditorCommand(e,t,n))},K);function K(e){var t=q.call(this,e)||this;return t._editorHandler=e.editorHandler,t._inputHandler=e.inputHandler,t}var G,Y=(G=r.a,P(Z,G),Z.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},Z);function Z(e,t,n){var i=G.call(this,{id:e,precondition:void 0,description:n})||this;return i._handlerId=t,i}function X(e,t){H(new Y("default:"+e,e)),H(new Y(e,e,t))}H(new U({editorHandler:O.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:{menuId:25,group:"1_basic",title:i.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),H(new U({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2104},menuOpts:{menuId:17,group:"1_do",title:i.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),H(new Y("default:"+g.b.Undo,g.b.Undo)),H(new U({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:{menuId:17,group:"1_do",title:i.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),H(new Y("default:"+g.b.Redo,g.b.Redo)),X(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),X(g.b.ReplacePreviousChar),X(g.b.CompositionStart),X(g.b.CompositionEnd),X(g.b.Paste),X(g.b.Cut)},,,function(e,t,n){"use strict";n(1337);var i,o=n(445),r=n(443),s=n(446),a=n(442),l=n(439),u=n(596),c=n(707),d=n(449),h=n(504),p=n(488),f=n(452),g=n(702),m=n(478),v=n(595),y=n(453),b=n(793),_=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=(C.prototype.toClientCoordinates=function(){return new S(this.x-r.e.scrollX,this.y-r.e.scrollY)},C);function C(e,t){this.x=e,this.y=t}var S=(O.prototype.toPageCoordinates=function(){return new w(this.clientX+r.e.scrollX,this.clientY+r.e.scrollY)},O);function O(e,t){this.clientX=e,this.clientY=t}var x=function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i};function k(e){var t=r.C(e);return new x(t.left,t.top,t.width,t.height)}var E,N=(_(L,E=v.b),L);function L(e,t){var n=E.call(this,e)||this;return n.pos=new w(n.posx,n.posy),n.editorPos=k(t),n}var D=(M.prototype._create=function(e){return new N(e,this._editorViewDomNode)},M.prototype.onContextMenu=function(e,t){var n=this;return r.j(e,"contextmenu",(function(e){t(n._create(e))}))},M.prototype.onMouseUp=function(e,t){var n=this;return r.j(e,"mouseup",(function(e){t(n._create(e))}))},M.prototype.onMouseDown=function(e,t){var n=this;return r.j(e,"mousedown",(function(e){t(n._create(e))}))},M.prototype.onMouseLeave=function(e,t){var n=this;return r.k(e,(function(e){t(n._create(e))}))},M.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this;return r.m(e,"mousemove",t,(function(e,t){return n(e,o._create(t))}),i)},M);function M(e){this._editorViewDomNode=e}var T=(I.prototype._create=function(e){return new N(e,this._editorViewDomNode)},I.prototype.onPointerUp=function(e,t){var n=this;return r.j(e,"pointerup",(function(e){t(n._create(e))}))},I.prototype.onPointerDown=function(e,t){var n=this;return r.j(e,"pointerdown",(function(e){t(n._create(e))}))},I.prototype.onPointerLeave=function(e,t){var n=this;return r.l(e,(function(e){t(n._create(e))}))},I.prototype.onPointerMoveThrottled=function(e,t,n,i){var o=this;return r.m(e,"pointermove",t,(function(e,t){return n(e,o._create(t))}),i)},I);function I(e){this._editorViewDomNode=e}var P,A=(_(R,P=l.a),R.prototype.startMonitoring=function(e,t,n,i,o){var s=this;this._keydownListener=r.o(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||s._globalMouseMoveMonitor.stopMonitoring(!0)}),!0),this._globalMouseMoveMonitor.startMonitoring(e,t,(function(e,t){return n(e,new N(t,s._editorViewDomNode))}),i,(function(){s._keydownListener.dispose(),o()}))},R);function R(e){var t=P.call(this)||this;return t._editorViewDomNode=e,t._globalMouseMoveMonitor=t._register(new b.a),t._keydownListener=null,t}var j,F,B=((j=function(e,t){return(j=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){function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(W,F=l.a),W.prototype.shouldRender=function(){return this._shouldRender},W.prototype.forceShouldRender=function(){this._shouldRender=!0},W.prototype.setShouldRender=function(){this._shouldRender=!0},W.prototype.onDidRender=function(){this._shouldRender=!1},W.prototype.onConfigurationChanged=function(e){return!1},W.prototype.onContentSizeChanged=function(e){return!1},W.prototype.onCursorStateChanged=function(e){return!1},W.prototype.onDecorationsChanged=function(e){return!1},W.prototype.onFlushed=function(e){return!1},W.prototype.onFocusChanged=function(e){return!1},W.prototype.onLanguageConfigurationChanged=function(e){return!1},W.prototype.onLineMappingChanged=function(e){return!1},W.prototype.onLinesChanged=function(e){return!1},W.prototype.onLinesDeleted=function(e){return!1},W.prototype.onLinesInserted=function(e){return!1},W.prototype.onRevealRangeRequest=function(e){return!1},W.prototype.onScrollChanged=function(e){return!1},W.prototype.onThemeChanged=function(e){return!1},W.prototype.onTokensChanged=function(e){return!1},W.prototype.onTokensColorsChanged=function(e){return!1},W.prototype.onZonesChanged=function(e){return!1},W.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var o=e[n];switch(o.type){case 1:this.onConfigurationChanged(o)&&(t=!0);break;case 2:this.onContentSizeChanged(o)&&(t=!0);break;case 3:this.onCursorStateChanged(o)&&(t=!0);break;case 4:this.onDecorationsChanged(o)&&(t=!0);break;case 5:this.onFlushed(o)&&(t=!0);break;case 6:this.onFocusChanged(o)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(o)&&(t=!0);break;case 8:this.onLineMappingChanged(o)&&(t=!0);break;case 9:this.onLinesChanged(o)&&(t=!0);break;case 10:this.onLinesDeleted(o)&&(t=!0);break;case 11:this.onLinesInserted(o)&&(t=!0);break;case 12:this.onRevealRangeRequest(o)&&(t=!0);break;case 13:this.onScrollChanged(o)&&(t=!0);break;case 15:this.onTokensChanged(o)&&(t=!0);break;case 14:this.onThemeChanged(o)&&(t=!0);break;case 16:this.onTokensColorsChanged(o)&&(t=!0);break;case 17:this.onZonesChanged(o)&&(t=!0)}}t&&(this._shouldRender=!0)},W);function W(){var e=F.call(this)||this;return e._shouldRender=!0,e}var V,z,H=((V=function(e,t){return(V=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){function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(q,z=B),q.prototype.dispose=function(){this._context.removeEventHandler(this),z.prototype.dispose.call(this)},q);function q(e){var t=z.call(this)||this;return t._context=e,t._context.addEventHandler(t),t}var U=(K.write=function(e,t){p.a,e.setAttribute("data-mprt",String(t))},K.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},K.collect=function(e,t){for(var n=[],i=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;for(var o=new Uint8Array(i),r=0;r<i;r++)o[r]=n[i-r-1];return o},K);function K(){}var G,Y=(G=function(e,t){return(G=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){function n(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Z=(X.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},X.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},X.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},X);function X(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}var $,J=(Y(Q,$=Z),Q.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},Q.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},Q);function Q(e,t,n){var i=$.call(this,e,t)||this;return i._viewLines=n,i}var ee=function(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n},te=(ne.prototype.toString=function(){return"["+this.left+","+this.width+"]"},ne);function ne(e,t){this.left=Math.round(e),this.width=Math.round(t)}var ie=function(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)},oe=function(e,t){this.outsideRenderedLine=e,this.ranges=t},re=(se.prototype.toString=function(){return"["+this.left+","+this.width+"]"},se.compare=function(e,t){return e.left-t.left},se);function se(e,t){this.left=e,this.width=t}var ae=(le._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},le._detachRange=function(e,t){e.selectNodeContents(t)},le._readClientRects=function(e,t,n,i,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,i),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,o)}},le._mergeAdjacentRanges=function(e){if(1===e.length)return[new te(e[0].left,e[0].width)];e.sort(re.compare);for(var t=[],n=0,i=e[0].left,o=e[0].width,r=1,s=e.length;r<s;r++){var a=e[r],l=a.left,u=a.width;o=l<=i+o+.9?Math.max(o,l+u-i):(t[n++]=new te(i,o),i=l,u)}return t[n++]=new te(i,o),t},le._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];n[i]=new re(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)},le.readHorizontalRanges=function(e,t,n,i,o,r,s){var a=e.children.length-1;if(a<0)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&0<i&&0===o&&(i--,o=1073741824);var l=e.children[t].firstChild,u=e.children[i].firstChild;if(l&&u||(!l&&0===n&&0<t&&(l=e.children[t-1].firstChild,n=1073741824),!u&&0===o&&0<i&&(u=e.children[i-1].firstChild,o=1073741824)),!l||!u)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(u.textContent.length,Math.max(0,o));var c=this._readClientRects(l,n,u,o,s);return this._createHorizontalRangesFromClientRects(c,r)},le);function le(){}var ue,ce=n(958),de=n(893),he=n(451),pe=n(530),fe=(ue=function(e,t){return(ue=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){function n(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=!!f.f||!(f.d||m.h||m.k),me=m.f,ve=(Object.defineProperty(ye.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),ye);function ye(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}var be=(_e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},_e);function _e(e,t){this.themeType=t;var n=e.options,i=n.get(34);this.renderWhitespace=n.get(74),this.renderControlCharacters=n.get(69),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(23),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(49),this.stopRenderingLineAfter=n.get(88),this.fontLigatures=n.get(35)}var we=(Ce.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},Ce.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(p.b)(e)},Ce.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},Ce.prototype.onSelectionChanged=function(){return!(!me&&this._options.themeType!==he.b&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0)},Ce.prototype.renderLine=function(e,t,n,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=n.getViewLineRenderingData(e),r=this._options,s=ce.a.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn),a=null;if(me||r.themeType===he.b||"selection"===this._options.renderWhitespace)for(var l=0,u=n.selections;l<u.length;l++){var c=u[l];if(!(c.endLineNumber<e||c.startLineNumber>e)){var d=c.startLineNumber===e?c.startColumn:o.minColumn,h=c.endLineNumber===e?c.endColumn:o.maxColumn;d<h&&("selection"!==this._options.renderWhitespace?s.push(new ce.a(d,h,"inline-selected-text",0)):(a=a||[]).push(new de.b(d-1,h-1)))}}var p=new de.c(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,s,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==pe.d.OFF,a);if(this._renderedViewLine&&this._renderedViewLine.input.equals(p))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(Ce.CLASS_NAME),i.appendASCIIString('">');var f=Object(de.d)(p,i);i.appendASCIIString("</div>");var g=null;return ge&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===f.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(g=new Se(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping)),g=g||De(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping,f.containsRTL,f.containsForeignElements),this._renderedViewLine=g,!0},Ce.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},Ce.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},Ce.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},Ce.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter,o=!1;-1!=i&&1+i<e&&1+i<t&&(o=!0),-1!=i&&1+i<e&&(e=1+i),-1!=i&&1+i<t&&(t=1+i);var r=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return r&&0<r.length?new oe(o,r):null},Ce.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},Ce.CLASS_NAME="view-line",Ce);function Ce(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}var Se=(Oe.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},Oe.prototype.getWidthIsFast=function(){return!0},Oe.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new te(i,o-i)]},Oe.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},Oe.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},Oe);function Oe(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}var xe=(ke.prototype._getReadingTarget=function(e){return e.domNode.firstChild},ke.prototype.getWidth=function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},ke.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},ke.prototype.getVisibleRangesForRange=function(e,t,n){if(!this.domNode)return null;if(null===this._pixelOffsetCache)return this._readVisibleRangesForRange(this.domNode,e,t,n);var i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;var o=this._readPixelOffset(this.domNode,t,n);return-1===o?null:[new te(i,o-i)]},ke.prototype._readVisibleRangesForRange=function(e,t,n,i){if(t!==n)return this._readRawVisibleRangesForRange(e,t,n,i);var o=this._readPixelOffset(e,t,i);return-1===o?null:[new te(o,0)]},ke.prototype._readPixelOffset=function(e,t,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();var i=this._getReadingTarget(e);return i.firstChild?i.firstChild.offsetWidth:0}if(null===this._pixelOffsetCache)return this._actualReadPixelOffset(e,t,n);var o=this._pixelOffsetCache[t];if(-1!==o)return o;var r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r},ke.prototype._actualReadPixelOffset=function(e,t,n){if(0===this._characterMapping.length){var i=ae.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return i&&0!==i.length?i[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(o),s=de.a.getCharIndex(o),a=ae.readHorizontalRanges(this._getReadingTarget(e),r,s,r,s,n.clientRectDeltaLeft,n.endNode);return a&&0!==a.length?a[0].left:-1},ke.prototype._readRawVisibleRangesForRange=function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new te(0,this.getWidth())];var o=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(o),s=de.a.getCharIndex(o),a=this._characterMapping.charOffsetToPartData(n-1),l=de.a.getPartIndex(a),u=de.a.getCharIndex(a);return ae.readHorizontalRanges(this._getReadingTarget(e),r,s,l,u,i.clientRectDeltaLeft,i.endNode)},ke.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},ke);function ke(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}var Ee,Ne=(fe(Le,Ee=xe),Le.prototype._readVisibleRangesForRange=function(e,t,n,i){var o=Ee.prototype._readVisibleRangesForRange.call(this,e,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){var r=this._readPixelOffset(e,n,i);if(-1!==r){var s=o[o.length-1];s.left<r&&(s.width=r-s.left)}}return o},Le);function Le(){return null!==Ee&&Ee.apply(this,arguments)||this}var De=m.m?function(e,t,n,i,o){return new Ne(e,t,n,i,o)}:function(e,t,n,i,o){return new xe(e,t,n,i,o)};var Me,Te=n(450),Ie=n(440),Pe=n(555),Ae=(Me=function(e,t){return(Me=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){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Re=function(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t},je=(Fe._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"},Fe.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},Fe.prototype.toString=function(){return Fe.toString(this)},Fe);function Fe(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!o&&i&&(o=new Ie.a(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=o,this.detail=r}var Be=(We.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},We.isChildOfViewLines=function(e){return 4<=e.length&&3===e[0]&&7===e[3]},We.isStrictChildOfViewLines=function(e){return 4<e.length&&3===e[0]&&7===e[3]},We.isChildOfScrollableElement=function(e){return 2<=e.length&&3===e[0]&&5===e[1]},We.isChildOfMinimap=function(e){return 2<=e.length&&3===e[0]&&8===e[1]},We.isChildOfContentWidgets=function(e){return 4<=e.length&&3===e[0]&&1===e[3]},We.isChildOfOverflowingContentWidgets=function(e){return 1<=e.length&&2===e[0]},We.isChildOfOverlayWidgets=function(e){return 2<=e.length&&3===e[0]&&4===e[1]},We);function We(){}var Ve=(ze.prototype.getZoneAtCoord=function(e){return ze.getZoneAtCoord(this._context,e)},ze.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i,o=n.verticalOffset+n.height/2,r=e.model.getLineCount(),s=null,a=null;return n.afterLineNumber!==r&&(a=new Te.a(n.afterLineNumber+1,1)),0<n.afterLineNumber&&(s=new Te.a(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),i=null===a||null!==s&&t<o?s:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:s,positionAfter:a,position:i}}return null},ze.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new Ie.a(t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),o=this._context.model.getLineMaxColumn(i);return{range:new Ie.a(i,1,i,o),isAfterLines:!1}},ze.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},ze.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},ze.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},ze.prototype.findAttribute=function(e,t){return ze._findAttribute(e,t,this._viewHelper.viewDomNode)},ze._findAttribute=function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},ze.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},ze.prototype.visibleRangeForPosition=function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)},ze.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},ze.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},ze.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},ze);function ze(e,t,n){this.model=e.model;var i=e.configuration.options;this.layoutInfo=i.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(49),this.typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}var He,qe=(Ae(Ue,He=function(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Ye._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}),Ue.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null)},Ue.prototype.fulfill=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null);var o=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(o=Pe.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new je(this.target,e,o,t,n,i)},Ue.prototype.withTarget=function(e){return new Ue(this._ctx,this.editorPos,this.pos,e)},Ue);function Ue(e,t,n,i){var o=He.call(this,e,t,n)||this;return o._ctx=e,i?(o.target=i,o.targetPath=U.collect(i,e.viewDomNode)):(o.target=null,o.targetPath=new Uint8Array(0)),o}var Ke={isAfterLines:!0};function Ge(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Ye=(Ze.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=U.collect(t,this._viewHelper.viewDomNode);return!(!Be.isChildOfContentWidgets(n)&&!Be.isChildOfOverflowingContentWidgets(n)&&!Be.isChildOfOverlayWidgets(n))},Ze.prototype.createMouseTarget=function(e,t,n,i){var o=new Ve(this._context,this._viewHelper,e),r=new qe(o,t,n,i);try{return Ze._createMouseTarget(o,r,!1)}catch(e){return r.fulfill(0)}},Ze._createMouseTarget=function(e,t,n){if(null===t.target){if(n)return t.fulfill(0);var i=Ze._doHitTest(e,t);return i.position?Ze.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}var o=t,r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||Ze._hitTestContentWidget(e,o))||Ze._hitTestOverlayWidget(e,o))||Ze._hitTestMinimap(e,o))||Ze._hitTestScrollbarSlider(e,o))||Ze._hitTestViewZone(e,o))||Ze._hitTestMargin(e,o))||Ze._hitTestViewCursor(e,o))||Ze._hitTestTextArea(e,o))||Ze._hitTestViewLines(e,o,n))||Ze._hitTestScrollbar(e,o))||t.fulfill(0)},Ze._hitTestContentWidget=function(e,t){if(Be.isChildOfContentWidgets(t.targetPath)||Be.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},Ze._hitTestOverlayWidget=function(e,t){if(Be.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},Ze._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=r=e.lastRenderData.lastViewCursorsRenderData;n<i.length;n++){var o=i[n];if(t.target===o.domNode)return t.fulfill(6,o.position)}if(t.isInContentArea)for(var r=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,l=0,u=r;l<u.length;l++)if(!(s<(o=u[l]).contentLeft||s>o.contentLeft+o.width)){var c=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(c<=a&&a<=c+o.height)return t.fulfill(6,o.position)}return null},Ze._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n)}return null},Ze._hitTestTextArea=function(e,t){return Be.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null},Ze._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,r))}return null},Ze._hitTestViewLines=function(e,t,n){if(!Be.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var i=e.model.getLineCount(),o=e.model.getLineMaxColumn(i);return t.fulfill(7,new Te.a(i,o),void 0,Ke)}if(n){if(Be.isStrictChildOfViewLines(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(r)){var s=e.getLineWidth(r),a=Ge(t.mouseContentHorizontalOffset-s);return t.fulfill(7,new Te.a(r,1),void 0,a)}var l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>=l){a=Ge(t.mouseContentHorizontalOffset-l);var u=new Te.a(r,e.model.getLineMaxColumn(r));return t.fulfill(7,u,void 0,a)}}return t.fulfill(0)}var c=Ze._doHitTest(e,t);return c.position?Ze.createMouseTargetFromHitTestPosition(e,t,c.position.lineNumber,c.position.column):this._createMouseTarget(e,t.withTarget(c.hitTarget),!0)},Ze._hitTestMinimap=function(e,t){if(Be.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Te.a(n,i))}return null},Ze._hitTestScrollbarSlider=function(e,t){if(Be.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new Te.a(i,o))}}return null},Ze._hitTestScrollbar=function(e,t){if(Be.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Te.a(n,i))}return null},Ze.prototype.getMouseColumn=function(e,t){var n=this._context.configuration.options,i=n.get(107),o=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-i.contentLeft;return Ze._getMouseColumn(o,n.get(34).typicalHalfwidthCharacterWidth)},Ze._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},Ze.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new Te.a(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(m.e&&1===o.column){var s=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new Te.a(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a)}var l=e.visibleRangeForPosition(n,i);if(!l)return t.fulfill(0,o);var u=l.left;if(t.mouseContentHorizontalOffset===u)return t.fulfill(6,o);var c=[];if(c.push({offset:l.left,column:i}),1<i){var d=e.visibleRangeForPosition(n,i-1);d&&c.push({offset:d.left,column:i-1})}if(i<e.model.getLineMaxColumn(n)){var h=e.visibleRangeForPosition(n,i+1);h&&c.push({offset:h.left,column:i+1})}c.sort((function(e,t){return e.offset-t.offset}));for(var p=1;p<c.length;p++){var f=c[p-1],g=c[p];if(f.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=g.offset){var v=new Ie.a(n,f.column,n,g.column);return t.fulfill(6,o,v)}}return t.fulfill(6,o)},Ze._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2),o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var r=new w(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},Ze._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n,i=r.E(e.viewDomNode);if(!(n=i?void 0===i.caretRangeFromPoint?function(e,t,n){var i=document.createRange(),o=e.elementFromPoint(t,n);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE;)o=o.lastChild;var r=o.getBoundingClientRect(),s=window.getComputedStyle(o,null).getPropertyValue("font"),a=o.innerText,l=r.left,u=0,c=void 0;if(t>r.left+r.width)u=a.length;else for(var d=Xe.getInstance(),h=0;h<a.length+1;h++){if(t<(l+=c=d.getCharWidth(a.charAt(h),s)/2)){u=h;break}l+=c}i.setStart(o.firstChild,u),i.setEnd(o.firstChild,u)}return i}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY))||!n.startContainer)return{position:null,hitTarget:null};var o=n.startContainer,s=null;if(o.nodeType===o.TEXT_NODE){var a=(u=(l=o.parentNode)?l.parentNode:null)?u.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===we.CLASS_NAME)return{position:e.getPositionFromDOMInfo(l,n.startOffset),hitTarget:null};s=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var l,u;if(((u=(l=o.parentNode)?l.parentNode:null)&&u.nodeType===u.ELEMENT_NODE?u.className:null)===we.CLASS_NAME)return{position:e.getPositionFromDOMInfo(o,o.textContent.length),hitTarget:null};s=o}return{position:null,hitTarget:s}},Ze._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType!==n.offsetNode.TEXT_NODE)return{position:null,hitTarget:n.offsetNode};var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)!==we.CLASS_NAME?{position:null,hitTarget:n.offsetNode.parentNode}:{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}},Ze._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===we.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},Ze._doHitTest=function(e,t){return"function"==typeof document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},Ze);function Ze(e,t){this._context=e,this._viewHelper=t}var Xe=($e.getInstance=function(){return $e._INSTANCE||($e._INSTANCE=new $e),$e._INSTANCE},$e.prototype.getCharWidth=function(e,t){var n=e+t;if(this._cache[n])return this._cache[n];var i=this._canvas.getContext("2d");i.font=t;var o=i.measureText(e).width;return this._cache[n]=o},$e._INSTANCE=null,$e);function $e(){this._cache={},this._canvas=document.createElement("canvas")}var Je,Qe=n(883),et=n(466),tt=(Je=function(e,t){return(Je=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){function n(){this.constructor=e}Je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function nt(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var it,ot=(tt(rt,it=B),rt.prototype.dispose=function(){this._context.removeEventHandler(this),it.prototype.dispose.call(this)},rt.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},rt.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},rt.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},rt.prototype.getTargetAtClientPoint=function(e,t){var n=new S(e,t).toPageCoordinates(),i=k(this.viewHelper.viewDomNode);return n.y<i.y||n.y>i.y+i.height||n.x<i.x||n.x>i.x+i.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i,n,null)},rt.prototype._createMouseTarget=function(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)},rt.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},rt.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},rt.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},rt.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,o=2===n.type||3===n.type||4===n.type,r=3===n.type,s=this._context.configuration.options.get(83),a=8===n.type||5===n.type,l=9===n.type,u=e.leftButton||e.middleButton;function c(){m.i&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())}if(f.e&&e.leftButton&&e.ctrlKey&&(u=!1),u&&(i||r&&s))c(),this._mouseDownOperation.start(n.type,e);else if(o)e.preventDefault();else if(a){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(c(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},rt.MOUSE_MOVE_MINIMUM_TIME=100,rt);function rt(e,t,n){var i=it.call(this)||this;i._isFocused=!1,i._context=e,i.viewController=t,i.viewHelper=n,i.mouseTargetFactory=new Ye(i._context,n),i._mouseDownOperation=i._register(new at(i._context,i.viewController,i.viewHelper,(function(e,t){return i._createMouseTarget(e,t)}),(function(e){return i._getMouseColumn(e)}))),i._asyncFocus=i._register(new y.d((function(){return i.viewHelper.focusTextArea()}),0)),i.lastMouseLeaveTime=-1;var o=new D(i.viewHelper.viewDomNode);return i._register(o.onContextMenu(i.viewHelper.viewDomNode,(function(e){return i._onContextMenu(e,!0)}))),i._register(o.onMouseMoveThrottled(i.viewHelper.viewDomNode,(function(e){return i._onMouseMove(e)}),nt(i.mouseTargetFactory),rt.MOUSE_MOVE_MINIMUM_TIME)),i._register(o.onMouseUp(i.viewHelper.viewDomNode,(function(e){return i._onMouseUp(e)}))),i._register(o.onMouseLeave(i.viewHelper.viewDomNode,(function(e){return i._onMouseLeave(e)}))),i._register(o.onMouseDown(i.viewHelper.viewDomNode,(function(e){return i._onMouseDown(e)}))),i._register(r.j(i.viewHelper.viewDomNode,m.f?"mousewheel":"wheel",(function(e){if(i.viewController.emitMouseWheel(e),i._context.configuration.options.get(57)){var t=new v.c(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=Qe.a.getZoomLevel(),o=0<t.deltaY?1:-1;Qe.a.setZoomLevel(n+o),t.preventDefault(),t.stopPropagation()}}}),{capture:!0,passive:!1})),i._context.addEventHandler(i),i}var st,at=(tt(lt,st=l.a),lt.prototype.dispose=function(){st.prototype.dispose.call(this)},lt.prototype.isActive=function(){return this._isActive},lt.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))},lt.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(i&&i.position){this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;var o=this._context.configuration.options;if(!o.get(68)&&o.get(24)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,nt(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,nt(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},lt.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},lt.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet((function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}}),10)},lt.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},lt.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,i=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0);if((a=Ve.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(a)))return new je(null,13,o,l);var s=i.getLineNumberAtVerticalOffset(r);return new je(null,13,o,new Te.a(s,1))}if(e.posy>t.y+t.height){var a,l;if(r=i.getCurrentScrollTop()+(e.posy-t.y),(a=Ve.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(a)))return new je(null,13,o,l);var u=i.getLineNumberAtVerticalOffset(r);return new je(null,13,o,new Te.a(u,n.getLineMaxColumn(u)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new je(null,13,o,new Te.a(c,1)):e.posx>t.x+t.width?new je(null,13,o,new Te.a(c,n.getLineMaxColumn(c))):null},lt.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){var o=this._helpPositionJumpOverViewZone(i.detail);if(o)return new je(i.element,i.type,i.mouseColumn,o,null,i.detail)}return i},lt.prototype._helpPositionJumpOverViewZone=function(e){var t=new Te.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},lt.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},lt);function lt(e,t,n,i,o){var r=st.call(this)||this;return r._context=e,r._viewController=t,r._viewHelper=n,r._createMouseTarget=i,r._getMouseColumn=o,r._mouseMoveMonitor=r._register(new A(r._viewHelper.viewDomNode)),r._onScrollTimeout=r._register(new y.e),r._mouseState=new ut,r._currentSelection=new et.a(1,1,1,1),r._isActive=!1,r._lastMouseEvent=null,r}var ut=(Object.defineProperty(ct.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),ct.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},ct.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},ct.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},ct.prototype.trySetCount=function(e,t){var n=(new Date).getTime();n-this._lastSetMouseDownCountTime>ct.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)},ct.CLEAR_MOUSE_DOWN_COUNT_TIME=400,ct);function ct(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}var dt,ht=n(820),pt=(dt=function(e,t){return(dt=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){function n(){this.constructor=e}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ft(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var gt,mt=(pt(vt,gt=ot),vt.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&>.prototype._onMouseDown.call(this,e)},vt.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},vt.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},vt.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),gt.prototype.dispose.call(this)},vt);function vt(e,t,n){var i=gt.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var o=n.pointerType;o!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?o===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(r.m(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),ft)),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}var yt,bt=(pt(_t,yt=ot),_t.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&&yt.prototype._onMouseDown.call(this,e)},_t.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},_t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},_t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),yt.prototype.dispose.call(this)},_t);function _t(e,t,n){var i=yt.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var o=n.pointerType;"mouse"!==o?"touch"===o?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(r.m(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),ft)),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}var wt,Ct=(pt(St,wt=ot),St.prototype.onTap=function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}},St.prototype.onChange=function(e){"touch"===this._lastPointerType&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},St.prototype._onMouseDown=function(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&"touch"===this._lastPointerType||wt.prototype._onMouseDown.call(this,e)},St);function St(e,t,n){var i=wt.call(this,e,t,n)||this;i._register(g.b.addTarget(i.viewHelper.linesContentDomNode)),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return i.onTap(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Change,(function(e){return i.onChange(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return i._onContextMenu(new N(e,i.viewHelper.viewDomNode),!1)}))),i._lastPointerType="mouse",i._register(r.j(i.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;i._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var o=new T(i.viewHelper.viewDomNode);return i._register(o.onPointerMoveThrottled(i.viewHelper.viewDomNode,(function(e){return i._onMouseMove(e)}),nt(i.mouseTargetFactory),ot.MOUSE_MOVE_MINIMUM_TIME)),i._register(o.onPointerUp(i.viewHelper.viewDomNode,(function(e){return i._onMouseUp(e)}))),i._register(o.onPointerLeave(i.viewHelper.viewDomNode,(function(e){return i._onMouseLeave(e)}))),i._register(o.onPointerDown(i.viewHelper.viewDomNode,(function(e){return i._onMouseDown(e)}))),i}var Ot,xt=(pt(kt,Ot=ot),kt.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},kt.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},kt);function kt(e,t,n){var i=Ot.call(this,e,t,n)||this;return i._register(g.b.addTarget(i.viewHelper.linesContentDomNode)),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return i.onTap(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Change,(function(e){return i.onChange(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return i._onContextMenu(new N(e,i.viewHelper.viewDomNode),!1)}))),i}var Et,Nt=(pt(Lt,Et=l.a),Lt.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},Lt);function Lt(e,t,n){var i=Et.call(this)||this;return window.navigator.msPointerEnabled?i.handler=i._register(new mt(e,t,n)):f.c&&ht.a.pointerEvents?i.handler=i._register(new Ct(e,t,n)):window.TouchEvent?i.handler=i._register(new xt(e,t,n)):window.navigator.pointerEnabled||window.PointerEvent?i.handler=i._register(new bt(e,t,n)):i.handler=i._register(new ot(e,t,n)),i}n(1338);var Dt,Mt,Tt=n(444),It=n(1077),Pt=n(1078),At=(n(1339),(Dt=function(e,t){return(Dt=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){function n(){this.constructor=e}Dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Rt,Mt=B),Rt);function Rt(){return null!==Mt&&Mt.apply(this,arguments)||this}var jt,Ft,Bt=n(572),Wt=((jt=function(e,t){return(jt=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){function n(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Vt,Ft=At),Vt.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var t=e.get(50);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(71);var n=e.get(107);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth},Vt.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Ft.prototype.dispose.call(this)},Vt.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},Vt.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},Vt.prototype.onFlushed=function(e){return!0},Vt.prototype.onLinesChanged=function(e){return!0},Vt.prototype.onLinesDeleted=function(e){return!0},Vt.prototype.onLinesInserted=function(e){return!0},Vt.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Vt.prototype.onZonesChanged=function(e){return!0},Vt.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2!==this._renderLineNumbers)return 3!==this._renderLineNumbers||this._lastCursorModelPosition.lineNumber===n||n%10==0?String(n):"";var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?'<span class="relative-current-line-number">'+n+"</span>":String(i)},Vt.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var t=f.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='<div class="'+Vt.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',r=this._context.model.getLineCount(),s=[],a=n;a<=i;a++){var l=a-n;if(this._renderFinalNewline||a!==r||0!==this._context.model.getLineLength(a)){var u=this._getLineRenderLineNumber(a);s[l]=u?o+u+"</div>":""}else s[l]=""}this._renderResult=s}else this._renderResult=null},Vt.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Vt.CLASS_NAME="line-numbers",Vt);function Vt(e){var t=Ft.call(this)||this;return t._context=e,t._readConfig(),t._lastCursorModelPosition=new Te.a(1,1),t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Bt.k);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Bt.b);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")}));var zt,Ht,qt=((zt=function(e,t){return(zt=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){function n(){this.constructor=e}zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ut,Ht=H),Ut.prototype.dispose=function(){Ht.prototype.dispose.call(this)},Ut.prototype.getDomNode=function(){return this._domNode},Ut.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._canUseLayerHinting=!t.get(22),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Ut.prototype.onScrollChanged=function(e){return Ht.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},Ut.prototype.prepareRender=function(e){},Ut.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},Ut.CLASS_NAME="glyph-margin",Ut.OUTER_CLASS_NAME="margin",Ut);function Ut(e){var t=Ht.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._canUseLayerHinting=!n.get(22),t._contentLeft=i.contentLeft,t._glyphMarginLeft=i.glyphMarginLeft,t._glyphMarginWidth=i.glyphMarginWidth,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setClassName(Ut.OUTER_CLASS_NAME),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._glyphMarginBackgroundDomNode=Object(p.b)(document.createElement("div")),t._glyphMarginBackgroundDomNode.setClassName(Ut.CLASS_NAME),t._domNode.appendChild(t._glyphMarginBackgroundDomNode),t}var Kt,Gt=n(823),Yt=(Kt=function(e,t){return(Kt=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){function n(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zt=(Xt.prototype.hasChanged=function(e){return this._source.hasChanged(e)},Xt);function Xt(e){this.type=1,this._source=e}var $t,Jt=function(e){this.type=2,this.contentWidth=e.contentWidth,this.contentHeight=e.contentHeight,this.contentWidthChanged=e.contentWidthChanged,this.contentHeightChanged=e.contentHeightChanged},Qt=function(e,t){this.type=3,this.selections=e,this.modelSelections=t},en=function(){this.type=4},tn=function(){this.type=5},nn=function(e){this.type=6,this.isFocused=e},on=function(){this.type=7},rn=function(){this.type=8},sn=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},an=function(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t},ln=function(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t},un=function(e,t,n,i,o){this.type=12,this.source=e,this.range=t,this.verticalType=n,this.revealHorizontal=i,this.scrollType=o},cn=function(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged},dn=function(){this.type=14},hn=function(e){this.type=15,this.ranges=e},pn=function(){this.type=16},fn=function(){this.type=17},gn=(Yt(mn,$t=l.a),mn.prototype.dispose=function(){this._listeners=[],$t.prototype.dispose.call(this)},mn.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new vn),this._collector},mn.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,0<e.length&&this._emit(e)}},mn.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)bn(t[n],e)},mn.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Object(l.h)((function(){for(var n=t._listeners,i=0,o=n.length;i<o;i++)if(n[i]===e){n.splice(i,1);break}}))},mn);function mn(){var e=$t.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}var vn=(yn.prototype.emit=function(e){this._events[this._eventsLen++]=e},yn.prototype.finalize=function(){var e=this._events;return this._events=[],e},yn);function yn(){this._eventsLen=0,this._events=[],this._eventsLen=0}function bn(e,t){try{e(t)}catch(e){s.e(e)}}var _n,wn=(_n=function(e,t){return(_n=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){function n(){this.constructor=e}_n(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Cn=(Sn.prototype.setWidth=function(e){return new Sn(this.top,this.left,e)},Sn);function Sn(e,t,n){this.top=e,this.left=t,this.width=n}var On,xn=m.f||m.h,kn=(wn(En,On=H),En.prototype.dispose=function(){On.prototype.dispose.call(this)},En.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Object(Gt.a)(this._context.configuration.options.get(96)),i=e.column,o=0;1<i;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||50<o)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},En.prototype._getCharacterBeforePosition=function(e){if(1<e.column){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!Tt.z(t.charCodeAt(0)))return t}return""},En.prototype._getAriaLabel=function(e){return 1===e.get(2)?o.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},En.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===pe.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=t},En.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(34),this._lineHeight=t.get(49),this._emptySelectionClipboard=t.get(25),this._copyWithSyntaxHighlighting=t.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),f.g&&e.hasChanged(68)&&(t.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},En.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},En.prototype.onDecorationsChanged=function(e){return!0},En.prototype.onFlushed=function(e){return!0},En.prototype.onLinesChanged=function(e){return!0},En.prototype.onLinesDeleted=function(e){return!0},En.prototype.onLinesInserted=function(e){return!0},En.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},En.prototype.onZonesChanged=function(e){return!0},En.prototype.isFocused=function(){return this._textAreaInput.isFocused()},En.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},En.prototype.getLastRenderData=function(){return this._lastRenderPosition},En.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},En.prototype.prepareRender=function(e){this._primaryCursorPosition=new Te.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},En.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},En.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():f.e?this._renderInsideEditor(this._primaryCursorPosition,t,e,xn?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,xn?0:1,xn?0:1)}}else this._renderAtTopLeft()},En.prototype._renderInsideEditor=function(e,t,n,i,o){this._lastRenderPosition=e;var r=this.textArea,s=this.textAreaCover;c.a.applyFontInfo(r,this._fontInfo),r.setTop(t),r.setLeft(n),r.setWidth(i),r.setHeight(o),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},En.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;if(c.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),xn)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);var n=this._context.configuration.options;n.get(40)?t.setClassName("monaco-editor-background textAreaCover "+qt.OUTER_CLASS_NAME):0!==n.get(50).renderType?t.setClassName("monaco-editor-background textAreaCover "+Wt.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},En);function En(e,t,n){var i=On.call(this,e)||this;i._primaryCursorPosition=new Te.a(1,1),i._primaryCursorVisibleRange=null,i._viewController=t,i._viewHelper=n,i._scrollLeft=0,i._scrollTop=0;var o=i._context.configuration.options,r=o.get(107);i._setAccessibilityOptions(o),i._contentLeft=r.contentLeft,i._contentWidth=r.contentWidth,i._contentHeight=r.height,i._fontInfo=o.get(34),i._lineHeight=o.get(49),i._emptySelectionClipboard=o.get(25),i._copyWithSyntaxHighlighting=o.get(15),i._visibleTextArea=null,i._selections=[new et.a(1,1,1,1)],i._modelSelections=[new et.a(1,1,1,1)],i._lastRenderPosition=null,i.textArea=Object(p.b)(document.createElement("textarea")),U.write(i.textArea,6),i.textArea.setClassName("inputarea"),i.textArea.setAttribute("wrap","off"),i.textArea.setAttribute("autocorrect","off"),i.textArea.setAttribute("autocapitalize","off"),i.textArea.setAttribute("autocomplete","off"),i.textArea.setAttribute("spellcheck","false"),i.textArea.setAttribute("aria-label",i._getAriaLabel(o)),i.textArea.setAttribute("role","textbox"),i.textArea.setAttribute("aria-multiline","true"),i.textArea.setAttribute("aria-haspopup","false"),i.textArea.setAttribute("aria-autocomplete","both"),f.g&&o.get(68)&&i.textArea.setAttribute("readonly","true"),i.textAreaCover=Object(p.b)(document.createElement("div")),i.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return i._context.model.getLineCount()},getLineMaxColumn:function(e){return i._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return i._context.model.getValueInRange(e,t)}},a={getDataToCopy:function(e){var t=i._context.model.getPlainTextToCopy(i._modelSelections,i._emptySelectionClipboard,f.h),n=i._context.model.getEOL(),o=i._emptySelectionClipboard&&1===i._modelSelections.length&&i._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,s=Array.isArray(t)?t.join(n):t,a=void 0,l=null;if(e&&(It.a.forceCopyWithSyntaxHighlighting||i._copyWithSyntaxHighlighting&&s.length<65536)){var u=i._context.model.getRichTextToCopy(i._modelSelections,i._emptySelectionClipboard);u&&(a=u.html,l=u.mode)}return{isFromEmptySelection:o,multicursorText:r,text:s,html:a,mode:l}},getScreenReaderContent:function(e){if(m.j)return Pt.b.EMPTY;if(1!==i._accessibilitySupport)return Pt.a.fromEditorSelection(e,s,i._selections[0],i._accessibilityPageSize,0===i._accessibilitySupport);if(f.e){var t=i._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),o=i._getWordBeforePosition(n);if(0===o.length&&(o=i._getCharacterBeforePosition(n)),0<o.length)return new Pt.b(o,o.length,o.length,n,n)}}return Pt.b.EMPTY},deduceModelPosition:function(e,t,n){return i._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return i._textAreaInput=i._register(new It.b(a,i.textArea)),i._register(i._textAreaInput.onKeyDown((function(e){i._viewController.emitKeyDown(e)}))),i._register(i._textAreaInput.onKeyUp((function(e){i._viewController.emitKeyUp(e)}))),i._register(i._textAreaInput.onPaste((function(e){var t=!1,n=null,o=null;e.metadata&&(t=i._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,o=e.metadata.mode),i._viewController.paste("keyboard",e.text,t,n,o)}))),i._register(i._textAreaInput.onCut((function(){i._viewController.cut("keyboard")}))),i._register(i._textAreaInput.onType((function(e){e.replaceCharCnt?i._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):i._viewController.type("keyboard",e.text)}))),i._register(i._textAreaInput.onSelectionChangeRequest((function(e){i._viewController.setSelection("keyboard",e)}))),i._register(i._textAreaInput.onCompositionStart((function(){var e=i._selections[0].startLineNumber,t=i._selections[0].startColumn;i._context.privateViewEventBus.emit(new un("keyboard",new Ie.a(e,t,e,t),0,!0,1));var n=i._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(i._visibleTextArea=new Cn(i._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,xn?0:1),i._render()),i.textArea.setClassName("inputarea ime-input"),i._viewController.compositionStart("keyboard")}))),i._register(i._textAreaInput.onCompositionUpdate((function(e){m.f?i._visibleTextArea=i._visibleTextArea.setWidth(0):i._visibleTextArea=i._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=function(e){return function(e,t,n,i,o){return"normal normal "+t+" "+n+"px / "+i+"px "+o}(0,e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}(t);var i=n.measureText(e);return m.h?i.width+2:i.width}(e.data,i._fontInfo)),i._render()}))),i._register(i._textAreaInput.onCompositionEnd((function(){i._visibleTextArea=null,i._render(),i.textArea.setClassName("inputarea"),i._viewController.compositionEnd("keyboard")}))),i._register(i._textAreaInput.onFocus((function(){i._context.privateViewEventBus.emit(new nn(!0))}))),i._register(i._textAreaInput.onBlur((function(){i._context.privateViewEventBus.emit(new nn(!1))}))),i}var Nn=n(927),Ln=(Dn.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},Dn.prototype.paste=function(e,t,n,i,o){this.commandDelegate.paste(e,t,n,i,o)},Dn.prototype.type=function(e,t){this.commandDelegate.type(e,t)},Dn.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},Dn.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},Dn.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},Dn.prototype.cut=function(e){this.commandDelegate.cut(e)},Dn.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(Nn.CoreNavigationCommands.SetSelection,{source:e,selection:t})},Dn.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Te.a(e.lineNumber,t):e},Dn.prototype._hasMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},Dn.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},Dn.prototype.dispatchMouse=function(e){var t=f.d&&this.configuration.options.get(81);e.middleButton&&!t?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):4<=e.mouseDownCount?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},Dn.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},Dn.prototype.moveTo=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveTo,this._usualArgs(e))},Dn.prototype._moveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveToSelect,this._usualArgs(e))},Dn.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})},Dn.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},Dn.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(e))},Dn.prototype._wordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelect,this._usualArgs(e))},Dn.prototype._wordSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelectDrag,this._usualArgs(e))},Dn.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(e))},Dn.prototype._lineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelect,this._usualArgs(e))},Dn.prototype._lineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelectDrag,this._usualArgs(e))},Dn.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(e))},Dn.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(e))},Dn.prototype._selectAll=function(){this._execMouseCommand(Nn.CoreNavigationCommands.SelectAll,{})},Dn.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},Dn.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},Dn.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},Dn.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},Dn.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},Dn.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},Dn.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},Dn.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},Dn.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},Dn.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},Dn.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},Dn);function Dn(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i}var Mn,Tn,In=((Mn=function(e,t){return(Mn=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){function n(){this.constructor=e}Mn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Pn,Tn=l.a),Pn.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},Pn.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},Pn.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},Pn.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},Pn.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},Pn.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},Pn.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},Pn.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},Pn.prototype._convertViewToModelMouseTarget=function(e){return Pn.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},Pn.convertViewToModelMouseTarget=function(e,t){return new An(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)},Pn);function Pn(e){var t=Tn.call(this)||this;return t.onDidContentSizeChange=null,t.onDidScroll=null,t.onDidGainFocus=null,t.onDidLoseFocus=null,t.onKeyDown=null,t.onKeyUp=null,t.onContextMenu=null,t.onMouseMove=null,t.onMouseLeave=null,t.onMouseUp=null,t.onMouseDown=null,t.onMouseDrag=null,t.onMouseDrop=null,t.onMouseWheel=null,t._viewModel=e,t}var An=(Rn.prototype.toString=function(){return je.toString(this)},Rn);function Rn(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r}var jn=n(894),Fn=(Bn.prototype.flush=function(){this._set(1,[])},Bn.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},Bn.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},Bn.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},Bn.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},Bn.prototype.getCount=function(){return this._lines.length},Bn.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},Bn.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var o=t-e+1;return this._rendLineNumberStart-=o,null}if(i<e)return null;for(var r=0,s=0,a=n;a<=i;a++){var l=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=l,s=1):s++)}if(e<n){var u;u=t<n?t-e+1:n-e,this._rendLineNumberStart-=u}return this._lines.splice(r,s)},Bn.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),o=!1,r=e;r<=t;r++)n<=r&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},Bn.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(o<e)return null;if(o<n+e)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);for(var r=[],s=0;s<n;s++)r[s]=this._createLine();var a=e-this._rendLineNumberStart,l=this._lines.slice(0,a),u=this._lines.slice(a,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(r).concat(u),c},Bn.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,o=0,r=e.length;o<r;o++){var s=e[o];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),l=Math.min(n,s.toLineNumber),u=a;u<=l;u++){var c=u-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},Bn);function Bn(e){this._createLine=e,this._set(1,[])}var Wn=(Vn.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},Vn.prototype.onConfigurationChanged=function(e){return!!e.hasChanged(107)},Vn.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},Vn.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Vn.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},Vn.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},Vn.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Vn.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},Vn.prototype.onZonesChanged=function(e){return!0},Vn.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},Vn.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},Vn.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},Vn.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new zn(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},o=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(o.rendLineNumberStart,o.lines)},Vn);function Vn(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Fn((function(){return t._host.createVisibleLine()}))}var zn=(Hn.prototype.render=function(e,t,n,i){var o={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(o.rendLineNumberStart+o.linesLength-1<t||n<o.rendLineNumberStart){o.rendLineNumberStart=t,o.linesLength=n-t+1,o.lines=[];for(var r=t;r<=n;r++)o.lines[r-t]=this.host.createVisibleLine();return this._finishRendering(o,!0,i),o}if(this._renderUntouchedLines(o,Math.max(t-o.rendLineNumberStart,0),Math.min(n-o.rendLineNumberStart,o.linesLength-1),i,t),o.rendLineNumberStart>t?(l=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,l,s,i,t),o.linesLength+=s-l+1):o.rendLineNumberStart<t&&0<(a=Math.min(o.linesLength,t-o.rendLineNumberStart))&&(this._removeLinesBefore(o,a),o.linesLength-=a),o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1<n)(l=o.rendLineNumberStart+o.linesLength)<=(s=n)&&(this._insertLinesAfter(o,l,s,i,t),o.linesLength+=s-l+1);else if(o.rendLineNumberStart+o.linesLength-1>n){var s,a,l=Math.max(0,n-o.rendLineNumberStart+1);0<(a=(s=o.linesLength-1)-l+1)&&(this._removeLinesAfter(o,a),o.linesLength-=a)}return this._finishRendering(o,!1,i),o},Hn.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var l=r+a;s[a].layoutLine(l,i[l-o])}},Hn.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},Hn.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)},Hn.prototype._insertLinesAfter=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)},Hn.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var o=e.lines[n+i].getDomNode();o&&this.domNode.removeChild(o)}e.lines.splice(n,t)},Hn.prototype._finishRenderingNewLines=function(e,t,n,i){var o=this.domNode.lastChild;t||!o?this.domNode.innerHTML=n:o.insertAdjacentHTML("afterend",n);for(var r=this.domNode.lastChild,s=e.linesLength-1;0<=s;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},Hn.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o<e.linesLength;o++){var r=e.lines[o];if(n[o]){var s=i.firstChild,a=r.getDomNode();a.parentNode.replaceChild(s,a),r.setDomNode(s)}}},Hn.prototype._finishRendering=function(e,t,n){var i=Hn._sb,o=e.linesLength,r=e.lines,s=e.rendLineNumberStart,a=[];i.reset();for(var l=!1,u=0;u<o;u++){var c=r[u];a[u]=!1,c.getDomNode()||c.renderLine(u+s,n[u],this.viewportData,i)&&(l=a[u]=!0)}l&&this._finishRenderingNewLines(e,t,i.build(),a),i.reset();var d=!1,h=[];for(u=0;u<o;u++)c=r[u],h[u]=!1,a[u]||c.renderLine(u+s,n[u],this.viewportData,i)&&(d=h[u]=!0);d&&this._finishRenderingInvalidLines(e,i.build(),h)},Hn._sb=Object(jn.a)(1e5),Hn);function Hn(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}var qn,Un,Kn=(qn=function(e,t){return(qn=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){function n(){this.constructor=e}qn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Gn=(Kn(Yn,Un=H),Yn.prototype.shouldRender=function(){if(Un.prototype.shouldRender.call(this))return!0;for(var e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1},Yn.prototype.dispose=function(){Un.prototype.dispose.call(this);for(var e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]},Yn.prototype.getDomNode=function(){return this.domNode},Yn.prototype.createVisibleLine=function(){return new Zn(this._context.configuration,this._dynamicOverlays)},Yn.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},Yn.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onConfigurationChanged(e);return!0},Yn.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},Yn.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},Yn.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Yn.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Yn.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Yn.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},Yn.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Yn.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},Yn.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,i=t.length;n<i;n++){var o=t[n];o.prepareRender(e),o.onDidRender()}},Yn.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},Yn.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},Yn);function Yn(e){var t=Un.call(this,e)||this;return t._visibleLines=new Wn(t),t.domNode=t._visibleLines.domNode,t._dynamicOverlays=[],t._isFocused=!1,t.domNode.setClassName("view-overlays"),t}var Zn=(Xn.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},Xn.prototype.setDomNode=function(e){this._domNode=Object(p.b)(e)},Xn.prototype.onContentChanged=function(){},Xn.prototype.onTokensChanged=function(){},Xn.prototype.onConfigurationChanged=function(e){this._lineHeight=this._configuration.options.get(49)},Xn.prototype.renderLine=function(e,t,n,i){for(var o="",r=0,s=this._dynamicOverlays.length;r<s;r++)o+=this._dynamicOverlays[r].render(n.startLineNumber,e);return this._renderedContent!==o&&(this._renderedContent=o,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(o),i.appendASCIIString("</div>"),!0)},Xn.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},Xn);function Xn(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}var $n,Jn=(Kn(Qn,$n=Gn),Qn.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._contentWidth=t.contentWidth,$n.prototype.onConfigurationChanged.call(this,e)||!0},Qn.prototype.onScrollChanged=function(e){return $n.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},Qn.prototype._viewOverlaysRender=function(e){$n.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},Qn);function Qn(e){var t=$n.call(this,e)||this,n=t._context.configuration.options.get(107);return t._contentWidth=n.contentWidth,t.domNode.setHeight(0),t}var ei,ti=(Kn(ni,ei=Gn),ni.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;c.a.applyFontInfo(this.domNode,t.get(34));var n=t.get(107);return this._contentLeft=n.contentLeft,ei.prototype.onConfigurationChanged.call(this,e)||!0},ni.prototype.onScrollChanged=function(e){return ei.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},ni.prototype._viewOverlaysRender=function(e){ei.prototype._viewOverlaysRender.call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)},ni);function ni(e){var t=ei.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._contentLeft=i.contentLeft,t.domNode.setClassName("margin-view-overlays"),t.domNode.setWidth(1),c.a.applyFontInfo(t.domNode,n.get(34)),t}var ii,oi,ri=(ii=function(e,t){return(ii=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){function n(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),si=function(e,t){this.top=e,this.left=t},ai=(ri(li,oi=H),li.prototype.dispose=function(){oi.prototype.dispose.call(this),this._widgets={}},li.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onConfigurationChanged(e)}return!0},li.prototype.onDecorationsChanged=function(e){return!0},li.prototype.onFlushed=function(e){return!0},li.prototype.onLineMappingChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onLineMappingChanged(e)}return!0},li.prototype.onLinesChanged=function(e){return!0},li.prototype.onLinesDeleted=function(e){return!0},li.prototype.onLinesInserted=function(e){return!0},li.prototype.onScrollChanged=function(e){return!0},li.prototype.onZonesChanged=function(e){return!0},li.prototype.addWidget=function(e){var t=new ui(this._context,this._viewDomNode,e);(this._widgets[t.id]=t).allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},li.prototype.setWidgetPosition=function(e,t,n){this._widgets[e.getId()].setPosition(t,n),this.setShouldRender()},li.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},li.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},li.prototype.onBeforeRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onBeforeRender(e)}},li.prototype.prepareRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].prepareRender(e)}},li.prototype.render=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].render(e)}},li);function li(e,t){var n=oi.call(this,e)||this;return n._viewDomNode=t,n._widgets={},n.domNode=Object(p.b)(document.createElement("div")),U.write(n.domNode,1),n.domNode.setClassName("contentWidgets"),n.domNode.setPosition("absolute"),n.domNode.setTop(0),n.overflowingContentWidgetsDomNode=Object(p.b)(document.createElement("div")),U.write(n.overflowingContentWidgetsDomNode,2),n.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),n}var ui=(ci.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),e.hasChanged(107)){var n=t.get(107);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}},ci.prototype.onLineMappingChanged=function(e){this._setPosition(this._range)},ci.prototype._setPosition=function(e){if(this._range=e,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},ci.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},ci.prototype.setPosition=function(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},ci.prototype._layoutBoxInViewport=function(e,t,n,i,o){var r=e.top,s=r,a=t.top+this._lineHeight,l=r-i,u=i<=s,c=a,d=i<=o.viewportHeight-a,h=e.left,p=t.left;return h+n>o.scrollLeft+o.viewportWidth&&(h=o.scrollLeft+o.viewportWidth-n),p+n>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-n),h<o.scrollLeft&&(h=o.scrollLeft),p<o.scrollLeft&&(p=o.scrollLeft),{fitsAbove:u,aboveTop:l,aboveLeft:h,fitsBelow:d,belowTop:c,belowLeft:p}},ci.prototype._layoutHorizontalSegmentInPage=function(e,t,n,i){var o,s=Math.max(0,t.left-i),a=Math.min(t.left+t.width+i,e.width),l=t.left+n-r.e.scrollX;return a<l+i&&(l-=o=l-(a-i),n-=o),l<s&&(l-=o=l-s,n-=o),[n,l]},ci.prototype._layoutBoxInPage=function(e,t,n,i,o){var s=e.top-i,a=t.top+this._lineHeight,l=r.C(this._viewDomNode.domNode),u=l.top+s-r.e.scrollY,c=l.top+a-r.e.scrollY,d=r.y(document.body),h=this._layoutHorizontalSegmentInPage(d,l,e.left-o.scrollLeft+this._contentLeft,n),p=h[0],f=h[1],g=this._layoutHorizontalSegmentInPage(d,l,t.left-o.scrollLeft+this._contentLeft,n),m=g[0],v=g[1],y=22<=u,b=c+i<=d.height-22;return this._fixedOverflowWidgets?{fitsAbove:y,aboveTop:Math.max(u,22),aboveLeft:f,fitsBelow:b,belowTop:c,belowLeft:v}:{fitsAbove:y,aboveTop:Math.max(s,22),aboveLeft:p,fitsBelow:b,belowTop:a,belowLeft:m}},ci.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new si(e.top,e.left+this._contentLeft)},ci.prototype._getTopAndBottomLeft=function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];for(var n=t[0],i=t[0],o=0,r=t;o<r.length;o++){var s=r[o];s.lineNumber<n.lineNumber&&(n=s),s.lineNumber>i.lineNumber&&(i=s)}for(var a=1073741824,l=0,u=n.ranges;l<u.length;l++)(p=u[l]).left<a&&(a=p.left);for(var c=1073741824,d=0,h=i.ranges;d<h.length;d++){var p;(p=h[d]).left<c&&(c=p.left)}var f=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,g=new si(f,a),m=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop;return[g,new si(m,c)]},ci.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),i=n[0],o=n[1];if(!i||!o)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var r=this.domNode.domNode;this._cachedDomNodeClientWidth=r.clientWidth,this._cachedDomNodeClientHeight=r.clientHeight}if(t=this.allowEditorOverflow?this._layoutBoxInPage(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0,l=this._preference;a<l.length;a++){var u=l[a];if(1===u){if(!t)return null;if(2===s||t.fitsAbove)return new si(t.aboveTop,t.aboveLeft)}else{if(2!==u)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i;if(!t)return null;if(2===s||t.fitsBelow)return new si(t.belowTop,t.belowLeft)}}return null},ci.prototype.onBeforeRender=function(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},ci.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},ci.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?this.domNode.setTop(this._renderData.top):this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},ci);function ci(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(p.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var i=this._context.configuration.options,o=i.get(107);this._fixedOverflowWidgets=i.get(29),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=i.get(49),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}n(1340);var di,hi,pi=n(459),fi=(di=function(e,t){return(di=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){function n(){this.constructor=e}di(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gi=!0,mi=(fi(vi,hi=At),vi.prototype.dispose=function(){this._context.removeEventHandler(this),hi.prototype.dispose.call(this)},vi.prototype._readFromSelections=function(){var e=!1,t=gi?this._selections.slice(0,1):this._selections,n=t.map((function(e){return e.positionLineNumber}));n.sort((function(e,t){return e-t})),pi.g(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);var i=t.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e},vi.prototype.onThemeChanged=function(e){return this._readFromSelections()},vi.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._renderLineHighlight=t.get(72),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0},vi.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},vi.prototype.onFlushed=function(e){return!0},vi.prototype.onLinesDeleted=function(e){return!0},vi.prototype.onLinesInserted=function(e){return!0},vi.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},vi.prototype.onZonesChanged=function(e){return!0},vi.prototype.prepareRender=function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length,r=0,s=[],a=n;a<=i;a++){for(var l=a-n;r<o&&this._cursorLineNumbers[r]<a;)r++;r<o&&this._cursorLineNumbers[r]===a?s[l]=t:s[l]=""}this._renderData=s}else this._renderData=null},vi.prototype.render=function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]},vi);function vi(e){var t=hi.call(this)||this;t._context=e;var n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._renderLineHighlight=n.get(72),t._contentLeft=i.contentLeft,t._contentWidth=i.contentWidth,t._selectionIsEmpty=!0,t._cursorLineNumbers=[],t._selections=[],t._renderData=null,t._context.addEventHandler(t),t}var yi,bi=(fi(_i,yi=mi),_i.prototype._renderOne=function(e){return'<div class="current-line'+(this._shouldRenderOther()?" current-line-both":"")+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},_i.prototype._shouldRenderThis=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},_i.prototype._shouldRenderOther=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},_i);function _i(){return null!==yi&&yi.apply(this,arguments)||this}var wi,Ci=(fi(Si,wi=mi),Si.prototype._renderOne=function(e){return'<div class="current-line current-line-margin'+(this._shouldRenderOther()?" current-line-margin-both":"")+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},Si.prototype._shouldRenderThis=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},Si.prototype._shouldRenderOther=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},Si);function Si(){return null!==wi&&wi.apply(this,arguments)||this}Object(he.e)((function(e,t){gi=!1;var n=e.getColor(Bt.i);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }")),!n||n.isTransparent()||e.defines(Bt.j)){var i=e.getColor(Bt.j);i&&(gi=!0,t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}})),n(1341);var Oi,xi,ki=((Oi=function(e,t){return(Oi=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){function n(){this.constructor=e}Oi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ei,xi=At),Ei.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,xi.prototype.dispose.call(this)},Ei.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},Ei.prototype.onDecorationsChanged=function(e){return!0},Ei.prototype.onFlushed=function(e){return!0},Ei.prototype.onLinesChanged=function(e){return!0},Ei.prototype.onLinesDeleted=function(e){return!0},Ei.prototype.onLinesInserted=function(e){return!0},Ei.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},Ei.prototype.onZonesChanged=function(e){return!0},Ei.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o];s.options.className&&(n[i++]=s)}n=n.sort((function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:i<n?1:Ie.a.compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,u=[],c=a;c<=l;c++)u[c-a]="";this._renderWholeLineDecorations(e,n,u),this._renderNormalDecorations(e,n,u),this._renderResult=u},Ei.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var l=t[s];if(l.options.isWholeLine)for(var u='<div class="cdr '+l.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=c;h<=d;h++)n[h-o]+=u}},Ei.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,l=0,u=t.length;l<u;l++){var c=t[l];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),p=c.range;h&&1===p.endColumn&&p.endLineNumber!==p.startLineNumber&&(p=new Ie.a(p.startLineNumber,p.startColumn,p.endLineNumber-1,this._context.model.getLineMaxColumn(p.endLineNumber-1))),a=r===d&&s===h&&Ie.a.areIntersectingOrTouching(a,p)?Ie.a.plusRange(a,p):(null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n),r=d,s=h,p)}}null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n)},Ei.prototype._renderNormalDecoration=function(e,t,n,i,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var l=0,u=a.length;l<u;l++){var c=a[l];if(!c.outsideRenderedLine){var d=c.lineNumber-r;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new te(h.left,this._typicalHalfwidthCharacterWidth))}for(var p=0,f=c.ranges.length;p<f;p++){var g=c.ranges[p],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+o+'px;"></div>';s[d]+=m}}}},Ei.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Ei);function Ei(e){var t=xi.call(this)||this;t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}var Ni,Li,Di=n(688),Mi=((Ni=function(e,t){return(Ni=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){function n(){this.constructor=e}Ni(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ti,Li=H),Ti.prototype.dispose=function(){Li.prototype.dispose.call(this)},Ti.prototype._setLayout=function(){var e=this._context.configuration.options,t=e.get(107);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(54).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)},Ti.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},Ti.prototype.getDomNode=function(){return this.scrollbarDomNode},Ti.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},Ti.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var t=this._context.configuration.options,n=t.get(78),i=t.get(56),o=t.get(27),r={handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:o};this.scrollbar.updateOptions(r)}return e.hasChanged(107)&&this._setLayout(),!0},Ti.prototype.onScrollChanged=function(e){return!0},Ti.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(he.d)(this._context.theme.type)),!0},Ti.prototype.prepareRender=function(e){},Ti.prototype.render=function(e){this.scrollbar.renderNow()},Ti);function Ti(e,t,n,i){var o=Li.call(this,e)||this,s=o._context.configuration.options,a=s.get(78),l=s.get(56),u=s.get(27),c={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(he.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:a.vertical,horizontal:a.horizontal,verticalHasArrows:a.verticalHasArrows,horizontalHasArrows:a.horizontalHasArrows,verticalScrollbarSize:a.verticalScrollbarSize,verticalSliderSize:a.verticalSliderSize,horizontalScrollbarSize:a.horizontalScrollbarSize,horizontalSliderSize:a.horizontalSliderSize,handleMouseWheel:a.handleMouseWheel,alwaysConsumeMouseWheel:a.alwaysConsumeMouseWheel,arrowSize:a.arrowSize,mouseWheelScrollSensitivity:l,fastScrollSensitivity:u};function d(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=o._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}o._context.viewLayout.setScrollPositionNow(i)}return o.scrollbar=o._register(new Di.c(t.domNode,c,o._context.viewLayout.getScrollable())),U.write(o.scrollbar.getDomNode(),5),o.scrollbarDomNode=Object(p.b)(o.scrollbar.getDomNode()),o.scrollbarDomNode.setPosition("absolute"),o._setLayout(),o._register(r.j(n.domNode,"scroll",(function(e){return d(n.domNode,!0,!0)}))),o._register(r.j(t.domNode,"scroll",(function(e){return d(t.domNode,!0,!1)}))),o._register(r.j(i.domNode,"scroll",(function(e){return d(i.domNode,!0,!1)}))),o._register(r.j(o.scrollbarDomNode.domNode,"scroll",(function(e){return d(o.scrollbarDomNode.domNode,!0,!1)}))),o}n(1342);var Ii,Pi,Ai=(Ii=function(e,t){return(Ii=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){function n(){this.constructor=e}Ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ri=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},ji=(Ai(Fi,Pi=At),Fi.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++)i[o-e]=[];if(0===n.length)return i;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1}));for(var r=null,s=0,a=0,l=n.length;a<l;a++){var u=n[a],c=u.className,d=Math.max(u.startLineNumber,e)-e,h=Math.min(u.endLineNumber,t)-e;s=r===c?(d=Math.max(s+1,d),Math.max(s,h)):(r=c,h);for(var p=d;p<=s;p++)i[p].push(r)}return i},Fi);function Fi(){return null!==Pi&&Pi.apply(this,arguments)||this}var Bi,Wi=(Ai(Vi,Bi=ji),Vi.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Bi.prototype.dispose.call(this)},Vi.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._glyphMargin=t.get(40),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Vi.prototype.onDecorationsChanged=function(e){return!0},Vi.prototype.onFlushed=function(e){return!0},Vi.prototype.onLinesChanged=function(e){return!0},Vi.prototype.onLinesDeleted=function(e){return!0},Vi.prototype.onLinesInserted=function(e){return!0},Vi.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Vi.prototype.onZonesChanged=function(e){return!0},Vi.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.glyphMarginClassName;a&&(n[i++]=new Ri(s.range.startLineNumber,s.range.endLineNumber,a))}return n},Vi.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._lineHeight.toString(),r='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+o+'px;"></div>',s=[],a=t;a<=n;a++){var l=a-t,u=i[l];0===u.length?s[l]="":s[l]='<div class="cgmr codicon '+u.join(" ")+r}this._renderResult=s}else this._renderResult=null},Vi.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Vi);function Vi(e){var t=Bi.call(this)||this;t._context=e;var n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._glyphMargin=n.get(40),t._glyphMarginLeft=i.glyphMarginLeft,t._glyphMarginWidth=i.glyphMarginWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1343);var zi,Hi,qi=((zi=function(e,t){return(zi=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){function n(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ui,Hi=At),Ui.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Hi.prototype.dispose.call(this)},Ui.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(108),i=t.get(34);return this._lineHeight=t.get(49),this._spaceWidth=i.spaceWidth,this._enabled=t.get(70),this._activeIndentEnabled=t.get(43),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0},Ui.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},Ui.prototype.onDecorationsChanged=function(e){return!0},Ui.prototype.onFlushed=function(e){return!0},Ui.prototype.onLinesChanged=function(e){return!0},Ui.prototype.onLinesDeleted=function(e){return!0},Ui.prototype.onLinesInserted=function(e){return!0},Ui.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Ui.prototype.onZonesChanged=function(e){return!0},Ui.prototype.onLanguageConfigurationChanged=function(e){return!0},Ui.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize*this._spaceWidth,o=e.scrollWidth,r=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n),a=0,l=0,u=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var c=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=c.startLineNumber,l=c.endLineNumber,u=c.indent}for(var d=[],h=t;h<=n;h++){var p=a<=h&&h<=l,f=h-t,g=s[f],m="";if(1<=g)for(var v=e.visibleRangeForPosition(new Te.a(h,1)),y=v?v.left:0,b=1;b<=g&&(m+='<div class="'+(p&&b===u?"cigra":"cigr")+'" style="left:'+y+"px;height:"+r+"px;width:"+i+'px"></div>',!(o<(y+=i)||0<this._maxIndentLeft&&y>this._maxIndentLeft));b++);d[f]=m}this._renderResult=d}else this._renderResult=null},Ui.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Ui);function Ui(e){var t=Hi.call(this)||this;t._context=e,t._primaryLineNumber=0;var n=t._context.configuration.options,i=n.get(108),o=n.get(34);return t._lineHeight=n.get(49),t._spaceWidth=o.spaceWidth,t._enabled=n.get(70),t._activeIndentEnabled=n.get(43),t._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*o.typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Bt.h);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(Bt.a)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")})),n(1344);var Ki,Gi=(Ki=function(e,t){return(Ki=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){function n(){this.constructor=e}Ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yi=(Zi.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},Zi.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},Zi);function Zi(){this._currentVisibleRange=new Ie.a(1,1,1,1)}var Xi,$i=function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r},Ji=(Gi(Qi,Xi=H),Qi.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),Xi.prototype.dispose.call(this)},Qi.prototype.getDomNode=function(){return this.domNode},Qi.prototype.createVisibleLine=function(){return new we(this._viewLineOptions)},Qi.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(34),i=t.get(108);return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(75),this._cursorSurroundingLines=t.get(19),this._cursorSurroundingLinesStyle=t.get(20),this._canUseLayerHinting=!t.get(22),c.a.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},Qi.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new be(e,this._context.theme.type);if(this._viewLineOptions.equals(t))return!1;this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++)this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);return!0},Qi.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},Qi.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},Qi.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},Qi.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Qi.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Qi.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Qi.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new $i(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},Qi.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},Qi.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Qi.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},Qi.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},Qi.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new Te.a(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(i<o||r<i)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new Te.a(i,s)},Qi.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===we.CLASS_NAME)return e;e=e.parentElement}return null},Qi.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)if(e===this._visibleLines.getVisibleLine(i).getDomNode())return i;return-1},Qi.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||n<e?-1:this._visibleLines.getVisibleLine(e).getWidth()},Qi.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=Ie.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var o=[],r=0,s=new ve(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(i.startLineNumber,1)).lineNumber);for(var l=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<l||u<c)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(c),p=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);p&&(t&&c<n&&a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(c+1,1)).lineNumber)&&(p.ranges[p.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth),o[r++]=new ee(p.outsideRenderedLine,c,p.ranges))}return 0===r?null:o},Qi.prototype._visibleRangesForLineRange=function(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new ve(this.domNode.domNode,this._textRangeRestingSpot))},Qi.prototype.visibleRangeForPosition=function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ie(t.outsideRenderedLine,t.ranges[0].left):null},Qi.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},Qi.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},Qi.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},Qi.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},Qi.prototype.prepareRender=function(){throw new Error("Not supported")},Qi.prototype.render=function(){throw new Error("Not supported")},Qi.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},Qi.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},Qi.prototype._computeScrollTopToRevealRange=function(e,t,n,i){var o,r,s,a=e.top,l=e.height,u=a+l;if(o=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),r=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight,"mouse"!==t||"default"!==this._cursorSurroundingLinesStyle){var c=Math.min(l/this._lineHeight/2,this._cursorSurroundingLines);o-=c*this._lineHeight,r+=Math.max(0,c-1)*this._lineHeight}if(0!==i&&4!==i||(r+=this._lineHeight),l<r-o)s=o;else if(1===i||2===i)if(2===i&&a<=o&&r<=u)s=a;else{var d=(o+r)/2;s=Math.max(0,d-l/2)}else s=this._computeMinimumScrolling(a,u,o,r,3===i,4===i);return s},Qi.prototype._computeScrollLeftToRevealRange=function(e,t,n){var i=0,o=this._context.viewLayout.getCurrentViewport(),r=o.left,s=r+o.width,a=this._visibleRangesForLineRange(e,t,n),l=1073741824,u=0;if(!a)return{scrollLeft:r,maxHorizontalOffset:i};for(var c=0,d=a.ranges;c<d.length;c++){var h=d[c];h.left<l&&(l=h.left),h.left+h.width>u&&(u=h.left+h.width)}return i=u,l=Math.max(0,l-Qi.HORIZONTAL_EXTRA_PX),u+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(r,s,l,u),maxHorizontalOffset:i}},Qi.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)<s&&!o?r?Math.max(0,i-s):n<e?n:t<i?Math.max(0,i-s):e:n},Qi.HORIZONTAL_EXTRA_PX=30,Qi);function Qi(e,t){var n=Xi.call(this,e)||this;n._linesContent=t,n._textRangeRestingSpot=document.createElement("div"),n._visibleLines=new Wn(n),n.domNode=n._visibleLines.domNode;var i=n._context.configuration,o=n._context.configuration.options,r=o.get(34),s=o.get(108);return n._lineHeight=o.get(49),n._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,n._isViewportWrapping=s.isViewportWrapping,n._revealHorizontalRightPadding=o.get(75),n._cursorSurroundingLines=o.get(19),n._cursorSurroundingLinesStyle=o.get(20),n._canUseLayerHinting=!o.get(22),n._viewLineOptions=new be(i,n._context.theme.type),U.write(n.domNode,7),n.domNode.setClassName("view-lines"),c.a.applyFontInfo(n.domNode,r),n._maxLineWidth=0,n._asyncUpdateLineWidths=new y.d((function(){n._updateLineWidthsSlow()}),200),n._lastRenderedData=new Yi,n._horizontalRevealRequest=null,n}n(1345);var eo,to,no=((eo=function(e,t){return(eo=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){function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(io,to=ji),io.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,to.prototype.dispose.call(this)},io.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0},io.prototype.onDecorationsChanged=function(e){return!0},io.prototype.onFlushed=function(e){return!0},io.prototype.onLinesChanged=function(e){return!0},io.prototype.onLinesDeleted=function(e){return!0},io.prototype.onLinesInserted=function(e){return!0},io.prototype.onScrollChanged=function(e){return e.scrollTopChanged},io.prototype.onZonesChanged=function(e){return!0},io.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.linesDecorationsClassName;a&&(n[i++]=new Ri(s.range.startLineNumber,s.range.endLineNumber,a))}return n},io.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[],s=t;s<=n;s++){for(var a=s-t,l=i[a],u="",c=0,d=l.length;c<d;c++)u+='<div class="cldr '+l[c]+o;r[a]=u}this._renderResult=r},io.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},io);function io(e){var t=to.call(this)||this;t._context=e;var n=t._context.configuration.options.get(107);return t._decorationsLeft=n.decorationsLeft,t._decorationsWidth=n.decorationsWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1346);var oo,ro,so=((oo=function(e,t){return(oo=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){function n(){this.constructor=e}oo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ao,ro=ji),ao.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,ro.prototype.dispose.call(this)},ao.prototype.onConfigurationChanged=function(e){return!0},ao.prototype.onDecorationsChanged=function(e){return!0},ao.prototype.onFlushed=function(e){return!0},ao.prototype.onLinesChanged=function(e){return!0},ao.prototype.onLinesDeleted=function(e){return!0},ao.prototype.onLinesInserted=function(e){return!0},ao.prototype.onScrollChanged=function(e){return e.scrollTopChanged},ao.prototype.onZonesChanged=function(e){return!0},ao.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.marginClassName;a&&(n[i++]=new Ri(s.range.startLineNumber,s.range.endLineNumber,a))}return n},ao.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=[],r=t;r<=n;r++){for(var s=r-t,a=i[s],l="",u=0,c=a.length;u<c;u++)l+='<div class="cmdr '+a[u]+'" style=""></div>';o[s]=l}this._renderResult=o},ao.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},ao);function ao(e){var t=ro.call(this)||this;return t._context=e,t._renderResult=null,t._context.addEventHandler(t),t}n(1347);var lo=(uo._clamp=function(e){return e<0?0:255<e?255:0|e},uo.Empty=new uo(0,0,0,0),uo);function uo(e,t,n,i){this.r=uo._clamp(e),this.g=uo._clamp(t),this.b=uo._clamp(n),this.a=uo._clamp(i)}var co=n(454),ho=(po.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new po),this._INSTANCE},po.prototype._updateColorMap=function(){var e=co.B.getColorMap();if(!e)return this._colors=[lo.Empty],void(this._backgroundIsLight=!0);this._colors=[lo.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new lo(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=.5<=i,this._onDidChange.fire(void 0)},po.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},po.prototype.backgroundIsLight=function(){return this._backgroundIsLight},po._INSTANCE=null,po);function po(){var e=this;this._onDidChange=new a.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),co.B.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}var fo=n(461),go=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),mo=(vo.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;i<o;i++)n[i]=e[i]*t;return n},vo.prototype.renderChar=function(e,t,n,i,o,r,s,a){var l=+this.scale,u=2*this.scale;if(!(t+l>e.width||n+u>e.height))for(var c,d=a?this.charDataLight:this.charDataNormal,h=(c=i,(c-=32)<0||96<c?s<=2?(c+96)%96:95:c),p=4*e.width,f=r.r,g=r.g,m=r.b,v=o.r-f,y=o.g-g,b=o.b-m,_=e.data,w=h*l*u,C=n*p+4*t,S=0;S<u;S++){for(var O=C,x=0;x<l;x++){var k=d[w++]/255;_[O++]=f+v*k,_[O++]=g+y*k,_[O++]=m+b*k,O++}C+=p}},vo.prototype.blockRenderChar=function(e,t,n,i,o,r){var s=+this.scale,a=2*this.scale;if(!(t+s>e.width||n+a>e.height))for(var l=4*e.width,u=o.r,c=o.g,d=o.b,h=u+.5*(i.r-u),p=c+.5*(i.g-c),f=d+.5*(i.b-d),g=e.data,m=n*l+4*t,v=0;v<a;v++){for(var y=m,b=0;b<s;b++)g[y++]=h,g[y++]=p,g[y++]=f,y++;m+=l}},vo);function vo(e,t){this.scale=t,this.charDataNormal=vo.soften(e,.8),this.charDataLight=vo.soften(e,50/60)}function yo(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=_o[e[n]]<<4|15&_o[e[n+1]];return t}var bo=n(880),_o={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},wo={1:Object(bo.a)((function(){return yo("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:Object(bo.a)((function(){return yo("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},Co=(So.create=function(e,t){return this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily?this.lastCreated:(n=wo[e]?new mo(wo[e](),e):So.createFromSampleData(So.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n);var n},So.createSampleData=function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold 16px "+e,n.textBaseline="middle";for(var i=0,o=0,r=go;o<r.length;o++){var s=r[o];n.fillText(String.fromCharCode(s),i,8),i+=10}return n.getImageData(0,0,960,16)},So.createFromSampleData=function(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");var n=So._downsample(e,t);return new mo(n,t)},So._downsampleChar=function(e,t,n,i,o){for(var r=+o,s=2*o,a=i,l=0,u=0;u<s;u++)for(var c=u/s*16,d=(u+1)/s*16,h=0;h<r;h++){for(var p=h/r*10,f=(h+1)/r*10,g=0,m=0,v=c;v<d;v++)for(var y=t+3840*Math.floor(v),b=1-(v-Math.floor(v)),_=p;_<f;_++){var w=1-(_-Math.floor(_)),C=y+4*Math.floor(_),S=w*b;m+=S,g+=e[C]*e[C+3]/255*S}var O=g/m;l=Math.max(l,O),n[a++]=O}return l},So._downsample=function(e,t){for(var n=2*t*1*t,i=96*n,o=new Uint8ClampedArray(i),r=0,s=0,a=0,l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,s,o,r,t)),r+=n,s+=40;if(0<a)for(var u=255/a,c=0;c<i;c++)o[c]*=u;return o},So);function So(){}var Oo,xo=n(599),ko=(Oo=function(e,t){return(Oo=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){function n(){this.constructor=e}Oo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function Eo(e,t){return 1===e?2*t:3*t}function No(e,t){return+t}var Lo=(Do.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.fontScale===e.fontScale&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},Do);function Do(e){var t=this,n=e.options,i=n.get(105),o=n.get(107),r=n.get(34);this.renderMinimap=0|o.renderMinimap,this.scrollBeyondLastLine=n.get(80);var s=n.get(54);this.showSlider=s.showSlider,this.fontScale=Math.round(s.scale*i),this.charRenderer=Object(bo.a)((function(){return Co.create(t.fontScale,r.fontFamily)})),this.pixelRatio=i,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(49),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=Math.floor(i*this.minimapWidth),this.canvasInnerHeight=Math.floor(i*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/i,this.canvasOuterHeight=this.canvasInnerHeight/i}var Mo=(To.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},To.prototype.getDesiredScrollTopFromTouchLocation=function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)},To.create=function(e,t,n,i,o,r,s,a,l){var u,c,d=e.pixelRatio,h=Eo(e.renderMinimap,e.fontScale),p=Math.floor(e.canvasInnerHeight/h),f=e.lineHeight;if(o&&n!==r){var g=n-t+1;u=Math.floor(g*h/d)}else{var m=i/f;u=Math.floor(m*h/d)}c=e.scrollBeyondLastLine?(r-1)*h/d:Math.max(0,r*h/d-u);var v=(c=Math.min(e.minimapHeight-u,c))/(a-i),y=s*v,b=0;if(e.scrollBeyondLastLine&&(b=m=i/f),r+b<=p)return new To(s,a,v,y,u,_=1,r);var _=Math.max(1,Math.floor(t-y*d/h));return l&&l.scrollHeight===a&&(l.scrollTop>s&&(_=Math.min(_,l.startLineNumber)),l.scrollTop<s&&(_=Math.max(_,l.startLineNumber))),new To(s,a,v,y,u,_,Math.min(r,_+p-1))},To);function To(e,t,n,i,o,r,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=o,this.startLineNumber=r,this.endLineNumber=s}var Io=(Po.prototype.onContentChanged=function(){this.dy=-1},Po.prototype.onTokensChanged=function(){this.dy=-1},Po.INVALID=new Po(-1),Po);function Po(e){this.dy=e}var Ao=(Ro.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get().lines,n=0,i=t.length;n<i;n++)if(-1===t[n].dy)return!1;return!0},Ro.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},Ro.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},Ro.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Ro.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},Ro.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},Ro.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},Ro);function Ro(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Fn((function(){return Io.INVALID})),this._renderedLines._set(e.startLineNumber,n)}var jo=(Fo.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},Fo._createBackgroundFillData=function(e,t,n){for(var i=n.r,o=n.g,r=n.b,s=new Uint8ClampedArray(e*t*4),a=0,l=0;l<t;l++)for(var u=0;u<e;u++)s[a]=i,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s},Fo);function Fo(e,t,n,i){this._backgroundFillData=Fo._createBackgroundFillData(t,n,i),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}var Bo,Wo=(ko(Vo,Bo=H),Vo.prototype.scrollDueToTouchEvent=function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._context.viewLayout.setScrollPositionNow({scrollTop:n})},Vo.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),Bo.prototype.dispose.call(this)},Vo.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},Vo.prototype.getDomNode=function(){return this._domNode},Vo.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},Vo.prototype._getBuffer=function(){return this._buffers||0<this._options.canvasInnerWidth&&0<this._options.canvasInnerHeight&&(this._buffers=new jo(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},Vo.prototype._onOptionsMaybeChanged=function(){var e=new Lo(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},Vo.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},Vo.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0},Vo.prototype.onFlushed=function(e){return!(this._lastRenderData=null)},Vo.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},Vo.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},Vo.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},Vo.prototype.onScrollChanged=function(e){return this._renderDecorations=!0},Vo.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},Vo.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,!(this._buffers=null)},Vo.prototype.onZonesChanged=function(e){return!(this._lastRenderData=null)},Vo.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0},Vo.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(fo.Ib),this._renderDecorations=!0},Vo.prototype.prepareRender=function(e){},Vo.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=Mo.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,0<e.viewportData.whitespaceViewportData.length,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,i=Math.min(this._options.minimapWidth,Math.round(n*No(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(i),this._sliderHorizontal.setWidth(this._options.minimapWidth-i),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)},Vo.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new Ie.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,i=n.renderMinimap,o=n.canvasInnerWidth,r=n.canvasInnerHeight,s=Eo(i,this._options.fontScale),a=No(0,this._options.fontScale),l=this._context.model.getOptions().tabSize,u=this._decorationsCanvas.domNode.getContext("2d");u.clearRect(0,0,o,r);for(var c=new Map,d=0;d<this._selections.length;d++)for(var h=this._selections[d],p=h.startLineNumber;p<=h.endLineNumber;p++)this.renderDecorationOnLine(u,c,h,this._selectionColor,e,p,s,s,l,a);for(d=0;d<t.length;d++){var f=t[d];if(f.options.minimap){var g=f.options.minimap.getColor(this._context.theme);for(p=f.range.startLineNumber;p<=f.range.endLineNumber;p++)switch(f.options.minimap.position){case xo.c.Inline:this.renderDecorationOnLine(u,c,f.range,g,e,p,s,s,l,a);continue;case xo.c.Gutter:var m=(p-e.startLineNumber)*s;this.renderDecoration(u,g,2,m,2,s);continue}}}}},Vo.prototype.renderDecorationOnLine=function(e,t,n,i,o,r,s,a,l,u){var c=(r-o.startLineNumber)*a;if(!(c+s<0||c>this._options.canvasInnerHeight)){var d=t.get(r),h=!d;if(!d){var p=this._context.model.getLineContent(r);d=[pe.f];for(var f=1;f<p.length+1;f++){var g=p.charCodeAt(f-1),m=9===g?l*u:Tt.y(g)?2*u:u;d[f]=d[f-1]+m}t.set(r,d)}var v=n.startColumn,y=n.endColumn,b=n.startLineNumber,_=n.endLineNumber,w=b===r?d[v-1]:pe.f,C=r<_?d.length-1:y-1;if(0<C){var S=d[C]-w||2;this.renderDecoration(e,i,w,c,S,s)}h&&this.renderLineHighlight(e,i,c,s)}},Vo.prototype.renderLineHighlight=function(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(pe.f,n,e.canvas.width,i)},Vo.prototype.renderDecoration=function(e,t,n,i,o,r){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,o,r)},Vo.prototype.renderLines=function(e){var t=this._options.renderMinimap,n=this._options.charRenderer(),i=e.startLineNumber,o=e.endLineNumber,r=Eo(t,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new Ao(e,s.imageData,s.lines)}var a=this._getBuffer();if(!a)return null;for(var l=Vo._renderUntouchedLines(a,i,o,r,this._lastRenderData),u=l[0],c=l[1],d=l[2],h=this._context.model.getMinimapLinesRenderingData(i,o,d),p=h.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,v=[],y=0,b=o-i+1;y<b;y++)d[y]&&Vo._renderLine(a,f,g,t,this._tokensColorTracker,n,m,p,h.data[y],this._options.fontScale),v[y]=new Io(m),m+=r;var _=-1===u?0:u,w=(-1===c?a.height:c)-_;return this._canvas.domNode.getContext("2d").putImageData(a,0,0,0,_,a.width,w),new Ao(e,a,v)},Vo._renderUntouchedLines=function(e,t,n,i,o){var r=[];if(!o){for(var s=0,a=n-t+1;s<a;s++)r[s]=!0;return[-1,-1,r]}for(var l=o._get(),u=l.imageData.data,c=l.rendLineNumberStart,d=l.lines,h=d.length,p=e.width,f=e.data,g=(n-t+1)*i*p*4,m=-1,v=-1,y=-1,b=-1,_=-1,w=-1,C=0,S=t;S<=n;S++){var O=S-t,x=S-c,k=0<=x&&x<h?d[x].dy:-1;if(-1!==k){var E=k*p*4,N=(k+i)*p*4,L=C*p*4,D=(C+i)*p*4;b===E&&w===L?b=N:(-1!==y&&(f.set(u.subarray(y,b),_),-1===m&&0===y&&y===_&&(m=b),-1===v&&b===g&&y===_&&(v=y)),y=E,b=N,_=L),w=D,r[O]=!1,C+=i}else r[O]=!0,C+=i}return-1!==y&&(f.set(u.subarray(y,b),_),-1===m&&0===y&&y===_&&(m=b),-1===v&&b===g&&y===_&&(v=y)),[-1===m?-1:m/(4*p),-1===v?-1:v/(4*p),r]},Vo._renderLine=function(e,t,n,i,o,r,s,a,l,u){for(var c=l.content,d=l.tokens,h=No(0,u),p=e.width-h,f=pe.f,g=0,m=0,v=0,y=d.getCount();v<y;v++)for(var b=d.getEndOffset(v),_=d.getForeground(v),w=o.getColor(_);g<b;g++){if(p<f)return;var C=c.charCodeAt(g);if(9===C){var S=a-(g+m)%a;m+=S-1,f+=S*h}else if(32===C)f+=h;else for(var O=Tt.y(C)?2:1,x=0;x<O;x++)if(2===i?r.blockRenderChar(e,f,s,w,t,n):r.renderChar(e,f,s,C,w,t,u,n),p<(f+=h))return}},Vo);function Vo(e){var t=Bo.call(this,e)||this;return t._selections=[],t._renderDecorations=!1,t._gestureInProgress=!1,t._options=new Lo(t._context.configuration),t._lastRenderData=null,t._buffers=null,t._selectionColor=t._context.theme.getColor(fo.Ib),t._domNode=Object(p.b)(document.createElement("div")),U.write(t._domNode,8),t._domNode.setClassName(t._getMinimapDomNodeClassName()),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._shadow=Object(p.b)(document.createElement("div")),t._shadow.setClassName("minimap-shadow-hidden"),t._domNode.appendChild(t._shadow),t._canvas=Object(p.b)(document.createElement("canvas")),t._canvas.setPosition("absolute"),t._canvas.setLeft(0),t._domNode.appendChild(t._canvas),t._decorationsCanvas=Object(p.b)(document.createElement("canvas")),t._decorationsCanvas.setPosition("absolute"),t._decorationsCanvas.setClassName("minimap-decorations-layer"),t._decorationsCanvas.setLeft(0),t._domNode.appendChild(t._decorationsCanvas),t._slider=Object(p.b)(document.createElement("div")),t._slider.setPosition("absolute"),t._slider.setClassName("minimap-slider"),t._slider.setLayerHinting(!0),t._slider.setContain("strict"),t._domNode.appendChild(t._slider),t._sliderHorizontal=Object(p.b)(document.createElement("div")),t._sliderHorizontal.setPosition("absolute"),t._sliderHorizontal.setClassName("minimap-slider-horizontal"),t._slider.appendChild(t._sliderHorizontal),t._tokensColorTracker=ho.getInstance(),t._applyLayout(),t._mouseDownListener=r.o(t._domNode.domNode,"mousedown",(function(e){e.preventDefault();var n=t._options.renderMinimap;if(0!==n&&t._lastRenderData){var i=Eo(n,t._options.fontScale),o=t._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(o/i)+t._lastRenderData.renderedLayout.startLineNumber;r=Math.min(r,t._context.model.getLineCount()),t._context.privateViewEventBus.emit(new un("mouse",new Ie.a(r,1,r,1),1,!1,0))}})),t._sliderMouseMoveMonitor=new b.a,t._sliderMouseDownListener=r.o(t._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&t._lastRenderData){var n=e.posy,i=e.posx,o=t._lastRenderData.renderedLayout;t._slider.toggleClassName("active",!0),t._sliderMouseMoveMonitor.startMonitoring(e.target,e.buttons,b.b,(function(e){var r=Math.abs(e.posx-i);if(f.h&&140<r)t._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});else{var s=e.posy-n;t._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(s)})}}),(function(){t._slider.toggleClassName("active",!1)}))}})),t._gestureDisposable=g.b.addTarget(t._domNode.domNode),t._sliderTouchStartListener=r.j(t._domNode.domNode,g.a.Start,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&(t._slider.toggleClassName("active",!0),t._gestureInProgress=!0,t.scrollDueToTouchEvent(e))})),t._sliderTouchMoveListener=r.o(t._domNode.domNode,g.a.Change,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&t._gestureInProgress&&t.scrollDueToTouchEvent(e)})),t._sliderTouchEndListener=r.o(t._domNode.domNode,g.a.End,(function(e){e.preventDefault(),e.stopPropagation(),t._gestureInProgress=!1,t._slider.toggleClassName("active",!1)})),t}Object(he.e)((function(e,t){var n=e.getColor(fo.Xb);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(fo.Yb);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(fo.Wb);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var l=e.getColor(fo.Vb);l&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")})),n(1348);var zo,Ho,qo=((zo=function(e,t){return(zo=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){function n(){this.constructor=e}zo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Uo,Ho=H),Uo.prototype.dispose=function(){Ho.prototype.dispose.call(this),this._widgets={}},Uo.prototype.getDomNode=function(){return this._domNode},Uo.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0},Uo.prototype.addWidget=function(e){var t=Object(p.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},Uo.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},Uo.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},Uo.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},Uo.prototype.prepareRender=function(e){},Uo.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._renderWidget(this._widgets[o])}},Uo);function Uo(e){var t=Ho.call(this,e)||this,n=t._context.configuration.options.get(107);return t._widgets={},t._verticalScrollbarWidth=n.verticalScrollbarWidth,t._minimapWidth=n.minimapWidth,t._horizontalScrollbarHeight=n.horizontalScrollbarHeight,t._editorHeight=n.height,t._editorWidth=n.width,t._domNode=Object(p.b)(document.createElement("div")),U.write(t._domNode,4),t._domNode.setClassName("overlayWidgets"),t}var Ko,Go=n(490),Yo=(Ko=function(e,t){return(Ko=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){function n(){this.constructor=e}Ko(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zo=(Xo.prototype._initLanes=function(e,t,n){var i=t-e;if(3<=n){var o,r,s,a=i-(o=Math.floor(i/3))-(r=Math.floor(i/3)),l=(s=e)+o;return[[0,s,l,s,s+o+a,s,l,s],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}return 2===n?[[0,s=e,s,s,s+(o=Math.floor(i/2)),s,s,s],[0,o,o,o,r=i-o,o+r,o+r,o+r]]:[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]},Xo.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},Xo);function Xo(e,t){var n=e.options;this.lineHeight=n.get(49),this.pixelRatio=n.get(105),this.overviewRulerLanes=n.get(63),this.renderBorder=n.get(62);var i=t.getColor(Bt.l);this.borderColor=i?i.toString():null,this.hideCursor=n.get(42);var o=t.getColor(Bt.g);this.cursorColor=o?o.transparent(.7).toString():null,this.themeType=t.type;var r=n.get(54),s=r.enabled,a=r.side,l=s?co.B.getDefaultBackground():null;this.backgroundColor=null===l||"left"===a?null:Go.a.Format.CSS.formatHex(l);var u=n.get(107).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var c=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),d=c[0],h=c[1];this.x=d,this.w=h}var $o,Jo=(Yo(Qo,$o=H),Qo.prototype.dispose=function(){$o.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},Qo.prototype._updateSettings=function(e){var t=new Zo(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))},Qo.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},Qo.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(Te.a.compare),!0},Qo.prototype.onDecorationsChanged=function(e){return!0},Qo.prototype.onFlushed=function(e){return!0},Qo.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},Qo.prototype.onZonesChanged=function(e){return!0},Qo.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},Qo.prototype.getDomNode=function(){return this._domNode.domNode},Qo.prototype.prepareRender=function(e){},Qo.prototype.render=function(e){this._render()},Qo.prototype._render=function(){if(0!==this._settings.overviewRulerLanes){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,o=t/this._context.viewLayout.getScrollHeight(),r=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,a=s/2|0,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));var u=this._settings.x,c=this._settings.w,d=Object.keys(r);d.sort();for(var h=0,p=d.length;h<p;h++){var f=d[h],g=r[f];l.fillStyle=f;for(var m=0,v=0,y=0,b=0,_=g.length;b<_;b++){var w=g[3*b],C=g[3*b+1],S=g[3*b+2],O=i.getVerticalOffsetForLineNumber(C)*o|0;(M=(i.getVerticalOffsetForLineNumber(S)+n)*o|0)-O<s&&((L=(O+M)/2|0)<a?L=a:t<L+a&&(L=t-a),O=L-a,M=L+a),y+1<O||w!==m?(0!==b&&l.fillRect(u[m],v,c[m],y-v),m=w,v=O,y=M):y<M&&(y=M)}l.fillRect(u[m],v,c[m],y-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){var x=2*this._settings.pixelRatio|0,k=x/2|0,E=this._settings.x[7],N=this._settings.w[7];for(l.fillStyle=this._settings.cursorColor,y=v=-100,b=0,_=this._cursorPositions.length;b<_;b++){var L,D=this._cursorPositions[b];(L=i.getVerticalOffsetForLineNumber(D.lineNumber)*o|0)<k?L=k:t<L+k&&(L=t-k);var M=(O=L-k)+x;y+1<O?(0!==b&&l.fillRect(E,v,N,y-v),v=O,y=M):y<M&&(y=M)}l.fillRect(E,v,N,y-v)}this._settings.renderBorder&&this._settings.borderColor&&0<this._settings.overviewRulerLanes&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}else this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"")},Qo);function Qo(e){var t=$o.call(this,e)||this;return t._domNode=Object(p.b)(document.createElement("canvas")),t._domNode.setClassName("decorationsOverviewRuler"),t._domNode.setPosition("absolute"),t._domNode.setLayerHinting(!0),t._domNode.setContain("strict"),t._domNode.setAttribute("aria-hidden","true"),t._updateSettings(!1),t._tokensColorTrackerListener=co.B.onDidChange((function(e){e.changedColorMap&&t._updateSettings(!0)})),t._cursorPositions=[],t}var er,tr,nr=n(1088),ir=((er=function(e,t){return(er=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){function n(){this.constructor=e}er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(or,tr=B),or.prototype.dispose=function(){this._context.removeEventHandler(this),tr.prototype.dispose.call(this)},or.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(t.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(t.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},or.prototype.onFlushed=function(e){return this._render(),!0},or.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},or.prototype.onZonesChanged=function(e){return this._render(),!0},or.prototype.getDomNode=function(){return this._domNode.domNode},or.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},or.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},or.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),0<n.length&&this._renderOneLane(o,n,i,e),!0},or.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,l=t;a<l.length;a++){var u=l[a],c=u.colorId,d=u.from,h=u.to;s=c!==o?(e.fillRect(0,r,i,s-r),o=c,e.fillStyle=n[o],r=d,h):d<=s?Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,h)}e.fillRect(0,r,i,s-r)},or);function or(e,t){var n=tr.call(this)||this;n._context=e;var i=n._context.configuration.options;return n._domNode=Object(p.b)(document.createElement("canvas")),n._domNode.setClassName(t),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setContain("strict"),n._zoneManager=new nr.b((function(e){return n._context.viewLayout.getVerticalOffsetForLineNumber(e)})),n._zoneManager.setDOMWidth(0),n._zoneManager.setDOMHeight(0),n._zoneManager.setOuterHeight(n._context.viewLayout.getScrollHeight()),n._zoneManager.setLineHeight(i.get(49)),n._zoneManager.setPixelRatio(i.get(105)),n._context.addEventHandler(n),n}n(1349);var rr,sr,ar=((rr=function(e,t){return(rr=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){function n(){this.constructor=e}rr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(lr,sr=H),lr.prototype.dispose=function(){sr.prototype.dispose.call(this)},lr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._rulers=t.get(77),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},lr.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},lr.prototype.prepareRender=function(e){},lr.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.model.getOptions().tabSize,i=t-e;0<i;)(r=Object(p.b)(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--;else for(var o=e-t;0<o;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),o--}},lr.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t];i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},lr);function lr(e){var t=sr.call(this,e)||this;t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.domNode.setClassName("view-rulers"),t._renderedRulers=[];var n=t._context.configuration.options;return t._rulers=n.get(77),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t}Object(he.e)((function(e,t){var n=e.getColor(Bt.m);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")})),n(1350);var ur,cr,dr=((ur=function(e,t){return(ur=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){function n(){this.constructor=e}ur(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(hr,cr=H),hr.prototype.dispose=function(){cr.prototype.dispose.call(this)},hr.prototype._updateShouldShow=function(){var e=this._useShadows&&0<this._scrollTop;return this._shouldShow!==e&&(this._shouldShow=e,!0)},hr.prototype.getDomNode=function(){return this._domNode},hr.prototype._updateWidth=function(){var e=this._context.configuration.options.get(107);0===e.renderMinimap||0<e.minimapWidth&&0===e.minimapLeft?this._width=e.width:this._width=e.width-e.minimapWidth-e.verticalScrollbarWidth},hr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(78);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0},hr.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},hr.prototype.prepareRender=function(e){},hr.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},hr);function hr(e){var t=cr.call(this,e)||this;t._scrollTop=0,t._width=0,t._updateWidth(),t._shouldShow=!1;var n=t._context.configuration.options.get(78);return t._useShadows=n.useShadows,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t}Object(he.e)((function(e,t){var n=e.getColor(fo.Vb);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")})),n(1351);var pr,fr=(pr=function(e,t){return(pr=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){function n(){this.constructor=e}pr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gr=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},mr=function(e,t){this.lineNumber=e,this.ranges=t};function vr(e){return new gr(e)}function yr(e){return new mr(e.lineNumber,e.ranges.map(vr))}var br,_r=m.f,wr=(fr(Cr,br=At),Cr.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,br.prototype.dispose.call(this)},Cr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._roundedSelection=t.get(76),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},Cr.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},Cr.prototype.onDecorationsChanged=function(e){return!0},Cr.prototype.onFlushed=function(e){return!0},Cr.prototype.onLinesChanged=function(e){return!0},Cr.prototype.onLinesDeleted=function(e){return!0},Cr.prototype.onLinesInserted=function(e){return!0},Cr.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Cr.prototype.onZonesChanged=function(e){return!0},Cr.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++)if(1<e[t].ranges.length)return!0;return!1},Cr.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null;if(n&&0<n.length&&0<t.length){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!o&&a<n.length;a++)n[a].lineNumber===s&&(o=n[a].ranges[0]);var l=t[t.length-1].lineNumber;if(l===e.endLineNumber)for(a=n.length-1;!r&&0<=a;a--)n[a].lineNumber===l&&(r=n[a].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}a=0;for(var u=t.length;a<u;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,p={top:0,bottom:0},f={top:0,bottom:0};if(0<a){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Sr(d-g)<i?p.top=2:g<d&&(p.top=1),Sr(h-m)<i?f.top=2:g<h&&h<m&&(f.top=1)}else o&&(p.top=o.startStyle.top,f.top=o.endStyle.top);if(a+1<u){var v=t[a+1].ranges[0].left,y=t[a+1].ranges[0].left+t[a+1].ranges[0].width;Sr(d-v)<i?p.bottom=2:v<d&&d<y&&(p.bottom=1),Sr(h-y)<i?f.bottom=2:h<y&&(f.bottom=1)}else r&&(p.bottom=r.startStyle.bottom,f.bottom=r.endStyle.bottom);c.startStyle=p,c.endStyle=f}},Cr.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=(t.linesVisibleRangesForRange(e,!0)||[]).map(yr),o=this._visibleRangesHaveGaps(i);return _r||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,i,n),i},Cr.prototype._createSelectionPiece=function(e,t,n,i,o){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+o.toString()+"px;height:"+t+'px;"></div>'},Cr.prototype._actualRenderOneSelection=function(e,t,n,i){if(0!==i.length)for(var o=!!i[0].ranges[0].startStyle,r=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=i[0].lineNumber,l=i[i.length-1].lineNumber,u=0,c=i.length;u<c;u++){for(var d=i[u],h=d.lineNumber,p=h-t,f=!n||h!==l&&h!==a?r:s,g=n&&h===a?1:0,m="",v="",y=0,b=d.ranges.length;y<b;y++){var _=d.ranges[y];if(o){var w=_.startStyle,C=_.endStyle;if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(g,f,Cr.SELECTION_CLASS_NAME,_.left-Cr.ROUNDED_PIECE_WIDTH,Cr.ROUNDED_PIECE_WIDTH);var S=Cr.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(S+=" "+Cr.SELECTION_TOP_RIGHT),1===w.bottom&&(S+=" "+Cr.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(g,f,S,_.left-Cr.ROUNDED_PIECE_WIDTH,Cr.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(g,f,Cr.SELECTION_CLASS_NAME,_.left+_.width,Cr.ROUNDED_PIECE_WIDTH);var O=Cr.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(O+=" "+Cr.SELECTION_TOP_LEFT),1===C.bottom&&(O+=" "+Cr.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(g,f,O,_.left+_.width,Cr.ROUNDED_PIECE_WIDTH)}}var x=Cr.SELECTION_CLASS_NAME;o&&(w=_.startStyle,C=_.endStyle,0===w.top&&(x+=" "+Cr.SELECTION_TOP_LEFT),0===w.bottom&&(x+=" "+Cr.SELECTION_BOTTOM_LEFT),0===C.top&&(x+=" "+Cr.SELECTION_TOP_RIGHT),0===C.bottom&&(x+=" "+Cr.SELECTION_BOTTOM_RIGHT)),v+=this._createSelectionPiece(g,f,x,_.left,_.width)}e[p][0]+=m,e[p][1]+=v}},Cr.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=n;o<=i;o++)t[o-n]=["",""];for(var r=[],s=0,a=this._selections.length;s<a;s++){var l=this._selections[s];if(l.isEmpty())r[s]=null;else{var u=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[s]);r[s]=u,this._actualRenderOneSelection(t,n,1<this._selections.length,u)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map((function(e){return e[0]+e[1]}))},Cr.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Cr.SELECTION_CLASS_NAME="selected-text",Cr.SELECTION_TOP_LEFT="top-left-radius",Cr.SELECTION_BOTTOM_LEFT="bottom-left-radius",Cr.SELECTION_TOP_RIGHT="top-right-radius",Cr.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Cr.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Cr.ROUNDED_PIECE_WIDTH=10,Cr);function Cr(e){var t=br.call(this)||this;t._previousFrameVisibleRangesWithStyle=[],t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._roundedSelection=n.get(76),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._selections=[],t._renderResult=null,t._context.addEventHandler(t),t}function Sr(e){return e<0?-e:e}Object(he.e)((function(e,t){var n=e.getColor(fo.K);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(fo.F);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(fo.L);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")})),n(1352);var Or=function(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r},xr=(kr.prototype.getDomNode=function(){return this._domNode},kr.prototype.getPosition=function(){return this._position},kr.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},kr.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},kr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),c.a.applyFontInfo(this._domNode,n),!0},kr.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},kr.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===pe.g.Line||this._cursorStyle===pe.g.LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;if(this._cursorStyle===pe.g.Line){if(2<(n=r.u(0<this._lineCursorWidth?this._lineCursorWidth:2))){var o=this._context.model.getLineContent(this._position.lineNumber),s=Tt.E(o,this._position.column-1);t=o.substr(this._position.column-1,s)}}else n=r.u(1);var a=i.left;2<=n&&1<=a&&--a;var l=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Or(l,a,n,this._lineHeight,t,"")}var u=this._context.model.getLineContent(this._position.lineNumber),c=Tt.E(u,this._position.column-1),d=e.linesVisibleRangesForRange(new Ie.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+c),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var p=h.ranges[0],f=p.width<1?this._typicalHalfwidthCharacterWidth:p.width,g="";if(this._cursorStyle===pe.g.Block){var m=this._context.model.getViewLineData(this._position.lineNumber);t=u.substr(this._position.column-1,c);var v=m.tokens.findTokenIndexAtOffset(this._position.column-1);g=m.tokens.getClassName(v)}var y=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,b=this._lineHeight;return this._cursorStyle!==pe.g.Underline&&this._cursorStyle!==pe.g.UnderlineThin||(y+=this._lineHeight-2,b=2),new Or(y,p.left,f,b,t,g)},kr.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},kr.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},kr);function kr(e){this._context=e;var t=this._context.configuration.options,n=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(p.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),c.a.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new Te.a(1,1),this._lastRenderedContent="",this._renderData=null}var Er,Nr,Lr=((Er=function(e,t){return(Er=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){function n(){this.constructor=e}Er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Dr,Nr=H),Dr.prototype.dispose=function(){Nr.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},Dr.prototype.getDomNode=function(){return this._domNode},Dr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;this._readOnly=t.get(68),this._cursorBlinking=t.get(16),this._cursorStyle=t.get(18),this._cursorSmoothCaretAnimation=t.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0},Dr.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var o=new xr(this._context);this._domNode.domNode.insertBefore(o.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(o)}else if(this._secondaryCursors.length>t.length){var r=this._secondaryCursors.length-t.length;for(i=0;i<r;i++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(i=0;i<t.length;i++)this._secondaryCursors[i].onCursorPositionChanged(t[i])},Dr.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var o=e.selections[0].isEmpty();return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,this._updateDomClassName()),!0},Dr.prototype.onDecorationsChanged=function(e){return!0},Dr.prototype.onFlushed=function(e){return!0},Dr.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},Dr.prototype.onLinesChanged=function(e){return!0},Dr.prototype.onLinesDeleted=function(e){return!0},Dr.prototype.onLinesInserted=function(e){return!0},Dr.prototype.onScrollChanged=function(e){return!0},Dr.prototype.onTokensChanged=function(e){function t(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return 1}if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,i=this._secondaryCursors;n<i.length;n++)if(t(i[n].getPosition()))return!0;return!1},Dr.prototype.onZonesChanged=function(e){return!0},Dr.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},Dr.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var t=this._getCursorBlinking(),n=0===t,i=5===t;n?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),n||i||(1===t?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),Dr.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),Dr.BLINK_INTERVAL))},Dr.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},Dr.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case pe.g.Line:e+=" cursor-line-style";break;case pe.g.Block:e+=" cursor-block-style";break;case pe.g.Underline:e+=" cursor-underline-style";break;case pe.g.LineThin:e+=" cursor-line-thin-style";break;case pe.g.BlockOutline:e+=" cursor-block-outline-style";break;case pe.g.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},Dr.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},Dr.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},Dr.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},Dr.prototype.render=function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var o=0,r=this._secondaryCursors.length;o<r;o++){var s=this._secondaryCursors[o].render(e);s&&(t[n++]=s)}this._renderData=t},Dr.prototype.getLastRenderData=function(){return this._renderData},Dr.BLINK_INTERVAL=500,Dr);function Dr(e){var t=Nr.call(this,e)||this,n=t._context.configuration.options;return t._readOnly=n.get(68),t._cursorBlinking=n.get(16),t._cursorStyle=n.get(18),t._cursorSmoothCaretAnimation=n.get(17),t._selectionIsEmpty=!0,t._isVisible=!1,t._primaryCursor=new xr(t._context),t._secondaryCursors=[],t._renderData=[],t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._updateDomClassName(),t._domNode.appendChild(t._primaryCursor.getDomNode()),t._startCursorBlinkAnimation=new y.e,t._cursorFlatBlinkInterval=new y.c,t._blinkingEnabled=!1,t._editorHasFocus=!1,t._updateBlinking(),t}function Mr(){throw new Error("Invalid change accessor")}Object(he.e)((function(e,t){var n=e.getColor(Bt.g);if(n){var i=e.getColor(Bt.f);i=i||n.opposite(),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}}));var Tr,Ir,Pr=((Tr=function(e,t){return(Tr=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){function n(){this.constructor=e}Tr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ar,Ir=H),Ar.prototype.dispose=function(){Ir.prototype.dispose.call(this),this._zones={}},Ar.prototype._recomputeWhitespacesProps=function(){for(var e=this,t=this._context.viewLayout.getWhitespaces(),n=new Map,i=0,o=t;i<o.length;i++){var r=o[i];n.set(r.id,r)}return this._context.viewLayout.changeWhitespace((function(t){for(var i=!1,o=Object.keys(e._zones),r=0,s=o.length;r<s;r++){var a=o[r],l=e._zones[a],u=e._computeWhitespaceProps(l.delegate),c=n.get(a);!c||c.afterLineNumber===u.afterViewLineNumber&&c.height===u.heightInPx||(t.changeOneWhitespace(a,u.afterViewLineNumber,u.heightInPx),e._safeCallOnComputedHeight(l.delegate,u.heightInPx),i=!0)}return i}))},Ar.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},Ar.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},Ar.prototype.onLinesDeleted=function(e){return!0},Ar.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},Ar.prototype.onZonesChanged=function(e){return!0},Ar.prototype.onLinesInserted=function(e){return!0},Ar.prototype._getZoneOrdinal=function(e){return void 0!==e.afterColumn?e.afterColumn:1e4},Ar.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Te.a(i,this._context.model.getModelLineMaxColumn(i))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var o=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:o.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},Ar.prototype.changeViewZones=function(e){var t=this;return this._context.viewLayout.changeWhitespace((function(n){var i=!1,o={addZone:function(e){return i=!0,t._addZone(n,e)},removeZone:function(e){e&&(i=t._removeZone(n,e)||i)},layoutZone:function(e){e&&(i=t._layoutZone(n,e)||i)}};return function(e,t){try{e(t)}catch(e){Object(s.e)(e)}}(e,o),o.addZone=Mr,o.removeZone=Mr,o.layoutZone=Mr,i}))},Ar.prototype._addZone=function(e,t){var n=this._computeWhitespaceProps(t),i={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isVisible:!1,domNode:Object(p.b)(t.domNode),marginDomNode:t.marginDomNode?Object(p.b)(t.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,n.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId]=i,this.setShouldRender(),i.whitespaceId},Ar.prototype._removeZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},Ar.prototype._layoutZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1},Ar.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},Ar.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},Ar.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0},Ar.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(s.e)(e)}},Ar.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(s.e)(e)}},Ar.prototype.prepareRender=function(e){},Ar.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},i=!1,o=0,r=t.length;o<r;o++)n[t[o].id]=t[o],i=!0;var s=Object.keys(this._zones);for(o=0,r=s.length;o<r;o++){var a=s[o],l=this._zones[a],u=0,c=0,d="none";n.hasOwnProperty(a)?(u=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",l.isVisible||(l.domNode.setAttribute("monaco-visible-view-zone","true"),l.isVisible=!0),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(l.isVisible&&(l.domNode.removeAttribute("monaco-visible-view-zone"),l.isVisible=!1),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),l.domNode.setTop(u),l.domNode.setHeight(c),l.domNode.setDisplay(d),l.marginDomNode&&(l.marginDomNode.setTop(u),l.marginDomNode.setHeight(c),l.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},Ar);function Ar(e){var t=Ir.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._contentWidth=i.contentWidth,t._contentLeft=i.contentLeft,t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setClassName("view-zones"),t.domNode.setPosition("absolute"),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.marginDomNode=Object(p.b)(document.createElement("div")),t.marginDomNode.setClassName("margin-view-zones"),t.marginDomNode.setPosition("absolute"),t.marginDomNode.setAttribute("role","presentation"),t.marginDomNode.setAttribute("aria-hidden","true"),t._zones={},t}var Rr=(jr.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},jr.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},jr);function jr(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}var Fr=(Br.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t];this._eventHandlers.push(e)},Br.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},Br.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},Br.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},Br.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},Br.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,i=t.length;n<i;n++)t[n].handleEvents(e)}},Br);function Br(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}var Wr=(Vr.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},Vr.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},Vr);function Vr(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new Ie.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}var zr,Hr,qr=((zr=function(e,t){return(zr=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){function n(){this.constructor=e}zr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ur,Hr=B),Ur.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},Ur.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var t=e.viewCursors.getLastRenderData()||[],n=e._textAreaHandler.getLastRenderData();return new Re(t,n)},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Te.a(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},Ur.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Te.a(t,n))}}},Ur.prototype._applyLayout=function(){var e=this._context.configuration.options.get(107);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},Ur.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(he.d)(this._context.theme.type)+e},Ur.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},Ur.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},Ur.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},Ur.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},Ur.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},Ur.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var e=0,t=this.viewParts.length;e<t;e++)this.viewParts[e].dispose();this.viewParts=[],Hr.prototype.dispose.call(this)},Ur.prototype._renderOnce=function(e){var t=Kr(e);return this._scheduleRender(),t},Ur.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=r.U(this._onRenderScheduled.bind(this),100))},Ur.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},Ur.prototype._renderNow=function(){var e=this;Kr((function(){return e._actualRender()}))},Ur.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.shouldRender()&&(e[t++]=o)}return e},Ur.prototype._actualRender=function(){if(r.M(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new Wr(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new J(this._context.viewLayout,n,this.viewLines),o=0,s=e.length;o<s;o++)(a=e[o]).prepareRender(i);for(o=0,s=e.length;o<s;o++){var a;(a=e[o]).render(i),a.onDidRender()}}}},Ur.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},Ur.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},Ur.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var o=this.viewLines.visibleRangeForPosition(new Te.a(i.lineNumber,i.column));return o?o.left:-1},Ur.prototype.getTargetAtClientPoint=function(e,t){var n=this.pointerHandler.getTargetAtClientPoint(e,t);return n?In.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null},Ur.prototype.createOverviewRuler=function(e){return new ir(this._context,e)},Ur.prototype.change=function(e){var t=this;return this._renderOnce((function(){var n=t.viewZones.changeViewZones(e);return n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new fn)),n}))},Ur.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,i=this.viewParts.length;n<i;n++)this.viewParts[n].forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},Ur.prototype.focus=function(){this._textAreaHandler.focusTextArea()},Ur.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},Ur.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},Ur.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},Ur.prototype.layoutContentWidget=function(e){var t=e.position&&e.position.range||null;if(null===t){var n=e.position?e.position.position:null;null!==n&&(t=new Ie.a(n.lineNumber,n.column,n.lineNumber,n.column))}var i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()},Ur.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},Ur.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},Ur.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()},Ur.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},Ur);function Ur(e,t,n,i,o,r){var s=Hr.call(this)||this;s._cursor=o,s._renderAnimationFrame=null,s.outgoingEvents=r;var a=new Ln(t,i,s.outgoingEvents,e);s.eventDispatcher=new Fr((function(e){return s._renderOnce(e)})),s.eventDispatcher.addEventHandler(s),s._context=new Rr(t,n.getTheme(),i,s.eventDispatcher),s._register(n.onThemeChange((function(e){s._context.theme=e,s.eventDispatcher.emit(new dn),s.render(!0,!1)}))),s.viewParts=[],s._textAreaHandler=new kn(s._context,a,s.createTextAreaHandlerHelper()),s.viewParts.push(s._textAreaHandler),s.linesContent=Object(p.b)(document.createElement("div")),s.linesContent.setClassName("lines-content monaco-editor-background"),s.linesContent.setPosition("absolute"),s.domNode=Object(p.b)(document.createElement("div")),s.domNode.setClassName(s.getEditorClassName()),s.overflowGuardContainer=Object(p.b)(document.createElement("div")),U.write(s.overflowGuardContainer,3),s.overflowGuardContainer.setClassName("overflow-guard"),s._scrollbar=new Mi(s._context,s.linesContent,s.domNode,s.overflowGuardContainer),s.viewParts.push(s._scrollbar),s.viewLines=new Ji(s._context,s.linesContent),s.viewZones=new Pr(s._context),s.viewParts.push(s.viewZones);var l=new Jo(s._context);s.viewParts.push(l);var u=new dr(s._context);s.viewParts.push(u);var c=new Jn(s._context);s.viewParts.push(c),c.addDynamicOverlay(new bi(s._context)),c.addDynamicOverlay(new wr(s._context)),c.addDynamicOverlay(new qi(s._context)),c.addDynamicOverlay(new ki(s._context));var d=new ti(s._context);s.viewParts.push(d),d.addDynamicOverlay(new Ci(s._context)),d.addDynamicOverlay(new Wi(s._context)),d.addDynamicOverlay(new so(s._context)),d.addDynamicOverlay(new no(s._context)),d.addDynamicOverlay(new Wt(s._context));var h=new qt(s._context);h.getDomNode().appendChild(s.viewZones.marginDomNode),h.getDomNode().appendChild(d.getDomNode()),s.viewParts.push(h),s.contentWidgets=new ai(s._context,s.domNode),s.viewParts.push(s.contentWidgets),s.viewCursors=new Lr(s._context),s.viewParts.push(s.viewCursors),s.overlayWidgets=new qo(s._context),s.viewParts.push(s.overlayWidgets);var f=new ar(s._context);s.viewParts.push(f);var g=new Wo(s._context);if(s.viewParts.push(g),l){var m=s._scrollbar.getOverviewRulerLayoutInfo();m.parent.insertBefore(l.getDomNode(),m.insertBefore)}return s.linesContent.appendChild(c.getDomNode()),s.linesContent.appendChild(f.domNode),s.linesContent.appendChild(s.viewZones.domNode),s.linesContent.appendChild(s.viewLines.getDomNode()),s.linesContent.appendChild(s.contentWidgets.domNode),s.linesContent.appendChild(s.viewCursors.getDomNode()),s.overflowGuardContainer.appendChild(h.getDomNode()),s.overflowGuardContainer.appendChild(s._scrollbar.getDomNode()),s.overflowGuardContainer.appendChild(u.getDomNode()),s.overflowGuardContainer.appendChild(s._textAreaHandler.textArea),s.overflowGuardContainer.appendChild(s._textAreaHandler.textAreaCover),s.overflowGuardContainer.appendChild(s.overlayWidgets.getDomNode()),s.overflowGuardContainer.appendChild(g.getDomNode()),s.domNode.appendChild(s.overflowGuardContainer),s.domNode.appendChild(s.contentWidgets.overflowingContentWidgetsDomNode),s._applyLayout(),s.pointerHandler=s._register(new Nt(s._context,a,s.createPointerHandlerHelper())),s._register(i.addEventListener((function(e){s.eventDispatcher.emitMany(e)}))),s._register(s._cursor.addEventListener((function(e){s.eventDispatcher.emitMany(e)}))),s}function Kr(e){try{return e()}catch(e){Object(s.e)(e)}}var Gr=(Yr.prototype.dispose=function(e){this._removeTrackedRange(e)},Yr.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},Yr.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},Yr.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},Yr.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},Yr.prototype.asCursorState=function(){return new Pe.d(this.modelState,this.viewState)},Yr.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new et.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new et.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},Yr.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},Yr.prototype.setState=function(e,t,n){this._setState(e,t,n)},Yr.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new Pe.f(r,i,s,o)}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new Pe.f(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n)u=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position),n=new Pe.f(u,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);else{var a=e.convertModelPositionToViewPosition(new Te.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),l=e.convertModelPositionToViewPosition(new Te.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),u=new Ie.a(a.lineNumber,a.column,l.lineNumber,l.column),c=e.convertModelPositionToViewPosition(t.position);n=new Pe.f(u,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},Yr);function Yr(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Pe.f(new Ie.a(1,1,1,1),0,new Te.a(1,1),0),new Pe.f(new Ie.a(1,1,1,1),0,new Te.a(1,1),0))}var Zr=(Xr.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},Xr.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)},Xr.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)},Xr.prototype.updateContext=function(e){this.context=e},Xr.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)},Xr.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e},Xr.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e},Xr.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e},Xr.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e},Xr.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e},Xr.prototype.setSelections=function(e){this.setStates(Pe.d.fromModelSelections(e))},Xr.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},Xr.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},Xr.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var i=n-t,o=0;o<i;o++)this._addSecondaryCursor();else if(n<t){var r=t-n;for(o=0;o<r;o++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(o=0;o<n;o++)this.secondaryCursors[o].setState(this.context,e[o].modelState,e[o].viewState)},Xr.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},Xr.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new Gr(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},Xr.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},Xr.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},Xr.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e},Xr.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber}));for(var o=0;o<t.length-1;o++){var r=t[o],s=t[o+1],a=r.selection,l=s.selection;if(this.context.config.multiCursorMergeOverlapping&&(l.isEmpty()||a.isEmpty()?l.getStartPosition().isBeforeOrEqual(a.getEndPosition()):l.getStartPosition().isBefore(a.getEndPosition()))){var u=r.index<s.index?o:o+1,c=r.index<s.index?o+1:o,d=t[c].index,h=t[u].index,p=t[c].selection,f=t[u].selection;if(!p.equalsSelection(f)){var g=p.plusRange(f),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,v=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,y=void 0;d===this.lastAddedCursorIndex?(y=m,this.lastAddedCursorIndex=h):y=v;var b;b=y?new et.a(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new et.a(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[u].selection=b;var _=Pe.d.fromModelSelection(b);e[h].setState(this.context,_.modelState,_.viewState)}for(var w=0,C=t;w<C.length;w++){var S=C[w];S.index>d&&S.index--}e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--}}}},Xr);function Xr(e){this.context=e,this.primaryCursor=new Gr(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}var $r,Jr=n(1083),Qr=n(974),es=n(776),ts=($r=function(e,t){return($r=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){function n(){this.constructor=e}$r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ns=function(e,t,n,i,o,r){this.selections=e,this.modelVersionId=t,this.oldSelections=n,this.oldModelVersionId=i,this.source=o,this.reason=r},is=(os.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},os);function os(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}var rs=(ss.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t=t.concat(o.getAutoClosedCharactersRanges())}return t},ss.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},ss.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},ss.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}for(t.sort(Ie.a.compareRangesUsingStarts),e.sort(Ie.a.compareRangesUsingStarts),n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},ss);function ss(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}var as,ls=(ts(us,as=gn),us.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(l.f)(this._autoClosedActions),as.prototype.dispose.call(this)},us.prototype._validateAutoClosedActions=function(){if(0<this._autoClosedActions.length)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},us.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},us.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},us.prototype.getAll=function(){return this._cursors.getAll()},us.prototype.setStates=function(e,t,n){null!==n&&n.length>us.MAX_CURSOR_COUNT&&(n=n.slice(0,us.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new is(this._model,this);this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i)},us.prototype.setColumnSelectData=function(e){this._columnSelectData=e},us.prototype.reveal=function(e,t,n,i){this._revealRange(e,n,0,t,i)},us.prototype.revealRange=function(e,t,n,i,o){this.emitCursorRevealRange(e,n,i,t,o)},us.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},us.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var o=t[n];e.push({inSelectionMode:!o.isEmpty(),selectionStart:{lineNumber:o.selectionStartLineNumber,column:o.selectionStartColumn},position:{lineNumber:o.positionLineNumber,column:o.positionColumn}})}return e},us.prototype.restoreState=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n],r=1,s=1;o.position&&o.position.lineNumber&&(r=o.position.lineNumber),o.position&&o.position.column&&(s=o.position.column);var a=r,l=s;o.selectionStart&&o.selectionStart.lineNumber&&(a=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(l=o.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:l,positionLineNumber:r,positionColumn:s})}this.setStates("restoreState",0,Pe.d.fromModelSelections(t)),this.reveal("restoreState",!0,0,1)},us.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new Zr(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Pe.d.fromModelSelections(t))}},us.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},us.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor().viewState.selectionStart.getStartPosition(),t=e.lineNumber,n=Pe.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,e);return{isReal:!1,fromViewLineNumber:t,fromViewVisualColumn:n,toViewLineNumber:t,toViewVisualColumn:n}},us.prototype.getSelections=function(){return this._cursors.getSelections()},us.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},us.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},us.prototype.setSelections=function(e,t){this.setStates(e,0,Pe.d.fromModelSelections(t))},us.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},us.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},us.prototype._pushAutoClosedAction=function(e,t){for(var n=[],i=[],o=0,r=e.length;o<r;o++)n.push({range:e[o],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[o],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],i);this._autoClosedActions.push(new rs(this._model,s,a))},us.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=cs.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],o=0;o<e.commands.length;o++){var r=e.commands[o];r instanceof Qr.b&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}0<n.length&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},us.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},us.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new is(this._model,this);if(i.equals(n))return!1;var o=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{this._beginEmit().emit(new Qt(r,o))}finally{this._endEmit()}if(!n||n.cursorState.length!==i.cursorState.length||i.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))){var s=n?n.cursorState.map((function(e){return e.modelState.selection})):null,a=n?n.modelVersionId:0;this._onDidChange.fire(new ns(o,i.modelVersionId,s,a,e||"keyboard",t))}return!0},us.prototype._revealRange=function(e,t,n,i,o){var r=this._cursors.getViewPositions(),s=r[0];if(1===t)for(var a=1;a<r.length;a++)r[a].isBefore(s)&&(s=r[a]);else if(2===t)for(a=1;a<r.length;a++)s.isBeforeOrEqual(r[a])&&(s=r[a]);else if(1<r.length)return;var l=new Ie.a(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(e,l,n,i,o)},us.prototype.emitCursorRevealRange=function(e,t,n,i,o){try{this._beginEmit().emit(new un(e,t,n,i,o))}finally{this._endEmit()}},us.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o.text||0<=o.text.indexOf("\n"))return null;var r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;var s=r[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var l=a[0].open,u=o.text.length-r[2].length-1,c=o.text.lastIndexOf(l,u-1);if(-1===c)return null;t.push([c,u])}return t},us.prototype.executeEdits=function(e,t,n){var i=this,o=null;"snippet"===e&&(o=this._findAutoClosingPairs(t)),o&&(t[0]._isTracked=!0);var r=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(o)for(var t=0,a=o.length;t<a;t++){var l=o[t],u=l[0],c=l[1],d=e[t],h=d.range.startLineNumber,p=d.range.startColumn-1+u,f=d.range.startColumn-1+c;r.push(new Ie.a(h,f+1,h,f+2)),s.push(new Ie.a(h,p+1,h,f+2))}var g=n(e);return g&&(i._isHandling=!0),g}));a&&(this._isHandling=!1,this.setSelections(e,a)),0<r.length&&this._pushAutoClosedAction(r,s)},us.prototype.trigger=function(e,t,n){var i=es.b;if(t===i.CompositionStart)return this._isDoingComposition=!0,void(this._selectionsWhenCompositionStarted=this.getSelections().slice(0));if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68))this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new is(this._model,this),r=0;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:r=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText||[]);break;case i.Cut:this._cut();break;case i.Undo:r=5,this._interpretCommandResult(this._model.undo());break;case i.Redo:r=6,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Object(s.e)(e)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(e,0,0,!0,0)}},us.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=rs.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),t)),this._selectionsWhenCompositionStarted=null}},us.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Qr.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=t.length,i=0;i<n;){var o=Tt.E(t,i),r=t.substr(i,o),s=rs.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),s,r)),i+=o}},us.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(Qr.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},us.prototype._paste=function(e,t,n){this._executeEditOperation(Qr.a.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},us.prototype._cut=function(){this._executeEditOperation(Jr.a.cut(this.context.config,this.context.model,this.getSelections()))},us.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Pe.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},us.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Pe.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},us.MAX_CURSOR_COUNT=1e4,us);function us(e,t,n){var i=as.call(this)||this;function o(){i.context=new Pe.c(i._configuration,i._model,i._viewModel),i._cursors.updateContext(i.context)}return i._onDidReachMaxCursorCount=i._register(new a.a),i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event,i._onDidAttemptReadOnlyEdit=i._register(new a.a),i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event,i._onDidChange=i._register(new a.a),i.onDidChange=i._onDidChange.event,i._configuration=e,i._model=t,i._knownModelVersionId=i._model.getVersionId(),i._viewModel=n,i.context=new Pe.c(i._configuration,i._model,i._viewModel),i._cursors=new Zr(i.context),i._isHandling=!1,i._isDoingComposition=!1,i._selectionsWhenCompositionStarted=null,i._columnSelectData=null,i._autoClosedActions=[],i._prevEditOperationType=0,i._register(i._model.onDidChangeRawContent((function(e){if(i._knownModelVersionId=e.versionId,!i._isHandling){var t=e.containsEvent(1);i._onModelContentChanged(t)}}))),i._register(n.addEventListener((function(e){!function(e){for(var t=0,n=e.length;t<n;t++)if(8===e[t].type)return 1}(e)||i._knownModelVersionId!==i._model.getVersionId()||i.setStates("viewModel",0,i.getAll())}))),i._register(i._model.onDidChangeLanguage((function(e){o()}))),i._register(i._model.onDidChangeLanguageConfiguration((function(){o()}))),i._register(i._model.onDidChangeOptions((function(){o()}))),i._register(i._configuration.onDidChange((function(e){Pe.b.shouldRecreate(e)&&o()}))),i}var cs=(ds.executeCommands=function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(i,n),r=0,s=i.trackedRanges.length;r<s;r++)i.model._setTrackedRange(i.trackedRanges[r],null,0);return o},ds._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,o=this._getLoserCursorMap(i);if(o.hasOwnProperty("0"))return null;for(var r=[],s=0,a=i.length;s<a;s++)o.hasOwnProperty(i[s].identifier.major.toString())||r.push(i[s]);n.hadTrackedEditOperation&&0<r.length&&(r[0]._isTracked=!0);var l=e.model.pushEditOperations(e.selectionsBefore,r,(function(n){for(var i=[],o=0;o<e.selectionsBefore.length;o++)i[o]=[];for(var r=0,s=n;r<s.length;r++){var a=s[r];a.identifier&&i[a.identifier.major].push(a)}var l=function(e,t){return e.identifier.minor-t.identifier.minor},u=[],c=function(n){0<i[n].length?(i[n].sort(l),u[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new et.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new et.a(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):u[n]=e.selectionsBefore[n]};for(o=0;o<e.selectionsBefore.length;o++)c(o);return u}));l=l||e.selectionsBefore;var u=[];for(var c in o)o.hasOwnProperty(c)&&u.push(parseInt(c,10));u.sort((function(e,t){return t-e}));for(var d=0,h=u;d<h.length;d++){var p=h[d];l.splice(p,1)}return l},ds._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},ds._getEditOperations=function(e,t){for(var n=[],i=!1,o=0,r=t.length;o<r;o++){var s=t[o];if(s){var a=this._getEditOperationsFromCommand(e,o,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}},ds._getEditOperationsFromCommand=function(e,t,n){function i(e,i,s){void 0===s&&(s=!1),e.isEmpty()&&""===i||o.push({identifier:{major:t,minor:r++},range:e,text:i,forceMoveMarkers:s,isAutoWhitespaceEdit:n.insertsAutoWhitespace})}var o=[],r=0,a=!1,l={addEditOperation:i,addTrackedEditOperation:function(e,t,n){a=!0,i(e,t,n)},trackSelection:function(t,n){var i;if(t.isEmpty())if("boolean"==typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(t.startLineNumber);i=t.startColumn===o?2:3}else i=1;var r=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,i);return e.trackedRanges[r]=s,e.trackedRangesDirection[r]=t.getDirection(),r.toString()}};try{n.getEditOperations(e.model,l)}catch(l){return Object(s.e)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:o,hadTrackedEditOperation:a}},ds._getLoserCursorMap=function(e){(e=e.slice(0)).sort((function(e,t){return-Ie.a.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var i=e[n-1],o=e[n];if(i.range.getStartPosition().isBefore(o.range.getEndPosition())){var r=void 0;t[(r=i.identifier.major>o.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===r&&(e.splice(s,1),s<n&&n--,s--);0<n&&n--}}return t},ds);function ds(){}var hs=n(1089),ps=n(469),fs=n(1090),gs=n(1082),ms=(vs.prototype.insert=function(e){this._hasPending=!0,this._inserts.push(e)},vs.prototype.change=function(e){this._hasPending=!0,this._changes.push(e)},vs.prototype.remove=function(e){this._hasPending=!0,this._removes.push(e)},vs.prototype.mustCommit=function(){return this._hasPending},vs.prototype.commit=function(e){if(this._hasPending){var t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}},vs);function vs(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}var ys=function(e,t,n,i,o){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=o,this.prefixSum=0},bs=(_s.findInsertionIndex=function(e,t,n){for(var i=0,o=e.length;i<o;){var r=i+o>>>1;t===e[r].afterLineNumber?n<e[r].ordinal?o=r:i=1+r:t<e[r].afterLineNumber?o=r:i=1+r}return i},_s.prototype.setLineHeight=function(e){this._checkPendingChanges(),this._lineHeight=e},_s.prototype.onFlushed=function(e){this._checkPendingChanges(),this._lineCount=e},_s.prototype.changeWhitespace=function(e){var t=this;try{return e({insertWhitespace:function(e,n,i,o){e|=0,n|=0,i|=0,o|=0;var r=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new ys(r,e,n,i,o)),r},changeOneWhitespace:function(e,n,i){n|=0,i|=0,t._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:function(e){t._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}},_s.prototype._commitPendingChanges=function(e,t,n){if((0<e.length||0<n.length)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(var i=0,o=e;i<o.length;i++){var r=o[i];this._insertWhitespace(r)}for(var s=0,a=t;s<a.length;s++){var l=a[s];this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight)}for(var u=0,c=n;u<c.length;u++){var d=c[u],h=this._findWhitespaceIndex(d.id);-1!==h&&this._removeWhitespace(h)}}else{for(var p=new Set,f=0,g=n;f<g.length;f++)d=g[f],p.add(d.id);for(var m=new Map,v=0,y=t;v<y.length;v++)l=y[v],m.set(l.id,l);var b=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!p.has(o.id)){if(m.has(o.id)){var r=m.get(o.id);o.afterLineNumber=r.newAfterLineNumber,o.height=r.newHeight}t.push(o)}}return t},_=b(this._arr).concat(b(e));_.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=_,this._prefixSumValidIndex=-1}},_s.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},_s.prototype._insertWhitespace=function(e){var t=_s.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},_s.prototype._findWhitespaceIndex=function(e){for(var t=this._arr,n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1},_s.prototype._changeOneWhitespace=function(e,t,n){var i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){var o=this._arr[i];this._removeWhitespace(i),o.afterLineNumber=t,this._insertWhitespace(o)}},_s.prototype._removeWhitespace=function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},_s.prototype.onLinesDeleted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var o=this._arr[n].afterLineNumber;e<=o&&o<=t?this._arr[n].afterLineNumber=e-1:t<o&&(this._arr[n].afterLineNumber-=t-e+1)}},_s.prototype.onLinesInserted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,i=this._arr.length;n<i;n++)e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)},_s.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},_s.prototype.getWhitespacesAccumulatedHeight=function(e){this._checkPendingChanges(),e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum},_s.prototype.getLinesTotalHeight=function(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()},_s.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)},_s.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;for(var t=this._arr,n=0,i=t.length-1;n<=i;){var o=n+((i-n|0)/2|0)|0;if(t[o].afterLineNumber<e){if(1+o>=t.length||t[1+o].afterLineNumber>=e)return o;n=1+o|0}else i=o-1|0}return-1},_s.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1},_s.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)},_s.prototype.getVerticalOffsetForLineNumber=function(e){return this._checkPendingChanges(),(1<(e|=0)?this._lineHeight*(e-1):0)+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)},_s.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),-1===this._minWidth){for(var e=0,t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth},_s.prototype.isAfterLines=function(e){return this._checkPendingChanges(),this.getLinesTotalHeight()<e},_s.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;i<o;){var r=(i+o)/2|0,s=0|this.getVerticalOffsetForLineNumber(r);if(s+n<=e)i=1+r;else{if(s<=e)return r;o=r}}return t<i?t:i},_s.prototype.getLinesViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,l=0|this.getFirstWhitespaceIndexAfterLineNumber(r),u=0|this.getWhitespacesCount();n=-1===l?(l=u,i=a+1,0):(i=0|this.getAfterLineNumberForWhitespaceIndex(l),0|this.getHeightForWhitespaceIndex(l));var c=s,d=c,h=0;5e5<=s&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/o)*o);for(var p=[],f=e+(t-e)/2,g=-1,m=r;m<=a;m++){for(-1===g&&(c<=f&&f<c+o||f<c)&&(g=m),c+=o,p[m-r]=d,d+=o;i===m;)d+=n,c+=n,u<=++l?i=a+1:(i=0|this.getAfterLineNumberForWhitespaceIndex(l),n=0|this.getHeightForWhitespaceIndex(l));if(t<=c){a=m;break}}-1===g&&(g=a);var v=0|this.getVerticalOffsetForLineNumber(a),y=r,b=a;return y<b&&s<e&&y++,y<b&&t<v+o&&b--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:b}},_s.prototype.getVerticalOffsetForWhitespaceIndex=function(e){this._checkPendingChanges(),e|=0;var t=this.getAfterLineNumberForWhitespaceIndex(e);return(1<=t?this._lineHeight*t:0)+(0<e?this.getWhitespacesAccumulatedHeight(e-1):0)},_s.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n)<=e)return-1;for(;t<n;){var i=Math.floor((t+n)/2),o=this.getVerticalOffsetForWhitespaceIndex(i);if(o+this.getHeightForWhitespaceIndex(i)<=e)t=i+1;else{if(o<=e)return i;n=i}}return t},_s.prototype.getWhitespaceAtVerticalOffset=function(e){this._checkPendingChanges(),e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(e<n)return null;var i=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}},_s.prototype.getWhitespaceViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this.getHeightForWhitespaceIndex(r);if(t<=s)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},_s.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},_s.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},_s.prototype.getIdForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id},_s.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber},_s.prototype.getHeightForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height},_s.INSTANCE_COUNT=0,_s);function _s(e,t){this._instanceId=Tt.M(++_s.INSTANCE_COUNT),this._pendingChanges=new ms,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t}var ws,Cs=n(777),Ss=(ws=function(e,t){return(ws=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){function n(){this.constructor=e}ws(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Os=(xs.prototype.equals=function(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight},xs);function xs(e,t,n,i){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(i|=0)<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}var ks,Es=(Ss(Ns,ks=l.a),Ns.prototype.getScrollable=function(){return this._scrollable},Ns.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},Ns.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Ns.prototype.getScrollDimensions=function(){return this._dimensions},Ns.prototype.setScrollDimensions=function(e){if(!this._dimensions.equals(e)){var t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:n,contentHeightChanged:i})}},Ns.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},Ns.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},Ns.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Ns.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Ns);function Ns(e,t){var n=ks.call(this)||this;return n._onDidContentSizeChange=n._register(new a.a),n.onDidContentSizeChange=n._onDidContentSizeChange.event,n._dimensions=new Os(0,0,0,0),n._scrollable=n._register(new gs.a(e,t)),n.onDidScroll=n._scrollable.onScroll,n}var Ls,Ds=(Ss(Ms,Ls=l.a),Ms.prototype.dispose=function(){Ls.prototype.dispose.call(this)},Ms.prototype.getScrollable=function(){return this._scrollable.getScrollable()},Ms.prototype.onHeightMaybeChanged=function(){this._updateHeight()},Ms.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?125:0)},Ms.prototype.onConfigurationChanged=function(e){var t=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(t.get(49)),e.hasChanged(107)){var n=t.get(107),i=n.contentWidth,o=n.height,r=this._scrollable.getScrollDimensions(),s=r.scrollWidth;this._scrollable.setScrollDimensions(new Os(i,r.contentWidth,o,this._getContentHeight(i,o,s)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},Ms.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},Ms.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},Ms.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},Ms.prototype._getHorizontalScrollbarHeight=function(e,t){var n=this._configuration.options.get(78);return 2===n.horizontal||t<=e?0:n.horizontalScrollbarSize},Ms.prototype._getContentHeight=function(e,t,n){var i=this._configuration.options,o=this._linesLayout.getLinesTotalHeight();return i.get(80)?o+=t-i.get(49):o+=this._getHorizontalScrollbarHeight(e,n),o},Ms.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.scrollWidth;this._scrollable.setScrollDimensions(new Os(t,e.contentWidth,n,this._getContentHeight(t,n,i)))},Ms.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Cs.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Ms.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Cs.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Ms.prototype._computeContentWidth=function(e){var t=this._configuration.options,n=t.get(108),i=t.get(34);if(n.isViewportWrapping){var o=t.get(107),r=t.get(54);return e>o.contentWidth+i.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+o.verticalScrollbarWidth:e}var s=t.get(79)*i.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+s,a)},Ms.prototype.onMaxLineWidthChanged=function(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Os(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()},Ms.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},Ms.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},Ms.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},Ms.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},Ms.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},Ms.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},Ms.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},Ms.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},Ms.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},Ms.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},Ms.prototype.getContentWidth=function(){return this._scrollable.getScrollDimensions().contentWidth},Ms.prototype.getScrollWidth=function(){return this._scrollable.getScrollDimensions().scrollWidth},Ms.prototype.getContentHeight=function(){return this._scrollable.getScrollDimensions().contentHeight},Ms.prototype.getScrollHeight=function(){return this._scrollable.getScrollDimensions().scrollHeight},Ms.prototype.getCurrentScrollLeft=function(){return this._scrollable.getCurrentScrollPosition().scrollLeft},Ms.prototype.getCurrentScrollTop=function(){return this._scrollable.getCurrentScrollPosition().scrollTop},Ms.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Ms.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Ms.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Ms.prototype.deltaScrollNow=function(e,t){var n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},Ms);function Ms(e,t,n){var i=Ls.call(this)||this;i._configuration=e;var o=i._configuration.options,r=o.get(107);return i._linesLayout=new bs(t,o.get(49)),i._scrollable=i._register(new Es(0,n)),i._configureSmoothScrollDuration(),i._scrollable.setScrollDimensions(new Os(r.contentWidth,0,r.height,0)),i.onDidScroll=i._scrollable.onDidScroll,i.onDidContentSizeChange=i._scrollable.onDidContentSizeChange,i._updateHeight(),i}var Ts=n(495),Is=n(1091),Ps=function(e,t){this.outputLineIndex=e,this.outputOffset=t},As=(Rs.getInputOffsetOfOutputPosition=function(e,t,n){return 0===t?n:e[t-1]+n},Rs.getOutputPositionOfInputOffset=function(e,t){for(var n=0,i=e.length-1,o=0,r=0;n<=i;){var s=e[o=n+(i-n)/2|0];if(t<(r=0<o?e[o-1]:0))i=o-1;else{if(!(s<=t))break;n=o+1}}return new Ps(o,t-r)},Rs);function Rs(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}var js=(Fs.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},Fs.prototype.convertViewRangeToModelRange=function(e){return this._lines.convertViewRangeToModelRange(e)},Fs.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},Fs.prototype.validateViewRange=function(e,t){return this._lines.validateViewRange(e,t)},Fs.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},Fs.prototype.convertModelRangeToViewRange=function(e){return this._lines.convertModelRangeToViewRange(e)},Fs.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},Fs);function Fs(e){this._lines=e}var Bs=(Ws.prototype._invalidate=function(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)},Ws.prototype._ensureValid=function(){if(!this._isValid){for(var e=this._validEndIndex+1,t=this._counts.length;e<t;e++){var n=this._counts[e],i=0<e?this._modelToView[e-1]:0;this._modelToView[e]=i+n;for(var o=0;o<n;o++)this._viewToModel[i+o]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}},Ws.prototype.changeValue=function(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))},Ws.prototype.removeValues=function(e,t){this._counts.splice(e,t),this._invalidate(e)},Ws.prototype.insertValues=function(e,t){this._counts=pi.a(this._counts,e,t),this._invalidate(e)},Ws.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},Ws.prototype.getAccumulatedValue=function(e){return this._ensureValid(),this._modelToView[e]},Ws.prototype.getIndexOf=function(e){this._ensureValid();var t=this._viewToModel[e],n=0<t?this._modelToView[t-1]:0;return new Is.b(t,e-n)},Ws);function Ws(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}var Vs=(zs.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},zs.prototype.createCoordinatesConverter=function(){return new js(this)},zs.prototype._constructLines=function(e,t){var n=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var i=this.model.getLinesContent(),o=i.length,r=this.createLineBreaksComputer(),s=0;s<o;s++)r.addRequest(i[s],t?t[s]:null);var a=r.finalize(),l=[],u=this.hiddenAreasIds.map((function(e){return n.model.getDecorationRange(e)})).sort(Ie.a.compareRangesUsingStarts),c=1,d=0,h=-1,p=h+1<u.length?d+1:o+2;for(s=0;s<o;s++){var f=s+1;f===p&&(c=u[++h].startLineNumber,d=u[h].endLineNumber,p=h+1<u.length?d+1:o+2);var g=c<=f&&f<=d,m=$s(a[s],!g);l[s]=m.getViewLineCount(),this.lines[s]=m}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Bs(l)},zs.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},zs.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map((function(e){return t.model.validateRange(e)})).sort(Ie.a.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var l=n[s];l.startLineNumber>r+1?(i.push(new Ie.a(o,1,r,1)),o=l.startLineNumber,r=l.endLineNumber):l.endLineNumber>r&&(r=l.endLineNumber)}return i.push(new Ie.a(o,1,r,1)),i},zs.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Ie.a.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r<n.length;r++)if(!n[r].equalsRange(i[r])){o=!0;break}if(!o)return!1}for(var s=[],a=0,l=n;a<l.length;a++){var u=l[a];s.push({range:u,options:Ts.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,p=-1,f=p+1<c.length?h+1:this.lines.length+2,g=!1;for(r=0;r<this.lines.length;r++){var m=r+1;m===f&&(d=c[++p].startLineNumber,h=c[p].endLineNumber,f=p+1<c.length?h+1:this.lines.length+2);var v=!1;if(d<=m&&m<=h?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),v=!0):(g=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),v=!0)),v){var y=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,y)}}return g||this.setHiddenAreas([]),!0},zs.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},zs.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)},zs.prototype.setWrappingSettings=function(e,t,n,i){var o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,s=this.wrappingColumn===n,a=this.wrappingIndent===i;if(o&&r&&s&&a)return!1;var l=o&&r&&!s&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;var u=null;if(l){u=[];for(var c=0,d=this.lines.length;c<d;c++)u[c]=this.lines[c].getLineBreakData()}return this._constructLines(!1,u),!0},zs.prototype.createLineBreaksComputer=function(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},zs.prototype.onModelFlushed=function(){this._constructLines(!0,null)},zs.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new an(i,o)},zs.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new Te.a(t,1),a=0,l=o;a<l.length;a++)if(l[a].containsPosition(s)){r=!0;break}for(var u=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=0,d=[],h=[],p=0,f=i.length;p<f;p++){var g=$s(i[p],!r);d.push(g);var m=g.getViewLineCount();c+=m,h[p]=m}return this.lines=this.lines.slice(0,t-1).concat(d).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,h),new ln(u,u+c-1)},zs.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,o=this.lines[i].getViewLineCount(),r=$s(n,this.lines[i].isVisible());this.lines[i]=r;var s=this.lines[i].getViewLineCount(),a=!1,l=0,u=-1,c=0,d=-1,h=0,p=-1;return s<o?(p=(h=1+(u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1))+(o-s)-1,a=!0):o<s?(d=(c=1+(u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+o-1))+(s-o)-1,a=!0):u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1,this.prefixSumComputer.changeValue(i,s),[a,l<=u?new sn(l,u):null,c<=d?new ln(c,d):null,h<=p?new an(h,p):null]},zs.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},zs.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},zs.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return t<e?t:0|e},zs.prototype.getActiveIndentGuide=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}},zs.prototype.getViewLinesIndentGuides=function(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=[],a=n.lineNumber-1,l=i.lineNumber-1,u=null,c=a;c<=l;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),f=0;1<(C=p-h+1)&&1===d.getViewLineMinColumn(this.model,c+1,p)&&(f=0===h?1:2),r.push(C),s.push(f),null===u&&(u=new Te.a(c+1,0))}else null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,c)),u=null)}null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,i.lineNumber)),u=null);for(var g=t-e+1,m=new Array(g),v=0,y=0,b=o.length;y<b;y++){var _,w=o[y],C=Math.min(g-v,r[y]);_=2===(f=s[y])?0:1===f?1:C;for(var S=0;S<C;S++)S===_&&(w=0),m[v++]=w}return m},zs.prototype.getViewLineContent=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)},zs.prototype.getViewLineLength=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)},zs.prototype.getViewLineMinColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)},zs.prototype.getViewLineMaxColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)},zs.prototype.getViewLineData=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)},zs.prototype.getViewLinesData=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.prefixSumComputer.getIndexOf(e-1),o=e,r=i.index,s=i.remainder,a=[],l=r,u=this.model.getLineCount();l<u;l++){var c=this.lines[l];if(c.isVisible()){var d=l===r?s:0,h=c.getViewLineCount()-d,p=!1;t<o+h&&(p=!0,h=t-o+1);var f=d+h;if(c.getViewLinesData(this.model,l+1,d,f,o-e,n,a),o+=h,p)break}}return a},zs.prototype.validateViewPosition=function(e,t,n){e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),l=s.getViewLineMaxColumn(this.model,o+1,r);t<a&&(t=a),l<t&&(t=l);var u=s.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Te.a(o+1,u)).equals(n)?new Te.a(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},zs.prototype.validateViewRange=function(e,t){var n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Ie.a(n.lineNumber,n.column,i.lineNumber,i.column)},zs.prototype.convertViewPositionToModelPosition=function(e,t){e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=n.remainder,r=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new Te.a(i+1,r))},zs.prototype.convertViewRangeToModelRange=function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Ie.a(t.lineNumber,t.column,n.lineNumber,n.column)},zs.prototype.convertModelPositionToViewPosition=function(e,t){for(var n=this.model.validatePosition(new Te.a(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;0<r&&!this.lines[r].isVisible();)r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new Te.a(1,1);var a=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return s?this.lines[r].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(a,o)},zs.prototype.convertModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new Ie.a(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new Ie.a(t.lineNumber,t.column,n.lineNumber,n.column)},zs.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}for(;0<n&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))},zs.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new na,r=0,s=i;r<s.length;r++){var a=s[r],l=a.options.overviewRuler,u=l?l.position:0;if(0!==u){var c=l.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);o.accept(c,d,h,u)}}return o.result},zs.prototype.getDecorationsInRange=function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Ie.a(i.lineNumber,1,o.lineNumber,o.column),t,n);for(var r=[],s=i.lineNumber-1,a=o.lineNumber-1,l=null,u=s;u<=a;u++)if(this.lines[u].isVisible())null===l&&(l=new Te.a(u+1,u===s?i.column:1));else if(null!==l){var c=this.model.getLineMaxColumn(u);r=r.concat(this.model.getDecorationsInRange(new Ie.a(l.lineNumber,l.column,u,c),t,n)),l=null}null!==l&&(r=r.concat(this.model.getDecorationsInRange(new Ie.a(l.lineNumber,l.column,o.lineNumber,o.column),t,n)),l=null),r.sort((function(e,t){var n=Ie.a.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));for(var d=[],h=0,p=null,f=0,g=r;f<g.length;f++){var m=g[f],v=m.id;p!==v&&(p=v,d[h++]=m)}return d},zs);function zs(e,t,n,i,o,r,s,a){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=i,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=s,this.wrappingIndent=a,this._constructLines(!0,null)}var Hs=(qs.prototype.isVisible=function(){return!0},qs.prototype.setVisible=function(e){return e?this:Us.INSTANCE},qs.prototype.getLineBreakData=function(){return null},qs.prototype.getViewLineCount=function(){return 1},qs.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},qs.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},qs.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},qs.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},qs.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),o=i.getLineContent();return new Cs.c(o,!1,1,o.length+1,0,i.inflate())},qs.prototype.getViewLinesData=function(e,t,n,i,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null},qs.prototype.getModelColumnOfViewPosition=function(e,t){return t},qs.prototype.getViewPositionOfModelPosition=function(e,t){return new Te.a(e,t)},qs.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},qs.INSTANCE=new qs,qs);function qs(){}var Us=(Ks.prototype.isVisible=function(){return!1},Ks.prototype.setVisible=function(e){return e?Hs.INSTANCE:this},Ks.prototype.getLineBreakData=function(){return null},Ks.prototype.getViewLineCount=function(){return 0},Ks.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},Ks.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},Ks.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},Ks.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},Ks.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},Ks.prototype.getViewLinesData=function(e,t,n,i,o,r,s){throw new Error("Not supported")},Ks.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},Ks.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},Ks.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},Ks.INSTANCE=new Ks,Ks);function Ks(){}var Gs=(Ys.prototype.isVisible=function(){return this._isVisible},Ys.prototype.setVisible=function(e){return this._isVisible=e,this},Ys.prototype.getLineBreakData=function(){return this._lineBreakData},Ys.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},Ys.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return As.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)},Ys.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:As.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)},Ys.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});return 0<n&&(r=Xs(this._lineBreakData.wrappedTextIndentLength)+r),r},Ys.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-i;return 0<n&&(o=this._lineBreakData.wrappedTextIndentLength+o),o},Ys.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return 0<n?this._lineBreakData.wrappedTextIndentLength+1:1},Ys.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},Ys.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});0<n&&(r=Xs(this._lineBreakData.wrappedTextIndentLength)+r);var s=0<n?this._lineBreakData.wrappedTextIndentLength+1:1,a=r.length+1,l=n+1<this.getViewLineCount(),u=0;0<n&&(u=this._lineBreakData.wrappedTextIndentLength);var c=e.getLineTokens(t),d=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new Cs.c(r,l,s,a,d,c.sliceAndInflate(i,o,u))},Ys.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<i;a++){var l=o+a-n;r[l]?s[l]=this.getViewLineData(e,t,a):s[l]=null}},Ys.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return 0<e&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),As.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1},Ys.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=As.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),i=n.outputLineIndex,o=n.outputOffset+1;return 0<i&&(o+=this._lineBreakData.wrappedTextIndentLength),new Te.a(e+i,o)},Ys.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+As.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1).outputLineIndex},Ys);function Ys(e,t){this._lineBreakData=e,this._isVisible=t}var Zs=[""];function Xs(e){if(e>=Zs.length)for(var t=1;t<=e;t++)Zs[t]=new Array(t+1).join(" ");return Zs[e]}function $s(e,t){return null===e?t?Hs.INSTANCE:Us.INSTANCE:new Gs(e,t)}var Js=(Qs.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},Qs.prototype._validRange=function(e){return this._lines.model.validateRange(e)},Qs.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},Qs.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},Qs.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},Qs.prototype.validateViewRange=function(e,t){return this._validRange(t)},Qs.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},Qs.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},Qs.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},Qs);function Qs(e){this._lines=e}var ea=(ta.prototype.dispose=function(){},ta.prototype.createCoordinatesConverter=function(){return new Js(this)},ta.prototype.getHiddenAreas=function(){return[]},ta.prototype.setHiddenAreas=function(e){return!1},ta.prototype.setTabSize=function(e){return!1},ta.prototype.setWrappingSettings=function(e,t,n,i){return!1},ta.prototype.createLineBreaksComputer=function(){var e=[];return{addRequest:function(){e.push(null)},finalize:function(){return e}}},ta.prototype.onModelFlushed=function(){},ta.prototype.onModelLinesDeleted=function(e,t,n){return new an(t,n)},ta.prototype.onModelLinesInserted=function(e,t,n,i){return new ln(t,n)},ta.prototype.onModelLineChanged=function(e,t,n){return[!1,new sn(t,t),null,null]},ta.prototype.acceptVersionId=function(e){},ta.prototype.getViewLineCount=function(){return this.model.getLineCount()},ta.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},ta.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o<n;o++)i[o]=0;return i},ta.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},ta.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},ta.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},ta.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},ta.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new Cs.c(n,!1,1,n.length+1,0,t.inflate())},ta.prototype.getViewLinesData=function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var o=[],r=e;r<=t;r++){var s=r-e;n[s]||(o[s]=null),o[s]=this.getViewLineData(r)}return o},ta.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new na,r=0,s=i;r<s.length;r++){var a=s[r],l=a.options.overviewRuler,u=l?l.position:0;if(0!==u){var c=l.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;o.accept(c,d,h,u)}}return o.result},ta.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},ta);function ta(e){this.model=e}var na=(ia.prototype.accept=function(e,t,n,i){var o=this.result[e];if(o){var r=o[o.length-3],s=o[o.length-1];if(r===i&&t<=s+1)return void(s<n&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},ia);function ia(){this.result=Object.create(null)}var oa=(ra.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},ra.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new Te.a(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new Te.a(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new Ie.a(s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new Cs.e(r,o),this._decorationsCache[t]=n}return n},ra.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},ra.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(pe.j)(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var l=0,u=t.length;l<u;l++){var c=t[l],d=c.options,h=this._getOrCreateViewModelDecoration(c),p=h.range;if(o[r++]=h,d.inlineClassName){var f=new Cs.a(p,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,p.startLineNumber),m=Math.min(i,p.endLineNumber);for(a=g;a<=m;a++)s[a-n].push(f)}d.beforeContentClassName&&n<=p.startLineNumber&&p.startLineNumber<=i&&(f=new Cs.a(new Ie.a(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),d.beforeContentClassName,1),s[p.startLineNumber-n].push(f)),d.afterContentClassName&&n<=p.endLineNumber&&p.endLineNumber<=i&&(f=new Cs.a(new Ie.a(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),d.afterContentClassName,2),s[p.endLineNumber-n].push(f))}return{decorations:o,inlineDecorations:s}},ra);function ra(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}var sa,aa,la=((sa=function(e,t){return(sa=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){function n(){this.constructor=e}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ua,aa=gn),ua.prototype.dispose=function(){aa.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},ua.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},ua.prototype.setHasFocus=function(e){this.hasFocus=e},ua.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new Te.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var o=!1,r=this.configuration.options,s=r.get(34),a=r.get(103),l=r.get(108),u=r.get(102);if(this.lines.setWrappingSettings(s,a,l.wrappingColumn,u)&&(e.emit(new tn),e.emit(new rn),e.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.hasChanged(68)&&(this.decorations.reset(),e.emit(new en)),e.emit(new Zt(t)),this.viewLayout.onConfigurationChanged(t),o&&n){var c=this.coordinatesConverter.convertModelPositionToViewPosition(n),d=this.viewLayout.getVerticalOffsetForLineNumber(c.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:d+this.viewportStartLineDelta})}},ua.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast((function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=e.lines.createLineBreaksComputer(),l=0,u=r;l<u.length;l++)switch((v=u[l]).changeType){case 4:for(var c=0,d=v.detail;c<d.length;c++){var h=d[c];a.addRequest(h,null)}break;case 2:a.addRequest(v.detail,null)}for(var p=a.finalize(),f=0,g=0,m=r;g<m.length;g++){var v;switch((v=m[g]).changeType){case 1:e.lines.onModelFlushed(),n.emit(new tn),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:null!==(O=e.lines.onModelLinesDeleted(s,v.fromLineNumber,v.toLineNumber))&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber)),i=!0;break;case 4:var y=p.slice(f,f+v.detail.length);f+=v.detail.length,null!==(S=e.lines.onModelLinesInserted(s,v.fromLineNumber,v.toLineNumber,y))&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),i=!0;break;case 2:var b=p[f];f++;var _=e.lines.onModelLineChanged(s,v.lineNumber,b),w=_[0],C=_[1],S=_[2],O=_[3];o=w,C&&n.emit(C),S&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),O&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber))}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&o&&(n.emit(new rn),n.emit(new en),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&2<=e.model.getAttachedEditorCount()&&e.viewportStartLineTrackedRange){var x=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(x){var k=e.coordinatesConverter.convertModelPositionToViewPosition(x.getStartPosition()),E=e.viewLayout.getVerticalOffsetForLineNumber(k.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:E+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],i=0,o=t.ranges.length;i<o;i++){var r=t.ranges[i],s=e.coordinatesConverter.convertModelPositionToViewPosition(new Te.a(r.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new Te.a(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a}}try{e._beginEmit().emit(new hn(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{e._beginEmit().emit(new on)}finally{e._endEmit()}}))),this._register(this.model.onDidChangeOptions((function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new tn),n.emit(new rn),n.emit(new en)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{e._beginEmit().emit(new en)}finally{e._endEmit()}})))},ua.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();this.lines.setHiddenAreas(e)&&(t.emit(new tn),t.emit(new rn),t.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},ua.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],o=0,r=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,l=t.endColumn,u=0,c=n.length;u<c;u++){var d=n[u].startLineNumber,h=n[u].endLineNumber;h<r||a<d||(r<d&&(i[o++]=new Ie.a(r,s,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,s=1)}return(r<a||r===a&&s<l)&&(i[o++]=new Ie.a(r,s,a,l)),i},ua.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Ie.a(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},ua.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Ie.a(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))},ua.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(n,this.getLineMinColumn(n))),o=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:o}},ua.prototype.reduceRestoreState=function(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}},ua.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},ua.prototype.getTabSize=function(){return this.model.getOptions().tabSize},ua.prototype.getOptions=function(){return this.model.getOptions()},ua.prototype.getLineCount=function(){return this.lines.getViewLineCount()},ua.prototype.setViewport=function(e,t,n){this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new Te.a(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Ie.a(i.lineNumber,i.column,i.lineNumber,i.column),1);var o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-o},ua.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},ua.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},ua.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},ua.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},ua.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},ua.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},ua.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Tt.q(this.getLineContent(e));return-1===t?0:t+1},ua.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Tt.D(this.getLineContent(e));return-1===t?0:t+2},ua.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},ua.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new Cs.d(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,i,r.tokens,s,o,r.startVisibleColumn)},ua.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},ua.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new Cs.b(this.getTabSize(),i)},ua.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(pe.j)(this.configuration.options),e)},ua.prototype.invalidateOverviewRulerColorCache=function(){for(var e=0,t=this.model.getOverviewRulerDecorations();e<t.length;e++){var n=t[e].options.overviewRuler;n&&n.invalidateCachedColor()}},ua.prototype.invalidateMinimapColorCache=function(){for(var e=0,t=this.model.getAllDecorations();e<t.length;e++){var n=t[e].options.minimap;n&&n.invalidateCachedColor()}},ua.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},ua.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},ua.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},ua.prototype.validateModelRange=function(e){return this.model.validateRange(e)},ua.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var o=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(o)},ua.prototype.getEOL=function(){return this.model.getEOL()},ua.prototype.getPlainTextToCopy=function(e,t,n){var i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Ie.a.compareRangesUsingStarts);for(var o=!1,r=!1,s=0,a=e;s<a.length;s++)a[s].isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";for(var l=e.map((function(e){return e.startLineNumber})),u="",c=0;c<l.length;c++)0<c&&l[c-1]===l[c]||(u+=this.model.getLineContent(l[c])+i);return u}if(o&&t){for(var d=[],h=0,p=0,f=e;p<f.length;p++){var g=(b=f[p]).startLineNumber;b.isEmpty()?g!==h&&d.push(this.model.getLineContent(g)):d.push(this.model.getValueInRange(b,n?2:0)),h=g}return 1===d.length?d[0]:d}for(var m=[],v=0,y=e;v<y.length;v++){var b;(b=y[v]).isEmpty()||m.push(this.model.getValueInRange(b,n?2:0))}return 1===m.length?m[0]:m},ua.prototype.getRichTextToCopy=function(e,t){var n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;var i=e[0];if(i.isEmpty()){if(!t)return null;var o=i.startLineNumber;i=new Ie.a(o,this.model.getLineMinColumn(o),o,this.model.getLineMaxColumn(o))}var r=this.configuration.options.get(34),s=this._getColorMap(),a=r.fontFamily===pe.b.fontFamily?r.fontFamily:"'"+r.fontFamily+"', "+pe.b.fontFamily;return{mode:n.language,html:'<div style="color: '+s[1]+";background-color: "+s[2]+";font-family: "+a+";font-weight: "+r.fontWeight+";font-size: "+r.fontSize+"px;line-height: "+r.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(i,s)+"</div>"}},ua.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",l=n;l<=o;l++){var u=this.model.getLineTokens(l),c=u.getLineContent(),d=l===n?i-1:0,h=l===o?r-1:c.length;a+=""===c?"<br>":Object(fs.a)(c,u.inflate(),t,d,h,s,f.h)}return a},ua.prototype._getColorMap=function(){var e=co.B.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=Go.a.Format.CSS.formatHex(e[n]);return t},ua);function ua(e,t,n,i,o,r){var s=aa.call(this)||this;if(s.editorId=e,s.configuration=t,s.model=n,s._tokenizeViewportSoon=s._register(new y.d((function(){return s.tokenizeViewport()}),50)),s.hasFocus=!1,s.viewportStartLine=-1,s.viewportStartLineTrackedRange=null,s.viewportStartLineDelta=0,s.model.isTooLargeForTokenization())s.lines=new ea(s.model);else{var a=s.configuration.options,l=a.get(34),u=a.get(103),c=a.get(108),d=a.get(102);s.lines=new Vs(s.model,i,o,l,s.model.getOptions().tabSize,u,c.wrappingColumn,d)}return s.coordinatesConverter=s.lines.createCoordinatesConverter(),s.viewLayout=s._register(new Ds(s.configuration,s.getLineCount(),r)),s._register(s.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&s._tokenizeViewportSoon.schedule();try{s._beginEmit().emit(new cn(e))}finally{s._endEmit()}}))),s._register(s.viewLayout.onDidContentSizeChange((function(e){try{s._beginEmit().emit(new Jt(e))}finally{s._endEmit()}}))),s.decorations=new oa(s.editorId,s.model,s.configuration,s.lines,s.coordinatesConverter),s._registerModelEvents(),s._register(s.configuration.onDidChange((function(e){try{var t=s._beginEmit();s._onConfigurationChanged(t,e)}finally{s._endEmit()}}))),s._register(ho.getInstance().onDidChange((function(){try{s._beginEmit().emit(new pn)}finally{s._endEmit()}}))),s}var ca,da,ha=n(489),pa=n(456),fa=n(448),ga=n(895),ma=n(532),va=n(759),ya=n(465),ba=n(790),_a=((ca=function(e,t){return(ca=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){function n(){this.constructor=e}ca(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(wa,da=ba.a),wa.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:12352<=e&&e<=12543||13312<=e&&e<=19903||19968<=e&&e<=40959?3:this._map.get(e)||this._defaultValue},wa);function wa(e,t){for(var n=da.call(this,0)||this,i=0;i<e.length;i++)n.set(e.charCodeAt(i),1);for(i=0;i<t.length;i++)n.set(t.charCodeAt(i),2);return n}var Ca=[],Sa=[],Oa=(xa.create=function(e){return new xa(e.get(99),e.get(98))},xa.prototype.createLineBreaksComputer=function(e,t,n,i){var o=this;t|=0,n=+n;var r=[],s=[];return{addRequest:function(e,t){r.push(e),s.push(t)},finalize:function(){for(var a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[],u=0,c=r.length;u<c;u++){var d=s[u];l[u]=d?ka(o.classifier,d,r[u],t,n,a,i):Ea(o.classifier,r[u],t,n,a,i)}return Ca.length=0,Sa.length=0,l}}},xa);function xa(e,t){this.classifier=new _a(e,t)}function ka(e,t,n,i,o,r,s){if(-1===o)return null;var a=n.length;if(a<=1)return null;var l=t.breakOffsets,u=t.breakOffsetsVisibleColumn,c=Ma(n,i,o,r,s),d=o-c,h=Ca,p=Sa,f=0,g=o,m=l.length,v=0;if(0<=v)for(var y=Math.abs(u[v]-g);v+1<m&&!(y<=(F=Math.abs(u[v+1]-g)));)y=F,v++;for(;v<m;){var b=v<0?0:l[v],_=v<0?0:u[v],w=0,C=0,S=0,O=0;if(_<=g){for(var x=_,k=n.charCodeAt(b-1),E=e.get(k),N=!0,L=b;L<a;L++){var D=L,M=n.charCodeAt(L),T=void 0,I=void 0;if(I=Tt.z(M)?(L++,T=0,2):(T=e.get(M),Na(M,x,i,r)),Da(k,E,M,T)&&(w=D,C=x),g<(x+=I)){S=D,O=x-I,d<x-C&&(w=0),N=!1;break}k=M,E=T}if(N){0<f&&(h[f]=l[l.length-1],p[f]=u[l.length-1],f++);break}}if(0===w){x=_,M=n.charCodeAt(b),T=e.get(M);var P=!1;for(L=b-1;0<=L;L--){if(D=L+1,9===(k=n.charCodeAt(L))){P=!0;break}E=void 0;var A;if(A=Tt.A(k)?(L--,E=0,2):(E=e.get(k),Tt.y(k)?r:1),x<=g){if(0===S&&(S=D,O=x),x<=g-d)break;if(Da(k,E,M,T)){w=D,C=x;break}}x-=A,M=k,T=E}if(0!==w){var R=d-(O-C);if(R<=i){var j=n.charCodeAt(S);I=void 0,R-(I=Tt.z(j)?2:Na(j,O,i,r))<0&&(w=0)}}if(P){v--;continue}}for(0===w&&(w=S,C=O),h[f]=w,p[f]=C,f++,g=C+d;v<0||v<m&&u[v]<C;)v++;for(y=Math.abs(u[v]-g);v+1<m;){var F;if(y<=(F=Math.abs(u[v+1]-g)))break;y=F,v++}}return 0===f?null:(h.length=f,p.length=f,Ca=t.breakOffsets,Sa=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=p,t.wrappedTextIndentLength=c,t)}function Ea(e,t,n,i,o,r){if(-1===i)return null;var s=t.length;if(s<=1)return null;var a=Ma(t,n,i,o,r),l=i-a,u=[],c=[],d=0,h=0,p=0,f=i,g=t.charCodeAt(0),m=e.get(g),v=Na(g,0,n,o),y=1;Tt.z(g)&&(v+=1,g=t.charCodeAt(1),m=e.get(g),y++);for(var b=y;b<s;b++){var _,w=b,C=t.charCodeAt(b),S=void 0;_=Tt.z(C)?(b++,S=0,2):(S=e.get(C),Na(C,v,n,o)),Da(g,m,C,S)&&(h=w,p=v),f<(v+=_)&&((0===h||l<v-p)&&(h=w,p=v-_),u[d]=h,c[d]=p,d++,f=p+l,h=0),g=C,m=S}return 0===d?null:(u[d]=s,c[d]=v,new As(u,c,a))}function Na(e,t,n,i){return 9===e?n-t%n:Tt.y(e)?i:1}function La(e,t){return t-e%t}function Da(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function Ma(e,t,n,i,o){var r=0;if(0!==o){var s=Tt.q(e);if(-1!==s){for(var a=0;a<s;a++)r+=9===e.charCodeAt(a)?La(r,t):1;var l=3===o?2:2===o?1:0;for(a=0;a<l;a++)r+=La(r,t);n<r+i&&(r=0)}}return r}var Ta=(Ia.create=function(){return new Ia},Ia.prototype.createLineBreaksComputer=function(e,t,n,i){t|=0,n=+n;var o=[];return{addRequest:function(e){o.push(e)},finalize:function(){return function(e,t,n,i,o){if(-1===i){for(var r=[],s=0,a=e.length;s<a;s++)r[s]=null;return r}var l=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==o&&3!==o||(o=1);var u=document.createElement("div");c.a.applyFontInfoSlow(u,t);var d=Object(jn.a)(1e4),h=[],p=[],f=[],g=[],m=[];for(s=0;s<e.length;s++){var v=e[s],y=0,b=0,_=l;if(0!==o)if(-1===(y=Tt.q(v)))y=0;else{for(var w=0;w<y;w++){b+=9===v.charCodeAt(w)?n-b%n:1}var C=Math.ceil(t.spaceWidth*b);C+t.typicalFullwidthCharacterWidth>l?b=y=0:_=l-C}var S=v.substr(y),O=Pa(S,b,n,_,d);h[s]=y,p[s]=b,f[s]=S,g[s]=O[0],m[s]=O[1]}u.innerHTML=d.build(),u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);var x=document.createRange(),k=Array.prototype.slice.call(u.children,0),E=[];for(s=0;s<e.length;s++){var N=Aa(x,k[s],f[s],g[s]);if(null!==N){y=h[s],b=p[s];var L=m[s],D=[],M=0;for(a=N.length;M<a;M++)D[M]=L[N[M]];if(0!==y)for(M=0,a=N.length;M<a;M++)N[M]+=y;E[s]=new As(N,D,b)}else E[s]=null}return document.body.removeChild(u),E}(o,e,t,n,i)}}},Ia);function Ia(){}function Pa(e,t,n,i,o){o.appendASCIIString('<div style="width:'),o.appendASCIIString(String(i)),o.appendASCIIString('px;">');for(var r=e.length,s=t,a=0,l=[],u=[],c=0<r?e.charCodeAt(0):0,d=0;d<r;d++){l[d]=a,u[d]=s;var h=c;c=d+1<r?e.charCodeAt(d+1):0;var p=1,f=1;switch(h){case 9:f=p=n-s%n;for(var g=1;g<=p;g++)g<p?o.write1(160):o.appendASCII(32);break;case 32:32===c?o.write1(160):o.appendASCII(32);break;case 60:o.appendASCIIString("<");break;case 62:o.appendASCIIString(">");break;case 38:o.appendASCIIString("&");break;case 0:o.appendASCIIString("�");break;case 65279:case 8232:o.write1(65533);break;default:Tt.y(h)&&f++,o.write1(h)}a+=p,s+=f}return l[e.length]=a,u[e.length]=s,o.appendASCIIString("</div>"),[l,u]}function Aa(e,t,n,i){if(n.length<=1)return null;var o=[];return function e(t,n,i,o,r,s,a,l){if(o!==s&&(r=r||Ra(t,n,i[o],i[o+1]),a=a||Ra(t,n,i[s],i[s+1]),!(Math.abs(r[0].top-a[0].top)<=.1)))if(o+1!==s){var u=o+(s-o)/2|0,c=Ra(t,n,i[u],i[1+u]);e(t,n,i,o,r,u,c,l),e(t,n,i,u,c,s,a,l)}else l.push(s)}(e,t.firstChild,i,0,null,n.length-1,null,o),0===o.length?null:(o.push(n.length),o)}function Ra(e,t,n,i){return e.setStart(t,n),e.setEnd(t,i),e.getClientRects()}n.d(t,"a",(function(){return qa}));var ja,Fa=(ja=function(e,t){return(ja=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){function n(){this.constructor=e}ja(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ba=function(e,t){return function(n,i){t(n,i,e)}},Wa=0,Va=(za.prototype.dispose=function(){Object(l.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},za);function za(e,t,n,i,o,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=o,this.listenersToRemove=r}var Ha,qa=(Fa(Ua,Ha=l.a),Ua.prototype._createConfiguration=function(e,t){return new c.a(this.isSimpleWidget,e,this._domElement,t)},Ua.prototype.getId=function(){return this.getEditorType()+":"+this._id},Ua.prototype.getEditorType=function(){return es.a.ICodeEditor},Ua.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),t=0,n=e.length;t<n;t++){var i=e[t];this._contributions[i].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),Ha.prototype.dispose.call(this)},Ua.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},Ua.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},Ua.prototype.getOptions=function(){return this._configuration.options},Ua.prototype.getOption=function(e){return this._configuration.options.get(e)},Ua.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},Ua.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)},Ua.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},Ua.prototype.getModel=function(){return this._modelData?this._modelData.model:null},Ua.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if(!(null===this._modelData&&null===t||this._modelData&&this._modelData.model===t)){var n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var o={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(i)}},Ua.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}},Ua.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},Ua.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},Ua._getVerticalOffsetForPosition=function(e,t,n){var i=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)},Ua.prototype.getTopForLineNumber=function(e){return this._modelData?Ua._getVerticalOffsetForPosition(this._modelData,e,1):-1},Ua.prototype.getTopForPosition=function(e,t){return this._modelData?Ua._getVerticalOffsetForPosition(this._modelData,e,t):-1},Ua.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return Ie.a.lift(e)})))},Ua.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return Pe.a.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},Ua.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},Ua.prototype.setPosition=function(e){if(this._modelData){if(!Te.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},Ua.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!Ie.a.isIRange(e))throw new Error("Invalid arguments");var o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.cursor.emitCursorRevealRange("api",r,t,n,i)}},Ua.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},Ua.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},Ua.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},Ua.prototype._revealLine=function(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Ie.a(e,1,e,1),t,!1,n)},Ua.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},Ua.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},Ua.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},Ua.prototype._revealPosition=function(e,t,n,i){if(!Te.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Ie.a(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)},Ua.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},Ua.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},Ua.prototype.setSelection=function(e){var t=et.a.isISelection(e),n=Ie.a.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i)}},Ua.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new et.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},Ua.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},Ua.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},Ua.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},Ua.prototype._revealLines=function(e,t,n,i){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Ie.a(e,1,t,1),n,!1,i)},Ua.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this._revealRange(e,n?1:0,i,t)},Ua.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},Ua.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},Ua.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},Ua.prototype._revealRange=function(e,t,n,i){if(!Ie.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Ie.a.lift(e),t,n,i)},Ua.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,i=e.length;n<i;n++)if(!et.a.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},Ua.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},Ua.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},Ua.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},Ua.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},Ua.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},Ua.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},Ua.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},Ua.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},Ua.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},Ua.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=0,n=Object.keys(this._contributions);t<n.length;t++){var i=n[t],o=this._contributions[i];"function"==typeof o.saveViewState&&(e[i]=o.saveViewState())}return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}},Ua.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var i=t.contributionsState||{},o=Object.keys(this._contributions),r=0,s=o.length;r<s;r++){var a=o[r],l=this._contributions[a];"function"==typeof l.restoreViewState&&l.restoreViewState(i[a])}var u=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(u)}}},Ua.prototype.getContribution=function(e){return this._contributions[e]||null},Ua.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._actions[o])}return e},Ua.prototype.getSupportedActions=function(){var e=this.getActions();return e.filter((function(e){return e.isSupported()}))},Ua.prototype.getAction=function(e){return this._actions[e]||null},Ua.prototype.trigger=function(e,t,n){if(n=n||{},t===es.b.Type){if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text))}if(t!==es.b.Paste){var i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,s.e):this._modelData&&(this._triggerEditorCommand(e,t,n)||(this._modelData.cursor.trigger(e,t,n),t===es.b.CompositionStart&&this._onDidCompositionStart.fire(),t===es.b.CompositionEnd&&this._onDidCompositionEnd.fire()))}else{if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;var o=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var r=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new Ie.a(o.lineNumber,o.column,r.lineNumber,r.column),mode:n.mode})}},Ua.prototype._triggerEditorCommand=function(e,t,n){var i=this,o=d.d.getEditorCommand(t);return!!o&&((n=n||{}).source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(o.runEditorCommand(e,i,n)).then(void 0,s.e)})),!0)},Ua.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},Ua.prototype.pushUndoStop=function(){return!!this._modelData&&!this._configuration.options.get(68)&&(this._modelData.model.pushStackElement(),!0)},Ua.prototype.executeEdits=function(e,t,n){return!!this._modelData&&!this._configuration.options.get(68)&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,i),!0);var i},Ua.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,es.b.ExecuteCommand,t)},Ua.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,es.b.ExecuteCommands,t)},Ua.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},Ua.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(pe.j)(this._configuration.options)):null},Ua.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},Ua.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},Ua.prototype.getLayoutInfo=function(){return this._configuration.options.get(107)},Ua.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},Ua.prototype.getContainerDomNode=function(){return this._domElement},Ua.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},Ua.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},Ua.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},Ua.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},Ua.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},Ua.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},Ua.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},Ua.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}},Ua.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}},Ua.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId()),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},Ua.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}},Ua.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}},Ua.prototype.changeViewZones=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)&&this._onDidChangeViewZones.fire()},Ua.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},Ua.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var t=this._modelData.model.validatePosition(e),n=this._configuration.options,i=n.get(107);return{top:Ua._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+i.glyphMarginWidth+i.lineNumbersWidth+i.decorationsWidth-this.getScrollLeft(),height:n.get(49)}},Ua.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},Ua.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},Ua.prototype.setAriaOptions=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)},Ua.prototype.applyFontInfo=function(e){c.a.applyFontInfoSlow(e,this._configuration.options.get(34))},Ua.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var i=new la(this._id,this._configuration,e,Ta.create(),Oa.create(this._configuration.options),(function(e){return r.W(e)}));n.push(e.onDidChangeDecorations((function(e){return t._onDidChangeModelDecorations.fire(e)}))),n.push(e.onDidChangeLanguage((function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n)}))),n.push(e.onDidChangeLanguageConfiguration((function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)}))),n.push(e.onDidChangeContent((function(e){return t._onDidChangeModelContent.fire(e)}))),n.push(e.onDidChangeOptions((function(e){return t._onDidChangeModelOptions.fire(e)}))),n.push(e.onWillDispose((function(){return t.setModel(null)})));var s=new ls(this._configuration,e,i);n.push(s.onDidReachMaxCursorCount((function(){t._notificationService.warn(o.a("cursors.maximum","The number of cursors has been limited to {0}.",ls.MAX_CURSOR_COUNT))}))),n.push(s.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(s.onDidChange((function(e){for(var n=[],i=0,o=e.selections.length;i<o;i++)n[i]=e.selections[i].getPosition();var r={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)})));var a=this._createView(i,s),l=a[0],u=a[1];if(u){this._domElement.appendChild(l.domNode.domNode);for(var c=Object.keys(this._contentWidgets),d=0,h=c.length;d<h;d++){var p=c[d];l.addContentWidget(this._contentWidgets[p])}for(d=0,h=(c=Object.keys(this._overlayWidgets)).length;d<h;d++)p=c[d],l.addOverlayWidget(this._overlayWidgets[p]);l.render(!1,!0),l.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Va(e,i,s,l,u,n)}else this._modelData=null},Ua.prototype._createView=function(e,t){var n,i=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o,r){i.trigger(e,es.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:o,mode:r})},type:function(e,t){i.trigger(e,es.b.Type,{text:t})},replacePreviousChar:function(e,t,n){i.trigger(e,es.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i.trigger(e,es.b.CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,es.b.CompositionEnd,void 0)},cut:function(e){i.trigger(e,es.b.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o,r){i._commandService.executeCommand(es.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:o,mode:r})},type:function(e,t){i._commandService.executeCommand(es.b.Type,{text:t})},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(es.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(){i._commandService.executeCommand(es.b.CompositionStart,{})},compositionEnd:function(){i._commandService.executeCommand(es.b.CompositionEnd,{})},cut:function(){i._commandService.executeCommand(es.b.Cut,{})}};var o=new In(e);return o.onDidContentSizeChange=function(e){return i._onDidContentSizeChange.fire(e)},o.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},o.onDidGainFocus=function(){return i._editorTextFocus.setValue(!0)},o.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1)},o.onContextMenu=function(e){return i._onContextMenu.fire(e)},o.onMouseDown=function(e){return i._onMouseDown.fire(e)},o.onMouseUp=function(e){return i._onMouseUp.fire(e)},o.onMouseDrag=function(e){return i._onMouseDrag.fire(e)},o.onMouseDrop=function(e){return i._onMouseDrop.fire(e)},o.onKeyUp=function(e){return i._onKeyUp.fire(e)},o.onMouseMove=function(e){return i._onMouseMove.fire(e)},o.onMouseLeave=function(e){return i._onMouseLeave.fire(e)},o.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},o.onKeyDown=function(e){return i._onKeyDown.fire(e)},[new qr(n,this._configuration,this._themeService,e,t,o),!0]},Ua.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},Ua.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e},Ua.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},Ua.prototype.hasModel=function(){return null!==this._modelData},Ua=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Ba(3,fa.a),Ba(4,h.a),Ba(5,ha.b),Ba(6,pa.c),Ba(7,he.c),Ba(8,ma.a),Ba(9,va.b)],Ua));function Ua(e,t,n,i,o,r,l,u,c,h){var p=Ha.call(this)||this;p._onDidDispose=p._register(new a.a),p.onDidDispose=p._onDidDispose.event,p._onDidChangeModelContent=p._register(new a.a),p.onDidChangeModelContent=p._onDidChangeModelContent.event,p._onDidChangeModelLanguage=p._register(new a.a),p.onDidChangeModelLanguage=p._onDidChangeModelLanguage.event,p._onDidChangeModelLanguageConfiguration=p._register(new a.a),p.onDidChangeModelLanguageConfiguration=p._onDidChangeModelLanguageConfiguration.event,p._onDidChangeModelOptions=p._register(new a.a),p.onDidChangeModelOptions=p._onDidChangeModelOptions.event,p._onDidChangeModelDecorations=p._register(new a.a),p.onDidChangeModelDecorations=p._onDidChangeModelDecorations.event,p._onDidChangeConfiguration=p._register(new a.a),p.onDidChangeConfiguration=p._onDidChangeConfiguration.event,p._onDidChangeModel=p._register(new a.a),p.onDidChangeModel=p._onDidChangeModel.event,p._onDidChangeCursorPosition=p._register(new a.a),p.onDidChangeCursorPosition=p._onDidChangeCursorPosition.event,p._onDidChangeCursorSelection=p._register(new a.a),p.onDidChangeCursorSelection=p._onDidChangeCursorSelection.event,p._onDidAttemptReadOnlyEdit=p._register(new a.a),p.onDidAttemptReadOnlyEdit=p._onDidAttemptReadOnlyEdit.event,p._onDidLayoutChange=p._register(new a.a),p.onDidLayoutChange=p._onDidLayoutChange.event,p._editorTextFocus=p._register(new Ga),p.onDidFocusEditorText=p._editorTextFocus.onDidChangeToTrue,p.onDidBlurEditorText=p._editorTextFocus.onDidChangeToFalse,p._editorWidgetFocus=p._register(new Ga),p.onDidFocusEditorWidget=p._editorWidgetFocus.onDidChangeToTrue,p.onDidBlurEditorWidget=p._editorWidgetFocus.onDidChangeToFalse,p._onWillType=p._register(new a.a),p.onWillType=p._onWillType.event,p._onDidType=p._register(new a.a),p.onDidType=p._onDidType.event,p._onDidCompositionStart=p._register(new a.a),p.onDidCompositionStart=p._onDidCompositionStart.event,p._onDidCompositionEnd=p._register(new a.a),p.onDidCompositionEnd=p._onDidCompositionEnd.event,p._onDidPaste=p._register(new a.a),p.onDidPaste=p._onDidPaste.event,p._onMouseUp=p._register(new a.a),p.onMouseUp=p._onMouseUp.event,p._onMouseDown=p._register(new a.a),p.onMouseDown=p._onMouseDown.event,p._onMouseDrag=p._register(new a.a),p.onMouseDrag=p._onMouseDrag.event,p._onMouseDrop=p._register(new a.a),p.onMouseDrop=p._onMouseDrop.event,p._onContextMenu=p._register(new a.a),p.onContextMenu=p._onContextMenu.event,p._onMouseMove=p._register(new a.a),p.onMouseMove=p._onMouseMove.event,p._onMouseLeave=p._register(new a.a),p.onMouseLeave=p._onMouseLeave.event,p._onMouseWheel=p._register(new a.a),p.onMouseWheel=p._onMouseWheel.event,p._onKeyUp=p._register(new a.a),p.onKeyUp=p._onKeyUp.event,p._onKeyDown=p._register(new a.a),p.onKeyDown=p._onKeyDown.event,p._onDidContentSizeChange=p._register(new a.a),p.onDidContentSizeChange=p._onDidContentSizeChange.event,p._onDidScrollChange=p._register(new a.a),p.onDidScrollChange=p._onDidScrollChange.event,p._onDidChangeViewZones=p._register(new a.a),p.onDidChangeViewZones=p._onDidChangeViewZones.event,p._domElement=e,p._id=++Wa,p._decorationTypeKeysToIds={},p._decorationTypeSubtypes={},p.isSimpleWidget=n.isSimpleWidget||!1,p._telemetryData=n.telemetryData,t=t||{},p._configuration=p._register(p._createConfiguration(t,h)),p._register(p._configuration.onDidChange((function(e){p._onDidChangeConfiguration.fire(e);var t=p._configuration.options;if(e.hasChanged(107)){var n=t.get(107);p._onDidLayoutChange.fire(n)}}))),p._contextKeyService=p._register(l.createScoped(p._domElement)),p._notificationService=c,p._codeEditorService=o,p._commandService=r,p._themeService=u,p._register(new Xa(p,p._contextKeyService)),p._register(new Qa(p,p._contextKeyService)),p._instantiationService=i.createChild(new ga.a([pa.c,p._contextKeyService])),p._modelData=null,p._contributions={},p._actions={},p._focusTracker=new nl(e),p._focusTracker.onChange((function(){p._editorWidgetFocus.setValue(p._focusTracker.hasFocus())})),p._contentWidgets={},p._overlayWidgets={};for(var f=0,g=Array.isArray(n.contributions)?n.contributions:d.d.getEditorContributions();f<g.length;f++){var m=g[f];try{var v=p._instantiationService.createInstance(m.ctor,p);p._contributions[m.id]=v}catch(e){Object(s.e)(e)}}return d.d.getEditorActions().forEach((function(e){var t=new hs.a(e.id,e.label,e.alias,Object(ya.n)(e.precondition),(function(){return p._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,p,null))}))}),p._contextKeyService);p._actions[t.id]=t})),p._codeEditorService.addCodeEditor(p),p}var Ka,Ga=(Fa(Ya,Ka=l.a),Ya.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},Ya);function Ya(){var e=Ka.call(this)||this;return e._onDidChangeToTrue=e._register(new a.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new a.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}var Za,Xa=(Fa($a,Za=l.a),$a.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},$a.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(1<e.length),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},$a.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},$a.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},$a);function $a(e,t){var n=Za.call(this)||this;return n._editor=e,t.createKey("editorId",e.getId()),n._editorSimpleInput=ps.a.editorSimpleInput.bindTo(t),n._editorFocus=ps.a.focus.bindTo(t),n._textInputFocus=ps.a.textInputFocus.bindTo(t),n._editorTextFocus=ps.a.editorTextFocus.bindTo(t),n._editorTabMovesFocus=ps.a.tabMovesFocus.bindTo(t),n._editorReadonly=ps.a.readOnly.bindTo(t),n._hasMultipleSelections=ps.a.hasMultipleSelections.bindTo(t),n._hasNonEmptySelection=ps.a.hasNonEmptySelection.bindTo(t),n._canUndo=ps.a.canUndo.bindTo(t),n._canRedo=ps.a.canRedo.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromConfig()}))),n._register(n._editor.onDidChangeCursorSelection((function(){return n._updateFromSelection()}))),n._register(n._editor.onDidFocusEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidFocusEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidChangeModel((function(){return n._updateFromModel()}))),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromModel()}))),n._updateFromConfig(),n._updateFromSelection(),n._updateFromFocus(),n._updateFromModel(),n._editorSimpleInput.set(n._editor.isSimpleWidget),n}var Ja,Qa=(Fa(el,Ja=l.a),el.prototype.dispose=function(){Ja.prototype.dispose.call(this)},el.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},el.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(co.d.has(t)),e._hasCodeActionsProvider.set(co.a.has(t)),e._hasCodeLensProvider.set(co.b.has(t)),e._hasDefinitionProvider.set(co.f.has(t)),e._hasDeclarationProvider.set(co.e.has(t)),e._hasImplementationProvider.set(co.q.has(t)),e._hasTypeDefinitionProvider.set(co.C.has(t)),e._hasHoverProvider.set(co.p.has(t)),e._hasDocumentHighlightProvider.set(co.i.has(t)),e._hasDocumentSymbolProvider.set(co.m.has(t)),e._hasReferenceProvider.set(co.u.has(t)),e._hasRenameProvider.set(co.v.has(t)),e._hasSignatureHelpProvider.set(co.x.has(t)),e._hasDocumentFormattingProvider.set(co.g.has(t)||co.j.has(t)),e._hasDocumentSelectionFormattingProvider.set(co.j.has(t)),e._hasMultipleDocumentFormattingProvider.set(1<co.g.all(t).length+co.j.all(t).length),e._hasMultipleDocumentSelectionFormattingProvider.set(1<co.j.all(t).length),e._isInWalkThrough.set(t.uri.scheme===u.b.walkThroughSnippet)})):this.reset()},el);function el(e,t){var n=Ja.call(this)||this;function i(){return n._update()}return n._editor=e,n._contextKeyService=t,n._langId=ps.a.languageId.bindTo(t),n._hasCompletionItemProvider=ps.a.hasCompletionItemProvider.bindTo(t),n._hasCodeActionsProvider=ps.a.hasCodeActionsProvider.bindTo(t),n._hasCodeLensProvider=ps.a.hasCodeLensProvider.bindTo(t),n._hasDefinitionProvider=ps.a.hasDefinitionProvider.bindTo(t),n._hasDeclarationProvider=ps.a.hasDeclarationProvider.bindTo(t),n._hasImplementationProvider=ps.a.hasImplementationProvider.bindTo(t),n._hasTypeDefinitionProvider=ps.a.hasTypeDefinitionProvider.bindTo(t),n._hasHoverProvider=ps.a.hasHoverProvider.bindTo(t),n._hasDocumentHighlightProvider=ps.a.hasDocumentHighlightProvider.bindTo(t),n._hasDocumentSymbolProvider=ps.a.hasDocumentSymbolProvider.bindTo(t),n._hasReferenceProvider=ps.a.hasReferenceProvider.bindTo(t),n._hasRenameProvider=ps.a.hasRenameProvider.bindTo(t),n._hasSignatureHelpProvider=ps.a.hasSignatureHelpProvider.bindTo(t),n._hasDocumentFormattingProvider=ps.a.hasDocumentFormattingProvider.bindTo(t),n._hasDocumentSelectionFormattingProvider=ps.a.hasDocumentSelectionFormattingProvider.bindTo(t),n._hasMultipleDocumentFormattingProvider=ps.a.hasMultipleDocumentFormattingProvider.bindTo(t),n._hasMultipleDocumentSelectionFormattingProvider=ps.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),n._isInWalkThrough=ps.a.isInEmbeddedEditor.bindTo(t),n._register(e.onDidChangeModel(i)),n._register(e.onDidChangeModelLanguage(i)),n._register(co.d.onDidChange(i)),n._register(co.a.onDidChange(i)),n._register(co.b.onDidChange(i)),n._register(co.f.onDidChange(i)),n._register(co.e.onDidChange(i)),n._register(co.q.onDidChange(i)),n._register(co.C.onDidChange(i)),n._register(co.p.onDidChange(i)),n._register(co.i.onDidChange(i)),n._register(co.m.onDidChange(i)),n._register(co.u.onDidChange(i)),n._register(co.v.onDidChange(i)),n._register(co.g.onDidChange(i)),n._register(co.j.onDidChange(i)),n._register(co.x.onDidChange(i)),i(),n}var tl,nl=(Fa(il,tl=l.a),il.prototype.hasFocus=function(){return this._hasFocus},il);function il(e){var t=tl.call(this)||this;return t._onChange=t._register(new a.a),t.onChange=t._onChange.event,t._hasFocus=!1,t._domFocusTracker=t._register(r.Z(e)),t._register(t._domFocusTracker.onDidFocus((function(){t._hasFocus=!0,t._onChange.fire(void 0)}))),t._register(t._domFocusTracker.onDidBlur((function(){t._hasFocus=!1,t._onChange.fire(void 0)}))),t}var ol=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),rl=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function sl(e){return ol+encodeURIComponent(e.toString())+rl}var al=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ll=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(he.e)((function(e,t){var n=e.getColor(fo.p);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(fo.q);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+sl(i)+'") repeat-x bottom left; }');var o=e.getColor(fo.O);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(fo.P);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+sl(r)+'") repeat-x bottom left; }');var s=e.getColor(fo.G);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(fo.H);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+sl(a)+'") repeat-x bottom left; }');var l=e.getColor(fo.y);l&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=e.getColor(fo.z);u&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(al+encodeURIComponent(u.toString())+ll)+'") no-repeat bottom left; }');var c=e.getColor(Bt.o);c&&t.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(Bt.n);d&&t.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(fo.x)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}))},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(443);function o(e,t){void 0===t&&(t={});var n=s(t);return n.textContent=e,n}function r(e,t){void 0===t&&(t={});var n=s(t);return function e(t,n,o){var r;if(2===n.type)r=document.createTextNode(n.content||"");else if(3===n.type)r=document.createElement("b");else if(4===n.type)r=document.createElement("i");else if(5===n.type&&o){var s=document.createElement("a");s.href="#",o.disposeables.add(i.o(s,"click",(function(e){o.callback(String(n.index),e)}))),r=s}else 7===n.type?r=document.createElement("br"):1===n.type&&(r=t);r&&t!==r&&t.appendChild(r),r&&Array.isArray(n.children)&&n.children.forEach((function(t){e(r,t,o)}))}(n,function(e){for(var t={type:1,children:[]},n=0,i=t,o=[],r=new a(e);!r.eos();){var s=r.next(),l="\\"===s&&0!==u(r.peek());if(l&&(s=r.next()),l||0===u(s)||s!==r.peek())if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var c={type:2,content:s};i.children.push(c),o.push(i),i=c}else i.content+=s;else{r.advance(),2===i.type&&(i=o.pop());var d=u(s);if(i.type===d||5===i.type&&6===d)i=o.pop();else{var h={type:d,children:[]};5===d&&(h.index=n,n++),i.children.push(h),o.push(i),i=h}}}return 2===i.type&&(i=o.pop()),o.length,t}(e),t.actionHandler),n}function s(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var a=(l.prototype.eos=function(){return this.index>=this.source.length},l.prototype.next=function(){var e=this.peek();return this.advance(),e},l.prototype.peek=function(){return this.source[this.index]},l.prototype.advance=function(){this.index++},l);function l(e){this.source=e,this.index=0}function u(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return N})),n.d(t,"d",(function(){return V})),n.d(t,"c",(function(){return z}));var i,o=n(445),r=n(442),s=n(439),a=n(505),l=n(459),u=n(530),c=n(883),d=n(946),h=n(789),p=n(571),f=n(822),g=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=(y.prototype.getTabFocusMode=function(){return this._tabFocus},y.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},new y);function y(){this._tabFocus=!1,this._onDidChangeTabFocus=new r.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}var b=Object.hasOwnProperty,_=(w.prototype._read=function(e){return this._values[e]},w.prototype.get=function(e){return this._values[e]},w.prototype._write=function(e,t){this._values[e]=t},w);function w(){this._values=[]}var C=(S.prototype._read=function(e){return this._values[e]},S.prototype._write=function(e,t){this._values[e]=t},S);function S(){this._values=[]}var O=(x.readOptions=function(e){for(var t=e,n=new C,i=0,o=u.i;i<o.length;i++){var r=o[i],s="_never_"===r.name?void 0:t[r.name];n._write(r.id,s)}return n},x.validateOptions=function(e){for(var t=new u.h,n=0,i=u.i;n<i.length;n++){var o=i[n];t._write(o.id,o.validate(e._read(o.id)))}return t},x.computeOptions=function(e,t){for(var n=new _,i=0,o=u.i;i<o.length;i++){var r=o[i];n._write(r.id,r.compute(t,n,e._read(r.id)))}return n},x._deepEquals=function(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&l.g(e,t);for(var n in e)if(!x._deepEquals(e[n],t[n]))return!1;return!0},x.checkEquals=function(e,t){for(var n=[],i=!1,o=0,r=u.i;o<r.length;o++){var s=r[o],a=!x._deepEquals(e._read(s.id),t._read(s.id));(n[s.id]=a)&&(i=!0)}return i?new u.a(n):null},x);function x(){}function k(e){var t=a.c(e);return function(e){var t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");var n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off"),!1===e.autoClosingBrackets&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never"),"visible"===e.cursorBlinking&&(e.cursorBlinking="solid");var i=e.renderWhitespace;!0===i?e.renderWhitespace="boundary":!1===i&&(e.renderWhitespace="none");var o=e.renderLineHighlight;!0===o?e.renderLineHighlight="line":!1===o&&(e.renderLineHighlight="none");var r=e.acceptSuggestionOnEnter;!0===r?e.acceptSuggestionOnEnter="on":!1===r&&(e.acceptSuggestionOnEnter="off");var s=e.tabCompletion;!1===s?e.tabCompletion="off":!0===s&&(e.tabCompletion="onlySnippets");var a=e.suggest;if(a&&"object"==typeof a.filteredTypes&&a.filteredTypes){Object(f.c)({method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"},(function(e){var t=a.filteredTypes[e.key];!1===t&&(a[e.value]=t)}))}var l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});var u=e.parameterHints;!0===u?e.parameterHints={enabled:!0}:!1===u&&(e.parameterHints={enabled:!1});var c=e.autoIndent;!0===c?e.autoIndent="full":!1===c&&(e.autoIndent="advanced");var d=e.matchBrackets;!0===d?e.matchBrackets="always":!1===d&&(e.matchBrackets="never")}(t),t}var E,N=(g(L,E=s.a),L.prototype.observeReferenceElement=function(e){},L.prototype.dispose=function(){E.prototype.dispose.call(this)},L.prototype._recomputeOptions=function(){var e=this.options,t=this._computeInternalOptions();if(e){var n=O.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChange.fire(n)}else this.options=t},L.prototype.getRawOptions=function(){return this._rawOptions},L.prototype._computeInternalOptions=function(){var e=this._getEnvConfiguration(),t=d.a.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return O.computeOptions(this._validatedOptions,n)},L._subsetEquals=function(e,t){for(var n in t)if(b.call(t,n)){var i=t[n],o=e[n];if(o===i)continue;if(Array.isArray(o)&&Array.isArray(i)){if(!l.g(o,i))return!1;continue}if("object"!=typeof o||"object"!=typeof i)return!1;if(!this._subsetEquals(o,i))return!1}return!0},L.prototype.updateOptions=function(e){if(void 0!==e){var t=k(e);L._subsetEquals(this._rawOptions,t)||(this._rawOptions=a.g(this._rawOptions,t||{}),this._readOptions=O.readOptions(this._rawOptions),this._validatedOptions=O.validateOptions(this._readOptions),this._recomputeOptions())}},L.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},L.prototype.setMaxLineNumber=function(e){var t=L._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())},L._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},L);function L(e,t){var n=E.call(this)||this;return n._onDidChange=n._register(new r.a),n.onDidChange=n._onDidChange.event,n.isSimpleWidget=e,n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._rawOptions=k(t),n._readOptions=O.readOptions(n._rawOptions),n._validatedOptions=O.validateOptions(n._readOptions),n._register(c.a.onDidChangeZoomLevel((function(e){return n._recomputeOptions()}))),n._register(v.onDidChangeTabFocus((function(e){return n._recomputeOptions()}))),n}for(var D,M=Object.freeze({id:"editor",order:5,type:"object",title:o.a("editorConfigurationTitle","Editor"),scope:5}),T=p.a.as(h.a.Configuration),I=m(m({},M),{properties:{"editor.tabSize":{type:"number",default:u.c.tabSize,minimum:1,markdownDescription:o.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:u.c.insertSpaces,markdownDescription:o.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:u.c.detectIndentation,markdownDescription:o.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:u.c.trimAutoWhitespace,description:o.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:u.c.largeFileOptimizations,description:o.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:o.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:o.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:o.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:o.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:o.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:o.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}}),P=0,A=u.i;P<A.length;P++){var R=A[P],j=R.schema;if(void 0!==j)if(void 0!==(D=j).type||void 0!==D.anyOf)I.properties["editor."+R.name]=j;else for(var F in j)b.call(j,F)&&(I.properties[F]=j[F])}var B=null;function W(){return null===B&&(B=Object.create(null),Object.keys(I.properties).forEach((function(e){B[e]=!0}))),B}function V(e){return W()["editor."+e]||!1}function z(e){return W()["diffEditor."+e]||!1}T.registerConfiguration(I)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i,o=n(452),r=n(883),s=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=o.e?1.5:1.35,l=(u.createFromValidatedSettings=function(e,t,n){var i=e.get(33),o=e.get(37),r=e.get(36),s=e.get(35),a=e.get(49),l=e.get(46);return u._create(i,o,r,s,a,l,t,n)},u._create=function(e,t,n,i,o,s,l,c){0===o?o=Math.round(a*n):o<8&&(o=8);var d=1+(c?0:.1*r.a.getZoomLevel());return new u({zoomLevel:l,fontFamily:e,fontWeight:t,fontSize:n*=d,fontFeatureSettings:i,lineHeight:o*=d,letterSpacing:s})},u.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},u.prototype.getMassagedFontFamily=function(){return!/[,"']/.test(this.fontFamily)&&/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},u);function u(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}var c,d=(s(h,c=l),h.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.maxDigitWidth===e.maxDigitWidth},h);function h(e,t){var n=c.call(this,e)||this;return n.isTrusted=t,n.isMonospace=e.isMonospace,n.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,n.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,n.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,n.spaceWidth=e.spaceWidth,n.middotWidth=e.middotWidth,n.maxDigitWidth=e.maxDigitWidth,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(444),o=n(823),r=n(450),s=n(440),a=n(599),l=(u.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++)if(92===e.charCodeAt(t)){if(n<=++t)break;var i=e.charCodeAt(t);if(110===i||114===i||87===i||119===i)return!0}return!1}(this.searchString):0<=this.searchString.indexOf("\n");var t=null;try{t=i.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c(t,this.wordSeparators?Object(o.a)(this.wordSeparators):null,n?this.searchString:null)},u);function u(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}var c=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function d(e,t,n){if(!n)return new a.b(e,null);for(var i=[],o=0,r=t.length;o<r;o++)i[o]=t[o];return new a.b(e,i)}var h=(p.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){var o=n+((i-n)/2>>0);t[o]>=e?i=o-1:t[o+1]>=e?i=n=o:n=o+1}return n+1},p);function p(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}var f=(g.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new v(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},g._getMultilineMatchRange=function(e,t,n,i,o,r){var a,l,u=0;if(a=i?t+o+(u=i.findLineFeedCountBeforeOffset(o)):t+o,i){var c=i.findLineFeedCountBeforeOffset(o+r.length)-u;l=a+r.length+c}else l=a+r.length;var d=e.getPositionAt(a),h=e.getPositionAt(l);return new s.a(d.lineNumber,d.column,h.lineNumber,h.column)},g._doFindMatchesMultiline=function(e,t,n,i,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new h(a):null,u=[],c=0;for(n.reset(0);r=n.next(a);)if(u[c++]=d(this._getMultilineMatchRange(e,s,a,l,r.index,r[0]),r,i),o<=c)return u;return u},g._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,r,i,o),r}var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var u=t.startLineNumber+1;u<t.endLineNumber&&s<o;u++)s=this._findMatchesInLine(n,e.getLineContent(u),u,0,s,r,i,o);if(s<o){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,r,i,o)}return r},g._findMatchesInLine=function(e,t,n,i,o,r,l,u){var c=e.wordSeparators;if(!l&&e.simpleSearch){for(var h=e.simpleSearch,p=h.length,f=t.length,g=-p;-1!==(g=t.indexOf(h,g+p));)if((!c||m(c,t,f,g,p))&&(r[o++]=new a.b(new s.a(n,g+1+i,n,g+1+p+i),null),u<=o))return o;return o}var y,b=new v(e.wordSeparators,e.regex);b.reset(0);do{if((y=b.next(t))&&(r[o++]=d(new s.a(n,y.index+1+i,n,y.index+1+y[0].length+i),y,l),u<=o))return o}while(y);return o},g.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new v(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},g._doFindNextMatchMultiline=function(e,t,n,i){var o=new r.a(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),u=e.getValueInRange(new s.a(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),c="\r\n"===e.getEOL()?new h(u):null;n.reset(t.column-1);var p=n.next(u);return p?d(this._getMultilineMatchRange(e,a,u,c,p.index,p[0]),p,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.a(1,1),n,i):null},g._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var l=1;l<=o;l++){var u=(r+l-1)%o,c=e.getLineContent(1+u),d=this._findFirstMatchInLine(n,c,1+u,1,i);if(d)return d}return null},g._findFirstMatchInLine=function(e,t,n,i,o){e.reset(i-1);var r=e.next(t);return r?d(new s.a(n,r.index+1,n,r.index+1+r[0].length),r,o):null},g.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new v(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},g._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new s.a(1,1,t.lineNumber,t.column),n,i,9990);if(0<o.length)return o[o.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.a(a,e.getLineMaxColumn(a)),n,i):null},g._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var l=1;l<=o;l++){var u=(o+r-l-1)%o,c=e.getLineContent(1+u),d=this._findLastMatchInLine(n,c,1+u,i);if(d)return d}return null},g._findLastMatchInLine=function(e,t,n,i){var o,r=null;for(e.reset(0);o=e.next(t);)r=d(new s.a(n,o.index+1,n,o.index+1+o[0].length),o,i);return r},g);function g(){}function m(e,t,n,i,o){return function(e,t,n,i){if(0===n)return!0;var o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(0<i){var r=t.charCodeAt(n);if(0!==e.get(r))return!0}return!1}(e,t,i,o)&&function(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(0<o){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}(e,t,n,i,o)}var v=(y.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},y.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,o=t[0].length;if(i!==this._prevMatchStartIndex||o!==this._prevMatchLength){if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||m(this._wordSeparators,e,n,i,o))return t}else{if(0!==o)return null;this._searchRegex.lastIndex+=1}}while(t);return null},y);function y(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return C}));var i=n(459),o=n(824),r=n(450),s=n(454);function a(e){for(var t=0,n=0,i=0,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?(0===t&&(n=o),t++,o+1<r&&10===e.charCodeAt(o+1)&&o++,i=o+1):10===s&&(0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i]}function l(e){return(e<<0|16384|2<<23)>>>0}var u=new Uint32Array(0).buffer,c=(d.prototype.add=function(e,t){if(0<this.tokens.length){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new y(e,[t]))},d);function d(){this.tokens=[]}var h=(p.prototype.getMaxDeltaLine=function(){var e=this.getTokenCount();return 0===e?-1:this.getDeltaLine(e-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(e){return this._tokens[4*e]},p.prototype.getStartCharacter=function(e){return this._tokens[4*e+1]},p.prototype.getEndCharacter=function(e){return this._tokens[4*e+2]},p.prototype.getMetadata=function(e){return this._tokens[4*e+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(e,t,n,i,o){for(var r=this._tokens,s=this._tokenCount,a=i-t,l=0,u=!1,c=0;c<s;c++){var d=4*c,h=r[d],p=r[1+d],f=r[2+d],g=r[3+d];if(h<t||h===t&&f<=n)l++;else{if(h===t&&p<n)h===i&&o<f?f-=o-n:f=n;else if(h===t&&p===n){if(!(h===i&&o<f)){u=!0;continue}f-=o-n}else if(h<i||h===i&&p<o){if(!(h===i&&o<f)){u=!0;continue}f=h===t?(p=n)+(f-o):(p=0)+(f-o)}else if(i<h){if(0==a&&!u){l=s;break}h-=a}else{if(!(h===i&&o<=p))throw new Error("Not possible!");e&&0===h&&(p+=e,f+=e),h-=a,p-=o-n,f-=o-n}var m=4*l;r[m]=h,r[1+m]=p,r[2+m]=f,r[3+m]=g,l++}}this._tokenCount=l},p.prototype.acceptInsertText=function(e,t,n,i,o,r){for(var s=0===n&&1===i&&(48<=r&&r<=57||65<=r&&r<=90||97<=r&&r<=122),a=this._tokens,l=this._tokenCount,u=0;u<l;u++){var c=4*u,d=a[c],h=a[1+c],p=a[2+c];if(!(d<e||d===e&&p<t)){if(d===e&&p===t){if(!s)continue;p+=1}else if(d===e&&h<t&&t<p)0===n?p+=i:p=t;else{if(d===e&&h===t&&s)continue;if(d===e)if(d+=n,0===n)h+=i,p+=i;else{var f=p-h;p=(h=o+(h-t))+f}else d+=n}a[c]=d,a[1+c]=h,a[2+c]=p}}},p);function p(e){this._tokens=e,this._tokenCount=e.length/4}var f=(g.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},g.prototype.getStartCharacter=function(e){return this._actual.getStartCharacter(this._startTokenIndex+e)},g.prototype.getEndCharacter=function(e){return this._actual.getEndCharacter(this._startTokenIndex+e)},g.prototype.getMetadata=function(e){return this._actual.getMetadata(this._startTokenIndex+e)},g);function g(e,t,n){this._actual=e,this._startTokenIndex=t,this._endTokenIndex=n}var m=(v.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},v.prototype.getLineTokens=function(e){if(this.startLineNumber<=e&&e<=this.endLineNumber){var t=v._findTokensWithLine(this.tokens,e-this.startLineNumber);if(t){var n=t[0],i=t[1];return new f(this.tokens,n,i)}}return null},v._findTokensWithLine=function(e,t){for(var n=0,i=e.getTokenCount()-1;n<i;){var o=n+Math.floor((i-n)/2),r=e.getDeltaLine(o);if(r<t)n=o+1;else{if(!(t<r)){for(var s=o;n<s&&e.getDeltaLine(s-1)===t;)s--;for(var a=o;a<i&&e.getDeltaLine(a+1)===t;)a++;return[s,a]}i=o-1}}return e.getDeltaLine(n)===t?[n,n]:null},v.prototype.applyEdit=function(e,t){var n=a(t),i=n[0],o=n[1],r=n[2];this.acceptEdit(e,i,o,r,0<t.length?t.charCodeAt(0):0)},v.prototype.acceptEdit=function(e,t,n,i,o){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n,i,o),this._updateEndLineNumber()},v.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){var i=n-t;this.startLineNumber-=i}else{var o=this.tokens.getMaxDeltaLine();if(!(o+1<=t)){if(t<0&&o+1<=n)return this.startLineNumber=0,void this.tokens.clear();if(t<0){var r=-t;this.startLineNumber-=r,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}}},v.prototype._acceptInsertText=function(e,t,n,i,o){if(0!==t||0!==n){var r=e.lineNumber-this.startLineNumber;r<0?this.startLineNumber+=t:this.tokens.getMaxDeltaLine()+1<=r||this.tokens.acceptInsertText(r,e.column-1,t,n,i,o)}},v);function v(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}var y=function(e,t){this.startLineNumber=e,this.tokens=t};function b(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var _=(w.prototype.flush=function(){this._pieces=[]},w.prototype.set=function(e){this._pieces=e||[]},w.prototype.addSemanticTokens=function(e,t){var n=this._pieces;if(0===n.length)return t;var i=w._findFirstPieceWithLine(n,e),r=this._pieces[i].getLineTokens(e);if(!r)return t;for(var s=t.getCount(),a=r.getCount(),l=0,u=[],c=0,d=0;d<a;d++){for(var h=r.getStartCharacter(d),p=r.getEndCharacter(d),f=r.getMetadata(d),g=((1&f?2048:0)|(2&f?4096:0)|(4&f?8192:0)|(8&f?8372224:0)|(16&f?4286578688:0))>>>0,m=~g>>>0;l<s&&t.getEndOffset(l)<=h;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l),l++;for(l<s&&t.getStartOffset(l)<h&&(u[c++]=h,u[c++]=t.getMetadata(l));l<s&&t.getEndOffset(l)<p;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l)&m|f&g,l++;if(l<s&&t.getEndOffset(l)===p)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l)&m|f&g,l++;else{var v=Math.min(Math.max(0,l-1),s-1);u[c++]=p,u[c++]=t.getMetadata(v)&m|f&g}}for(;l<s;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l),l++;return new o.a(new Uint32Array(u),t.getLineContent())},w._findFirstPieceWithLine=function(e,t){for(var n=0,i=e.length-1;n<i;){var o=n+Math.floor((i-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){for(;n<o&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}i=o-1}}return n},w.prototype.acceptEdit=function(e,t,n,i,o){for(var r=0,s=this._pieces;r<s.length;r++)s[r].acceptEdit(e,t,n,i,o)},w);function w(){this._pieces=[]}var C=(S.prototype.flush=function(){this._lineTokens=[],this._len=0},S.prototype.getTokens=function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==u)return new o.a(b(i),n);var r=new Uint32Array(2);return r[0]=n.length,r[1]=l(e),new o.a(r,n)},S._massageTokens=function(e,t,n){var i=n?b(n):null;if(0===t){var o=!1;if(i&&1<i.length&&(o=s.A.getLanguageId(i[1])!==e),!o)return u}if(i&&0!==i.length)return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i;var r=new Uint32Array(2);return r[0]=t,r[1]=l(e),r.buffer},S.prototype._ensureLine=function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++},S.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},S.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],o=0;o<t;o++)n[o]=null;this._lineTokens=i.a(this._lineTokens,e,n),this._len+=t}},S.prototype.setTokens=function(e,t,n,i){var o=S._massageTokens(e,n,i);this._ensureLine(t),this._lineTokens[t]=o},S.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n)},S.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._len))if(e.startLineNumber!==e.endLineNumber){this._lineTokens[t]=S._deleteEnding(this._lineTokens[t],e.startColumn-1);var n=e.endLineNumber-1,i=null;n<this._len&&(i=S._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=S._append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}else{if(e.startColumn===e.endColumn)return;this._lineTokens[t]=S._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1)}},S.prototype._acceptInsertText=function(e,t,n){if(0!==t||0!==n){var i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=S._deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=S._insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=S._insert(this._lineTokens[i],e.column-1,n))}},S._deleteBeginning=function(e,t){return null===e||e===u?e:S._delete(e,0,t)},S._deleteEnding=function(e,t){if(null===e||e===u)return e;var n=b(e),i=n[n.length-2];return S._delete(e,t,i)},S._delete=function(e,t,n){if(null===e||e===u||t===n)return e;var i=b(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return u;var s,a,l=o.a.findIndexInTokensArray(i,t),c=0<l?i[l-1<<1]:0;if(n<i[l<<1]){for(var d=n-t,h=l;h<r;h++)i[h<<1]-=d;return e}a=c!==t?(s=l+1<<1,i[l<<1]=t):(s=l<<1,c);for(var p=n-t,f=l+1;f<r;f++){var g=i[f<<1]-p;a<g&&(i[s++]=g,i[s++]=i[1+(f<<1)],a=g)}if(s===i.length)return e;var m=new Uint32Array(s);return m.set(i.subarray(0,s),0),m.buffer},S._append=function(e,t){if(t===u)return e;if(e===u)return t;if(null===e)return e;if(null===t)return null;var n=b(e),i=b(t),o=i.length>>>1,r=new Uint32Array(n.length+i.length);r.set(n,0);for(var s=n.length,a=n[n.length-2],l=0;l<o;l++)r[s++]=i[l<<1]+a,r[s++]=i[1+(l<<1)];return r.buffer},S._insert=function(e,t,n){if(null===e||e===u)return e;var i=b(e),r=i.length>>>1,s=o.a.findIndexInTokensArray(i,t);0<s&&i[s-1<<1]===t&&s--;for(var a=s;a<r;a++)i[a<<1]+=n;return e},S);function S(){this._lineTokens=[],this._len=0}},function(e,t,n){"use strict";function i(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;s+1<n&&e.getLanguageId(s+1)===r;)s++;for(var a=i;0<a&&e.getLanguageId(a-1)===r;)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var o=(r.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},r.prototype.getActualLineContentBefore=function(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)},r.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},r.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},r.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},r);function r(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}function s(e){return 0!=(7&e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return m}));var i=n(444),o=n(440),r=(s.prototype.isOpen=function(e){return this._openSet.has(e)},s.prototype.isClose=function(e){return this._closeSet.has(e)},s._toSet=function(e){for(var t=new Set,n=0,i=e;n<i.length;n++){var o=i[n];t.add(o)}return t},s);function s(e,t,n,i,o,r){this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=o,this.reversedRegex=r,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}var a=function(e,t){var n=function(e){var t,n,i,o,r,s,a=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var l=[],u=0;u<a;u++)l[u]=u;function c(e,t){for(var n=Math.min(e,t),i=Math.max(e,t),o=0;o<a;o++)l[o]===i&&(l[o]=n)}for(u=0;u<a;u++)for(var d=e[u],h=u+1;h<a;h++){n=e[h],i=(t=d)[0],o=t[1],r=n[0],s=n[1],i!==r&&i!==s&&o!==r&&o!==s||c(l[u],l[h])}for(var p=[],f=0;f<a;f++){var g=[],m=[];for(u=0;u<a;u++)if(l[u]===f){var v=e[u],y=v[0],b=v[1];g.push(y),m.push(b)}0<g.length&&p.push({open:g,close:m})}return p}(t);this.brackets=n.map((function(t,i){return new r(e,i,t.open,t.close,function(e,t,n,i){for(var o=[],r=0,s=(o=(o=o.concat(e)).concat(t)).length;r<s;r++)l(o[r],n,i,o);return(o=c(o)).sort(u),o.reverse(),h(o)}(t.open,t.close,n,i),function(e,t,n,i){for(var o=[],r=0,s=(o=(o=o.concat(e)).concat(t)).length;r<s;r++)l(o[r],n,i,o);return(o=c(o)).sort(u),o.reverse(),h(o.map(g))}(t.open,t.close,n,i))})),this.forwardRegex=function(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var l=0,u=o.close;l<u.length;l++){var d=u[l];t.push(d)}}return h(t=c(t))}(this.brackets),this.reversedRegex=function(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var l=0,u=o.close;l<u.length;l++){var d=u[l];t.push(d)}}return h((t=c(t)).map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};for(var i=this.maxBracketLength=0,o=this.brackets;i<o.length;i++){for(var s=o[i],a=0,d=s.open;a<d.length;a++){var p=d[a];this.textIsBracket[p]=s,this.textIsOpenBracket[p]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,p.length)}for(var f=0,m=s.close;f<m.length;f++){var v=m[f];this.textIsBracket[v]=s,this.textIsOpenBracket[v]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,v.length)}}};function l(e,t,n,i){for(var o=0,r=t.length;o<r;o++)if(o!==n){for(var s=t[o],a=0,l=s.open;a<l.length;a++){var u=l[a];0<=u.indexOf(e)&&i.push(u)}for(var c=0,d=s.close;c<d.length;c++){var h=d[c];0<=h.indexOf(e)&&i.push(h)}}}function u(e,t){return e.length-t.length}function c(e){if(e.length<=1)return e;for(var t=[],n=new Set,i=0,o=e;i<o.length;i++){var r=o[i];n.has(r)||(t.push(r),n.add(r))}return t}function d(e){var t=/^[\w ]+$/.test(e);return e=i.p(e),t?"\\b"+e+"\\b":e}function h(e){var t="("+e.map(d).join(")|(")+")";return i.l(t,!0)}var p,f,g=(f=p=null,function(e){return p!==e&&(f=function(e){for(var t="",n=e.length-1;0<=n;n--)t+=e.charAt(n);return t}(p=e)),f}),m=(v._findPrevBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=n.length-(r.index||0),a=r[0].length,l=i+s;return new o.a(t,l-a+1,t,l+1)},v.findPrevBracketInRange=function(e,t,n,i,o){var r=g(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i)},v.findNextBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=r.index||0,a=r[0].length;if(0===a)return null;var l=i+s;return new o.a(t,l+1,t,l+1+a)},v.findNextBracketInRange=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},v);function v(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("IWorkspaceEditService")},function(e,t,n){"use strict";function i(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(a=o(104579,a=t),e.reduce((function(e,t){return i(t,e)}),a)):(n=e,s=o(181387,s=t),Object.keys(n).sort().reduce((function(e,t){return e=r(t,e),i(n[t],e)}),s));case"string":return r(e,t);case"boolean":return o(e?433:863,t);case"number":return o(e,t);case"undefined":return 29047;default:return 19127}var n,s,a}function o(e,t){return(t<<5)-t+e|0}function r(e,t){t=o(149417,t);for(var n=0,i=e.length;n<i;n++)t=o(e.charCodeAt(n),t);return t}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(555),o=n(450),r=n(440),s=n(444),a=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},l=(u.leftPosition=function(e,t,n){return n>e.getLineMinColumn(t)?n-=s.G(e.getLineContent(t),n-1):1<t&&(--t,n=e.getLineMaxColumn(t)),new o.a(t,n)},u.left=function(e,t,n,i){var o=u.leftPosition(t,n,i);return new a(o.lineNumber,o.column,0)},u.moveLeft=function(e,t,n,i,o){var r,s;if(n.hasSelection()&&!i)r=n.selection.startLineNumber,s=n.selection.startColumn;else{var a=u.left(e,t,n.position.lineNumber,n.position.column-(o-1));r=a.lineNumber,s=a.column}return n.move(i,r,s,0)},u.rightPosition=function(e,t,n){return n<e.getLineMaxColumn(t)?n+=s.E(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new o.a(t,n)},u.right=function(e,t,n,i){var o=u.rightPosition(t,n,i);return new a(o.lineNumber,o.column,0)},u.moveRight=function(e,t,n,i,o){var r,s;if(n.hasSelection()&&!i)r=n.selection.endLineNumber,s=n.selection.endColumn;else{var a=u.right(e,t,n.position.lineNumber,n.position.column+(o-1));r=a.lineNumber,s=a.column}return n.move(i,r,s,0)},u.down=function(e,t,n,o,r,s,l){var u=i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;n+=s;var c=t.getLineCount();return o=c<n?(n=c,l?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),o)):i.a.columnFromVisibleColumn2(e,t,n,u),r=u-i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new a(n,o,r)},u.moveDown=function(e,t,n,i,o){var r,s;s=n.hasSelection()&&!i?(r=n.selection.endLineNumber,n.selection.endColumn):(r=n.position.lineNumber,n.position.column);var a=u.down(e,t,r,s,n.leftoverVisibleColumns,o,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)},u.translateDown=function(e,t,n){var s=n.selection,a=u.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=u.down(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},u.up=function(e,t,n,o,r,s,l){var u=i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;return o=(n-=s)<1?(n=1,l?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),o)):i.a.columnFromVisibleColumn2(e,t,n,u),r=u-i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new a(n,o,r)},u.moveUp=function(e,t,n,i,o){var r,s;s=n.hasSelection()&&!i?(r=n.selection.startLineNumber,n.selection.startColumn):(r=n.position.lineNumber,n.position.column);var a=u.up(e,t,r,s,n.leftoverVisibleColumns,o,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)},u.translateUp=function(e,t,n){var s=n.selection,a=u.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=u.up(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},u.moveToBeginningOfLine=function(e,t,n,i){var o,r=n.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s;return o=n.position.column===a?s:a,n.move(i,r,o,0)},u.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},u.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},u.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},u);function u(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p}));var i,o=n(444),r=n(555),s=n(823),a=n(450),l=n(440),u=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=(d._createWord=function(e,t,n,i,o){return{start:i,end:o,wordType:t,nextCharClass:n}},d._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},d._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;0<=o;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},d._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(1===a)return r;if(1===n&&2===a)return r;if(2===n&&0===a)return r}return o},d._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)},d._doFindNextWordOnLine=function(e,t,n){for(var i=0,o=e.length,r=n.column-1;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(0===a){if(2===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=1}else if(2===a){if(1===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=2}else if(1===a&&0!==i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,o-1),o):null},d._findStartOfWord=function(e,t,n,i){for(var o=i;0<=o;o--){var r=e.charCodeAt(o),s=t.get(r);if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1}return 0},d.moveWordLeft=function(e,t,n,i){var o=n.lineNumber,r=n.column,s=!1;1===r&&1<o&&(s=!0,--o,r=t.getLineMaxColumn(o));var l=d._findPreviousWordOnLine(e,t,new a.a(o,r));if(0===i)return l&&!s&&t.getLineLastNonWhitespaceColumn(o)<r?new a.a(o,l.end+1):new a.a(o,l?l.start+1:1);if(1===i)return l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1))),new a.a(o,l?l.start+1:1);if(3!==i)return l&&r<=l.end+1&&(l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1))),new a.a(o,l?l.end+1:1);for(;l&&2===l.wordType;)l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1));return new a.a(o,l?l.start+1:1)},d._moveWordPartLeft=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return 1<n?new a.a(n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),s=t.column-1;1<s;s--){var l=r.charCodeAt(s-2),u=r.charCodeAt(s-1);if(95!==l&&95===u)return new a.a(n,s);if(o.B(l)&&o.C(u))return new a.a(n,s);if(o.C(l)&&o.C(u)&&s+1<i){var c=r.charCodeAt(s);if(o.B(c))return new a.a(n,s)}}return new a.a(n,1)},d.moveWordRight=function(e,t,n,i){var o=n.lineNumber,r=n.column,s=!1;r===t.getLineMaxColumn(o)&&o<t.getLineCount()&&(s=!0,o+=1,r=1);var l=d._findNextWordOnLine(e,t,new a.a(o,r));if(2===i)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(o);else if(3===i){for(s&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1));r=l?l.start+1:t.getLineMaxColumn(o)}else l&&!s&&r>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(o);return new a.a(o,r)},d._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new a.a(n+1,1):t;for(var r=e.getLineContent(n),s=t.column+1;s<i;s++){var l=r.charCodeAt(s-2),u=r.charCodeAt(s-1);if(95===l&&95!==u)return new a.a(n,s);if(o.B(l)&&o.C(u))return new a.a(n,s);if(o.C(l)&&o.C(u)&&s+1<i){var c=r.charCodeAt(s);if(o.B(c))return new a.a(n,s)}}return new a.a(n,i)},d._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,r=o.D(n,i);return r+1<i?new l.a(t.lineNumber,r+2,t.lineNumber,t.column):null},d.deleteWordLeft=function(e,t,n,i,o){if(!n.isEmpty())return n;var r=new a.a(n.positionLineNumber,n.positionColumn),s=r.lineNumber,u=r.column;if(1===s&&1===u)return null;if(i){var c=this._deleteWordLeftWhitespace(t,r);if(c)return c}var h=d._findPreviousWordOnLine(e,t,r);return u=0===o?h?h.start+1:1<u?1:(s--,t.getLineMaxColumn(s)):(h&&u<=h.end+1&&(h=d._findPreviousWordOnLine(e,t,new a.a(s,h.start+1))),h?h.end+1:1<u?1:(s--,t.getLineMaxColumn(s))),new l.a(s,u,r.lineNumber,r.column)},d._deleteWordPartLeft=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),i=d._moveWordPartLeft(e,n);return new l.a(n.lineNumber,n.column,i.lineNumber,i.column)},d._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i<n;i++){var o=e.charAt(i);if(" "!==o&&"\t"!==o)return i}return n},d._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,o=this._findFirstNonWhitespaceChar(n,i);return 1+i<o?new l.a(t.lineNumber,t.column,t.lineNumber,o+1):null},d.deleteWordRight=function(e,t,n,i,o){if(!n.isEmpty())return n;var r=new a.a(n.positionLineNumber,n.positionColumn),s=r.lineNumber,u=r.column,c=t.getLineCount(),h=t.getLineMaxColumn(s);if(s===c&&u===h)return null;if(i){var p=this._deleteWordRightWhitespace(t,r);if(p)return p}var f=d._findNextWordOnLine(e,t,r);return u=2===o?f?f.end+1:u<h||s===c?h:(s++,(f=d._findNextWordOnLine(e,t,new a.a(s,1)))?f.start+1:t.getLineMaxColumn(s)):(f&&u>=f.start+1&&(f=d._findNextWordOnLine(e,t,new a.a(s,f.end+1))),f?f.start+1:u<h||s===c?h:(s++,(f=d._findNextWordOnLine(e,t,new a.a(s,1)))?f.start+1:t.getLineMaxColumn(s))),new l.a(s,u,r.lineNumber,r.column)},d._deleteWordPartRight=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),i=d._moveWordPartRight(e,n);return new l.a(n.lineNumber,n.column,i.lineNumber,i.column)},d.word=function(e,t,n,i,o){var u,c,h,p,f=Object(s.a)(e.wordSeparators),g=d._findPreviousWordOnLine(f,t,o),m=d._findNextWordOnLine(f,t,o);if(!i)return c=g&&1===g.wordType&&g.start<=o.column-1&&o.column-1<=g.end?(u=g.start+1,g.end+1):m&&1===m.wordType&&m.start<=o.column-1&&o.column-1<=m.end?(u=m.start+1,m.end+1):(u=g?g.end+1:1,m?m.start+1:t.getLineMaxColumn(o.lineNumber)),new r.f(new l.a(o.lineNumber,u,o.lineNumber,c),0,new a.a(o.lineNumber,c),0);p=g&&1===g.wordType&&g.start<o.column-1&&o.column-1<g.end?(h=g.start+1,g.end+1):m&&1===m.wordType&&m.start<o.column-1&&o.column-1<m.end?(h=m.start+1,m.end+1):(h=o.column,o.column);var v,y=o.lineNumber;if(n.selectionStart.containsPosition(o))v=n.selectionStart.endColumn;else if(o.isBeforeOrEqual(n.selectionStart.getStartPosition())){v=h;var b=new a.a(y,v);n.selectionStart.containsPosition(b)&&(v=n.selectionStart.endColumn)}else v=p,b=new a.a(y,v),n.selectionStart.containsPosition(b)&&(v=n.selectionStart.startColumn);return n.move(!0,y,v,0)},d);function d(){}var h,p=(u(f,h=c),f.deleteWordPartLeft=function(e,t,n,i){var o=g([c.deleteWordLeft(e,t,n,i,0),c.deleteWordLeft(e,t,n,i,2),c._deleteWordPartLeft(t,n)]);return o.sort(l.a.compareRangesUsingEnds),o[2]},f.deleteWordPartRight=function(e,t,n,i){var o=g([c.deleteWordRight(e,t,n,i,0),c.deleteWordRight(e,t,n,i,2),c._deleteWordPartRight(t,n)]);return o.sort(l.a.compareRangesUsingStarts),o[0]},f.moveWordPartLeft=function(e,t,n){var i=g([c.moveWordLeft(e,t,n,0),c.moveWordLeft(e,t,n,2),c._moveWordPartLeft(t,n)]);return i.sort(a.a.compare),i[2]},f.moveWordPartRight=function(e,t,n){var i=g([c.moveWordRight(e,t,n,0),c.moveWordRight(e,t,n,2),c._moveWordPartRight(t,n)]);return i.sort(a.a.compare),i[0]},f);function f(){return null!==h&&h.apply(this,arguments)||this}function g(e){return e.filter((function(e){return Boolean(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("clipboardService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return h}));var i=n(479),o=n(791),r=n(444),s=n(596),a=n(452),l=n(554);function u(e,t,n){if("string"==typeof e&&(e=i.a.file(e)),n){var u=n.getWorkspaceFolder(e);if(u){var c=1<n.getWorkspace().folders.length,f=void 0;if(f=Object(l.e)(u.uri,e)?"":Object(l.h)(u.uri,e),c){var g=u.name?u.name:Object(l.b)(u.uri);f=f?g+" \u2022 "+f:g}return f}}if(e.scheme!==s.b.file&&e.scheme!==s.b.untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(o.normalize)(h(e.fsPath));var m=Object(o.normalize)(e.fsPath);return!a.h&&t&&(m=function(e,t){if(a.h||!e||!t)return e;var n=p.original===t?p.normalized:void 0;return n||(n=""+Object(r.K)(t,o.posix.sep)+o.posix.sep,p={original:t,normalized:n}),(a.d?Object(r.N):Object(r.O))(e,n)&&(e="~/"+e.substr(n.length)),e}(m,t.userHome)),m}function c(e){if(e){"string"==typeof e&&(e=i.a.file(e));var t=Object(l.b)(e)||(e.scheme===s.b.file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return a.h&&e&&":"===e[1]}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var p=Object.create(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i,o,r=n(505),s=n(504),a=n(930),l=n(489),u=n(456),c=n(448),d=n(532),h=n(451),p=n(759),f=function(e,t){return function(n,i){t(n,i,e)}},g=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(m,o=a.a),m.prototype.getParentEditor=function(){return this._parentEditor},m.prototype._onParentConfigurationChanged=function(e){o.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),o.prototype.updateOptions.call(this,this._overwriteOptions)},m.prototype.updateOptions=function(e){r.g(this._overwriteOptions,e,!0),o.prototype.updateOptions.call(this,this._overwriteOptions)},m=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([f(3,c.a),f(4,s.a),f(5,l.b),f(6,u.c),f(7,h.c),f(8,d.a),f(9,p.b)],m));function m(e,t,n,i,r,s,a,l,u,c){var d=o.call(this,e,n.getRawOptions(),{},i,r,s,a,l,u,c)||this;return d._parentEditor=n,d._overwriteOptions=t,o.prototype.updateOptions.call(d,d._overwriteOptions),d._register(n.onDidChangeConfiguration((function(e){return d._onParentConfigurationChanged(e)}))),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u}));var i=n(444),o=(r._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},r.equalsArr=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!r._equals(e[i],t[i]))return!1;return!0},r.filter=function(e,t,n,i){if(0===e.length)return[];for(var o=[],s=0,a=0,l=e.length;a<l;a++){var u=e[a],c=u.range;if(!(c.endLineNumber<t||c.startLineNumber>t||c.isEmpty()&&(0===u.type||3===u.type))){var d=c.startLineNumber===t?c.startColumn:n,h=c.endLineNumber===t?c.endColumn:i;o[s++]=new r(d,h,u.inlineClassName,u.type)}}return o},r.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},r);function r(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}var s=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},a=(l.prototype.consumeLowerThan=function(e,t,n){for(;0<this.count&&this.stopOffsets[0]<e;){for(var i=0;i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1];)i++;n.push(new s(t,this.stopOffsets[i],this.classNames.join(" "))),t=this.stopOffsets[i]+1,this.stopOffsets.splice(0,i+1),this.classNames.splice(0,i+1),this.count-=i+1}return 0<this.count&&t<e&&(n.push(new s(t,e-1,this.classNames.join(" "))),t=e),t},l.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},l);function l(){this.stopOffsets=[],this.classNames=[],this.count=0}var u=(c.normalize=function(e,t){if(0===t.length)return[];for(var n=[],o=new a,r=0,s=0,l=t.length;s<l;s++){var u=t[s],c=u.startColumn,d=u.endColumn,h=u.className;if(1<c){var p=e.charCodeAt(c-2);i.z(p)&&c--}1<d&&(p=e.charCodeAt(d-2),i.z(p)&&d--);var f=c-1,g=d-2;r=o.consumeLowerThan(f,r,n),0===o.count&&(r=f),o.insert(g,h)}return o.consumeLowerThan(1073741824,r,n),n},c);function c(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=(o.prototype.nextId=function(){return this._prefix+ ++this._lastId},o);function o(e){this._prefix=e,this._lastId=0}var r=new i("id#")},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n(1355);var i,o=n(443),r=n(961),s=n(439),a=n(896),l=n(505),u=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=(Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){this.disposed=!0},d);function d(e){this._element=e}var h,p=(u(f,h=s.a),f.prototype.setLabel=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=(null==n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof r.a?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),null!=n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null==n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))},f);function f(e,t){var n=h.call(this)||this;n.domNode=n._register(new c(o.q(e,o.a(".monaco-icon-label"))));var i=o.q(n.domNode.element,o.a(".monaco-icon-label-container")),s=o.q(i,o.a("span.monaco-icon-name-container"));return n.descriptionContainer=n._register(new c(o.q(i,o.a("span.monaco-icon-description-container")))),null!=t&&t.supportHighlights?n.nameNode=new v(s,!!t.supportCodicons):n.nameNode=new g(s),null!=t&&t.supportDescriptionHighlights?n.descriptionNodeFactory=function(){return new r.a(o.q(n.descriptionContainer.element,o.a("span.label-description")),!!t.supportCodicons)}:n.descriptionNodeFactory=function(){return n._register(new c(o.q(n.descriptionContainer.element,o.a("span.label-description"))))},n}var g=(m.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",o.P(this.container,"multiple"),this.singleLabel=o.q(this.container,o.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",o.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=0;n<e.length;n++){var i=e[n],r=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+n;o.q(this.container,o.a("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n},i)),n<e.length-1&&o.q(this.container,o.a("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}},m);function m(e){this.container=e,this.label=void 0,this.singleLabel=void 0}var v=(y.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",o.P(this.container,"multiple"),this.singleLabel=new r.a(o.q(this.container,o.a("a.label-name",{id:null==t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null==t?void 0:t.matches,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerHTML="",o.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=(null==t?void 0:t.separator)||"/",i=function(e,t,n){if(n){var i=0;return e.map((function(e){var o={start:i,end:i+e.length},r=n.map((function(e){return a.a.intersect(o,e)})).filter((function(e){return!a.a.isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-i,end:n-i}}));return i=o.end+t.length,r}))}}(e,n,null==t?void 0:t.matches),s=0;s<e.length;s++){var u=e[s],c=i?i[s]:void 0,d=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+s,h=o.a("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":s});new r.a(o.q(this.container,h),this.supportCodicons).set(u,c,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines),s<e.length-1&&o.q(h,o.a("span.label-separator",void 0,n))}}},y);function y(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(505),o=n(890),r=n(444),s=(Object.defineProperty(a.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),a.prototype.set=function(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=""),e=e||"",o&&(e=a.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&i.e(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.title=n,this.highlights=t,this.render())},a.prototype.render=function(){for(var e="",t=0,n=0,i=this.highlights;n<i.length;n++){var s=i[n];if(s.end!==s.start){if(t<s.start){e+="<span>";var a=this.text.substring(t,s.start);e+=this.supportCodicons?Object(o.c)(Object(r.o)(a)):Object(r.o)(a),e+="</span>",t=s.end}s.extraClasses?e+='<span class="highlight '+s.extraClasses+'">':e+='<span class="highlight">';var l=this.text.substring(s.start,s.end);e+=this.supportCodicons?Object(o.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>",t=s.end}}t<this.text.length&&(e+="<span>",l=this.text.substring(t),e+=this.supportCodicons?Object(o.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>"),this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},a.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r<s.length;r++){var a=s[r];a.end<=o||(a.start>=o&&(a.start+=i),a.end>=o&&(a.end+=i))}return n+=i,"\u23ce"}))},a);function a(e,t){this.supportCodicons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}},function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var i,o,r=n(479),s=n(554),a=n(448),l=n(553),u=Object(a.c)("contextService");function c(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=l.c.forPaths(),this.folders=t}(i||(i={})).isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)},(o||(o={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&r.a.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource},Object.defineProperty(c.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),c.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},c.prototype.updateFoldersMap=function(){this._foldersMap=l.c.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},c.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}};var d=(h.prototype.toResource=function(e){return s.f(this.uri,e)},h.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},h);function h(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return R}));var i,o,r=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},a=(l.isDigitCharacter=function(e){return 48<=e&&e<=57},l.isVariableCharacter=function(e){return 95===e||97<=e&&e<=122||65<=e&&e<=90},l.prototype.text=function(e){this.value=e,this.pos=0},l.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},l.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var e,t=this.pos,n=0,i=this.value.charCodeAt(t);if("number"==typeof(e=l._table[i]))return this.pos+=1,{type:e,pos:t,len:1};if(l.isDigitCharacter(i)){for(e=8;n+=1,i=this.value.charCodeAt(t+n),l.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}if(l.isVariableCharacter(i)){for(e=9;i=this.value.charCodeAt(t+ ++n),l.isVariableCharacter(i)||l.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}for(e=10;n+=1,i=this.value.charCodeAt(t+n),!isNaN(i)&&void 0===l._table[i]&&!l.isDigitCharacter(i)&&!l.isVariableCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}},l._table=((o={})[36]=0,o[58]=1,o[44]=2,o[123]=3,o[125]=4,o[92]=5,o[47]=6,o[124]=7,o[43]=11,o[45]=12,o[63]=13,o),l);function l(){this.value="",this.pos=0}var u=(c.prototype.appendChild=function(e){return e instanceof h&&this._children[this._children.length-1]instanceof h?this._children[this._children.length-1].value+=e.value:(e.parent=this)._children.push(e),this},c.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,s([i,1],t)),n._children=o,function e(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];r.parent=n,e(r.children,r)}}(t,n)},Object.defineProperty(c.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof P)return e;e=e.parent}},enumerable:!0,configurable:!0}),c.prototype.toString=function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")},c.prototype.len=function(){return 0},c);function c(){this._children=[]}var d,h=(r(p,d=u),p.prototype.toString=function(){return this.value},p.prototype.len=function(){return this.value.length},p.prototype.clone=function(){return new p(this.value)},p);function p(e){var t=d.call(this)||this;return t.value=e,t}var f,g=(r(m,f=u),m);function m(){return null!==f&&f.apply(this,arguments)||this}var v,y=(r(b,v=g),b.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0},Object.defineProperty(b.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof w?this._children[0]:void 0},enumerable:!0,configurable:!0}),b.prototype.clone=function(){var e=new b(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},b);function b(e){var t=v.call(this)||this;return t.index=e,t}var _,w=(r(C,_=u),C.prototype.appendChild=function(e){return e instanceof h&&(e.parent=this).options.push(e),this},C.prototype.toString=function(){return this.options[0].value},C.prototype.len=function(){return this.options[0].len()},C.prototype.clone=function(){var e=new C;return this.options.forEach(e.appendChild,e),e},C);function C(){var e=null!==_&&_.apply(this,arguments)||this;return e.options=[],e}var S,O=(r(x,S=u),x.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some((function(e){return e instanceof E&&Boolean(e.elseValue)}))&&(i=this._replace([])),i},x.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var o=i[n];if(o instanceof E){var r=e[o.index]||"";t+=r=o.resolve(r)}else t+=o.toString()}return t},x.prototype.toString=function(){return""},x.prototype.clone=function(){var e=new x;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((function(e){return e.clone()})),e},x);function x(){var e=null!==S&&S.apply(this,arguments)||this;return e.regexp=new RegExp(""),e}var k,E=(r(N,k=u),N.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue},N.prototype._toPascalCase=function(e){var t=e.match(/[a-z]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join(""):e},N.prototype.clone=function(){return new N(this.index,this.shorthandName,this.ifValue,this.elseValue)},N);function N(e,t,n,i){var o=k.call(this)||this;return o.index=e,o.shorthandName=t,o.ifValue=n,o.elseValue=i,o}var L,D=(r(M,L=g),M.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new h(t)],!0)},M.prototype.clone=function(){var e=new M(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},M);function M(e){var t=L.call(this)||this;return t.name=e,t}function T(e,t){for(var n=s(e);0<n.length;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children)}}var I,P=(r(A,I=u),Object.defineProperty(A.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof y&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"placeholders",{get:function(){return this.placeholderInfo.all},enumerable:!0,configurable:!0}),A.prototype.offset=function(e){var t=0,n=!1;return this.walk((function(i){return i===e?!(n=!0):(t+=i.len(),!0)})),n?t:-1},A.prototype.fullLen=function(e){var t=0;return T([e],(function(e){return t+=e.len(),!0})),t},A.prototype.enclosingPlaceholders=function(e){for(var t=[],n=e.parent;n;)n instanceof y&&t.push(n),n=n.parent;return t},A.prototype.resolveVariables=function(e){var t=this;return this.walk((function(n){return n instanceof D&&n.resolve(e)&&(t._placeholders=void 0),!0})),this},A.prototype.appendChild=function(e){return this._placeholders=void 0,I.prototype.appendChild.call(this,e)},A.prototype.replace=function(e,t){return this._placeholders=void 0,I.prototype.replace.call(this,e,t)},A.prototype.clone=function(){var e=new A;return this._children=this.children.map((function(e){return e.clone()})),e},A.prototype.walk=function(e){T(this.children,e)},A);function A(){return null!==I&&I.apply(this,arguments)||this}var R=(j.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},j.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();for(var i=new P;this._parse(i););var o=new Map,r=[],s=0;i.walk((function(e){return e instanceof y&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&0<e.children.length?o.set(e.index,e.children):r.push(e)),!0}));for(var a=0,l=r;a<l.length;a++){var u=l[a],c=o.get(u.index);if(c){var d=new y(u.index);d.transform=u.transform;for(var h=0,p=c;h<p.length;h++){var f=p[h];d.appendChild(f.clone())}i.replace(u,[d])}}return n=n||0<s&&t,!o.has(0)&&n&&i.appendChild(new y(0)),i},j.prototype._accept=function(e,t){if(void 0!==e&&this._token.type!==e)return!1;var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n},j.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},j.prototype._until=function(e){for(var t=this._token;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){var n=this._scanner.next();if(0!==n.type&&4!==n.type&&5!==n.type)return!1}this._token=this._scanner.next()}var i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i},j.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},j.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new h(t)),!0)},j.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new y(Number(t)):new D(t)),!0):this._backTo(n)},j.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var i=new y(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new h("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(0<i.index&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(var o=new w;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(o),this._accept(4)))return e.appendChild(i),!0}return this._backTo(n),!1}}},j.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];2!==this._token.type&&7!==this._token.type;){var i=void 0;if(!(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new h(n.join(""))),!0)},j.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var i=new D(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new h("${"+t+":")),i.children.forEach(e.appendChild,e),!0}},j.prototype._parseTransform=function(e){for(var t=new O,n="",i="";!this._accept(6);){var o=void 0;if(o=this._accept(5,!0))n+=o=this._accept(6,!0)||o;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);)if(o=void 0,o=this._accept(5,!0))o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new h(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1;for(;!this._accept(4);){if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(e){return!1}return e.transform=t,!0},j.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new E(Number(i))),!0;if(this._accept(4))return e.appendChild(new E(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var o=this._accept(9,!0);return o&&this._accept(4)?(e.appendChild(new E(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(r=this._until(4))return e.appendChild(new E(Number(i),void 0,r,void 0)),!0}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new E(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){var r;if((r=this._until(1))&&(s=this._until(4)))return e.appendChild(new E(Number(i),void 0,r,s)),!0}else{var s;if(s=this._until(4))return e.appendChild(new E(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},j.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new h(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},j);function j(){this._scanner=new a,this._token={type:14,pos:0,len:0}}},function(e,t,n){"use strict";n(46),n(981)},,,function(e,t,n){"use strict";n(1357);var i=n(449),o=n(495),r=n(443),s=(n(1358),n(445)),a=n(452),l=n(465),u=(c.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},c.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&0<n.entries.length)},c.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},c.prototype.getParent=function(e,t){return Promise.resolve(null)},c);function c(e){this.modelProvider=Object(l.g)(e.getModel)?e:{getModel:function(){return e}}}var d=(h.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},h.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),i=0;if(n.filter)for(var o=0,r=n.entries;o<r.length;o++){var s=r[o];if(n.filter.isVisible(s)&&i++,s===t)break}else i=n.entries.indexOf(t)+1;return String(i)},h.prototype.getSetSize=function(){var e=this.modelProvider.getModel(),t=0;if(e.filter)for(var n=0,i=e.entries;n<i.length;n++){var o=i[n];e.filter.isVisible(o)&&t++}else t=e.entries.length;return String(t)},h);function h(e){this.modelProvider=e}var p=(f.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},f);function f(e){this.modelProvider=e}var g=(m.prototype.updateStyles=function(e){this.styles=e},m.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},m.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},m.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},m.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles)},m.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},m);function m(e,t){this.modelProvider=e,this.styles=t}var v=n(976),y=(n(1359),n(446)),b=n(548),_=(w.prototype.set=function(e,t){this._arr.push({keybinding:Object(b.f)(e,a.a),callback:t})},w.prototype.dispatch=function(e){for(var t=this._arr.length-1;0<=t;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},w);function w(){this._arr=[]}var C=(S.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)return!1;if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(r.x(n.target,"scrollbar","monaco-tree"))return!1;if(r.x(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)},S.prototype.onClick=function(e,t,n){return a.e&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n)},S.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};return e.getInput()===t?(e.clearFocus(r),e.clearSelection(r)):(n&&o.browserEvent&&"mousedown"===o.browserEvent.type&&1===o.browserEvent.detail||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,o,i)&&(e.isExpanded(t)?e.collapse(t).then(void 0,y.e):e.expand(t).then(void 0,y.e))),!0},S.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},Object.defineProperty(S.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),S.prototype.isClickOnTwistie=function(e){var t=e.target;if(!r.I(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i},S.prototype.onContextMenu=function(e,t,n){return n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase()||n&&(n.preventDefault(),n.stopPropagation()),!1},S.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},S.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},S.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},S.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n)||(n.preventDefault(),n.stopPropagation(),0))},S.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(void 0,y.e)),!0},S.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then((function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus())})).then(void 0,y.e)}return!0},S.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then((function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())})).then(void 0,y.e)}return!0},S.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},S.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},S.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},S);function S(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new _,this.upKeyBindingDispatcher=new _,"boolean"==typeof e.keyboardSupport&&!e.keyboardSupport||(this.downKeyBindingDispatcher.set(16,(function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(18,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(15,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(17,(function(e,n){return t.onRight(e,n)})),a.e&&(this.downKeyBindingDispatcher.set(2064,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(300,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(302,(function(e,n){return t.onUp(e,n)}))),this.downKeyBindingDispatcher.set(11,(function(e,n){return t.onPageUp(e,n)})),this.downKeyBindingDispatcher.set(12,(function(e,n){return t.onPageDown(e,n)})),this.downKeyBindingDispatcher.set(14,(function(e,n){return t.onHome(e,n)})),this.downKeyBindingDispatcher.set(13,(function(e,n){return t.onEnd(e,n)})),this.downKeyBindingDispatcher.set(10,(function(e,n){return t.onSpace(e,n)})),this.downKeyBindingDispatcher.set(9,(function(e,n){return t.onEscape(e,n)})),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}var O=(x.prototype.getDragURI=function(e,t){return null},x.prototype.onDragStart=function(e,t,n){},x.prototype.onDragOver=function(e,t,n,i){return null},x.prototype.drop=function(e,t,n,i){},x);function x(){}var k=(E.prototype.isVisible=function(e,t){return!0},E);function E(){}var N=(L.prototype.getAriaLabel=function(e,t){return null},L);function L(){}var D=(M.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},M);function M(e,t){this.styleElement=e,this.selectorSuffix=t}var T,I=n(944),P=n(439),A=n(442),R=(T=function(e,t){return(T=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){function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=(Object.defineProperty(F.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),F.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},F);function F(e){this._onDispose=new A.a,this.onDispose=this._onDispose.event,this._item=e}var B=(W.prototype.isLocked=function(e){return!!this.locks[e.id]},W.prototype.run=function(e,t){var n=this,i=this.getLock(e);return new Promise(i?function(o,r){A.b.once(i.onDispose)((function(){return n.run(e,t).then(o,r)}))}:function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var r=n.locks[e.id]=new j(e);return t().then((function(t){return delete n.locks[e.id],r.dispose(),t})).then(i,o)})},W.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},W);function W(){this.locks=Object.create({})}var V=(z.prototype.register=function(e){I.a(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(P.e)(this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose));this.items[e.id]={item:e,disposable:t}},z.prototype.deregister=function(e){I.a(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},z.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},z.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},z.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},z.prototype.isDisposed=function(){return this._isDisposed},z);function z(){this._isDisposed=!1,this._onDidRevealItem=new A.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new A.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new A.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new A.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new A.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new A.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new A.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new A.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new A.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new A.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new A.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}var H=(q.prototype.getElement=function(){return this.element},q.prototype.hasChildren=function(){return this.doesHaveChildren},q.prototype.getDepth=function(){return this.depth},q.prototype.isVisible=function(){return this.visible},q.prototype.setVisible=function(e){this.visible=e},q.prototype.isExpanded=function(){return this.expanded},q.prototype._setExpanded=function(e){this.expanded=e},q.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},q.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then((function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0}))})).then((function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then((function(){return!0})):t)}))},q.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild((function(e){n=n.then((function(){return e.collapse(!0)}))})),n.then((function(){return t.collapse(!1)}))}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)}))},q.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},q.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},q.prototype.hasTrait=function(e){return this.traits[e]||!1},q.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},q.prototype.getHeight=function(){return this.height},q.prototype.refreshChildren=function(e,t,n){var i=this;if(void 0===t&&(t=!1),void 0===n&&(n=!1),!n&&!this.isExpanded())return function e(t){t.needsChildrenRefresh=!0,t.forEachChild(e)}(this),Promise.resolve(this);function o(){var n={item:i,isNested:t};return i._onRefreshChildren.fire(n),(i.doesHaveChildren?i.context.dataSource.getChildren(i.context.tree,i.element):Promise.resolve([])).then((function(t){if(i.isDisposed()||i.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(t))return Promise.reject(new Error("Please return an array of children."));t=t?t.slice(0):[],t=i.sort(t);for(var n={};null!==i.firstChild;)n[i.firstChild.id]=i.firstChild,i.removeChild(i.firstChild);for(var o=0,r=t.length;o<r;o++){var s=t[o],a=i.context.dataSource.getId(i.context.tree,s),l=n[a]||new q(a,i.registry,i.context,i.lock,s);l.element=s,e&&(l.needsChildrenRefresh=e),delete n[a],i.addChild(l)}for(var u in n)n.hasOwnProperty(u)&&n[u].dispose();return e?Promise.all(i.mapEachChild((function(t){return t.doRefresh(e,!0)}))):Promise.all(i.mapEachChild((function(t){return t.isExpanded()&&t.needsChildrenRefresh?t.doRefresh(e,!0):(t.updateVisibility(),Promise.resolve(null))})))})).then(void 0,y.e).then((function(){return i._onDidRefreshChildren.fire(n)}))}return this.needsChildrenRefresh=!1,t?o():this.lock.run(this,o)},q.prototype.doRefresh=function(e,t){return void 0===t&&(t=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(e,t)},q.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},q.prototype.refresh=function(e){return this.doRefresh(e)},q.prototype.getNavigator=function(){return new Y(this)},q.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)},q.prototype.isAncestorOf=function(e){for(var t=e;t;){if(t.id===this.id)return!0;t=t.parent}return!1},q.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,i=null===t,o=t===this.lastChild;if(n)this.firstChild=this.lastChild=e,e.next=e.previous=null;else if(i){if(!this.firstChild)throw new Error("Invalid tree state");(this.firstChild.previous=e).next=this.firstChild,e.previous=null,this.firstChild=e}else if(o){if(!this.lastChild)throw new Error("Invalid tree state");(this.lastChild.next=e).next=null,e.previous=this.lastChild,this.lastChild=e}else{if(!(e.previous=t))throw new Error("Invalid tree state");if(e.next=t.next,!t.next)throw new Error("Invalid tree state");t.next.previous=e,t.next=e}e.parent=this,e.depth=this.depth+1},q.prototype.removeChild=function(e){var t=this.firstChild===e,n=this.lastChild===e;if(t&&n)this.firstChild=this.lastChild=null;else if(t){if(!e.next)throw new Error("Invalid tree state");e.next.previous=null,this.firstChild=e.next}else if(n){if(!e.previous)throw new Error("Invalid tree state");e.previous.next=null,this.lastChild=e.previous}else{if(!e.next)throw new Error("Invalid tree state");if(e.next.previous=e.previous,!e.previous)throw new Error("Invalid tree state");e.previous.next=e.next}e.parent=null,e.depth=NaN},q.prototype.forEachChild=function(e){for(var t,n=this.firstChild;n;)t=n.next,e(n),n=t},q.prototype.mapEachChild=function(e){var t=[];return this.forEachChild((function(n){t.push(e(n))})),t},q.prototype.sort=function(e){var t=this,n=this.context.sorter;return n?e.sort((function(e,i){return n.compare(t.context.tree,e,i)})):e},q.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},q.prototype._isVisible=function(){return!!this.context.filter&&this.context.filter.isVisible(this.context.tree,this.element)},q.prototype.isDisposed=function(){return this._isDisposed},q.prototype.dispose=function(){this.forEachChild((function(e){return e.dispose()})),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},q);function q(e,t,n,i,o){this._onDidCreate=new A.a,this._onDidReveal=new A.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new A.a,this.onExpand=this._onExpand.event,this._onDidExpand=new A.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new A.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new A.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new A.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new A.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new A.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new A.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new A.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new A.a,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,o)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}var U,K=(R(G,U=H),G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(e){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(e){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G);function G(e,t,n,i,o){return U.call(this,e,t,n,i,o)||this}var Y=(Z.lastDescendantOf=function(e){return e?e instanceof K?Z.lastDescendantOf(e.lastChild):e.isVisible()?e.isExpanded()&&null!==e.lastChild?Z.lastDescendantOf(e.lastChild):e:Z.lastDescendantOf(e.previous):null},Z.prototype.current=function(){return this.item||null},Z.prototype.next=function(){if(this.item)do{if((this.item instanceof K||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;this.item&&this.item!==this.start&&!this.item.next;)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}}while(this.item&&!this.item.isVisible());return this.item||null},Z.prototype.previous=function(){if(this.item)do{var e=Z.lastDescendantOf(this.item.previous);e?this.item=e:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},Z.prototype.parent=function(){if(this.item){var e=this.item.parent;e&&e!==this.start&&e.isVisible()?this.item=e:this.item=null}return this.item||null},Z.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},Z.prototype.last=function(){return Z.lastDescendantOf(this.start)},Z);function Z(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null}var X=($.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new B,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new V,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem((function(e){return e.getAllTraits().forEach((function(n){return delete t.traitsToItems[n][e.id]}))}));var i=this.context.dataSource.getId(this.context.tree,e);return this.input=new K(i,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input)},$.prototype.getInput=function(){return this.input?this.input.getElement():null},$.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var i=this.getItem(e);if(!i)return Promise.resolve(null);var o={item:i,recursive:t};return this._onRefresh.fire(o),i.refresh(t).then((function(){n._onDidRefresh.fire(o)}))},$.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():Promise.resolve(!1)},$.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):Promise.resolve(!1)},$.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e)},$.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded()},$.prototype.reveal=function(e,t){var n=this;return void 0===t&&(t=null),this.resolveUnknownParentChain(e).then((function(e){var t=Promise.resolve(null);return e.forEach((function(e){t=t.then((function(){return n.expand(e)}))})),t})).then((function(){var i=n.getItem(e);if(i)return i.reveal(t)}))},$.prototype.resolveUnknownParentChain=function(e){var t=this;return this.context.dataSource.getParent(this.context.tree,e).then((function(e){return e?t.resolveUnknownParentChain(e).then((function(t){return t.push(e),t})):Promise.resolve([])}))},$.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)},$.prototype.getHighlight=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]},$.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)},$.prototype.getSelection=function(e){return void 0===e&&(e=!1),this.getElementsWithTrait("selected",e)},$.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},$.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},$.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e&&(n=o.next());r++)i=n;this.setFocus(i,t)},$.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e&&(n=o.previous());r++)i=n;this.setFocus(i,t)},$.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1).parent();n&&this.setFocus(n,e)},$.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input),n=this.getNavigator(t,!1),i=n.next();n.parent()===t&&this.setFocus(i,e)},$.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)},$.prototype.focusNth=function(e,t,n){for(var i=this.getParent(n),o=this.getNavigator(i),r=o.first(),s=0;s<e;s++)r=o.next();r&&this.setFocus(r,t)},$.prototype.focusLast=function(e,t){var n,i=this.getParent(t);(n=t&&i?i.lastChild:this.getNavigator(i).last())&&this.setFocus(n,e)},$.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)},$.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new Y(this.getItem(e),t)},$.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof H?e:"string"==typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e))},$.prototype.removeTraits=function(e,t){var n,i,o=this.traitsToItems[e]||{};if(0===t.length){for(i in o)o.hasOwnProperty(i)&&(n=o[i]).removeTrait(e);delete this.traitsToItems[e]}else for(var r=0,s=t.length;r<s;r++)(n=this.getItem(t[r]))&&(n.removeTrait(e),delete o[n.id])},$.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n={},i=void 0,o=0,r=t.length;o<r;o++)(i=this.getItem(t[o]))&&(n[i.id]=i);var s=this.traitsToItems[e]||{},a=[],l=void 0;for(l in s)s.hasOwnProperty(l)&&(n.hasOwnProperty(l)?delete n[l]:a.push(s[l]));for(o=0,r=a.length;o<r;o++)(i=a[o]).removeTrait(e),delete s[i.id];for(l in n)n.hasOwnProperty(l)&&((i=n[l]).addTrait(e),s[l]=i);this.traitsToItems[e]=s}},$.prototype.getElementsWithTrait=function(e,t){var n,i=[],o=this.traitsToItems[e]||{};for(n in o)o.hasOwnProperty(n)&&(o[n].isVisible()||t)&&i.push(o[n].getElement());return i},$.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},$);function $(e){this.registry=new V,this.registryDisposable=P.a.None,this._onSetInput=new A.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new A.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new A.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new A.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new A.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new A.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new A.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new A.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new A.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new A.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new A.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new A.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new A.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new A.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new A.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new A.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new A.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new A.f,this.context=e,this.input=null,this.traitsToItems={}}var J=n(478),Q=n(977),ee=n(702),te=n(444),ne=n(595),ie=n(701),oe=(re.prototype.update=function(e){},re.prototype.getData=function(){return this.elements},re);function re(e){this.elements=e}var se=(ae.prototype.update=function(e){},ae.prototype.getData=function(){return this.elements},ae);function ae(e){this.elements=e}var le=(ue.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter((function(e){return e.size||e.type})))},ue.prototype.getData=function(){return{types:this.types,files:this.files}},ue);function ue(){this.types=[],this.files=[]}var ce=n(700),de=n(688),he=(pe.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0},pe.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n,i,o,r,s=null,a=0;if(null===t)r=i=0;else{if(i=this.indexes[t]+1,!(n=this.heightMap[i-1]))return;r=n.top+n.height}for(var l=this.heightMap.splice.bind(this.heightMap,i,0),u=[];s=e.next();)(n=this.createViewItem(s)).top=r+a,this.indexes[s.id]=i++,u.push(n),a+=n.height;for(l.apply(this.heightMap,u),o=i;o<this.heightMap.length;o++)(n=this.heightMap[o]).top+=a,this.indexes[n.model.id]=o;for(o=u.length-1;0<=o;o--)this.onInsertItem(u[o]);for(o=this.heightMap.length-1;i<=o;o--)this.onRefreshItem(this.heightMap[o]);return a},pe.prototype.onInsertItem=function(e){},pe.prototype.onRemoveItems=function(e){for(var t,n=null,i=null,o=0,r=0;n=e.next();){if(o=this.indexes[n],!(t=this.heightMap[o]))return;r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===i&&(i=o)}if(0!==r&&null!==i)for(this.heightMap.splice(i,o-i+1),o=i;o<this.heightMap.length;o++)(t=this.heightMap[o]).top+=r,this.indexes[t.model.id]=o,this.onRefreshItem(t)},pe.prototype.onRemoveItem=function(e){},pe.prototype.onRefreshItemSet=function(e){var t=this,n=e.sort((function(e,n){return t.indexes[e.id]-t.indexes[n.id]}));this.onRefreshItems(new ce.a(n))},pe.prototype.onRefreshItems=function(e){for(var t,n,i,o=null,r=null,s=0;o=e.next();){for(i=this.indexes[o.id];0!==s&&null!==r&&r<i;r++)(t=this.heightMap[r]).top+=s,this.onRefreshItem(t);t=this.heightMap[i],n=o.getHeight(),t.top+=s,s+=n-t.height,t.height=n,this.onRefreshItem(t,!0),r=i+1}if(0!==s&&null!==r)for(;r<this.heightMap.length;r++)(t=this.heightMap[r]).top+=s,this.onRefreshItem(t)},pe.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)},pe.prototype.indexAt=function(e){for(var t,n,i=0,o=this.heightMap.length;i<o;)if(t=Math.floor((i+o)/2),e<(n=this.heightMap[t]).top)o=t;else{if(!(e>=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},pe.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},pe.prototype.itemAtIndex=function(e){return this.heightMap[e]},pe.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},pe.prototype.createViewItem=function(e){throw new Error("not implemented")},pe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},pe);function pe(){this.heightMap=[],this.indexes={}}var fe,ge=(fe=function(e,t){return(fe=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){function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),me=(ve.prototype.preventDefault=function(){},ve.prototype.stopPropagation=function(){},Object.defineProperty(ve.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),ve);function ve(e,t,n){this._posx=e,this._posy=t,this._target=n}var ye,be=(ge(_e,ye=me),_e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},_e.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},_e);function _e(e){var t=ye.call(this,e.posx,e.posy,e.target)||this;return t.originalEvent=e,t}var we,Ce=(ge(Se,we=me),Se.prototype.preventDefault=function(){this.originalEvent.preventDefault()},Se.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},Se);function Se(e,t,n){var i=we.call(this,e,t,n.target)||this;return i.originalEvent=n,i}var Oe,xe=n(888),ke=n(453),Ee=(Oe=function(e,t){return(Oe=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){function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ne=(Le.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(e){}t={element:i,templateId:e,templateData:o}}return t},Le.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},Le.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},Le.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach((function(t){e._cache[t].forEach((function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null})),delete e._cache[t]}))},Le.prototype.dispose=function(){this.garbageCollect(),this._cache=null},Le);function Le(e){this.context=e,this._cache={"":[]}}var De=(Object.defineProperty(Me.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"loading",{set:function(e){e?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),Me.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},Me.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},Me.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var s=te.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",s)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var a=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(a!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),a?(this.uri=a,this.draggable=!0,this.unbindDragStart=r.j(this.element,"dragstart",(function(e){t.onDragStart(e)}))):this.uri=null),!e&&this.element){var l=0;if(this.context.horizontalScrolling){var u=window.getComputedStyle(this.element);l=parseFloat(u.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=J.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){}this.context.horizontalScrolling&&(this.width=r.B(this.element)+l,this.element.style.width="")}}},Me.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[Re.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){e.appendChild(this.element)}this.render()}},Me.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[Re.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},Me.prototype.dispose=function(){this.row=null},Me);function Me(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=P.a.None,this._draggable=!1,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach((function(e){return n._styles[e]=!0})),t.isExpanded()&&this.addClass("expanded")}var Te,Ie=(Ee(Pe,Te=De),Pe.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},Pe.prototype.insertInDOM=function(e,t){},Pe.prototype.removeFromDOM=function(){},Pe);function Pe(e,t,n){var i=Te.call(this,e,t)||this;return i.row={element:n,templateData:null,templateId:null},i}var Ae,Re=(Ee(je,Ae=he),je.prototype.applyStyles=function(e){this.treeStyler.style(e)},je.prototype.createViewItem=function(e){return new De(this.context,e)},je.prototype.getHTMLElement=function(){return this.domNode},je.prototype.focus=function(){this.domNode.focus()},je.prototype.isFocused=function(){return document.activeElement===this.domNode},je.prototype.blur=function(){this.domNode.blur()},je.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout((function(){return e.msGesture.target=e.wrapper}),100))},je.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},je.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||r.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||r.B(this.wrapper)))},je.prototype.render=function(e,t,n,i,o){var r,s,a=e,l=e+t,u=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(l)-1,s=this.indexAt(Math.max(u,a));s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(l))-1,s=this.indexAt(a);s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(u));r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(l),this.indexAt(this.lastRenderTop)),s=this.indexAfter(u);r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));var c=this.itemAtIndex(this.indexAt(a));c&&(this.rowsContainer.style.top=c.top-a+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-n+"px",this.rowsContainer.style.width=Math.max(o,i)+"px"),this.lastRenderTop=a,this.lastRenderHeight=l-a},je.prototype.setModel=function(e){this.releaseModel(),this.model=e,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},je.prototype.onRefreshing=function(){this.isRefreshing=!0},je.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},je.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth())},je.prototype.updateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.contentWidthUpdateDelayer.trigger((function(){for(var t=0,n=0,i=Object.keys(e.items);n<i.length;n++){var o=i[n];t=Math.max(t,e.items[o].width)}e.scrollWidth=t+10}))},je.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var i=this.itemAtIndex(n).model.getElement();if(this.model.getFocus()!==i)this.model.setFocus(i,e);else{var o=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==o&&setTimeout((function(){t.focusNextPage(e)}),0)}},je.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var i=this.itemAtIndex(t).model.getElement();if(this.model.getFocus()!==i)this.model.setFocus(i,e);else{var o=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==o&&setTimeout((function(){n.focusPreviousPage(e)}),0)}},Object.defineProperty(je.prototype,"viewHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"scrollHeight",{set:function(e){e+=this.horizontalScrolling?10:0,this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"viewWidth",{get:function(){return this.scrollableElement.getScrollDimensions().width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"scrollTop",{get:function(){return this.scrollableElement.getScrollPosition().scrollTop},set:function(e){var t=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:t}),this.scrollableElement.setScrollPosition({scrollTop:e})},enumerable:!0,configurable:!0}),je.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new ce.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},je.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new Ie(this.context,e.item,this.wrapper)},je.prototype.onItemChildrenRefreshing=function(e){var t=e.item,n=this.items[t.id];if(n&&this.context.options.showLoading&&(n.loadingTimer=setTimeout((function(){n.loadingTimer=0,n.loading=!0}),je.LOADING_DECORATION_DELAY)),!e.isNested){for(var i=[],o=t.getNavigator(),r=void 0;r=o.next();)i.push(r.id);this.refreshingPreviousChildrenIds[t.id]=i}},je.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,i=this.items[n.id];if(i&&(i.loadingTimer&&(clearTimeout(i.loadingTimer),i.loadingTimer=0),i.loading=!1),!e.isNested){for(var o=this.refreshingPreviousChildrenIds[n.id],r=[],s=n.getNavigator(),a=void 0;a=s.next();)r.push(a);var l=1e3<Math.abs(o.length-r.length),u=[],c=!1;if(l||(c=(u=new Q.a({getElements:function(){return o}},{getElements:function(){return r.map((function(e){return e.id}))}},null).ComputeDiff(!1).changes).some((function(e){if(0<e.modifiedLength)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n<i;n++)if(t.items.hasOwnProperty(r[n].id))return!0;return!1}))),!l&&!c&&u.length<50)for(var d=0,h=u;d<h.length;d++){var p=h[d];if(0<p.originalLength&&this.onRemoveItems(new ce.a(o,p.originalStart,p.originalStart+p.originalLength)),0<p.modifiedLength){var f=r[p.modifiedStart-1]||n;f=0<f.getDepth()?f:null,this.onInsertItems(new ce.a(r,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(l||u.length)&&(this.onRemoveItems(new ce.a(o)),this.onInsertItems(new ce.a(r),0<n.getDepth()?n.id:null));(l||u.length)&&this.onRowsChanged()}},je.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},je.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter((function(e){return t.items.hasOwnProperty(e.id)}))),this.onRowsChanged()},je.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},je.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id)||0,o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},je.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new ce.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},je.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=1<(n=n<0?0:n)?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top<this.scrollTop?this.scrollTop=i.top:s<=r&&(this.scrollTop=r-this.viewHeight)}},je.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(r.f(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},je.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(r.P(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},je.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();r.Y(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",te.L(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},je.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},je.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},je.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},je.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},je.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new ne.b(e),n=this.getItemAround(t.target);n&&(J.i&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},je.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new ne.b(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},je.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(e);if(!(t.ctrlKey&&a.f&&a.e)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},je.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(e);if(!(t.ctrlKey&&a.f&&a.e)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},je.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},je.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},je.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new ie.a(e),o=void 0;if(n=this.model.getFocus()){var s=this.context.dataSource.getId(this.context.tree,n),a=this.items[s];o=r.C(a.element)}else n=this.model.getInput(),o=r.C(this.inputItem.element);t=new Ce(o.left+o.width,o.top,i)}else{var l=new ne.b(e),u=this.getItemAround(l.target);if(!u)return;n=u.model.getElement(),t=new be(l)}this.context.controller.onContextMenu(this.context.tree,n,t)},je.prototype.onKeyDown=function(e){var t=new ie.a(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t))},je.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ie.a(e))},je.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,i=e.model.getElement(),o=this.model.getSelection();if(n=-1<o.indexOf(i)?o:[i],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(xe.a.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var s=document.createElement("div");s.className="monaco-tree-drag-image",s.textContent=r,document.body.appendChild(s),t.dataTransfer.setDragImage(s,-10,-10),setTimeout((function(){return document.body.removeChild(s)}),0)}this.currentDragAndDropData=new oe(n),xe.c.CurrentDragAndDropData=new se(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new ne.a(t))}},je.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=r.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval((function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):o<n&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}}),10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout((function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null}),1e3))},je.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},je.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},je.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,i=new ne.a(e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===r.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(xe.c.CurrentDragAndDropData)this.currentDragAndDropData=xe.c.CurrentDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new le}this.currentDragAndDropData.update(i.browserEvent.dataTransfer);var s,a=o.model;do{if(n=a?a.getElement():this.model.getInput(),!(s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,i))||1!==s.bubble)break;a=a&&a.parent}while(a);if(!a)return this.currentDropElement=null,!1;var l=s&&s.accept;l?(this.currentDropElement=a.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=0===s.effect?"copy":"move"):this.currentDropElement=null;var u,c,d=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(c=s,!(!(u=this.currentDropElementReaction)&&!c||u&&c&&u.accept===c.accept&&u.bubble===c.bubble&&u.effect===c.effect)))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=d,this.currentDropElementReaction=s,l)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===s.bubble)for(var h=a.getNavigator(),p=void 0;p=h.next();)(o=this.items[p.id])&&(o.dropTarget=!0,this.currentDropTargets.push(o));if(s.autoExpand){var f=Object(ke.l)(500);this.currentDropDisposable=P.h((function(){return f.cancel()})),f.then((function(){return t.context.tree.expand(t.currentDropElement)})).then((function(){return t.shouldInvalidateDropReaction=!0}))}}return!0},je.prototype.onDrop=function(e){if(this.currentDropElement){var t=new ne.a(e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},je.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,xe.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},je.prototype.onFocus=function(){this.context.options.alwaysFocused||r.f(this.domNode,"focused"),this._onDOMFocus.fire()},je.prototype.onBlur=function(){this.context.options.alwaysFocused||r.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},je.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},je.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},je.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},je.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},je.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},je.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop},je.prototype.getItemAround=function(e){var t=this.inputItem,n=e;do{if(n[je.BINDING]&&(t=n[je.BINDING]),n===this.wrapper||n===this.domNode)return t;if(n===this.scrollableElement.getDomNode()||n===document.body)return}while(n=n.parentElement)},je.prototype.releaseModel=function(){this.model&&(this.modelListeners=P.f(this.modelListeners),this.model=null)},je.prototype.dispose=function(){var e=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=P.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach((function(t){return e.items[t].removeFromDOM()})),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),Ae.prototype.dispose.call(this)},je.BINDING="monaco-tree-row",je.LOADING_DECORATION_DELAY=800,je.counter=0,je);function je(e,t){var n=Ae.call(this)||this;n.model=null,n.lastPointerType="",n.lastClickTimeStamp=0,n.contentWidthUpdateDelayer=new ke.a(50),n.isRefreshing=!1,n.refreshingPreviousChildrenIds={},n.currentDragAndDropData=null,n.currentDropTarget=null,n.currentDropTargets=null,n.currentDropDisposable=P.a.None,n.gestureDisposable=P.a.None,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.dragAndDropMouseY=null,n.highlightedItemWasDraggable=!1,n.onHiddenScrollTop=null,n._onDOMFocus=new A.a,n.onDOMFocus=n._onDOMFocus.event,n._onDOMBlur=new A.a,n._onDidScroll=new A.a,je.counter++,n.instance=je.counter;var i=void 0===e.options.horizontalScrollMode?2:e.options.horizontalScrollMode;n.horizontalScrolling=2!==i,n.context={dataSource:e.dataSource,renderer:e.renderer,controller:e.controller,dnd:e.dnd,filter:e.filter,sorter:e.sorter,tree:e.tree,accessibilityProvider:e.accessibilityProvider,options:e.options,cache:new Ne(e),horizontalScrolling:n.horizontalScrolling},n.modelListeners=[],n.viewListeners=[],n.items={},n.domNode=document.createElement("div"),n.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+n.instance,n.domNode.tabIndex=e.options.preventRootFocus?-1:0,n.styleElement=r.w(n.domNode),n.treeStyler=e.styler||new D(n.styleElement,"monaco-tree-instance-"+n.instance),n.domNode.setAttribute("role","tree"),n.context.options.ariaLabel&&n.domNode.setAttribute("aria-label",n.context.options.ariaLabel),n.context.options.alwaysFocused&&r.f(n.domNode,"focused"),n.context.options.paddingOnRow||r.f(n.domNode,"no-row-padding"),n.wrapper=document.createElement("div"),n.wrapper.className="monaco-tree-wrapper",n.scrollableElement=new de.b(n.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:i,vertical:void 0!==e.options.verticalScrollMode?e.options.verticalScrollMode:1,useShadows:e.options.useShadows}),n.scrollableElement.onScroll((function(e){n.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),n._onDidScroll.fire()})),J.i?(n.wrapper.style.msTouchAction="none",n.wrapper.style.msContentZooming="none"):n.gestureDisposable=ee.b.addTarget(n.wrapper),n.rowsContainer=document.createElement("div"),n.rowsContainer.className="monaco-tree-rows",e.options.showTwistie&&(n.rowsContainer.className+=" show-twisties");var o=r.Z(n.domNode);return n.viewListeners.push(o.onDidFocus((function(){return n.onFocus()}))),n.viewListeners.push(o.onDidBlur((function(){return n.onBlur()}))),n.viewListeners.push(o),n.viewListeners.push(r.j(n.domNode,"keydown",(function(e){return n.onKeyDown(e)}))),n.viewListeners.push(r.j(n.domNode,"keyup",(function(e){return n.onKeyUp(e)}))),n.viewListeners.push(r.j(n.domNode,"mousedown",(function(e){return n.onMouseDown(e)}))),n.viewListeners.push(r.j(n.domNode,"mouseup",(function(e){return n.onMouseUp(e)}))),n.viewListeners.push(r.j(n.wrapper,"auxclick",(function(e){e&&1===e.button&&n.onMouseMiddleClick(e)}))),n.viewListeners.push(r.j(n.wrapper,"click",(function(e){return n.onClick(e)}))),n.viewListeners.push(r.j(n.domNode,"contextmenu",(function(e){return n.onContextMenu(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Tap,(function(e){return n.onTap(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Change,(function(e){return n.onTouchChange(e)}))),J.i&&(n.viewListeners.push(r.j(n.wrapper,"MSPointerDown",(function(e){return n.onMsPointerDown(e)}))),n.viewListeners.push(r.j(n.wrapper,"MSGestureTap",(function(e){return n.onMsGestureTap(e)}))),n.viewListeners.push(r.m(n.wrapper,"MSGestureChange",(function(e){return n.onThrottledMsGestureChange(e)}),(function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n})))),n.viewListeners.push(r.j(window,"dragover",(function(e){return n.onDragOver(e)}))),n.viewListeners.push(r.j(n.wrapper,"drop",(function(e){return n.onDrop(e)}))),n.viewListeners.push(r.j(window,"dragend",(function(e){return n.onDragEnd(e)}))),n.viewListeners.push(r.j(window,"dragleave",(function(e){return n.onDragOver(e)}))),n.wrapper.appendChild(n.rowsContainer),n.domNode.appendChild(n.scrollableElement.getDomNode()),t.appendChild(n.domNode),n.lastRenderTop=0,n.lastRenderHeight=0,n.didJustPressContextMenuKey=!1,n.currentDropTarget=null,n.currentDropTargets=[],n.shouldInvalidateDropReaction=!1,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.onRowsChanged(),n.layout(),n.setupMSGesture(),n.applyStyles(e.options),n}var Fe=n(490),Be=n(505),We=function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new C({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new O,this.filter=t.filter||new k,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new N,this.styler=t.styler},Ve={listFocusBackground:Fe.a.fromHex("#073655"),listActiveSelectionBackground:Fe.a.fromHex("#0E639C"),listActiveSelectionForeground:Fe.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Fe.a.fromHex("#094771"),listFocusAndSelectionForeground:Fe.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:Fe.a.fromHex("#3F3F46"),listHoverBackground:Fe.a.fromHex("#2A2D2E"),listDropBackground:Fe.a.fromHex("#383B3D")},ze=(He.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(He.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),He.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},He.prototype.layout=function(e,t){this.view.layout(e,t)},He.prototype.domFocus=function(){this.view.focus()},He.prototype.isDOMFocused=function(){return this.view.isFocused()},He.prototype.domBlur=function(){this.view.blur()},He.prototype.setInput=function(e){return this.model.setInput(e)},He.prototype.getInput=function(){return this.model.getInput()},He.prototype.expand=function(e){return this.model.expand(e)},He.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},He.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},He.prototype.isExpanded=function(e){return this.model.isExpanded(e)},He.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},He.prototype.getHighlight=function(){return this.model.getHighlight()},He.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},He.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},He.prototype.getSelection=function(){return this.model.getSelection()},He.prototype.clearSelection=function(e){this.model.setSelection([],e)},He.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},He.prototype.getFocus=function(){return this.model.getFocus()},He.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},He.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},He.prototype.focusParent=function(e){this.model.focusParent(e)},He.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},He.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},He.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},He.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},He.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},He.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},He.prototype.clearFocus=function(e){this.model.setFocus(null,e)},He.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},He);function He(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new A.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new A.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new A.f,this._onDidExpandItem=new A.f,this._onDidCollapseItem=new A.f,this._onDispose=new A.a,this.onDidDispose=this._onDispose.event,this.container=e,Object(Be.g)(n,Ve,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new We(this,t,n),this.model=new X(this.context),this.view=new Re(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}n(1360);var qe,Ue,Ke=(qe=function(e,t){return(qe=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){function n(){this.constructor=e}qe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ge={progressBarBackground:Fe.a.fromHex("#0E70C0")},Ye=(Ke(Ze,Ue=P.a),Ze.prototype.create=function(e){this.element=document.createElement("div"),Object(r.f)(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Object(r.f)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},Ze.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(r.Q)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},Ze.prototype.stop=function(){return this.doDone(!1)},Ze.prototype.doDone=function(e){var t=this;return Object(r.f)(this.element,"done"),Object(r.I)(this.element,"infinite")?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off(),this},Ze.prototype.hide=function(){Object(r.J)(this.element),this.showDelayedScheduler.cancel()},Ze.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},Ze.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}},Ze);function Ze(e,t){var n=Ue.call(this)||this;return n.options=t||Object.create(null),Object(Be.g)(n.options,Ge,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new ke.d((function(){return Object(r.X)(n.element)}),0)),n.create(e),n}var Xe,$e,Je=(Xe=function(e,t){return(Xe=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){function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Qe=(Je(et,$e=C),et.prototype.onContextMenu=function(e,t,n){return a.e?this.onLeftClick(e,t,n):$e.prototype.onContextMenu.call(this,e,t,n)},et);function et(){return null!==$e&&$e.apply(this,arguments)||this}var tt,nt={background:Fe.a.fromHex("#1E1E1E"),foreground:Fe.a.fromHex("#CCCCCC"),pickerGroupForeground:Fe.a.fromHex("#0097FB"),pickerGroupBorder:Fe.a.fromHex("#3F3F46"),widgetShadow:Fe.a.fromHex("#000000"),progressBarBackground:Fe.a.fromHex("#0E70C0")},it=s.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),ot=(Je(rt,tt=P.a),rt.prototype.getModel=function(){return this.model},rt.prototype.create=function(){var e=this;this.element=document.createElement("div"),r.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(r.j(this.element,r.d.CONTEXT_MENU,(function(e){return r.c.stop(e,!0)}))),this._register(r.j(this.element,r.d.FOCUS,(function(t){return e.gainingFocus()}),!0)),this._register(r.j(this.element,r.d.BLUR,(function(t){return e.loosingFocus(t)}),!0)),this._register(r.j(this.element,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);if(9===n.keyCode)r.c.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(r.c.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(r.c.stop(t,!0),i[0].focus())}}))),this.progressBar=this._register(new Ye(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),r.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new v.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:it,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(r.j(this.inputBox.inputElement,r.d.INPUT,(function(t){return e.onType()}))),this._register(r.j(this.inputBox.inputElement,r.d.KEY_DOWN,(function(t){var n=new ie.a(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){r.c.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}}))),this.resultCount=document.createElement("div"),r.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),r.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new ze(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new u(this),controller:new Qe({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new g(this,this.styles),filter:new p(this),accessibilityProvider:new d(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:s.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus((function(t){e.elementFocused(t.focus,t)}))),this._register(this.tree.onDidChangeSelection((function(t){if(t.selection&&0<t.selection.length){var n=t.payload&&t.payload.originalEvent instanceof ne.b?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1)}}))),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);if(e.quickNavigateConfiguration)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode);else if(3===n.keyCode){r.c.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t)}}))),this._register(r.j(this.treeContainer,r.d.KEY_UP,(function(t){var n=new ie.a(t),i=n.keyCode;if(e.quickNavigateConfiguration&&e.quickNavigateConfiguration.keybindings.some((function(e){var t=e.getParts(),o=t[0];return!(t[1]||(o.shiftKey&&4===i?n.ctrlKey||n.altKey||n.metaKey:!(o.altKey&&6===i||o.ctrlKey&&5===i||o.metaKey&&57===i)))}))){var o=e.tree.getFocus();o&&e.elementSelected(o,t)}}))),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}))),this.element},rt.prototype.style=function(e){this.styles=e,this.applyStyles()},rt.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():"",t=this.styles.background?this.styles.background.toString():"",n=this.styles.borderColor?this.styles.borderColor.toString():"",i=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.boxShadow=i?"0 5px 8px "+i:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},rt.prototype.shouldOpenInBackground=function(e){if(e instanceof ie.a){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},rt.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?r.J(this.helpText):r.X(this.helpText)),this.callbacks.onType(e)},rt.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext()}var r=this.tree.getFocus();1<i.length&&o===r&&(16===e||2===e&&t?this.tree.focusLast():18!==e&&(2!==e||t)||this.tree.focusFirst()),(r=this.tree.getFocus())&&this.tree.reveal(r)},rt.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var i={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,i)}},rt.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(0)},rt.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},rt.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(r.J(this.inputContainer),r.X(this.element),this.tree.domFocus()):(r.X(this.inputContainer),r.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||l.j(e)?r.J(this.helpText):r.X(this.helpText)),l.j(e)?this.doShowWithPrefix(e):(t&&t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},rt.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},rt.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},rt.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},rt.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then((function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&0<e.entries.length)),n.tree.setInput(e)})).then((function(){n.tree.layout();var i=e?e.entries.filter((function(t){return n.isElementVisible(e,t)})):[];n.updateResultCount(i.length),i.length&&n.autoFocus(e,i,t)}))},rt.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},rt.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),a=0,l=t;a<l.length;a++){var u=l[a],c=e.dataSource.getLabel(u)||"";if(i||0!==c.indexOf(r)?o||0!==c.toLowerCase().indexOf(s)||(o=u):i=u,i&&o)break}var d=i||o;if(d)return this.tree.setFocus(d),void this.tree.reveal(d,.5)}n.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):"number"==typeof n.autoFocusIndex?t.length>n.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?1<t.length&&this.tree.focusNth(1):n.autoFocusLastEntry&&1<t.length&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus()))},rt.prototype.getHeight=function(e){var t=this,n=e.renderer;if(!e){var i=n.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*i:0}var o,r=0;this.layoutDimensions&&this.layoutDimensions.height&&(o=.4*(this.layoutDimensions.height-50)),(!o||rt.MAX_ITEMS_HEIGHT<o)&&(o=rt.MAX_ITEMS_HEIGHT);for(var s=e.entries.filter((function(n){return t.isElementVisible(e,n)})),a=this.options.maxItemsToShow||s.length,l=0;l<a&&l<s.length;l++){var u=n.getHeight(s[l]);if(!(r+u<=o))break;r+=u}return r},rt.prototype.updateResultCount=function(e){this.resultCount.textContent=s.a({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",e)},rt.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,r.J(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?22*this.options.minItemsToShow:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),0===e?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(e))},rt.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||it))},rt.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),r.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout((function(){r.P(e.element,"content-changing")}),500)},rt.prototype.getInput=function(){return this.tree.getInput()},rt.prototype.isVisible=function(){return this.visible},rt.prototype.layout=function(e){this.layoutDimensions=e;var t=Math.min(.62*this.layoutDimensions.width,rt.MAX_WIDTH);this.element&&(this.element.style.width=t+"px",this.element.style.marginLeft="-"+t/2+"px",this.inputContainer.style.width=t-12+"px")},rt.prototype.gainingFocus=function(){this.isLoosingFocus=!1},rt.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&r.K(n,this.element)||(this.isLoosingFocus=!0,setTimeout((function(){t.isLoosingFocus&&!t.isDisposed&&(t.callbacks.onFocusLost&&t.callbacks.onFocusLost()||t.hide(1))}),0))}},rt.prototype.dispose=function(){tt.prototype.dispose.call(this),this.isDisposed=!0},rt.MAX_WIDTH=600,rt.MAX_ITEMS_HEIGHT=440,rt);function rt(e,t,n){var i=tt.call(this)||this;return i.isDisposed=!1,i.container=e,i.callbacks=t,i.options=n,i.styles=n||Object.create(null),Object(Be.g)(i.styles,nt,!1),i.model=null,i}var st=n(461),at=n(826),lt=(ut.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t)},ut.prototype.getId=function(){return ut.ID},ut.prototype.getDomNode=function(){return this.domNode},ut.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},ut.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new r.b(t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this)},ut.prototype.getPosition=function(){return this.visible?{preference:2}:null},ut.ID="editor.contrib.quickOpenEditorWidget",ut);function ut(e,t,n,i,o,r){this.codeEditor=e,this.themeService=r,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new ot(this.domNode,{onOk:t,onCancel:n,onType:i},{inputPlaceHolder:void 0,inputAriaLabel:o.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(at.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:st.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}var ct=n(451);n.d(t,"a",(function(){return mt}));var dt,ht=(dt=function(e,t){return(dt=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){function n(){this.constructor=e}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pt=(ft.get=function(e){return e.getContribution(ft.ID)},ft.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},ft.prototype.run=function(e){var t=this;function n(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus()}this.widget&&(this.widget.destroy(),this.widget=null),this.widget=new lt(this.editor,(function(){return n(!1)}),(function(){return n(!0)}),(function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))}),{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},ft.prototype.decorateLine=function(e,t){var n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var i=[{range:e,options:ft._RANGE_HIGHLIGHT_DECORATION}],o=t.deltaDecorations(n,i);this.rangeHighlightDecorationId=o[0]},ft.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},ft.ID="editor.controller.quickOpenController",ft._RANGE_HIGHLIGHT_DECORATION=o.a.register({className:"rangeHighlight",isWholeLine:!0}),ft=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,ct.c)],ft));function ft(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}var gt,mt=(ht(vt,gt=i.b),vt.prototype.getController=function(e){return pt.get(e)},vt.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},vt);function vt(e,t){var n=gt.call(this,t)||this;return n._inputAriaLabel=e,n}Object(i.h)(pt.ID,pt)},function(e,t,n){"use strict";var i,o,r=n(443),s=n(972),a=n(439),l=n(445),u=n(573),c=n(789),d=n(456),h=n(448),p=n(531),f=n(571),g=n(826),m=n(451),v=(n(1364),n(442)),y=n(701),b=n(888),_=n(459),w=n(973),C=n(686),S=n(760),O=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(x,o=Error),x);function x(e,t){return o.call(this,"TreeError ["+e+"] "+t)||this}var k=(E.prototype.map=function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t},E);function E(e){this.fn=e,this._map=new WeakMap}var N=n(700),L=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function D(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function M(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function T(e){return"boolean"==typeof e.collapsible}var I=(P.prototype.splice=function(e,t,n,i,o){var r,s=this;if(0===e.length)throw new O(this.user,"Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),l=a.parentNode,u=a.listIndex,c=a.revealed,d=a.visible,h=[],p=N.d.map(N.d.from(n),(function(e){return s.createTreeNode(e,l,l.visible?1:0,c,h,i)})),f=e[e.length-1],g=0,m=f;0<=m&&m<l.children.length;m--)if((x=l.children[m]).visible){g=x.visibleChildIndex;break}var v=[],y=0,b=0;N.d.forEach(p,(function(e){v.push(e),b+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+y++)}));for(var _=(r=l.children).splice.apply(r,L([f,t],v)),w=0,C=0,S=_;C<S.length;C++)(x=S[C]).visible&&w++;if(0!==w)for(m=f+v.length;m<l.children.length;m++){var x;(x=l.children[m]).visible&&(x.visibleChildIndex-=w)}if(l.visibleChildrenCount+=y-w,c&&d){var k=_.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(l,b-k),this.list.splice(u,k,h)}0<_.length&&o&&_.forEach((function e(t){o(t),t.children.forEach(e)})),this._onDidSplice.fire({insertedNodes:v,deletedNodes:_})},P.prototype.rerender=function(e){if(0===e.length)throw new O(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex;t.revealed&&this.list.splice(i,1,[n])},P.prototype.has=function(e){return this.hasTreeNode(e)},P.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,o=t.revealed;return i&&o?n:-1},P.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},P.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},P.prototype.setCollapsible=function(e,t){var n=this,i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);var o={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,o)}))},P.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},P.prototype.setCollapsed=function(e,t,n){var i=this,o=this.getTreeNode(e);void 0===t&&(t=!o.collapsed);var r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return i._setCollapseState(e,r)}))},P.prototype._setCollapseState=function(e,t){var n=this.getTreeNodeWithListIndex(e),i=n.node,o=n.listIndex,r=n.revealed,s=this._setListNodeCollapseState(i,o,r,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!T(t)&&i.collapsible&&!i.collapsed&&!t.recursive){for(var a=-1,l=0;l<i.children.length;l++)if(i.children[l].visible){if(-1<a){a=-1;break}a=l}-1<a&&this._setCollapseState(L(e,[a]),t)}return s},P.prototype._setListNodeCollapseState=function(e,t,n,i){var o=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!o)return o;var r=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),o},P.prototype._setNodeCollapseState=function(e,t,n){var i;if(e===this.root?i=!1:(T(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!T(t)&&t.recursive)for(var o=0,r=e.children;o<r.length;o++){var s=r[o];i=this._setNodeCollapseState(s,t,!0)||i}return i},P.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){for(var n=t.getTreeNode(e);n.parent;)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))},P.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},P.prototype.createTreeNode=function(e,t,n,i,o,r){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},l=this._filterNode(a,n);i&&o.push(a);var u=N.d.from(e.children),c=i&&0!==l&&!a.collapsed,d=N.d.map(u,(function(e){return s.createTreeNode(e,a,l,c,o,r)})),h=0,p=1;return N.d.forEach(d,(function(e){a.children.push(e),p+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),a.collapsible=a.collapsible||0<a.children.length,a.visibleChildrenCount=h,a.visible=2===l?0<h:1===l,a.visible?a.collapsed||(a.renderNodeCount=p):(a.renderNodeCount=0,i&&o.pop()),r&&r(a),a},P.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},P.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,i=e.children;n<i.length;n++){var o=i[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(o,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},P.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},P.prototype._updateNodeAfterFilterChange=function(e,t,n,i){var o;if(void 0===i&&(i=!0),e!==this.root){if(0===(o=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}var r=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{for(var a=0,l=0,u=e.children;l<u.length;l++){var c=u[l];s=this._updateNodeAfterFilterChange(c,o,n,i&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===o?s:1===o),e.visible?e.collapsed||(e.renderNodeCount+=n.length-r):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},P.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},P.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof n?(e.filterData=void 0,n?1:0):D(n)?(e.filterData=n.data,M(n.visibility)):(e.filterData=void 0,M(n))},P.prototype.hasTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return!0;var n=e[0],i=e.slice(1);return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])},P.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],i=e.slice(1);if(n<0||n>t.children.length)throw new O(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])},P.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,o=t.revealed,r=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new O(this.user,"Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:o,visible:r&&a.visible}},P.prototype.getParentNodeWithListIndex=function(e,t,n,i,o){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0);var r=e[0],s=e.slice(1);if(r<0||r>t.children.length)throw new O(this.user,"Invalid tree location");for(var a=0;a<r;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,o=o&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:o}:this.getParentNodeWithListIndex(s,t.children[r],n+1,i,o)},P.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},P.prototype.getNodeLocation=function(e){for(var t=[],n=e;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()},P.prototype.getParentNodeLocation=function(e){return 0===e.length?void 0:1===e.length?[]:Object(_.w)(e)[0]},P);function P(e,t,n,i){void 0===i&&(i={}),this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new v.c,this._onDidChangeCollapseState=new v.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new v.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new v.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}var A,R,j=n(453),F=n(452),B=n(553),W=n(962),V=n(822),z=(A=function(e,t){return(A=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){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),H=function(){return(H=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},q=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},U=(z(K,R=w.a),K);function K(e){var t=R.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function G(e){return e instanceof w.a?new U(e):e}var Y=(Z.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},Z.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},Z.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(G(e),t)},Z.prototype.onDragOver=function(e,t,n,i,o){var r=this;void 0===o&&(o=!0);var s=this.dnd.onDragOver(G(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(a&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(j.g)((function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0}),500)),"boolean"==typeof s||!s.accept||void 0===s.bubble||s.feedback)return o?s:{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[n]};if(1===s.bubble){var l=this.modelProvider(),u=l.getNodeLocation(t),c=l.getParentNodeLocation(u),d=l.getNode(c),h=c&&l.getListIndex(c);return this.onDragOver(e,d,h,i,!1)}var p=this.modelProvider(),f=p.getNodeLocation(t),g=p.getListIndex(f),m=p.getListRenderCount(f);return H(H({},s),{feedback:Object(_.u)(g,g+m)})},Z.prototype.drop=function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(G(e),t&&t.element,n,i)},Z.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},Z);function Z(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.a.None}var X,$,J=(Q.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},Q.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},Q.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},Q.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},Q);function Q(e){this.delegate=e}($=X=X||{}).None="none",$.OnHover="onHover",$.Always="always";var ee=(Object.defineProperty(te.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),te);function te(e,t){var n=this;void 0===t&&(t=[]),this._elements=t,this.onDidChange=v.b.forEach(e,(function(e){return n._elements=e}))}var ne=(ie.prototype.updateOptions=function(e){if(void 0===e&&(e={}),void 0!==e.indent&&(this.indent=Object(W.a)(e.indent,0,40)),void 0!==e.renderIndentGuides){var t=e.renderIndentGuides!==X.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new a.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)},ie.prototype.renderTemplate=function(e){var t=Object(r.q)(e,Object(r.a)(".monaco-tl-row")),n=Object(r.q)(t,Object(r.a)(".monaco-tl-indent")),i=Object(r.q)(t,Object(r.a)(".monaco-tl-twistie")),o=Object(r.q)(t,Object(r.a)(".monaco-tl-contents")),s=this.renderer.renderTemplate(o);return{container:e,indent:n,twistie:i,indentGuidesDisposable:a.a.None,templateData:s}},ie.prototype.renderElement=function(e,t,n,i){"number"==typeof i&&(this.renderedNodes.set(e,{templateData:n,height:i}),this.renderedElements.set(e.element,e));var o=ie.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=o+"px",n.indent.style.width=o+this.indent-16+"px",this.renderTwistie(e,n),"number"==typeof i&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,i)},ie.prototype.disposeElement=function(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"==typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},ie.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},ie.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},ie.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},ie.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||0<e.visibleChildrenCount)?(Object(r.g)(t.twistie,"codicon","codicon-chevron-down","collapsible"),Object(r.Y)(t.twistie,"collapsed",e.collapsed)):Object(r.Q)(t.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},ie.prototype.renderIndentGuides=function(e,t){var n=this;if(Object(r.t)(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){for(var i=new a.b,o=this.modelProvider(),s=e,l=function(){var e=o.getNodeLocation(s),l=o.getParentNodeLocation(e);if(!l)return"break";var c=o.getNode(l),d=Object(r.a)(".indent-guide",{style:"width: "+u.indent+"px"});u.activeIndentNodes.has(c)&&Object(r.f)(d,"active"),0===t.indent.childElementCount?t.indent.appendChild(d):t.indent.insertBefore(d,t.indent.firstElementChild),u.renderedIndentGuides.add(c,d),i.add(Object(a.h)((function(){return n.renderedIndentGuides.delete(c,d)}))),s=c},u=this;"break"!==l(););t.indentGuidesDisposable=i}},ie.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,i=this.modelProvider();e.forEach((function(e){var t=i.getNodeLocation(e);try{var o=i.getParentNodeLocation(t);e.collapsible&&0<e.children.length&&!e.collapsed?n.add(e):o&&n.add(i.getNode(o))}catch(e){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.P)(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.f)(e,"active")}))})),this.activeIndentNodes=n}},ie.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(a.f)(this.disposables)},ie.DefaultIndent=8,ie);function ie(e,t,n,i,o){void 0===o&&(o={}),this.renderer=e,this.modelProvider=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=ie.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new V.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.a.None,this.disposables=new a.b,this.templateId=e.templateId,this.updateOptions(o),v.b.map(n,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}var oe=(Object.defineProperty(re.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),re.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;if(0===("boolean"==typeof n?n?1:0:D(n)?M(n.visibility):n))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:S.a.Default,visibility:!0};var i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=i&&i.toString();if(void 0===o)return{data:S.a.Default,visibility:!0};var r=Object(S.d)(this._pattern,this._lowercasePattern,0,o,o.toLowerCase(),0,!0);return r?(this._matchCount++,{data:r,visibility:!0}):this.tree.options.filterOnType?2:{data:S.a.Default,visibility:!0}},re.prototype.reset=function(){this._totalCount=0,this._matchCount=0},re.prototype.dispose=function(){Object(a.f)(this.disposables)},re);function re(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.b,e.onWillRefilter(this.reset,this,this.disposables)}var se=(Object.defineProperty(ae.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(ae.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(ae.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),ae.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},ae.prototype.enable=function(){var e=this;if(!this._enabled){var t=v.b.chain(Object(C.a)(this.view.getHTMLElement(),"keydown")).filter((function(t){return!le(t.target)||t.target===e.filterOnTypeDomNode})).filter((function(e){return"Dead"!==e.key&&!/^Media/.test(e.key)})).map((function(e){return new y.a(e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(t){return e.keyboardNavigationDelegate.mightProducePrintableCharacter(t)||(0<e.pattern.length||e.triggered)&&(9===t.keyCode||1===t.keyCode)&&!t.altKey&&!t.ctrlKey&&!t.metaKey||1===t.keyCode&&(F.e?t.altKey&&!t.metaKey:t.ctrlKey)&&!t.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,n=Object(C.a)(this.clearDomNode,"click");v.b.chain(v.b.any(t,n)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},ae.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},ae.prototype.onEventOrInput=function(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(F.e?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},ae.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(function(e){return!S.a.isDefault(e.filterData)}));var n=this.tree.getFocus();if(0<n.length){var i=n[0];null===this.tree.getRelativeTop(i)&&this.tree.reveal(i,.5)}this.render(),e||(this.triggered=!1)},ae.prototype.onDragStart=function(){function e(){switch(c){case"nw":t.domNode.style.top="4px",t.domNode.style.left="4px";break;case"ne":t.domNode.style.top="4px",t.domNode.style.left=o-l-6+"px"}}var t=this,n=this.view.getHTMLElement(),i=Object(r.C)(n).left,o=n.clientWidth,s=o/2,l=this.domNode.clientWidth,u=new a.b,c=this.positionClassName;e(),Object(r.P)(this.domNode,c),Object(r.f)(this.domNode,"dragging"),u.add(Object(a.h)((function(){return Object(r.P)(t.domNode,"dragging")}))),Object(C.a)(document,"dragover")((function(t){t.preventDefault();var n=t.screenX-i;t.dataTransfer&&(t.dataTransfer.dropEffect="none"),c=n<s?"nw":"ne",e()}),null,u),Object(C.a)(this.domNode,"dragend")((function(){t.positionClassName=c,t.domNode.className="monaco-list-type-filter "+t.positionClassName,t.domNode.style.top="",t.domNode.style.left="",Object(a.f)(u)}),null,u),b.c.CurrentDragAndDropData=new b.b("vscode-ui"),u.add(Object(a.h)((function(){return b.c.CurrentDragAndDropData=void 0})))},ae.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},ae.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},ae.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(l.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(l.a)("enable filter on type","Enable Filter on Type")},ae.prototype.render=function(){var e=0<this.filter.totalCount&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(l.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(r.Y)(this.domNode,"no-matches",e),this.domNode.title=Object(l.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=16<this.pattern.length?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},ae.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||0<this.filter.totalCount&&this.filter.matchCount<=1||!S.a.isDefault(e.filterData)},ae.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(a.f)(this.disposables)},ae);function ae(e,t,n,i,o){this.tree=e,this.view=n,this.filter=i,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new v.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new v.a,this.enabledDisposables=new a.b,this.disposables=new a.b,this.domNode=Object(r.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(C.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(r.q)(n.getHTMLElement(),Object(r.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(r.q)(this.domNode,Object(r.a)("span.label"));var s=Object(r.q)(this.domNode,Object(r.a)(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(r.q)(s,Object(r.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(C.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(r.q)(s,Object(r.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(l.a)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}function le(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function ue(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function ce(e,t){t(e),e.children.forEach((function(e){return ce(e,t)}))}var de=(Object.defineProperty(he.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),he.prototype.set=function(e,t){Object(_.g)(this.nodes,e)||this._set(e,!1,t)},he.prototype._set=function(e,t,n){if(this.nodes=q(e),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}},he.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),q(this.elements)},he.prototype.getNodes=function(){return this.nodes},he.prototype.has=function(e){return this.nodeSet.has(e)},he.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var o=this.createNodeSet(),r=function(e){return o.delete(e)};return i.forEach((function(e){return ce(e,r)})),void this.set(Object(B.e)(o))}function s(e){return a.add(t.identityProvider.getId(e.element).toString())}var a=new Set;function l(e){return u.set(t.identityProvider.getId(e.element).toString(),e)}i.forEach((function(e){return ce(e,s)}));var u=new Map;n.forEach((function(e){return ce(e,l)}));for(var c=[],d=0,h=this.nodes;d<h.length;d++){var p=h[d],f=this.identityProvider.getId(p.element).toString();if(a.has(f)){var g=u.get(f);g&&c.push(g)}else c.push(p)}this._set(c,!0)},he.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var i=n[t];e.add(i)}return e},he);function he(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event}var pe,fe=(z(ge,pe=s.d),ge.prototype.onPointer=function(e){if(!le(e.browserEvent.target)){var t=e.element;if(!t)return pe.prototype.onPointer.call(this,e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return pe.prototype.onPointer.call(this,e);var n=Object(r.I)(e.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==e.browserEvent.detail&&!n)return pe.prototype.onPointer.call(this,e);var i;if((i="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!n)return pe.prototype.onPointer.call(this,e);if(t.collapsible){var o=this.tree.model,s=o.getNodeLocation(t),a=e.browserEvent.altKey;if(o.setCollapsed(s,void 0,a),i&&n)return}pe.prototype.onPointer.call(this,e)}},ge.prototype.onDoubleClick=function(e){Object(r.I)(e.browserEvent.target,"monaco-tl-twistie")||pe.prototype.onDoubleClick.call(this,e)},ge);function ge(e,t){var n=pe.call(this,e)||this;return n.tree=t,n}var me,ve=(z(ye,me=s.c),ye.prototype.createMouseController=function(e){return new fe(this,e.tree)},ye.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),me.prototype.splice.call(this,e,t,n),0!==n.length){var o=[],r=[];n.forEach((function(t,n){i.focusTrait.has(t)&&o.push(e+n),i.selectionTrait.has(t)&&r.push(e+n)})),0<o.length&&me.prototype.setFocus.call(this,Object(_.f)(q(me.prototype.getFocus.call(this),o))),0<r.length&&me.prototype.setSelection.call(this,Object(_.f)(q(me.prototype.getSelection.call(this),r)))}},ye.prototype.setFocus=function(e,t,n){var i=this;void 0===n&&(n=!1),me.prototype.setFocus.call(this,e,t),n||this.focusTrait.set(e.map((function(e){return i.element(e)})),t)},ye.prototype.setSelection=function(e,t,n){var i=this;void 0===n&&(n=!1),me.prototype.setSelection.call(this,e,t),n||this.selectionTrait.set(e.map((function(e){return i.element(e)})),t)},ye);function ye(e,t,n,i,o,r,s){var a=me.call(this,e,t,n,i,s)||this;return a.focusTrait=o,a.selectionTrait=r,a}var be=(Object.defineProperty(_e.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"onDidOpen",{get:function(){return v.b.map(this.view.onDidOpen,ue)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"openOnSingleClick",{get:function(){return void 0===this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"expandOnlyOnTwistieClick",{get:function(){return void 0!==this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),_e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=H(H({},this._options),e);for(var t=0,n=this.renderers;t<n.length;t++)n[t].updateOptions(e);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===X.Always)},Object.defineProperty(_e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),_e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(_e.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),_e.prototype.domFocus=function(){this.view.domFocus()},_e.prototype.layout=function(e,t){this.view.layout(e,t)},_e.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)},_e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},_e.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},_e.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},_e.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},_e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},_e.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},_e.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.selection.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setSelection(o,t,!0)},_e.prototype.getSelection=function(){return this.selection.get()},_e.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.focus.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setFocus(o,t,!0)},_e.prototype.focusNext=function(e,t,n,i){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===i&&(i=this.focusNavigationFilter),this.view.focusNext(e,t,n,i)},_e.prototype.getFocus=function(){return this.focus.get()},_e.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},_e.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},_e.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!0)){var o=this.model.getParentNodeLocation(i);if(!o)return;var r=this.model.getListIndex(o);this.view.reveal(r),this.view.setFocus([r])}}},_e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!1)){if(!n.children.some((function(e){return e.visible})))return;var o=this.view.getFocus()[0]+1;this.view.reveal(o),this.view.setFocus([o])}}},_e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,o)}},_e.prototype.dispose=function(){Object(a.f)(this.disposables),this.view.dispose()},_e);function _e(e,t,n,i,o){var l=this;void 0===o&&(o={}),this._options=o,this.eventBufferer=new v.c,this.disposables=new a.b,this._onWillRefilter=new v.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new v.a;var u,c,d,h=new J(n),p=new v.f,f=new v.f,g=new ee(f.event);this.renderers=i.map((function(e){return new ne(e,(function(){return l.model}),p.event,g,o)}));for(var m=0,b=this.renderers;m<b.length;m++){var w=b[m];this.disposables.add(w)}o.keyboardNavigationLabelProvider&&(u=new oe(this,o.keyboardNavigationLabelProvider,o.filter),o=H(H({},o),{filter:u}),this.disposables.add(u)),this.focus=new de(o.identityProvider),this.selection=new de(o.identityProvider),this.view=new ve(e,t,h,this.renderers,this.focus,this.selection,H(H({},(c=function(){return l.model},(d=o)&&H(H({},d),{identityProvider:d.identityProvider&&{getId:function(e){return d.identityProvider.getId(e.element)}},dnd:d.dnd&&new Y(c,d.dnd),multipleSelectionController:d.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return d.multipleSelectionController.isSelectionSingleChangeEvent(H(H({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return d.multipleSelectionController.isSelectionRangeChangeEvent(H(H({},e),{element:e.element}))}},accessibilityProvider:d.accessibilityProvider&&H(H({},d.accessibilityProvider),{getAriaLabel:function(e){return d.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth},getActiveDescendantId:d.accessibilityProvider.getActiveDescendantId&&function(e){return d.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:d.keyboardNavigationLabelProvider&&H(H({},d.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return d.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:d.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(e){var t=c(),n=t.getNodeLocation(e),i=t.getParentNodeLocation(n);return t.getNode(i).visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1},isChecked:d.ariaProvider&&d.ariaProvider.isChecked?function(e){return d.ariaProvider.isChecked(e.element)}:void 0,getRole:d.ariaProvider&&d.ariaProvider.getRole?function(e){return d.ariaProvider.getRole(e.element)}:void 0}}))),{tree:this})),this.model=this.createModel(e,this.view,o),p.input=this.model.onDidChangeCollapseState;var C=v.b.forEach(this.model.onDidSplice,(function(e){l.eventBufferer.bufferEvents((function(){l.focus.onDidModelSplice(e),l.selection.onDidModelSplice(e)}))}));if(C((function(){return null}),null,this.disposables),f.input=v.b.chain(v.b.any(C,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){for(var e=new Set,t=0,n=l.focus.getNodes();t<n.length;t++){var i=n[t];e.add(i)}for(var o=0,r=l.selection.getNodes();o<r.length;o++)i=r[o],e.add(i);return Object(_.n)(e)})).event,!1!==o.keyboardSupport){var S=v.b.chain(this.view.onKeyDown).filter((function(e){return!le(e.target)})).map((function(e){return new y.a(e)}));S.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),S.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),S.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){var O=o.keyboardNavigationDelegate||s.a;this.typeFilterController=new se(this,this.model,this.view,u,O),this.focusNavigationFilter=function(e){return l.typeFilterController.shouldAllowFocus(e)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(r.w)(this.view.getHTMLElement()),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===X.Always)}var we=function(){return(we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ce=(Se.prototype.setChildren=function(e,t,n,i){var o=this.getElementLocation(e);this._setChildren(o,this.preserveCollapseState(t),n,i)},Se.prototype._setChildren=function(e,t,n,i){var o=this,r=new Set,s=new Set;this.model.splice(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(e,[0]),Number.MAX_VALUE,t,(function(e){if(r.add(e.element),o.nodes.set(e.element,e),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.add(t),o.nodesByIdentity.set(t,e)}n&&n(e)}),(function(e){if(r.has(e.element)||o.nodes.delete(e.element),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.has(t)||o.nodesByIdentity.delete(t)}i&&i(e)}))},Se.prototype.preserveCollapseState=function(e){var t=this,n=e?Object(N.f)(e):N.d.empty();return this.sorter&&(n=N.d.fromArray(Object(_.r)(N.d.collect(n),this.sorter.compare.bind(this.sorter)))),N.d.map(n,(function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var i=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(i)}if(!n)return we(we({},e),{children:t.preserveCollapseState(e.children)});var o="boolean"==typeof e.collapsible?e.collapsible:n.collapsible,r=void 0!==e.collapsed?e.collapsed:n.collapsed;return we(we({},e),{collapsible:o,collapsed:r,children:t.preserveCollapseState(e.children)})}))},Se.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},Se.prototype.has=function(e){return this.nodes.has(e)},Se.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},Se.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},Se.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},Se.prototype.setCollapsible=function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)},Se.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},Se.prototype.setCollapsed=function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)},Se.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},Se.prototype.refilter=function(){this.model.refilter()},Se.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return t},Se.prototype.getNodeLocation=function(e){return e.element},Se.prototype.getParentNodeLocation=function(e){if(null===e)throw new O(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);var n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return this.model.getNode(i).element},Se.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)},Se);function Se(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new I(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare:function(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}var Oe=function(){return(Oe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function xe(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:N.d.map(N.d.from(e.children),xe),collapsible:e.collapsible,collapsed:e.collapsed}}function ke(e){for(var t,n,i=[e.element],o=e.incompressible||!1;t=N.d.from(e.children),1===(n=N.d.collect(t,2)).length&&!(e=n[0]).incompressible;)i.push(e.element);return{element:{elements:i,incompressible:o},children:N.d.map(N.d.concat(N.d.fromArray(n),t),ke),collapsible:e.collapsible,collapsed:e.collapsed}}function Ee(e){return function e(t,n){var i;return void 0===n&&(n=0),i=n<t.element.elements.length-1?N.d.single(e(t,n+1)):N.d.map(N.d.from(t.children),(function(t){return e(t,0)})),0===n&&t.element.incompressible?{element:t.element.elements[n],children:i,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[n],children:i,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}var Ne=(Object.defineProperty(Le.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Le.prototype.setChildren=function(e,t){if(null!==e){var n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");var i=this.model.getNode(n),o=this.model.getParentNodeLocation(n),r=this.model.getNode(o),s=function e(t,n,i){return t.element===n?Oe(Oe({},t),{children:i}):Oe(Oe({},t),{children:N.d.map(N.d.from(t.children),(function(t){return e(t,n,i)}))})}(Ee(i),e,N.d.from(t)),a=(this.enabled?ke:xe)(s),l=r.children.map((function(e){return e===i?a:e}));this._setChildren(r.element,l)}else{var u=N.d.map(N.d.from(t),this.enabled?ke:xe);this._setChildren(null,u)}},Le.prototype.setCompressionEnabled=function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode(),n=N.d.from(t.children),i=N.d.map(n,Ee),o=N.d.map(i,e?ke:xe);this._setChildren(null,o)}},Le.prototype._setChildren=function(e,t){var n=this,i=new Set;this.model.setChildren(e,t,(function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.add(r),n.nodes.set(r,e.element)}}),(function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.has(r)||n.nodes.delete(r)}}))},Le.prototype.has=function(e){return this.nodes.has(e)},Le.prototype.getListIndex=function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)},Le.prototype.getListRenderCount=function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)},Le.prototype.getNode=function(e){if(void 0===e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)},Le.prototype.getNodeLocation=function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]},Le.prototype.getParentNodeLocation=function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]},Le.prototype.isCollapsible=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsible(t)},Le.prototype.setCollapsible=function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)},Le.prototype.isCollapsed=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)},Le.prototype.setCollapsed=function(e,t,n){var i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)},Le.prototype.expandTo=function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)},Le.prototype.rerender=function(e){var t=this.getCompressedNode(e);this.model.rerender(t)},Le.prototype.refilter=function(){this.model.refilter()},Le.prototype.getCompressedNode=function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return t},Le);function Le(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.model=new Ce(e,t,n),this.enabled=void 0===n.compressionEnabled||n.compressionEnabled}function De(e){return e[e.length-1]}var Me=(Object.defineProperty(Te.prototype,"element",{get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"children",{get:function(){var e=this;return this.node.children.map((function(t){return new Te(e.unwrapper,t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Te);function Te(e,t){this.unwrapper=e,this.node=t}var Ie=(Object.defineProperty(Pe.prototype,"onDidSplice",{get:function(){var e=this;return v.b.map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,i=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:i.map((function(t){return e.nodeMapper.map(t)}))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"onDidChangeCollapseState",{get:function(){var e=this;return v.b.map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,i=t.deep;return{node:e.nodeMapper.map(n),deep:i}}))},enumerable:!0,configurable:!0}),Pe.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Pe.prototype.setCompressionEnabled=function(e){this.model.setCompressionEnabled(e)},Pe.prototype.has=function(e){return this.model.has(e)},Pe.prototype.getListIndex=function(e){return this.model.getListIndex(e)},Pe.prototype.getListRenderCount=function(e){return this.model.getListRenderCount(e)},Pe.prototype.getNode=function(e){return this.nodeMapper.map(this.model.getNode(e))},Pe.prototype.getNodeLocation=function(e){return e.element},Pe.prototype.getParentNodeLocation=function(e){return this.model.getParentNodeLocation(e)},Pe.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},Pe.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},Pe.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},Pe.prototype.setCollapsed=function(e,t,n){return this.model.setCollapsed(e,t,n)},Pe.prototype.expandTo=function(e){return this.model.expandTo(e)},Pe.prototype.rerender=function(e){return this.model.rerender(e)},Pe.prototype.refilter=function(){return this.model.refilter()},Pe.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getNode(e)},Pe);function Pe(e,t,n){var i,o,r,s,a=this;function l(e){return a.elementMapper(e.elements)}void 0===n&&(n={}),this.elementMapper=n.elementMapper||De,this.nodeMapper=new k((function(e){return new Me(l,e)})),this.model=new Ne(e,(r=this.nodeMapper,s=t,{splice:function(e,t,n){s.splice(e,t,n.map((function(e){return r.map(e)})))}}),(i=l,Oe(Oe({},o=n),{sorter:o.sorter&&{compare:function(e,t){return o.sorter.compare(e.elements[0],t.elements[0])}},identityProvider:o.identityProvider&&{getId:function(e){return o.identityProvider.getId(i(e))}},filter:o.filter&&{filter:function(e,t){return o.filter.filter(i(e),t)}}})))}var Ae,Re,je=n(881),Fe=(Ae=function(e,t){return(Ae=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){function n(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},We=(Fe(Ve,Re=be),Object.defineProperty(Ve.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Ve.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Ve.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},Ve.prototype.hasElement=function(e){return this.model.has(e)},Ve.prototype.createModel=function(e,t,n){return new Ce(e,t,n)},Ve);function Ve(e,t,n,i,o){return void 0===o&&(o={}),Re.call(this,e,t,n,i,o)||this}var ze=(Object.defineProperty(He.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),He.prototype.renderTemplate=function(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}},He.prototype.renderElement=function(e,t,n,i){var o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,n.data,i))},He.prototype.disposeElement=function(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)},He.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.data)},He.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)},function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);3<r&&s&&Object.defineProperty(t,n,s)}([je.a],He.prototype,"compressedTreeNodeProvider",null),He);function He(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}var qe,Ue=(Fe(Ke,qe=We),Ke.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Ke.prototype.createModel=function(e,t,n){return new Ie(e,t,n)},Ke.prototype.updateOptions=function(e){void 0===e&&(e={}),qe.prototype.updateOptions.call(this,e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)},Ke.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getCompressedTreeNode(e)},Ke);function Ke(e,t,n,i,o){function r(){return l}void 0===o&&(o={});var s,a,l=this,u=i.map((function(e){return new ze(r,e)}));return l=qe.call(this,e,t,n,u,(s=r,(a=o)&&Be(Be({},a),{keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(e){var t;try{t=s().getCompressedTreeNode(e)}catch(t){return a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e)}return 1===t.element.elements.length?a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):a.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements)}}})))||this}var Ge,Ye=n(446),Ze=(Ge=function(e,t){return(Ge=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){function n(){this.constructor=e}Ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xe=function(){return(Xe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$e=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Je=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};function Qe(e){return Xe(Xe({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function et(e,t){return!!t.parent&&(t.parent===e||et(e,t.parent))}var tt=(Object.defineProperty(nt.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new nt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),nt);function nt(e){this.node=e}var it=(ot.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},ot.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},ot.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},ot.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},ot.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},ot.prototype.dispose=function(){this.renderedNodes.clear()},ot);function ot(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}function rt(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}var st,at=(Ze(lt,st=w.a),lt);function lt(e){var t=st.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function ut(e){return e instanceof w.a?new at(e):e}var ct=(dt.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},dt.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},dt.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ut(e),t)},dt.prototype.onDragOver=function(e,t,n,i,o){return void 0===o&&(o=!0),this.dnd.onDragOver(ut(e),t&&t.element,n,i)},dt.prototype.drop=function(e,t,n,i){this.dnd.drop(ut(e),t&&t.element,n,i)},dt.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},dt);function dt(e){this.dnd=e}function ht(e){return e&&Xe(Xe({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new ct(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Xe(Xe({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Xe(Xe({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Xe(Xe({},e.accessibilityProvider),{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)},getAriaLevel:e.accessibilityProvider.getAriaLevel&&function(t){return e.accessibilityProvider.getAriaLevel(t.element)},getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&function(t){return e.accessibilityProvider.getActiveDescendantId(t.element)}}),filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Xe(Xe({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:e.ariaProvider&&{getPosInSet:function(t,n){return e.ariaProvider.getPosInSet(t.element,n)},getSetSize:function(t,n,i){return e.ariaProvider.getSetSize(t.element,n,i)},getRole:e.ariaProvider.getRole?function(t){return e.ariaProvider.getRole(t.element)}:void 0,isChecked:e.ariaProvider.isChecked?function(t){var n;return(null===(n=e.ariaProvider)||void 0===n?void 0:n.isChecked)(t.element)}:void 0},additionalScrollHeight:e.additionalScrollHeight})}function pt(e,t){t(e),e.children.forEach((function(e){return pt(e,t)}))}var ft=(Object.defineProperty(gt.prototype,"onDidChangeFocus",{get:function(){return v.b.map(this.tree.onDidChangeFocus,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidChangeSelection",{get:function(){return v.b.map(this.tree.onDidChangeSelection,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidOpen",{get:function(){return v.b.map(this.tree.onDidOpen,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),gt.prototype.createTree=function(e,t,n,i,o){var r=this,s=new J(n),a=i.map((function(e){return new it(e,r.nodeMapper,r._onDidChangeNodeSlowState.event)})),l=ht(o)||{};return new We(e,t,s,a,l)},gt.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},gt.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(gt.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),gt.prototype.domFocus=function(){this.tree.domFocus()},gt.prototype.layout=function(e,t){this.tree.layout(e,t)},gt.prototype.style=function(e){this.tree.style(e)},gt.prototype.getInput=function(){return this.root.element},gt.prototype.setInput=function(e,t){return $e(this,void 0,void 0,(function(){var n;return Je(this,(function(i){switch(i.label){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this._updateChildren(e,!0,!1,n)];case 1:return i.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},gt.prototype._updateChildren=function(e,t,n,i){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),void 0===n&&(n=!1),$e(this,void 0,void 0,(function(){var o;return Je(this,(function(r){switch(r.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return r.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return o=this.getDataNode(e),[4,this.refreshAndRenderNode(o,t,i)];case 4:if(r.sent(),n)try{this.tree.rerender(o)}catch(r){}return[2]}}))}))},gt.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},gt.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},gt.prototype.expand=function(e,t){return void 0===t&&(t=!1),$e(this,void 0,void 0,(function(){var n,i;return Je(this,(function(o){switch(o.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:o.sent(),o.label=3;case 3:return n=this.getDataNode(e),this.tree.hasElement(n)&&!this.tree.isCollapsible(n)?[2,!1]:n.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 5:o.sent(),o.label=6;case 6:return n===this.root||n.refreshPromise||this.tree.isCollapsed(n)?(i=this.tree.expand(n===this.root?null:n,t),n.refreshPromise?[4,this.root.refreshPromise]:[3,9]):[2,!1];case 7:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 8:o.sent(),o.label=9;case 9:return[2,i]}}))}))},gt.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(i,t)},gt.prototype.getSelection=function(){return this.tree.getSelection().map((function(e){return e.element}))},gt.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(i,t)},gt.prototype.getFocus=function(){return this.tree.getFocus().map((function(e){return e.element}))},gt.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},gt.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new O(this.user,"Data tree node not found: "+e);return t},gt.prototype.refreshAndRenderNode=function(e,t,n){return $e(this,void 0,void 0,(function(){return Je(this,(function(i){switch(i.label){case 0:return[4,this.refreshNode(e,t,n)];case 1:return i.sent(),this.render(e,n),[2]}}))}))},gt.prototype.refreshNode=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o=this;return Je(this,(function(r){return this.subTreeRefreshPromises.forEach((function(r,s){var a,l;i||(a=s)!==(l=e)&&!et(a,l)&&!et(l,a)||(i=r.then((function(){return o.refreshNode(e,t,n)})))})),i?[2,i]:[2,this.doRefreshSubTree(e,t,n)]}))}))},gt.prototype.doRefreshSubTree=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o,r=this;return Je(this,(function(s){switch(s.label){case 0:e.refreshPromise=new Promise((function(e){return i=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,r.subTreeRefreshPromises.delete(e)})),s.label=1;case 1:return s.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return o=s.sent(),e.stale=!1,[4,Promise.all(o.map((function(e){return r.doRefreshSubTree(e,t,n)})))];case 3:return s.sent(),[3,5];case 4:return i(),[7];case 5:return[2]}}))}))},gt.prototype.doRefreshNode=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o,r,s,a=this;return Je(this,(function(l){switch(l.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),i=e.hasChildren?((o=Object(j.l)(800)).then((function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),this.doGetChildren(e).finally((function(){return o.cancel()}))):Promise.resolve([]),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,i];case 2:return r=l.sent(),[2,this.setChildren(e,r,t,n)];case 3:if(s=l.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(Ye.d)(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},gt.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Object(j.f)((function(){return $e(t,void 0,void 0,(function(){var t;return Je(this,(function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),[2,this.processChildren(t)]}}))}))})),this.refreshPromises.set(e,n),n.finally((function(){return t.refreshPromises.delete(e)})))},gt.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(Ye.e))},gt.prototype.setChildren=function(e,t,n,i){var o,r=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,l=0,u=e.children;l<u.length;l++){var c=u[l];if(s.set(c.element,c),this.identityProvider){var d=this.tree.isCollapsed(c);a.set(c.id,{node:c,collapsed:d})}}for(var h=[],p=t.map((function(t){var o=!!r.dataSource.hasChildren(t);if(!r.identityProvider){var l=Qe({element:t,parent:e,hasChildren:o});return o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l}var u=r.identityProvider.getId(t).toString(),c=a.get(u);if(c)return l=c.node,s.delete(l.element),r.nodes.delete(l.element),r.nodes.set(t,l),l.element=t,l.hasChildren=o,n?c.collapsed?(l.children.forEach((function(e){return pt(e,(function(e){return r.nodes.delete(e.element)}))})),l.children.splice(0,l.children.length),l.stale=!0):h.push(l):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l;var d=Qe({element:t,parent:e,id:u,hasChildren:o});return i&&i.viewState.focus&&-1<i.viewState.focus.indexOf(u)&&i.focus.push(d),i&&i.viewState.selection&&-1<i.viewState.selection.indexOf(u)&&i.selection.push(d),i&&i.viewState.expanded&&-1<i.viewState.expanded.indexOf(u)?h.push(d):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(d.collapsedByDefault=!1,h.push(d)),d})),f=0,g=Object(B.e)(s);f<g.length;f++)pt(g[f],(function(e){return r.nodes.delete(e.element)}));for(var m=0,v=p;m<v.length;m++)c=v[m],this.nodes.set(c.element,c);return(o=e.children).splice.apply(o,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}([0,e.children.length],p)),e!==this.root&&this.autoExpandSingleChildren&&1===p.length&&0===h.length&&(p[0].collapsedByDefault=!1,h.push(p[0])),h},gt.prototype.render=function(e,t){var n=this,i=e.children.map((function(e){return n.asTreeElement(e,t)}));this.tree.setChildren(e===this.root?null:e,i),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()},gt.prototype.asTreeElement=function(e,t){var n,i=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&-1<t.viewState.expanded.indexOf(e.id))&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?N.d.map(N.d.fromArray(e.children),(function(e){return i.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})},gt.prototype.processChildren=function(e){return this.sorter&&e.sort(this.sorter.compare.bind(this.sorter)),e},gt.prototype.dispose=function(){this.disposables.dispose()},gt);function gt(e,t,n,i,o,r){void 0===r&&(r={}),this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new v.a,this._onDidChangeNodeSlowState=new v.a,this.nodeMapper=new k((function(e){return new tt(e)})),this.disposables=new a.b,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=void 0!==r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,n,i,r),this.root=Qe({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Xe(Xe({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}var mt=(Object.defineProperty(vt.prototype,"element",{get:function(){return{elements:this.node.element.elements.map((function(e){return e.element})),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new vt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),vt);function vt(e){this.node=e}var yt=(bt.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},bt.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},bt.prototype.renderCompressedElements=function(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},bt.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},bt.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},bt.prototype.disposeCompressedElements=function(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},bt.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},bt.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(a.f)(this.disposables)},bt);function bt(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}var _t,wt=(Ze(Ct,_t=ft),Ct.prototype.createTree=function(e,t,n,i,o){var r,s,a=this,l=new J(n),u=i.map((function(e){return new yt(e,a.nodeMapper,(function(){return a.compressibleNodeMapper}),a._onDidChangeNodeSlowState.event)})),c=(s=(r=o)&&ht(r))&&Xe(Xe({},s),{keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&Xe(Xe({},s.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(e){return r.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map((function(e){return e.element})))}})})||{};return new Ue(e,t,l,u,c)},Ct.prototype.asTreeElement=function(e,t){return Xe({incompressible:this.compressionDelegate.isIncompressible(e.element)},_t.prototype.asTreeElement.call(this,e,t))},Ct.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},Ct.prototype.render=function(e,t){var n=this;if(!this.identityProvider)return _t.prototype.render.call(this,e,t);function i(e){return n.identityProvider.getId(e).toString()}function o(e){for(var t=new Set,o=0,r=e;o<r.length;o++){var s=r[o],a=n.tree.getCompressedTreeNode(s===n.root?null:s);if(a.element)for(var l=0,u=a.element.elements;l<u.length;l++){var c=u[l];t.add(i(c.element))}}return t}var r=o(this.tree.getSelection()),s=o(this.tree.getFocus());_t.prototype.render.call(this,e,t);var a=this.getSelection(),l=!1,u=this.getFocus(),c=!1;!function e(t){var n=t.element;if(n)for(var o=0;o<n.elements.length;o++){var d=i(n.elements[o].element),h=n.elements[n.elements.length-1].element;r.has(d)&&-1===a.indexOf(h)&&(a.push(h),l=!0),s.has(d)&&-1===u.indexOf(h)&&(u.push(h),c=!0)}t.children.forEach(e)}(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),c&&this.setFocus(u)},Ct.prototype.processChildren=function(e){var t=this;return this.filter&&(e=e.filter((function(e){var n,i="boolean"==typeof(n=t.filter.filter(e,1))?n?1:0:D(n)?M(n.visibility):M(n);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),_t.prototype.processChildren.call(this,e)},Ct);function Ct(e,t,n,i,o,r,s){void 0===s&&(s={});var a=_t.call(this,e,t,n,o,r,s)||this;return a.compressionDelegate=i,a.compressibleNodeMapper=new k((function(e){return new mt(e)})),a.filter=s.filter,a}var St,Ot,xt=((St=function(e,t){return(St=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){function n(){this.constructor=e}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(kt,Ot=be),kt.prototype.createModel=function(e,t,n){return new Ce(e,t,n)},kt);function kt(e,t,n,i,o,r){void 0===r&&(r={});var s=Ot.call(this,e,t,n,i,r)||this;return s.user=e,s.dataSource=o,s.identityProvider=r.identityProvider,s}var Et=n(759);n.d(t,"a",(function(){return Pt})),n.d(t,"b",(function(){return At})),n.d(t,"d",(function(){return Bt})),n.d(t,"c",(function(){return gn}));var Nt,Lt,Dt=(Nt=function(e,t){return(Nt=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){function n(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Mt=function(){return(Mt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Tt=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},It=function(e,t){return function(n,i){t(n,i,e)}},Pt=Object(h.c)("listService"),At=(Object.defineProperty(Rt.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),Rt.prototype.register=function(e,t){var n=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var i=new s.b(Object(r.w)(),"");this.disposables.add(Object(g.b)(i,this._themeService))}if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var o={widget:e,extraContextKeys:t};return this.lists.push(o),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(a.e)(e.onDidFocus((function(){return n._lastFocusedWidget=e})),Object(a.h)((function(){return n.lists.splice(n.lists.indexOf(o),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==o})),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})))},Rt.prototype.dispose=function(){this.disposables.dispose()},Rt=Tt([It(0,m.c)],Rt));function Rt(e){this._themeService=e,this.disposables=new a.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}var jt=new d.d("listFocus",!0),Ft=new d.d("listSupportsMultiselect",!0),Bt=d.a.and(jt,d.a.not("inputFocus")),Wt=new d.d("listHasSelectionOrFocus",!1),Vt=new d.d("listDoubleSelection",!1),zt=new d.d("listMultiSelection",!1),Ht=new d.d("listSupportsKeyboardNavigation",!0),qt="listAutomaticKeyboardNavigation",Ut=new d.d(qt,!0),Kt=!1,Gt="workbench.list.multiSelectModifier",Yt="workbench.list.openMode",Zt="workbench.list.horizontalScrolling",Xt="workbench.list.keyboardNavigation",$t="workbench.list.automaticKeyboardNavigation",Jt="workbench.tree.indent",Qt="workbench.tree.renderIndentGuides";function en(e){return"alt"===e.getValue(Gt)}function tn(e){return"doubleClick"!==e.getValue(Yt)}var nn,on=(Dt(rn,nn=a.a),rn.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Gt)&&(e.useAltAsMultipleSelectionModifier=en(e.configurationService))})))},rn.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(s.f)(e)},rn.prototype.isSelectionRangeChangeEvent=function(e){return Object(s.e)(e)},rn);function rn(e){var t=nn.call(this)||this;return t.configurationService=e,t.useAltAsMultipleSelectionModifier=en(e),t.registerListeners(),t}var sn,an,ln,un=(Dt(cn,sn=a.a),cn.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Yt)&&(e.openOnSingleClick=tn(e.configurationService))})))},cn.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(t||1===e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},cn);function cn(e,t){var n=sn.call(this)||this;return n.configurationService=e,n.existingOpenController=t,n.openOnSingleClick=tn(e),n.registerListeners(),n}function dn(e,t,n,i,o,r,s,a,l,u,c){var d=this,h=yn(t,o,r,l,u,c),p=h.options,f=h.getAutomaticKeyboardNavigation,g=h.disposable;return(d=an.call(this,e,t,n,i,p)||this).disposables.add(g),d.internals=new bn(d,p,f,o.overrideStyles,r,s,a,l,c),d.disposables.add(d.internals),d}function hn(e,t,n,i,o,r,s,a,l,u,c,d){var h=this,p=yn(t,r,s,u,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=ln.call(this,e,t,n,i,o,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,s,a,l,u,d),h.disposables.add(h.internals),h}Dt(dn,an=We),dn=Tt([It(5,d.c),It(6,Pt),It(7,m.c),It(8,u.a),It(9,p.a),It(10,Et.b)],dn),Dt(hn,ln=xt),hn.prototype.updateOptions=function(e){void 0===e&&(e={}),ln.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},hn=Tt([It(6,d.c),It(7,Pt),It(8,m.c),It(9,u.a),It(10,p.a),It(11,Et.b)],hn);var pn,fn,gn=(Dt(mn,pn=ft),mn.prototype.updateOptions=function(e){void 0===e&&(e={}),pn.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},mn=Tt([It(6,d.c),It(7,Pt),It(8,m.c),It(9,u.a),It(10,p.a),It(11,Et.b)],mn));function mn(e,t,n,i,o,r,s,a,l,u,c,d){var h=this,p=yn(t,r,s,u,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=pn.call(this,e,t,n,i,o,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,s,a,l,u,d),h.disposables.add(h.internals),h}function vn(e,t,n,i,o,r,s,a,l,u,c,d,h){var p=this,f=yn(t,s,a,c,d,h),g=f.options,m=f.getAutomaticKeyboardNavigation,v=f.disposable;return(p=fn.call(this,e,t,n,i,o,r,g)||this).disposables.add(v),p.internals=new bn(p,g,m,s.overrideStyles,a,l,u,c,h),p.disposables.add(p.internals),p}function yn(e,t,n,i,o,r){function s(){var e=n.getContextKeyValue(qt);return e&&i.getValue($t)}Ht.bindTo(n),Kt||(Ut.bindTo(n),Kt=!0);var l,c,d,h,p=r.isScreenReaderOptimized()?"simple":i.getValue(Xt),f=void 0!==t.horizontalScrolling?t.horizontalScrolling:(l=i,Object(u.f)(l,Zt,"workbench.tree.horizontalScrolling")),g=tn(i),m=function(e,t,n){var i=new a.b,o=Mt({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var r=new on(t);o.multipleSelectionController=r,i.add(r)}var s=new un(t,e.openController);return o.openController=s,i.add(s),o.keyboardNavigationDelegate={mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}},[o,i]}(t,i,o),v=m[0],y=m[1],b=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:y,options:Mt(Mt({keyboardSupport:!1},v),{indent:i.getValue(Jt),renderIndentGuides:i.getValue(Qt),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===p,filterOnType:"filter"===p,horizontalScrolling:f,openOnSingleClick:g,keyboardNavigationEventFilter:(c=e,d=o,h=!1,function(e){if(h)return h=!1;var t=d.softDispatch(e,c);return t&&t.enterChord?!(h=!0):!(h=!1)}),additionalScrollHeight:b,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements})}}Dt(vn,fn=wt),vn=Tt([It(7,d.c),It(8,Pt),It(9,m.c),It(10,u.a),It(11,p.a),It(12,Et.b)],vn);var bn=(_n.prototype.updateStyleOverrides=function(e){Object(a.f)(this.styler),this.styler=e?Object(g.b)(this.tree,this.themeService,e):a.a.None},_n.prototype.dispose=function(){this.disposables=Object(a.f)(this.disposables),this.styler=Object(a.f)(this.styler)},_n=Tt([It(4,d.c),It(5,Pt),It(6,m.c),It(7,u.a),It(8,Et.b)],_n));function _n(e,t,n,i,o,r,s,a,l){var u,c,d=this;this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=(u=e,c=o.createScoped(u.getHTMLElement()),jt.bindTo(c),c),Ft.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=Wt.bindTo(this.contextKeyService),this.hasDoubleSelection=Vt.bindTo(this.contextKeyService),this.hasMultiSelection=zt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=en(a);var h=new Set;function p(){var t=l.isScreenReaderOptimized()?"simple":a.getValue(Xt);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})}h.add(qt),this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length),d.hasMultiSelection.set(1<t.length),d.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length)})),a.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(Yt)&&e.updateOptions({openOnSingleClick:tn(a)}),t.affectsConfiguration(Gt)&&(d._useAltAsMultipleSelectionModifier=en(a)),t.affectsConfiguration(Jt)){var i=a.getValue(Jt);e.updateOptions({indent:i})}if(t.affectsConfiguration(Qt)){var o=a.getValue(Qt);e.updateOptions({renderIndentGuides:o})}t.affectsConfiguration(Xt)&&p(),t.affectsConfiguration($t)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(h)&&e.updateOptions({automaticKeyboardNavigation:n()})})),l.onDidChangeScreenReaderOptimized((function(){return p()})))}f.a.as(c.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(l.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:((Lt={})[Gt]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(l.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(l.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(l.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Lt[Yt]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(l.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Lt[Zt]={type:"boolean",default:!1,description:Object(l.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Lt["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(l.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(l.a)("deprecated","This setting is deprecated, please use '{0}' instead.",Zt)},Lt[Jt]={type:"number",default:8,minimum:0,maximum:40,description:Object(l.a)("tree indent setting","Controls tree indentation in pixels.")},Lt[Qt]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(l.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Lt[Xt]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(l.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(l.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(l.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(l.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Lt[$t]={type:"boolean",default:!0,markdownDescription:Object(l.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Lt)})},function(e,t,n){"use strict";var i=n(0),o=n(199),r=n(25),s=n(12),a=n.n(s),l=n(198),u=n(23),c={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(c).filter((function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],h=c[d];function p(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function f(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.attachEvent&&e.detachEvent("on".concat(t),n)}function g(e){return!isNaN(parseFloat(e))&&isFinite(e)}var m=!("undefined"!=typeof window&&window.document&&window.document.createElement);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S={},O=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=_(e).call(this,t),(n=!i||"object"!==v(i)&&"function"!=typeof i?w(this):i).domFocus=function(){n.dom&&n.dom.focus()},n.removeStartHandler=function(e){1<e.touches.length||(n.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},n.removeMoveHandler=function(e){if(!(1<e.changedTouches.length)){var t=e.currentTarget,i=e.changedTouches[0].clientX-n.startPos.x,o=e.changedTouches[0].clientY-n.startPos.y;(t===n.maskDom||t===n.handlerDom||t===n.contentDom&&function e(t,n,i,o){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var r=Math.max(Math.abs(i),Math.abs(o))===Math.abs(o),s=Math.max(Math.abs(i),Math.abs(o))===Math.abs(i),a=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c="auto"===u.overflowY||"scroll"===u.overflowY,d="auto"===u.overflowX||"scroll"===u.overflowX,h=a&&c,p=l&&d;return!!(r&&(!h||h&&(n.scrollTop>=a&&o<0||n.scrollTop<=0&&0<o))||s&&(!p||p&&(n.scrollLeft>=l&&l<0||n.scrollLeft<=0&&0<l)))&&e(t,n.parentNode,i,o)}(t,e.target,i,o))&&e.preventDefault()}},n.transitionEnd=function(e){var t=e.target;f(t,h,n.transitionEnd),t.style.transition=""},n.onKeyDown=function(e){if(e.keyCode===u.a.ESC){var t=n.props.onClose;e.stopPropagation(),t&&t(e)}},n.onWrapperTransitionEnd=function(e){var t=n.props,i=t.open,o=t.afterVisibleChange;e.target===n.contentWrapper&&e.propertyName.match(/transform$/)&&(n.dom.style.transition="",!i&&n.getCurrentDrawerSome()&&(document.body.style.overflowX="",n.maskDom&&(n.maskDom.style.left="",n.maskDom.style.width="")),o&&o(!!i))},n.openLevelTransition=function(){var e=n.props,t=e.open,i=e.width,o=e.height,r=n.getHorizontalBoolAndPlacementName(),s=r.isHorizontal,a=r.placementName,l=n.contentDom?n.contentDom.getBoundingClientRect()[s?"width":"height"]:0,u=(s?i:o)||l;n.setLevelAndScrolling(t,a,u)},n.setLevelTransform=function(e,t,i,o){var r=n.props,s=r.placement,a=r.levelMove,l=r.duration,u=r.ease,c=r.showMask;n.levelDom.forEach((function(r){r.style.transition="transform ".concat(l," ").concat(u),p(r,h,n.transitionEnd);var d,f,g=e?i:0;if(a){var m=(f="function"==typeof(d=a)?d({target:r,open:e}):d,Array.isArray(f)?2===f.length?f:[f[0],f[1]]:[f]);g=e?m[0]:m[1]||0}var v="number"==typeof g?"".concat(g,"px"):g,y="left"===s||"top"===s?v:"-".concat(v);y=c&&"right"===s&&o?"calc(".concat(y," + ").concat(o,"px)"):y,r.style.transform=g?"".concat(t,"(").concat(y,")"):""}))},n.setLevelAndScrolling=function(e,t,i){var o=n.props.onChange;if(!m){var r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(l.a)(!0):0;n.setLevelTransform(e,t,i,r),n.toggleScrollingToDrawerAndBody(r)}o&&o(e)},n.toggleScrollingToDrawerAndBody=function(e){var t=n.props,i=t.getOpenCount,o=t.getContainer,r=t.showMask,s=t.open,a=o&&o(),l=i&&i();if(a&&a.parentNode===document.body&&r){var u=["touchstart"],c=[document.body,n.maskDom,n.handlerDom,n.contentDom];s&&"hidden"!==document.body.style.overflow?(e&&n.addScrollingEffect(e),1===l&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",c.forEach((function(e,t){e&&p(e,u[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)}))):n.getCurrentDrawerSome()&&(l||(document.body.style.overflow=""),document.body.style.touchAction="",e&&n.remScrollingEffect(e),c.forEach((function(e,t){e&&f(e,u[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)})))}},n.addScrollingEffect=function(e){var t=n.props,i=t.placement,o=t.duration,r=t.ease,s=t.getOpenCount,a=t.switchScrollingEffect;1===(s&&s())&&a();var l="width ".concat(o," ").concat(r),u="transform ".concat(o," ").concat(r);switch(n.dom.style.transition="none",i){case"right":n.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":n.dom.style.width="calc(100% - ".concat(e,"px)"),n.dom.style.transform="translateZ(0)"}clearTimeout(n.timeout),n.timeout=setTimeout((function(){n.dom&&(n.dom.style.transition="".concat(u,",").concat(l),n.dom.style.width="",n.dom.style.transform="")}))},n.remScrollingEffect=function(e){var t,i=n.props,o=i.placement,r=i.duration,s=i.ease,a=i.getOpenCount,l=i.switchScrollingEffect;a&&a()||l(!0),d&&(document.body.style.overflowX="hidden"),n.dom.style.transition="none";var u="width ".concat(r," ").concat(s),c="transform ".concat(r," ").concat(s);switch(o){case"left":n.dom.style.width="100%",u="width 0s ".concat(s," ").concat(r);break;case"right":n.dom.style.transform="translateX(".concat(e,"px)"),n.dom.style.width="100%",u="width 0s ".concat(s," ").concat(r),n.maskDom&&(n.maskDom.style.left="-".concat(e,"px"),n.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":n.dom.style.width="calc(100% + ".concat(e,"px)"),n.dom.style.height="100%",n.dom.style.transform="translateZ(0)",t="height 0s ".concat(s," ").concat(r)}clearTimeout(n.timeout),n.timeout=setTimeout((function(){n.dom&&(n.dom.style.transition="".concat(c,",").concat(t?"".concat(t,","):"").concat(u),n.dom.style.transform="",n.dom.style.width="",n.dom.style.height="")}))},n.getCurrentDrawerSome=function(){return!Object.keys(S).some((function(e){return S[e]}))},n.getLevelDom=function(e){var t=e.level,i=e.getContainer;if(!m){var o,r=i&&i(),s=r?r.parentNode:null;n.levelDom=[],"all"===t?(s?Array.prototype.slice.call(s.children):[]).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==r&&n.levelDom.push(e)})):t&&(o=t,(Array.isArray(o)?o:[o]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){n.levelDom.push(e)}))})))}},n.getHorizontalBoolAndPlacementName=function(){var e=n.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate".concat(t?"X":"Y")}},n.state={_self:w(n)},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(e,i.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t._self,o={prevProps:e};if(void 0!==n){var r=e.placement,s=e.level;r!==n.placement&&(i.contentDom=null),s!==n.level&&i.getLevelDom(e)}return o}}],(n=[{key:"componentDidMount",value:function(){var e=this;if(!m){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(e){}this.passive=!!t&&{passive:!1}}var n=this.props.open;this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),n&&(S[this.drawerId]=n,this.openLevelTransition(),this.forceUpdate((function(){e.domFocus()})))}},{key:"componentDidUpdate",value:function(e){var t=this.props.open;t!==e.open&&(t&&this.domFocus(),S[this.drawerId]=!!t,this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.getOpenCount,n=e.open,i=e.switchScrollingEffect,o="function"==typeof t&&t();delete S[this.drawerId],n&&(this.setLevelTransform(!1),document.body.style.touchAction=""),o||i(!(document.body.style.overflow=""))}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.className,r=n.children,s=n.style,l=n.width,u=n.height,c=(n.defaultOpen,n.open),d=n.prefixCls,h=n.placement,p=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),f=(n.onChange,n.afterVisibleChange,n.showMask),m=n.maskClosable,v=n.maskStyle,b=n.onClose,_=n.onHandleClick,w=n.keyboard,C=(n.getOpenCount,n.switchScrollingEffect,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"])),S=!!this.dom&&c,O=a()(d,(y(e={},"".concat(d,"-").concat(h),!0),y(e,"".concat(d,"-open"),S),y(e,o||"",!!o),y(e,"no-mask",!f),e)),x=this.getHorizontalBoolAndPlacementName().placementName,k="left"===h||"top"===h?"-100%":"100%",E=S?"":"".concat(x,"(").concat(k,")"),N=p&&i.cloneElement(p,{onClick:function(e){p.props.onClick&&p.props.onClick(),_&&_(e)},ref:function(e){t.handlerDom=e}});return i.createElement("div",Object.assign({},C,{tabIndex:-1,className:O,style:s,ref:function(e){t.dom=e},onKeyDown:S&&w?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),f&&i.createElement("div",{className:"".concat(d,"-mask"),onClick:m?b:void 0,style:v,ref:function(e){t.maskDom=e}}),i.createElement("div",{className:"".concat(d,"-content-wrapper"),style:{transform:E,msTransform:E,width:g(l)?"".concat(l,"px"):l,height:g(u)?"".concat(u,"px"):u},ref:function(e){t.contentWrapper=e}},i.createElement("div",{className:"".concat(d,"-content"),ref:function(e){t.contentDom=e},onTouchStart:S&&f?this.removeStartHandler:void 0,onTouchMove:S&&f?this.removeMoveHandler:void 0},r),N))}}])&&b(t.prototype,n),o&&b(t,o),e}();O.defaultProps={switchScrollingEffect:function(){}};var x=Object(r.polyfill)(O);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var M=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,L(e).call(this,t))).onHandleClick=function(e){var t=n.props,i=t.onHandleClick,o=t.open;if(i&&i(e),void 0===o){var r=n.state.open;n.setState({open:!r})}},n.onClose=function(e){var t=n.props,i=t.onClose,o=t.open;i&&i(e),void 0===o&&n.setState({open:!1})};var i=void 0!==t.open?t.open:!!t.defaultOpen;return n.state={open:i},n}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(e,i.Component),t=e,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i={prevProps:e};return void 0!==n&&e.open!==n.open&&(i.open=e.open),i}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),r=t.wrapperClassName,s=t.forceRender,a=t.handler,l=E(t,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),u=this.state.open;if(!n)return i.createElement("div",{className:r,ref:function(t){e.dom=t}},i.createElement(x,Object.assign({},l,{open:u,handler:a,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var c=!!a||s;return i.createElement(o.a,{visible:u,forceRender:c,getContainer:n,wrapperClassName:r},(function(t){var n=t.visible,o=t.afterClose,r=E(t,["visible","afterClose"]);return i.createElement(x,Object.assign({},l,r,{open:void 0!==n?n:u,afterVisibleChange:void 0!==o?o:l.afterVisibleChange,handler:a,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}])&&N(t.prototype,n),r&&N(t,r),e}();M.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:i.createElement("div",{className:"drawer-handle"},i.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var T=Object(r.polyfill)(M),I=n(169),P=n.n(I),A=n(33),R=n(27),j=n(18),F=n(77),B=n(51);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},G=P()(null),Y=(Object(B.a)("top","right","bottom","left"),function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=H(e).apply(this,arguments),(t=!o||"object"!==W(o)&&"function"!=typeof o?q(n):o).state={push:!1},t.push=function(){t.setState({push:!0})},t.pull=function(){t.setState({push:!1})},t.onDestroyTransitionEnd=function(){t.getDestroyOnClose()&&(t.props.visible||(t.destroyClose=!0,t.forceUpdate()))},t.getDestroyOnClose=function(){return t.props.destroyOnClose&&!t.props.visible},t.getPushTransform=function(e){return"left"===e||"right"===e?"translateX(".concat("left"===e?180:-180,"px)"):"top"===e||"bottom"===e?"translateY(".concat("top"===e?180:-180,"px)"):void 0},t.getRcDrawerStyle=function(){var e=t.props,n=e.zIndex,i=e.placement,o=e.style;return V({zIndex:n,transform:t.state.push?t.getPushTransform(i):void 0},o)},t.renderBody=function(){var e=t.props,n=e.bodyStyle,o=e.drawerStyle,r=e.prefixCls,s=e.visible;if(t.destroyClose&&!s)return null;t.destroyClose=!1;var a={};return t.getDestroyOnClose()&&(a.opacity=0,a.transition="opacity .3s"),i.createElement("div",{className:"".concat(r,"-wrapper-body"),style:V(V({},a),o),onTransitionEnd:t.onDestroyTransitionEnd},t.renderHeader(),i.createElement("div",{className:"".concat(r,"-body"),style:n},t.props.children))},t.renderProvider=function(e){var n=t.props,o=n.prefixCls,r=n.placement,s=n.className,l=n.wrapClassName,u=n.width,c=n.height,d=n.mask,h=K(n,["prefixCls","placement","className","wrapClassName","width","height","mask"]);Object(R.a)(void 0===l,"Drawer","wrapClassName is deprecated, please use className instead.");var p=d?"":"no-mask";t.parentDrawer=e;var f={};return"left"===r||"right"===r?f.width=u:f.height=c,i.createElement(G.Provider,{value:q(t)},i.createElement(T,V({handler:!1},Object(A.default)(h,["zIndex","style","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton"]),f,{prefixCls:o,open:t.props.visible,showMask:d,placement:r,style:t.getRcDrawerStyle(),className:a()(l,s,p)}),t.renderBody()))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.props.visible&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(e){var t=this.props.visible;e.visible!==t&&this.parentDrawer&&(t?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"renderHeader",value:function(){var e=this.props,t=e.title,n=e.prefixCls,o=e.closable,r=e.headerStyle;if(!t&&!o)return null;var s="".concat(n,t?"-header":"-header-no-title");return i.createElement("div",{className:s,style:r},t&&i.createElement("div",{className:"".concat(n,"-title")},t),o&&this.renderCloseIcon())}},{key:"renderCloseIcon",value:function(){var e=this.props,t=e.closable,n=e.prefixCls,o=e.onClose;return t&&i.createElement("button",{onClick:o,"aria-label":"Close",className:"".concat(n,"-close")},i.createElement(j.a,{type:"close"}))}},{key:"render",value:function(){return i.createElement(G.Consumer,null,this.renderProvider)}}])&&z(t.prototype,n),e}());Y.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0},t.a=Object(F.c)({prefixCls:"drawer"})(Y)},,function(e,t,n){"use strict";n(1363);var i,o,r,s=n(445),a=n(439),l=n(465),u=n(459),c=n(881),d=n(443),h=n(452),p=n(702),f=n(701),g=n(442),m=n(686),v=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(r=o=o||{}).TREE="tree",r.FORM="form";var y,b=(v(_,y=Error),_);function _(e,t){return y.call(this,"ListError ["+e+"] "+t)||this}var w=n(973),C=n(490),S=n(505),O=(x.prototype.splice=function(e,t,n){this.spliceables.forEach((function(i){return i.splice(e,t,n)}))},x);function x(e){this.spliceables=e}var k=n(962),E=n(760);n.d(t,"a",(function(){return G})),n.d(t,"f",(function(){return Q})),n.d(t,"e",(function(){return ee})),n.d(t,"d",(function(){return oe})),n.d(t,"b",(function(){return se})),n.d(t,"c",(function(){return ye}));var N,L=(N=function(e,t){return(N=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){function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(){return(D=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},M=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},T=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},I=(Object.defineProperty(P.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),P.prototype.renderTemplate=function(e){return e},P.prototype.renderElement=function(e,t,n){var i=Object(u.k)(this.renderedElements,(function(e){return e.templateData===n}));if(0<=i){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else o={index:t,templateData:n},this.renderedElements.push(o);this.trait.renderIndex(t,n)},P.prototype.splice=function(e,t,n){for(var i=[],o=0,r=this.renderedElements;o<r.length;o++){var s=r[o];s.index<e?i.push(s):s.index>=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},P.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var i=n[t],o=i.index,r=i.templateData;-1<e.indexOf(o)&&this.trait.renderIndex(o,r)}},P.prototype.disposeTemplate=function(e){var t=Object(u.k)(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},P);function P(e){this.trait=e,this.renderedElements=[]}var A=(Object.defineProperty(R.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"renderer",{get:function(){return new I(this)},enumerable:!0,configurable:!0}),R.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=T(this.sortedIndexes.filter((function(t){return t<e})),n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e})),this.sortedIndexes.filter((function(e){return o<=e})).map((function(e){return e+i})));this.renderer.splice(e,t,n.length),this._set(r,r)},R.prototype.renderIndex=function(e,t){d.Y(t,this._trait,this.contains(e))},R.prototype.unrender=function(e){d.P(e,this._trait)},R.prototype.set=function(e,t){return this._set(e,T(e).sort(de),t)},R.prototype._set=function(e,t,n){var i=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var r=ce(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:n}),i},R.prototype.get=function(){return this.indexes},R.prototype.contains=function(e){return 0<=Object(u.c)(this.sortedIndexes,e,de)},R.prototype.dispose=function(){Object(a.f)(this._onChange)},M([c.a],R.prototype,"renderer",null),R);function R(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.a,this.onChange=this._onChange.event}var j,F=(L(B,j=A),B.prototype.renderIndex=function(e,t){j.prototype.renderIndex.call(this,e,t),this.contains(e)?t.setAttribute("aria-selected","true"):t.removeAttribute("aria-selected")},B);function B(){return j.call(this,"focused")||this}var W=(V.prototype.splice=function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var o=this.trait.get().map((function(e){return i.identityProvider.getId(i.view.element(e)).toString()})),r=n.map((function(e){return-1<o.indexOf(i.identityProvider.getId(e).toString())}));this.trait.splice(e,t,r)},V);function V(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}function z(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var H,q,U=(K.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},K.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},K.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},K.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},K.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},K.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(u.u)(this.list.length),e.browserEvent),this.view.domNode.focus()},K.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},K.prototype.dispose=function(){this.disposables.dispose()},K);function K(e,t,n){this.list=e,this.view=t,this.disposables=new a.b;var i=!1!==n.multipleSelectionSupport;this.openController=n.openController||ie;var o=g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!z(e.target)})).map((function(e){return new f.a(e)}));o.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),o.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),o.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),o.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),o.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),o.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),i&&o.filter((function(e){return(h.e?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}(q=H=H||{})[q.Idle=0]="Idle",q[q.Typing=1]="Typing";var G=(Y.prototype.mightProducePrintableCharacter=function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30||93<=e.keyCode&&e.keyCode<=102||80<=e.keyCode&&e.keyCode<=90)},new Y);function Y(){}var Z=(X.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},X.prototype.enable=function(){var e=this;if(!this.enabled){var t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).filter((function(e){return!z(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new f.a(e)})).filter((function(t){return e.delegate.mightProducePrintableCharacter(t)})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).map((function(e){return e.browserEvent.key})).event,n=g.b.debounce(t,(function(){return null}),800);g.b.reduce(g.b.any(t,n),(function(e,t){return null===t?null:(e||"")+t}))(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},X.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},X.prototype.onInput=function(e){if(!e)return this.state=H.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=0<t.length?t[0]:0,i=this.state===H.Idle?1:0;this.state=H.Typing;for(var o=0;o<this.list.length;o++){var r=(n+o+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),a=s&&s.toString();if(void 0===a||Object(E.g)(e,a))return this.list.setFocus([r]),void this.list.reveal(r)}},X.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},X);function X(e,t,n,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=i,this.enabled=!1,this.state=H.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new a.b,this.disposables=new a.b,this.updateOptions(e.options)}var $=(J.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var o=window.getComputedStyle(i);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}},J.prototype.dispose=function(){this.disposables.dispose()},J);function J(e,t){this.list=e,this.view=t,this.disposables=new a.b,g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!z(e.target)})).map((function(e){return new f.a(e)})).filter((function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)})).on(this.onTab,this,this.disposables)}function Q(e){return h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function ee(e){return e.browserEvent.shiftKey}function te(e){return e instanceof MouseEvent&&2===e.button}var ne={isSelectionSingleChangeEvent:Q,isSelectionRangeChangeEvent:ee},ie={shouldOpen:function(e){return!(e instanceof MouseEvent)||!te(e)}},oe=(re.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey},re.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},re.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},re.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},re.prototype.onContextMenu=function(e){var t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},re.prototype.onPointer=function(e){if(this.mouseSupport&&!z(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var i=e.index;if(void 0===i)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([i],e.browserEvent),te(e.browserEvent)||(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))}},re.prototype.onDoubleClick=function(e){if(!(z(e.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},re.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),o=Math.max(t,n),r=Object(u.u)(i,o+1),s=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var i=[],o=n-1;0<=o&&e[o]===t-(n-o);)i.push(e[o--]);for(i.reverse(),o=n;o<e.length&&e[o]===t+(o-n);)i.push(e[o++]);return i}(ce(l=this.list.getSelection(),[t]),t);if(0===s.length)return;var a=ce(r,function(e,t){for(var n=[],i=0,o=0;i<e.length||o<t.length;)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]<t[o]?n.push(e[i++]):o++}return n}(l,s));this.list.setSelection(a,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){var l;a=(l=this.list.getSelection()).filter((function(e){return e!==n})),this.list.setFocus([n]),l.length===a.length?this.list.setSelection(T(a,[n]),e.browserEvent):this.list.setSelection(a,e.browserEvent)}},re.prototype.dispose=function(){this.disposables.dispose()},re);function re(e){this.list=e,this.disposables=new a.b,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||ne),this.openController=e.options.openController||ie,this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(p.b.addTarget(e.getHTMLElement()))),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}var se=(ae.prototype.style=function(e){var t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(".monaco-list"+t+" .monaco-list-rows { background: "+e.listBackground+"; }"):h.e),e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }\n\t\t\t"),e.listInactiveFocusOutline&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list"+t+".drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFilterWidgetBackground&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},ae);function ae(e,t){this.styleElement=e,this.selectorSuffix=t}var le={listFocusBackground:C.a.fromHex("#7FB0D0"),listActiveSelectionBackground:C.a.fromHex("#0E639C"),listActiveSelectionForeground:C.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:C.a.fromHex("#094771"),listFocusAndSelectionForeground:C.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:C.a.fromHex("#3F3F46"),listHoverBackground:C.a.fromHex("#2A2D2E"),listDropBackground:C.a.fromHex("#383B3D"),treeIndentGuidesStroke:C.a.fromHex("#a9a9a9")},ue={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:o.TREE};function ce(e,t){for(var n=[],i=0,o=0;i<e.length||o<t.length;)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}e[i]<t[o]?n.push(e[i++]):n.push(t[o++])}return n}var de=function(e,t){return e-t},he=(Object.defineProperty(pe.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},pe.prototype.renderElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++)s[r].renderElement(e,t,n[o++],i)},pe.prototype.disposeElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.disposeElement&&a.disposeElement(e,t,n[o],i),o+=1}},pe.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++)i[n].disposeTemplate(e[t++])},pe);function pe(e,t){this._templateId=e,this.renderers=t}var fe=(ge.prototype.renderTemplate=function(e){return e},ge.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?n.setAttribute("aria-level",""+o):n.removeAttribute("aria-level")},ge.prototype.disposeTemplate=function(e){},ge);function ge(e){this.accessibilityProvider=e,this.templateId="a18n"}var me=(ve.prototype.getDragElements=function(e){var t=this.list.getSelectedElements();return-1<t.indexOf(e)?t:[e]},ve.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},ve.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)},ve.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},ve.prototype.onDragOver=function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)},ve.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},ve.prototype.drop=function(e,t,n,i){this.dnd.drop(e,t,n,i)},ve);function ve(e,t){this.list=e,this.dnd=t}var ye=(Object.defineProperty(be.prototype,"onFocusChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onSelectionChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onContextMenu",{get:function(){var e=this,t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).map((function(e){return new f.a(e)})).filter((function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode})).filter((function(e){return e.preventDefault(),e.stopPropagation(),!1})).event,n=g.b.chain(Object(m.a)(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return 0<e.getFocus().length&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t}})).event,i=g.b.chain(this.view.onContextMenu).filter((function(){return!e.didJustPressContextMenuKey})).map((function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY},browserEvent:i}})).event;return g.b.any(t,n,i)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onKeyDown",{get:function(){return Object(m.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),be.prototype.createMouseController=function(e){return new oe(this)},be.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=D(D({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(be.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),be.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new b(this.user,"Invalid start index: "+e);if(t<0)throw new b(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return i.spliceable.splice(e,t,n)}))},be.prototype.rerender=function(){this.view.rerender()},be.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(be.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),be.prototype.domFocus=function(){this.view.domNode.focus()},be.prototype.layout=function(e,t){this.view.layout(e,t)},be.prototype.setSelection=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new b(this.user,"Invalid index "+o)}this.selection.set(e,t)},be.prototype.getSelection=function(){return this.selection.get()},be.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},be.prototype.setFocus=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new b(this.user,"Invalid index "+o)}this.focus.set(e,t)},be.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findNextIndex(0<o.length?o[0]+e:0,t,i);-1<r&&this.setFocus([r],n)}},be.prototype.focusPrevious=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findPreviousIndex(0<o.length?o[0]-e:0,t,i);-1<r&&this.setFocus([r],n)}},be.prototype.focusNextPage=function(e,t){var n=this,i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;var o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){var s=this.findPreviousIndex(i,!1,t);-1<s&&r!==this.view.element(s)?this.setFocus([s],e):this.setFocus([i],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==a&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},be.prototype.focusPreviousPage=function(e,t){var n,i=this,o=this.view.getScrollTop();n=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);var r=this.view.element(n),s=this.getFocusedElements()[0];if(s!==r){var a=this.findNextIndex(n,!1,t);-1<a&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var l=o;this.view.setScrollTop(o-this.view.renderHeight),this.view.getScrollTop()!==l&&setTimeout((function(){return i.focusPreviousPage(e,t)}),0)}},be.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},be.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},be.prototype.getFocus=function(){return this.focus.get()},be.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},be.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(l.h)(t)){var r=o-this.view.renderHeight;this.view.setScrollTop(r*Object(k.a)(t,0,1)+i)}else{var s=i+o,a=n+this.view.renderHeight;i<n&&a<=s||(i<n?this.view.setScrollTop(i):a<=s&&this.view.setScrollTop(s-this.view.renderHeight))}},be.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;var o=i-this.view.renderHeight;return Math.abs((t-n)/o)},be.prototype.getHTMLElement=function(){return this.view.domNode},be.prototype.open=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new b(this.user,"Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.pin=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new b(this.user,"Invalid index "+r)}this._onDidPin.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.style=function(e){this.styleController.style(e)},be.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:i}},be.prototype._onFocusChange=function(){var e=this.focus.get();d.Y(this.view.domNode,"element-focused",0<e.length),this.onDidChangeActiveDescendant()},be.prototype.onDidChangeActiveDescendant=function(){var e,t=this.focus.get();if(0<t.length){var n=void 0;null!==(e=this.accessibilityProvider)&&void 0!==e&&e.getActiveDescendantId&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},be.prototype._onSelectionChange=function(){var e=this.selection.get();d.Y(this.view.domNode,"selection-none",0===e.length),d.Y(this.view.domNode,"selection-single",1===e.length),d.Y(this.view.domNode,"selection-multiple",1<e.length)},be.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},M([c.a],be.prototype,"onFocusChange",null),M([c.a],be.prototype,"onSelectionChange",null),M([c.a],be.prototype,"onContextMenu",null),be);function be(e,t,n,i,r){void 0===r&&(r=ue),this.user=e,this._options=r,this.eventBufferer=new g.c,this.disposables=new a.b,this._onDidOpen=new g.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new g.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new g.a,this.onDidDispose=this._onDidDispose.event,this.focus=new F,this.selection=new A("selected"),Object(S.g)(r,le,!1);var l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(l.push(new fe(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),i=i.map((function(e){return new he(e.templateId,T(l,[e]))}));var u=D(D({},r),{dnd:r.dnd&&new me(this,r.dnd)});if(this.view=new w.b(t,n,i,u),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",o.TREE):this.view.domNode.setAttribute("role",r.ariaRole),r.styleController)this.styleController=r.styleController(this.view.domId);else{var c=d.w(this.view.domNode);this.styleController=new se(c,this.view.domId)}if(this.spliceable=new O([new W(this.focus,this.view,r.identityProvider),new W(this.selection,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=g.b.map(Object(m.a)(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=g.b.map(Object(m.a)(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new $(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var h=new U(this,this.view,r);this.disposables.add(h)}if(r.keyboardNavigationLabelProvider){var p=r.keyboardNavigationDelegate||G;this.typeLabelController=new Z(this,this.view,r.keyboardNavigationLabelProvider,p),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(s.a)("aria list","{0}. Use the navigation keys to navigate.",r.ariaLabel))}},function(e,t,n){"use strict";var i=n(505),o=n(439),r=n(702),s=n(443),a=n(442),l=n(686),u=n(688),c=n(896);function d(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(!(e.start>=r.range.end)){if(e.end<r.range.start)break;var s=c.a.intersect(e,r.range);c.a.isEmpty(s)||n.push({range:s,size:r.size})}}return n}function h(e,t){return{start:e.start+t,end:e.end+t}}var p=(f.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,o=d({start:0,end:e},this.groups),r=d({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:h(e.range,i),size:e.size}})),s=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e){for(var t=[],n=null,i=0,o=e;i<o.length;i++){var r=o[i],s=r.range.start,a=r.range.end,l=r.size;n&&l===n.size?n.range.end=a:(n={range:{start:s,end:a},size:l},t.push(n))}return t}(e.reduce((function(e,t){return e.concat(t)}),[]))}(o,s,r),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)},Object.defineProperty(f.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),f.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s*r.size;if(e<a)return t+Math.floor((e-n)/r.size);t+=s,n=a}return t},f.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},f.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s;if(e<a)return t+(e-n)*r.size;t+=s*r.size,n=a}return-1},f);function f(){this.groups=[],this._size=0}var g=(m.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Object(s.a)(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},m.prototype.release=function(e){e&&this.releaseRow(e)},m.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Object(s.P)(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},m.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},m.prototype.dispose=function(){var e=this;this.cache.forEach((function(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];e.getRenderer(n).disposeTemplate(r.templateData),r.domNode=null,r.templateData=null}})),this.cache.clear()},m.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},m);function m(e){this.renderers=e,this.cache=new Map}var v=n(881),y=n(459),b=n(888),_=n(453),w=n(478);n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return M}));var C=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},S=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},O={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},x=(k.prototype.update=function(){},k.prototype.getData=function(){return this.elements},k);function k(e){this.elements=e}var E=(N.prototype.update=function(){},N.prototype.getData=function(){return this.elements},N);function N(e){this.elements=e}var L=(D.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,S([0,this.types.length],e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}},D.prototype.getData=function(){return{types:this.types,files:this.files}},D);function D(){this.types=[],this.files=[]}var M=(Object.defineProperty(T.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),T.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},T.prototype._splice=function(e,t,n){var i,r=this;void 0===n&&(n=[]);for(var s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),a={start:e,end:e+t},l=c.a.intersect(s,a),u=l.start;u<l.end;u++)this.removeItemFromDOM(u);var d,f={start:e+t,end:this.items.length},g=c.a.intersect(f,s),m=c.a.relativeComplement(f,s),v=n.map((function(e){return{id:String(r.itemId++),element:e,templateId:r.virtualDelegate.getTemplateId(e),size:r.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!r.virtualDelegate.hasDynamicHeight&&r.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:o.a.None}}));d=0===e&&t>=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,v),this.items=v,[]):(this.rangeMap.splice(e,t,v),(i=this.items).splice.apply(i,S([e,t],v)));var y=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=h(g,y),w=c.a.intersect(b,_);for(u=w.start;u<w.end;u++)this.updateItemInDOM(this.items[u],u);for(var C=0,O=c.a.relativeComplement(_,b);C<O.length;C++)for(u=(M=O[C]).start;u<M.end;u++)this.removeItemFromDOM(u);for(var x=m.map((function(e){return h(e,y)})),k={start:e,end:e+n.length},E=S([k],x).map((function(e){return c.a.intersect(b,e)})),N=this.getNextToLastElement(E),L=0,D=E;L<D.length;L++){var M;for(u=(M=D[L]).start;u<M.end;u++)this.insertItemInDOM(u,N)}return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((function(e){return e.element}))},T.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=s.W((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},T.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},T.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var i=n[t];void 0!==i.width&&(e=Math.max(e,i.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},T.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++)t[e].lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(T.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"renderHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},enumerable:!0,configurable:!0}),T.prototype.element=function(e){return this.items[e].element},T.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},T.prototype.elementHeight=function(e){return this.items[e].size},T.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},T.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},T.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},T.prototype.layout=function(e,t){var n={height:"number"==typeof e?e:s.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:s.B(this.domNode)}))},T.prototype.render=function(e,t,n,i){for(var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=this.getRenderRange(e,t),s=c.a.relativeComplement(r,o),a=c.a.relativeComplement(o,r),l=this.getNextToLastElement(s),u=0,d=s;u<d.length;u++)for(var h=(g=d[u]).start;h<g.end;h++)this.insertItemInDOM(h,l);for(var p=0,f=a;p<f.length;p++){var g;for(h=(g=f[p]).start;h<g.end;h++)this.removeItemFromDOM(h)}this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(i,this.renderWidth)+"px"),this.lastRenderTop=e,this.lastRenderHeight=t},T.prototype.insertItemInDOM=function(e,t){var n=this,i=this.items[e];if(!i.row){i.row=this.cache.alloc(i.templateId);var o=this.ariaProvider.getRole?this.ariaProvider.getRole(i.element):"treeitem";i.row.domNode.setAttribute("role",o);var r=this.ariaProvider.isChecked?this.ariaProvider.isChecked(i.element):void 0;void 0!==r&&i.row.domNode.setAttribute("aria-checked",String(r))}i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);var s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);var a=this.dnd.getDragURI(i.element);if(i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a){var u=Object(l.a)(i.row.domNode,"dragstart");i.dragStartDisposable=u((function(e){return n.onDragStart(i.element,a,e)}))}this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())},T.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=w.h?"-moz-fit-content":"fit-content",e.width=s.B(e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}},T.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),s.Y(e.row.domNode,"drop-target",e.dropTarget)},T.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},T.prototype.getScrollTop=function(){return this.scrollableElement.getScrollPosition().scrollTop},T.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(T.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onMouseClick",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onMouseDblClick",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onMouseMiddleClick",{get:function(){var e=this;return a.b.filter(a.b.map(Object(l.a)(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onMouseDown",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onContextMenu",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onTouchStart",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"onTap",{get:function(){var e=this;return a.b.map(Object(l.a)(this.rowsContainer,r.a.Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),T.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},T.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},T.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},T.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},T.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(e){throw e}},T.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},T.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(b.a.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var o=void 0;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(i,n)),void 0===o&&(o=String(i.length));var r=s.a(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),n.dataTransfer.setDragImage(r,-10,-10),setTimeout((function(){return document.body.removeChild(r)}),0)}this.currentDragData=new x(i),b.c.CurrentDragAndDropData=new E(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},T.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),b.c.CurrentDragAndDropData&&"vscode-ui"===b.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(b.c.CurrentDragAndDropData)this.currentDragData=b.c.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}var n,i,r,a=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof a?a:a.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof a&&0===a.effect?"copy":"move",n="boolean"!=typeof a&&a.feedback?a.feedback:void 0===e.index?[-1]:[e.index],n=-1===(n=Object(y.e)(n).filter((function(e){return-1<=e&&e<t.length})).sort((function(e,t){return e-t})))[0]?[-1]:n,i=this.currentDragFeedback,r=n,Array.isArray(i)&&Array.isArray(r)?Object(y.g)(i,r):i===r)return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])s.f(this.domNode,"drop-target"),s.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(o.h)((function(){s.P(t.domNode,"drop-target"),s.P(t.rowsContainer,"drop-target")}));else{for(var l=0,u=n;l<u.length;l++){var c=u[l],d=this.items[c];d.dropTarget=!0,d.row&&d.row.domNode&&s.f(d.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(o.h)((function(){for(var e=0,i=n;e<i.length;e++){var o=i[e],r=t.items[o];r.dropTarget=!1,r.row&&r.row.domNode&&s.P(r.row.domNode,"drop-target")}}))}return!0},T.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(_.g)((function(){return e.clearDragOverFeedback()}),100)},T.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}},T.prototype.onDragEnd=function(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},T.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=o.a.None},T.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=s.F(this.domNode).top;this.dragOverAnimationDisposable=s.p(this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(_.g)((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},T.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):n<t&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},T.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},T.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}t=t.parentElement}},T.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},T.prototype._rerender=function(e,t){var n,i,o=this.getRenderRange(e,t);e===this.elementTop(o.start)?(n=o.start,i=0):1<o.end-o.start&&(n=o.start+1,i=this.elementTop(n)-e);for(var r=0;;){for(var s=this.getRenderRange(e,t),a=!1,l=s.start;l<s.end;l++){var u=this.probeDynamicHeight(l);0!==u&&this.rangeMap.splice(l,1,[this.items[l]]),r+=u,a=a||0!==u}if(!a){0!==r&&this.eventuallyUpdateScrollDimensions();for(var d=0,h=c.a.relativeComplement(o,s);d<h.length;d++)for(l=(g=h[d]).start;l<g.end;l++)this.items[l].row&&this.removeItemFromDOM(l);for(var p=0,f=c.a.relativeComplement(s,o);p<f.length;p++){var g;for(l=(g=f[p]).start;l<g.end;l++){var m=l+1,v=m<this.items.length?this.items[m].row:null,y=v?v.domNode:null;this.insertItemInDOM(l,y)}}for(l=s.start;l<s.end;l++)this.items[l].row&&this.updateItemInDOM(this.items[l],l);return"number"==typeof n&&(this.scrollTop=this.elementTop(n)-i),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},T.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);var o=this.renderers.get(t.templateId);return o&&(o.renderElement(t.element,e,i.templateData,void 0),o.disposeElement&&o.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n},T.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},T.prototype.getElementDomId=function(e){return this.domId+"_"+e},T.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var i=this.renderers.get(n.row.templateId);i&&i.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(o.f)(this.disposables)},T.InstanceCount=0,C([v.a],T.prototype,"onMouseClick",null),C([v.a],T.prototype,"onMouseDblClick",null),C([v.a],T.prototype,"onMouseMiddleClick",null),C([v.a],T.prototype,"onMouseDown",null),C([v.a],T.prototype,"onContextMenu",null),C([v.a],T.prototype,"onTouchStart",null),C([v.a],T.prototype,"onTap",null),T);function T(e,t,n,c){var d=this;if(void 0===c&&(c=O),this.virtualDelegate=t,this.domId="list_id_"+ ++T.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new _.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=o.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=o.a.None,this.onDragLeaveTimeout=o.a.None,this.disposables=new o.b,this._onDidChangeContentHeight=new a.a,c.horizontalScrolling&&c.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new p;for(var h=0,f=n;h<f.length;h++){var m=f[h];this.renderers.set(m.templateId,m)}this.cache=this.disposables.add(new g(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",s.f(this.domNode,this.domId),this.domNode.tabIndex=0,s.Y(this.domNode,"mouse-support","boolean"!=typeof c.mouseSupport||c.mouseSupport),this.horizontalScrolling=Object(i.f)(c,(function(e){return e.horizontalScrolling}),O.horizontalScrolling),s.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=void 0===c.additionalScrollHeight?0:c.additionalScrollHeight,this.ariaProvider=c.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(r.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new u.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(i.f)(c,(function(e){return e.verticalScrollMode}),O.verticalScrollMode),useShadows:Object(i.f)(c,(function(e){return e.useShadows}),O.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(l.a)(this.rowsContainer,r.a.Change)(this.onTouchChange,this,this.disposables),Object(l.a)(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),a.b.map(Object(l.a)(this.domNode,"dragover"),(function(e){return d.toDragEvent(e)}))(this.onDragOver,this,this.disposables),a.b.map(Object(l.a)(this.domNode,"drop"),(function(e){return d.toDragEvent(e)}))(this.onDrop,this,this.disposables),Object(l.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(l.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(i.f)(c,(function(e){return e.setRowLineHeight}),O.setRowLineHeight),this.supportDynamicHeights=Object(i.f)(c,(function(e){return e.supportDynamicHeights}),O.supportDynamicHeights),this.dnd=Object(i.f)(c,(function(e){return e.dnd}),O.dnd),this.layout()}},function(e,t,n){"use strict";var i=n(446),o=n(444),r=n(794),s=n(1085),a=n(440),l=n(466),u=(c.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},c.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new l.a(i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},c);function c(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}var d=n(555),h=n(823),p=n(825),f=n(575);n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return _}));var g,m=(g=function(e,t){return(g=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){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(y.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s.a(n[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},y.outdent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s.a(n[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},y.shiftIndent=function(e,t,n){return n=n||1,s.a.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},y.unshiftIndent=function(e,t,n){return n=n||1,s.a.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},y._distributedPaste=function(e,t,n,i){for(var o=[],s=0,a=n.length;s<a;s++)o[s]=new r.a(n[s],i[s]);return new d.e(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._simplePaste=function(e,t,n,i,o){for(var s=[],l=0,u=n.length;l<u;l++){var c=n[l],h=c.getPosition();if(o&&!c.isEmpty()&&(o=!1),o&&i.indexOf("\n")!==i.length-1&&(o=!1),o){var p=new a.a(h.lineNumber,1,h.lineNumber,1);s[l]=new r.b(p,i,c,!0)}else s[l]=new r.a(c,i)}return new d.e(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._distributePasteToCursors=function(e,t,n,i,o){if(i)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var r=n.split(/\r\n|\r|\n/);if(r.length===t.length)return r}return null},y.paste=function(e,t,n,i,o,r){var s=this._distributePasteToCursors(e,n,i,o,r);return s?(n=n.sort(a.a.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,o)},y._goodIndentForLine=function(e,t,n){var i=null,r="",s=f.a.getInheritIndentForLine(e.autoIndent,t,n,!1);if(s)i=s.action,r=s.indentation;else if(1<n){var l=void 0;for(l=n-1;1<=l;l--){var u=t.getLineContent(l);if(0<=o.D(u))break}if(l<1)return null;var c=t.getLineMaxColumn(l),d=f.a.getEnterAction(e.autoIndent,t,new a.a(l,c,l,c));d&&(r=d.indentation+d.appendText)}return i&&(i===p.a.Indent&&(r=y.shiftIndent(e,r)),i===p.a.Outdent&&(r=y.unshiftIndent(e,r)),r=e.normalizeIndentation(r)),r||null},y._replaceJumpToNextIndent=function(e,t,n,i){var o="",s=n.getStartPosition();if(e.insertSpaces)for(var a=d.a.visibleColumnFromColumn2(e,t,s),l=e.indentSize,u=l-a%l,c=0;c<u;c++)o+=" ";else o="\t";return new r.a(n,o,i)},y.tab=function(e,t,n){for(var i=[],l=0,u=n.length;l<u;l++){var c=n[l];if(c.isEmpty()){var d=t.getLineContent(c.startLineNumber);if(/^\s*$/.test(d)&&t.isCheapToTokenize(c.startLineNumber)){var h=this._goodIndentForLine(e,t,c.startLineNumber);h=h||"\t";var p=e.normalizeIndentation(h);if(!o.N(d,p)){i[l]=new r.a(new a.a(c.startLineNumber,1,c.startLineNumber,d.length+1),p,!0);continue}}i[l]=this._replaceJumpToNextIndent(e,t,c,!0)}else{if(c.startLineNumber===c.endLineNumber){var f=t.getLineMaxColumn(c.startLineNumber);if(1!==c.startColumn||c.endColumn!==f){i[l]=this._replaceJumpToNextIndent(e,t,c,!1);continue}}i[l]=new s.a(c,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i},y.replacePreviousChar=function(e,t,n,i,o,s){for(var l=[],u=0,c=i.length;u<c;u++){var h=i[u];if(h.isEmpty()){var p=h.getPosition(),f=Math.max(1,p.column-s),g=new a.a(p.lineNumber,f,p.lineNumber,p.column);l[u]=new r.a(g,o)}else l[u]=null}return new d.e(1,l,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y._typeCommand=function(e,t,n){return n?new r.e(e,t,!0):new r.a(e,t,!0)},y._enter=function(e,t,n,i){if(0===e.autoIndent)return y._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){var s=t.getLineContent(i.startLineNumber),l=o.t(s).substring(0,i.startColumn-1);return y._typeCommand(i,"\n"+e.normalizeIndentation(l),n)}var u=f.a.getEnterAction(e.autoIndent,t,i);if(u){if(u.indentAction===p.a.None)return y._typeCommand(i,"\n"+e.normalizeIndentation(u.indentation+u.appendText),n);if(u.indentAction===p.a.Indent)return y._typeCommand(i,"\n"+e.normalizeIndentation(u.indentation+u.appendText),n);if(u.indentAction===p.a.IndentOutdent){var c=e.normalizeIndentation(u.indentation),h=e.normalizeIndentation(u.indentation+u.appendText),g="\n"+h+"\n"+c;return n?new r.e(i,g,!0):new r.d(i,g,-1,h.length-c.length,!0)}if(u.indentAction===p.a.Outdent){var m=y.unshiftIndent(e,u.indentation);return y._typeCommand(i,"\n"+e.normalizeIndentation(m+u.appendText),n)}}var v=t.getLineContent(i.startLineNumber),b=o.t(v).substring(0,i.startColumn-1);if(4<=e.autoIndent){var _=f.a.getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:function(t){return y.unshiftIndent(e,t)},shiftIndent:function(t){return y.shiftIndent(e,t)},normalizeIndentation:function(t){return e.normalizeIndentation(t)}});if(_){var w=d.a.visibleColumnFromColumn2(e,t,i.getEndPosition()),C=i.endColumn,S="\n";b!==e.normalizeIndentation(_.beforeEnter)&&(S=e.normalizeIndentation(_.beforeEnter)+v.substring(b.length,i.startColumn-1)+"\n",i=new a.a(i.startLineNumber,1,i.endLineNumber,i.endColumn));var O=t.getLineContent(i.endLineNumber),x=o.q(O);if(i=0<=x?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,x+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new r.e(i,S+e.normalizeIndentation(_.afterEnter),!0);var k=0;return C<=x+1&&(e.insertSpaces||(w=Math.ceil(w/e.indentSize)),k=Math.min(w+1-e.normalizeIndentation(_.afterEnter).length-1,0)),new r.d(i,S+e.normalizeIndentation(_.afterEnter),0,k,!0)}}return y._typeCommand(i,"\n"+e.normalizeIndentation(b),n)},y._isAutoIndentType=function(e,t,n){if(e.autoIndent<4)return!1;for(var i=0,o=n.length;i<o;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0},y._runAutoIndentType=function(e,t,n,i){var o=f.a.getIndentationAtPosition(t,n.startLineNumber,n.startColumn),r=f.a.getIndentActionForType(e.autoIndent,t,n,i,{shiftIndent:function(t){return y.shiftIndent(e,t)},unshiftIndent:function(t){return y.unshiftIndent(e,t)}});if(null===r)return null;if(r===e.normalizeIndentation(o))return null;var s=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return y._typeCommand(new a.a(n.startLineNumber,0,n.endLineNumber,n.endColumn),0===s?e.normalizeIndentation(r)+i:e.normalizeIndentation(r)+t.getLineContent(n.startLineNumber).substring(s-1,n.startColumn-1)+i,!1)},y._isAutoClosingOvertype=function(e,t,n,i,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(o))return!1;for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a.isEmpty())return!1;var l=a.getPosition(),u=t.getLineContent(l.lineNumber);if(u.charAt(l.column-1)!==o)return!1;var c=Object(d.g)(o);if(92===(2<l.column?u.charCodeAt(l.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){for(var h=!1,p=0,f=i.length;p<f;p++){var g=i[p];if(l.lineNumber===g.startLineNumber&&l.column===g.startColumn){h=!0;break}}if(!h)return!1}}return!0},y._runAutoClosingOvertype=function(e,t,n,i,o){for(var s=[],l=0,u=i.length;l<u;l++){var c=i[l].getPosition(),h=new a.a(c.lineNumber,c.column,c.lineNumber,c.column+1);s[l]=new r.a(h,o)}return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y._autoClosingPairIsSymmetric=function(e){var t=e.open,n=e.close;return 0<=t.indexOf(n)||0<=n.indexOf(t)},y._isBeforeClosingBrace=function(e,t,n){var i=e.autoClosingPairsClose2.get(n);if(!i)return!1;for(var o=y._autoClosingPairIsSymmetric(t),r=0,s=i;r<s.length;r++){var a=s[r],l=y._autoClosingPairIsSymmetric(a);if(o||!l)return!0}return!1},y._findAutoClosingPairOpen=function(e,t,n,i){var o=e.autoClosingPairsOpen2.get(i);if(!o)return null;for(var r=null,s=0,l=o;s<l.length;s++){var u=l[s];if(null===r||u.open.length>r.open.length){for(var c=!0,d=0,h=n;d<h.length;d++){var p=h[d];if(t.getValueInRange(new a.a(p.lineNumber,p.column-u.open.length+1,p.lineNumber,p.column))+i!==u.open){c=!1;break}}c&&(r=u)}}return r},y._isAutoClosingOpenCharType=function(e,t,n,o,r){var s=Object(d.g)(o),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;var l=this._findAutoClosingPairOpen(e,t,n.map((function(e){return e.getPosition()})),o);if(!l)return null;for(var u=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket,c=0,p=n.length;c<p;c++){var g=n[c];if(!g.isEmpty())return null;var m=g.getPosition(),v=t.getLineContent(m.lineNumber);if(v.length>m.column-1){var b=v.charAt(m.column-1);if(!y._isBeforeClosingBrace(e,l,b)&&!u(b))return null}if(!t.isCheapToTokenize(m.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){var _=Object(h.a)(e.wordSeparators);if(r&&1<m.column&&0===_.get(v.charCodeAt(m.column-2)))return null;if(!r&&2<m.column&&0===_.get(v.charCodeAt(m.column-3)))return null}t.forceTokenization(m.lineNumber);var w=t.getLineTokens(m.lineNumber),C=!1;try{C=f.a.shouldAutoClosePair(l,w,r?m.column:m.column-1)}catch(e){Object(i.e)(e)}if(!C)return null}return l},y._runAutoClosingOpenCharType=function(e,t,n,i,o,r,s){for(var a=[],l=0,u=i.length;l<u;l++){var c=i[l];a[l]=new _(c,o,r,s.close)}return new d.e(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},y._shouldSurroundChar=function(e,t){return Object(d.g)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},y._isSurroundSelectionType=function(e,t,n,i){if(!y._shouldSurroundChar(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;for(var o=Object(d.g)(i),r=0,s=n.length;r<s;r++){var a=n[r];if(a.isEmpty())return!1;for(var l=!0,u=a.startLineNumber;u<=a.endLineNumber;u++){var c=t.getLineContent(u),h=u===a.startLineNumber?a.startColumn-1:0,p=u===a.endLineNumber?a.endColumn-1:c.length,f=c.substring(h,p);if(/[^ \t]/.test(f)){l=!1;break}}if(l)return!1;if(o&&a.startLineNumber===a.endLineNumber&&a.startColumn+1===a.endColumn){var g=t.getValueInRange(a);if(Object(d.g)(g))return!1}}return!0},y._runSurroundSelectionType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var l=i[s],c=t.surroundingPairs[o];r[s]=new u(l,o,c)}return new d.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},y._typeInterceptorElectricChar=function(e,t,n,s,l){if(!t.electricChars.hasOwnProperty(l)||!s.isEmpty())return null;var u=s.getPosition();n.forceTokenization(u.lineNumber);var c,h=n.getLineTokens(u.lineNumber);try{c=f.a.onElectricCharacter(l,h,u.column)}catch(e){return Object(i.e)(e),null}if(!c)return null;if(c.matchOpenBracket){var p=(h.getLineContent()+l).lastIndexOf(c.matchOpenBracket)+1,g=n.findMatchingBracketUp(c.matchOpenBracket,{lineNumber:u.lineNumber,column:p});if(g){if(g.startLineNumber===u.lineNumber)return null;var m=n.getLineContent(g.startLineNumber),v=o.t(m),y=t.normalizeIndentation(v),b=n.getLineContent(u.lineNumber),_=n.getLineFirstNonWhitespaceColumn(u.lineNumber)||u.column,w=y+b.substring(_-1,u.column-1)+l,C=new a.a(u.lineNumber,1,u.lineNumber,u.column),S=new r.a(C,w);return new d.e(1,[S],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},y.compositionEndWithInterceptors=function(e,t,n,i,o,s){if(!i||l.a.selectionsArrEqual(i,o))return null;for(var u=null,c=0,h=o;c<h.length;c++){var p=h[c];if(!p.isEmpty())return null;var f=p.getPosition(),g=n.getValueInRange(new a.a(f.lineNumber,f.column-1,f.lineNumber,f.column));if(null===u)u=g;else if(u!==g)return null}if(!u)return null;if(this._isAutoClosingOvertype(t,n,o,s,u)){var m=o.map((function(e){return new r.a(new a.a(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new d.e(1,m,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var v=this._isAutoClosingOpenCharType(t,n,o,u,!1);return v?this._runAutoClosingOpenCharType(e,t,n,o,u,!1,v):null},y.typeWithInterceptors=function(e,t,n,i,o,s){if("\n"===s){for(var a=[],l=0,u=i.length;l<u;l++)a[l]=y._enter(t,n,!1,i[l]);return new d.e(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(t,n,i)){var c=[],h=!1;for(l=0,u=i.length;l<u;l++)if(c[l]=this._runAutoIndentType(t,n,i[l],s),!c[l]){h=!0;break}if(!h)return new d.e(1,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,n,i,o,s))return this._runAutoClosingOvertype(e,t,n,i,s);var p=this._isAutoClosingOpenCharType(t,n,i,s,!0);if(p)return this._runAutoClosingOpenCharType(e,t,n,i,s,!0,p);if(this._isSurroundSelectionType(t,n,i,s))return this._runSurroundSelectionType(e,t,n,i,s);if(this._isTypeInterceptorElectricChar(t,n,i)){var f=this._typeInterceptorElectricChar(e,t,n,i[0],s);if(f)return f}var g=[];for(l=0,u=i.length;l<u;l++)g[l]=new r.a(i[l],s);var m=1!==e;return" "===s&&(m=!0),new d.e(1,g,{shouldPushStackElementBefore:m,shouldPushStackElementAfter:!1})},y.typeWithoutInterceptors=function(e,t,n,i,o){for(var s=[],a=0,l=i.length;a<l;a++)s[a]=new r.a(i[a],o);return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,s=n.length;o<s;o++){var l=n[o].positionLineNumber;if(1===l)i[o]=new r.e(new a.a(1,1,1,1),"\n");else{l--;var u=t.getLineMaxColumn(l);i[o]=this._enter(e,t,!1,new a.a(l,u,l,u))}}return i},y.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber,l=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new a.a(s,l,s,l))}return i},y.lineBreakInsert=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=this._enter(e,t,!0,n[o]);return i},y);function y(){}var b,_=(m(w,b=r.d),w.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.a(n.startLineNumber,n.endColumn-this._closeCharacter.length,n.endLineNumber,n.endColumn),this.enclosingRange=new a.a(n.startLineNumber,n.endColumn-this._openCharacter.length-this._closeCharacter.length,n.endLineNumber,n.endColumn),b.prototype.computeCursorState.call(this,e,t)},w);function w(e,t,n,i){var o=b.call(this,e,(n?t:"")+i,0,-i.length)||this;return o._openCharacter=t,o._closeCharacter=i,o.closeCharacterRange=null,o.enclosingRange=null,o}},function(e,t,n){"use strict";var i=n(445),o=n(465),r=n(960),s=n(772),a=n(961),l=n(443),u=(n(1356),n(505)),c=n(1092),d=l.a,h=(p.prototype.set=function(e,t){this.didEverRender&&this.keybinding===e&&p.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())},p.prototype.render=function(){if(l.t(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(l.q(this.domNode,d("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},p.prototype.renderPart=function(e,t,n){var i=c.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null==n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null==n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null==n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null==n?void 0:n.metaKey),i.separator);var o=t.keyLabel;o&&this.renderKey(e,o,Boolean(null==n?void 0:n.keyCode),"")},p.prototype.renderKey=function(e,t,n,i){l.q(e,d("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&l.q(e,d("span.monaco-keybinding-key-separator",void 0,i))},p.prototype.renderUnbound=function(e){l.q(e,d("span.monaco-keybinding-key",void 0,Object(i.a)("unbound","Unbound")))},p.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(u.e)(e.firstPart,t.firstPart)&&Object(u.e)(e.chordPart,t.chordPart)},p);function p(e,t,n){this.os=t,this.options=n,this.domNode=l.q(e,d(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}var f=n(452),g=n(459);n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return L}));var m,v=(m=function(e,t){return(m=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){function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=0,b=(_.prototype.getId=function(){return this.id},_.prototype.getLabel=function(){},_.prototype.getLabelOptions=function(){},_.prototype.getAriaLabel=function(){return Object(g.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},_.prototype.getDetail=function(){},_.prototype.getIcon=function(){},_.prototype.getDescription=function(){},_.prototype.getTooltip=function(){},_.prototype.getDescriptionTooltip=function(){},_.prototype.getKeybinding=function(){},_.prototype.isHidden=function(){return!!this.hidden},_.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},_.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},_.prototype.run=function(e,t){return!1},_);function _(e){void 0===e&&(e=[]),this.id=(y++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}var w,C=(v(S,w=b),S.prototype.getGroupLabel=function(){return this.groupLabel},S.prototype.setGroupLabel=function(e){this.groupLabel=e},S.prototype.showBorder=function(){return!!this.withBorder},S.prototype.setShowBorder=function(e){this.withBorder=e},S.prototype.getLabel=function(){return this.entry?this.entry.getLabel():w.prototype.getLabel.call(this)},S.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():w.prototype.getLabelOptions.call(this)},S.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():w.prototype.getAriaLabel.call(this)},S.prototype.getDetail=function(){return this.entry?this.entry.getDetail():w.prototype.getDetail.call(this)},S.prototype.getIcon=function(){return this.entry?this.entry.getIcon():w.prototype.getIcon.call(this)},S.prototype.getDescription=function(){return this.entry?this.entry.getDescription():w.prototype.getDescription.call(this)},S.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():w.prototype.getHighlights.call(this)},S.prototype.isHidden=function(){return this.entry?this.entry.isHidden():w.prototype.isHidden.call(this)},S.prototype.setHighlights=function(e,t,n){this.entry?this.entry.setHighlights(e,t,n):w.prototype.setHighlights.call(this,e,t,n)},S.prototype.run=function(e,t){return this.entry?this.entry.run(e,t):w.prototype.run.call(this,e,t)},S);function S(e,t,n){var i=w.call(this)||this;return i.entry=e,i.groupLabel=t,i.withBorder=n,i}var O=(x.prototype.hasActions=function(e,t){return!1},x.prototype.getActions=function(e,t){return null},x);function x(){}var k="quickOpenEntryGroup",E=(N.prototype.getHeight=function(e){return e.getDetail()?44:22},N.prototype.getTemplateId=function(e){return e instanceof C?k:"quickOpenEntry"},N.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");l.f(i,"sub-content"),t.appendChild(i);var o=l.a(".quick-open-row"),u=l.a(".quick-open-row"),c=l.a(".quick-open-entry",void 0,o,u);i.appendChild(c);var d=document.createElement("span");o.appendChild(d);var p=new r.a(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),g=document.createElement("span");o.appendChild(g),l.f(g,"quick-open-entry-keybinding");var m=new h(g,f.a),v=document.createElement("div");u.appendChild(v),l.f(v,"quick-open-entry-meta");var y,b=new a.a(v,!0);e===k&&(y=document.createElement("div"),l.f(y,"results-group"),t.appendChild(y)),l.f(t,"actions");var _=document.createElement("div");return l.f(_,"primary-action-bar"),t.appendChild(_),{container:t,entry:c,icon:d,label:p,detail:b,keybinding:m,group:y,actionBar:new s.a(_,{actionRunner:this.actionRunner})}},N.prototype.renderElement=function(e,t,n,i){this.actionProvider.hasActions(null,e)?l.f(n.container,"has-actions"):l.P(n.container,"has-actions"),n.actionBar.context=e;var o=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&o&&0<o.length?n.actionBar.push(o,{icon:!0,label:!1}):n.actionBar.isEmpty()||o&&0!==o.length||n.actionBar.clear(),e instanceof C&&e.getGroupLabel()?l.f(n.container,"has-group-label"):l.P(n.container,"has-group-label"),e instanceof C){var r=e,s=n;r.showBorder()?(l.f(s.container,"results-group-separator"),i.pickerGroupBorder&&(s.container.style.borderTopColor=i.pickerGroupBorder.toString())):(l.P(s.container,"results-group-separator"),s.container.style.borderTopColor="");var a=r.getGroupLabel()||"";s.group&&(s.group.textContent=a,i.pickerGroupForeground&&(s.group.style.color=i.pickerGroupForeground.toString()))}if(e instanceof b){var u=e.getHighlights(),c=u[0],d=u[1],h=u[2],p=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=p;var f=e.getLabelOptions()||Object.create(null);f.matches=c||[],f.title=e.getTooltip(),f.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),f.descriptionMatches=d||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),f),n.detail.set(e.getDetail(),h),n.keybinding.set(e.getKeybinding())}},N.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},N);function N(e,t){void 0===e&&(e=new O),this.actionProvider=e,this.actionRunner=t}var L=(Object.defineProperty(D.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),D.prototype.getId=function(e){return e.getId()},D.prototype.getLabel=function(e){return o.o(e.getLabel())},D.prototype.getAriaLabel=function(e){return e.getAriaLabel()?i.a("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):i.a("quickOpenAriaLabel","picker")},D.prototype.isVisible=function(e){return!e.isHidden()},D.prototype.run=function(e,t,n){return e.run(t,n)},D);function D(e,t){void 0===e&&(e=[]),void 0===t&&(t=new O),this._entries=e,(this._dataSource=this)._renderer=new E(t),((this._filter=this)._runner=this)._accessibilityProvider=this}},function(e,t,n){"use strict";n(1333);var i=n(445),o=n(478),r=n(443),s=n(943),a=n(635),l=n(772),u=n(442),c=n(597),d=n(490),h=n(505),p=n(700),f=(g.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},g.prototype.next=function(){return this._navigator.next()},g.prototype.previous=function(){return this._navigator.previous()},g.prototype.current=function(){return this._navigator.current()},g.prototype.parent=function(){return null},g.prototype.first=function(){return this._navigator.first()},g.prototype.last=function(){return this._navigator.last()},g.prototype.has=function(e){return this._history.has(e)},g.prototype._onChange=function(){this._reduceToLimit();var e=this._elements;this._navigator=new p.b(e,0,e.length,e.length)},g.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},g.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var i=n[t];this._history.add(i)}},Object.defineProperty(g.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),g);function g(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}var m=n(688),v=n(686);n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return k}));var y,b,_=(y=function(e,t){return(y=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){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=r.a,C={inputBackground:d.a.fromHex("#3C3C3C"),inputForeground:d.a.fromHex("#CCCCCC"),inputValidationInfoBorder:d.a.fromHex("#55AAFF"),inputValidationInfoBackground:d.a.fromHex("#063B49"),inputValidationWarningBorder:d.a.fromHex("#B89500"),inputValidationWarningBackground:d.a.fromHex("#352A05"),inputValidationErrorBorder:d.a.fromHex("#BE1100"),inputValidationErrorBackground:d.a.fromHex("#5A1D1D")},S=(_(O,b=c.a),O.prototype.onBlur=function(){this._hideMessage()},O.prototype.onFocus=function(){this._showMessage()},O.prototype.setPlaceHolder=function(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e},O.prototype.setAriaLabel=function(e){(this.ariaLabel=e)?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(O.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return"number"==typeof this.cachedHeight?this.cachedHeight:r.G(this.element)},enumerable:!0,configurable:!0}),O.prototype.focus=function(){this.input.focus()},O.prototype.blur=function(){this.input.blur()},O.prototype.hasFocus=function(){return document.activeElement===this.input},O.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},O.prototype.enable=function(){this.input.removeAttribute("disabled")},O.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(O.prototype,"width",{get:function(){return r.H(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;this.mirror&&(t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)),this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),O.prototype.updateScrollDimensions=function(){if("number"==typeof this.cachedContentHeight&&"number"==typeof this.cachedHeight&&this.scrollableElement){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},O.prototype.showMessage=function(e,t){this.message=e,r.P(this.element,"idle"),r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(this.element,this.classForType(e.type));var n,o=this.stylesForType(this.message.type);this.element.style.border=o.border?"1px solid "+o.border:"",n=3===e.type?i.a("alertErrorMessage","Error: {0}",e.content):2===e.type?i.a("alertWarningMessage","Warning: {0}",e.content):i.a("alertInfoMessage","Info: {0}",e.content),a.a(n),(this.hasFocus()||t)&&this._showMessage()},O.prototype.hideMessage=function(){this.message=null,r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},O.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},O.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},O.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},O.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=r.H(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(i){if(!e.message)return null;t=r.q(i,w(".monaco-inputbox-container")),n();var o=(e.message.formatContent?Object(s.b):Object(s.c))(e.message.content,{inline:!0,className:"monaco-inputbox-message"});r.f(o,e.classForType(e.message.type));var a=e.stylesForType(e.message.type);return o.style.backgroundColor=a.background?a.background.toString():"",o.style.color=a.foreground?a.foreground.toString():"",o.style.border=a.border?"1px solid "+a.border:"",r.q(t,o),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},O.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},O.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),r.Y(this.input,"empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},O.prototype.updateMirror=function(){if(this.mirror){var e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},O.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},O.prototype.applyStyles=function(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n},O.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=r.G(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},O.prototype.insertAtCursor=function(e){var t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,o=t.value;null!==n&&null!==i&&(this.value=o.substr(0,n)+e+o.substr(i),t.setSelectionRange(n+1,n+1),this.layout())},O.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),b.prototype.dispose.call(this)},O);function O(e,t,n){var i=b.call(this)||this;i.state="idle",i.maxHeight=Number.POSITIVE_INFINITY,i._onDidChange=i._register(new u.a),i.onDidChange=i._onDidChange.event,i._onDidHeightChange=i._register(new u.a),i.onDidHeightChange=i._onDidHeightChange.event,i.contextViewProvider=t,i.options=n||Object.create(null),Object(h.g)(i.options,C,!1),i.message=null,i.placeholder=i.options.placeholder||"",i.ariaLabel=i.options.ariaLabel||"",i.inputBackground=i.options.inputBackground,i.inputForeground=i.options.inputForeground,i.inputBorder=i.options.inputBorder,i.inputValidationInfoBorder=i.options.inputValidationInfoBorder,i.inputValidationInfoBackground=i.options.inputValidationInfoBackground,i.inputValidationInfoForeground=i.options.inputValidationInfoForeground,i.inputValidationWarningBorder=i.options.inputValidationWarningBorder,i.inputValidationWarningBackground=i.options.inputValidationWarningBackground,i.inputValidationWarningForeground=i.options.inputValidationWarningForeground,i.inputValidationErrorBorder=i.options.inputValidationErrorBorder,i.inputValidationErrorBackground=i.options.inputValidationErrorBackground,i.inputValidationErrorForeground=i.options.inputValidationErrorForeground,i.options.validationOptions&&(i.validation=i.options.validationOptions.validation),i.element=r.q(e,w(".monaco-inputbox.idle"));var s=i.options.flexibleHeight?"textarea":"input",a=r.q(i.element,w(".wrapper"));if(i.input=r.q(a,w(s+".input.empty")),i.input.setAttribute("autocorrect","off"),i.input.setAttribute("autocapitalize","off"),i.input.setAttribute("spellcheck","false"),i.onfocus(i.input,(function(){return r.f(i.element,"synthetic-focus")})),i.onblur(i.input,(function(){return r.P(i.element,"synthetic-focus")})),i.options.flexibleHeight){i.maxHeight="number"==typeof i.options.flexibleMaxHeight?i.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,i.mirror=r.q(a,w("div.mirror")),i.mirror.innerHTML=" ",i.scrollableElement=new m.b(i.element,{vertical:1}),i.options.flexibleWidth&&(i.input.setAttribute("wrap","off"),i.mirror.style.whiteSpace="pre",i.mirror.style.wordWrap="initial"),r.q(e,i.scrollableElement.getDomNode()),i._register(i.scrollableElement),i._register(i.scrollableElement.onScroll((function(e){return i.input.scrollTop=e.scrollTop})));var c=u.b.filter(Object(v.a)(document,"selectionchange"),(function(){var e=document.getSelection();return(null==e?void 0:e.anchorNode)===a}));i._register(c(i.updateScrollDimensions,i)),i._register(i.onDidHeightChange(i.updateScrollDimensions,i))}else i.input.type=i.options.type||"text",i.input.setAttribute("wrap","off");return i.ariaLabel&&i.input.setAttribute("aria-label",i.ariaLabel),i.placeholder&&i.setPlaceHolder(i.placeholder),i.oninput(i.input,(function(){return i.onValueChange()})),i.onblur(i.input,(function(){return i.onBlur()})),i.onfocus(i.input,(function(){return i.onFocus()})),i.placeholder&&o.i&&i.onclick(i.input,(function(e){r.c.stop(e,!0),i.input.focus()})),i.ignoreGesture(i.input),setTimeout((function(){return i.updateMirror()}),0),i.options.actions&&(i.actionbar=i._register(new l.a(i.element)),i.actionbar.push(i.options.actions,{icon:!0,label:!1})),i.applyStyles(),i}var x,k=(_(E,x=S),E.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},E.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();(e=e&&(e===this.value?this.getNextValue():e))&&(this.value=e,a.c(this.value))},E.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();(e=e&&(e===this.value?this.getPreviousValue():e))&&(this.value=e,a.c(this.value))},E.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},E.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},E.prototype.getNextValue=function(){return this.history.next()||this.history.last()},E);function E(e,t,n){var i=x.call(this,e,t,n)||this;return i.history=new f(n.history,100),i}},function(e,t,n){"use strict";var i=(o.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},o.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},o);function o(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}var r=n(952);n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return g}));var s=(a.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},a);function a(e){this.source=e}function l(e,t,n){return new g(new s(e),new s(t)).ComputeDiff(n).changes}var u=(c.Assert=function(e,t){if(!e)throw new Error(t)},c);function c(){}var d=(h.Copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},h.Copy2=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},h);function h(){}var p=(f.prototype.MarkNextChange=function(){(0<this.m_originalCount||0<this.m_modifiedCount)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},f.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++},f.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++},f.prototype.getChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes},f.prototype.getReverseChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},f);function f(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}var g=(m._isStringArray=function(e){return 0<e.length&&"string"==typeof e[0]},m._getElements=function(e){var t=e.getElements();if(m._isStringArray(t)){for(var n=new Int32Array(t.length),i=0,o=t.length;i<o;i++)n[i]=Object(r.b)(t[i],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]},m.prototype.ElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])},m.prototype.OriginalElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])},m.prototype.ModifiedElementsAreEqual=function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])},m.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)},m.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}},m.prototype.ComputeDiffRecursive=function(e,t,n,o,r){for(r[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;e<=t&&n<=o&&this.ElementsAreEqual(t,o);)t--,o--;if(t<e||o<n)return n<=o?(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),[new i(e,0,n,o-n+1)]):e<=t?(u.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),[new i(e,t-e+1,n,0)]):(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),[]);var s=[0],a=[0],l=this.ComputeRecursionPoint(e,t,n,o,s,a,r),c=s[0],d=a[0];if(null!==l)return l;if(r[0])return[new i(e,t-e+1,n,o-n+1)];var h,p=this.ComputeDiffRecursive(e,c,n,d,r);return h=r[0]?[new i(c+1,t-(c+1)+1,d+1,o-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,o,r),this.ConcatenateChanges(p,h)},m.prototype.WALKTRACE=function(e,t,n,o,r,s,a,l,u,c,d,h,f,g,m,v,y,b){for(var _,w=null,C=new p,S=t,O=n,x=f[0]-v[0]-o,k=-1073741824,E=this.m_forwardHistory.length-1;x=(M=x+e)===S||M<O&&u[M-1]<u[M+1]?(g=(d=u[M+1])-x-o,d<k&&C.MarkNextChange(),k=d,C.AddModifiedElement(d+1,g),M+1-e):(g=(d=u[M-1]+1)-x-o,d<k&&C.MarkNextChange(),k=d-1,C.AddOriginalElement(d,g+1),M-1-e),0<=E&&(e=(u=this.m_forwardHistory[E])[0],S=1,O=u.length-1),-1<=--E;);if(_=C.getReverseChanges(),b[0]){var N=f[0]+1,L=v[0]+1;if(null!==_&&0<_.length){var D=_[_.length-1];N=Math.max(N,D.getOriginalEnd()),L=Math.max(L,D.getModifiedEnd())}w=[new i(N,h-N+1,L,m-L+1)]}else{C=new p,S=s,O=a,x=f[0]-v[0]-l,k=1073741824,E=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var M;x=(M=x+r)===S||M<O&&c[M-1]>=c[M+1]?(g=(d=c[M+1]-1)-x-l,k<d&&C.MarkNextChange(),k=d+1,C.AddOriginalElement(d+1,g+1),M+1-r):(g=(d=c[M-1])-x-l,k<d&&C.MarkNextChange(),k=d,C.AddModifiedElement(d+1,g+1),M-1-r),0<=E&&(r=(c=this.m_reverseHistory[E])[0],S=1,O=c.length-1)}while(-1<=--E);w=C.getChanges()}return this.ConcatenateChanges(_,w)},m.prototype.ComputeRecursionPoint=function(e,t,n,o,r,s,a){var l=0,u=0,c=0,h=0,p=0,f=0;e--,n--,s[r[0]=0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g=t-e+(o-n),m=1+g,v=new Int32Array(m),y=new Int32Array(m),b=o-n,_=t-e,w=e-n,C=t-o,S=(_-b)%2==0;v[b]=e,y[_]=t,a[0]=!1;for(var O=1;O<=g/2+1;O++){var x=0,k=0;c=this.ClipDiagonalBound(b-O,O,b,m),h=this.ClipDiagonalBound(b+O,O,b,m);for(var E=c;E<=h;E+=2){u=(l=E===c||E<h&&v[E-1]<v[E+1]?v[E+1]:v[E-1]+1)-(E-b)-w;for(var N=l;l<t&&u<o&&this.ElementsAreEqual(l+1,u+1);)l++,u++;if(x+k<(v[E]=l)+u&&(x=l,k=u),!S&&Math.abs(E-_)<=O-1&&l>=y[E])return r[0]=l,s[0]=u,N<=y[E]&&O<=1448?this.WALKTRACE(b,c,h,w,_,p,f,C,v,y,l,t,r,u,o,s,S,a):null}var L=(x-e+(k-n)-O)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,L))return a[0]=!0,r[0]=x,s[0]=k,0<L&&O<=1448?this.WALKTRACE(b,c,h,w,_,p,f,C,v,y,l,t,r,u,o,s,S,a):[new i(++e,t-e+1,++n,o-n+1)];for(p=this.ClipDiagonalBound(_-O,O,_,m),f=this.ClipDiagonalBound(_+O,O,_,m),E=p;E<=f;E+=2){for(u=(l=E===p||E<f&&y[E-1]>=y[E+1]?y[E+1]-1:y[E-1])-(E-_)-C,N=l;e<l&&n<u&&this.ElementsAreEqual(l,u);)l--,u--;if(y[E]=l,S&&Math.abs(E-b)<=O&&l<=v[E])return r[0]=l,s[0]=u,N>=v[E]&&O<=1448?this.WALKTRACE(b,c,h,w,_,p,f,C,v,y,l,t,r,u,o,s,S,a):null}if(O<=1447){var D=new Int32Array(h-c+2);D[0]=b-c+1,d.Copy2(v,c,D,1,h-c+1),this.m_forwardHistory.push(D),(D=new Int32Array(f-p+2))[0]=_-p+1,d.Copy2(y,p,D,1,f-p+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(b,c,h,w,_,p,f,C,v,y,l,t,r,u,o,s,S,a)},m.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){for(var n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=0<n.originalLength,s=0<n.modifiedLength;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(t=e.length-1;0<=t;t--){if(n=e[t],(o=i=0)<t){var l=e[t-1];0<l.originalLength&&(i=l.originalStart+l.originalLength),0<l.modifiedLength&&(o=l.modifiedStart+l.modifiedLength)}r=0<n.originalLength,s=0<n.modifiedLength;for(var u=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(h<i||p<o)break;if(r&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(p,p+n.modifiedLength))break;var f=this._boundaryScore(h,n.originalLength,p,n.modifiedLength);c<f&&(c=f,u=d)}n.originalStart-=u,n.modifiedStart-=u}return e},m.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},m.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},m.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},m.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},m.prototype._boundaryScore=function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)},m.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return 0<t.length?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return d.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],d.Copy(t,1,i,e.length,t.length-1),i}return i=new Array(e.length+t.length),d.Copy(e,0,i,0,e.length),d.Copy(t,0,i,e.length,t.length),i},m.prototype.ChangesOverlap=function(e,t,n){if(u.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),u.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,r=e.originalLength,s=e.modifiedStart,a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,s,a),!0}return n[0]=null,!1},m.prototype.ClipDiagonalBound=function(e,t,n,i){if(0<=e&&e<i)return e;var o=t%2==0;return e<0?o==(n%2==0)?0:1:o==((i-n-1)%2==0)?i-1:i-2},m);function m(e,t,n){void 0===n&&(n=null),this.ContinueProcessingPredicate=n;var i=m._getElements(e),o=i[0],r=i[1],s=i[2],a=m._getElements(t),l=a[0],u=a[1],c=a[2];this._hasStrings=s&&c,this._originalStringElements=o,this._originalElementsOrHash=r,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}},,,function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",(function(){return u}));var i,o,r=n(445),s=n(635),a=n(449),l=n(945),u=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(c,o=a.b),c.prototype.run=function(e,t){var n=!l.b.getTabFocusMode();l.b.setTabFocusMode(n),n?Object(s.a)(r.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(s.a)(r.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},c.ID="editor.action.toggleTabFocusMode",c);function c(){return o.call(this,{id:c.ID,label:r.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}Object(a.f)(u)},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorDetector",(function(){return y}));var i,o,r=n(453),s=n(490),a=n(446),l=n(952),u=n(439),c=n(449),d=n(504),h=n(440),p=n(495),f=n(454),g=n(1080),m=n(573),v=function(e,t){return function(n,i){t(n,i,e)}},y=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(b,o=u.a),b.prototype.isEnabled=function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){var i=n.colorDecorators;if(i&&void 0!==i.enable&&!i.enable)return i.enable}return this._editor.getOption(12)},b.get=function(e){return e.getContribution(this.ID)},b.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),o.prototype.dispose.call(this)},b.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var t=this._editor.getModel();t&&f.c.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(t){e._timeoutTimer||(e._timeoutTimer=new r.e,e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),b.RECOMPUTE_TIME))}))),this.beginCompute())}},b.prototype.beginCompute=function(){var e=this;this._computePromise=Object(r.f)((function(t){var n=e._editor.getModel();return n?Object(g.b)(n,t):Promise.resolve([])})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),a.e)},b.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},b.prototype.updateDecorations=function(e){var t=this,n=e.map((function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.a.EMPTY}}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach((function(n,i){return t._colorDatas.set(n,e[i])}))},b.prototype.updateColorDecorators=function(e){for(var t=this,n=[],i={},o=0;o<e.length&&n.length<500;o++){var r=e[o].colorInfo.color,a=r.red,u=r.green,c=r.blue,d=r.alpha,h=new s.c(Math.round(255*a),Math.round(255*u),Math.round(255*c),d),p=Object(l.a)(h).toString(16),f="rgba("+h.r+", "+h.g+", "+h.b+", "+h.a+")",g="colorBox-"+p;this._decorationsTypes.has(g)||i[g]||this._codeEditorService.registerDecorationType(g,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:f},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),i[g]=!0,n.push({range:{startLineNumber:e[o].colorInfo.range.startLineNumber,startColumn:e[o].colorInfo.range.startColumn,endLineNumber:e[o].colorInfo.range.endLineNumber,endColumn:e[o].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(g,!0)})}this._decorationsTypes.forEach((function(e){i[e]||t._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},b.prototype.removeAllDecorations=function(){var e=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach((function(t){e._codeEditorService.removeDecorationType(t)}))},b.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(h.a.fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===i.length?null:this._colorDatas.get(i[0].id)},b.ID="editor.contrib.colorDetector",b.RECOMPUTE_TIME=1e3,b=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([v(1,d.a),v(2,m.a)],b));function b(e,t,n){var i=o.call(this)||this;return i._editor=e,i._codeEditorService=t,i._configurationService=n,i._localToDispose=i._register(new u.b),i._decorationsIds=[],i._colorDatas=new Map,i._colorDecoratorIds=[],i._decorationsTypes=new Set,i._register(e.onDidChangeModel((function(e){i._isEnabled=i.isEnabled(),i.onModelChanged()}))),i._register(e.onDidChangeModelLanguage((function(e){return i.onModelChanged()}))),i._register(f.c.onDidChange((function(e){return i.onModelChanged()}))),i._register(e.onDidChangeConfiguration((function(e){var t=i._isEnabled;i._isEnabled=i.isEnabled(),t!==i._isEnabled&&(i._isEnabled?i.onModelChanged():i.removeAllDecorations())}))),i._timeoutTimer=null,i._computePromise=null,i._isEnabled=i.isEnabled(),i.onModelChanged(),i}Object(c.h)(y.ID,y)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return C})),n(1366);var i=n(445),o=n(453),r=n(446),s=n(795),a=n(778),l=n(440),u=n(454),c=n(449),d=n(1093),h=n(439),p=n(787),f=n(451),g=n(461),m=n(761),v=n(1053),y=n(1094),b=n(450),_=n(465),w=function(e,t){return function(n,i){t(n,i,e)}},C=(S.get=function(e){return e.getContribution(S.ID)},S.prototype.startFindDefinitionFromCursor=function(e){var t=this;return this.startFindDefinition(e).then((function(){t.toUnhookForKeyboard.add(t.editor.onDidChangeCursorPosition((function(){t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear()}))),t.toUnhookForKeyboard.add(t.editor.onKeyDown((function(e){e&&(t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear())})))}))},S.prototype.startFindDefinitionFromMouse=function(e,t){if(!(9===e.target.type&&0<this.linkDecorations.length)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}},S.prototype.startFindDefinition=function(e){var t,n=this;this.toUnhookForKeyboard.clear();var a=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!a)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===a.startColumn&&this.currentWordAtPosition.endColumn===a.endColumn&&this.currentWordAtPosition.word===a.word)return Promise.resolve(0);this.currentWordAtPosition=a;var u=new m.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(o.f)((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&u.validate(n.editor))if(1<t.length)n.addDecoration(new l.a(e.lineNumber,a.startColumn,e.lineNumber,a.endColumn),(new s.a).appendText(i.a("multipleResults","Click to show {0} definitions.",t.length)));else{var o=t[0];if(!o.uri)return;n.textModelResolverService.createModelReference(o.uri).then((function(t){if(t.object&&t.object.textEditorModel){var i=t.object.textEditorModel,r=o.range.startLineNumber;if(r<1||r>i.getLineCount())t.dispose();else{var u,c=n.getPreviewValue(i,r,o);u=o.originSelectionRange?l.a.lift(o.originSelectionRange):new l.a(e.lineNumber,a.startColumn,e.lineNumber,a.endColumn);var d=n.modeService.getModeIdByFilepathOrFirstLine(i.uri);n.addDecoration(u,(new s.a).appendCodeblock(d||"",c)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,r.e)},S.prototype.getPreviewValue=function(e,t,n){var i=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(e,t);return i.endLineNumber-i.startLineNumber>=S.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,i)},S.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=t+1;o<n.endLineNumber;o++){var r=e.getLineFirstNonWhitespaceColumn(o);i=Math.min(i,r)}return e.getValueInRange(n).replace(new RegExp("^\\s{"+(i-1)+"}","gm"),"").trim()},S.prototype.getPreviewRangeBasedOnIndentation=function(e,t){for(var n=e.getLineFirstNonWhitespaceColumn(t),i=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),o=t+1;o<i&&n!==e.getLineFirstNonWhitespaceColumn(o);o++);return new l.a(t,1,o+1,1)},S.prototype.getPreviewRangeBasedOnBrackets=function(e,t){for(var n=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),i=[],o=!0,r=e.findNextBracket(new b.a(t,1));null!==r;){if(0===i.length)i.push(r);else{var s=i[i.length-1];if(s.open[0]===r.open[0]&&s.isOpen&&!r.isOpen?i.pop():i.push(r),0===i.length){if(!o)return new l.a(t,1,r.range.endLineNumber+1,1);o=!1}}var a=e.getLineMaxColumn(t),u=r.range.endLineNumber,c=r.range.endColumn;if(a===r.range.endColumn&&(u++,c=1),n<u)return new l.a(t,1,n+1,1);r=e.findNextBracket(new b.a(u,c))}return new l.a(t,1,n+1,1)},S.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])},S.prototype.removeLinkDecorations=function(){0<this.linkDecorations.length&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},S.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&u.f.has(this.editor.getModel())},S.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?Object(d.b)(n,e,t):Promise.resolve(null)},S.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e);var i=new v.DefinitionAction({openToSide:t,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext((function(e){return i.run(e,n.editor)}))},S.prototype.dispose=function(){this.toUnhook.dispose()},S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([w(1,p.a),w(2,a.a)],S));function S(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new h.b,this.toUnhookForKeyboard=new h.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;var o=new y.a(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i.startFindDefinitionFromMouse(t,Object(_.n)(n))}))),this.toUnhook.add(o.onExecute((function(e){i.isEnabled(e)&&i.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){i.removeLinkDecorations()}),(function(e){i.removeLinkDecorations(),Object(r.e)(e)}))}))),this.toUnhook.add(o.onCancel((function(){i.removeLinkDecorations(),i.currentWordAtPosition=null})))}Object(c.h)(C.ID,C),Object(f.e)((function(e,t){var n=e.getColor(g.n);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return y})),n.d(t,"WordLeftCommand",(function(){return w})),n.d(t,"WordRightCommand",(function(){return O})),n.d(t,"CursorWordStartLeft",(function(){return E})),n.d(t,"CursorWordEndLeft",(function(){return D})),n.d(t,"CursorWordLeft",(function(){return I})),n.d(t,"CursorWordStartLeftSelect",(function(){return R})),n.d(t,"CursorWordEndLeftSelect",(function(){return B})),n.d(t,"CursorWordLeftSelect",(function(){return z})),n.d(t,"CursorWordAccessibilityLeft",(function(){return U})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return Y})),n.d(t,"CursorWordStartRight",(function(){return $})),n.d(t,"CursorWordEndRight",(function(){return ee})),n.d(t,"CursorWordRight",(function(){return ie})),n.d(t,"CursorWordStartRightSelect",(function(){return se})),n.d(t,"CursorWordEndRightSelect",(function(){return ue})),n.d(t,"CursorWordRightSelect",(function(){return he})),n.d(t,"CursorWordAccessibilityRight",(function(){return ge})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return ye})),n.d(t,"DeleteWordCommand",(function(){return we})),n.d(t,"DeleteWordLeftCommand",(function(){return Oe})),n.d(t,"DeleteWordRightCommand",(function(){return Ee})),n.d(t,"DeleteWordStartLeft",(function(){return De})),n.d(t,"DeleteWordEndLeft",(function(){return Ie})),n.d(t,"DeleteWordLeft",(function(){return Re})),n.d(t,"DeleteWordStartRight",(function(){return Be})),n.d(t,"DeleteWordEndRight",(function(){return ze})),n.d(t,"DeleteWordRight",(function(){return Ue}));var i,o,r=n(449),s=n(794),a=n(555),l=n(954),u=n(823),c=n(450),d=n(440),h=n(466),p=n(469),f=n(759),g=n(456),m=n(530),v=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=(v(b,o=r.c),b.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Object(u.a)(t.getOption(96)),r=t.getModel(),s=t.getSelections().map((function(e){var t=new c.a(e.positionLineNumber,e.positionColumn),n=i._move(o,r,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)}));if(t._getCursors().setStates("moveWordCommand",0,s.map((function(e){return a.d.fromModelSelection(e)}))),1===s.length){var l=new c.a(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(l,0)}}},b.prototype._moveTo=function(e,t,n){return n?new h.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new h.a(t.lineNumber,t.column,t.lineNumber,t.column)},b);function b(e){var t=o.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t._wordNavigationType=e.wordNavigationType,t}var _,w=(v(C,_=y),C.prototype._move=function(e,t,n,i){return l.a.moveWordLeft(e,t,n,i)},C);function C(){return null!==_&&_.apply(this,arguments)||this}var S,O=(v(x,S=y),x.prototype._move=function(e,t,n,i){return l.a.moveWordRight(e,t,n,i)},x);function x(){return null!==S&&S.apply(this,arguments)||this}var k,E=(v(N,k=w),N);function N(){return k.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}var L,D=(v(M,L=w),M);function M(){return L.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}var T,I=(v(P,T=w),P);function P(){return T.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}var A,R=(v(j,A=w),j);function j(){return A.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}var F,B=(v(W,F=w),W);function W(){return F.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}var V,z=(v(H,V=w),H);function H(){return V.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}var q,U=(v(K,q=w),K.prototype._move=function(e,t,n,i){return q.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},K);function K(){return q.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2063},weight:101}})||this}var G,Y=(v(Z,G=w),Z.prototype._move=function(e,t,n,i){return G.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},Z);function Z(){return G.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3087},weight:101}})||this}var X,$=(v(J,X=O),J);function J(){return X.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}var Q,ee=(v(te,Q=O),te);function te(){return Q.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}var ne,ie=(v(oe,ne=O),oe);function oe(){return ne.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}var re,se=(v(ae,re=O),ae);function ae(){return re.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}var le,ue=(v(ce,le=O),ce);function ce(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}var de,he=(v(pe,de=O),pe);function pe(){return de.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}var fe,ge=(v(me,fe=O),me.prototype._move=function(e,t,n,i){return fe.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},me);function me(){return fe.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2065},weight:101}})||this}var ve,ye=(v(be,ve=O),be.prototype._move=function(e,t,n,i){return ve.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},be);function be(){return ve.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3089},weight:101}})||this}var _e,we=(v(Ce,_e=r.c),Ce.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Object(u.a)(t.getOption(96)),r=t.getModel(),a=t.getSelections().map((function(e){var t=i._delete(o,r,e,i._whitespaceHeuristics,i._wordNavigationType);return new s.a(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}},Ce);function Ce(e){var t=_e.call(this,e)||this;return t._whitespaceHeuristics=e.whitespaceHeuristics,t._wordNavigationType=e.wordNavigationType,t}var Se,Oe=(v(xe,Se=we),xe.prototype._delete=function(e,t,n,i,o){return l.a.deleteWordLeft(e,t,n,i,o)||new d.a(1,1,1,1)},xe);function xe(){return null!==Se&&Se.apply(this,arguments)||this}var ke,Ee=(v(Ne,ke=we),Ne.prototype._delete=function(e,t,n,i,o){var r=l.a.deleteWordRight(e,t,n,i,o);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new d.a(s,a,s,a)},Ne);function Ne(){return null!==ke&&ke.apply(this,arguments)||this}var Le,De=(v(Me,Le=Oe),Me);function Me(){return Le.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:p.a.writable})||this}var Te,Ie=(v(Pe,Te=Oe),Pe);function Pe(){return Te.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:p.a.writable})||this}var Ae,Re=(v(je,Ae=Oe),je);function je(){return Ae.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}var Fe,Be=(v(We,Fe=Ee),We);function We(){return Fe.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:p.a.writable})||this}var Ve,ze=(v(He,Ve=Ee),He);function He(){return Ve.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:p.a.writable})||this}var qe,Ue=(v(Ke,qe=Ee),Ke);function Ke(){return qe.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}Object(r.g)(new E),Object(r.g)(new D),Object(r.g)(new I),Object(r.g)(new R),Object(r.g)(new B),Object(r.g)(new z),Object(r.g)(new $),Object(r.g)(new ee),Object(r.g)(new ie),Object(r.g)(new se),Object(r.g)(new ue),Object(r.g)(new he),Object(r.g)(new U),Object(r.g)(new Y),Object(r.g)(new ge),Object(r.g)(new ye),Object(r.g)(new De),Object(r.g)(new Ie),Object(r.g)(new Re),Object(r.g)(new Be),Object(r.g)(new ze),Object(r.g)(new Ue)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(453),r=n(439),s=n(444),a=n(449),l=n(469),u=n(794),c=n(450),d=n(440),h=n(466),p=n(947),f=n(599),g=n(495),m=n(461),v=n(451),y=(b.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.getCount=function(){return this._decorations.length},b.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},b.prototype.getStartPosition=function(){return this._startPosition},b.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},b.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return 0<=t?t+1:1},b.prototype.getCurrentMatchesPosition=function(e){for(var t=0,n=this._editor.getModel().getDecorationsInRange(e);t<n.length;t++){var i=n[t],o=i.options;if(o===b._FIND_MATCH_DECORATION||o===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 1},b.prototype.setCurrentFindMatch=function(e){var t=this,n=null,i=0;if(e)for(var o=0,r=this._decorations.length;o<r;o++){var s=this._editor.getModel().getDecorationRange(this._decorations[o]);if(e.equalsRange(s)){n=this._decorations[o],i=o+1;break}}return null===this._highlightedDecorationId&&null===n||this._editor.changeDecorations((function(e){if(null!==t._highlightedDecorationId&&(e.changeDecorationOptions(t._highlightedDecorationId,b._FIND_MATCH_DECORATION),t._highlightedDecorationId=null),null!==n&&(t._highlightedDecorationId=n,e.changeDecorationOptions(t._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==t._rangeHighlightDecorationId&&(e.removeDecoration(t._rangeHighlightDecorationId),t._rangeHighlightDecorationId=null),null!==n){var i=t._editor.getModel().getDecorationRange(n);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){var o=i.endLineNumber-1,r=t._editor.getModel().getLineMaxColumn(o);i=new d.a(i.startLineNumber,i.startColumn,o,r)}t._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i},b.prototype.set=function(e,t){var n=this;this._editor.changeDecorations((function(i){var o=b._FIND_MATCH_DECORATION,r=[];if(1e3<e.length){o=b._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var s=n._editor.getModel().getLineCount(),a=n._editor.getLayoutInfo().height/s,l=Math.max(2,Math.ceil(3/a)),u=e[0].range.startLineNumber,c=e[0].range.endLineNumber,h=1,p=e.length;h<p;h++){var f=e[h].range;c+l>=f.startLineNumber?f.endLineNumber>c&&(c=f.endLineNumber):(r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=f.startLineNumber,c=f.endLineNumber)}r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(e.length);for(h=0,p=e.length;h<p;h++)g[h]={range:e[h].range,options:o};n._decorations=i.deltaDecorations(n._decorations,g),n._overviewRulerApproximateDecorations=i.deltaDecorations(n._overviewRulerApproximateDecorations,r),n._rangeHighlightDecorationId&&(i.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),n._findScopeDecorationId&&(i.removeDecoration(n._findScopeDecorationId),n._findScopeDecorationId=null),t&&(n._findScopeDecorationId=i.addDecoration(t,b._FIND_SCOPE_DECORATION))}))},b.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;0<=t;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},b.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],o=this._editor.getModel().getDecorationRange(i);if(o&&!(o.startLineNumber<e.lineNumber)){if(o.startLineNumber>e.lineNumber)return o;if(!(o.startColumn<e.column))return o}}return this._editor.getModel().getDecorationRange(this._decorations[0])},b.prototype._allDecorations=function(){var e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},b._CURRENT_FIND_MATCH_DECORATION=g.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g.a.register({stickiness:1,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center}}),b._RANGE_HIGHLIGHT_DECORATION=g.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=g.a.register({className:"findScope",isWholeLine:!0}),b);function b(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}var _=(w.prototype.getEditOperations=function(e,t){if(0<this._ranges.length){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort((function(e,t){return d.a.compareRangesUsingStarts(e.range,t.range)}));var o=[],r=n[0];for(i=1;i<n.length;i++)r.range.endLineNumber===n[i].range.startLineNumber&&r.range.endColumn===n[i].range.startColumn?(r.range=r.range.plusRange(n[i].range),r.text=r.text+n[i].text):(o.push(r),r=n[i]);o.push(r);for(var s=0,a=o;s<a.length;s++){var l=a[s];t.addEditOperation(l.range,l.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},w.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},w);function w(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}function C(e,t){if(e&&""!==e[0]){var n=S(e,t,"-"),i=S(e,t,"_");return n&&!i?O(e,t,"-"):!n&&i?O(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s.j(e[0][0])?t[0].toUpperCase()+t.substr(1):t}return t}function S(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}function O(e,t,n){var i=t.split(n),o=e[0].split(n),r="";return i.forEach((function(e,t){r+=C([o[t]],e)+n})),r.slice(0,-1)}var x=function(e){this.staticValue=e,this.kind=0},k=function(e){this.pieces=e,this.kind=1},E=(N.fromStaticValue=function(e){return new N([L.staticValue(e)])},Object.defineProperty(N.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),N.prototype.buildReplaceString=function(e,t){if(0===this._state.kind)return t?C(e,this._state.staticValue):this._state.staticValue;for(var n="",i=0,o=this._state.pieces.length;i<o;i++){var r=this._state.pieces[i];null===r.staticValue?n+=N._substitute(r.matchIndex,e):n+=r.staticValue}return n},N._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";0<e;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},N);function N(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new x(e[0].staticValue):this._state=new k(e):this._state=new x("")}var L=(D.staticValue=function(e){return new D(e,-1)},D.matchIndex=function(e){return new D(null,e)},D);function D(e,t){this.staticValue=e,this.matchIndex=t}var M=(T.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},T.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},T.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},T.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=L.matchIndex(e),this._lastCharIndex=t},T.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new E(this._result)},T);function T(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}var I=n(456),P=new I.d("findWidgetVisible",!1),A=new I.d("findInputFocussed",!1),R=new I.d("replaceInputFocussed",!1),j={primary:545,mac:{primary:2593}},F={primary:565,mac:{primary:2613}},B={primary:560,mac:{primary:2608}},W={primary:554,mac:{primary:2602}},V="editor.action.nextMatchFindAction",z="editor.action.previousMatchFindAction",H="closeFindWidget",q="toggleFindCaseSensitive",U="toggleFindWholeWord",K="toggleFindRegex",G="toggleFindInSelection",Y="editor.action.replaceOne",Z="editor.action.replaceAll",X=19999,$=(J.prototype.dispose=function(){this._isDisposed=!0,Object(r.f)(this._startSearchingTimer),this._toDispose.dispose()},J.prototype._onStateChanged=function(e){var t=this;this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))},J._getSearchRange=function(e,t){return t||e.getFullModelRange()},J.prototype.research=function(e,t){var n=null;null!==(n=void 0!==t?t:this._decorations.getFindScope())&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new d.a(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d.a(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,X);this._decorations.set(i,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},J.prototype._hasMatches=function(){return 0<this._state.matchesCount},J.prototype._cannotFind=function(){if(this._hasMatches())return!1;var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0},J.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},J.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new c.a(n,i)},J.prototype._moveToPrevMatch=function(e,t){if(void 0===t&&(t=!1),this._decorations.getCount()<X){var n=this._decorations.matchBeforePosition(e);return n&&n.isEmpty()&&n.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),n=this._decorations.matchBeforePosition(e)),void(n&&this._setCurrentFindMatch(n))}if(!this._cannotFind()){var i=this._decorations.getFindScope(),o=J._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(e)&&(e=o.getEndPosition()),e.isBefore(o.getStartPosition())&&(e=o.getEndPosition());var r=e.lineNumber,s=e.column,a=this._editor.getModel(),l=new c.a(r,s),u=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(u&&u.range.isEmpty()&&u.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),u=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),u)return t||o.containsRange(u.range)?void this._setCurrentFindMatch(u.range):this._moveToPrevMatch(u.range.getStartPosition(),!0)}},J.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},J.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new c.a(n,i)},J.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<X){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},J.prototype._getNextMatch=function(e,t,n,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),r=J._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());var s=e.lineNumber,a=e.column,l=this._editor.getModel(),u=new c.a(s,a),d=l.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t);return n&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(u)&&(u=this._nextSearchPosition(u),d=l.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t)),d?i||r.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),t,n,!0):null},J.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},J.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new E(null);for(var t=new M(e),n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);if(92!==o){if(36===o){if(i<=++n)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var r=a-48;if(n+1<i){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(r,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(r,n+1);continue}}}else{if(i<=++n)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1)}}}return t.finalize()}(this._state.replaceString):E.fromStaticValue(this._state.replaceString)},J.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),o=new u.a(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new c.a(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},J.prototype._findMatches=function(e,t,n){var i=J._getSearchRange(this._editor.getModel(),e);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t,n)},J.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=X?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},J.prototype._largeReplaceAll=function(){var e=new p.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="mu";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,o=this._editor.getModel(),r=o.getValue(1),s=o.getFullModelRange(),a=this._getReplacePattern(),l=this._state.preserveCase;i=a.hasReplacementPatterns||l?r.replace(t,(function(){return a.buildReplaceString(arguments,l)})):r.replace(t,a.buildReplaceString(null,l));var c=new u.b(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}},J.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],o=0,r=n.length;o<r;o++)i[o]=t.buildReplaceString(n[o].matches,this._state.preserveCase);var s=new _(this._editor.getSelection(),n.map((function(e){return e.range})),i);this._executeEditorCommand("replaceAll",s)},J.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824).map((function(e){return new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),n=this._editor.getSelection(),i=0,o=t.length;i<o;i++)if(t[i].equalsRange(n)){t=[n].concat(t.slice(0,i)).concat(t.slice(i+1));break}this._editor.setSelections(t)}},J.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},J);function J(e,t){var n=this;this._toDispose=new r.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new o.e,this._decorations=new y(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new o.d((function(){return n.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return n._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}var Q,ee,te=n(443),ne=(n(1330),n(597)),ie=n(490),oe=n(442),re=n(505),se=(Q=function(e,t){return(Q=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){function n(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae={inputActiveOptionBorder:ie.a.fromHex("#007ACC00"),inputActiveOptionBackground:ie.a.fromHex("#0E639C50")},le=(se(ue,ee=ne.a),Object.defineProperty(ue.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),ue.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(ue.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),ue.prototype.width=function(){return 22},ue.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},ue.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},ue.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},ue.prototype.disable=function(){te.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},ue);function ue(e){var t=ee.call(this)||this;return t._onChange=t._register(new oe.a),t.onChange=t._onChange.event,t._onKeyDown=t._register(new oe.a),t.onKeyDown=t._onKeyDown.event,t._opts=re.c(e),re.g(t._opts,ae,!1),t._checked=t._opts.isChecked,t.domNode=document.createElement("div"),t.domNode.title=t._opts.title,t.domNode.className="monaco-custom-checkbox codicon "+(t._opts.actionClassName||"")+" "+(t._checked?"checked":"unchecked"),t.domNode.tabIndex=0,t.domNode.setAttribute("role","checkbox"),t.domNode.setAttribute("aria-checked",String(t._checked)),t.domNode.setAttribute("aria-label",t._opts.title),t.applyStyles(),t.onclick(t.domNode,(function(e){t.checked=!t._checked,t._onChange.fire(!1),e.preventDefault()})),t.ignoreGesture(t.domNode),t.onkeydown(t.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return t.checked=!t._checked,t._onChange.fire(!0),void e.preventDefault();t._onKeyDown.fire(e)})),t}var ce,de,he=(ce=function(e,t){return(ce=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){function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=i.a("caseDescription","Match Case"),fe=i.a("wordsDescription","Match Whole Word"),ge=i.a("regexDescription","Use Regular Expression"),me=(he(ve,de=le),ve);function ve(e){return de.call(this,{actionClassName:"codicon-case-sensitive",title:pe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var ye,be=(he(_e,ye=le),_e);function _e(e){return ye.call(this,{actionClassName:"codicon-whole-word",title:fe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var we,Ce=(he(Se,we=le),Se);function Se(e){return we.call(this,{actionClassName:"codicon-regex",title:ge+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Oe,xe,ke,Ee=((Oe=function(e,t){return(Oe=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){function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ne,xe=ne.a),Ne.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Ne.prototype.dispose=function(){this._editor.removeOverlayWidget(this),xe.prototype.dispose.call(this)},Ne.prototype.getId=function(){return Ne.ID},Ne.prototype.getDomNode=function(){return this._domNode},Ne.prototype.getPosition=function(){return{preference:0}},Ne.prototype.highlightFindOptions=function(){this._revealTemporarily()},Ne.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},Ne.prototype._onMouseOut=function(){this._hideSoon.schedule()},Ne.prototype._onMouseOver=function(){this._hideSoon.cancel()},Ne.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},Ne.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},Ne.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},Ne.ID="editor.contrib.findOptionsWidget",Ne);function Ne(e,t,n,i){var r=xe.call(this)||this;r._hideSoon=r._register(new o.d((function(){return r._hide()}),2e3)),r._isVisible=!1,r._editor=e,r._state=t,r._keybindingService=n,r._domNode=document.createElement("div"),r._domNode.className="findOptionsWidget",r._domNode.style.display="none",r._domNode.style.top="10px",r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true");var s=i.getTheme().getColor(m.Y),a=i.getTheme().getColor(m.X);return r.caseSensitive=r._register(new me({appendTitle:r._keybindingLabelFor(q),isChecked:r._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.caseSensitive.domNode),r._register(r.caseSensitive.onChange((function(){r._state.change({matchCase:r.caseSensitive.checked},!1)}))),r.wholeWords=r._register(new be({appendTitle:r._keybindingLabelFor(U),isChecked:r._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.wholeWords.domNode),r._register(r.wholeWords.onChange((function(){r._state.change({wholeWord:r.wholeWords.checked},!1)}))),r.regex=r._register(new Ce({appendTitle:r._keybindingLabelFor(K),isChecked:r._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.regex.domNode),r._register(r.regex.onChange((function(){r._state.change({isRegex:r.regex.checked},!1)}))),r._editor.addOverlayWidget(r),r._register(r._state.onFindReplaceStateChange((function(e){var t=!1;e.isRegex&&(r.regex.checked=r._state.isRegex,t=!0),e.wholeWord&&(r.wholeWords.checked=r._state.wholeWord,t=!0),e.matchCase&&(r.caseSensitive.checked=r._state.matchCase,t=!0),!r._state.isRevealed&&t&&r._revealTemporarily()}))),r._register(te.k(r._domNode,(function(e){return r._onMouseOut()}))),r._register(te.j(r._domNode,"mouseover",(function(e){return r._onMouseOver()}))),r._applyTheme(i.getTheme()),r._register(i.onThemeChange(r._applyTheme.bind(r))),r}function Le(e,t){return 1===e||2!==e&&t}Object(v.e)((function(e,t){var n=e.getColor(m.Q);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(m.S);i&&t.addRule(".monaco-editor .findOptionsWidget { color: "+i+"; }");var o=e.getColor(m.hc);o&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(m.e);r&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+r+"; }")}));var De,Me=((ke=function(e,t){return(ke=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){function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Te,De=r.a),Object.defineProperty(Te.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"isRegex",{get:function(){return Le(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"wholeWord",{get:function(){return Le(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"matchCase",{get:function(){return Le(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"preserveCase",{get:function(){return Le(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),Te.prototype.changeMatchInfo=function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1;0===t&&(e=0),t<e&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,o=i.matchesPosition=!0),this._matchesCount!==t&&(this._matchesCount=t,o=i.matchesCount=!0),void 0!==n&&(d.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,o=i.currentMatch=!0)),o&&this._onFindReplaceStateChange.fire(i)},Te.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase,l=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o=i.searchString=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o=i.replaceString=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o=i.isRevealed=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o=i.isReplaceRevealed=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&(d.a.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,o=i.searchScope=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),l!==this.preserveCase&&(o=!0,i.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(i)},Te);function Te(){var e=De.call(this)||this;return e._onFindReplaceStateChange=e._register(new oe.a),e.onFindReplaceStateChange=e._onFindReplaceStateChange.event,e._searchString="",e._replaceString="",e._isRevealed=!1,e._isReplaceRevealed=!1,e._isRegex=!1,e._isRegexOverride=0,e._wholeWord=!1,e._wholeWordOverride=0,e._matchCase=!1,e._matchCaseOverride=0,e._preserveCase=!1,e._preserveCaseOverride=0,e._searchScope=null,e._matchesPosition=0,e._matchesCount=0,e._currentMatch=null,e}n(1331);var Ie,Pe,Ae=n(635),Re=n(891),je=n(446),Fe=n(452),Be=(n(1086),n(976)),We=(Ie=function(e,t){return(Ie=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){function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ve=i.a("defaultLabel","input"),ze=(We(He,Pe=ne.a),He.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},He.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},He.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},He.prototype.setEnabled=function(e){e?this.enable():this.disable()},He.prototype.getValue=function(){return this.inputBox.value},He.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},He.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},He.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},He.prototype.getWholeWords=function(){return this.wholeWords.checked},He.prototype.setWholeWords=function(e){this.wholeWords.checked=e},He.prototype.getRegex=function(){return this.regex.checked},He.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},He.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},He.prototype.highlightFindOptions=function(){te.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,te.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},He.prototype.validate=function(){this.inputBox.validate()},He.prototype.clearMessage=function(){this.inputBox.hideMessage()},He);function He(e,t,n,i){var o=Pe.call(this)||this;o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new oe.a),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new oe.a),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new oe.a),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new oe.a),o._onKeyUp=o._register(new oe.a),o._onCaseSensitiveKeyDown=o._register(new oe.a),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new oe.a),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=t,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Ve,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var r=i.appendCaseSensitiveLabel||"",s=i.appendWholeWordsLabel||"",a=i.appendRegexLabel||"",l=i.history||[],u=!!i.flexibleHeight,c=!!i.flexibleWidth,d=i.flexibleMaxHeight;o.domNode=document.createElement("div"),te.f(o.domNode,"monaco-findInput"),o.inputBox=o._register(new Be.a(o.domNode,o.contextViewProvider,{placeholder:o.placeholder||"",ariaLabel:o.label||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:l,flexibleHeight:u,flexibleWidth:c,flexibleMaxHeight:d})),o.regex=o._register(new Ce({appendTitle:a,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.regex.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.regex.onKeyDown((function(e){o._onRegexKeyDown.fire(e)}))),o.wholeWords=o._register(new be({appendTitle:s,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.wholeWords.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o.caseSensitive=o._register(new me({appendTitle:r,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.caseSensitive.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.caseSensitive.onKeyDown((function(e){o._onCaseSensitiveKeyDown.fire(e)}))),o._showOptionButtons&&(o.inputBox.paddingRight=o.caseSensitive.width()+o.wholeWords.width()+o.regex.width());var h=[o.caseSensitive.domNode,o.wholeWords.domNode,o.regex.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=h.indexOf(document.activeElement);if(0<=t){var n=-1;e.equals(17)?n=(t+1)%h.length:e.equals(15)&&(n=0===t?h.length-1:t-1),e.equals(9)?h[t].blur():0<=n&&h[n].focus(),te.c.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=o._showOptionButtons?"block":"none",p.appendChild(o.caseSensitive.domNode),p.appendChild(o.wholeWords.domNode),p.appendChild(o.regex.domNode),o.domNode.appendChild(p),e&&e.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}var qe,Ue,Ke=n(788),Ge=(qe=function(e,t){return(qe=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){function n(){this.constructor=e}qe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ye=i.a("defaultLabel","input"),Ze=i.a("label.preserveCaseCheckbox","Preserve Case"),Xe=(Ge($e,Ue=le),$e);function $e(e){return Ue.call(this,{actionClassName:"codicon-preserve-case",title:Ze+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Je,Qe=(Ge(et,Je=ne.a),et.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},et.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},et.prototype.setEnabled=function(e){e?this.enable():this.disable()},et.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},et.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},et.prototype.select=function(){this.inputBox.select()},et.prototype.focus=function(){this.inputBox.focus()},et.prototype.getPreserveCase=function(){return this.preserveCase.checked},et.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},et.prototype.focusOnPreserve=function(){this.preserveCase.focus()},et.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(et.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),et.prototype.dispose=function(){Je.prototype.dispose.call(this)},et);function et(e,t,n,i){var o=Je.call(this)||this;o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o.cachedOptionsWidth=0,o._onDidOptionChange=o._register(new oe.a),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new oe.a),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new oe.a),o._onInput=o._register(new oe.a),o._onKeyUp=o._register(new oe.a),o._onPreserveCaseKeyDown=o._register(new oe.a),o.onPreserveCaseKeyDown=o._onPreserveCaseKeyDown.event,o.contextViewProvider=t,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Ye,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var r=i.history||[],s=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;o.domNode=document.createElement("div"),te.f(o.domNode,"monaco-findInput"),o.inputBox=o._register(new Be.a(o.domNode,o.contextViewProvider,{ariaLabel:o.label||"",placeholder:o.placeholder||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:r,flexibleHeight:s,flexibleWidth:a,flexibleMaxHeight:l})),o.preserveCase=o._register(new Xe({appendTitle:"",isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.preserveCase.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.preserveCase.onKeyDown((function(e){o._onPreserveCaseKeyDown.fire(e)}))),o._showOptionButtons?o.cachedOptionsWidth=o.preserveCase.width():o.cachedOptionsWidth=0;var u=[o.preserveCase.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=u.indexOf(document.activeElement);if(0<=t){var n=-1;e.equals(17)?n=(t+1)%u.length:e.equals(15)&&(n=0===t?u.length-1:t-1),e.equals(9)?u[t].blur():0<=n&&u[n].focus(),te.c.stop(e,!0)}}}));var c=document.createElement("div");return c.className="controls",c.style.display=o._showOptionButtons?"block":"none",c.appendChild(o.preserveCase.domNode),o.domNode.appendChild(c),e&&e.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}var tt,nt=(tt=function(e,t){return(tt=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){function n(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),it=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},ot=function(e,t){return function(n,i){t(n,i,e)}},rt="historyNavigationWidget",st="historyNavigationEnabled";function at(e,t){return e.getContext(document.activeElement).getValue(t)}function lt(e,t){var n,i,o,r=(n=t,e.createScoped(n.target));return i=r,o=t,rt,new I.d("historyNavigationWidget",o).bindTo(i),{scopedContextKeyService:r,historyNavigationEnablement:new I.d(st,!0).bindTo(r)}}var ut,ct=(nt(dt,ut=ze),dt=it([ot(3,I.c)],dt));function dt(e,t,n,i,o){void 0===o&&(o=!1);var r=ut.call(this,e,t,o,n)||this;return r._register(lt(i,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}var ht,pt=(nt(ft,ht=Qe),ft=it([ot(3,I.c)],ft));function ft(e,t,n,i,o){void 0===o&&(o=!1);var r=ht.call(this,e,t,o,n)||this;return r._register(lt(i,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}Ke.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:I.a.and(I.a.has(rt),I.a.equals(st,!0)),primary:16,secondary:[528],handler:function(e){var t=at(e.get(I.c),rt);t&&t.historyNavigator.showPreviousValue()}}),Ke.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:I.a.and(I.a.has(rt),I.a.equals(st,!0)),primary:18,secondary:[530],handler:function(e){var t=at(e.get(I.c),rt);t&&t.historyNavigator.showNextValue()}});var gt,mt=(gt=function(e,t){return(gt=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){function n(){this.constructor=e}gt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),vt=i.a("label.find","Find"),yt=i.a("placeholder.find","Find"),bt=i.a("label.previousMatchButton","Previous match"),_t=i.a("label.nextMatchButton","Next match"),wt=i.a("label.toggleSelectionFind","Find in selection"),Ct=i.a("label.closeButton","Close"),St=i.a("label.replace","Replace"),Ot=i.a("placeholder.replace","Replace"),xt=i.a("label.replaceButton","Replace"),kt=i.a("label.replaceAllButton","Replace All"),Et=i.a("label.toggleReplaceButton","Toggle Replace mode"),Nt=i.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",X),Lt=i.a("label.matchesLocation","{0} of {1}"),Dt=i.a("label.noResults","No Results"),Mt=69,Tt="ctrlEnterReplaceAll.windows.donotask",It=Fe.e?256:2048,Pt=function(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"};function At(e,t,n){var i=!!t.match(/\n/);n&&i&&0<n.selectionStart&&e.stopPropagation()}function Rt(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var jt,Ft=(mt(Bt,jt=ne.a),Bt.prototype.getId=function(){return Bt.ID},Bt.prototype.getDomNode=function(){return this._domNode},Bt.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},Bt.prototype._onStateChanged=function(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(68)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=te.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=0<this._state.searchString.length&&0===this._state.matchesCount;te.Y(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},Bt.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},Bt.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},Bt.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Mt+"px",this._state.matchesCount>=X?this._matchesCount.title=Nt:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),0<this._state.matchesCount){var t=String(this._state.matchesCount);this._state.matchesCount>=X&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s.r(Lt,n,t)}else e=Dt;this._matchesCount.appendChild(document.createTextNode(e)),Object(Ae.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),Mt=Math.max(Mt,this._matchesCount.clientWidth)},Bt.prototype._getAriaLabel=function(e,t,n){return e===Dt?""===n?i.a("ariaSearchNoResultEmpty","{0} found",e):i.a("ariaSearchNoResult","{0} found for {1}",e,n):t?i.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):i.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},Bt.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},Bt.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=0<this._state.searchString.length,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),te.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},Bt.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var n=!!t&&t.startLineNumber!==t.endLineNumber;this._toggleSelectionFind.checked=n}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){te.f(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&t){var o=this._codeEditor.getDomNode();if(o){var r=te.C(o),s=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=r.left+(s?s.left:0),l=s?s.top:0;if(this._viewZone&&l<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var u=te.F(this._domNode).left;u<a&&(i=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());u<r.left+(c?c.left:0)&&(i=!1)}}}this._showViewZone(i)}},Bt.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),te.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},Bt.prototype._layoutViewZone=function(){var e=this;if(this._codeEditor.getOption(28).addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((function(n){t.heightInPx=e._getHeight(),e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)}))}}else this._removeViewZone()},Bt.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible&&this._codeEditor.getOption(28).addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new Pt(0));var n=this._viewZone;this._codeEditor.changeViewZones((function(i){if(void 0!==t._viewZoneId){var o=t._getHeight();if(o===n.heightInPx)return;var r=o-n.heightInPx;return n.heightInPx=o,i.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r))}r=t._getHeight(),n.heightInPx=r,t._viewZoneId=i.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)}))}},Bt.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},Bt.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X),inputBackground:e.getColor(m.Z),inputForeground:e.getColor(m.bb),inputBorder:e.getColor(m.ab),inputValidationInfoBackground:e.getColor(m.fb),inputValidationInfoForeground:e.getColor(m.hb),inputValidationInfoBorder:e.getColor(m.gb),inputValidationWarningBackground:e.getColor(m.ib),inputValidationWarningForeground:e.getColor(m.kb),inputValidationWarningBorder:e.getColor(m.jb),inputValidationErrorBackground:e.getColor(m.cb),inputValidationErrorForeground:e.getColor(m.eb),inputValidationErrorBorder:e.getColor(m.db)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)},Bt.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible&&te.M(this._domNode)){var e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)te.f(this._domNode,"hiddenEditor");else{te.I(this._domNode,"hiddenEditor")&&te.P(this._domNode,"hiddenEditor");var t=e.width,n=e.minimapWidth,i=!1,o=!1,r=!1;if(this._resized&&419<te.H(this._domNode))return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=te.H(this._findInput.domNode));if(t<=447+n&&(o=!0),t<=447+n-Mt&&(r=!0),t+50<=447+n-Mt&&(i=!0),te.Y(this._domNode,"collapsed-find-widget",i),te.Y(this._domNode,"narrow-find-widget",r),te.Y(this._domNode,"reduced-find-widget",o),r||i||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();var s=this._findInput.inputBox.element.clientWidth;0<s&&(this._replaceInput.width=s)}else this._isReplaceVisible&&(this._replaceInput.width=te.H(this._findInput.domNode))}}},Bt.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+4},Bt.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},Bt.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},Bt.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},Bt.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},Bt.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d.a.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},Bt.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},Bt.prototype._onFindInputKeyDown=function(e){return e.equals(3|It)?(this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?At(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Rt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},Bt.prototype._onReplaceInputKeyDown=function(e){return e.equals(3|It)?(Fe.h&&Fe.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Tt,!0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?At(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Rt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},Bt.prototype.getHorizontalSashTop=function(e){return 0},Bt.prototype.getHorizontalSashLeft=function(e){return 0},Bt.prototype.getHorizontalSashWidth=function(e){return 500},Bt.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Bt.prototype._buildDomNode=function(){var e=this;this._findInput=this._register(new ct(null,this._contextViewProvider,{width:221,label:vt,placeholder:yt,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor(U),appendRegexLabel:this._keybindingLabelFor(K),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(t){return{content:t.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),Fe.d&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Vt({label:bt+this._keybindingLabelFor(z),className:"codicon codicon-arrow-up",onTrigger:function(){e._codeEditor.getAction(z).run().then(void 0,je.e)}})),this._nextBtn=this._register(new Vt({label:_t+this._keybindingLabelFor(V),className:"codicon codicon-arrow-down",onTrigger:function(){e._codeEditor.getAction(V).run().then(void 0,je.e)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new le({actionClassName:"codicon codicon-selection",title:wt+this._keybindingLabelFor(G),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Vt({label:Ct+this._keybindingLabelFor(H),className:"codicon codicon-close",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new pt(null,void 0,{label:St,placeholder:Ot,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.enabled?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new Vt({label:xt+this._keybindingLabelFor(Y),className:"codicon codicon-replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new Vt({label:kt+this._keybindingLabelFor(Z),className:"codicon codicon-replace-all",onTrigger:function(){e._controller.replaceAll()}}));var i=document.createElement("div");i.className="replace-part",i.appendChild(this._replaceInput.domNode);var o=document.createElement("div");o.className="replace-actions",i.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Vt({label:Et,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(i),this._resizeSash=new Re.a(this._domNode,this,{orientation:0}),this._resized=!1;var r=419;this._register(this._resizeSash.onDidStart((function(){r=te.H(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=r+t.startX-t.currentX;n<419||(parseFloat(te.z(e._domNode).maxWidth)||0)<n||(e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((function(){var t=te.H(e._domNode);if(!(t<419)){var n=419;if(!e._resized||419===t){var i=e._codeEditor.getLayoutInfo();n=i.width-28-i.minimapWidth-15,e._resized=!0}e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},Bt.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)},Bt.ID="editor.contrib.findWidget",Bt);function Bt(e,t,n,i,s,a,l,u,c){var d=jt.call(this)||this;return d._cachedHeight=null,d._codeEditor=e,d._controller=t,d._state=n,d._contextViewProvider=i,d._keybindingService=s,d._contextKeyService=a,d._storageService=u,d._notificationService=c,d._ctrlEnterReplaceAllWarningPrompted=!!u.getBoolean(Tt,0),d._isVisible=!1,d._isReplaceVisible=!1,d._ignoreChangeEvent=!1,d._updateHistoryDelayer=new o.a(500),d._register(Object(r.h)((function(){return d._updateHistoryDelayer.cancel()}))),d._register(d._state.onFindReplaceStateChange((function(e){return d._onStateChanged(e)}))),d._buildDomNode(),d._updateButtons(),d._tryUpdateWidgetWidth(),d._findInput.inputBox.layout(),d._register(d._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(68)&&(d._codeEditor.getOption(68)&&d._state.change({isReplaceRevealed:!1},!1),d._updateButtons()),e.hasChanged(107)&&d._tryUpdateWidgetWidth(),e.hasChanged(2)&&d.updateAccessibilitySupport(),e.hasChanged(28)){var t=d._codeEditor.getOption(28).addExtraSpaceOnTop;t&&!d._viewZone&&(d._viewZone=new Pt(0),d._showViewZone()),!t&&d._viewZone&&d._removeViewZone()}}))),d.updateAccessibilitySupport(),d._register(d._codeEditor.onDidChangeCursorSelection((function(){d._isVisible&&d._updateToggleSelectionFindButton()}))),d._register(d._codeEditor.onDidFocusEditorWidget((function(){if(d._isVisible){var e=d._controller.getGlobalBufferTerm();e&&e!==d._state.searchString&&(d._state.change({searchString:e},!0),d._findInput.select())}}))),d._findInputFocused=A.bindTo(a),d._findFocusTracker=d._register(te.Z(d._findInput.inputBox.inputElement)),d._register(d._findFocusTracker.onDidFocus((function(){d._findInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._findFocusTracker.onDidBlur((function(){d._findInputFocused.set(!1)}))),d._replaceInputFocused=R.bindTo(a),d._replaceFocusTracker=d._register(te.Z(d._replaceInput.inputBox.inputElement)),d._register(d._replaceFocusTracker.onDidFocus((function(){d._replaceInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._replaceFocusTracker.onDidBlur((function(){d._replaceInputFocused.set(!1)}))),d._codeEditor.addOverlayWidget(d),d._codeEditor.getOption(28).addExtraSpaceOnTop&&(d._viewZone=new Pt(0)),d._applyTheme(l.getTheme()),d._register(l.onThemeChange(d._applyTheme.bind(d))),d._register(d._codeEditor.onDidChangeModel((function(){d._isVisible&&(d._viewZoneId=void 0)}))),d._register(d._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?d._layoutViewZone():setTimeout((function(){d._layoutViewZone()}),0)}))),d}var Wt,Vt=(mt(zt,Wt=ne.a),Object.defineProperty(zt.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),zt.prototype.isEnabled=function(){return 0<=this._domNode.tabIndex},zt.prototype.focus=function(){this._domNode.focus()},zt.prototype.setEnabled=function(e){te.Y(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},zt.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},zt.prototype.toggleClass=function(e,t){te.Y(this._domNode,e,t)},zt);function zt(e){var t=Wt.call(this)||this;return t._opts=e,t._domNode=document.createElement("div"),t._domNode.title=t._opts.label,t._domNode.tabIndex=0,t._domNode.className="button "+t._opts.className,t._domNode.setAttribute("role","button"),t._domNode.setAttribute("aria-label",t._opts.label),t.onclick(t._domNode,(function(e){t._opts.onTrigger(),e.preventDefault()})),t.onkeydown(t._domNode,(function(e){if(e.equals(10)||e.equals(3))return t._opts.onTrigger(),void e.preventDefault();t._opts.onKeyDown&&t._opts.onKeyDown(e)})),t}Object(v.e)((function(e,t){function n(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")}n(".findMatch",e.getColor(m.t)),n(".currentFindMatch",e.getColor(m.r)),n(".findScope",e.getColor(m.v)),n(".find-widget",e.getColor(m.Q));var i=e.getColor(m.hc);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(m.u);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var r=e.getColor(m.s);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(m.w);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(m.e);a&&t.addRule(".monaco-editor .find-widget { border: 1px solid "+a+"; }");var l=e.getColor(m.S);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var u=e.getColor(m.U);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var c=e.getColor(m.T);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(m.R);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(m.V);h&&t.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+h+"; }")}));var Ht=n(955),qt=n(757),Ut=n(448),Kt=n(531),Gt=n(775),Yt=n(532);n.d(t,"getSelectionSearchString",(function(){return Qt})),n.d(t,"CommonFindController",(function(){return tn})),n.d(t,"FindController",(function(){return rn})),n.d(t,"StartFindAction",(function(){return ln})),n.d(t,"StartFindWithSelectionAction",(function(){return dn})),n.d(t,"MatchFindAction",(function(){return fn})),n.d(t,"NextMatchFindAction",(function(){return vn})),n.d(t,"NextMatchFindAction2",(function(){return _n})),n.d(t,"PreviousMatchFindAction",(function(){return Sn})),n.d(t,"PreviousMatchFindAction2",(function(){return kn})),n.d(t,"SelectionMatchFindAction",(function(){return Ln})),n.d(t,"NextSelectionMatchFindAction",(function(){return Tn})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return An})),n.d(t,"StartFindReplaceAction",(function(){return Fn}));var Zt,Xt=(Zt=function(e,t){return(Zt=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){function n(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$t=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Jt=function(e,t){return function(n,i){t(n,i,e)}};function Qt(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<524288)return e.getModel().getValueInRange(t);return null}var en,tn=(Xt(nn,en=r.a),nn.get=function(e){return e.getContribution(nn.ID)},nn.prototype.dispose=function(){this.disposeModel(),en.prototype.dispose.call(this)},nn.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},nn.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},nn.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},nn.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},nn.prototype.isFindInputFocused=function(){return!!A.getValue(this._contextKeyService)},nn.prototype.getState=function(){return this._state},nn.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},nn.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},nn.prototype.setSearchString=function(e){this._state.isRegex&&(e=s.p(e)),this._state.change({searchString:e},!1)},nn.prototype.highlightFindOptions=function(){},nn.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection&&(t=Qt(this._editor))&&(this._state.isRegex?n.searchString=s.p(t):n.searchString=t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(n.searchScope=i)}this._state.change(n,!1),this._model||(this._model=new $(this._editor,this._state))}},nn.prototype.start=function(e){this._start(e)},nn.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},nn.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},nn.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},nn.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},nn.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},nn.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},nn.prototype.setGlobalBufferTerm=function(e){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},nn.ID="editor.contrib.findController",nn=$t([Jt(1,I.c),Jt(2,Gt.a),Jt(3,Ht.a)],nn));function nn(e,t,n,i){var r=en.call(this)||this;return r._editor=e,r._findWidgetVisible=P.bindTo(t),r._contextKeyService=t,r._storageService=n,r._clipboardService=i,r._updateHistoryDelayer=new o.a(500),r._state=r._register(new Me),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange((function(e){return r._onStateChanged(e)}))),r._model=null,r._register(r._editor.onDidChangeModel((function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null,matchCase:r._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:r._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:r._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}))),r}var on,rn=(Xt(sn,on=tn),sn.prototype._start=function(e){this._widget||this._createFindWidget();var t=this._editor.getSelection(),n=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!t&&t.startLineNumber!==t.endLineNumber}e.updateSearchScope=n,on.prototype._start.call(this,e),2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput()},sn.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},sn.prototype._createFindWidget=function(){this._widget=this._register(new Ft(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Ee(this._editor,this._state,this._keybindingService,this._themeService))},sn=$t([Jt(1,qt.b),Jt(2,I.c),Jt(3,Kt.a),Jt(4,v.c),Jt(5,Yt.a),Jt(6,Gt.a),Jt(7,Object(Ut.d)(Ht.a))],sn));function sn(e,t,n,i,o,r,s,a){var l=on.call(this,e,n,s,a)||this;return l._contextViewService=t,l._keybindingService=i,l._themeService=o,l._notificationService=r,l._widget=null,l._findOptionsWidget=null,l}var an,ln=(Xt(un,an=a.b),un.prototype.run=function(e,t){var n=tn.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},un);function un(){return an.call(this,{id:"actions.find",label:i.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:17,group:"3_find",title:i.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}var cn,dn=(Xt(hn,cn=a.b),hn.prototype.run=function(e,t){var n=tn.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},hn);function hn(){return cn.call(this,{id:"actions.findWithSelection",label:i.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}var pn,fn=(Xt(gn,pn=a.b),gn.prototype.run=function(e,t){var n=tn.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},gn);function gn(){return null!==pn&&pn.apply(this,arguments)||this}var mn,vn=(Xt(yn,mn=fn),yn.prototype._run=function(e){return e.moveToNextMatch()},yn);function yn(){return mn.call(this,{id:V,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}var bn,_n=(Xt(wn,bn=fn),wn.prototype._run=function(e){return e.moveToNextMatch()},wn);function wn(){return bn.call(this,{id:V,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:I.a.and(l.a.focus,A),primary:3,weight:100}})||this}var Cn,Sn=(Xt(On,Cn=fn),On.prototype._run=function(e){return e.moveToPrevMatch()},On);function On(){return Cn.call(this,{id:z,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}var xn,kn=(Xt(En,xn=fn),En.prototype._run=function(e){return e.moveToPrevMatch()},En);function En(){return xn.call(this,{id:z,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:I.a.and(l.a.focus,A),primary:1027,weight:100}})||this}var Nn,Ln=(Xt(Dn,Nn=a.b),Dn.prototype.run=function(e,t){var n=tn.get(t);if(n){var i=Qt(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},Dn);function Dn(){return null!==Nn&&Nn.apply(this,arguments)||this}var Mn,Tn=(Xt(In,Mn=Ln),In.prototype._run=function(e){return e.moveToNextMatch()},In);function In(){return Mn.call(this,{id:"editor.action.nextSelectionMatchFindAction",label:i.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:2109,weight:100}})||this}var Pn,An=(Xt(Rn,Pn=Ln),Rn.prototype._run=function(e){return e.moveToPrevMatch()},Rn);function Rn(){return Pn.call(this,{id:"editor.action.previousSelectionMatchFindAction",label:i.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:3133,weight:100}})||this}var jn,Fn=(Xt(Bn,jn=a.b),Bn.prototype.run=function(e,t){if(t.hasModel()&&!t.getOption(68)){var n=tn.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getOption(28).seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getOption(28).seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},Bn);function Bn(){return jn.call(this,{id:"editor.action.startFindReplaceAction",label:i.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:17,group:"3_find",title:i.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}Object(a.h)(tn.ID,rn),Object(a.f)(ln),Object(a.f)(dn),Object(a.f)(vn),Object(a.f)(_n),Object(a.f)(Sn),Object(a.f)(kn),Object(a.f)(Tn),Object(a.f)(An),Object(a.f)(Fn);var Wn=a.c.bindToContribution(tn.get);Object(a.g)(new Wn({id:H,precondition:P,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.g)(new Wn({id:q,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:j.primary,mac:j.mac,win:j.win,linux:j.linux}})),Object(a.g)(new Wn({id:U,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(a.g)(new Wn({id:K,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:B.primary,mac:B.mac,win:B.win,linux:B.linux}})),Object(a.g)(new Wn({id:G,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:W.primary,mac:W.mac,win:W.win,linux:W.linux}})),Object(a.g)(new Wn({id:Y,precondition:P,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:3094}})),Object(a.g)(new Wn({id:Y,precondition:P,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:I.a.and(l.a.focus,R),primary:3}})),Object(a.g)(new Wn({id:Z,precondition:P,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:2563}})),Object(a.g)(new Wn({id:Z,precondition:P,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:I.a.and(l.a.focus,R),primary:void 0,mac:{primary:2051}}})),Object(a.g)(new Wn({id:"editor.action.selectAllMatches",precondition:P,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:515}}))},function(e,t,n){"use strict";n.r(t);var i,o=n(445),r=n(442),s=n(439),a=n(456),l=n(773),u=n(440),c=n(449),d=n(451),h=n(469),p=(n(1335),n(443)),f=n(461),g=n(490),m=n(688),v=n(956),y=n(459),b=n(916),_=n(554),w=n(889);(i||(i={})).className=function(e){switch(e){case w.a.Ignore:return"severity-ignore codicon-info";case w.a.Info:return"codicon-info";case w.a.Warning:return"codicon-warning";case w.a.Error:return"codicon-error"}return""},Object(d.e)((function(e,t){var n=e.getColor(f.Pb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-error,\n\t\t\t.markers-panel .marker-icon.codicon-error,\n\t\t\t.extensions-viewlet > .extensions .codicon-error,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-error {\n\t\t\t\tcolor: "+n+";\n\t\t\t}\n\t\t");var i=e.getColor(f.Rb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-warning,\n\t\t\t.markers-panel .marker-icon.codicon-warning,\n\t\t\t.extensions-viewlet > .extensions .codicon-warning,\n\t\t\t.extension-editor .codicon-warning,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-warning {\n\t\t\t\tcolor: "+i+";\n\t\t\t}\n\t\t");var o=e.getColor(f.Qb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-info,\n\t\t\t.markers-panel .marker-icon.codicon-info,\n\t\t\t.extensions-viewlet > .extensions .codicon-info,\n\t\t\t.extension-editor .codicon-info,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-info {\n\t\t\t\tcolor: "+o+";\n\t\t\t}\n\t\t")}));var C,S=(C=function(e,t){return(C=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){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=(x.prototype.dispose=function(){Object(s.f)(this._disposables)},x.prototype.update=function(e){var t=this,n=e.source,i=e.message,o=e.relatedInformation,r=e.code,s=((null==n?void 0:n.length)||0)+"()".length;r&&(s+="string"==typeof r?r.length:r.value.length);var a=i.split(/\r\n|\r|\n/g);this._lines=a.length;for(var l=this._longestLineLength=0,u=a;l<u.length;l++){var c=u[l];this._longestLineLength=Math.max(c.length+s,this._longestLineLength)}p.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var d=this._messageBlock,h=0,f=a;h<f.length;h++)c=f[h],""===((d=document.createElement("div")).innerText=c)&&(d.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(d);if(n||r){var g,m=document.createElement("span");if(p.f(m,"details"),d.appendChild(m),n){var b=document.createElement("span");b.innerText=n,p.f(b,"source"),m.appendChild(b)}r&&("string"==typeof r?((g=document.createElement("span")).innerText="("+r+")",p.f(g,"code"),m.appendChild(g)):(this._codeLink=p.a("a.code-link"),this._codeLink.setAttribute("href",""+r.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(r.link),e.preventDefault(),e.stopPropagation()},(g=p.q(this._codeLink,p.a("span"))).innerText=r.value,m.appendChild(this._codeLink)))}if(p.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(y.q)(o)){var _=this._relatedBlock.appendChild(document.createElement("div"));_.style.paddingTop=Math.floor(.66*this._editor.getOption(49))+"px",this._lines+=1;for(var w=0,C=o;w<C.length;w++){var S=C[w],O=document.createElement("div"),x=document.createElement("a");p.f(x,"filename"),x.innerHTML=Object(v.a)(S.resource)+"("+S.startLineNumber+", "+S.startColumn+"): ",x.title=Object(v.b)(S.resource,void 0),this._relatedDiagnostics.set(x,S);var k=document.createElement("span");k.innerText=S.message,O.appendChild(x),O.appendChild(k),this._lines+=1,_.appendChild(O)}}var E=this._editor.getOption(34),N=Math.ceil(E.typicalFullwidthCharacterWidth*this._longestLineLength*.75),L=E.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:N,scrollHeight:L})},x.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})},x.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},x);function x(e,t,n,i){var o=this;this._openerService=i,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new s.b,this._editor=t;var r=document.createElement("div");r.className="descriptioncontainer",r.setAttribute("aria-live","assertive"),r.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),p.f(this._messageBlock,"message"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(p.o(this._relatedBlock,"click",(function(e){e.preventDefault();var t=o._relatedDiagnostics.get(e.target);t&&n(t)}))),this._scrollable=new m.b(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){r.style.left="-"+e.scrollLeft+"px",r.style.top="-"+e.scrollTop+"px"}))),this._disposables.add(this._scrollable)}var k,E=(S(N,k=b.c),N.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(A);var t=T;this._severity===l.c.Warning?t=I:this._severity===l.c.Info&&(t=P);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(b.q),secondaryHeadingColor:e.getColor(b.r)})},N.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),k.prototype._applyStyles.call(this)},N.prototype.dispose=function(){this._callOnDispose.dispose(),k.prototype.dispose.call(this)},N.prototype._fillHead=function(e){k.prototype._fillHead.call(this,e),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},N.prototype._fillTitleIcon=function(e){this._icon=p.q(e,p.a(""))},N.prototype._getActionBarOptions=function(){return{orientation:0}},N.prototype._fillBody=function(e){var t=this;this._parentContainer=e,p.f(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new O(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._openerService),this._disposables.add(this._message)},N.prototype.show=function(e,t){throw new Error("call showAtMarker")},N.prototype.showAtMarker=function(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getTheme());var r=u.a.lift(e),s=this.editor.getPosition(),a=s&&r.containsPosition(s)?s:r.getStartPosition();k.prototype.show.call(this,a,this.computeRequiredHeight());var c=this.editor.getModel();if(c){var d=1<n?o.a("problems","{0} of {1} problems",t,n):o.a("change","{0} of {1} problem",t,n);this.setTitle(Object(_.b)(c.uri),d)}this._icon.className="codicon "+i.className(l.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(a,0),this.editor.focus()},N.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},N.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},N.prototype._doLayoutBody=function(e,t){k.prototype._doLayoutBody.call(this,e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"},N.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},N.prototype._relayout=function(){k.prototype._relayout.call(this,this.computeRequiredHeight())},N.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},N);function N(e,t,n,i){var o=k.call(this,e,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return o.actions=t,o._themeService=n,o._openerService=i,o._callOnDispose=new s.b,o._onDidSelectRelatedInformation=new r.a,o.onDidSelectRelatedInformation=o._onDidSelectRelatedInformation.event,o._severity=l.c.Warning,o._backgroundColor=g.a.white,o._applyTheme(n.getTheme()),o._callOnDispose.add(n.onThemeChange(o._applyTheme.bind(o))),o.create(),o}var L=Object(f.Kb)(f.q,f.p),D=Object(f.Kb)(f.P,f.O),M=Object(f.Kb)(f.H,f.G),T=Object(f.Tb)("editorMarkerNavigationError.background",{dark:L,light:L,hc:L},o.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),I=Object(f.Tb)("editorMarkerNavigationWarning.background",{dark:D,light:D,hc:D},o.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),P=Object(f.Tb)("editorMarkerNavigationInfo.background",{dark:M,light:M,hc:M},o.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),A=Object(f.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:g.a.white,hc:"#0C141F"},o.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(d.e)((function(e,t){var n=e.getColor(f.ec);n&&(t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }"),t.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+n+"; }"))}));var R=n(444),j=n(504),F=n(446),B=n(755),W=n(703),V=n(531),z=n(636);n.d(t,"MarkerController",(function(){return X})),n.d(t,"NextMarkerAction",(function(){return ne}));var H,q=(H=function(e,t){return(H=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){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=function(e,t){return function(n,i){t(n,i,e)}},K=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},G=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Y=(Object.defineProperty(Z.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),Z.prototype.setMarkers=function(e){var t=0<=this._nextIdx?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(Q.compareMarker),this._nextIdx=t?Math.max(-1,Object(y.c)(this._markers,t,Q.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},Z.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},Z.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var o=u.a.lift(this._markers[i]);if(o.isEmpty()&&this._editor.getModel()){var r=this._editor.getModel().getWordAtPosition(o.getStartPosition());r&&(o=new u.a(o.startLineNumber,r.startColumn,o.startLineNumber,r.endColumn))}if(n&&(o.containsPosition(n)||n.isBeforeOrEqual(o.getStartPosition()))){this._nextIdx=i,t=!0;break}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(Z.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(e){var t=this._nextIdx;this._nextIdx=-1,e&&(this._nextIdx=this.indexOf(e)),this._nextIdx!==t&&this._onCurrentMarkerChanged.fire(e)},enumerable:!0,configurable:!0}),Z.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,i=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:i=!0:e||(t||0<this._nextIdx?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var o=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(o)}return i},Z.prototype.canNavigate=function(){return 0<this._markers.length},Z.prototype.findMarkerAtPosition=function(e){return Object(y.h)(this._markers,(function(t){return u.a.containsPosition(t,e)}))},Object.defineProperty(Z.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),Z.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},Z.prototype.dispose=function(){this._toUnbind.dispose()},Z);function Z(e,t){var n=this;this._toUnbind=new s.b,this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new r.a,this._onMarkerSetChanged=new r.a,this.setMarkers(t),this._toUnbind.add(this._editor.onDidDispose((function(){return n.dispose()}))),this._toUnbind.add(this._editor.onDidChangeCursorPosition((function(){n._ignoreSelectionChange||n.currentMarker&&n._editor.getPosition()&&u.a.containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)})))}var X=($.get=function(e){return e.getContribution($.ID)},$.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},$.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},$.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new Y(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(re.ID),i=this._keybindingService.lookupKeybinding(ne.ID),o=[new W.a(ne.ID,ne.LABEL+(i?" ("+i.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),(function(){return K(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!0,!0),[2]}))}))})),new W.a(re.ID,re.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),(function(){return K(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!1,!0),[2]}))}))}))];this._widget=new E(this._editor,o,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose((function(){return e.closeMarkersNavigation()}),this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var r=0,s=o;r<s.length;r++){var a=s[r];this._disposeOnClose.add(a)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation((function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:u.a.lift(t).collapseToStart()}},e._editor).then(void 0,F.e),e.closeMarkersNavigation(!1)}))),this._disposeOnClose.add(this._editor.onDidChangeModel((function(){return e._cleanUp()}))),this._disposeOnClose.add(this._model.onCurrentMarkerChanged((function(t){t&&e._model?e._model.withoutWatchingEditorPosition((function(){e._widget&&e._model&&e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total)})):e._cleanUp()}))),this._disposeOnClose.add(this._model.onMarkerSetChanged((function(){if(e._widget&&e._widget.position&&e._model){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale()}}))),this._model},$.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},$.prototype.show=function(e){this.getOrCreateModel().currentMarker=e},$.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some((function(e){return Object(_.e)(t.uri,e)}))&&this._model.setMarkers(this._getMarkers())},$.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:l.c.Error|l.c.Warning|l.c.Info}):[]},$.ID="editor.contrib.markerController",$=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([U(1,l.b),U(2,a.c),U(3,d.c),U(4,j.a),U(5,V.a),U(6,z.a)],$));function $(e,t,n,i,o,r,a){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=o,this._keybindingService=r,this._openerService=a,this._model=null,this._widget=null,this._disposeOnClose=new s.b,this._editor=e,this._widgetVisible=pe.bindTo(this._contextKeyService)}var J,Q=(q(ee,J=c.b),ee.prototype.run=function(e,t){var n=this,i=e.get(l.b),o=e.get(j.a),r=X.get(t);if(!r)return Promise.resolve(void 0);var s=r.getOrCreateModel();if(!s.move(this._isNext,!this._multiFile)||!this._multiFile)return Promise.resolve(void 0);var a=i.read({severities:l.c.Error|l.c.Warning|l.c.Info}).sort(ee.compareMarker);if(0===a.length)return Promise.resolve(void 0);var u=t.getModel();if(!u)return Promise.resolve(void 0);var c=s.currentMarker||{resource:u.uri,severity:l.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},d=Object(y.c)(a,c,ee.compareMarker);d<0?(d=~d,d%=a.length):d=this._isNext?(d+1)%a.length:(d+a.length-1)%a.length;var h=a[d];return Object(_.e)(h.resource,u.uri)?(s.move(this._isNext,!0),Promise.resolve(void 0)):(r.closeMarkersNavigation(),o.openCodeEditor({resource:h.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:h}},t).then((function(e){if(e)return e.getAction(n.id).run()})))},ee.compareMarker=function(e,t){var n=Object(R.e)(e.resource.toString(),t.resource.toString());return 0===n&&(n=l.c.compare(e.severity,t.severity)),0===n&&(n=u.a.compareRangesUsingStarts(e,t)),n},ee);function ee(e,t,n){var i=J.call(this,n)||this;return i._isNext=e,i._multiFile=t,i}var te,ne=(q(ie,te=Q),ie.ID="editor.action.marker.next",ie.LABEL=o.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),ie);function ie(){return te.call(this,!0,!1,{id:ie.ID,label:ie.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:578,weight:100}})||this}var oe,re=(q(se,oe=Q),se.ID="editor.action.marker.prev",se.LABEL=o.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),se);function se(){return oe.call(this,!1,!1,{id:se.ID,label:se.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1602,weight:100}})||this}var ae,le=(q(ue,ae=Q),ue);function ue(){return ae.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:o.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:66,weight:100}})||this}var ce,de=(q(he,ce=Q),he);function he(){return ce.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:o.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1090,weight:100}})||this}Object(c.h)(X.ID,X),Object(c.f)(ne),Object(c.f)(re),Object(c.f)(le),Object(c.f)(de);var pe=new a.d("markersNavigationVisible",!1),fe=c.c.bindToContribution(X.get);Object(c.g)(new fe({id:"closeMarkersNavigation",precondition:pe,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:h.a.focus,primary:9,secondary:[1033]}})),B.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:o.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),B.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:o.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},function(e,t,n){"use strict";n.r(t);var i,o,r=n(635),s=n(453),a=n(548),l=n(452),u=n(892),c=n(449),d=n(504),h=n(450),p=n(440),f=n(469),g=n(454),m=n(887),v=n(916),y=n(1117),b=n(897),_=n(445),w=n(755),C=n(456),S=n(532),O=n(774),x=n(1093),k=n(489),E=n(761),N=n(448),L=n(792),D=n(788),M=n(439),T=n(442),I=n(531),P=n(554),A=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},j=function(e,t){return function(n,i){t(n,i,e)}},F=new C.d("hasSymbols",!1),B=Object(N.c)("ISymbolNavigationService"),W=(V.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(M.f)(this._currentState),Object(M.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},V.prototype.put=function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new H(this._editorService),o=i.onDidChange((function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var o=i.getModel(),r=i.getPosition();if(o&&r){for(var s=!1,a=!1,l=0,u=n.references;l<u.length;l++){var c=u[l];if(Object(P.e)(c.uri,o.uri))s=!0,a=a||p.a.containsPosition(c.range,r);else if(s)break}s&&a||t.reset()}}}}));this._currentState=Object(M.e)(i,o)}},V.prototype.revealNext=function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:p.a.collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally((function(){t._ignoreEditorChange=!1}))},V.prototype._showMessage=function(){Object(M.f)(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(_.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(_.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},V=R([j(0,C.c),j(1,d.a),j(2,S.a),j(3,I.a)],V));function V(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=F.bindTo(e)}function z(){return o.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:F,kbOpts:{weight:100,primary:70}})||this}Object(L.b)(B,W,!0),Object(c.g)((A(z,o=c.c),z.prototype.runEditorCommand=function(e,t){return e.get(B).revealNext(t)},new z)),D.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:F,primary:9,handler:function(e){e.get(B).reset()}});var H=(q.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(M.f)},q.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Object(M.e)(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))},q.prototype._onDidRemoveEditor=function(e){Object(M.f)(this._listener.get(e)),this._listener.delete(e)},q=R([j(0,d.a)],q));function q(e){this._listener=new Map,this._disposables=new M.b,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}var U=n(478),K=n(479),G=n(465),Y=n(957);n.d(t,"DefinitionAction",(function(){return de}));var Z,X,$,J,Q,ee,te,ne,ie,oe=(Z=function(e,t){return(Z=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){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),re=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},se=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};w.c.appendMenuItem(7,{submenu:8,title:_.a("peek.submenu","Peek"),group:"navigation",order:100});var ae,le=(oe(ue,ae=c.b),ue.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var i=e.get(S.a),o=e.get(d.a),a=e.get(O.a),l=e.get(B),u=t.getModel(),c=t.getPosition(),h=new E.b(t,5),p=Object(s.j)(this._getLocationModel(u,c,h.token),h.token).then((function(e){return re(n,void 0,void 0,(function(){var n,i,s,a;return se(this,(function(d){if(!e||h.token.isCancellationRequested)return[2];if(Object(r.a)(e.ariaMessage),e.referenceAt(u.uri,c)&&(i=this._getAlternativeCommand(t))!==this.id&&(n=t.getAction(i)),0===(s=e.references.length))this._configuration.muteMessage||(a=u.getWordAtPosition(c),m.a.get(t).showMessage(this._getNoResultFoundMessage(a),c));else{if(1!==s||!n)return[2,this._onResult(o,l,t,e)];n.run()}return[2]}))}))}),(function(e){i.error(e)})).finally((function(){h.dispose()}));return a.showWhile(p,250),p},ue.prototype._onResult=function(e,t,n,i){return re(this,void 0,void 0,(function(){var o,r,s,a;return se(this,(function(l){switch(l.label){case 0:return o=this._getGoToPreference(n),n instanceof Y.a||!(this._configuration.openInPeek||"peek"===o&&1<i.references.length)?[3,1]:(this._openInPeek(n,i),[3,3]);case 1:return r=i.firstReference(),s=1<i.references.length&&"gotoAndPeek"===o,[4,this._openReference(n,e,r,this._configuration.openToSide,!s)];case 2:a=l.sent(),s&&a?this._openInPeek(a,i):i.dispose(),"goto"===o&&t.put(r),l.label=3;case 3:return[2]}}))}))},ue.prototype._openReference=function(e,t,n,i,o){return re(this,void 0,void 0,(function(){var r,s,a,l;return se(this,(function(u){switch(u.label){case 0:return r=void 0,Object(g.G)(n)&&(r=n.targetSelectionRange),r=r||n.range,[4,t.openCodeEditor({resource:n.uri,options:{selection:p.a.collapseToStart(r),revealInCenterIfOutsideViewport:!0}},e,i)];case 1:return(s=u.sent())?(o&&(a=s.getModel(),l=s.deltaDecorations([],[{range:r,options:{className:"symbolHighlight"}}]),setTimeout((function(){s.getModel()===a&&s.deltaDecorations(l,[])}),350)),[2,s]):[2,void 0]}}))}))},ue.prototype._openInPeek=function(e,t){var n=y.a.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(s.f)((function(e){return Promise.resolve(t)})),this._configuration.openInPeek):t.dispose()},ue);function ue(e,t){var n=ae.call(this,t)||this;return n._configuration=e,n}var ce,de=(oe(he,ce=le),he.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.b)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("def.title","Definitions")]))]}}))}))},he.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("noResultWord","No definition found for '{0}'",e.word):_.a("generic.noResults","No definition found")},he.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDefinitionCommand},he.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDefinitions},he);function he(){return null!==ce&&ce.apply(this,arguments)||this}var pe,fe,ge,me=l.g&&!U.l?2118:70;function ve(){var e=pe.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:ve.id,label:_.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:C.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:me,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:_.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return k.a.registerCommandAlias("editor.action.goToDeclaration",ve.id),e}function ye(){var e=fe.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:ye.id,label:_.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:C.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:Object(a.a)(2089,me),weight:100}})||this;return k.a.registerCommandAlias("editor.action.openDeclarationToTheSide",ye.id),e}function be(){var e=ge.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:be.id,label:_.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:C.a.and(f.a.hasDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return k.a.registerCommandAlias("editor.action.previewDeclaration",be.id),e}Object(c.f)((oe(ve,pe=de),(X=ve).id="editor.action.revealDefinition",X)),Object(c.f)((oe(ye,fe=de),($=ye).id="editor.action.revealDefinitionAside",$)),Object(c.f)((oe(be,ge=de),(J=be).id="editor.action.peekDefinition",J));var _e,we,Ce,Se=(oe(Oe,_e=le),Oe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.a)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("decl.title","Declarations")]))]}}))}))},Oe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")},Oe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDeclarationCommand},Oe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDeclarations},Oe);function Oe(){return null!==_e&&_e.apply(this,arguments)||this}function xe(){return we.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:xe.id,label:_.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:C.a.and(f.a.hasDeclarationProvider,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:_.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}function ke(){return Ce.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:_.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:C.a.and(f.a.hasDeclarationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}Object(c.f)((oe(xe,we=Se),xe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")},(Q=xe).id="editor.action.revealDeclaration",Q)),Object(c.f)((oe(ke,Ce=Se),ke));var Ee,Ne,Le,De=(oe(Me,Ee=le),Me.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.e)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("typedef.title","Type Definitions")]))]}}))}))},Me.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):_.a("goToTypeDefinition.generic.noResults","No type definition found")},Me.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeTypeDefinitionCommand},Me.prototype._getGoToPreference=function(e){return e.getOption(41).multipleTypeDefinitions},Me);function Me(){return null!==Ee&&Ee.apply(this,arguments)||this}function Te(){return Ne.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Te.ID,label:_.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:C.a.and(f.a.hasTypeDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:_.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}function Ie(){return Le.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Ie.ID,label:_.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:C.a.and(f.a.hasTypeDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}Object(c.f)((oe(Te,Ne=De),(ee=Te).ID="editor.action.goToTypeDefinition",ee)),Object(c.f)((oe(Ie,Le=De),(te=Ie).ID="editor.action.peekTypeDefinition",te));var Pe,Ae,Re,je=(oe(Fe,Pe=le),Fe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.c)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("impl.title","Implementations")]))]}}))}))},Fe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):_.a("goToImplementation.generic.noResults","No implementation found")},Fe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeImplementationCommand},Fe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleImplementations},Fe);function Fe(){return null!==Pe&&Pe.apply(this,arguments)||this}function Be(){return Ae.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Be.ID,label:_.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:C.a.and(f.a.hasImplementationProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:_.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}function We(){return Re.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:We.ID,label:_.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:C.a.and(f.a.hasImplementationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}Object(c.f)((oe(Be,Ae=je),(ne=Be).ID="editor.action.goToImplementation",ne)),Object(c.f)((oe(We,Re=je),(ie=We).ID="editor.action.peekImplementation",ie));var Ve,ze,He,qe=(oe(Ue,Ve=le),Ue.prototype._getNoResultFoundMessage=function(e){return e?_.a("references.no","No references found for '{0}'",e.word):_.a("references.noGeneric","No references found")},Ue.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeReferenceCommand},Ue.prototype._getGoToPreference=function(e){return e.getOption(41).multipleReferences},Ue);function Ue(){return null!==Ve&&Ve.apply(this,arguments)||this}function Ke(){return ze.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:_.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:C.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:_.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}function Ge(){return He.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:_.a("references.action.label","Peek References"),alias:"Peek References",precondition:C.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}Object(c.f)((oe(Ke,ze=qe),Ke.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.d)(e,t,!0,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("ref.title","References")]))]}}))}))},Ke)),Object(c.f)((oe(Ge,He=qe),Ge.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(x.d)(e,t,!1,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),_.a("ref.title","References")]))]}}))}))},Ge));var Ye,Ze=(oe(Xe,Ye=le),Xe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){return se(this,(function(e){return[2,new b.c(this._references,_.a("generic.title","Locations"))]}))}))},Xe.prototype._getNoResultFoundMessage=function(e){return e&&_.a("generic.noResult","No results for '{0}'",e.word)||""},Xe.prototype._getGoToPreference=function(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(41).multipleReferences},Xe.prototype._getAlternativeCommand=function(){return""},Xe);function Xe(e,t,n){var i=Ye.call(this,e,{id:"editor.action.goToLocation",label:_.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:C.a.and(v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated())})||this;return i._references=t,i._gotoMultipleBehaviour=n,i}k.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:K.a},{name:"position",description:"The position at which to start",constraint:h.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,o,r){return re(void 0,void 0,void 0,(function(){var s,a;return se(this,(function(l){switch(l.label){case 0:return Object(G.a)(K.a.isUri(t)),Object(G.a)(h.a.isIPosition(n)),Object(G.a)(Array.isArray(i)),Object(G.a)(void 0===o||"string"==typeof o),Object(G.a)(void 0===r||"boolean"==typeof r),[4,(s=e.get(d.a)).openCodeEditor({resource:t},s.getFocusedCodeEditor())];case 1:return a=l.sent(),Object(u.a)(a)?(a.setPosition(n),a.revealPositionInCenterIfOutsideViewport(n,0),[2,a.invokeWithinContext((function(e){var t=new Ze({muteMessage:!0,openInPeek:Boolean(r),openToSide:!1},i,o);e.get(N.a).invokeFunction(t.run.bind(t),a)}))]):[2]}}))}))}}),k.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:K.a},{name:"position",description:"The position at which to start",constraint:h.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,o){return re(void 0,void 0,void 0,(function(){return se(this,(function(r){return e.get(k.b).executeCommand("editor.action.goToLocations",t,n,i,o,!0),[2]}))}))}}),k.a.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){Object(G.a)(K.a.isUri(t)),Object(G.a)(h.a.isIPosition(n));var i=e.get(d.a);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then((function(e){if(Object(u.a)(e)&&e.hasModel()){var t=y.a.get(e);if(t){var i=Object(s.f)((function(t){return Object(x.d)(e.getModel(),h.a.lift(n),!1,t).then((function(e){return new b.c(e,_.a("ref.title","References"))}))})),o=new p.a(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,!1))}}}))}}),k.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(452),o=i.b.performance&&"function"==typeof i.b.performance.now,r=(s.create=function(e){return void 0===e&&(e=!0),new s(e)},s.prototype.stop=function(){this._stopTime=this._now()},s.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},s.prototype._now=function(){return this._highResolution?i.b.performance.now():(new Date).getTime()},s);function s(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=!1,o=null;function r(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(e){return i=!0,null}return e.parent}function s(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o<r;o++)if((n=i[o]).contentWindow===t)return n;return null}var a=(l.getSameOriginWindowChain=function(){if(!o){o=[];for(var e,t=window;(e=r(t))?o.push({window:t,iframeElement:s(e,t)}):o.push({window:t,iframeElement:null}),t=e;);}return o.slice(0)},l.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},l.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,o=0,r=this.getSameOriginWindowChain();o<r.length;o++){var s=r[o];if(s.window===t)break;if(!s.iframeElement)break;var a=s.iframeElement.getBoundingClientRect();n+=a.top,i+=a.left}return{top:n,left:i}},l);function l(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(571),o=n(442),r={JSONContribution:"base.contributions.json"};function s(){this._onDidChangeSchema=new o.a,this.schemasById={}}var a=new(s.prototype.registerSchema=function(e,t){var n;this.schemasById[0<(n=e).length&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n]=t,this._onDidChangeSchema.fire(e)},s.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},s);i.a.add(r.JSONContribution,a)},function(e,t,n){"use strict";function i(e){return e<0?0:255<e?255:0|e}function o(e){return e<0?0:4294967295<e?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var i=n(459),o=n(444),r=n(1076),s=n(791),a=n(553),l=n(453),u="**",c="[/\\\\]",d="[^/\\\\]",h=/\//g;function p(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+c+"|"+d+"+"+c+"|"+c+d+"+)*?"}}function f(e,t){if(!e)return[];for(var n=[],i=!1,o=!1,r="",s=0,a=e;s<a.length;s++){var l=a[s];switch(l){case t:if(i||o)break;n.push(r),r="";continue;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1}r+=l}return r&&n.push(r),n}var g=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,_=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,w=new a.a(1e4),C=function(){return!1},S=function(){return null};function O(e,t){if(!e)return S;var n,r,s,a,l,h,C,N=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions,D=w.get(N);if(D)return x(D,e);if(g.test(n)){var M=n.substr(4);D=function(e){return"string"==typeof e&&o.m(e,M)?n:null}}else D=(r=m.exec(k(n,t)))?(s=r[1],a=n,l="/"+s,h="\\"+s,T.basenames=C=[s],T.patterns=[a],T.allBasenames=C,T):(t.trimForExclusions?y:v).test(n)?function(e,t){var n=L(e.slice(1,-1).split(",").map((function(e){return O(e,t)})).filter((function(e){return e!==S})),e),o=n.length;if(!o)return S;if(1===o)return n[0];function r(t,i){for(var o=0,r=n.length;o<r;o++)if(n[o](t,i))return e;return null}var s=i.j(n,(function(e){return!!e.allBasenames}));s&&(r.allBasenames=s.allBasenames);var a=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return a.length&&(r.allPaths=a),r}(n,t):(r=b.exec(k(n,t)))?E(r[1].substr(1),n,!0):(r=_.exec(k(n,t)))?E(r[1],n,!1):function(t){try{var n=new RegExp("^"+function e(t){if(!t)return"";var n="",i=f(t,"/");if(i.every((function(e){return e===u})))n=".*";else{var r=!1;i.forEach((function(t,s){if(t!==u){for(var a=!1,l="",h=!1,g="",m=0,v=t;m<v.length;m++){var y=v[m];if("}"!==y&&a)l+=y;else if(!h||"]"===y&&g)switch(y){case"{":a=!0;continue;case"[":h=!0;continue;case"}":var b="(?:"+f(l,",").map((function(t){return e(t)})).join("|")+")";n+=b,a=!1,l="";break;case"]":n+="["+g+"]",h=!1,g="";break;case"?":n+=d;continue;case"*":n+=p(1);continue;default:n+=o.p(y)}else g+="-"===y?y:"^"!==y&&"!"!==y||g?"/"===y?"":o.p(y):"^"}s<i.length-1&&(i[s+1]!==u||s+2<i.length)&&(n+=c),r=!1}else r||(n+=p(2),r=!0)}))}return n}(t)+"$");return function(e,i){return n.lastIndex=0,"string"==typeof e&&n.test(e)?t:null}}catch(e){return S}}(n);function T(e,t){return"string"!=typeof e?null:t?t===s?a:null:e===s||o.m(e,l)||o.m(e,h)?a:null}return w.set(N,D),x(D,e)}function x(e,t){return"string"==typeof t?e:function(n,i){return r.a(n,t.base)?e(s.relative(t.base,n),i):null}}function k(e,t){return t.trimForExclusions&&o.m(e,"/**")?e.substr(0,e.length-2):e}function E(e,t,n){var i=s.sep!==s.posix.sep?e.replace(h,s.sep):e,r=s.sep+i,a=n?function(e,n){return"string"!=typeof e||e!==i&&!o.m(e,r)?null:t}:function(e,n){return"string"==typeof e&&e===i?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function N(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t){if(void 0===t&&(t={}),!e)return C;if("string"==typeof e||function(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){var n=O(e,t);if(n===S)return C;var o=function(e,t){return!!n(e,t)};return n.allBasenames&&(o.allBasenames=n.allBasenames),n.allPaths&&(o.allPaths=n.allPaths),o}return function(e,t){var n=L(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return S;var i=O(e,n);if(i===S)return S;if("boolean"==typeof t)return i;if(t){var o=t.when;if("string"==typeof o){var r=function(t,n,r,s){if(!s||!i(t,n))return null;var a=s(o.replace("$(basename)",r));return Object(l.i)(a)?a.then((function(t){return t?e:null})):a?e:null};return r.requiresSiblings=!0,r}}return i}(n,e[n],t)})).filter((function(e){return e!==S}))),o=n.length;if(!o)return S;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===o)return n[0];var r=function(e,t){for(var i=0,o=n.length;i<o;i++){var r=n[i](e,t);if(r)return r}return null},a=i.j(n,(function(e){return!!e.allBasenames}));a&&(r.allBasenames=a.allBasenames);var u=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return u.length&&(r.allPaths=u),r}function c(e,t,i){for(var o=void 0,r=0,a=n.length;r<a;r++){var l=n[r];l.requiresSiblings&&i&&(t=t||s.basename(e),o=o||t.substr(0,t.length-s.extname(e).length));var u=l(e,t,o,i);if(u)return u}return null}var d=i.j(n,(function(e){return!!e.allBasenames}));d&&(c.allBasenames=d.allBasenames);var h=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return h.length&&(c.allPaths=h),c}(e,t)}(e)(t,void 0,n)}function L(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var i,o=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){i=[];for(var r=0,s=o.length;r<s;r++)i.push(t)}else i=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);function a(e,t){if("string"!=typeof e)return null;if(!t){var n=void 0;for(n=e.length;0<n;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?i[s]:null}a.basenames=o,a.patterns=i,a.allBasenames=o;var l=e.filter((function(e){return!e.basenames}));return l.push(a),l}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(444),o=n(791);function r(e){return e.replace(/[\\/]/g,o.posix.sep)}function s(e,t,n,r){if(void 0===r&&(r=o.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!Object(i.O)(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function a(e){return 65<=e&&e<=90||97<=e&&e<=122}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));var i,o=n(478),r=n(443),s=n(453),a=n(442),l=n(439),u=n(452),c=n(444),d=n(1078),h=n(466),p=n(820),f=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},g={forceCopyWithSyntaxHighlighting:!(i=function(e,t){return(i=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)})},m=(v.prototype.set=function(e,t){this._lastState={lastCopiedValue:e,data:t}},v.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:this._lastState=null},v.INSTANCE=new v,v);function v(){this._lastState=null}var y,b=(f(_,y=l.a),_.prototype._installSelectionChangeListener=function(){var e=this,t=0;return r.j(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&o.d&&u.h){var i=Date.now(),r=i-t;if(t=i,!(r<5)){var s=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var l=e._textArea.getSelectionStart(),c=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==c){var d=e._textAreaState.deduceEditorPosition(l),p=e._host.deduceModelPosition(d[0],d[1],d[2]),f=e._textAreaState.deduceEditorPosition(c),g=e._host.deduceModelPosition(f[0],f[1],f[2]),m=new h.a(p.lineNumber,p.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(m)}}}}}}))},_.prototype.dispose=function(){y.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},_.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},_.prototype.isFocused=function(){return this._hasFocus},_.prototype.refreshFocusState=function(){var e=r.E(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},_.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(o.e?this._setAndWriteTextAreaState("focusgain",d.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},_.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},_.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},_.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getDataToCopy(w.canUseTextData(e)&&p.a.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};m.INSTANCE.set(o.h?t.text.replace(/\r\n/g,"\n"):t.text,n),w.canUseTextData(e)?w.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",d.b.selectedText(t.text))},_.prototype._firePaste=function(e,t){t=t||m.INSTANCE.get(e),this._onPaste.fire({text:e,metadata:t})},_);function _(e,t){var n=y.call(this)||this;function i(e){var t=n._textAreaState,i=d.b.readFromTextArea(n._textArea);return[i,d.b.deduceInput(t,i,e)]}function l(e){var t=n._textAreaState,i=d.b.selectedText(e);return[i,{text:i.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]}function h(e){return!(!o.f||"ja"!==e)||!(!o.i||0!==e.indexOf("zh-Han"))}return n.textArea=t,n._onFocus=n._register(new a.a),n.onFocus=n._onFocus.event,n._onBlur=n._register(new a.a),n.onBlur=n._onBlur.event,n._onKeyDown=n._register(new a.a),n.onKeyDown=n._onKeyDown.event,n._onKeyUp=n._register(new a.a),n.onKeyUp=n._onKeyUp.event,n._onCut=n._register(new a.a),n.onCut=n._onCut.event,n._onPaste=n._register(new a.a),n.onPaste=n._onPaste.event,n._onType=n._register(new a.a),n.onType=n._onType.event,n._onCompositionStart=n._register(new a.a),n.onCompositionStart=n._onCompositionStart.event,n._onCompositionUpdate=n._register(new a.a),n.onCompositionUpdate=n._onCompositionUpdate.event,n._onCompositionEnd=n._register(new a.a),n.onCompositionEnd=n._onCompositionEnd.event,n._onSelectionChangeRequest=n._register(new a.a),n.onSelectionChangeRequest=n._onSelectionChangeRequest.event,n._host=e,n._textArea=n._register(new O(t)),n._asyncTriggerCut=n._register(new s.d((function(){return n._onCut.fire()}),0)),n._textAreaState=d.b.EMPTY,n._selectionChangeListener=null,n.writeScreenReaderContent("ctor"),n._hasFocus=!1,n._isDoingComposition=!1,n._nextCommand=0,n._register(r.o(t.domNode,"keydown",(function(e){!n._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),n._onKeyDown.fire(e)}))),n._register(r.o(t.domNode,"keyup",(function(e){n._onKeyUp.fire(e)}))),n._register(r.j(t.domNode,"compositionstart",(function(e){n._isDoingComposition||(n._isDoingComposition=!0,o.f||n._setAndWriteTextAreaState("compositionstart",d.b.EMPTY),n._onCompositionStart.fire())}))),n._register(r.j(t.domNode,"compositionupdate",(function(e){if(h(e.locale)){var t=i(!1),o=t[0],r=t[1];return n._textAreaState=o,n._onType.fire(r),void n._onCompositionUpdate.fire(e)}var s=l(e.data),a=s[0],u=s[1];n._textAreaState=a,n._onType.fire(u),n._onCompositionUpdate.fire(e)}))),n._register(r.j(t.domNode,"compositionend",(function(e){if(n._isDoingComposition){if(h(e.locale)){var t=i(!1),r=t[0],s=t[1];n._textAreaState=r,n._onType.fire(s)}else{var a=l(e.data);r=a[0],s=a[1],n._textAreaState=r,n._onType.fire(s)}(o.f||o.d)&&(n._textAreaState=d.b.readFromTextArea(n._textArea)),n._isDoingComposition&&(n._isDoingComposition=!1,n._onCompositionEnd.fire())}}))),n._register(r.j(t.domNode,"input",(function(){if(n._textArea.setIgnoreSelectionChangeTime("received input event"),!n._isDoingComposition){var e=i(u.e),t=e[0],o=e[1];0===o.replaceCharCnt&&1===o.text.length&&c.z(o.text.charCodeAt(0))||(n._textAreaState=t,0===n._nextCommand?""!==o.text&&n._onType.fire(o):(""===o.text&&0===o.replaceCharCnt||n._firePaste(o.text,null),n._nextCommand=0))}}))),n._register(r.j(t.domNode,"cut",(function(e){n._textArea.setIgnoreSelectionChangeTime("received cut event"),n._ensureClipboardGetsEditorSelection(e),n._asyncTriggerCut.schedule()}))),n._register(r.j(t.domNode,"copy",(function(e){n._ensureClipboardGetsEditorSelection(e)}))),n._register(r.j(t.domNode,"paste",(function(e){if(n._textArea.setIgnoreSelectionChangeTime("received paste event"),w.canUseTextData(e)){var t=w.getTextData(e),i=t[0],o=t[1];""!==i&&n._firePaste(i,o)}else n._textArea.getSelectionStart()!==n._textArea.getSelectionEnd()&&n._setAndWriteTextAreaState("paste",d.b.EMPTY),n._nextCommand=1}))),n._register(r.j(t.domNode,"focus",(function(){n._setHasFocus(!0)}))),n._register(r.j(t.domNode,"blur",(function(){n._setHasFocus(!1)}))),n}var w=(C.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},C.getTextData=function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData("text/plain"),n=null,i=e.clipboardData.getData("vscode-editor-data");if("string"==typeof i)try{1!==(n=JSON.parse(i)).version&&(n=null)}catch(e){}return[t,n]}if(window.clipboardData)return e.preventDefault(),[t=window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},C.setTextData=function(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"==typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},C);function C(){}var S,O=(f(x,S=l.a),x.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},x.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},x.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},x.prototype.getValue=function(){return this._actual.domNode.value},x.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},x.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},x.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},x.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,s=r.E(i),a=(s?s.activeElement:document.activeElement)===i,l=i.selectionStart,u=i.selectionEnd;if(a&&l===t&&u===n)o.h&&window.parent!==window&&i.focus();else{if(a)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(o.h&&window.parent!==window&&i.focus());try{var c=r.V(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),r.T(i,c)}catch(e){}}},x);function x(e){var t=S.call(this)||this;return t._actual=e,t._ignoreSelectionChangeTime=0,t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n(444),o=n(450),r=n(440),s=(a.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},a.readFromTextArea=function(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},a.prototype.collapseSelection=function(){return new a(this.value,this.value.length,this.value.length,null,null)},a.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},a.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd)return t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},a.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i]},a.selectedText=function(e){return new a(e,0,e.length,null,null)},a.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,l=t.selectionStart,u=t.selectionEnd,c=o.substring(s),d=a.substring(u),h=i.d(c,d);a=a.substring(0,a.length-h);var p=(o=o.substring(0,o.length-h)).substring(0,r),f=a.substring(0,l),g=i.c(p,f);if(a=a.substring(g),o=o.substring(g),l-=g,r-=g,u-=g,s-=g,n&&l===u&&0<o.length){var m=null;if(l===a.length?i.N(a,o)&&(m=a.substring(o.length)):i.m(a,o)&&(m=a.substring(0,a.length-o.length)),null!==m&&0<m.length&&(/\uFE0F/.test(m)||i.g(m)))return{text:m,replaceCharCnt:0}}return l===u?o===a&&0===r&&s===o.length&&l===a.length&&-1===a.indexOf("\n")&&i.h(a)?{text:"",replaceCharCnt:0}:{text:a,replaceCharCnt:p.length-g}:{text:a,replaceCharCnt:s-r}},a.EMPTY=new a("",0,0,null,null),a);function a(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}var l=(u._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},u._getRangeForPage=function(e,t){var n=e*t,i=1+n,o=n+t;return new r.a(i,1,o+1,1)},u.fromEditorSelection=function(e,t,n,i,a){var l,c=u._getPageOfLine(n.startLineNumber,i),d=u._getRangeForPage(c,i),h=u._getPageOfLine(n.endLineNumber,i),p=u._getRangeForPage(h,i),f=d.intersectRanges(new r.a(1,1,n.startLineNumber,n.startColumn)),g=t.getValueInRange(f,1),m=t.getLineCount(),v=t.getLineMaxColumn(m),y=p.intersectRanges(new r.a(n.endLineNumber,n.endColumn,m,v)),b=t.getValueInRange(y,1);if(c===h||c+1===h)l=t.getValueInRange(n,1);else{var _=d.intersectRanges(n),w=p.intersectRanges(n);l=t.getValueInRange(_,1)+String.fromCharCode(8230)+t.getValueInRange(w,1)}return a&&(500<g.length&&(g=g.substring(g.length-500,g.length)),500<b.length&&(b=b.substring(0,500)),1e3<l.length&&(l=l.substring(0,500)+String.fromCharCode(8230)+l.substring(l.length-500,l.length))),new s(g+l+b,g.length,g.length+l.length,new o.a(n.startLineNumber,n.startColumn),new o.a(n.endLineNumber,n.endColumn))},u);function u(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(484),o=n(446),r=n(479),s=n(449),a=n(440),l=n(454),u=n(598);function c(e,t){var n=[],i=l.c.ordered(e).reverse().map((function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then((function(e){if(Array.isArray(e))for(var t=0,o=e;t<o.length;t++){var r=o[t];n.push({colorInfo:r,provider:i})}}))}));return Promise.all(i).then((function(){return n}))}function d(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Object(s.j)("_executeDocumentColorProvider",(function(e,t){var n=t.resource;if(!(n instanceof r.a))throw Object(o.b)();var s=e.get(u.a).getModel(n);if(!s)throw Object(o.b)();var a=[],c=l.c.ordered(s).reverse().map((function(e){return Promise.resolve(e.provideDocumentColors(s,i.a.None)).then((function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];a.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}}))}));return Promise.all(c).then((function(){return a}))})),Object(s.j)("_executeColorPresentationProvider",(function(e,t){var n=t.resource,s=t.color,c=t.range;if(!(n instanceof r.a&&Array.isArray(s)&&4===s.length&&a.a.isIRange(c)))throw Object(o.b)();var d=s[0],h=s[1],p=s[2],f=s[3],g=e.get(u.a).getModel(n);if(!g)throw Object(o.b)();var m={range:c,color:{red:d,green:h,blue:p,alpha:f}},v=[],y=l.c.ordered(g).reverse().map((function(e){return Promise.resolve(e.provideColorPresentations(g,m,i.a.None)).then((function(e){Array.isArray(e)&&v.push.apply(v,e)}))}));return Promise.all(y).then((function(){return v}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return O})),n(1327);var i,o,r,s=n(445),a=n(444),l=n(703),u=n(772),c=n(443),d=n(701),h=n(453),p=n(439),f=n(688),g=n(452),m=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},y=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,b=/(&)?(&)([^\s&])/g;(r=o=o||{})[r.Right=0]="Right",r[r.Left=1]="Left";var _,w=(m(C,_=l.a),C);function C(e,t,n){var i=_.call(this,n||"submenu",e,"",!0)||this;return i.entries=t,i}var S,O=(m(x,S=u.a),x.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",o=e.borderColor?"1px solid "+e.borderColor:"",r=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof E||t instanceof I)&&t.style(e)}))},x.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(x.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),x.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},x.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++)if(e===this.actionsList.children[t]){this.focusedItem=t;break}},x.prototype.updateFocus=function(e){S.prototype.updateFocus.call(this,e,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},x.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof u.d)return new I(t.context,e,{icon:!0});if(e instanceof w){var i=new D(e,e.entries,n,t);if(t.enableMnemonics&&(r=i.getMnemonic())&&i.isEnabled()){var o=[];this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)}return i}var r,s={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var a=t.getKeyBinding(e);if(a){var l=a.getLabel();l&&(s.keybinding=l)}}return i=new E(t.context,e,s),t.enableMnemonics&&(r=i.getMnemonic())&&i.isEnabled()&&(o=[],this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)),i},x);function x(e,t,n){void 0===n&&(n={});var i=this;Object(c.f)(e,"monaco-menu-container"),e.setAttribute("role","presentation");var o=document.createElement("div");Object(c.f)(o,"monaco-menu"),o.setAttribute("role","presentation"),(i=S.call(this,o,{orientation:2,actionViewItemProvider:function(e){return i.doGetActionViewItem(e,n,r)},context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,triggerKeys:{keys:v([3],g.e?[10]:[]),keyDown:!0}})||this).menuElement=o,i.actionsList.setAttribute("role","menu"),i.actionsList.tabIndex=0,i.menuDisposables=i._register(new p.b),Object(c.j)(o,c.d.KEY_DOWN,(function(e){new d.a(e).equals(2)&&e.preventDefault()})),n.enableMnemonics&&i.menuDisposables.add(Object(c.j)(o,c.d.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(i.mnemonics.has(t)){c.c.stop(e,!0);var n=i.mnemonics.get(t);if(1===n.length&&(n[0]instanceof D&&n[0].container&&i.focusItemByElement(n[0].container),n[0].onClick(e)),1<n.length){var o=n.shift();o&&o.container&&(i.focusItemByElement(o.container),n.push(o)),i.mnemonics.set(t,n)}}}))),g.d&&i._register(Object(c.j)(o,c.d.KEY_DOWN,(function(e){var t=new d.a(e);t.equals(14)||t.equals(11)?(i.focusedItem=i.viewItems.length-1,i.focusNext(),c.c.stop(e,!0)):(t.equals(13)||t.equals(12))&&(i.focusedItem=0,i.focusPrevious(),c.c.stop(e,!0))}))),i._register(Object(c.j)(i.domNode,c.d.MOUSE_OUT,(function(e){var t=e.relatedTarget;Object(c.K)(t,i.domNode)||(i.focusedItem=void 0,i.updateFocus(),e.stopPropagation())}))),i._register(Object(c.j)(i.actionsList,c.d.MOUSE_OVER,(function(e){var t=e.target;if(t&&Object(c.K)(t,i.actionsList)&&t!==i.actionsList){for(;t.parentElement!==i.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Object(c.I)(t,"action-item")){var n=i.focusedItem;i.setFocusedItem(t),n!==i.focusedItem&&i.updateFocus()}}})));var r={parent:i};i.mnemonics=new Map,i.scrollableElement=i._register(new f.a(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var s=i.scrollableElement.getDomNode();return s.style.position="",i._register(Object(c.j)(s,c.d.MOUSE_UP,(function(e){e.preventDefault()}))),o.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-30)+"px",i.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(i.scrollableElement.getDomNode()),i.scrollableElement.scanDomNode(),i.viewItems.filter((function(e){return!(e instanceof I)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),i}var k,E=(m(N,k=u.c),N.prototype.render=function(e){k.prototype.render.call(this,e),this.element&&(this.container=e,this.item=Object(c.q)(this.element,Object(c.a)("a.action-menu-item")),this._action.id===u.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(c.q)(this.item,Object(c.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(c.q)(this.item,Object(c.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(c.q)(this.item,Object(c.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},N.prototype.blur=function(){k.prototype.blur.call(this),this.applyStyle()},N.prototype.focus=function(){k.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},N.prototype.updatePositionInSet=function(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))},N.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=function(e){var t=y,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label&&this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=y.exec(e);if(n){e=a.o(e),b.lastIndex=0;for(var i=b.exec(e);i&&i[1];)i=b.exec(e);i&&(e=e.substr(0,i.index)+'<u aria-hidden="true">'+i[3]+"</u>"+e.substr(i.index+i[0].length)),e=e.replace(/&&/g,"&"),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=e.trim())}},N.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=s.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)},N.prototype.updateClass=function(){this.cssClass&&this.item&&Object(c.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(c.f)(this.label,"icon"),this.cssClass&&Object(c.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(c.P)(this.label,"icon")},N.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(c.P)(this.element,"disabled"),this.item&&(Object(c.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(c.f)(this.element,"disabled"),this.item&&(Object(c.f)(this.item,"disabled"),Object(c.S)(this.item)))},N.prototype.updateChecked=function(){this.item&&(this.getAction().checked?(Object(c.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(c.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},N.prototype.getMnemonic=function(){return this.mnemonic},N.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Object(c.I)(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=i)}},N.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},N);function N(e,t,n){void 0===n&&(n={});var i=this;if(n.isMenu=!0,(i=k.call(this,t,t,n)||this).options=n,i.options.icon=void 0!==n.icon&&n.icon,i.options.label=void 0===n.label||n.label,i.cssClass="",i.options.label&&n.enableMnemonics){var o=i.getAction().label;if(o){var r=y.exec(o);r&&(i.mnemonic=(r[1]?r[1]:r[3]).toLocaleLowerCase())}}return i.runOnceToEnableMouseUp=new h.d((function(){i.element&&i._register(Object(c.j)(i.element,c.d.MOUSE_UP,(function(e){e.defaultPrevented||(c.c.stop(e,!0),i.onClick(e))})))}),100),i._register(i.runOnceToEnableMouseUp),i}var L,D=(m(M,L=E),M.prototype.render=function(e){var t=this;L.prototype.render.call(this,e),this.element&&(this.item&&(Object(c.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(c.q)(this.item,Object(c.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(c.j)(this.element,c.d.KEY_UP,(function(e){var n=new d.a(e);(n.equals(17)||n.equals(3))&&(c.c.stop(e,!0),t.createSubmenu(!0))}))),this._register(Object(c.j)(this.element,c.d.KEY_DOWN,(function(e){var n=new d.a(e);document.activeElement===t.item&&(n.equals(17)||n.equals(3))&&c.c.stop(e,!0)}))),this._register(Object(c.j)(this.element,c.d.MOUSE_OVER,(function(e){t.mouseOver||(t.mouseOver=!0,t.showScheduler.schedule())}))),this._register(Object(c.j)(this.element,c.d.MOUSE_LEAVE,(function(e){t.mouseOver=!1}))),this._register(Object(c.j)(this.element,c.d.FOCUS_OUT,(function(e){t.element&&!Object(c.K)(document.activeElement,t.element)&&t.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){t.parentData.parent.focus(!1),t.cleanupExistingSubmenu(!1)}))))},M.prototype.onClick=function(e){c.c.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},M.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},M.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(c.q)(this.element,Object(c.a)("div.monaco-submenu")),Object(c.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px",this.parentData.submenu=new O(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var r=this.element.getBoundingClientRect(),s=this.submenuContainer.getBoundingClientRect();this.expandDirection===o.Right?window.innerWidth<=r.right+s.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+r.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"):this.expandDirection===o.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"),this.submenuDisposables.add(Object(c.j)(this.submenuContainer,c.d.KEY_UP,(function(e){new d.a(e).equals(15)&&(c.c.stop(e,!0),t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(Object(c.j)(this.submenuContainer,c.d.KEY_DOWN,(function(e){new d.a(e).equals(15)&&c.c.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},M.prototype.updateAriaExpanded=function(e){var t;this.item&&null!==(t=this.item)&&void 0!==t&&t.setAttribute("aria-expanded",e)},M.prototype.applyStyle=function(){if(L.prototype.applyStyle.call(this),this.menuStyle){var e=this.element&&Object(c.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?""+e:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},M.prototype.dispose=function(){L.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},M);function M(e,t,n,i){var r=L.call(this,e,e,i)||this;return r.submenuActions=t,r.parentData=n,r.submenuOptions=i,r.mysubmenu=null,r.submenuDisposables=r._register(new p.b),r.mouseOver=!1,r.expandDirection=i&&void 0!==i.expandDirection?i.expandDirection:o.Right,r.showScheduler=new h.d((function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1))}),250),r.hideScheduler=new h.d((function(){r.element&&!Object(c.K)(document.activeElement,r.element)&&r.parentData.submenu===r.mysubmenu&&(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))}),750),r}var T,I=(m(P,T=u.b),P.prototype.style=function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")},P);function P(){return null!==T&&T.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o=n(442),r=n(439),s=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(l.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},l.prototype.withScrollDimensions=function(e){return new l(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,this.scrollTop)},l.prototype.withScrollPosition=function(e){return new l(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.scrollTop)},l.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:s}},l);function l(e,t,n,i,o,r){(e|=0)<0&&(e=0),(t|=0)<(n|=0)+e&&(n=t-e),n<0&&(n=0),(i|=0)<0&&(i=0),(o|=0)<(r|=0)+i&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}var u,c=(s(d,u=r.a),d.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),u.prototype.dispose.call(this)},d.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},d.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},d.prototype.getScrollDimensions=function(){return this._state},d.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},d.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},d.prototype.getCurrentScrollPosition=function(){return this._state},d.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},d.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else n=this._state.withScrollPosition(e),this._smoothScrolling=f.start(this._state,n,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},d.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())}))}},d.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},d);function d(e,t){var n=u.call(this)||this;return n._onScroll=n._register(new o.a),n.onScroll=n._onScroll.event,n._smoothScrollDuration=e,n._scheduleAtNextAnimationFrame=t,n._state=new a(0,0,0,0,0,0),n._smoothScrolling=null,n}var h=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function p(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var f=(g.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},g.prototype._initAnimation=function(e,t,n){var i,o,r;if(2.5*n<Math.abs(e-t)){var s,a=void 0;return s=e<t?(a=e+.75*n,t-.75*n):(a=e-.75*n,t+.75*n),i=p(e,a),o=p(s,t),r=.33,function(e){return e<r?i(e/r):o((e-r)/(1-r))}}return p(e,t)},g.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},g.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},g.prototype.tick=function(){return this._tick(Date.now())},g.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new h(n,i,!1)}return new h(this.to.scrollLeft,this.to.scrollTop,!0)},g.prototype.combine=function(e,t,n){return g.start(e,t,n)},g.start=function(e,t,n){return n+=10,new g(e,t,Date.now()-10,n)},g);function g(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(444),o=n(794),r=n(555),s=n(953),a=n(440),l=(u.deleteRight=function(e,t,n,i){for(var r=[],l=3!==e,u=0,c=i.length;u<c;u++){var d=i[u],h=d;if(h.isEmpty()){var p=d.getPosition(),f=s.a.right(t,n,p.lineNumber,p.column);h=new a.a(f.lineNumber,f.column,p.lineNumber,p.column)}h.isEmpty()?r[u]=null:(h.startLineNumber!==h.endLineNumber&&(l=!0),r[u]=new o.a(h,""))}return[l,r]},u._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var i=0,o=n.length;i<o;i++){var s=n[i],a=s.getPosition();if(!s.isEmpty())return!1;var l=t.getLineContent(a.lineNumber),u=l[a.column-2],c=e.autoClosingPairsOpen2.get(u);if(!c)return!1;if(Object(r.g)(u)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var d=l[a.column-1],h=!1,p=0,f=c;p<f.length;p++){var g=f[p];g.open===u&&g.close===d&&(h=!0)}if(!h)return!1}return!0},u._runAutoClosingPairDelete=function(e,t,n){for(var i=[],r=0,s=n.length;r<s;r++){var l=n[r].getPosition(),u=new a.a(l.lineNumber,l.column-1,l.lineNumber,l.column+1);i[r]=new o.a(u,"")}return[!0,i]},u.deleteLeft=function(e,t,n,l){if(this._isAutoClosingPairDelete(t,n,l))return this._runAutoClosingPairDelete(t,n,l);for(var u=[],c=2!==e,d=0,h=l.length;d<h;d++){var p=l[d],f=p;if(f.isEmpty()){var g=p.getPosition();if(t.useTabStops&&1<g.column){var m=n.getLineContent(g.lineNumber),v=i.q(m),y=-1===v?m.length+1:v+1;if(g.column<=y){var b=r.a.visibleColumnFromColumn2(t,n,g),_=r.a.prevIndentTabStop(b,t.indentSize),w=r.a.columnFromVisibleColumn2(t,n,g.lineNumber,_);f=new a.a(g.lineNumber,w,g.lineNumber,g.column)}else f=new a.a(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var C=s.a.left(t,n,g.lineNumber,g.column);f=new a.a(C.lineNumber,C.column,g.lineNumber,g.column)}}f.isEmpty()?u[d]=null:(f.startLineNumber!==f.endLineNumber&&(c=!0),u[d]=new o.a(f,""))}return[c,u]},u.cut=function(e,t,n){for(var i=[],s=0,l=n.length;s<l;s++){var u=n[s];if(u.isEmpty())if(e.emptySelectionClipboard){var c,d=u.getPosition(),h=void 0,p=void 0,f=void 0;c=d.lineNumber<t.getLineCount()?(h=d.lineNumber,p=1,f=d.lineNumber+1,1):(p=1<d.lineNumber?(h=d.lineNumber-1,t.getLineMaxColumn(d.lineNumber-1)):(h=d.lineNumber,1),f=d.lineNumber,t.getLineMaxColumn(d.lineNumber));var g=new a.a(h,p,f,c);g.isEmpty()?i[s]=null:i[s]=new o.a(g,"")}else i[s]=null;else i[s]=new o.a(u,"")}return new r.e(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},u);function u(){}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return i}));var i,o,r=n(465),s=n(555),a=n(953),l=n(954),u=n(450),c=n(440),d=(h.addCursorDown=function(e,t,n){for(var i=[],o=0,r=0,l=t.length;r<l;r++){var u=t[r];i[o++]=new s.d(u.modelState,u.viewState),i[o++]=n?s.d.fromModelState(a.a.translateDown(e.config,e.model,u.modelState)):s.d.fromViewState(a.a.translateDown(e.config,e.viewModel,u.viewState))}return i},h.addCursorUp=function(e,t,n){for(var i=[],o=0,r=0,l=t.length;r<l;r++){var u=t[r];i[o++]=new s.d(u.modelState,u.viewState),i[o++]=n?s.d.fromModelState(a.a.translateUp(e.config,e.model,u.modelState)):s.d.fromViewState(a.a.translateUp(e.config,e.viewModel,u.viewState))}return i},h.moveToBeginningOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineStart(e,s,n)}return i},h._moveToLineStart=function(e,t,n){var i=t.viewState.position.column,o=i===t.modelState.position.column,r=t.viewState.position.lineNumber,s=e.viewModel.getLineFirstNonWhitespaceColumn(r);return o||i===s?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},h._moveToLineStartByView=function(e,t,n){return s.d.fromViewState(a.a.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineStartByModel=function(e,t,n){return s.d.fromModelState(a.a.moveToBeginningOfLine(e.config,e.model,t.modelState,n))},h.moveToEndOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineEnd(e,s,n)}return i},h._moveToLineEnd=function(e,t,n){var i=t.viewState.position,o=e.viewModel.getLineMaxColumn(i.lineNumber),r=i.column===o,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),l=o-i.column==a-s.column;return r||l?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},h._moveToLineEndByView=function(e,t,n){return s.d.fromViewState(a.a.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineEndByModel=function(e,t,n){return s.d.fromModelState(a.a.moveToEndOfLine(e.config,e.model,t.modelState,n))},h.expandLineSelection=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r,a=t[i],l=a.modelState.selection.startLineNumber,d=e.model.getLineCount(),h=a.modelState.selection.endLineNumber;r=h===d?e.model.getLineMaxColumn(d):(h++,1),n[i]=s.d.fromModelState(new s.f(new c.a(l,1,l,1),0,new u.a(h,r),0))}return n},h.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o];i[o]=s.d.fromModelState(a.a.moveToBeginningOfBuffer(e.config,e.model,l.modelState,n))}return i},h.moveToEndOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o];i[o]=s.d.fromModelState(a.a.moveToEndOfBuffer(e.config,e.model,l.modelState,n))}return i},h.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return s.d.fromModelState(new s.f(new c.a(1,1,1,1),0,new u.a(n,i),0))},h.line=function(e,t,n,i,o){var r=e.model.validatePosition(i),a=o?e.validateViewPosition(new u.a(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);if(!n||!t.modelState.hasSelection()){var l=e.model.getLineCount(),d=r.lineNumber+1,h=1;return l<d&&(d=l,h=e.model.getLineMaxColumn(d)),s.d.fromModelState(new s.f(new c.a(r.lineNumber,1,d,h),0,new u.a(d,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<p)return s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(r.lineNumber>p){l=e.viewModel.getLineCount();var f=a.lineNumber+1,g=1;return l<f&&(f=l,g=e.viewModel.getLineMaxColumn(f)),s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return s.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},h.word=function(e,t,n,i){var o=e.model.validatePosition(i);return s.d.fromModelState(l.a.word(e.config,e.model,t.modelState,n,o))},h.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new s.d(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return s.d.fromViewState(new s.f(new c.a(n,i,n,i),0,new u.a(n,i),0))},h.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),a=o?e.validateViewPosition(new u.a(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return s.d.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))},h.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,l)];case 11:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,l)];case 10:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,l)];case 12:for(var u=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++)r=t[d],c[d]=this.findPositionInViewportIfOutside(e,r,u,i);return c}return null},h.findPositionInViewportIfOutside=function(e,t,n,i){var o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new s.d(t.modelState,t.viewState);o>n.endLineNumber-1&&(o=n.endLineNumber-1),o<n.startLineNumber&&(o=n.startLineNumber);var r=e.viewModel.getLineFirstNonWhitespaceColumn(o);return this._moveToViewPosition(e,t,i,o,r)},h._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)},h._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)},h._moveLeft=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r],c=a.a.moveLeft(e.config,e.viewModel,u.viewState,n,i);1===i&&c.position.lineNumber!==u.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position).lineNumber===u.modelState.position.lineNumber&&(c=a.a.moveLeft(e.config,e.viewModel,c,n,1)),o[r]=s.d.fromViewState(c)}return o},h._moveHalfLineLeft=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o],u=l.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(u).length/2);i[o]=s.d.fromViewState(a.a.moveLeft(e.config,e.viewModel,l.viewState,n,c))}return i},h._moveRight=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r],c=a.a.moveRight(e.config,e.viewModel,u.viewState,n,i);1===i&&c.position.lineNumber!==u.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position).lineNumber===u.modelState.position.lineNumber&&(c=a.a.moveRight(e.config,e.viewModel,c,n,1)),o[r]=s.d.fromViewState(c)}return o},h._moveHalfLineRight=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o],u=l.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(u).length/2);i[o]=s.d.fromViewState(a.a.moveRight(e.config,e.viewModel,l.viewState,n,c))}return i},h._moveDownByViewLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromViewState(a.a.moveDown(e.config,e.viewModel,u.viewState,n,i))}return o},h._moveDownByModelLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromModelState(a.a.moveDown(e.config,e.model,u.modelState,n,i))}return o},h._moveUpByViewLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromViewState(a.a.moveUp(e.config,e.viewModel,u.viewState,n,i))}return o},h._moveUpByModelLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromModelState(a.a.moveUp(e.config,e.model,u.modelState,n,i))}return o},h._moveToViewPosition=function(e,t,n,i,o){return s.d.fromViewState(t.viewState.move(n,i,o,0))},h._moveToModelPosition=function(e,t,n,i,o){return s.d.fromModelState(t.modelState.move(n,i,o,0))},h._moveToViewMinColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,l=e.viewModel.getLineMinColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,l=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._moveToViewCenterColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,l=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._moveToViewMaxColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,l=e.viewModel.getLineMaxColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,l=e.viewModel.getLineLastNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h);function h(){}(o=i=i||{}).description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!r.i(e))return!1;var t=e;return!!r.j(t.to)&&!(!r.k(t.select)&&!r.e(t.select))&&!(!r.k(t.by)&&!r.j(t.by))&&!(!r.k(t.value)&&!r.h(t.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},o.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},o.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},o.parse=function(e){if(!e.to)return null;var t;switch(e.to){case o.RawDirection.Left:t=0;break;case o.RawDirection.Right:t=1;break;case o.RawDirection.Up:t=2;break;case o.RawDirection.Down:t=3;break;case o.RawDirection.WrappedLineStart:t=4;break;case o.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=5;break;case o.RawDirection.WrappedLineColumnCenter:t=6;break;case o.RawDirection.WrappedLineEnd:t=7;break;case o.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=8;break;case o.RawDirection.ViewPortTop:t=9;break;case o.RawDirection.ViewPortBottom:t=11;break;case o.RawDirection.ViewPortCenter:t=10;break;case o.RawDirection.ViewPortIfOutside:t=12;break;default:return null}var n=0;switch(e.by){case o.RawUnit.Line:n=1;break;case o.RawUnit.WrappedLine:n=2;break;case o.RawUnit.Character:n=3;break;case o.RawUnit.HalfLine:n=4}return{direction:t,unit:n,select:!!e.select,value:e.value||1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(444),o=n(555),r=n(440),s=n(466),a=n(575),l=Object.create(null);function u(e,t){l[e]||(l[e]=["",e]);for(var n=l[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var c=(d.unshiftIndent=function(e,t,n,i,r){var s=o.a.visibleColumnFromColumn(e,t,n);if(r){var a=u(" ",i);return u(a,o.a.prevIndentTabStop(s,i)/i)}return u(a="\t",o.a.prevRenderTabStop(s,n)/n)},d.shiftIndent=function(e,t,n,i,r){var s=o.a.visibleColumnFromColumn(e,t,n);if(r){var a=u(" ",i);return u(a,o.a.nextIndentTabStop(s,i)/i)}return u(a="\t",o.a.nextRenderTabStop(s,n)/n)},d.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},d.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,s=this._selection.endLineNumber;1===this._selection.endColumn&&n!==s&&--s;var l=this._opts,c=l.tabSize,h=l.indentSize,p=l.insertSpaces,f=n===s;if(this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,m=0,v=n;v<=s;v++,g=m){m=0;var y=e.getLineContent(v),b=i.q(y);if((!this._opts.isUnshift||0!==y.length&&0!==b)&&(f||this._opts.isUnshift||0!==y.length)){if(-1===b&&(b=y.length),1<v&&o.a.visibleColumnFromColumn(y,b+1,c)%h!=0&&e.isCheapToTokenize(v-1)){var _=a.a.getEnterAction(this._opts.autoIndent,e,new r.a(v-1,e.getLineMaxColumn(v-1),v-1,e.getLineMaxColumn(v-1)));if(_){if(m=g,_.appendText)for(var w=0,C=_.appendText.length;w<C&&m<h&&32===_.appendText.charCodeAt(w);w++)m++;for(_.removeText&&(m=Math.max(0,m-_.removeText)),w=0;w<m&&0!==b&&32===y.charCodeAt(b-1);w++)b--}}if(!this._opts.isUnshift||0!==b){var S;S=this._opts.isUnshift?d.unshiftIndent(y,b+1,c,h,p):d.shiftIndent(y,b+1,c,h,p),this._addEditOperation(t,new r.a(v,1,v,b+1),S),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=b+1)}}}else{var O=p?u(" ",h):"\t";for(v=n;v<=s;v++)if(y=e.getLineContent(v),b=i.q(y),(!this._opts.isUnshift||0!==y.length&&0!==b)&&(f||this._opts.isUnshift||0!==y.length)&&(-1===b&&(b=y.length),!this._opts.isUnshift||0!==b))if(this._opts.isUnshift){b=Math.min(b,h);for(var x=0;x<b;x++)if(9===y.charCodeAt(x)){b=x+1;break}this._addEditOperation(t,new r.a(v,1,v,b+1),"")}else this._addEditOperation(t,new r.a(v,1,v,1),O),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}this._selectionId=t.trackSelection(this._selection)},d.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new s.a(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var o=this._selection.startColumn;return i.startColumn<=o?i:0===i.getDirection()?new s.a(i.startLineNumber,o,i.endLineNumber,i.endColumn):new s.a(i.endLineNumber,i.endColumn,i.startLineNumber,o)}return i},d);function d(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i,o,r=n(439),s=n(443),a=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(l,o=r.a),l.prototype.dispose=function(){this.stopObserving(),o.prototype.dispose.call(this)},l.prototype.getWidth=function(){return this.width},l.prototype.getHeight=function(){return this.height},l.prototype.startObserving=function(){var e=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver((function(){return e._onDidMutate()})),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=s.j(window,"resize",(function(){return e._onDidResizeWindow()})))},l.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},l.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},l.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},l.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},l.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())},l);function l(e,t,n){var i=o.call(this)||this;return i.referenceDomElement=e,i.changeCallback=n,i.width=-1,i.height=-1,i.mutationObserver=null,i.windowSizeListener=null,i.measureReferenceDomElement(!1,t),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=(o.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},o);function o(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}var r=(s.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1},s.prototype.setColorZone=function(e){this._colorZone=e},s.prototype.getColorZones=function(){return this._colorZone},s);function s(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}var a=(l.prototype.getId2Color=function(){return this._id2Color},l.prototype.setZones=function(e){this._zones=e,this._zones.sort(r.compare)},l.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0)},l.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},l.prototype.getDOMWidth=function(){return this._domWidth},l.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},l.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0)},l.prototype.getDOMHeight=function(){return this._domHeight},l.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},l.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0)},l.prototype.getOuterHeight=function(){return this._outerHeight},l.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0)},l.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),o=n/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),s=[],a=0,l=this._zones.length;a<l;a++){var u=this._zones[a];if(!e){var c=u.getColorZones();if(c){s.push(c);continue}}var d=Math.floor(o*this._getVerticalOffsetForLine(u.startLineNumber)),h=Math.floor(o*(this._getVerticalOffsetForLine(u.endLineNumber)+t)),p=Math.floor((d+h)/2),f=h-p;f<r&&(f=r),p-f<0&&(p=f),n<p+f&&(p=n-f);var g=u.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var v=new i(p-f,p+f,m);u.setColorZone(v),s.push(v)}return this._colorZonesInvalid=!1,s.sort(i.compare),s},l);function l(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},o.prototype.run=function(){return this.isSupported()&&this._run()||Promise.resolve(void 0)},o);function o(e,t,n,i,o,r){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=o,this._contextKeyService=r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n(444),o=n(824),r=n(756),s={getInitialState:function(){return r.c},tokenize2:function(e,t,n){return Object(r.e)(0,e,t,n)}};function a(e,t){return void 0===t&&(t=s),function(e,t){for(var n='<div class="monaco-tokenized-source">',r=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,l=r.length;a<l;a++){var u=r[a];0<a&&(n+="<br/>");var c=t.tokenize2(u,s,0);o.a.convertToEndOffset(c.tokens,u.length);for(var d=new o.a(c.tokens,u).inflate(),h=0,p=0,f=d.getCount();p<f;p++){var g=d.getClassName(p),m=d.getEndOffset(p);n+='<span class="'+g+'">'+i.o(u.substring(h,m))+"</span>",h=m}s=c.endState}return n+"</div>"}(e,t||s)}function l(e,t,n,i,o,r,s){for(var a="<div>",l=i,u=0,c=0,d=t.getCount();c<d;c++){var h=t.getEndOffset(c);if(!(h<=i)){for(var p="";l<h&&l<o;l++){var f=e.charCodeAt(l);switch(f){case 9:var g=r-(l+u)%r;for(u+=g-1;0<g;)p+=s?" ":" ",g--;break;case 60:p+="<";break;case 62:p+=">";break;case 38:p+="&";break;case 0:p+="�";break;case 65279:case 8232:p+="\ufffd";break;case 13:p+="​";break;case 32:p+=s?" ":" ";break;default:p+=String.fromCharCode(f)}}if(a+='<span style="'+t.getInlineStyle(c,n)+'">'+p+"</span>",o<h||o<=l)break}}return a+"</div>"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n(1074),o=function(e,t){this.index=e,this.remainder=t},r=(s.prototype.insertValues=function(e,t){e=Object(i.a)(e);var n=this.values,o=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.changeValue=function(e,t){return e=Object(i.a)(e),t=Object(i.a)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},s.prototype.removeValues=function(e,t){e=Object(i.a)(e),t=Object(i.a)(t);var n=this.values,o=this.prefixSum;if(e>=n.length)return!1;var r=n.length-e;return r<=t&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},s.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(i.a)(e),this._getAccumulatedValue(e))},s.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},s.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,i=0,r=0,s=0;t<=n;)if(i=t+(n-t)/2|0,e<(s=(r=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(r<=e))break;t=i+1}return new o(i,e-s)},s);function s(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n(445),o=(r.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=n(s);if(null===a)return null;i[o]=l(s,a,this.modifierLabels[e])}return i.join(" ")},r);function r(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}var s=new o({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:i.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new o({ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function l(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var i=n(459),o=n(484),r=n(446),s=n(449),a=n(454);function l(e,t,n,o){var s=n.ordered(e).map((function(n){return Promise.resolve(o(n,e,t)).then(void 0,(function(e){Object(r.f)(e)}))}));return Promise.all(s).then(i.m).then(i.d)}function u(e,t,n){return l(e,t,a.f,(function(e,t,i){return e.provideDefinition(t,i,n)}))}function c(e,t,n){return l(e,t,a.e,(function(e,t,i){return e.provideDeclaration(t,i,n)}))}function d(e,t,n){return l(e,t,a.q,(function(e,t,i){return e.provideImplementation(t,i,n)}))}function h(e,t,n){return l(e,t,a.C,(function(e,t,i){return e.provideTypeDefinition(t,i,n)}))}function p(e,t,n,i){var o=this;return l(e,t,a.u,(function(e,t,r){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(o,void 0,void 0,(function(){var o,s;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(a){switch(a.label){case 0:return[4,e.provideReferences(t,r,{includeDeclaration:!0},i)];case 1:return o=a.sent(),n&&o&&2===o.length?[4,e.provideReferences(t,r,{includeDeclaration:!1},i)]:[2,o];case 2:return(s=a.sent())&&1===s.length?[2,s]:[2,o]}}))}))}))}Object(s.k)("_executeDefinitionProvider",(function(e,t){return u(e,t,o.a.None)})),Object(s.k)("_executeDeclarationProvider",(function(e,t){return c(e,t,o.a.None)})),Object(s.k)("_executeImplementationProvider",(function(e,t){return d(e,t,o.a.None)})),Object(s.k)("_executeTypeDefinitionProvider",(function(e,t){return h(e,t,o.a.None)})),Object(s.k)("_executeReferenceProvider",(function(e,t){return p(e,t,!1,o.a.None)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i,o=n(478),r=n(439),s=n(442),a=n(452),l=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t){return!!e[t]}var c=function(e,t){this.target=e.target,this.hasTriggerModifier=u(e.event,t.triggerModifier),this.hasSideBySideModifier=u(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=o.i||e.event.detail<=1},d=function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=u(e,t.triggerModifier)},h=(p.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},p);function p(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}function f(e){return"altKey"===e?a.e?new h(57,"metaKey",6,"altKey"):new h(5,"ctrlKey",6,"altKey"):a.e?new h(6,"altKey",57,"metaKey"):new h(6,"altKey",5,"ctrlKey")}var g,m=(l(v,g=r.a),v.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},v.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},v.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},v.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},v.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},v.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},v.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},v);function v(e){var t=g.call(this)||this;return t._onMouseMoveOrRelevantKeyDown=t._register(new s.a),t.onMouseMoveOrRelevantKeyDown=t._onMouseMoveOrRelevantKeyDown.event,t._onExecute=t._register(new s.a),t.onExecute=t._onExecute.event,t._onCancel=t._register(new s.a),t.onCancel=t._onCancel.event,t._editor=e,t._opts=f(t._editor.getOption(59)),t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._register(t._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(59)){var n=f(t._editor.getOption(59));if(t._opts.equals(n))return;t._opts=n,t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._onCancel.fire()}}))),t._register(t._editor.onMouseMove((function(e){return t.onEditorMouseMove(new c(e,t._opts))}))),t._register(t._editor.onMouseDown((function(e){return t.onEditorMouseDown(new c(e,t._opts))}))),t._register(t._editor.onMouseUp((function(e){return t.onEditorMouseUp(new c(e,t._opts))}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(new d(e,t._opts))}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(new d(e,t._opts))}))),t._register(t._editor.onMouseDrag((function(){return t.resetHandler()}))),t._register(t._editor.onDidChangeCursorSelection((function(e){return t.onDidChangeCursorSelection(e)}))),t._register(t._editor.onDidChangeModel((function(e){return t.resetHandler()}))),t._register(t._editor.onDidChangeModelContent((function(){return t.resetHandler()}))),t._register(t._editor.onDidScrollChange((function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&t.resetHandler()}))),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(479);function o(e){var t=JSON.parse(e);return function e(t,n){if(void 0===n&&(n=0),!t||200<n)return t;if("object"==typeof t){switch(t.$mid){case 1:return i.a.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var o in t)Object.hasOwnProperty.call(t,o)&&(t[o]=e(t[o],n+1))}return t}(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("markerDecorationsService")},function(e,t,n){"use strict";n(1374),n(1375)},function(e,t,n){"use strict";n(1376),n(1377);var i=n(445),o=n(451),r=n(461),s=Object(r.Tb)("symbolIcon.arrayForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),a=Object(r.Tb)("symbolIcon.booleanForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(r.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(r.Tb)("symbolIcon.colorForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(r.Tb)("symbolIcon.constantForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(r.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(r.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(r.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(r.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(r.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(r.Tb)("symbolIcon.fileForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(r.Tb)("symbolIcon.folderForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(r.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(r.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(r.Tb)("symbolIcon.keyForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(r.Tb)("symbolIcon.keywordForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(r.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(r.Tb)("symbolIcon.moduleForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(r.Tb)("symbolIcon.namespaceForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(r.Tb)("symbolIcon.nullForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(r.Tb)("symbolIcon.numberForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(r.Tb)("symbolIcon.objectForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=Object(r.Tb)("symbolIcon.operatorForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(r.Tb)("symbolIcon.packageForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=Object(r.Tb)("symbolIcon.propertyForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=Object(r.Tb)("symbolIcon.referenceForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=Object(r.Tb)("symbolIcon.snippetForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(r.Tb)("symbolIcon.stringForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(r.Tb)("symbolIcon.structForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(r.Tb)("symbolIcon.textForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(r.Tb)("symbolIcon.typeParameterForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(r.Tb)("symbolIcon.unitForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(r.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(o.e)((function(e,t){var n=e.getColor(s);n&&t.addRule(".codicon-symbol-array { color: "+n+" !important; }");var i=e.getColor(a);i&&t.addRule(".codicon-symbol-boolean { color: "+i+" !important; }");var o=e.getColor(l);o&&t.addRule(".codicon-symbol-class { color: "+o+" !important; }");var r=e.getColor(C);r&&t.addRule(".codicon-symbol-method { color: "+r+" !important; }");var B=e.getColor(u);B&&t.addRule(".codicon-symbol-color { color: "+B+" !important; }");var W=e.getColor(c);W&&t.addRule(".codicon-symbol-constant { color: "+W+" !important; }");var V=e.getColor(d);V&&t.addRule(".codicon-symbol-constructor { color: "+V+" !important; }");var z=e.getColor(h);z&&t.addRule("\n\t\t\t.codicon-symbol-value,.codicon-symbol-enum { color: "+z+" !important; }");var H=e.getColor(p);H&&t.addRule(".codicon-symbol-enum-member { color: "+H+" !important; }");var q=e.getColor(f);q&&t.addRule(".codicon-symbol-event { color: "+q+" !important; }");var U=e.getColor(g);U&&t.addRule(".codicon-symbol-field { color: "+U+" !important; }");var K=e.getColor(m);K&&t.addRule(".codicon-symbol-file { color: "+K+" !important; }");var G=e.getColor(v);G&&t.addRule(".codicon-symbol-folder { color: "+G+" !important; }");var Y=e.getColor(y);Y&&t.addRule(".codicon-symbol-function { color: "+Y+" !important; }");var Z=e.getColor(b);Z&&t.addRule(".codicon-symbol-interface { color: "+Z+" !important; }");var X=e.getColor(_);X&&t.addRule(".codicon-symbol-key { color: "+X+" !important; }");var $=e.getColor(w);$&&t.addRule(".codicon-symbol-keyword { color: "+$+" !important; }");var J=e.getColor(S);J&&t.addRule(".codicon-symbol-module { color: "+J+" !important; }");var Q=e.getColor(O);Q&&t.addRule(".codicon-symbol-namespace { color: "+Q+" !important; }");var ee=e.getColor(x);ee&&t.addRule(".codicon-symbol-null { color: "+ee+" !important; }");var te=e.getColor(k);te&&t.addRule(".codicon-symbol-number { color: "+te+" !important; }");var ne=e.getColor(E);ne&&t.addRule(".codicon-symbol-object { color: "+ne+" !important; }");var ie=e.getColor(N);ie&&t.addRule(".codicon-symbol-operator { color: "+ie+" !important; }");var oe=e.getColor(L);oe&&t.addRule(".codicon-symbol-package { color: "+oe+" !important; }");var re=e.getColor(D);re&&t.addRule(".codicon-symbol-property { color: "+re+" !important; }");var se=e.getColor(M);se&&t.addRule(".codicon-symbol-reference { color: "+se+" !important; }");var ae=e.getColor(T);ae&&t.addRule(".codicon-symbol-snippet { color: "+ae+" !important; }");var le=e.getColor(I);le&&t.addRule(".codicon-symbol-string { color: "+le+" !important; }");var ue=e.getColor(P);ue&&t.addRule(".codicon-symbol-struct { color: "+ue+" !important; }");var ce=e.getColor(A);ce&&t.addRule(".codicon-symbol-text { color: "+ce+" !important; }");var de=e.getColor(R);de&&t.addRule(".codicon-symbol-type-parameter { color: "+de+" !important; }");var he=e.getColor(j);he&&t.addRule(".codicon-symbol-unit { color: "+he+" !important; }");var pe=e.getColor(F);pe&&t.addRule(".codicon-symbol-variable { color: "+pe+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(450),o=n(440),r=n(786),s=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},a=(l.prototype.provideSelectionRanges=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,r,a;return s(this,(function(u){switch(u.label){case 0:n=[],i=function(t){var i,o;return s(this,(function(r){switch(r.label){case 0:return i=[],n.push(i),o=new Map,[4,new Promise((function(n){return l._bracketsRightYield(n,0,e,t,o)}))];case 1:return r.sent(),[4,new Promise((function(n){return l._bracketsLeftYield(n,0,e,t,o,i)}))];case 2:return r.sent(),[2]}}))},o=0,r=t,u.label=1;case 1:return o<r.length?(a=r[o],[5,i(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2,n]}}))}))},l._bracketsRightYield=function(e,t,n,i,o){for(var s=new Map,a=Date.now();;){if(l._maxRounds<=t){e();break}if(!i){e();break}var u=n.findNextBracket(i);if(!u){e();break}var c=Date.now()-a;if(l._maxDuration<c){setTimeout((function(){return l._bracketsRightYield(e,t+1,n,i,o)}));break}var d=u.close[0];if(u.isOpen){var h=s.has(d)?s.get(d):0;s.set(d,h+1)}else if(h=s.has(d)?s.get(d):0,--h,s.set(d,Math.max(0,h)),h<0){var p=o.get(d);p||(p=new r.a,o.set(d,p)),p.push(u.range)}i=u.range.getEndPosition()}},l._bracketsLeftYield=function(e,t,n,i,r,s){for(var a=new Map,u=Date.now();;){if(l._maxRounds<=t&&0===r.size){e();break}if(!i){e();break}var c=n.findPrevBracket(i);if(!c){e();break}var d=Date.now()-u;if(l._maxDuration<d){setTimeout((function(){return l._bracketsLeftYield(e,t+1,n,i,r,s)}));break}var h=c.close[0];if(c.isOpen){if(v=a.has(h)?a.get(h):0,--v,a.set(h,Math.max(0,v)),v<0){var p=r.get(h);if(p){var f=p.shift();0===p.size&&r.delete(h);var g=o.a.fromPositions(c.range.getEndPosition(),f.getStartPosition()),m=o.a.fromPositions(c.range.getStartPosition(),f.getEndPosition());s.push({range:g}),s.push({range:m}),l._addBracketLeading(n,m,s)}}}else{var v=a.has(h)?a.get(h):0;a.set(h,v+1)}i=c.range.getStartPosition()}},l._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var r=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(r);0!==s&&s!==t.startColumn&&(n.push({range:o.a.fromPositions(new i.a(r,s),t.getEndPosition())}),n.push({range:o.a.fromPositions(new i.a(r,1),t.getEndPosition())}));var a=r-1;if(0<a){var l=e.getLineFirstNonWhitespaceColumn(a);l===t.startColumn&&l!==e.getLineLastNonWhitespaceColumn(a)&&(n.push({range:o.a.fromPositions(new i.a(a,l),t.getEndPosition())}),n.push({range:o.a.fromPositions(new i.a(a,1),t.getEndPosition())}))}}},l._maxDuration=30,l._maxRounds=2,l);function l(){}},,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){var i=n(1111),o=n(1112),r=n(1113);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"!=typeof e)return u(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}function u(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,i):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),o=(e=a(e,i)).write(t,n);return o!==i&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?a(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return j(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,o){var r,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a/=s=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(r=n;r<a;r++)if(u(e,r)===u(t,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===l)return c*s}else-1!==c&&(r-=r-c),c=-1}else for(a<n+l&&(n=a-l),r=n;0<=r;r--){for(var d=!0,h=0;h<l;h++)if(u(e,r+h)!==u(t,h)){d=!1;break}if(d)return r}return-1}function y(e,t,n,i){n=Number(n)||0;var o=e.length-n;(!i||o<(i=Number(i)))&&(i=o);var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");r/2<i&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,i){return B(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function _(e,t,n,i){return B(function(e,t){for(var n,i,o,r=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(n=e.charCodeAt(s))>>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function w(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o<n;){var r,s,a,l,u=e[o],c=null,d=239<u?4:223<u?3:191<u?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(r=e[o+1]))&&127<(l=(31&u)<<6|63&r)&&(c=l);break;case 3:r=e[o+1],s=e[o+2],128==(192&r)&&128==(192&s)&&2047<(l=(15&u)<<12|(63&r)<<6|63&s)&&(l<55296||57343<l)&&(c=l);break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128==(192&r)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&u)<<18|(63&r)<<12|(63&s)<<6|63&a)&&l<1114112&&(c=l)}null===c?(c=65533,d=1):65535<c&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=S));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return i=null,r=t,s=n,c(o=e),o<=0||void 0===r?a(i,o):"string"==typeof s?a(i,o).fill(r,s):a(i,o).fill(r);var i,o,r,s},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?C(this,0,e):function(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(o<=i&&n<=t)return 0;if(o<=i)return-1;if(n<=t)return 1;if(this===e)return 0;for(var r=(o>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(r,s),u=this.slice(i,o),c=e.slice(t,n),d=0;d<a;++d)if(u[d]!==c[d]){r=u[d],s=c[d];break}return r<s?-1:s<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||o<n)&&(n=o),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var r,s,a,l,u=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return a=t,l=n,B(j(e,this.length-a),this,a,l);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return this,r=t,s=n,B(F(e),this,r,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function O(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function x(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function k(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||i<n)&&(n=i);for(var o="",r=t;r<n;++r)o+=R(e[r]);return o}function E(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,i,o,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function D(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function M(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function T(e,t,n,i){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,i,r){return r||T(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function P(e,t,n,i,r){return r||T(e,0,n,8),o.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e+--t],o=1;0<t&&(o*=256);)i+=this[e+--t]*o;return i},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=t,o=1,r=this[e+--i];0<i&&(o*=256);)r+=this[e+--i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[t+o]=255&e;0<=--o&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var r=0,s=1,a=0;for(this[t]=255&e;++r<n&&(s*=256);)e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var r=n-1,s=1,a=0;for(this[t+r]=255&e;0<=--r&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n=n||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;0<=o;--o)e[o+t]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(r=t;r<n;++r)this[r]=e;else{var s=l.isBuffer(e)?e:j(new l(e,i).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var A=/[^+\/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],s=0;s<i;++s){if(55295<(n=e.charCodeAt(s))&&n<57344){if(!o){if(56319<n){-1<(t-=3)&&r.push(239,191,189);continue}if(s+1===i){-1<(t-=3)&&r.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(t-=3)&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(t-=3)&&r.push(239,191,189);if(o=null,n<128){if(--t<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return i.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,i){for(var o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(64))},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=u(e),s=i[0],a=i[1],l=new r(function(e,t){return 3*(e+t)/4-t}(s,a)),c=0,d=0<a?s-4:s;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],s=0,a=n-o;s<a;s+=16383)r.push(c(e,s,a<s+16383?a:s+16383));return 1==o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2==o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],o[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,r,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(r=o)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,o){var r,s,a=8*o-i-1,l=(1<<a)-1,u=l>>1,c=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,r=p&(1<<-c)-1,p>>=-c,c+=a;0<c;r=256*r+e[t+d],d+=h,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=i;0<c;s=256*s+e[t+d],d+=h,c-=8);if(0===r)r=1-u;else{if(r===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),r-=u}return(p?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var s,a,l,u=8*r-o-1,c=(1<<u)-1,d=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,f=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),2<=(t+=1<=s+d?h/l:h*Math.pow(2,1-d))*l&&(s++,l/=2),c<=s+d?(a=0,s=c):1<=s+d?(a=(t*l-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));8<=o;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,u+=o;0<u;e[n+p]=255&s,p+=f,s/=256,u-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var i;i=function(){return n={},e.m=t=[function(e,t,n){},function(e,t,n){"use strict";function i(e,t){this.position=void 0;var n,o="KaTeX parse error: "+e,r=t&&t.loc;if(r&&r.start<=r.end){var s=r.lexer.input;n=r.start;var a=r.end;n===s.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var l=s.slice(n,a).replace(/[^]/g,"$&\u0332");o+=(15<n?"\u2026"+s.slice(n-15,n):s.slice(0,n))+l+(a+15<s.length?s.slice(a,a+15)+"\u2026":s.slice(a))}var u=new Error(o);return u.name="ParseError",u.__proto__=i.prototype,u.position=n,u}n.r(t),n(0);var o=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),r=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,o.range(this,t))},e}();i.prototype.__proto__=Error.prototype;var s=i,a=/([A-Z])/g,l={"&":"&",">":">","<":"<",'"':""","'":"'"},u=/[&><"']/g;function c(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?c(e.body[0]):e:"font"===e.type?c(e.body):e}var d={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(u,(function(e){return l[e]}))},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},getBaseElem:c,isCharacterBox:function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=d.deflt(e.displayMode,!1),this.output=d.deflt(e.output,"htmlAndMathml"),this.leqno=d.deflt(e.leqno,!1),this.fleqn=d.deflt(e.fleqn,!1),this.throwOnError=d.deflt(e.throwOnError,!0),this.errorColor=d.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,d.deflt(e.minRuleThickness,0)),this.colorIsTextColor=d.deflt(e.colorIsTextColor,!1),this.strict=d.deflt(e.strict,"warn"),this.trust=d.deflt(e.trust,!1),this.maxSize=Math.max(0,d.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,d.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var i=this.strict;if("function"==typeof i&&(i=i(e,t,n)),i&&"ignore"!==i&&(!0===i||"error"===i))throw new s("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n)},t.useStrictBehavior=function(e,t,n){var i=this.strict;if("function"==typeof i)try{i=i(e,t,n)}catch(e){i="error"}return!(!i||"ignore"===i)&&(!0===i||"error"===i)},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=d.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return f[g[this.id]]},t.sub=function(){return f[m[this.id]]},t.fracNum=function(){return f[v[this.id]]},t.fracDen=function(){return f[y[this.id]]},t.cramp=function(){return f[b[this.id]]},t.text=function(){return f[_[this.id]]},t.isTight=function(){return 2<=this.size},e}(),f=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],g=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],_=[0,1,2,3,2,3,2,3],w={DISPLAY:f[0],TEXT:f[2],SCRIPT:f[4],SCRIPTSCRIPT:f[6]},C=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],S=[];function O(e){for(var t=0;t<S.length;t+=2)if(e>=S[t]&&e<=S[t+1])return 1}function x(e){return e.filter((function(e){return e})).join(" ")}function k(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}}function E(e){var t=document.createElement(e);for(var n in t.className=x(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t}function N(e){var t="<"+e;this.classes.length&&(t+=' class="'+d.escape(x(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=d.hyphenate(i)+":"+this.style[i]+";");for(var o in n&&(t+=' style="'+d.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(o)&&(t+=" "+o+'="'+d.escape(this.attributes[o])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+"</"+e+">"}C.forEach((function(e){return e.blocks.forEach((function(e){return S.push.apply(S,e)}))}));var L={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},D=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),M=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,e,n,i),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){return E.call(this,"span")},t.toMarkup=function(){return N.call(this,"span")},e}(),T=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,t,i),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){return E.call(this,"a")},t.toMarkup=function(){return N.call(this,"a")},e}(),I=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=d.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+d.escape(t)+'"'),e+"'/>"},e}(),P={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},A=function(){function e(e,t,n,i,o,r,s,a){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=i||0,this.skew=o||0,this.width=r||0,this.classes=s||[],this.style=a||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<C.length;t++)for(var n=C[t],i=0;i<n.blocks.length;i++){var o=n.blocks[i];if(e>=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=P[this.text])}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in 0<this.italic&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),0<this.classes.length&&((t=t||document.createElement("span")).className=x(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=d.escape(x(this.classes)),t+='"');var n="";for(var i in 0<this.italic&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=d.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,t+=' style="'+d.escape(n)+'"');var o=d.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o},e}(),R=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"},e}(),j=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",L[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+L[this.pathName]+"'/>"},e}(),F=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+"/>"},e}();function B(e){if(e instanceof A)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var W={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},V={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},z={"\xc5":"A","\xc7":"C","\xd0":"D","\xde":"o","\xe5":"a","\xe7":"c","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function H(e,t,n){if(!W[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),o=W[t][i];if(!o&&e[0]in z&&(i=z[e[0]].charCodeAt(0),o=W[t][i]),o||"text"!==n||O(i)&&(o=W[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var q={},U={bin:1,close:1,inner:1,open:1,punct:1,rel:1},K={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},G={math:{},text:{}},Y=G;function Z(e,t,n,i,o,r){G[e][o]={font:t,group:n,replace:i},r&&i&&(G[e][i]=G[e][o])}var X="math",$="text",J="main",Q="ams",ee="accent-token",te="bin",ne="close",ie="inner",oe="mathord",re="op-token",se="open",ae="punct",le="rel",ue="spacing",ce="textord";Z(X,J,le,"\u2261","\\equiv",!0),Z(X,J,le,"\u227a","\\prec",!0),Z(X,J,le,"\u227b","\\succ",!0),Z(X,J,le,"\u223c","\\sim",!0),Z(X,J,le,"\u22a5","\\perp"),Z(X,J,le,"\u2aaf","\\preceq",!0),Z(X,J,le,"\u2ab0","\\succeq",!0),Z(X,J,le,"\u2243","\\simeq",!0),Z(X,J,le,"\u2223","\\mid",!0),Z(X,J,le,"\u226a","\\ll",!0),Z(X,J,le,"\u226b","\\gg",!0),Z(X,J,le,"\u224d","\\asymp",!0),Z(X,J,le,"\u2225","\\parallel"),Z(X,J,le,"\u22c8","\\bowtie",!0),Z(X,J,le,"\u2323","\\smile",!0),Z(X,J,le,"\u2291","\\sqsubseteq",!0),Z(X,J,le,"\u2292","\\sqsupseteq",!0),Z(X,J,le,"\u2250","\\doteq",!0),Z(X,J,le,"\u2322","\\frown",!0),Z(X,J,le,"\u220b","\\ni",!0),Z(X,J,le,"\u221d","\\propto",!0),Z(X,J,le,"\u22a2","\\vdash",!0),Z(X,J,le,"\u22a3","\\dashv",!0),Z(X,J,le,"\u220b","\\owns"),Z(X,J,ae,".","\\ldotp"),Z(X,J,ae,"\u22c5","\\cdotp"),Z(X,J,ce,"#","\\#"),Z($,J,ce,"#","\\#"),Z(X,J,ce,"&","\\&"),Z($,J,ce,"&","\\&"),Z(X,J,ce,"\u2135","\\aleph",!0),Z(X,J,ce,"\u2200","\\forall",!0),Z(X,J,ce,"\u210f","\\hbar",!0),Z(X,J,ce,"\u2203","\\exists",!0),Z(X,J,ce,"\u2207","\\nabla",!0),Z(X,J,ce,"\u266d","\\flat",!0),Z(X,J,ce,"\u2113","\\ell",!0),Z(X,J,ce,"\u266e","\\natural",!0),Z(X,J,ce,"\u2663","\\clubsuit",!0),Z(X,J,ce,"\u2118","\\wp",!0),Z(X,J,ce,"\u266f","\\sharp",!0),Z(X,J,ce,"\u2662","\\diamondsuit",!0),Z(X,J,ce,"\u211c","\\Re",!0),Z(X,J,ce,"\u2661","\\heartsuit",!0),Z(X,J,ce,"\u2111","\\Im",!0),Z(X,J,ce,"\u2660","\\spadesuit",!0),Z($,J,ce,"\xa7","\\S",!0),Z($,J,ce,"\xb6","\\P",!0),Z(X,J,ce,"\u2020","\\dag"),Z($,J,ce,"\u2020","\\dag"),Z($,J,ce,"\u2020","\\textdagger"),Z(X,J,ce,"\u2021","\\ddag"),Z($,J,ce,"\u2021","\\ddag"),Z($,J,ce,"\u2021","\\textdaggerdbl"),Z(X,J,ne,"\u23b1","\\rmoustache",!0),Z(X,J,se,"\u23b0","\\lmoustache",!0),Z(X,J,ne,"\u27ef","\\rgroup",!0),Z(X,J,se,"\u27ee","\\lgroup",!0),Z(X,J,te,"\u2213","\\mp",!0),Z(X,J,te,"\u2296","\\ominus",!0),Z(X,J,te,"\u228e","\\uplus",!0),Z(X,J,te,"\u2293","\\sqcap",!0),Z(X,J,te,"\u2217","\\ast"),Z(X,J,te,"\u2294","\\sqcup",!0),Z(X,J,te,"\u25ef","\\bigcirc"),Z(X,J,te,"\u2219","\\bullet"),Z(X,J,te,"\u2021","\\ddagger"),Z(X,J,te,"\u2240","\\wr",!0),Z(X,J,te,"\u2a3f","\\amalg"),Z(X,J,te,"&","\\And"),Z(X,J,le,"\u27f5","\\longleftarrow",!0),Z(X,J,le,"\u21d0","\\Leftarrow",!0),Z(X,J,le,"\u27f8","\\Longleftarrow",!0),Z(X,J,le,"\u27f6","\\longrightarrow",!0),Z(X,J,le,"\u21d2","\\Rightarrow",!0),Z(X,J,le,"\u27f9","\\Longrightarrow",!0),Z(X,J,le,"\u2194","\\leftrightarrow",!0),Z(X,J,le,"\u27f7","\\longleftrightarrow",!0),Z(X,J,le,"\u21d4","\\Leftrightarrow",!0),Z(X,J,le,"\u27fa","\\Longleftrightarrow",!0),Z(X,J,le,"\u21a6","\\mapsto",!0),Z(X,J,le,"\u27fc","\\longmapsto",!0),Z(X,J,le,"\u2197","\\nearrow",!0),Z(X,J,le,"\u21a9","\\hookleftarrow",!0),Z(X,J,le,"\u21aa","\\hookrightarrow",!0),Z(X,J,le,"\u2198","\\searrow",!0),Z(X,J,le,"\u21bc","\\leftharpoonup",!0),Z(X,J,le,"\u21c0","\\rightharpoonup",!0),Z(X,J,le,"\u2199","\\swarrow",!0),Z(X,J,le,"\u21bd","\\leftharpoondown",!0),Z(X,J,le,"\u21c1","\\rightharpoondown",!0),Z(X,J,le,"\u2196","\\nwarrow",!0),Z(X,J,le,"\u21cc","\\rightleftharpoons",!0),Z(X,Q,le,"\u226e","\\nless",!0),Z(X,Q,le,"\ue010","\\@nleqslant"),Z(X,Q,le,"\ue011","\\@nleqq"),Z(X,Q,le,"\u2a87","\\lneq",!0),Z(X,Q,le,"\u2268","\\lneqq",!0),Z(X,Q,le,"\ue00c","\\@lvertneqq"),Z(X,Q,le,"\u22e6","\\lnsim",!0),Z(X,Q,le,"\u2a89","\\lnapprox",!0),Z(X,Q,le,"\u2280","\\nprec",!0),Z(X,Q,le,"\u22e0","\\npreceq",!0),Z(X,Q,le,"\u22e8","\\precnsim",!0),Z(X,Q,le,"\u2ab9","\\precnapprox",!0),Z(X,Q,le,"\u2241","\\nsim",!0),Z(X,Q,le,"\ue006","\\@nshortmid"),Z(X,Q,le,"\u2224","\\nmid",!0),Z(X,Q,le,"\u22ac","\\nvdash",!0),Z(X,Q,le,"\u22ad","\\nvDash",!0),Z(X,Q,le,"\u22ea","\\ntriangleleft"),Z(X,Q,le,"\u22ec","\\ntrianglelefteq",!0),Z(X,Q,le,"\u228a","\\subsetneq",!0),Z(X,Q,le,"\ue01a","\\@varsubsetneq"),Z(X,Q,le,"\u2acb","\\subsetneqq",!0),Z(X,Q,le,"\ue017","\\@varsubsetneqq"),Z(X,Q,le,"\u226f","\\ngtr",!0),Z(X,Q,le,"\ue00f","\\@ngeqslant"),Z(X,Q,le,"\ue00e","\\@ngeqq"),Z(X,Q,le,"\u2a88","\\gneq",!0),Z(X,Q,le,"\u2269","\\gneqq",!0),Z(X,Q,le,"\ue00d","\\@gvertneqq"),Z(X,Q,le,"\u22e7","\\gnsim",!0),Z(X,Q,le,"\u2a8a","\\gnapprox",!0),Z(X,Q,le,"\u2281","\\nsucc",!0),Z(X,Q,le,"\u22e1","\\nsucceq",!0),Z(X,Q,le,"\u22e9","\\succnsim",!0),Z(X,Q,le,"\u2aba","\\succnapprox",!0),Z(X,Q,le,"\u2246","\\ncong",!0),Z(X,Q,le,"\ue007","\\@nshortparallel"),Z(X,Q,le,"\u2226","\\nparallel",!0),Z(X,Q,le,"\u22af","\\nVDash",!0),Z(X,Q,le,"\u22eb","\\ntriangleright"),Z(X,Q,le,"\u22ed","\\ntrianglerighteq",!0),Z(X,Q,le,"\ue018","\\@nsupseteqq"),Z(X,Q,le,"\u228b","\\supsetneq",!0),Z(X,Q,le,"\ue01b","\\@varsupsetneq"),Z(X,Q,le,"\u2acc","\\supsetneqq",!0),Z(X,Q,le,"\ue019","\\@varsupsetneqq"),Z(X,Q,le,"\u22ae","\\nVdash",!0),Z(X,Q,le,"\u2ab5","\\precneqq",!0),Z(X,Q,le,"\u2ab6","\\succneqq",!0),Z(X,Q,le,"\ue016","\\@nsubseteqq"),Z(X,Q,te,"\u22b4","\\unlhd"),Z(X,Q,te,"\u22b5","\\unrhd"),Z(X,Q,le,"\u219a","\\nleftarrow",!0),Z(X,Q,le,"\u219b","\\nrightarrow",!0),Z(X,Q,le,"\u21cd","\\nLeftarrow",!0),Z(X,Q,le,"\u21cf","\\nRightarrow",!0),Z(X,Q,le,"\u21ae","\\nleftrightarrow",!0),Z(X,Q,le,"\u21ce","\\nLeftrightarrow",!0),Z(X,Q,le,"\u25b3","\\vartriangle"),Z(X,Q,ce,"\u210f","\\hslash"),Z(X,Q,ce,"\u25bd","\\triangledown"),Z(X,Q,ce,"\u25ca","\\lozenge"),Z(X,Q,ce,"\u24c8","\\circledS"),Z(X,Q,ce,"\xae","\\circledR"),Z($,Q,ce,"\xae","\\circledR"),Z(X,Q,ce,"\u2221","\\measuredangle",!0),Z(X,Q,ce,"\u2204","\\nexists"),Z(X,Q,ce,"\u2127","\\mho"),Z(X,Q,ce,"\u2132","\\Finv",!0),Z(X,Q,ce,"\u2141","\\Game",!0),Z(X,Q,ce,"\u2035","\\backprime"),Z(X,Q,ce,"\u25b2","\\blacktriangle"),Z(X,Q,ce,"\u25bc","\\blacktriangledown"),Z(X,Q,ce,"\u25a0","\\blacksquare"),Z(X,Q,ce,"\u29eb","\\blacklozenge"),Z(X,Q,ce,"\u2605","\\bigstar"),Z(X,Q,ce,"\u2222","\\sphericalangle",!0),Z(X,Q,ce,"\u2201","\\complement",!0),Z(X,Q,ce,"\xf0","\\eth",!0),Z(X,Q,ce,"\u2571","\\diagup"),Z(X,Q,ce,"\u2572","\\diagdown"),Z(X,Q,ce,"\u25a1","\\square"),Z(X,Q,ce,"\u25a1","\\Box"),Z(X,Q,ce,"\u25ca","\\Diamond"),Z(X,Q,ce,"\xa5","\\yen",!0),Z($,Q,ce,"\xa5","\\yen",!0),Z(X,Q,ce,"\u2713","\\checkmark",!0),Z($,Q,ce,"\u2713","\\checkmark"),Z(X,Q,ce,"\u2136","\\beth",!0),Z(X,Q,ce,"\u2138","\\daleth",!0),Z(X,Q,ce,"\u2137","\\gimel",!0),Z(X,Q,ce,"\u03dd","\\digamma",!0),Z(X,Q,ce,"\u03f0","\\varkappa"),Z(X,Q,se,"\u250c","\\ulcorner",!0),Z(X,Q,ne,"\u2510","\\urcorner",!0),Z(X,Q,se,"\u2514","\\llcorner",!0),Z(X,Q,ne,"\u2518","\\lrcorner",!0),Z(X,Q,le,"\u2266","\\leqq",!0),Z(X,Q,le,"\u2a7d","\\leqslant",!0),Z(X,Q,le,"\u2a95","\\eqslantless",!0),Z(X,Q,le,"\u2272","\\lesssim",!0),Z(X,Q,le,"\u2a85","\\lessapprox",!0),Z(X,Q,le,"\u224a","\\approxeq",!0),Z(X,Q,te,"\u22d6","\\lessdot"),Z(X,Q,le,"\u22d8","\\lll",!0),Z(X,Q,le,"\u2276","\\lessgtr",!0),Z(X,Q,le,"\u22da","\\lesseqgtr",!0),Z(X,Q,le,"\u2a8b","\\lesseqqgtr",!0),Z(X,Q,le,"\u2251","\\doteqdot"),Z(X,Q,le,"\u2253","\\risingdotseq",!0),Z(X,Q,le,"\u2252","\\fallingdotseq",!0),Z(X,Q,le,"\u223d","\\backsim",!0),Z(X,Q,le,"\u22cd","\\backsimeq",!0),Z(X,Q,le,"\u2ac5","\\subseteqq",!0),Z(X,Q,le,"\u22d0","\\Subset",!0),Z(X,Q,le,"\u228f","\\sqsubset",!0),Z(X,Q,le,"\u227c","\\preccurlyeq",!0),Z(X,Q,le,"\u22de","\\curlyeqprec",!0),Z(X,Q,le,"\u227e","\\precsim",!0),Z(X,Q,le,"\u2ab7","\\precapprox",!0),Z(X,Q,le,"\u22b2","\\vartriangleleft"),Z(X,Q,le,"\u22b4","\\trianglelefteq"),Z(X,Q,le,"\u22a8","\\vDash",!0),Z(X,Q,le,"\u22aa","\\Vvdash",!0),Z(X,Q,le,"\u2323","\\smallsmile"),Z(X,Q,le,"\u2322","\\smallfrown"),Z(X,Q,le,"\u224f","\\bumpeq",!0),Z(X,Q,le,"\u224e","\\Bumpeq",!0),Z(X,Q,le,"\u2267","\\geqq",!0),Z(X,Q,le,"\u2a7e","\\geqslant",!0),Z(X,Q,le,"\u2a96","\\eqslantgtr",!0),Z(X,Q,le,"\u2273","\\gtrsim",!0),Z(X,Q,le,"\u2a86","\\gtrapprox",!0),Z(X,Q,te,"\u22d7","\\gtrdot"),Z(X,Q,le,"\u22d9","\\ggg",!0),Z(X,Q,le,"\u2277","\\gtrless",!0),Z(X,Q,le,"\u22db","\\gtreqless",!0),Z(X,Q,le,"\u2a8c","\\gtreqqless",!0),Z(X,Q,le,"\u2256","\\eqcirc",!0),Z(X,Q,le,"\u2257","\\circeq",!0),Z(X,Q,le,"\u225c","\\triangleq",!0),Z(X,Q,le,"\u223c","\\thicksim"),Z(X,Q,le,"\u2248","\\thickapprox"),Z(X,Q,le,"\u2ac6","\\supseteqq",!0),Z(X,Q,le,"\u22d1","\\Supset",!0),Z(X,Q,le,"\u2290","\\sqsupset",!0),Z(X,Q,le,"\u227d","\\succcurlyeq",!0),Z(X,Q,le,"\u22df","\\curlyeqsucc",!0),Z(X,Q,le,"\u227f","\\succsim",!0),Z(X,Q,le,"\u2ab8","\\succapprox",!0),Z(X,Q,le,"\u22b3","\\vartriangleright"),Z(X,Q,le,"\u22b5","\\trianglerighteq"),Z(X,Q,le,"\u22a9","\\Vdash",!0),Z(X,Q,le,"\u2223","\\shortmid"),Z(X,Q,le,"\u2225","\\shortparallel"),Z(X,Q,le,"\u226c","\\between",!0),Z(X,Q,le,"\u22d4","\\pitchfork",!0),Z(X,Q,le,"\u221d","\\varpropto"),Z(X,Q,le,"\u25c0","\\blacktriangleleft"),Z(X,Q,le,"\u2234","\\therefore",!0),Z(X,Q,le,"\u220d","\\backepsilon"),Z(X,Q,le,"\u25b6","\\blacktriangleright"),Z(X,Q,le,"\u2235","\\because",!0),Z(X,Q,le,"\u22d8","\\llless"),Z(X,Q,le,"\u22d9","\\gggtr"),Z(X,Q,te,"\u22b2","\\lhd"),Z(X,Q,te,"\u22b3","\\rhd"),Z(X,Q,le,"\u2242","\\eqsim",!0),Z(X,J,le,"\u22c8","\\Join"),Z(X,Q,le,"\u2251","\\Doteq",!0),Z(X,Q,te,"\u2214","\\dotplus",!0),Z(X,Q,te,"\u2216","\\smallsetminus"),Z(X,Q,te,"\u22d2","\\Cap",!0),Z(X,Q,te,"\u22d3","\\Cup",!0),Z(X,Q,te,"\u2a5e","\\doublebarwedge",!0),Z(X,Q,te,"\u229f","\\boxminus",!0),Z(X,Q,te,"\u229e","\\boxplus",!0),Z(X,Q,te,"\u22c7","\\divideontimes",!0),Z(X,Q,te,"\u22c9","\\ltimes",!0),Z(X,Q,te,"\u22ca","\\rtimes",!0),Z(X,Q,te,"\u22cb","\\leftthreetimes",!0),Z(X,Q,te,"\u22cc","\\rightthreetimes",!0),Z(X,Q,te,"\u22cf","\\curlywedge",!0),Z(X,Q,te,"\u22ce","\\curlyvee",!0),Z(X,Q,te,"\u229d","\\circleddash",!0),Z(X,Q,te,"\u229b","\\circledast",!0),Z(X,Q,te,"\u22c5","\\centerdot"),Z(X,Q,te,"\u22ba","\\intercal",!0),Z(X,Q,te,"\u22d2","\\doublecap"),Z(X,Q,te,"\u22d3","\\doublecup"),Z(X,Q,te,"\u22a0","\\boxtimes",!0),Z(X,Q,le,"\u21e2","\\dashrightarrow",!0),Z(X,Q,le,"\u21e0","\\dashleftarrow",!0),Z(X,Q,le,"\u21c7","\\leftleftarrows",!0),Z(X,Q,le,"\u21c6","\\leftrightarrows",!0),Z(X,Q,le,"\u21da","\\Lleftarrow",!0),Z(X,Q,le,"\u219e","\\twoheadleftarrow",!0),Z(X,Q,le,"\u21a2","\\leftarrowtail",!0),Z(X,Q,le,"\u21ab","\\looparrowleft",!0),Z(X,Q,le,"\u21cb","\\leftrightharpoons",!0),Z(X,Q,le,"\u21b6","\\curvearrowleft",!0),Z(X,Q,le,"\u21ba","\\circlearrowleft",!0),Z(X,Q,le,"\u21b0","\\Lsh",!0),Z(X,Q,le,"\u21c8","\\upuparrows",!0),Z(X,Q,le,"\u21bf","\\upharpoonleft",!0),Z(X,Q,le,"\u21c3","\\downharpoonleft",!0),Z(X,Q,le,"\u22b8","\\multimap",!0),Z(X,Q,le,"\u21ad","\\leftrightsquigarrow",!0),Z(X,Q,le,"\u21c9","\\rightrightarrows",!0),Z(X,Q,le,"\u21c4","\\rightleftarrows",!0),Z(X,Q,le,"\u21a0","\\twoheadrightarrow",!0),Z(X,Q,le,"\u21a3","\\rightarrowtail",!0),Z(X,Q,le,"\u21ac","\\looparrowright",!0),Z(X,Q,le,"\u21b7","\\curvearrowright",!0),Z(X,Q,le,"\u21bb","\\circlearrowright",!0),Z(X,Q,le,"\u21b1","\\Rsh",!0),Z(X,Q,le,"\u21ca","\\downdownarrows",!0),Z(X,Q,le,"\u21be","\\upharpoonright",!0),Z(X,Q,le,"\u21c2","\\downharpoonright",!0),Z(X,Q,le,"\u21dd","\\rightsquigarrow",!0),Z(X,Q,le,"\u21dd","\\leadsto"),Z(X,Q,le,"\u21db","\\Rrightarrow",!0),Z(X,Q,le,"\u21be","\\restriction"),Z(X,J,ce,"\u2018","`"),Z(X,J,ce,"$","\\$"),Z($,J,ce,"$","\\$"),Z($,J,ce,"$","\\textdollar"),Z(X,J,ce,"%","\\%"),Z($,J,ce,"%","\\%"),Z(X,J,ce,"_","\\_"),Z($,J,ce,"_","\\_"),Z($,J,ce,"_","\\textunderscore"),Z(X,J,ce,"\u2220","\\angle",!0),Z(X,J,ce,"\u221e","\\infty",!0),Z(X,J,ce,"\u2032","\\prime"),Z(X,J,ce,"\u25b3","\\triangle"),Z(X,J,ce,"\u0393","\\Gamma",!0),Z(X,J,ce,"\u0394","\\Delta",!0),Z(X,J,ce,"\u0398","\\Theta",!0),Z(X,J,ce,"\u039b","\\Lambda",!0),Z(X,J,ce,"\u039e","\\Xi",!0),Z(X,J,ce,"\u03a0","\\Pi",!0),Z(X,J,ce,"\u03a3","\\Sigma",!0),Z(X,J,ce,"\u03a5","\\Upsilon",!0),Z(X,J,ce,"\u03a6","\\Phi",!0),Z(X,J,ce,"\u03a8","\\Psi",!0),Z(X,J,ce,"\u03a9","\\Omega",!0),Z(X,J,ce,"A","\u0391"),Z(X,J,ce,"B","\u0392"),Z(X,J,ce,"E","\u0395"),Z(X,J,ce,"Z","\u0396"),Z(X,J,ce,"H","\u0397"),Z(X,J,ce,"I","\u0399"),Z(X,J,ce,"K","\u039a"),Z(X,J,ce,"M","\u039c"),Z(X,J,ce,"N","\u039d"),Z(X,J,ce,"O","\u039f"),Z(X,J,ce,"P","\u03a1"),Z(X,J,ce,"T","\u03a4"),Z(X,J,ce,"X","\u03a7"),Z(X,J,ce,"\xac","\\neg",!0),Z(X,J,ce,"\xac","\\lnot"),Z(X,J,ce,"\u22a4","\\top"),Z(X,J,ce,"\u22a5","\\bot"),Z(X,J,ce,"\u2205","\\emptyset"),Z(X,Q,ce,"\u2205","\\varnothing"),Z(X,J,oe,"\u03b1","\\alpha",!0),Z(X,J,oe,"\u03b2","\\beta",!0),Z(X,J,oe,"\u03b3","\\gamma",!0),Z(X,J,oe,"\u03b4","\\delta",!0),Z(X,J,oe,"\u03f5","\\epsilon",!0),Z(X,J,oe,"\u03b6","\\zeta",!0),Z(X,J,oe,"\u03b7","\\eta",!0),Z(X,J,oe,"\u03b8","\\theta",!0),Z(X,J,oe,"\u03b9","\\iota",!0),Z(X,J,oe,"\u03ba","\\kappa",!0),Z(X,J,oe,"\u03bb","\\lambda",!0),Z(X,J,oe,"\u03bc","\\mu",!0),Z(X,J,oe,"\u03bd","\\nu",!0),Z(X,J,oe,"\u03be","\\xi",!0),Z(X,J,oe,"\u03bf","\\omicron",!0),Z(X,J,oe,"\u03c0","\\pi",!0),Z(X,J,oe,"\u03c1","\\rho",!0),Z(X,J,oe,"\u03c3","\\sigma",!0),Z(X,J,oe,"\u03c4","\\tau",!0),Z(X,J,oe,"\u03c5","\\upsilon",!0),Z(X,J,oe,"\u03d5","\\phi",!0),Z(X,J,oe,"\u03c7","\\chi",!0),Z(X,J,oe,"\u03c8","\\psi",!0),Z(X,J,oe,"\u03c9","\\omega",!0),Z(X,J,oe,"\u03b5","\\varepsilon",!0),Z(X,J,oe,"\u03d1","\\vartheta",!0),Z(X,J,oe,"\u03d6","\\varpi",!0),Z(X,J,oe,"\u03f1","\\varrho",!0),Z(X,J,oe,"\u03c2","\\varsigma",!0),Z(X,J,oe,"\u03c6","\\varphi",!0),Z(X,J,te,"\u2217","*"),Z(X,J,te,"+","+"),Z(X,J,te,"\u2212","-"),Z(X,J,te,"\u22c5","\\cdot",!0),Z(X,J,te,"\u2218","\\circ"),Z(X,J,te,"\xf7","\\div",!0),Z(X,J,te,"\xb1","\\pm",!0),Z(X,J,te,"\xd7","\\times",!0),Z(X,J,te,"\u2229","\\cap",!0),Z(X,J,te,"\u222a","\\cup",!0),Z(X,J,te,"\u2216","\\setminus"),Z(X,J,te,"\u2227","\\land"),Z(X,J,te,"\u2228","\\lor"),Z(X,J,te,"\u2227","\\wedge",!0),Z(X,J,te,"\u2228","\\vee",!0),Z(X,J,ce,"\u221a","\\surd"),Z(X,J,se,"(","("),Z(X,J,se,"[","["),Z(X,J,se,"\u27e8","\\langle",!0),Z(X,J,se,"\u2223","\\lvert"),Z(X,J,se,"\u2225","\\lVert"),Z(X,J,ne,")",")"),Z(X,J,ne,"]","]"),Z(X,J,ne,"?","?"),Z(X,J,ne,"!","!"),Z(X,J,ne,"\u27e9","\\rangle",!0),Z(X,J,ne,"\u2223","\\rvert"),Z(X,J,ne,"\u2225","\\rVert"),Z(X,J,le,"=","="),Z(X,J,le,"<","<"),Z(X,J,le,">",">"),Z(X,J,le,":",":"),Z(X,J,le,"\u2248","\\approx",!0),Z(X,J,le,"\u2245","\\cong",!0),Z(X,J,le,"\u2265","\\ge"),Z(X,J,le,"\u2265","\\geq",!0),Z(X,J,le,"\u2190","\\gets"),Z(X,J,le,">","\\gt"),Z(X,J,le,"\u2208","\\in",!0),Z(X,J,le,"\ue020","\\@not"),Z(X,J,le,"\u2282","\\subset",!0),Z(X,J,le,"\u2283","\\supset",!0),Z(X,J,le,"\u2286","\\subseteq",!0),Z(X,J,le,"\u2287","\\supseteq",!0),Z(X,Q,le,"\u2288","\\nsubseteq",!0),Z(X,Q,le,"\u2289","\\nsupseteq",!0),Z(X,J,le,"\u22a8","\\models"),Z(X,J,le,"\u2190","\\leftarrow",!0),Z(X,J,le,"\u2264","\\le"),Z(X,J,le,"\u2264","\\leq",!0),Z(X,J,le,"<","\\lt"),Z(X,J,le,"\u2192","\\rightarrow",!0),Z(X,J,le,"\u2192","\\to"),Z(X,Q,le,"\u2271","\\ngeq",!0),Z(X,Q,le,"\u2270","\\nleq",!0),Z(X,J,ue,"\xa0","\\ "),Z(X,J,ue,"\xa0","~"),Z(X,J,ue,"\xa0","\\space"),Z(X,J,ue,"\xa0","\\nobreakspace"),Z($,J,ue,"\xa0","\\ "),Z($,J,ue,"\xa0","~"),Z($,J,ue,"\xa0","\\space"),Z($,J,ue,"\xa0","\\nobreakspace"),Z(X,J,ue,null,"\\nobreak"),Z(X,J,ue,null,"\\allowbreak"),Z(X,J,ae,",",","),Z(X,J,ae,";",";"),Z(X,Q,te,"\u22bc","\\barwedge",!0),Z(X,Q,te,"\u22bb","\\veebar",!0),Z(X,J,te,"\u2299","\\odot",!0),Z(X,J,te,"\u2295","\\oplus",!0),Z(X,J,te,"\u2297","\\otimes",!0),Z(X,J,ce,"\u2202","\\partial",!0),Z(X,J,te,"\u2298","\\oslash",!0),Z(X,Q,te,"\u229a","\\circledcirc",!0),Z(X,Q,te,"\u22a1","\\boxdot",!0),Z(X,J,te,"\u25b3","\\bigtriangleup"),Z(X,J,te,"\u25bd","\\bigtriangledown"),Z(X,J,te,"\u2020","\\dagger"),Z(X,J,te,"\u22c4","\\diamond"),Z(X,J,te,"\u22c6","\\star"),Z(X,J,te,"\u25c3","\\triangleleft"),Z(X,J,te,"\u25b9","\\triangleright"),Z(X,J,se,"{","\\{"),Z($,J,ce,"{","\\{"),Z($,J,ce,"{","\\textbraceleft"),Z(X,J,ne,"}","\\}"),Z($,J,ce,"}","\\}"),Z($,J,ce,"}","\\textbraceright"),Z(X,J,se,"{","\\lbrace"),Z(X,J,ne,"}","\\rbrace"),Z(X,J,se,"[","\\lbrack"),Z($,J,ce,"[","\\lbrack"),Z(X,J,ne,"]","\\rbrack"),Z($,J,ce,"]","\\rbrack"),Z(X,J,se,"(","\\lparen"),Z(X,J,ne,")","\\rparen"),Z($,J,ce,"<","\\textless"),Z($,J,ce,">","\\textgreater"),Z(X,J,se,"\u230a","\\lfloor",!0),Z(X,J,ne,"\u230b","\\rfloor",!0),Z(X,J,se,"\u2308","\\lceil",!0),Z(X,J,ne,"\u2309","\\rceil",!0),Z(X,J,ce,"\\","\\backslash"),Z(X,J,ce,"\u2223","|"),Z(X,J,ce,"\u2223","\\vert"),Z($,J,ce,"|","\\textbar"),Z(X,J,ce,"\u2225","\\|"),Z(X,J,ce,"\u2225","\\Vert"),Z($,J,ce,"\u2225","\\textbardbl"),Z($,J,ce,"~","\\textasciitilde"),Z($,J,ce,"\\","\\textbackslash"),Z($,J,ce,"^","\\textasciicircum"),Z(X,J,le,"\u2191","\\uparrow",!0),Z(X,J,le,"\u21d1","\\Uparrow",!0),Z(X,J,le,"\u2193","\\downarrow",!0),Z(X,J,le,"\u21d3","\\Downarrow",!0),Z(X,J,le,"\u2195","\\updownarrow",!0),Z(X,J,le,"\u21d5","\\Updownarrow",!0),Z(X,J,re,"\u2210","\\coprod"),Z(X,J,re,"\u22c1","\\bigvee"),Z(X,J,re,"\u22c0","\\bigwedge"),Z(X,J,re,"\u2a04","\\biguplus"),Z(X,J,re,"\u22c2","\\bigcap"),Z(X,J,re,"\u22c3","\\bigcup"),Z(X,J,re,"\u222b","\\int"),Z(X,J,re,"\u222b","\\intop"),Z(X,J,re,"\u222c","\\iint"),Z(X,J,re,"\u222d","\\iiint"),Z(X,J,re,"\u220f","\\prod"),Z(X,J,re,"\u2211","\\sum"),Z(X,J,re,"\u2a02","\\bigotimes"),Z(X,J,re,"\u2a01","\\bigoplus"),Z(X,J,re,"\u2a00","\\bigodot"),Z(X,J,re,"\u222e","\\oint"),Z(X,J,re,"\u222f","\\oiint"),Z(X,J,re,"\u2230","\\oiiint"),Z(X,J,re,"\u2a06","\\bigsqcup"),Z(X,J,re,"\u222b","\\smallint"),Z($,J,ie,"\u2026","\\textellipsis"),Z(X,J,ie,"\u2026","\\mathellipsis"),Z($,J,ie,"\u2026","\\ldots",!0),Z(X,J,ie,"\u2026","\\ldots",!0),Z(X,J,ie,"\u22ef","\\@cdots",!0),Z(X,J,ie,"\u22f1","\\ddots",!0),Z(X,J,ce,"\u22ee","\\varvdots"),Z(X,J,ee,"\u02ca","\\acute"),Z(X,J,ee,"\u02cb","\\grave"),Z(X,J,ee,"\xa8","\\ddot"),Z(X,J,ee,"~","\\tilde"),Z(X,J,ee,"\u02c9","\\bar"),Z(X,J,ee,"\u02d8","\\breve"),Z(X,J,ee,"\u02c7","\\check"),Z(X,J,ee,"^","\\hat"),Z(X,J,ee,"\u20d7","\\vec"),Z(X,J,ee,"\u02d9","\\dot"),Z(X,J,ee,"\u02da","\\mathring"),Z(X,J,oe,"\u0131","\\imath",!0),Z(X,J,oe,"\u0237","\\jmath",!0),Z($,J,ce,"\u0131","\\i",!0),Z($,J,ce,"\u0237","\\j",!0),Z($,J,ce,"\xdf","\\ss",!0),Z($,J,ce,"\xe6","\\ae",!0),Z($,J,ce,"\xe6","\\ae",!0),Z($,J,ce,"\u0153","\\oe",!0),Z($,J,ce,"\xf8","\\o",!0),Z($,J,ce,"\xc6","\\AE",!0),Z($,J,ce,"\u0152","\\OE",!0),Z($,J,ce,"\xd8","\\O",!0),Z($,J,ee,"\u02ca","\\'"),Z($,J,ee,"\u02cb","\\`"),Z($,J,ee,"\u02c6","\\^"),Z($,J,ee,"\u02dc","\\~"),Z($,J,ee,"\u02c9","\\="),Z($,J,ee,"\u02d8","\\u"),Z($,J,ee,"\u02d9","\\."),Z($,J,ee,"\u02da","\\r"),Z($,J,ee,"\u02c7","\\v"),Z($,J,ee,"\xa8",'\\"'),Z($,J,ee,"\u02dd","\\H"),Z($,J,ee,"\u25ef","\\textcircled");var de={"--":!0,"---":!0,"``":!0,"''":!0};Z($,J,ce,"\u2013","--"),Z($,J,ce,"\u2013","\\textendash"),Z($,J,ce,"\u2014","---"),Z($,J,ce,"\u2014","\\textemdash"),Z($,J,ce,"\u2018","`"),Z($,J,ce,"\u2018","\\textquoteleft"),Z($,J,ce,"\u2019","'"),Z($,J,ce,"\u2019","\\textquoteright"),Z($,J,ce,"\u201c","``"),Z($,J,ce,"\u201c","\\textquotedblleft"),Z($,J,ce,"\u201d","''"),Z($,J,ce,"\u201d","\\textquotedblright"),Z(X,J,ce,"\xb0","\\degree",!0),Z($,J,ce,"\xb0","\\degree"),Z($,J,ce,"\xb0","\\textdegree",!0),Z(X,J,oe,"\xa3","\\pounds"),Z(X,J,oe,"\xa3","\\mathsterling",!0),Z($,J,oe,"\xa3","\\pounds"),Z($,J,oe,"\xa3","\\textsterling",!0),Z(X,Q,ce,"\u2720","\\maltese"),Z($,Q,ce,"\u2720","\\maltese"),Z($,J,ue,"\xa0","\\ "),Z($,J,ue,"\xa0"," "),Z($,J,ue,"\xa0","~");for(var he='0123456789/@."',pe=0;pe<he.length;pe++){var fe=he.charAt(pe);Z(X,J,ce,fe,fe)}for(var ge='0123456789!@*()-=+[]<>|";:?/.,',me=0;me<ge.length;me++){var ve=ge.charAt(me);Z($,J,ce,ve,ve)}for(var ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",be=0;be<ye.length;be++){var _e=ye.charAt(be);Z(X,J,oe,_e,_e),Z($,J,ce,_e,_e)}Z(X,Q,ce,"C","\u2102"),Z($,Q,ce,"C","\u2102"),Z(X,Q,ce,"H","\u210d"),Z($,Q,ce,"H","\u210d"),Z(X,Q,ce,"N","\u2115"),Z($,Q,ce,"N","\u2115"),Z(X,Q,ce,"P","\u2119"),Z($,Q,ce,"P","\u2119"),Z(X,Q,ce,"Q","\u211a"),Z($,Q,ce,"Q","\u211a"),Z(X,Q,ce,"R","\u211d"),Z($,Q,ce,"R","\u211d"),Z(X,Q,ce,"Z","\u2124"),Z($,Q,ce,"Z","\u2124"),Z(X,J,oe,"h","\u210e"),Z($,J,oe,"h","\u210e");for(var we="",Ce=0;Ce<ye.length;Ce++){var Se=ye.charAt(Ce);Z(X,J,oe,Se,we=String.fromCharCode(55349,56320+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56372+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56424+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56580+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56736+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56788+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56840+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56944+Ce)),Z($,J,ce,Se,we),Ce<26&&(Z(X,J,oe,Se,we=String.fromCharCode(55349,56632+Ce)),Z($,J,ce,Se,we),Z(X,J,oe,Se,we=String.fromCharCode(55349,56476+Ce)),Z($,J,ce,Se,we))}Z(X,J,oe,"k",we=String.fromCharCode(55349,56668)),Z($,J,ce,"k",we);for(var Oe=0;Oe<10;Oe++){var xe=Oe.toString();Z(X,J,oe,xe,we=String.fromCharCode(55349,57294+Oe)),Z($,J,ce,xe,we),Z(X,J,oe,xe,we=String.fromCharCode(55349,57314+Oe)),Z($,J,ce,xe,we),Z(X,J,oe,xe,we=String.fromCharCode(55349,57324+Oe)),Z($,J,ce,xe,we),Z(X,J,oe,xe,we=String.fromCharCode(55349,57334+Oe)),Z($,J,ce,xe,we)}for(var ke=0;ke<"\xc7\xd0\xde\xe7\xfe".length;ke++){var Ee="\xc7\xd0\xde\xe7\xfe".charAt(ke);Z(X,J,oe,Ee,Ee),Z($,J,ce,Ee,Ee)}function Ne(e,t){return t.size<2?e:Me[e-1][t.size-1]}Z($,J,ce,"\xf0","\xf0"),Z($,J,ce,"\u2013","\u2013"),Z($,J,ce,"\u2014","\u2014"),Z($,J,ce,"\u2018","\u2018"),Z($,J,ce,"\u2019","\u2019"),Z($,J,ce,"\u201c","\u201c"),Z($,J,ce,"\u201d","\u201d");var Le=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],De=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Me=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Te=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ie=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Te[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Ne(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Te[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Ne(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!q[t=5<=e?0:3<=e?1:2]){var n=q[t]={cssEmPerMu:V.quad[t]/18};for(var i in V)V.hasOwnProperty(i)&&(n[i]=V[i][t])}return q[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();function Pe(e){return"string"!=typeof e&&(e=e.unit),e in He||e in qe||"ex"===e}function Ae(e,t){var n;if(e.unit in He)n=He[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new s("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)}function Re(e,t,n){return Y[n][e]&&Y[n][e].replace&&(e=Y[n][e].replace),{value:e,metrics:H(e,t,n)}}function je(e,t,n,i,o){var r,s=Re(e,t,n),a=s.metrics;if(e=s.value,a){var l=a.italic;("text"===n||i&&"mathit"===i.font)&&(l=0),r=new A(e,a.height,a.depth,l,a.skew,a.width,o)}else r=new A(e,0,0,0,0,0,o);if(i){r.maxFontSize=i.sizeMultiplier,i.style.isTight()&&r.classes.push("mtight");var u=i.getColor();u&&(r.style.color=u)}return r}function Fe(e,t){if(x(e.classes)===x(t.classes)&&e.skew===t.skew&&e.maxFontSize===t.maxFontSize){for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return;return 1}}function Be(e){for(var t=0,n=0,i=0,o=0;o<e.children.length;o++){var r=e.children[o];r.height>t&&(t=r.height),r.depth>n&&(n=r.depth),r.maxFontSize>i&&(i=r.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=i}function We(e,t,n,i){var o=new M(e,t,n,i);return Be(o),o}function Ve(e,t,n,i){return new M(e,t,n,i)}Ie.BASESIZE=6;var ze=Ie,He={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},qe={ex:!0,em:!0,mu:!0},Ue=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],Ke=function(e){var t=new D(e);return Be(t),t},Ge=function(e,t,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return i+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Ye={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ze={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Xe={fontMap:Ye,makeSymbol:je,mathsym:function(e,t,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&Re(e,"Main-Bold",t).metrics?je(e,"Main-Bold",t,n,i.concat(["mathbf"])):"\\"===e||"main"===Y[t][e].font?je(e,"Main-Regular",t,n,i):je(e,"AMS-Regular",t,n,i.concat(["amsrm"]))},makeSpan:We,makeSvgSpan:Ve,makeLineSpan:function(e,t,n){var i=We([e],[],t);return i.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=i.height+"em",i.maxFontSize=1,i},makeAnchor:function(e,t,n,i){var o=new T(e,t,n,i);return Be(o),o},makeFragment:Ke,wrapFragment:function(e,t){return e instanceof D?We([],[e],t):e},makeVList:function(e){for(var t=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],i=-t[0].shift-t[0].elem.depth,o=i,r=1;r<t.length;r++){var s=-t[r].shift-o-t[r].elem.depth,a=s-(t[r-1].elem.height+t[r-1].elem.depth);o+=s,n.push({type:"kern",size:a}),n.push(t[r])}return{children:n,depth:i}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),n=t.children,i=t.depth,o=0,r=0;r<n.length;r++){var s=n[r];if("elem"===s.type){var a=s.elem;o=Math.max(o,a.maxFontSize,a.height)}}o+=2;var l=We(["pstrut"],[]);l.style.height=o+"em";for(var u=[],c=i,d=i,h=i,p=0;p<n.length;p++){var f=n[p];if("kern"===f.type)h+=f.size;else{var g=f.elem,m=We(f.wrapperClasses||[],[l,g],void 0,f.wrapperStyle||{});m.style.top=-o-h-g.depth+"em",f.marginLeft&&(m.style.marginLeft=f.marginLeft),f.marginRight&&(m.style.marginRight=f.marginRight),u.push(m),h+=g.height+g.depth}c=Math.min(c,h),d=Math.max(d,h)}var v,y=We(["vlist"],u);if(y.style.height=d+"em",c<0){var b=We([],[]),_=We(["vlist"],[b]);_.style.height=-c+"em";var w=We(["vlist-s"],[new A("\u200b")]);v=[We(["vlist-r"],[y,w]),We(["vlist-r"],[_])]}else v=[We(["vlist-r"],[y])];var C=We(["vlist-t"],v);return 2===v.length&&C.classes.push("vlist-t2"),C.height=d,C.depth=-c,C},makeOrd:function(e,t,n){var i,o=e.mode,r=e.text,a=["mord"],l="math"===o||"text"===o&&t.font,u=l?t.font:t.fontFamily;if(55349===r.charCodeAt(0)){var c=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,i="math"===t?0:1;if(119808<=n&&n<120484){var o=Math.floor((n-119808)/26);return[Le[o][2],Le[o][i]]}if(120782<=n&&n<=120831){var r=Math.floor((n-120782)/10);return[De[r][2],De[r][i]]}if(120485==n||120486==n)return[Le[0][2],Le[0][i]];if(120486<n&&n<120782)return["",""];throw new s("Unsupported character: "+e)}(r,o),h=c[0],p=c[1];return je(r,h,o,t,a.concat(p))}if(u){var f,g;if("boldsymbol"===u||"mathnormal"===u){var m="boldsymbol"===u?Re(r,"Math-BoldItalic",o).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}:(i=r,d.contains(Ue,i)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(i.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"});f=m.fontName,g=[m.fontClass]}else g=d.contains(Ue,r)?(f="Main-Italic",["mathit"]):l?(f=Ye[u].fontName,[u]):(f=Ge(u,t.fontWeight,t.fontShape),[u,t.fontWeight,t.fontShape]);if(Re(r,f,o).metrics)return je(r,f,o,t,a.concat(g));if(de.hasOwnProperty(r)&&"Typewriter"===f.substr(0,10)){for(var v=[],y=0;y<r.length;y++)v.push(je(r[y],f,o,t,a.concat(g)));return Ke(v)}}if("mathord"===n){var b=/[0-9]/.test((_=r).charAt(0))||d.contains(Ue,_)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"};return je(r,b.fontName,o,t,a.concat([b.fontClass]))}if("textord"!==n)throw new Error("unexpected type: "+n+" in makeOrd");var _,w=Y[o][r]&&Y[o][r].font;if("ams"===w)return je(r,Ge("amsrm",t.fontWeight,t.fontShape),o,t,a.concat("amsrm",t.fontWeight,t.fontShape));if("main"!==w&&w){var C=Ge(w,t.fontWeight,t.fontShape);return je(r,C,o,t,a.concat(C,t.fontWeight,t.fontShape))}return je(r,Ge("textrm",t.fontWeight,t.fontShape),o,t,a.concat(t.fontWeight,t.fontShape))},makeGlue:function(e,t){var n=We(["mspace"],[],t),i=Ae(e,t);return n.style.marginRight=i+"em",n},staticSvg:function(e,t){var n=Ze[e],i=n[0],o=n[1],r=n[2],s=new j(i),a=Ve(["overlay"],[new R([s],{width:o+"em",height:r+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*r,preserveAspectRatio:"xMinYMin"})],t);return a.height=r,a.style.height=r+"em",a.style.width=o+"em",a},svgData:Ze,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof A&&i instanceof A&&Fe(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e}};function $e(e,t){var n=Je(e,t);if(!n)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return n}function Je(e,t){return e&&e.type===t?e:null}function Qe(e,t){var n,i,o=(i=t,(n=e)&&"atom"===n.type&&n.family===i?n:null);if(!o)throw new Error('Expected node of type "atom" and family "'+t+'", but got '+(e?"atom"===e.type?"atom of family "+e.family:"node of type "+e.type:String(e)));return o}function et(e){var t=tt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function tt(e){return e&&("atom"===e.type||K.hasOwnProperty(e.type))?e:null}var nt={number:3,unit:"mu"},it={number:4,unit:"mu"},ot={number:5,unit:"mu"},rt={mord:{mop:nt,mbin:it,mrel:ot,minner:nt},mop:{mord:nt,mop:nt,mrel:ot,minner:nt},mbin:{mord:it,mop:it,mopen:it,minner:it},mrel:{mord:ot,mop:ot,mopen:ot,minner:ot},mopen:{},mclose:{mop:nt,mbin:it,mrel:ot,minner:nt},mpunct:{mord:nt,mop:nt,mrel:ot,mopen:nt,mclose:nt,mpunct:nt,minner:nt},minner:{mord:nt,mop:nt,mbin:it,mrel:ot,mopen:nt,mpunct:nt,minner:nt}},st={mord:{mop:nt},mop:{mord:nt,mop:nt},mbin:{},mrel:{},mopen:{},mclose:{mop:nt},mpunct:{},minner:{mop:nt}},at={},lt={},ut={};function ct(e){for(var t=e.type,n=e.names,i=e.props,o=e.handler,r=e.htmlBuilder,s=e.mathmlBuilder,a={type:t,numArgs:i.numArgs,argTypes:i.argTypes,greediness:void 0===i.greediness?1:i.greediness,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,handler:o},l=0;l<n.length;++l)at[n[l]]=a;t&&(r&&(lt[t]=r),s&&(ut[t]=s))}function dt(e){ct({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}function ht(e){var t=Je(e,"ordgroup");return t?t.body:[e]}function pt(e,t,n,i){void 0===i&&(i=[null,null]);for(var o=[],r=0;r<e.length;r++){var s=St(e[r],t);if(s instanceof D){var a=s.children;o.push.apply(o,a)}else o.push(s)}if(!n)return o;var l=t;if(1===e.length){var u=Je(e[0],"sizing")||Je(e[0],"styling");u&&("sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(yt[u.style])))}var c=gt([i[0]||"leftmost"],[],t),h=gt([i[1]||"rightmost"],[],t);return _t(o,(function(e,t){var n=t.classes[0],i=e.classes[0];"mbin"===n&&d.contains(vt,i)?t.classes[0]="mord":"mbin"===i&&d.contains(mt,n)&&(e.classes[0]="mord")}),{node:c},h),_t(o,(function(e,t){var n=Ct(t),i=Ct(e),o=n&&i?e.hasClass("mtight")?st[n][i]:rt[n][i]:null;if(o)return Xe.makeGlue(o,l)}),{node:c},h),o}function ft(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return gt(t.concat(n))}var gt=Xe.makeSpan,mt=["leftmost","mbin","mopen","mrel","mop","mpunct"],vt=["rightmost","mrel","mclose","mpunct"],yt={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT},bt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},_t=function e(t,n,i,o){o&&t.push(o);for(var r=0;r<t.length;r++){var s=t[r],a=wt(s);if(a)e(a.children,n,i);else if("mspace"!==s.classes[0]){var l=n(s,i.node);l&&(i.insertAfter?i.insertAfter(l):(t.unshift(l),r++)),i.node=s,i.insertAfter=function(e){return function(n){t.splice(e+1,0,n),r++}}(r)}}o&&t.pop()},wt=function(e){return e instanceof D||e instanceof T?e:null},Ct=function(e,t){return e?(t&&(e=function e(t,n){var i=wt(t);if(i){var o=i.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t}(e,t)),bt[e.classes[0]]||null):null},St=function(e,t,n){if(!e)return gt();if(lt[e.type]){var i=lt[e.type](e,t);if(n&&t.size!==n.size){i=gt(t.sizingClasses(n),[i],t);var o=t.sizeMultiplier/n.sizeMultiplier;i.height*=o,i.depth*=o}return i}throw new s("Got group of unknown type: '"+e.type+"'")};function Ot(e,t){var n=gt(["base"],e,t),i=gt(["strut"]);return i.style.height=n.height+n.depth+"em",i.style.verticalAlign=-n.depth+"em",n.children.unshift(i),n}function xt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var i,o=pt(e,t,!0),r=[],s=[],a=0;a<o.length;a++)if(s.push(o[a]),o[a].hasClass("mbin")||o[a].hasClass("mrel")||o[a].hasClass("allowbreak")){for(var l=!1;a<o.length-1&&o[a+1].hasClass("mspace")&&!o[a+1].hasClass("newline");)a++,s.push(o[a]),o[a].hasClass("nobreak")&&(l=!0);l||(r.push(Ot(s,t)),s=[])}else o[a].hasClass("newline")&&(s.pop(),0<s.length&&(r.push(Ot(s,t)),s=[]),r.push(o[a]));0<s.length&&r.push(Ot(s,t)),n&&((i=Ot(pt(n,t,!0))).classes=["tag"],r.push(i));var u=gt(["katex-html"],r);if(u.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=u.height+u.depth+"em",c.style.verticalAlign=-u.depth+"em"}return u}function kt(e){return new D(e)}function Et(e,t,n){return!Y[t][e]||!Y[t][e].replace||55349===e.charCodeAt(0)||de.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=Y[t][e].replace),new Pt.TextNode(e)}function Nt(e){return 1===e.length?e[0]:new Pt.MathNode("mrow",e)}function Lt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var i=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return d.contains(["\\imath","\\jmath"],o)?null:(Y[i][o]&&Y[i][o].replace&&(o=Y[i][o].replace),H(o,Xe.fontMap[n].fontName,i)?Xe.fontMap[n].variant:null)}function Dt(e,t,n){if(1===e.length){var i=At(e[0],t);return n&&i instanceof Tt&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var o,r=[],s=0;s<e.length;s++){var a=At(e[s],t);if(a instanceof Tt&&o instanceof Tt){if("mtext"===a.type&&"mtext"===o.type&&a.getAttribute("mathvariant")===o.getAttribute("mathvariant")){var l;(l=o.children).push.apply(l,a.children);continue}if("mn"===a.type&&"mn"===o.type){var u;(u=o.children).push.apply(u,a.children);continue}if("mi"===a.type&&1===a.children.length&&"mn"===o.type){var c=a.children[0];if(c instanceof It&&"."===c.text){var d;(d=o.children).push.apply(d,a.children);continue}}else if("mi"===o.type&&1===o.children.length){var h=o.children[0];if(h instanceof It&&"\u0338"===h.text&&("mo"===a.type||"mi"===a.type||"mn"===a.type)){var p=a.children[0];p instanceof It&&0<p.text.length&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),r.pop())}}}r.push(a),o=a}return r}function Mt(e,t,n){return Nt(Dt(e,t,n))}var Tt=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=d.escape(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),It=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return d.escape(this.toText())},t.toText=function(){return this.text},e}(),Pt={MathNode:Tt,TextNode:It,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?"\u200a":.1666<=e&&e<=.1667?"\u2009":.2222<=e&&e<=.2223?"\u2005":.2777<=e&&e<=.2778?"\u2005\u200a":-.05556<=e&&e<=-.05555?"\u200a\u2063":-.1667<=e&&e<=-.1666?"\u2009\u2063":-.2223<=e&&e<=-.2222?"\u205f\u2063":-.2778<=e&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:kt},At=function(e,t){if(!e)return new Pt.MathNode("mrow");if(ut[e.type])return ut[e.type](e,t);throw new s("Got group of unknown type: '"+e.type+"'")};function Rt(e,t,n,i){var o,r=Dt(e,n);o=1===r.length&&r[0]instanceof Tt&&d.contains(["mrow","mtable"],r[0].type)?r[0]:new Pt.MathNode("mrow",r);var s=new Pt.MathNode("annotation",[new Pt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var a=new Pt.MathNode("semantics",[o,s]),l=new Pt.MathNode("math",[a]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var u=i?"katex":"katex-mathml";return Xe.makeSpan([u],[l])}function jt(e){return new ze({style:e.displayMode?w.DISPLAY:w.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})}function Ft(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Xe.makeSpan(n,[e])}return e}function Bt(e,t){var n,i,o,r=Je(e,"supsub");r?(n=(i=$e(r.base,"accent")).base,r.base=n,o=function(e){if(e instanceof M)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(St(r,t)),r.base=i):n=(i=$e(e,"accent")).base;var s=St(n,t.havingCrampedStyle()),a=0;if(i.isShifty&&d.isCharacterBox(n)){var l=d.getBaseElem(n);a=B(St(l,t.havingCrampedStyle())).skew}var u,c=Math.min(s.height,t.fontMetrics().xHeight);if(i.isStretchy)u=qt(i,t),u=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:0<a?{width:"calc(100% - "+2*a+"em)",marginLeft:2*a+"em"}:void 0}]},t);else{var h,p;p="\\vec"===i.label?(h=Xe.staticSvg("vec",t),Xe.svgData.vec[1]):((h=B(h=Xe.makeOrd({mode:i.mode,text:i.label},t,"textord"))).italic=0,h.width),u=Xe.makeSpan(["accent-body"],[h]);var f="\\textcircled"===i.label;f&&(u.classes.push("accent-full"),c=s.height);var g=a;f||(g-=p/2),u.style.left=g+"em","\\textcircled"===i.label&&(u.style.top=".2em"),u=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-c},{type:"elem",elem:u}]},t)}var m=Xe.makeSpan(["mord","accent"],[u],t);return o?(o.children[0]=m,o.height=Math.max(m.height,o.height),o.classes[0]="mord",o):m}function Wt(e,t){var n=e.isStretchy?Ht(e.label):new Pt.MathNode("mo",[Et(e.label,e.mode)]),i=new Pt.MathNode("mover",[At(e.base,t),n]);return i.setAttribute("accent","true"),i}var Vt={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb"},zt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ht=function(e){var t=new Pt.MathNode("mo",[new Pt.TextNode(Vt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},qt=function(e,t){var n=function(){var n=4e5,i=e.label.substr(1);if(d.contains(["widehat","widecheck","widetilde","utilde"],i)){var o,r,s,a="ordgroup"===(f=e.base).type?f.body.length:1;if(5<a)r="widehat"===i||"widecheck"===i?(o=420,n=2364,s=.42,i+"4"):(o=312,n=2340,s=.34,"tilde4");else{var l=[1,1,2,2,3,3][a];r="widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],i+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],"tilde"+l)}var u=new j(r),c=new R([u],{width:"100%",height:s+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Xe.makeSvgSpan([],[c],t),minWidth:0,height:s}}var h,p,f,g=[],m=zt[i],v=m[0],y=m[1],b=m[2],_=b/1e3,w=v.length;if(1===w)h=["hide-tail"],p=[m[3]];else if(2===w)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var C=0;C<w;C++){var S=new j(v[C]),O=new R([S],{width:"400em",height:_+"em",viewBox:"0 0 "+n+" "+b,preserveAspectRatio:p[C]+" slice"}),x=Xe.makeSvgSpan([h[C]],[O],t);if(1===w)return{span:x,minWidth:y,height:_};x.style.height=_+"em",g.push(x)}return{span:Xe.makeSpan(["stretchy"],g,t),minWidth:y,height:_}}(),i=n.span,o=n.minWidth,r=n.height;return i.height=r,i.style.height=r+"em",0<o&&(i.style.minWidth=o+"em"),i},Ut=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));function Kt(e){var t=new Pt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t}function Gt(e,t){var n=pt(e.body,t.withColor(e.color),!1);return Xe.makeFragment(n)}function Yt(e,t){var n=Dt(e.body,t.withColor(e.color)),i=new Pt.MathNode("mstyle",n);return i.setAttribute("mathcolor",e.color),i}function Zt(e,t,n){var i=H(Y.math[e]&&Y.math[e].replace||e,t,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return i}function Xt(e,t,n,i){var o=n.havingBaseStyle(t),r=Xe.makeSpan(i.concat(o.sizingClasses(n)),[e],n),s=o.sizeMultiplier/n.sizeMultiplier;return r.height*=s,r.depth*=s,r.maxFontSize=o.sizeMultiplier,r}function $t(e,t,n){var i=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o}function Jt(e,t,n,i,o,r){var s,a,l,u,c=(s=e,a=t,l=o,u=i,Xe.makeSymbol(s,"Size"+a+"-Regular",l,u)),d=Xt(Xe.makeSpan(["delimsizing","size"+t],[c],i),w.TEXT,i,r);return n&&$t(d,i,w.TEXT),d}function Qt(e,t,n){var i;return i="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Xe.makeSpan(["delimsizinginner",i],[Xe.makeSpan([],[Xe.makeSymbol(e,t,n)])])}}function en(e,t,n,i,o,r){var s,a,l,u;s=l=u=e,a=null;var c="Size1-Regular";"\\uparrow"===e?l=u="\u23d0":"\\Uparrow"===e?l=u="\u2016":"\\downarrow"===e?s=l="\u23d0":"\\Downarrow"===e?s=l="\u2016":"\\updownarrow"===e?(s="\\uparrow",l="\u23d0",u="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",l="\u2016",u="\\Downarrow"):"["===e||"\\lbrack"===e?(s="\u23a1",l="\u23a2",u="\u23a3",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(s="\u23a4",l="\u23a5",u="\u23a6",c="Size4-Regular"):"\\lfloor"===e||"\u230a"===e?(l=s="\u23a2",u="\u23a3",c="Size4-Regular"):"\\lceil"===e||"\u2308"===e?(s="\u23a1",l=u="\u23a2",c="Size4-Regular"):"\\rfloor"===e||"\u230b"===e?(l=s="\u23a5",u="\u23a6",c="Size4-Regular"):"\\rceil"===e||"\u2309"===e?(s="\u23a4",l=u="\u23a5",c="Size4-Regular"):"("===e||"\\lparen"===e?(s="\u239b",l="\u239c",u="\u239d",c="Size4-Regular"):")"===e||"\\rparen"===e?(s="\u239e",l="\u239f",u="\u23a0",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(s="\u23a7",a="\u23a8",u="\u23a9",l="\u23aa",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="\u23ab",a="\u23ac",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(s="\u23a7",u="\u23a9",l="\u23aa",c="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(s="\u23ab",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(s="\u23a7",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(s="\u23ab",u="\u23a9",l="\u23aa",c="Size4-Regular");var d=Zt(s,c,o),h=d.height+d.depth,p=Zt(l,c,o),f=p.height+p.depth,g=Zt(u,c,o),m=g.height+g.depth,v=0,y=1;if(null!==a){var b=Zt(a,c,o);v=b.height+b.depth,y=2}var _=h+m+v,C=Math.max(0,Math.ceil((t-_)/(y*f))),S=_+C*y*f,O=i.fontMetrics().axisHeight;n&&(O*=i.sizeMultiplier);var x=S/2-O,k=.005*(C+1)-f,E=[];if(E.push(Qt(u,c,o)),null===a)for(var N=0;N<C;N++)E.push(rn),E.push(Qt(l,c,o));else{for(var L=0;L<C;L++)E.push(rn),E.push(Qt(l,c,o));E.push({type:"kern",size:k}),E.push(Qt(l,c,o)),E.push(rn),E.push(Qt(a,c,o));for(var D=0;D<C;D++)E.push(rn),E.push(Qt(l,c,o))}E.push({type:"kern",size:k}),E.push(Qt(l,c,o)),E.push(rn),E.push(Qt(s,c,o));var M=i.havingBaseStyle(w.TEXT),T=Xe.makeVList({positionType:"bottom",positionData:x,children:E},M);return Xt(Xe.makeSpan(["delimsizing","mult"],[T],M),w.TEXT,i,r)}function tn(e,t,n,i,o){var r=function(e,t,n){t*=1e3;var i,o,r,s,a,l,u="";switch(e){case"sqrtMain":u="M95,"+(622+(l=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+l/2.075+" -"+l+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+l)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+l)+" 80h400000v"+(40+l)+"h-400000z";break;case"sqrtSize1":u="M263,"+(601+(a=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+a/2.084+" -"+a+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+a)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize2":u="M983 "+(10+(s=t)+80)+"\nl"+s/3.13+" -"+s+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+s)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+s)+" 80h400000v"+(40+s)+"h-400000z";break;case"sqrtSize3":u="M424,"+(2398+(r=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+r/4.223+" -"+r+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+r)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+r)+" 80\nh400000v"+(40+r)+"h-400000z";break;case"sqrtSize4":u="M473,"+(2713+(o=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+o/5.298+" -"+o+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+o)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+o)+" 80h400000v"+(40+o)+"H1017.7z";break;case"sqrtTall":u="M702 "+((i=t)+80)+"H400000"+(40+i)+"\nH742v"+(n-54-80-i)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+i)+"H742z"}return u}(e,i,n),s=new j(e,r),a=new R([s],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Xe.makeSvgSpan(["hide-tail"],[a],o)}function nn(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")}function on(e,t,n,i,o,r){var s;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),s=d.contains(ln,e)?cn:d.contains(sn,e)?hn:dn;var a,l,u,c,h,p,f,g=pn(e,t,s,i);return"small"===g.type?(a=e,l=g.style,u=n,c=i,h=o,p=r,f=Xt(Xe.makeSymbol(a,"Main-Regular",h,c),l,c,p),u&&$t(f,c,l),f):"large"===g.type?Jt(e,g.size,n,i,o,r):en(e,t,n,i,o,r)}ct({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],i=!Ut.test(e.funcName),o=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:Bt,mathmlBuilder:Wt}),ct({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Bt,mathmlBuilder:Wt}),ct({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:function(e,t){var n=St(e.base,t),i=qt(e,t),o="\\utilde"===e.label?.12:0,r=Xe.makeVList({positionType:"bottom",positionData:i.height+o,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord","accentunder"],[r],t)},mathmlBuilder:function(e,t){var n=Ht(e.label),i=new Pt.MathNode("munder",[At(e.base,t),n]);return i.setAttribute("accentunder","true"),i}}),ct({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var i=e.parser,o=e.funcName;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,i=t.style,o=t.havingStyle(i.sup()),r=Xe.wrapFragment(St(e.body,o,t),t);r.classes.push("x-arrow-pad"),e.below&&(o=t.havingStyle(i.sub()),(n=Xe.wrapFragment(St(e.below,o,t),t)).classes.push("x-arrow-pad"));var s,a=qt(e,t),l=-t.fontMetrics().axisHeight+.5*a.height,u=-t.fontMetrics().axisHeight-.5*a.height-.111;if((.25<r.depth||"\\xleftequilibrium"===e.label)&&(u-=r.depth),n){var c=-t.fontMetrics().axisHeight+n.height+.5*a.height+.111;s=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:u},{type:"elem",elem:a,shift:l},{type:"elem",elem:n,shift:c}]},t)}else s=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:u},{type:"elem",elem:a,shift:l}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Xe.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var n,i=Ht(e.label);if(e.body){var o=Kt(At(e.body,t));if(e.below){var r=Kt(At(e.below,t));n=new Pt.MathNode("munderover",[i,r,o])}else n=new Pt.MathNode("mover",[i,o])}else if(e.below){var s=Kt(At(e.below,t));n=new Pt.MathNode("munder",[i,s])}else n=Kt(),n=new Pt.MathNode("mover",[i,n]);return n}}),ct({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,i=$e(t[0],"ordgroup").body,o="",r=0;r<i.length;r++)o+=$e(i[r],"textord").text;var a=parseInt(o);if(isNaN(a))throw new s("\\@char has non-numeric argument "+o);return{type:"textord",mode:n.mode,text:String.fromCharCode(a)}}}),ct({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,i=$e(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:ht(o)}},htmlBuilder:Gt,mathmlBuilder:Yt}),ct({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,i=e.breakOnTokenText,o=$e(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var r=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:r}},htmlBuilder:Gt,mathmlBuilder:Yt}),ct({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var i=e.parser,o=e.funcName,r=n[0],s="\\cr"===o,a=!1;return s||(a=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:i.mode,newLine:a,newRow:s,size:r&&$e(r,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new s("\\cr valid only within a tabular/array environment");var n=Xe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Ae(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Ae(e.size,t)+"em")),n}});var rn={type:"kern",size:-.005},sn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],an=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],ln=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],un=[0,1.2,1.8,2.4,3],cn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],dn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],hn=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],pn=function(e,t,n,i){for(var o=Math.min(2,3-i.style.size);o<n.length&&"stack"!==n[o].type;o++){var r=Zt(e,nn(n[o]),"math"),s=r.height+r.depth;if("small"===n[o].type&&(s*=i.havingBaseStyle(n[o].style).sizeMultiplier),t<s)return n[o]}return n[n.length-1]},fn=function(e,t,n,i,o){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),d.contains(sn,e)||d.contains(ln,e))return Jt(e,t,!1,n,i,o);if(d.contains(an,e))return en(e,un[t],!1,n,i,o);throw new s("Illegal delimiter: '"+e+"'")},gn=on,mn=function(e,t,n,i,o,r){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,a=5/i.fontMetrics().ptPerEm,l=Math.max(t-s,n+s);return on(e,Math.max(l/500*901,2*l-a),!0,i,o,r)},vn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},yn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function bn(e,t){var n=tt(e);if(n&&d.contains(yn,n.text))return n;throw new s("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function _n(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function wn(e,t){var n,i,o=Xe.wrapFragment(St(e.body,t),t),r=e.label.substr(1),s=t.sizeMultiplier,a=0,l=d.isCharacterBox(e.body);if("sout"===r)(n=Xe.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,a=-.5*t.fontMetrics().xHeight;else{/cancel/.test(r)?l||o.classes.push("cancel-pad"):o.classes.push("boxpad");var u,c=0;n=function(e,t,n,i){var o,r=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Xe.makeSpan(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var a=[];/^[bx]cancel$/.test(t)&&a.push(new F({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&a.push(new F({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new R(a,{width:"100%",height:r+"em"});o=Xe.makeSvgSpan([],[l],i)}return o.height=r,o.style.height=r+"em",o}(o,r,u=/box/.test(r)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),t.fontMetrics().fboxsep+("colorbox"===r?0:c)):l?.2:0,t),/fbox|boxed|fcolorbox/.test(r)&&(n.style.borderStyle="solid",n.style.borderWidth=c+"em"),a=o.depth+u,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return i=e.backgroundColor?Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:a},{type:"elem",elem:o,shift:0}]},t):Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:n,shift:a,wrapperClasses:/cancel/.test(r)?["svg-align"]:[]}]},t),/cancel/.test(r)&&(i.height=o.height,i.depth=o.depth),/cancel/.test(r)&&!l?Xe.makeSpan(["mord","cancel-lap"],[i],t):Xe.makeSpan(["mord"],[i],t)}function Cn(e,t){var n=0,i=new Pt.MathNode(-1<e.label.indexOf("colorbox")?"mpadded":"menclose",[At(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i}ct({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=bn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:vn[e.funcName].size,mclass:vn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Xe.makeSpan([e.mclass]):fn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Et(e.delim,e.mode));var n=new Pt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),ct({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:bn(t[0],e).text,color:n}}}),ct({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=bn(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var r=$e(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:r.delim,rightColor:r.color}},htmlBuilder:function(e,t){_n(e);for(var n,i,o=pt(e.body,t,!0,["mopen","mclose"]),r=0,s=0,a=!1,l=0;l<o.length;l++)o[l].isMiddle?a=!0:(r=Math.max(o[l].height,r),s=Math.max(o[l].depth,s));if(r*=t.sizeMultiplier,s*=t.sizeMultiplier,n="."===e.left?ft(t,["mopen"]):mn(e.left,r,s,t,e.mode,["mopen"]),o.unshift(n),a)for(var u=1;u<o.length;u++){var c=o[u].isMiddle;c&&(o[u]=mn(c.delim,r,s,c.options,e.mode,[]))}if("."===e.right)i=ft(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;i=mn(e.right,r,s,d,e.mode,["mclose"])}return o.push(i),Xe.makeSpan(["minner"],o,t)},mathmlBuilder:function(e,t){_n(e);var n=Dt(e.body,t);if("."!==e.left){var i=new Pt.MathNode("mo",[Et(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if("."!==e.right){var o=new Pt.MathNode("mo",[Et(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return Nt(n)}}),ct({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=bn(t[0],e);if(!e.parser.leftrightDepth)throw new s("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=ft(t,[]);else{n=fn(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:function(e){var t="\\vert"===e.delim||"|"===e.delim?Et("|","text"):Et(e.delim,e.mode),n=new Pt.MathNode("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}}),ct({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t){var n=e.parser,i=e.funcName,o=$e(t[0],"color-token").color,r=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,body:r}},htmlBuilder:wn,mathmlBuilder:Cn}),ct({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t){var n=e.parser,i=e.funcName,o=$e(t[0],"color-token").color,r=$e(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:r,borderColor:o,body:s}},htmlBuilder:wn,mathmlBuilder:Cn}),ct({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),ct({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:wn,mathmlBuilder:Cn});var Sn={};function On(e){for(var t=e.type,n=e.names,i=e.props,o=e.handler,r=e.htmlBuilder,s=e.mathmlBuilder,a={type:t,numArgs:i.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)Sn[n[l]]=a;r&&(lt[t]=r),s&&(ut[t]=s)}function xn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function kn(e,t,n){var i=t.hskipBeforeAndAfter,o=t.addJot,r=t.cols,a=t.arraystretch,l=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!a){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)a=1;else if(!(a=parseFloat(u))||a<0)throw new s("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var c=[],d=[c],h=[],p=[];for(p.push(xn(e));;){var f=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),f={type:"ordgroup",mode:e.mode,body:f},n&&(f={type:"styling",mode:e.mode,style:n,body:[f]}),c.push(f);var g=e.fetch().text;if("&"===g)e.consume();else{if("\\end"===g){1===c.length&&"styling"===f.type&&0===f.body[0].body.length&&d.pop(),p.length<d.length+1&&p.push([]);break}if("\\cr"!==g)throw new s("Expected & or \\\\ or \\cr or \\end",e.nextToken);var m=$e(e.parseFunction(),"cr");h.push(m.size),p.push(xn(e)),c=[],d.push(c)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:d,cols:r,rowGaps:h,hskipBeforeAndAfter:i,hLinesBeforeRow:p,colSeparationType:l}}function En(e){return"d"===e.substr(0,1)?"display":"text"}function Nn(e,t){var n,i,o=e.body.length,r=e.hLinesBeforeRow,a=0,l=new Array(o),u=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,p=5*h;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(w.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f=12*h,g=3*h,m=e.arraystretch*f,v=.7*m,y=.3*m,b=0;function _(e){for(var t=0;t<e.length;++t)0<t&&(b+=.25),u.push({pos:b,isDashed:e[t]})}for(_(r[0]),n=0;n<e.body.length;++n){var C=e.body[n],S=v,O=y;a<C.length&&(a=C.length);var x=new Array(C.length);for(i=0;i<C.length;++i){var k=St(C[i],t);O<k.depth&&(O=k.depth),S<k.height&&(S=k.height),x[i]=k}var E=e.rowGaps[n],N=0;E&&0<(N=Ae(E,t))&&(O<(N+=y)&&(O=N),N=0),e.addJot&&(O+=g),x.height=S,x.depth=O,b+=S,x.pos=b,b+=O+N,l[n]=x,_(r[n+1])}var L,D,M=b/2+t.fontMetrics().axisHeight,T=e.cols||[],I=[];for(D=i=0;i<a||D<T.length;++i,++D){for(var P=T[D]||{},A=!0;"separator"===P.type;){if(A||((L=Xe.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",I.push(L)),"|"!==P.separator&&":"!==P.separator)throw new s("Invalid separator type: "+P.separator);var R="|"===P.separator?"solid":"dashed",j=Xe.makeSpan(["vertical-separator"],[],t);j.style.height=b+"em",j.style.borderRightWidth=c+"em",j.style.borderRightStyle=R,j.style.margin="0 -"+c/2+"em",j.style.verticalAlign=-(b-M)+"em",I.push(j),P=T[++D]||{},A=!1}if(!(a<=i)){var F=void 0;(0<i||e.hskipBeforeAndAfter)&&0!==(F=d.deflt(P.pregap,p))&&((L=Xe.makeSpan(["arraycolsep"],[])).style.width=F+"em",I.push(L));var B=[];for(n=0;n<o;++n){var W=l[n],V=W[i];if(V){var z=W.pos-M;V.depth=W.depth,V.height=W.height,B.push({type:"elem",elem:V,shift:z})}}B=Xe.makeVList({positionType:"individualShift",children:B},t),B=Xe.makeSpan(["col-align-"+(P.align||"c")],[B]),I.push(B),(i<a-1||e.hskipBeforeAndAfter)&&0!==(F=d.deflt(P.postgap,p))&&((L=Xe.makeSpan(["arraycolsep"],[])).style.width=F+"em",I.push(L))}}if(l=Xe.makeSpan(["mtable"],I),0<u.length){for(var H=Xe.makeLineSpan("hline",t,c),q=Xe.makeLineSpan("hdashline",t,c),U=[{type:"elem",elem:l,shift:0}];0<u.length;){var K=u.pop(),G=K.pos-M;K.isDashed?U.push({type:"elem",elem:q,shift:G}):U.push({type:"elem",elem:H,shift:G})}l=Xe.makeVList({positionType:"individualShift",children:U},t)}return Xe.makeSpan(["mord"],[l],t)}function Ln(e,t){var n=new Pt.MathNode("mtable",e.body.map((function(e){return new Pt.MathNode("mtr",e.map((function(e){return new Pt.MathNode("mtd",[At(e,t)])})))}))),i=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",i+"em");var o="",r="";if(e.cols){var s=e.cols,a="",l=!1,u=0,c=s.length;"separator"===s[0].type&&(o+="top ",u=1),"separator"===s[s.length-1].type&&(o+="bottom ",--c);for(var d=u;d<c;d++)"align"===s[d].type?(r+=Mn[s[d].align],l&&(a+="none "),l=!0):"separator"===s[d].type&&l&&(a+="|"===s[d].separator?"solid ":"dashed ",l=!1);n.setAttribute("columnalign",r.trim()),/[sd]/.test(a)&&n.setAttribute("columnlines",a.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",f=1;f<h.length;f++)p+=f%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var g="",m=e.hLinesBeforeRow;o+=0<m[0].length?"left ":"",o+=0<m[m.length-1].length?"right ":"";for(var v=1;v<m.length-1;v++)g+=0===m[v].length?"none ":m[v][0]?"dashed ":"solid ";return/[sd]/.test(g)&&n.setAttribute("rowlines",g.trim()),""!==o&&(n=new Pt.MathNode("menclose",[n])).setAttribute("notation",o.trim()),e.arraystretch&&e.arraystretch<1&&(n=new Pt.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n}function Dn(e,t){var n,i=[],o=kn(e.parser,{cols:i,addJot:!0},"display"),r=0,a={type:"ordgroup",mode:e.mode,body:[]},l=Je(t[0],"ordgroup");if(l){for(var u="",c=0;c<l.body.length;c++)u+=$e(l.body[c],"textord").text;n=Number(u),r=2*n}var d=!r;o.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var i=$e(e[t],"styling");$e(i.body[0],"ordgroup").body.unshift(a)}if(d)r<e.length&&(r=e.length);else{var o=e.length/2;if(n<o)throw new s("Too many math in a row: expected "+n+", but got "+o,e[0])}}));for(var h=0;h<r;++h){var p="r",f=0;h%2==1?p="l":0<h&&d&&(f=1),i[h]={type:"align",align:p,pregap:f,postgap:0}}return o.colSeparationType=d?"align":"alignat",o}var Mn={c:"center ",l:"left ",r:"right "};On({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(tt(t[0])?[t[0]]:$e(t[0],"ordgroup").body).map((function(e){var t=et(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return kn(e.parser,n,En(e.envName))},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=kn(e.parser,{hskipBeforeAndAfter:!1},En(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=kn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(tt(t[0])?[t[0]]:$e(t[0],"ordgroup").body).map((function(e){var t=et(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new s("Unknown column alignment: "+t,e)}));if(1<n.length)throw new s("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(1<(i=kn(e.parser,i,"script")).body[0].length)throw new s("{subarray} can contain only one column");return i},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=kn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},En(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["aligned"],props:{numArgs:0},handler:Dn,htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return kn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Nn,mathmlBuilder:Ln}),On({type:"array",names:["alignedat"],props:{numArgs:1},handler:Dn,htmlBuilder:Nn,mathmlBuilder:Ln}),ct({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e){throw new s(e.funcName+" valid only within array environment")}});var Tn=Sn;ct({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new s("Invalid environment name",o);for(var r="",a=0;a<o.body.length;++a)r+=$e(o.body[a],"textord").text;if("\\begin"!==i)return{type:"environment",mode:n.mode,name:r,nameGroup:o};if(!Tn.hasOwnProperty(r))throw new s("No such environment: "+r,o);var l=Tn[r],u=n.parseArguments("\\begin{"+r+"}",l),c=u.args,d=u.optArgs,h={mode:n.mode,envName:r,parser:n},p=l.handler(h,c,d);n.expect("\\end",!1);var f=n.nextToken,g=$e(n.parseFunction(),"environment");if(g.name!==r)throw new s("Mismatch: \\begin{"+r+"} matched by \\end{"+g.name+"}",f);return p}});var In=Xe.makeSpan;function Pn(e,t){var n=pt(e.body,t,!0);return In([e.mclass],n,t)}function An(e,t){var n,i=Dt(e.body,t);return"minner"===e.mclass?Pt.newDocumentFragment(i):("mord"===e.mclass?e.isCharacterBox?(n=i[0]).type="mi":n=new Pt.MathNode("mi",i):(e.isCharacterBox?(n=i[0]).type="mo":n=new Pt.MathNode("mo",i),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}function Rn(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family}function jn(e,t){var n=e.font,i=t.withFont(n);return St(e.body,i)}function Fn(e,t){var n=e.font,i=t.withFont(n);return At(e.body,i)}ct({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.substr(5),body:ht(o),isCharacterBox:d.isCharacterBox(o)}},htmlBuilder:Pn,mathmlBuilder:An}),ct({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Rn(t[0]),body:[t[1]],isCharacterBox:d.isCharacterBox(t[1])}}}),ct({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,i=e.parser,o=e.funcName,r=t[1],s=t[0];n="\\stackrel"!==o?Rn(r):"mrel";var a={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:ht(r)},l={type:"supsub",mode:s.mode,base:a,sup:"\\underset"===o?null:s,sub:"\\underset"===o?s:null};return{type:"mclass",mode:i.mode,mclass:n,body:[l],isCharacterBox:d.isCharacterBox(l)}},htmlBuilder:Pn,mathmlBuilder:An});var Bn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};function Wn(e,t){var n=t;return"display"===e?n=n.id>=w.SCRIPT.id?n.text():w.DISPLAY:"text"===e&&n.size===w.DISPLAY.size?n=w.TEXT:"script"===e?n=w.SCRIPT:"scriptscript"===e&&(n=w.SCRIPTSCRIPT),n}function Vn(e,t){var n,i=Wn(e.size,t.style),o=i.fracNum(),r=i.fracDen();n=t.havingStyle(o);var s=St(e.numer,n,t);if(e.continued){var a=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<a?a:s.height,s.depth=s.depth<l?l:s.depth}n=t.havingStyle(r);var u,c,d,h,p,f,g,m,v,y,b=St(e.denom,n,t);if(d=e.hasBarLine?(c=(u=e.barSize?(c=Ae(e.barSize,t),Xe.makeLineSpan("frac-line",t,c)):Xe.makeLineSpan("frac-line",t)).height,u.height):(u=null,c=0,t.fontMetrics().defaultRuleThickness),f=i.size===w.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=0<c?3*d:7*d,t.fontMetrics().denom1):(p=0<c?(h=t.fontMetrics().num2,d):(h=t.fontMetrics().num3,3*d),t.fontMetrics().denom2),u){var _=t.fontMetrics().axisHeight;h-s.depth-(_+.5*c)<p&&(h+=p-(h-s.depth-(_+.5*c))),_-.5*c-(b.height-f)<p&&(f+=p-(_-.5*c-(b.height-f)));var C=-(_-.5*c);g=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:u,shift:C},{type:"elem",elem:s,shift:-h}]},t)}else{var S=h-s.depth-(b.height-f);S<p&&(h+=.5*(p-S),f+=.5*(p-S)),g=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:s,shift:-h}]},t)}return n=t.havingStyle(i),g.height*=n.sizeMultiplier/t.sizeMultiplier,g.depth*=n.sizeMultiplier/t.sizeMultiplier,m=i.size===w.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,v=null==e.leftDelim?ft(t,["mopen"]):gn(e.leftDelim,m,!0,t.havingStyle(i),e.mode,["mopen"]),y=e.continued?Xe.makeSpan([]):null==e.rightDelim?ft(t,["mclose"]):gn(e.rightDelim,m,!0,t.havingStyle(i),e.mode,["mclose"]),Xe.makeSpan(["mord"].concat(n.sizingClasses(t)),[v,Xe.makeSpan(["mfrac"],[g]),y],t)}function zn(e,t){var n=new Pt.MathNode("mfrac",[At(e.numer,t),At(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var i=Ae(e.barSize,t);n.setAttribute("linethickness",i+"em")}}else n.setAttribute("linethickness","0px");var o=Wn(e.size,t.style);if(o.size!==t.style.size){n=new Pt.MathNode("mstyle",[n]);var r=o.size===w.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",r),n.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return n;var s=[];if(null!=e.leftDelim){var a=new Pt.MathNode("mo",[new Pt.TextNode(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),s.push(a)}if(s.push(n),null!=e.rightDelim){var l=new Pt.MathNode("mo",[new Pt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return Nt(s)}function Hn(e){var t=null;return 0<e.length&&(t="."===(t=e)?null:t),t}ct({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0],r=i;return r in Bn&&(r=Bn[r]),{type:"font",mode:n.mode,font:r.slice(1),body:o}},htmlBuilder:jn,mathmlBuilder:Fn}),ct({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,i=t[0],o=d.isCharacterBox(i);return{type:"mclass",mode:n.mode,mclass:Rn(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:o}}}),ct({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,i=e.breakOnTokenText,o=t.mode,r=t.parseExpression(!0,i);return{type:"font",mode:o,font:"math"+n.slice(1),body:{type:"ordgroup",mode:t.mode,body:r}}},htmlBuilder:jn,mathmlBuilder:Fn}),ct({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,i=e.parser,o=e.funcName,r=t[0],s=t[1],a=null,l=null,u="auto";switch(o){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,a="(",l=")";break;case"\\\\bracefrac":n=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\cfrac":case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:i.mode,continued:"\\cfrac"===o,numer:r,denom:s,hasBarLine:n,leftDelim:a,rightDelim:l,size:u,barSize:null}},htmlBuilder:Vn,mathmlBuilder:zn}),ct({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,i=e.funcName,o=e.token;switch(i){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var qn=["display","text","script","scriptscript"];function Un(e,t){var n,i,o=t.style,r=Je(e,"supsub");i=r?(n=r.sup?St(r.sup,t.havingStyle(o.sup()),t):St(r.sub,t.havingStyle(o.sub()),t),$e(r.base,"horizBrace")):$e(e,"horizBrace");var s,a=St(i.base,t.havingBaseStyle(w.DISPLAY)),l=qt(i,t);if(i.isOver?(s=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(s=Xe.makeVList({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var u=Xe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);s=i.isOver?Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Xe.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return Xe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)}function Kn(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new s("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Pe(n))throw new s("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}function Gn(e,t){switch(t.style.size){case w.DISPLAY.size:return e.display;case w.TEXT.size:return e.text;case w.SCRIPT.size:return e.script;case w.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}function Yn(e,t,n,i,o,r,s){var a,l,u;if(e=Xe.makeSpan([],[e]),t){var c=St(t,i.havingStyle(o.sup()),i);l={elem:c,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=St(n,i.havingStyle(o.sub()),i);a={elem:d,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-d.height)}}if(l&&a){var h=i.fontMetrics().bigOpSpacing5+a.elem.height+a.elem.depth+a.kern+e.depth+s;u=Xe.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:-r+"em"},{type:"kern",size:a.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:r+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(a){var p=e.height-s;u=Xe.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:-r+"em"},{type:"kern",size:a.kern},{type:"elem",elem:e}]},i)}else{if(!l)return e;var f=e.depth+s;u=Xe.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:r+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}return Xe.makeSpan(["mop","op-limits"],[u],i)}function Zn(e,t){var n,i,o,r=!1,s=Je(e,"supsub");s?(n=s.sup,i=s.sub,o=$e(s.base,"op"),r=!0):o=$e(e,"op");var a,l=t.style,u=!1;if(l.size===w.DISPLAY.size&&o.symbol&&!d.contains($n,o.name)&&(u=!0),o.symbol){var c=u?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),a=Xe.makeSymbol(o.name,c,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),0<h.length){var p=a.italic,f=Xe.staticSvg(h+"Size"+(u?"2":"1"),t);a=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:f,shift:u?.08:0}]},t),o.name="\\"+h,a.classes.unshift("mop"),a.italic=p}}else if(o.body){var g=pt(o.body,t,!0);1===g.length&&g[0]instanceof A?(a=g[0]).classes[0]="mop":a=Xe.makeSpan(["mop"],Xe.tryCombineChars(g),t)}else{for(var m=[],v=1;v<o.name.length;v++)m.push(Xe.mathsym(o.name[v],o.mode,t));a=Xe.makeSpan(["mop"],m,t)}var y=0,b=0;return(a instanceof A||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(y=(a.height-a.depth)/2-t.fontMetrics().axisHeight,b=a.italic),r?Yn(a,n,i,t,l,b,y):(y&&(a.style.position="relative",a.style.top=y+"em"),a)}function Xn(e,t){var n;if(e.symbol)n=new Tt("mo",[Et(e.name,e.mode)]),d.contains($n,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Tt("mo",Dt(e.body,t));else{n=new Tt("mi",[new It(e.name.slice(1))]);var i=new Tt("mo",[Et("\u2061","text")]);n=e.parentIsSupSub?new Tt("mo",[n,i]):kt([n,i])}return n}ct({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,i=e.parser,o=t[4],r=t[5],s=Je(t[0],"atom"),a=(s=s&&Qe(t[0],"open"))?Hn(s.text):null,l=Je(t[1],"atom"),u=(l=l&&Qe(t[1],"close"))?Hn(l.text):null,c=$e(t[2],"size"),d=null;n=!!c.isBlank||0<(d=c.value).number;var h="auto",p=Je(t[3],"ordgroup");if(p){if(0<p.body.length){var f=$e(p.body[0],"textord");h=qn[Number(f.text)]}}else p=$e(t[3],"textord"),h=qn[Number(p.text)];return{type:"genfrac",mode:i.mode,numer:o,denom:r,continued:!1,hasBarLine:n,barSize:d,leftDelim:a,rightDelim:u,size:h}},htmlBuilder:Vn,mathmlBuilder:zn}),ct({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,i=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:$e(t[0],"size").value,token:i}}}),ct({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,i=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}($e(t[1],"infix").size),r=t[2],s=0<o.number;return{type:"genfrac",mode:n.mode,numer:i,denom:r,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Vn,mathmlBuilder:zn}),ct({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Un,mathmlBuilder:function(e,t){var n=Ht(e.label);return new Pt.MathNode(e.isOver?"mover":"munder",[At(e.base,t),n])}}),ct({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[1],o=$e(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:ht(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=pt(e.body,t,!1);return Xe.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Mt(e.body,t);return n instanceof Tt||(n=new Tt("mrow",[n])),n.setAttribute("href",e.href),n}}),ct({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=$e(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],r=0;r<i.length;r++){var s=i[r];"~"===s&&(s="\\textasciitilde"),o.push({type:"textord",mode:"text",text:s})}var a={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:ht(a)}}}),ct({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:ht(t[0]),mathml:ht(t[1])}},htmlBuilder:function(e,t){var n=pt(e.html,t,!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){return Mt(e.mathml,t)}}),ct({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var i=e.parser,o={number:0,unit:"em"},r={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(n[0])for(var u=$e(n[0],"raw").string.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2===d.length){var h=d[1].trim();switch(d[0].trim()){case"alt":l=h;break;case"width":o=Kn(h);break;case"height":r=Kn(h);break;case"totalheight":a=Kn(h);break;default:throw new s("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var p=$e(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:i.mode,alt:l,width:o,height:r,totalheight:a,src:p}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Ae(e.height,t),i=0;0<e.totalheight.number&&(i=Ae(e.totalheight,t)-n,i=Number(i.toFixed(2)));var o=0;0<e.width.number&&(o=Ae(e.width,t));var r={height:n+i+"em"};0<o&&(r.width=o+"em"),0<i&&(r.verticalAlign=-i+"em");var s=new I(e.src,e.alt,r);return s.height=n,s.depth=i,s},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=Ae(e.height,t),o=0;if(0<e.totalheight.number&&(o=(o=Ae(e.totalheight,t)-i).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",i+o+"em"),0<e.width.number){var r=Ae(e.width,t);n.setAttribute("width",r+"em")}return n.setAttribute("src",e.src),n}}),ct({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,o=$e(t[0],"size");if(n.settings.strict){var r="m"===i[1],s="mu"===o.value.unit;r?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Xe.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Ae(e.dimension,t);return new Pt.SpaceNode(n)}}),ct({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:function(e,t){var n;n="clap"===e.alignment?(n=Xe.makeSpan([],[St(e.body,t)]),Xe.makeSpan(["inner"],[n],t)):Xe.makeSpan(["inner"],[St(e.body,t)]);var i=Xe.makeSpan(["fix"],[]),o=Xe.makeSpan([e.alignment],[n,i],t),r=Xe.makeSpan(["strut"]);return r.style.height=o.height+o.depth+"em",r.style.verticalAlign=-o.depth+"em",o.children.unshift(r),o=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Xe.makeSpan(["mord"],[o],t)},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mpadded",[At(e.body,t)]);if("rlap"!==e.alignment){var i="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),ct({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e){var t=e.funcName,n=e.parser,i=n.mode;n.switchMode("math");var o="\\("===t?"\\)":"$",r=n.parseExpression(!1,o);return n.expect(o),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:r}}}),ct({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e){throw new s("Mismatched "+e.funcName)}}),ct({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ht(t[0]),text:ht(t[1]),script:ht(t[2]),scriptscript:ht(t[3])}},htmlBuilder:function(e,t){var n=pt(Gn(e,t),t,!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){return Mt(Gn(e,t),t)}});var $n=["\\smallint"],Jn={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};ct({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=Jn[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ct({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ht(i)}},htmlBuilder:Zn,mathmlBuilder:Xn});var Qn={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};function ei(e,t){var n,i,o,r,s=!1,a=Je(e,"supsub");if(a?(n=a.sup,i=a.sub,o=$e(a.base,"operatorname"),s=!0):o=$e(e,"operatorname"),0<o.body.length){for(var l=pt(o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof A&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}r=Xe.makeSpan(["mop"],l,t)}else r=Xe.makeSpan(["mop"],[],t);return s?Yn(r,n,i,t,t.style,0,0):r}function ti(e,t,n){for(var i=pt(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,r=0;r<i.length;r++){var s=i[r].classes.indexOf("sizing");s<0?Array.prototype.push.apply(i[r].classes,t.sizingClasses(n)):i[r].classes[s+1]==="reset-size"+t.size&&(i[r].classes[s+1]="reset-size"+n.size),i[r].height*=o,i[r].depth*=o}return Xe.makeFragment(i)}ct({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ct({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ct({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=Qn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ct({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"operatorname",mode:n.mode,body:ht(o),alwaysHandleSupSub:"\\operatorname*"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:ei,mathmlBuilder:function(e,t){for(var n=Dt(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var r=n[o];if(!(r instanceof Pt.SpaceNode))if(r instanceof Pt.MathNode)switch(r.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var s=r.children[0];1===r.children.length&&s instanceof Pt.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break;default:i=!1}else i=!1}if(i){var a=n.map((function(e){return e.toText()})).join("");n=[new Pt.TextNode(a)]}var l=new Pt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Pt.MathNode("mo",[Et("\u2061","text")]);return e.parentIsSupSub?new Pt.MathNode("mo",[l,u]):Pt.newDocumentFragment([l,u])}}),dt({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?Xe.makeFragment(pt(e.body,t,!1)):Xe.makeSpan(["mord"],pt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Mt(e.body,t,!0)}}),ct({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle()),i=Xe.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,r=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]},t);return Xe.makeSpan(["mord","overline"],[r],t)},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mo",[new Pt.TextNode("\u203e")]);n.setAttribute("stretchy","true");var i=new Pt.MathNode("mover",[At(e.body,t),n]);return i.setAttribute("accent","true"),i}}),ct({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[0];return{type:"phantom",mode:n.mode,body:ht(i)}},htmlBuilder:function(e,t){var n=pt(e.body,t.withPhantom(),!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){var n=Dt(e.body,t);return new Pt.MathNode("mphantom",n)}}),ct({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:function(e,t){var n=Xe.makeSpan([],[St(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i<n.children.length;i++)n.children[i].height=0,n.children[i].depth=0;return n=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Xe.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=Dt(ht(e.body),t),i=new Pt.MathNode("mphantom",n),o=new Pt.MathNode("mpadded",[i]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),ct({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:function(e,t){var n=Xe.makeSpan(["inner"],[St(e.body,t.withPhantom())]),i=Xe.makeSpan(["fix"],[]);return Xe.makeSpan(["mord","rlap"],[n,i],t)},mathmlBuilder:function(e,t){var n=Dt(ht(e.body),t),i=new Pt.MathNode("mphantom",n),o=new Pt.MathNode("mpadded",[i]);return o.setAttribute("width","0px"),o}}),ct({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=$e(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder:function(e,t){var n=St(e.body,t),i=Ae(e.dy,t);return Xe.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mpadded",[At(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),ct({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var i=e.parser,o=n[0],r=$e(t[0],"size"),s=$e(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&$e(o,"size").value,width:r.value,height:s.value}},htmlBuilder:function(e,t){var n=Xe.makeSpan(["mord","rule"],[],t),i=Ae(e.width,t),o=Ae(e.height,t),r=e.shift?Ae(e.shift,t):0;return n.style.borderRightWidth=i+"em",n.style.borderTopWidth=o+"em",n.style.bottom=r+"em",n.width=i,n.height=o+r,n.depth=-r,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Ae(e.width,t),i=Ae(e.height,t),o=e.shift?Ae(e.shift,t):0,r=t.color&&t.getColor()||"black",s=new Pt.MathNode("mspace");s.setAttribute("mathbackground",r),s.setAttribute("width",n+"em"),s.setAttribute("height",i+"em");var a=new Pt.MathNode("mpadded",[s]);return 0<=o?a.setAttribute("height","+"+o+"em"):(a.setAttribute("height",o+"em"),a.setAttribute("depth","+"+-o+"em")),a.setAttribute("voffset",o+"em"),a}});var ni=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ct({type:"sizing",names:ni,props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.breakOnTokenText,n=e.funcName,i=e.parser,o=i.parseExpression(!1,t);return{type:"sizing",mode:i.mode,size:ni.indexOf(n)+1,body:o}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return ti(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),i=Dt(e.body,n),o=new Pt.MathNode("mstyle",i);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),ct({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var i=e.parser,o=!1,r=!1,s=n[0]&&$e(n[0],"ordgroup");if(s)for(var a="",l=0;l<s.body.length;++l)if("t"===(a=s.body[l].text))o=!0;else{if("b"!==a){r=o=!1;break}r=!0}else r=o=!0;var u=t[0];return{type:"smash",mode:i.mode,body:u,smashHeight:o,smashDepth:r}},htmlBuilder:function(e,t){var n=Xe.makeSpan([],[St(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var r=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord"],[r],t)},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mpadded",[At(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),ct({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var i=e.parser,o=n[0],r=t[0];return{type:"sqrt",mode:i.mode,body:r,index:o}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Xe.wrapFragment(n,t);var i=t.fontMetrics().defaultRuleThickness,o=i;t.style.id<w.TEXT.id&&(o=t.fontMetrics().xHeight);var r=i+o/4,s=function(e,t){var n,i,o=t.havingBaseSizing(),r=pn("\\surd",e*o.sizeMultiplier,hn,o),s=o.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return i="small"===r.type?(e<1?s=1:e<1.4&&(s=.7),u=(1+a)/s,(n=tn("sqrtMain",l=(1+a+.08)/s,c=1e3+1e3*a+80,a,t)).style.minWidth="0.853em",.833/s):"large"===r.type?(c=1080*un[r.size],u=(un[r.size]+a)/s,l=(un[r.size]+a+.08)/s,(n=tn("sqrtSize"+r.size,l,c,a,t)).style.minWidth="1.02em",1/s):(u=e+a,(n=tn("sqrtTall",l=e+a+.08,c=Math.floor(1e3*e+a)+80,a,t)).style.minWidth="0.742em",1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:i,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*s}}(n.height+n.depth+r+i,t),a=s.span,l=s.ruleWidth,u=s.advanceWidth,c=a.height-l;c>n.height+n.depth+r&&(r=(r+c-n.height-n.depth)/2);var d=a.height-n.height-r-l;n.style.paddingLeft=u+"em";var h=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:a},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(w.SCRIPTSCRIPT),f=St(e.index,p,t),g=.6*(h.height-h.depth),m=Xe.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),v=Xe.makeSpan(["root"],[m]);return Xe.makeSpan(["mord","sqrt"],[v,h],t)}return Xe.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder:function(e,t){var n=e.body,i=e.index;return i?new Pt.MathNode("mroot",[At(n,t),At(i,t)]):new Pt.MathNode("msqrt",[At(n,t)])}});var ii={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};ct({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.breakOnTokenText,n=e.funcName,i=e.parser,o=i.parseExpression(!0,t),r=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:r,body:o}},htmlBuilder:function(e,t){var n=ii[e.style],i=t.havingStyle(n).withFont("");return ti(e.body,i,t)},mathmlBuilder:function(e,t){var n=ii[e.style],i=t.havingStyle(n),o=Dt(e.body,i),r=new Pt.MathNode("mstyle",o),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return r.setAttribute("scriptlevel",s[0]),r.setAttribute("displaystyle",s[1]),r}}),dt({type:"supsub",htmlBuilder:function(e,t){var n,i,o,r=(i=t,(o=(n=e).base)?"op"!==o.type?"operatorname"!==o.type?"accent"===o.type?d.isCharacterBox(o.base)?Bt:null:"horizBrace"===o.type&&!n.sub===o.isOver?Un:null:o.alwaysHandleSupSub&&(i.style.size===w.DISPLAY.size||o.limits)?ei:null:o.limits&&(i.style.size===w.DISPLAY.size||o.alwaysHandleSupSub)?Zn:null:null);if(r)return r(e,t);var s,a,l,u=e.base,c=e.sup,h=e.sub,p=St(u,t),f=t.fontMetrics(),g=0,m=0,v=u&&d.isCharacterBox(u);if(c){var y=t.havingStyle(t.style.sup());s=St(c,y,t),v||(g=p.height-y.fontMetrics().supDrop*y.sizeMultiplier/t.sizeMultiplier)}if(h){var b=t.havingStyle(t.style.sub());a=St(h,b,t),v||(m=p.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}l=t.style===w.DISPLAY?f.sup1:t.style.cramped?f.sup3:f.sup2;var _,C=t.sizeMultiplier,S=.5/f.ptPerEm/C+"em",O=null;if(a){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(p instanceof A||x)&&(O=-p.italic+"em")}if(s&&a){g=Math.max(g,l,s.depth+.25*f.xHeight),m=Math.max(m,f.sub2);var k=4*f.defaultRuleThickness;if(g-s.depth-(a.height-m)<k){m=k-(g-s.depth)+a.height;var E=.8*f.xHeight-(g-s.depth);0<E&&(g+=E,m-=E)}var N=[{type:"elem",elem:a,shift:m,marginRight:S,marginLeft:O},{type:"elem",elem:s,shift:-g,marginRight:S}];_=Xe.makeVList({positionType:"individualShift",children:N},t)}else if(a){m=Math.max(m,f.sub1,a.height-.8*f.xHeight);var L=[{type:"elem",elem:a,marginLeft:O,marginRight:S}];_=Xe.makeVList({positionType:"shift",positionData:m,children:L},t)}else{if(!s)throw new Error("supsub must have either sup or sub.");g=Math.max(g,l,s.depth+.25*f.xHeight),_=Xe.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:s,marginRight:S}]},t)}var D=Ct(p,"right")||"mord";return Xe.makeSpan([D],[p,Xe.makeSpan(["msupsub"],[_])],t)},mathmlBuilder:function(e,t){var n,i=!1,o=Je(e.base,"horizBrace");o&&!!e.sup===o.isOver&&(i=!0,n=o.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var r,s=[At(e.base,t)];if(e.sub&&s.push(At(e.sub,t)),e.sup&&s.push(At(e.sup,t)),i)r=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;r=a&&"op"===a.type&&a.limits&&t.style===w.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===w.DISPLAY||a.limits)?"munderover":"msubsup"}else{var l=e.base;r=l&&"op"===l.type&&l.limits&&(t.style===w.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===w.DISPLAY)?"munder":"msub"}else{var u=e.base;r=u&&"op"===u.type&&u.limits&&(t.style===w.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===w.DISPLAY)?"mover":"msup"}return new Pt.MathNode(r,s)}}),dt({type:"atom",htmlBuilder:function(e,t){return Xe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mo",[Et(e.text,e.mode)]);if("bin"===e.family){var i=Lt(e,t);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var oi={mi:"italic",mn:"normal",mtext:"normal"};dt({type:"mathord",htmlBuilder:function(e,t){return Xe.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mi",[Et(e.text,e.mode,t)]),i=Lt(e,t)||"italic";return i!==oi[n.type]&&n.setAttribute("mathvariant",i),n}}),dt({type:"textord",htmlBuilder:function(e,t){return Xe.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,i=Et(e.text,e.mode,t),o=Lt(e,t)||"normal";return n="text"===e.mode?new Pt.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new Pt.MathNode("mn",[i]):"\\prime"===e.text?new Pt.MathNode("mo",[i]):new Pt.MathNode("mi",[i]),o!==oi[n.type]&&n.setAttribute("mathvariant",o),n}});var ri={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},si={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};function ai(){var e=new Pt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}function li(e,t){var n=e.font;return n?ui[n]?t.withTextFontFamily(ui[n]):ci[n]?t.withTextFontWeight(ci[n]):t.withTextFontShape(di[n]):t}dt({type:"spacing",htmlBuilder:function(e,t){if(si.hasOwnProperty(e.text)){var n=si[e.text].className||"";if("text"!==e.mode)return Xe.makeSpan(["mspace",n],[Xe.mathsym(e.text,e.mode,t)],t);var i=Xe.makeOrd(e,t,"textord");return i.classes.push(n),i}if(ri.hasOwnProperty(e.text))return Xe.makeSpan(["mspace",ri[e.text]],[],t);throw new s('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e){if(si.hasOwnProperty(e.text))return new Pt.MathNode("mtext",[new Pt.TextNode("\xa0")]);if(ri.hasOwnProperty(e.text))return new Pt.MathNode("mspace");throw new s('Unknown type of space "'+e.text+'"')}}),dt({type:"tag",mathmlBuilder:function(e,t){var n=new Pt.MathNode("mtable",[new Pt.MathNode("mtr",[ai(),new Pt.MathNode("mtd",[Mt(e.body,t)]),ai(),new Pt.MathNode("mtd",[Mt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ui={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ci={"\\textbf":"textbf","\\textmd":"textmd"},di={"\\textit":"textit","\\textup":"textup"};ct({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:ht(o),font:i}},htmlBuilder:function(e,t){var n=li(e,t),i=pt(e.body,n,!0);return Xe.makeSpan(["mord","text"],Xe.tryCombineChars(i),n)},mathmlBuilder:function(e,t){var n=li(e,t);return Mt(e.body,n)}}),ct({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=St(e.body,t),i=Xe.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,r=Xe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord","underline"],[r],t)},mathmlBuilder:function(e,t){var n=new Pt.MathNode("mo",[new Pt.TextNode("\u203e")]);n.setAttribute("stretchy","true");var i=new Pt.MathNode("munder",[At(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),ct({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=hi(e),i=[],o=t.havingStyle(t.style.text()),r=0;r<n.length;r++){var s=n[r];"~"===s&&(s="\\textasciitilde"),i.push(Xe.makeSymbol(s,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return Xe.makeSpan(["mord","text"].concat(o.sizingClasses(t)),Xe.tryCombineChars(i),o)},mathmlBuilder:function(e){var t=new Pt.TextNode(hi(e)),n=new Pt.MathNode("mtext",[t]);return n.setAttribute("mathvariant","monospace"),n}});var hi=function(e){return e.body.replace(/ /g,e.star?"\u2423":"\xa0")},pi=at,fi=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),gi=new RegExp("[\u0300-\u036f]+$"),mi=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new r("EOF",new o(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new s("Unexpected character: '"+e[t]+"'",new r(e[t],new o(this,t,t+1)));var i=n[2]||" ";if(14===this.catcodes[i]){var a=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===a?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}var l=i.match(fi);return l&&(i=l[1]),new r(i,new o(this,t,this.tokenRegex.lastIndex))},e}(),vi=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),yi={},bi=yi;function _i(e,t){yi[e]=t}_i("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),_i("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),_i("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),_i("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),_i("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var wi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function Ci(e,t){var n=e.consumeArgs(1)[0];if(1!==n.length)throw new s("\\gdef's first argument must be a macro name");var i=n[0].text,o=0;for(n=e.consumeArgs(1)[0];1===n.length&&"#"===n[0].text;){if(1!==(n=e.consumeArgs(1)[0]).length)throw new s('Invalid argument number length "'+n.length+'"');if(!/^[1-9]$/.test(n[0].text))throw new s('Invalid argument number "'+n[0].text+'"');if(o++,parseInt(n[0].text)!==o)throw new s('Argument number "'+n[0].text+'" out of order');n=e.consumeArgs(1)[0]}return e.macros.set(i,{tokens:n,numArgs:o},t),""}function Si(e,t,n){var i=e.consumeArgs(1)[0];if(1!==i.length)throw new s("\\newcommand's first argument must be a macro name");var o=i[0].text,r=e.isDefined(o);if(r&&!t)throw new s("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!r&&!n)throw new s("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var a=0;if(1===(i=e.consumeArgs(1)[0]).length&&"["===i[0].text){for(var l="",u=e.expandNextToken();"]"!==u.text&&"EOF"!==u.text;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+l);a=parseInt(l),i=e.consumeArgs(1)[0]}return e.macros.set(o,{tokens:i,numArgs:a}),""}_i("\\char",(function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new s("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=wi[n.text])||t<=i)throw new s("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=wi[e.future().text])&&o<t;)i*=t,i+=o,e.popToken()}return"\\@char{"+i+"}"})),_i("\\gdef",(function(e){return Ci(e,!0)})),_i("\\def",(function(e){return Ci(e,!1)})),_i("\\global",(function(e){var t=e.consumeArgs(1)[0];if(1!==t.length)throw new s("Invalid command after \\global");var n=t[0].text;if("\\def"===n)return Ci(e,!0);throw new s("Invalid command '"+n+"' after \\global")})),_i("\\newcommand",(function(e){return Si(e,!1,!0)})),_i("\\renewcommand",(function(e){return Si(e,!0,!1)})),_i("\\providecommand",(function(e){return Si(e,!0,!0)})),_i("\\bgroup","{"),_i("\\egroup","}"),_i("\\lq","`"),_i("\\rq","'"),_i("\\aa","\\r a"),_i("\\AA","\\r A"),_i("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),_i("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),_i("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),_i("\u212c","\\mathscr{B}"),_i("\u2130","\\mathscr{E}"),_i("\u2131","\\mathscr{F}"),_i("\u210b","\\mathscr{H}"),_i("\u2110","\\mathscr{I}"),_i("\u2112","\\mathscr{L}"),_i("\u2133","\\mathscr{M}"),_i("\u211b","\\mathscr{R}"),_i("\u212d","\\mathfrak{C}"),_i("\u210c","\\mathfrak{H}"),_i("\u2128","\\mathfrak{Z}"),_i("\\Bbbk","\\Bbb{k}"),_i("\xb7","\\cdotp"),_i("\\llap","\\mathllap{\\textrm{#1}}"),_i("\\rlap","\\mathrlap{\\textrm{#1}}"),_i("\\clap","\\mathclap{\\textrm{#1}}"),_i("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),_i("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),_i("\\ne","\\neq"),_i("\u2260","\\neq"),_i("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),_i("\u2209","\\notin"),_i("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),_i("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),_i("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),_i("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),_i("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),_i("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),_i("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),_i("\u27c2","\\perp"),_i("\u203c","\\mathclose{!\\mkern-0.8mu!}"),_i("\u220c","\\notni"),_i("\u231c","\\ulcorner"),_i("\u231d","\\urcorner"),_i("\u231e","\\llcorner"),_i("\u231f","\\lrcorner"),_i("\xa9","\\copyright"),_i("\xae","\\textregistered"),_i("\ufe0f","\\textregistered"),_i("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),_i("\u22ee","\\vdots"),_i("\\varGamma","\\mathit{\\Gamma}"),_i("\\varDelta","\\mathit{\\Delta}"),_i("\\varTheta","\\mathit{\\Theta}"),_i("\\varLambda","\\mathit{\\Lambda}"),_i("\\varXi","\\mathit{\\Xi}"),_i("\\varPi","\\mathit{\\Pi}"),_i("\\varSigma","\\mathit{\\Sigma}"),_i("\\varUpsilon","\\mathit{\\Upsilon}"),_i("\\varPhi","\\mathit{\\Phi}"),_i("\\varPsi","\\mathit{\\Psi}"),_i("\\varOmega","\\mathit{\\Omega}"),_i("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),_i("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),_i("\\boxed","\\fbox{$\\displaystyle{#1}$}"),_i("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),_i("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),_i("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Oi={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};_i("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Oi?t=Oi[n]:("\\not"===n.substr(0,4)||n in Y.math&&d.contains(["bin","rel"],Y.math[n].group))&&(t="\\dotsb"),t}));var xi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};_i("\\dotso",(function(e){return e.future().text in xi?"\\ldots\\,":"\\ldots"})),_i("\\dotsc",(function(e){var t=e.future().text;return t in xi&&","!==t?"\\ldots\\,":"\\ldots"})),_i("\\cdots",(function(e){return e.future().text in xi?"\\@cdots\\,":"\\@cdots"})),_i("\\dotsb","\\cdots"),_i("\\dotsm","\\cdots"),_i("\\dotsi","\\!\\cdots"),_i("\\dotsx","\\ldots\\,"),_i("\\DOTSI","\\relax"),_i("\\DOTSB","\\relax"),_i("\\DOTSX","\\relax"),_i("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),_i("\\,","\\tmspace+{3mu}{.1667em}"),_i("\\thinspace","\\,"),_i("\\>","\\mskip{4mu}"),_i("\\:","\\tmspace+{4mu}{.2222em}"),_i("\\medspace","\\:"),_i("\\;","\\tmspace+{5mu}{.2777em}"),_i("\\thickspace","\\;"),_i("\\!","\\tmspace-{3mu}{.1667em}"),_i("\\negthinspace","\\!"),_i("\\negmedspace","\\tmspace-{4mu}{.2222em}"),_i("\\negthickspace","\\tmspace-{5mu}{.277em}"),_i("\\enspace","\\kern.5em "),_i("\\enskip","\\hskip.5em\\relax"),_i("\\quad","\\hskip1em\\relax"),_i("\\qquad","\\hskip2em\\relax"),_i("\\tag","\\@ifstar\\tag@literal\\tag@paren"),_i("\\tag@paren","\\tag@literal{({#1})}"),_i("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),_i("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),_i("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),_i("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),_i("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),_i("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),_i("\\\\","\\newline"),_i("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ki=W["Main-Regular"]["T".charCodeAt(0)][1]-.7*W["Main-Regular"]["A".charCodeAt(0)][1]+"em";_i("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ki+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),_i("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ki+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),_i("\\hspace","\\@ifstar\\@hspacer\\@hspace"),_i("\\@hspace","\\hskip #1\\relax"),_i("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),_i("\\ordinarycolon",":"),_i("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),_i("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),_i("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),_i("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),_i("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),_i("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),_i("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),_i("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),_i("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),_i("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),_i("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),_i("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),_i("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),_i("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),_i("\u2237","\\dblcolon"),_i("\u2239","\\eqcolon"),_i("\u2254","\\coloneqq"),_i("\u2255","\\eqqcolon"),_i("\u2a74","\\Coloneqq"),_i("\\ratio","\\vcentcolon"),_i("\\coloncolon","\\dblcolon"),_i("\\colonequals","\\coloneqq"),_i("\\coloncolonequals","\\Coloneqq"),_i("\\equalscolon","\\eqqcolon"),_i("\\equalscoloncolon","\\Eqqcolon"),_i("\\colonminus","\\coloneq"),_i("\\coloncolonminus","\\Coloneq"),_i("\\minuscolon","\\eqcolon"),_i("\\minuscoloncolon","\\Eqcolon"),_i("\\coloncolonapprox","\\Colonapprox"),_i("\\coloncolonsim","\\Colonsim"),_i("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_i("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_i("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_i("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_i("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),_i("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),_i("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),_i("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),_i("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),_i("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),_i("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),_i("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),_i("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),_i("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),_i("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),_i("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),_i("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),_i("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),_i("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),_i("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),_i("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),_i("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),_i("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),_i("\u27e6","\\llbracket"),_i("\u27e7","\\rrbracket"),_i("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),_i("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),_i("\u2983","\\lBrace"),_i("\u2984","\\rBrace"),_i("\\darr","\\downarrow"),_i("\\dArr","\\Downarrow"),_i("\\Darr","\\Downarrow"),_i("\\lang","\\langle"),_i("\\rang","\\rangle"),_i("\\uarr","\\uparrow"),_i("\\uArr","\\Uparrow"),_i("\\Uarr","\\Uparrow"),_i("\\N","\\mathbb{N}"),_i("\\R","\\mathbb{R}"),_i("\\Z","\\mathbb{Z}"),_i("\\alef","\\aleph"),_i("\\alefsym","\\aleph"),_i("\\Alpha","\\mathrm{A}"),_i("\\Beta","\\mathrm{B}"),_i("\\bull","\\bullet"),_i("\\Chi","\\mathrm{X}"),_i("\\clubs","\\clubsuit"),_i("\\cnums","\\mathbb{C}"),_i("\\Complex","\\mathbb{C}"),_i("\\Dagger","\\ddagger"),_i("\\diamonds","\\diamondsuit"),_i("\\empty","\\emptyset"),_i("\\Epsilon","\\mathrm{E}"),_i("\\Eta","\\mathrm{H}"),_i("\\exist","\\exists"),_i("\\harr","\\leftrightarrow"),_i("\\hArr","\\Leftrightarrow"),_i("\\Harr","\\Leftrightarrow"),_i("\\hearts","\\heartsuit"),_i("\\image","\\Im"),_i("\\infin","\\infty"),_i("\\Iota","\\mathrm{I}"),_i("\\isin","\\in"),_i("\\Kappa","\\mathrm{K}"),_i("\\larr","\\leftarrow"),_i("\\lArr","\\Leftarrow"),_i("\\Larr","\\Leftarrow"),_i("\\lrarr","\\leftrightarrow"),_i("\\lrArr","\\Leftrightarrow"),_i("\\Lrarr","\\Leftrightarrow"),_i("\\Mu","\\mathrm{M}"),_i("\\natnums","\\mathbb{N}"),_i("\\Nu","\\mathrm{N}"),_i("\\Omicron","\\mathrm{O}"),_i("\\plusmn","\\pm"),_i("\\rarr","\\rightarrow"),_i("\\rArr","\\Rightarrow"),_i("\\Rarr","\\Rightarrow"),_i("\\real","\\Re"),_i("\\reals","\\mathbb{R}"),_i("\\Reals","\\mathbb{R}"),_i("\\Rho","\\mathrm{P}"),_i("\\sdot","\\cdot"),_i("\\sect","\\S"),_i("\\spades","\\spadesuit"),_i("\\sub","\\subset"),_i("\\sube","\\subseteq"),_i("\\supe","\\supseteq"),_i("\\Tau","\\mathrm{T}"),_i("\\thetasym","\\vartheta"),_i("\\weierp","\\wp"),_i("\\Zeta","\\mathrm{Z}"),_i("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),_i("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),_i("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),_i("\\blue","\\textcolor{##6495ed}{#1}"),_i("\\orange","\\textcolor{##ffa500}{#1}"),_i("\\pink","\\textcolor{##ff00af}{#1}"),_i("\\red","\\textcolor{##df0030}{#1}"),_i("\\green","\\textcolor{##28ae7b}{#1}"),_i("\\gray","\\textcolor{gray}{#1}"),_i("\\purple","\\textcolor{##9d38bd}{#1}"),_i("\\blueA","\\textcolor{##ccfaff}{#1}"),_i("\\blueB","\\textcolor{##80f6ff}{#1}"),_i("\\blueC","\\textcolor{##63d9ea}{#1}"),_i("\\blueD","\\textcolor{##11accd}{#1}"),_i("\\blueE","\\textcolor{##0c7f99}{#1}"),_i("\\tealA","\\textcolor{##94fff5}{#1}"),_i("\\tealB","\\textcolor{##26edd5}{#1}"),_i("\\tealC","\\textcolor{##01d1c1}{#1}"),_i("\\tealD","\\textcolor{##01a995}{#1}"),_i("\\tealE","\\textcolor{##208170}{#1}"),_i("\\greenA","\\textcolor{##b6ffb0}{#1}"),_i("\\greenB","\\textcolor{##8af281}{#1}"),_i("\\greenC","\\textcolor{##74cf70}{#1}"),_i("\\greenD","\\textcolor{##1fab54}{#1}"),_i("\\greenE","\\textcolor{##0d923f}{#1}"),_i("\\goldA","\\textcolor{##ffd0a9}{#1}"),_i("\\goldB","\\textcolor{##ffbb71}{#1}"),_i("\\goldC","\\textcolor{##ff9c39}{#1}"),_i("\\goldD","\\textcolor{##e07d10}{#1}"),_i("\\goldE","\\textcolor{##a75a05}{#1}"),_i("\\redA","\\textcolor{##fca9a9}{#1}"),_i("\\redB","\\textcolor{##ff8482}{#1}"),_i("\\redC","\\textcolor{##f9685d}{#1}"),_i("\\redD","\\textcolor{##e84d39}{#1}"),_i("\\redE","\\textcolor{##bc2612}{#1}"),_i("\\maroonA","\\textcolor{##ffbde0}{#1}"),_i("\\maroonB","\\textcolor{##ff92c6}{#1}"),_i("\\maroonC","\\textcolor{##ed5fa6}{#1}"),_i("\\maroonD","\\textcolor{##ca337c}{#1}"),_i("\\maroonE","\\textcolor{##9e034e}{#1}"),_i("\\purpleA","\\textcolor{##ddd7ff}{#1}"),_i("\\purpleB","\\textcolor{##c6b9fc}{#1}"),_i("\\purpleC","\\textcolor{##aa87ff}{#1}"),_i("\\purpleD","\\textcolor{##7854ab}{#1}"),_i("\\purpleE","\\textcolor{##543b78}{#1}"),_i("\\mintA","\\textcolor{##f5f9e8}{#1}"),_i("\\mintB","\\textcolor{##edf2df}{#1}"),_i("\\mintC","\\textcolor{##e0e5cc}{#1}"),_i("\\grayA","\\textcolor{##f6f7f7}{#1}"),_i("\\grayB","\\textcolor{##f0f1f2}{#1}"),_i("\\grayC","\\textcolor{##e3e5e6}{#1}"),_i("\\grayD","\\textcolor{##d6d8da}{#1}"),_i("\\grayE","\\textcolor{##babec2}{#1}"),_i("\\grayF","\\textcolor{##888d93}{#1}"),_i("\\grayG","\\textcolor{##626569}{#1}"),_i("\\grayH","\\textcolor{##3b3e40}{#1}"),_i("\\grayI","\\textcolor{##21242c}{#1}"),_i("\\kaBlue","\\textcolor{##314453}{#1}"),_i("\\kaGreen","\\textcolor{##71B307}{#1}");var Ei={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ni=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new vi(bi,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new mi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;n<e;++n){this.consumeSpaces();var i=this.popToken();if("{"===i.text){for(var o=[],r=1;0!==r;){var a=this.popToken();if(o.push(a),"{"===a.text)++r;else if("}"===a.text)--r;else if("EOF"===a.text)throw new s("End of input in macro argument",i)}o.pop(),o.reverse(),t[n]=o}else{if("EOF"===i.text)throw new s("End of input expecting macro argument");t[n]=[i]}}return t},t.expandOnce=function(){var e=this.popToken(),t=e.text,n=this._getExpansion(t);if(null==n)return this.pushToken(e),e;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting");var i=n.tokens;if(n.numArgs)for(var o=this.consumeArgs(n.numArgs),r=(i=i.slice()).length-1;0<=r;--r){var a=i[r];if("#"===a.text){if(0===r)throw new s("Incomplete placeholder at end of macro body",a);if("#"===(a=i[--r]).text)i.splice(r+1,1);else{if(!/^[1-9]$/.test(a.text))throw new s("Not a valid argument number",a);i.splice.apply(i,[r,2].concat(o[a.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof r){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new r(e));this.stack.length>n;)this.expandOnce()instanceof r&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"!=typeof n)return n;var i=0;if(-1!==n.indexOf("#"))for(var o=n.replace(/##/g,"");-1!==o.indexOf("#"+(i+1));)++i;for(var r=new mi(n,this.settings),s=[],a=r.lex();"EOF"!==a.text;)s.push(a),a=r.lex();return s.reverse(),{tokens:s,numArgs:i}},t.isDefined=function(e){return this.macros.has(e)||pi.hasOwnProperty(e)||Y.math.hasOwnProperty(e)||Y.text.hasOwnProperty(e)||Ei.hasOwnProperty(e)},e}(),Li={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}},Di={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},Mi=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Ni(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new s("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&pi[o.text]&&pi[o.text].infix)break;var r=this.parseAtom(n);if(!r)break;i.push(r)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)},t.handleInfixNodes=function(e){for(var t,n=-1,i=0;i<e.length;i++){var o=Je(e[i],"infix");if(o){if(-1!==n)throw new s("only one infix operator per group",o.token);n=i,t=o.replaceWith}}if(-1!==n&&t){var r,a,l=e.slice(0,n),u=e.slice(n+1);return r=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},a=1===u.length&&"ordgroup"===u[0].type?u[0]:{type:"ordgroup",mode:this.mode,body:u},["\\\\abovefrac"===t?this.callFunction(t,[r,e[n],a],[]):this.callFunction(t,[r,a],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),i=n.text;this.consume();var o=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!o)throw new s("Expected group after '"+i+"'",n);return o},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]}},t.parseAtom=function(e){var t,n,i=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return i;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){var r=Je(i,"op");if(r){var a="\\limits"===o.text;r.limits=a,r.alwaysHandleSupSub=!0}else{if(!(r=Je(i,"operatorname"))||!r.alwaysHandleSupSub)throw new s("Limit controls must follow a math operator",o);var l="\\limits"===o.text;r.limits=l}this.consume()}else if("^"===o.text){if(t)throw new s("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(n)throw new s("Double subscript",o);n=this.handleSupSubscript("subscript")}else{if("'"!==o.text)break;if(t)throw new s("Double superscript",o);var u={type:"textord",mode:this.mode,text:"\\prime"},c=[u];for(this.consume();"'"===this.fetch().text;)c.push(u),this.consume();"^"===this.fetch().text&&c.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:c}}}return t||n?{type:"supsub",mode:this.mode,base:i,sup:t,sub:n}:i},t.parseFunction=function(e,t,n){var i=this.fetch(),o=i.text,r=pi[o];if(!r)return null;if(this.consume(),null!=n&&r.greediness<=n)throw new s("Got function '"+o+"' with no arguments"+(t?" as "+t:""),i);if("text"===this.mode&&!r.allowedInText)throw new s("Can't use function '"+o+"' in text mode",i);if("math"===this.mode&&!1===r.allowedInMath)throw new s("Can't use function '"+o+"' in math mode",i);var a=this.parseArguments(o,r),l=a.args,u=a.optArgs;return this.callFunction(o,l,u,i,e)},t.callFunction=function(e,t,n,i,o){var r={funcName:e,parser:this,token:i,breakOnTokenText:o},a=pi[e];if(a&&a.handler)return a.handler(r,t,n);throw new s("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var i=t.greediness,o=[],r=[],a=0;a<n;a++){var l=t.argTypes&&t.argTypes[a],u=a<t.numOptionalArgs,c=0<a&&!u||0===a&&!u&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",l,u,i,c);if(!d){if(u){r.push(null);continue}throw new s("Expected group after '"+e+"'",this.fetch())}(u?r:o).push(d)}return{args:o,optArgs:r}},t.parseGroupOfType=function(e,t,n,i,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,i,void 0,t,o);case"hbox":var r=this.parseGroup(e,n,i,void 0,"text",o);return r?{type:"styling",mode:r.mode,body:[r],style:"text"}:r;case"raw":if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var a=this.parseStringGroup("raw",n,!0);if(a)return{type:"raw",mode:"text",string:a.text};throw new s("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,i,void 0,void 0,o);default:throw new s("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var i=t?"[":"{",o=t?"]":"}",r=this.fetch();if(r.text!==i){if(t)return null;if(n&&"EOF"!==r.text&&/[^{}[\]]/.test(r.text))return this.consume(),r}var a=this.mode;this.mode="text",this.expect(i);for(var l,u="",c=this.fetch(),d=0,h=c;(l=this.fetch()).text!==o||n&&0<d;){switch(l.text){case"EOF":throw new s("Unexpected end of input in "+e,c.range(h,u));case i:d++;break;case o:d--}u+=(h=l).text,this.consume()}return this.expect(o),this.mode=a,c.range(h,u)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var i,o=this.fetch(),r=o,a="";"EOF"!==(i=this.fetch()).text&&e.test(a+i.text);)a+=(r=i).text,this.consume();if(""===a)throw new s("Invalid "+t+": '"+o.text+"'",o);return this.mode=n,o.range(r,a)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new s("Invalid color: '"+t.text+"'",t);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new s("Invalid size: '"+t.text+"'",t);var o={number:+(i[1]+i[2]),unit:i[3]};if(!Pe(o))throw new s("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13);var t=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}},t.parseGroup=function(t,n,i,r,a,l){var u=this.mode;a&&this.switchMode(a),l&&this.consumeSpaces();var c,d=this.fetch(),h=d.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var f=this.parseExpression(!1,p),g=this.fetch();this.expect(p),this.gullet.endGroup(),c={type:"ordgroup",mode:this.mode,loc:o.range(d,g),body:f,semisimple:"\\begingroup"===h||void 0}}else if(n)c=null;else if(null==(c=this.parseFunction(r,t,i)||this.parseSymbol())&&"\\"===h[0]&&!Ei.hasOwnProperty(h)){if(this.settings.throwOnError)throw new s("Undefined control sequence: "+h,d);c=this.formatUnsupportedCmd(h),this.consume()}return a&&this.switchMode(u),c},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var i=e[n],r=i.text;"-"===r&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:o.range(i,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(i,e[n+1]),text:"--"}),--t)),"'"!==r&&"`"!==r||e[n+1].text!==r||(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(i,e[n+1]),text:r+r}),--t)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new s("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}Di.hasOwnProperty(t[0])&&!Y[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Di[t[0]]+t.substr(1));var r,a=gi.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="\u0131":"j"===t&&(t="\u0237")),Y[this.mode][t]){this.settings.strict&&"math"===this.mode&&0<="\xc7\xd0\xde\xe7\xfe".indexOf(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,u=Y[this.mode][t].group,c=o.range(e);if(U.hasOwnProperty(u)){var d=u;l={type:"atom",mode:this.mode,family:d,loc:c,text:t}}else l={type:u,mode:this.mode,loc:c,text:t};r=l}else{if(!(128<=t.charCodeAt(0)))return null;this.settings.strict&&(O(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),r={type:"textord",mode:"text",loc:o.range(e),text:t}}if(this.consume(),a)for(var h=0;h<a[0].length;h++){var p=a[0][h];if(!Li[p])throw new s("Unknown accent ' "+p+"'",e);var f=Li[p][this.mode];if(!f)throw new s("Accent "+p+" unsupported in "+this.mode+" mode",e);r={type:"accent",mode:this.mode,loc:o.range(e),label:f,isStretchy:!1,isShifty:!0,base:r}}return r},e}();Mi.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Mi.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Mi.SUPSUB_GREEDINESS=1;var Ti=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Mi(e,t);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new s("\\tag works only in display equations");n.gullet.feed("\\df@tag"),i=[{type:"tag",mode:"text",body:i,tag:n.parse()}]}return i},Ii=function(e,t,n){t.textContent="";var i=Ai(e,n).toNode();t.appendChild(i)};function Pi(e,t,n){if(n.throwOnError||!(e instanceof s))throw e;var i=Xe.makeSpan(["katex-error"],[new A(t)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i}"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&(Ii=function(){throw new s("KaTeX doesn't work in quirks mode.")});var Ai=function(e,t){var n=new h(t);try{return function(e,t,n){var i,o=jt(n);if("mathml"===n.output)return Rt(e,t,o,!0);if("html"===n.output){var r=xt(e,o);i=Xe.makeSpan(["katex"],[r])}else{var s=Rt(e,t,o,!1),a=xt(e,o);i=Xe.makeSpan(["katex"],[s,a])}return Ft(i,n)}(Ti(e,n),e,n)}catch(t){return Pi(t,e,n)}},Ri={version:"0.11.1",render:Ii,renderToString:function(e,t){return Ai(e,t).toMarkup()},ParseError:s,__parse:function(e,t){var n=new h(t);return Ti(e,n)},__renderToDomTree:Ai,__renderToHTMLTree:function(e,t){var n,i,o=new h(t);try{return i=xt(Ti(e,o),jt(n=o)),Ft(Xe.makeSpan(["katex"],[i]),n)}catch(t){return Pi(t,e,o)}},__setFontMetrics:function(e,t){W[e]=t},__defineSymbol:Z,__defineMacro:_i,__domTree:{Span:M,Anchor:T,SymbolNode:A,SvgNode:R,PathNode:j,LineNode:F}};t.default=Ri}],e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=1).default;function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},e.exports=i()},,function(e,t,n){"use strict";var i=(o.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(o.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),o);function o(e){this.executor=e,this._didRun=!1}var r,s,a=n(439),l=n(444),u=n(449),c=n(951),d=n(469),h=n(885),p=n(459),f=n(446),g=n(887),m=n(448),v=n(443),y=n(772),b=n(703),_=n(450),w=n(454),C=n(886),S=n(757),O=n(531),x=(r=function(e,t){return(r=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){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(){return(k=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},E=function(e,t){return function(n,i){t(n,i,e)}},N=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},L=(x(D,s=b.a),D);function D(e,t){var n=s.call(this,e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t)||this;return n.action=e,n}var M,T=(x(I,M=a.a),Object.defineProperty(I.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),I.prototype.show=function(e,t,n,i){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var o,r,s,a,l=this;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(u){if(!(o=i.includeDisabledActions?t.allActions:t.validActions).length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(f.a)();return this._visible=!0,this._showingActions.value=t,r=this.getMenuActions(e,o),s=_.a.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return r},onHide:function(){l._visible=!1,l._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof L?a(e.action):void 0}}),[2]}))}))},I.prototype.getMenuActions=function(e,t){function n(e){return new L(e,(function(){return r._delegate.onSelectCodeAction(e)}))}var i,o,r=this,s=t.map(n),a=this._editor.getModel();if(a&&s.length)for(var l=0,u=w.a.all(a);l<u.length;l++){var c=u[l];if(c._getAdditionalMenuItems){var d=c._getAdditionalMenuItems({trigger:e.type,only:null===(o=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===o?void 0:o.value},t);d.length&&s.push.apply(s,N([new y.d],d.map((function(e){return n({title:e.title,command:e})}))))}}return s},I.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Object(v.C)(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}},I=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([E(2,S.a),E(3,O.a)],I));function I(e,t,n,i){var o=M.call(this)||this;return o._editor=e,o._delegate=t,o._contextMenuService=n,o._visible=!1,o._showingActions=o._register(new a.d),o._keybindingResolver=new P({getKeybindings:function(){return i.getKeybindings()}}),o}var P=(A.prototype.getResolver=function(){var e=this,t=new i((function(){return e._keybindingProvider.getKeybindings().filter((function(e){return 0<=A.codeActionCommands.indexOf(e.command)})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===h.d?t={kind:C.b.SourceOrganizeImports.value}:e.command===h.b&&(t={kind:C.b.SourceFixAll.value}),k({resolvedKeybinding:e.resolvedKeybinding},C.a.fromUser(t,{kind:C.b.None,apply:"never"}))}))}));return function(n){if(n.kind){var i=e.bestKeybindingForCodeAction(n,t.getValue());return null==i?void 0:i.resolvedKeybinding}}},A.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new C.b(e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return!e||e.kind.contains(t.kind)?t:e}),void 0)}},A.codeActionCommands=[h.e,h.a,h.f,h.d,h.b],A);function A(e){this._keybindingProvider=e}var R,j,F=n(793),B=n(442),W=(n(1325),n(495)),V=n(445),z=n(451),H=n(461),q=n(702),U=(R=function(e,t){return(R=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){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e.Hidden={type:0},e.Showing=function(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}}(j=j||{});var K,G=(U(Y,K=a.a),Y.prototype.dispose=function(){K.prototype.dispose.call(this),this._editor.removeContentWidget(this)},Y.prototype.getId=function(){return"LightBulbWidget"},Y.prototype.getDomNode=function(){return this._domNode},Y.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},Y.prototype.update=function(e,t,n){var i=this;if(e.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(47).enabled)return this.hide();var r=n.lineNumber,s=n.column,a=this._editor.getModel();if(!a)return this.hide();function l(e){return 2<e&&i._editor.getTopForLineNumber(e)===i._editor.getTopForLineNumber(e-1)}var u=a.getOptions().tabSize,c=o.get(34),d=a.getLineContent(r),h=W.b.computeIndentLevel(d,u),p=r;if(!(22<c.spaceWidth*h))if(1<r&&!l(r-1))--p;else if(l(r+1)){if(s*c.spaceWidth<22)return this.hide()}else p+=1;this.state=new j.Showing(e,t,n,{position:{lineNumber:p,column:1},preference:Y._posPref}),v.Y(this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},Y.prototype.hide=function(){this.state=j.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Y.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Y.prototype._updateLightBulbTitle=function(){if(1===this.state.type&&this.state.actions.hasAutoFix){var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=V.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?V.a("quickFixWithKb","Show Fixes ({0})",t.getLabel()):V.a("quickFix","Show Fixes")},Object.defineProperty(Y.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),Y._posPref=[0],Y=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(3,O.a)],Y));function Y(e,t,n,i){var o=K.call(this)||this;return o._editor=e,o._quickFixActionId=t,o._preferredFixActionId=n,o._keybindingService=i,o._onClick=o._register(new B.a),o.onClick=o._onClick.event,o._state=j.Hidden,o._domNode=document.createElement("div"),o._domNode.className="codicon codicon-lightbulb",o._editor.addContentWidget(o),o._register(o._editor.onDidChangeModelContent((function(e){var t=o._editor.getModel();(1!==o.state.type||!t||o.state.editorPosition.lineNumber>=t.getLineCount())&&o.hide()}))),q.b.ignoreTarget(o._domNode),o._register(v.n(o._domNode,(function(e){if(1===o.state.type){o._editor.focus(),e.preventDefault();var t=v.C(o._domNode),n=t.top,i=t.height,r=o._editor.getOption(49),s=Math.floor(r/3);null!==o.state.widgetPosition.position&&o.state.widgetPosition.position.lineNumber<o.state.editorPosition.lineNumber&&(s+=r),o._onClick.fire({x:e.posx,y:n+i+s,actions:o.state.actions,trigger:o.state.trigger})}}))),o._register(v.j(o._domNode,"mouseenter",(function(e){if(1==(1&e.buttons)){o.hide();var t=new F.a;t.startMonitoring(e.target,e.buttons,F.b,(function(){}),(function(){t.dispose()}))}}))),o._register(o._editor.onDidChangeConfiguration((function(e){e.hasChanged(47)&&!o._editor.getOption(47).enabled&&o.hide()}))),o._updateLightBulbTitle(),o._register(o._keybindingService.onDidUpdateKeybindings(o._updateLightBulbTitle,o)),o}Object(z.e)((function(e,t){var n=e.getColor(H.J);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var i=e.getColor(H.I);i&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\n\t\t\tcolor: "+i+";\n\t\t}")}));var Z,X,$=(Z=function(e,t){return(Z=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){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Q=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},ee=($(te,X=a.a),te.prototype.update=function(e){var t,n,i;return J(this,void 0,void 0,(function(){var o,r,s,a,l;return Q(this,(function(u){switch(u.label){case 0:if(1!==e.type)return null!==(t=this._lightBulbWidget.rawValue)&&void 0!==t&&t.hide(),[2];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.actions];case 2:return o=u.sent(),[3,4];case 3:return r=u.sent(),Object(f.e)(r),[2];case 4:if(this._lightBulbWidget.getValue().update(o,e.trigger,e.position),2!==e.trigger.type)return[3,11];if(null===(n=e.trigger.filter)||void 0===n||!n.include)return[3,10];if(!(s=this.tryGetValidActionToApply(e.trigger,o)))return[3,9];u.label=5;case 5:return u.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(s,!1)];case 6:return u.sent(),[3,8];case 7:return o.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(a=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,o))&&a.disabled)return g.a.get(this._editor).showMessage(a.disabled,e.trigger.context.position),o.dispose(),[2];u.label=10;case 10:return l=!(null===(i=e.trigger.filter)||void 0===i||!i.include),!e.trigger.context||o.allActions.length&&(l||o.validActions.length)?(this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(e.trigger,o,e.position,{includeDisabledActions:l}),[3,12]):(g.a.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),(this._activeCodeActions.value=o).dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o,u.label=12;case 12:return[2]}}))}))},te.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Object(p.h)(t.allActions,(function(e){return e.disabled})):void 0},te.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&0<t.validActions.length||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},te.prototype.showCodeActionList=function(e,t,n,i){return J(this,void 0,void 0,(function(){return Q(this,(function(o){return this._codeActionWidget.getValue().show(e,t,n,i),[2]}))}))},te=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(4,m.a)],te));function te(e,t,n,o,r){var s=X.call(this)||this;return s._editor=e,s.delegate=o,s._activeCodeActions=s._register(new a.d),s._codeActionWidget=new i((function(){return s._register(r.createInstance(T,s._editor,{onSelectCodeAction:function(e){return J(s,void 0,void 0,(function(){return Q(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),s._lightBulbWidget=new i((function(){var e=s._register(r.createInstance(G,s._editor,t,n));return s._register(e.onClick((function(e){return s.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})}))),e})),s}var ne,ie,oe,re=n(489),se=n(456),ae=n(773),le=n(532),ue=n(774),ce=n(821),de=n(453),he=n(440),pe=n(554),fe=(ne=function(e,t){return(ne=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){function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=new se.d("supportedCodeAction",""),me=(fe(ve,ie=a.a),ve.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},ve.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return Object(pe.e)(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:1})}),this._delay)},ve.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:1})}),this._delay)},ve.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var o=i[n],r=t.validateRange(o);if(he.a.intersectRanges(r,e))return he.a.lift(r)}},ve.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){var i=n.getPosition(),o=i.lineNumber,r=i.column,s=t.getLineContent(o);if(0===s.length)return;if(1===r){if(/\s/.test(s[0]))return}else if(r===t.getLineMaxColumn(o)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[r-2])&&/\s/.test(s[r-1]))return}return n}},ve.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}this._signalChange(void 0)},ve);function ve(e,t,n,i){void 0===i&&(i=250);var o=ie.call(this)||this;return o._editor=e,o._markerService=t,o._signalChange=n,o._delay=i,o._autoTriggerTimer=o._register(new de.e),o._register(o._markerService.onMarkerChanged((function(e){return o._onMarkerChanges(e)}))),o._register(o._editor.onDidChangeCursorPosition((function(){return o._onCursorChange()}))),o}!function(e){e.Empty={type:0},e.Triggered=function(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}}(oe=oe||{});var ye,be=(fe(_e,ye=a.a),_e.prototype.dispose=function(){ye.prototype.dispose.call(this),this.setState(oe.Empty,!0)},_e.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(oe.Empty);var t=this._editor.getModel();if(t&&w.a.has(t)&&!this._editor.getOption(68)){for(var n=[],i=0,o=w.a.all(t);i<o.length;i++){var r=o[i];Array.isArray(r.providedCodeActionKinds)&&n.push.apply(n,r.providedCodeActionKinds)}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle.value=new me(this._editor,this._markerService,(function(n){if(n){var i=Object(de.f)((function(e){return Object(h.c)(t,n.selection,n.trigger,e)}));e._progressService&&2===n.trigger.type&&e._progressService.showWhile(i,250),e.setState(new oe.Triggered(n.trigger,n.selection,n.position,i))}else e.setState(oe.Empty)}),void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},_e.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},_e.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},_e);function _e(e,t,n,i){var o=ye.call(this)||this;return o._editor=e,o._markerService=t,o._progressService=i,o._codeActionOracle=o._register(new a.d),o._state=oe.Empty,o._onDidChangeState=o._register(new B.a),o.onDidChangeState=o._onDidChangeState.event,o._supportedCodeActions=ge.bindTo(n),o._register(o._editor.onDidChangeModel((function(){return o._update()}))),o._register(o._editor.onDidChangeModelLanguage((function(){return o._update()}))),o._register(w.a.onDidChange((function(){return o._update()}))),o._update(),o}n.d(t,"f",(function(){return De})),n.d(t,"e",(function(){return Ae})),n.d(t,"b",(function(){return Fe})),n.d(t,"g",(function(){return Ve})),n.d(t,"h",(function(){return qe})),n.d(t,"d",(function(){return Ge})),n.d(t,"c",(function(){return Xe})),n.d(t,"a",(function(){return Qe}));var we,Ce=(we=function(e,t){return(we=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){function n(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Se=function(e,t){return function(n,i){t(n,i,e)}},Oe=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},xe=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},ke=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function Ee(e){return se.a.regex(ge.keys()[0],new RegExp("(\\s|^)"+Object(l.p)(e.value)+"\\b"))}var Ne,Le={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:V.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:V.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[V.a("args.schema.apply.first","Always apply the first returned code action."),V.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),V.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:V.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},De=(Ce(Me,Ne=a.a),Me.get=function(e){return e.getContribution(Me.ID)},Me.prototype.update=function(e){this._ui.getValue().update(e)},Me.prototype.showCodeActions=function(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})},Me.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){g.a.get(this._editor).closeMessage();var i=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}},Me.prototype._trigger=function(e){return this._model.trigger(e)},Me.prototype._applyCodeAction=function(e){return this._instantiationService.invokeFunction(Te,e,this._editor)},Me.ID="editor.contrib.quickFixController",Me=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Se(1,ae.b),Se(2,se.c),Se(3,ue.a),Se(4,m.a)],Me));function Me(e,t,n,o,r){var s=Ne.call(this)||this;return s._instantiationService=r,s._editor=e,s._model=s._register(new be(s._editor,t,n,o)),s._register(s._model.onDidChangeState((function(e){return s.update(e)}))),s._ui=new i((function(){return s._register(new ee(e,Ae.Id,Qe.Id,{applyCodeAction:function(e,t){return Oe(s,void 0,void 0,(function(){return xe(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._applyCodeAction(e)];case 1:return n.sent(),[3,3];case 2:return t&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}}))}))}},s._instantiationService))})),s}function Te(e,t,n){return Oe(this,void 0,void 0,(function(){var i,o,r,s,a,l;return xe(this,(function(u){switch(u.label){case 0:return i=e.get(c.a),o=e.get(re.b),r=e.get(ce.a),s=e.get(le.a),r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.title,codeActionKind:t.kind,codeActionIsPreferred:!!t.isPreferred}),t.edit?[4,i.apply(t.edit,{editor:n})]:[3,2];case 1:u.sent(),u.label=2;case 2:if(!t.command)return[3,6];u.label=3;case 3:return u.trys.push([3,5,,6]),[4,o.executeCommand.apply(o,ke([t.command.id],t.command.arguments||[]))];case 4:return u.sent(),[3,6];case 5:return a=u.sent(),l="string"==typeof(d=a)?d:d instanceof Error&&"string"==typeof d.message?d.message:void 0,s.error("string"==typeof l?l:V.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}var d}))}))}function Ie(e,t,n,i){if(e.hasModel()){var o=De.get(e);o&&o.manualTriggerAtCurrentPosition(t,n,i)}}var Pe,Ae=(Ce(Re,Pe=u.b),Re.prototype.run=function(e,t){return Ie(t,V.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},Re.Id="editor.action.quickFix",Re);function Re(){return Pe.call(this,{id:Re.Id,label:V.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:2132,weight:100}})||this}var je,Fe=(Ce(Be,je=u.c),Be.prototype.runEditorCommand=function(e,t,n){var i=C.a.fromUser(n,{kind:C.b.Empty,apply:"ifSingle"});return Ie(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?V.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):V.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?V.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):V.a("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},Be);function Be(){return je.call(this,{id:h.a,precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Le}]}})||this}var We,Ve=(Ce(ze,We=u.b),ze.prototype.run=function(e,t,n){var i=C.a.fromUser(n,{kind:C.b.Refactor,apply:"never"});return Ie(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?V.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):V.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?V.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):V.a("editor.action.refactor.noneMessage","No refactorings available"),{include:C.b.Refactor.contains(i.kind)?i.kind:C.b.None,onlyIncludePreferredActions:i.preferred},i.apply)},ze);function ze(){return We.call(this,{id:h.e,label:V.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.a.and(d.a.writable,Ee(C.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Le}]}})||this}var He,qe=(Ce(Ue,He=u.b),Ue.prototype.run=function(e,t,n){var i=C.a.fromUser(n,{kind:C.b.Source,apply:"never"});return Ie(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?V.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):V.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?V.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):V.a("editor.action.source.noneMessage","No source actions available"),{include:C.b.Source.contains(i.kind)?i.kind:C.b.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},Ue);function Ue(){return He.call(this,{id:h.f,label:V.a("source.label","Source Action..."),alias:"Source Action...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.a.and(d.a.writable,Ee(C.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Le}]}})||this}var Ke,Ge=(Ce(Ye,Ke=u.b),Ye.prototype.run=function(e,t){return Ie(t,V.a("editor.action.organize.noneMessage","No organize imports action available"),{include:C.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},Ye);function Ye(){return Ke.call(this,{id:h.d,label:V.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.a.and(d.a.writable,Ee(C.b.SourceOrganizeImports)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1581,weight:100}})||this}var Ze,Xe=(Ce($e,Ze=u.b),$e.prototype.run=function(e,t){return Ie(t,V.a("fixAll.noneMessage","No fix all action available"),{include:C.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},$e);function $e(){return Ze.call(this,{id:h.b,label:V.a("fixAll.label","Fix All"),alias:"Fix All",precondition:se.a.and(d.a.writable,Ee(C.b.SourceFixAll))})||this}var Je,Qe=(Ce(et,Je=u.b),et.prototype.run=function(e,t){return Ie(t,V.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:C.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},et.Id="editor.action.autoFix",et);function et(){return Je.call(this,{id:et.Id,label:V.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.a.and(d.a.writable,Ee(C.b.QuickFix)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}},function(e,t,n){"use strict";var i=n(445),o=n(446),r=n(439),s=n(504),a=n(448),l=n(456),u=n(573),c=n(775),d=n(897),h=(n(1361),n(443)),p=n(490),f=n(442),g=n(596),m=n(554),v=n(957),y=n(440),b=n(495),_=n(787),w=n(960),C=(n(1362),n(444)),S=n(505),O={badgeBackground:p.a.fromHex("#4D4D4D"),badgeForeground:p.a.fromHex("#FFFFFF")},x=(k.prototype.setCount=function(e){this.count=e,this.render()},k.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},k.prototype.render=function(){this.element.textContent=Object(C.r)(this.countFormat,this.count),this.element.title=Object(C.r)(this.titleFormat,this.count),this.applyStyles()},k.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},k.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}},k);function k(e,t){this.count=0,this.options=t||Object.create(null),Object(S.g)(this.options,O,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(h.q)(e,Object(h.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}var E,N=n(898),L=n(451),D=n(826),M=n(956),T=n(531),I=n(760),P=n(961),A=(E=function(e,t){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])})(e,t)},function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},j=function(e,t){return function(n,i){t(n,i,e)}},F=(B.prototype.hasChildren=function(e){return e instanceof d.c||e instanceof d.a&&!e.failure},B.prototype.getChildren=function(e){if(e instanceof d.c)return e.groups;if(e instanceof d.a)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")},B=R([j(0,_.a)],B));function B(e){this._resolverService=e}var W=(V.prototype.getHeight=function(){return 23},V.prototype.getTemplateId=function(e){return e instanceof d.a?Z.id:Q.id},V);function V(){}var z=(H.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof d.b){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return Object(m.b)(e.uri)},H=R([j(0,T.a)],H));function H(e){this._keybindingService=e}var q=(U.prototype.getId=function(e){return e instanceof d.b?e.id:e.uri},U);function U(){}var K,G=(A(Y,K=r.a),Y.prototype.set=function(e,t){var n=Object(m.d)(e.uri);this.file.setLabel(Object(M.a)(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});var o=e.children.length;this.badge.setCount(o),e.failure?this.badge.setTitleFormat(Object(i.a)("referencesFailre","Failed to resolve file.")):1<o?this.badge.setTitleFormat(Object(i.a)("referencesCount","{0} references",o)):this.badge.setTitleFormat(Object(i.a)("referenceCount","{0} reference",o))},Y=R([j(1,N.a),j(2,L.c)],Y));function Y(e,t,n){var i=K.call(this)||this;i._uriLabel=t;var o=document.createElement("div");return h.f(o,"reference-file"),i.file=i._register(new w.a(o,{supportHighlights:!0})),i.badge=new x(h.q(o,h.a(".count"))),i._register(Object(D.a)(i.badge,n)),e.appendChild(o),i}var Z=(X.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(G,e)},X.prototype.renderElement=function(e,t,n){n.set(e.element,Object(I.c)(e.filterData))},X.prototype.disposeTemplate=function(e){e.dispose()},X.id="FileReferencesRenderer",X=R([j(0,a.a)],X));function X(e){this._instantiationService=e,this.templateId=X.id}var $=(J.prototype.set=function(e,t){var n=e.parent.preview,i=n&&n.preview(e.range);if(i){var o=i.value,r=i.highlight;t&&!I.a.isDefault(t)?(h.Y(this.label.element,"referenceMatch",!1),this.label.set(o,Object(I.c)(t))):(h.Y(this.label.element,"referenceMatch",!0),this.label.set(o,[r]))}else this.label.set(Object(m.b)(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},J);function J(e){this.label=new P.a(e,!1)}var Q=(ee.prototype.renderTemplate=function(e){return new $(e)},ee.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},ee.prototype.disposeTemplate=function(){},ee.id="OneReferenceRenderer",ee);function ee(){this.templateId=ee.id}var te=(ne.prototype.getAriaLabel=function(e){return e.ariaMessage},ne);function ne(){}var ie,oe=n(969),re=n(461),se=n(916),ae=(n(1365),n(465)),le=n(962),ue=n(459),ce=n(891),de=n(686),he=(ie=function(e,t){return(ie=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){function n(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},fe={separatorBorder:p.a.transparent},ge=(Object.defineProperty(me.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"visible",{get:function(){return void 0===this._cachedVisibleSize},enumerable:!0,configurable:!0}),me.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=Object(le.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),h.Y(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(me.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"enabled",{set:function(e){this.container.style.pointerEvents=e?null:"none"},enumerable:!0,configurable:!0}),me.prototype.layout=function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)},me.prototype.dispose=function(){return this.disposable.dispose(),this.view},me);function me(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,h.f(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}var ve,ye=(he(be,ve=ge),be.prototype.layoutContainer=function(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"},be);function be(){return null!==ve&&ve.apply(this,arguments)||this}var _e,we,Ce,Se,Oe,xe=(he(ke,_e=ge),ke.prototype.layoutContainer=function(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"},ke);function ke(){return null!==_e&&_e.apply(this,arguments)||this}(Ce=we=we||{})[Ce.Idle=0]="Idle",Ce[Ce.Busy=1]="Busy",(Oe=Se=Se||{}).Distribute={type:"distribute"},Oe.Split=function(e){return{type:"split",index:e}},Oe.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};var Ee,Ne=(he(Le,Ee=r.a),Object.defineProperty(Le.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalStartSash=e;this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalEndSash=e;this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Le.prototype.style=function(e){e.separatorBorder.isTransparent()?(h.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(h.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},Le.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},Le.prototype.layout=function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var o=0;o<this.viewItems.length;o++){var r=this.viewItems[o];r.size=Object(le.a)(Math.round(this.proportions[o]*e),r.minimumSize,r.maximumSize)}else{var s=Object(ue.u)(this.viewItems.length),a=s.filter((function(e){return 1===n.viewItems[e].priority})),l=s.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-i,void 0,a,l)}this.distributeEmptySpace(),this.layoutViews()},Le.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&0<this.contentSize&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))},Le.prototype.onSashStart=function(e){for(var t=this,n=e.sash,i=e.start,o=e.alt,s=0,a=this.viewItems;s<a.length;s++)a[s].enabled=!1;var l=Object(ue.k)(this.sashItems,(function(e){return e.sash===n})),u=Object(r.e)(Object(de.a)(document.body,"keydown")((function(e){return c(t.sashDragState.current,e.altKey)})),Object(de.a)(document.body,"keyup")((function(){return c(t.sashDragState.current,!1)}))),c=function(e,n){var i,o,r=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n&&(a=l===t.sashItems.length-1?(s=((_=t.viewItems[l]).minimumSize-_.size)/2,(_.maximumSize-_.size)/2):(s=((_=t.viewItems[l+1]).size-_.maximumSize)/2,(_.size-_.minimumSize)/2)),!n){var c=Object(ue.u)(l,-1),d=Object(ue.u)(l+1,t.viewItems.length),h=c.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-r[n])}),0),p=c.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-r[n])}),0),f=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].minimumSize)}),0),g=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].viewMaximumSize)}),0),m=Math.max(h,g),v=Math.min(f,p),y=t.findFirstSnapIndex(c),b=t.findFirstSnapIndex(d);if("number"==typeof y){var _=t.viewItems[y],w=Math.floor(_.viewMinimumSize/2);i={index:y,limitDelta:_.visible?m-w:m+w,size:_.size}}"number"==typeof b&&(_=t.viewItems[b],w=Math.floor(_.viewMinimumSize/2),o={index:b,limitDelta:_.visible?v+w:v-w,size:_.size})}t.sashDragState={start:e,current:e,index:l,sizes:r,minDelta:s,maxDelta:a,alt:n,snapBefore:i,snapAfter:o,disposable:u}};c(i,o)},Le.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,i=n.index,o=n.start,r=n.sizes,s=n.alt,a=n.minDelta,l=n.maxDelta,u=n.snapBefore,c=n.snapAfter,d=(this.sashDragState.current=t)-o,h=this.resize(i,d,r,void 0,void 0,a,l,u,c);if(s){var p=i===this.sashItems.length-1,f=this.viewItems.map((function(e){return e.size})),g=p?i:i+1,m=this.viewItems[g],v=m.size-m.maximumSize,y=m.size-m.minimumSize,b=p?i-1:i+1;this.resize(b,-h,f,void 0,void 0,v,y)}this.distributeEmptySpace(),this.layoutViews()},Le.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(var t=0,n=this.viewItems;t<n.length;t++)n[t].enabled=!0},Le.prototype.onViewChange=function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=Object(le.a)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&0<n?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},Le.prototype.resizeView=function(e,t){var n=this;if(this.state!==we.Idle)throw new Error("Cant modify splitview");if(this.state=we.Busy,!(e<0||e>=this.viewItems.length)){var i=Object(ue.u)(this.viewItems.length).filter((function(t){return t!==e})),o=pe(i.filter((function(e){return 1===n.viewItems[e].priority})),[e]),r=i.filter((function(e){return 2===n.viewItems[e].priority})),s=this.viewItems[e];t=Math.round(t),t=Object(le.a)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(o,r),this.state=we.Idle}},Le.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,i=0,o=this.viewItems;i<o.length;i++)0<(l=o[i]).maximumSize-l.minimumSize&&(t.push(l),n+=l.size);for(var r=Math.floor(n/t.length),s=0,a=t;s<a.length;s++){var l;(l=a[s]).size=Object(le.a)(r,l.minimumSize,l.maximumSize)}var u=Object(ue.u)(this.viewItems.length),c=u.filter((function(t){return 1===e.viewItems[t].priority})),d=u.filter((function(t){return 2===e.viewItems[t].priority}));this.relayout(c,d)},Le.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},Le.prototype.doAddView=function(e,t,n,i){var o=this;if(void 0===n&&(n=this.viewItems.length),this.state!==we.Idle)throw new Error("Cant modify splitview");this.state=we.Busy;var s=h.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(n));var a,l=e.onDidChange((function(e){return o.onViewChange(p,e)})),u=Object(r.h)((function(){return o.viewContainer.removeChild(s)})),c=Object(r.e)(l,u);a="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var d,p=new(0===this.orientation?ye:xe)(s,e,a,c);if(this.viewItems.splice(n,0,p),1<this.viewItems.length){var g=0===this.orientation?1:0,m=0===this.orientation?{getHorizontalSashTop:function(e){return o.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return o.getSashPosition(e)}},v=new ce.a(this.sashContainer,m,{orientation:g,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),y=0===this.orientation?function(e){return{sash:v,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:v,start:e.startX,current:e.currentX,alt:e.altKey}},b=f.b.map(v.onDidStart,y)(this.onSashStart,this),_=f.b.map(v.onDidChange,y)(this.onSashChange,this),w=f.b.map(v.onDidEnd,(function(){return Object(ue.k)(o.sashItems,(function(e){return e.sash===v}))}))(this.onSashEnd,this),C=v.onDidReset((function(){var e=Object(ue.k)(o.sashItems,(function(e){return e.sash===v})),t=Object(ue.u)(e,-1),n=Object(ue.u)(e+1,o.viewItems.length),i=o.findFirstSnapIndex(t),r=o.findFirstSnapIndex(n);"number"==typeof i&&!o.viewItems[i].visible||"number"==typeof r&&!o.viewItems[r].visible||o._onDidSashReset.fire(e)})),S=Object(r.e)(b,_,w,C,v),O={sash:v,disposable:S};this.sashItems.splice(n-1,0,O)}s.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(d=[t.index]),i||this.relayout([n],d),this.state=we.Idle,i||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()},Le.prototype.relayout=function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},Le.prototype.resize=function(e,t,n,i,o,r,s,a,l){var u=this;if(void 0===n&&(n=this.viewItems.map((function(e){return e.size}))),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var c=Object(ue.u)(e,-1),d=Object(ue.u)(e+1,this.viewItems.length);if(o)for(var h=0,p=o;h<p.length;h++){var f=p[h];Object(ue.t)(c,f),Object(ue.t)(d,f)}if(i)for(var g=0,m=i;g<m.length;g++){var v=m[g];Object(ue.s)(c,v),Object(ue.s)(d,v)}var y,b=c.map((function(e){return u.viewItems[e]})),_=c.map((function(e){return n[e]})),w=d.map((function(e){return u.viewItems[e]})),C=d.map((function(e){return n[e]})),S=c.reduce((function(e,t){return e+(u.viewItems[t].minimumSize-n[t])}),0),O=c.reduce((function(e,t){return e+(u.viewItems[t].maximumSize-n[t])}),0),x=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-u.viewItems[t].minimumSize)}),0),k=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-u.viewItems[t].maximumSize)}),0),E=Math.max(S,k,r),N=Math.min(x,O,s),L=!1;if(a){var D=this.viewItems[a.index];L=(y=t>=a.limitDelta)!==D.visible,D.setVisible(y,a.size)}if(!L&&l&&(D=this.viewItems[l.index],L=(y=t<l.limitDelta)!==D.visible,D.setVisible(y,l.size)),L)return this.resize(e,t,n,i,o,r,s);for(var M=0,T=t=Object(le.a)(t,E,N);M<b.length;M++){var I=b[M];T-=(A=Object(le.a)(_[M]+T,I.minimumSize,I.maximumSize))-_[M],I.size=A}M=0;for(var P=t;M<w.length;M++){var A;I=w[M],P+=(A=Object(le.a)(C[M]-P,I.minimumSize,I.maximumSize))-C[M],I.size=A}return t},Le.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-n,o=Object(ue.u)(this.viewItems.length-1,-1),r=o.filter((function(e){return 1===t.viewItems[e].priority})),s=0,a=o.filter((function(e){return 2===t.viewItems[e].priority}));s<a.length;s++){var l=a[s];Object(ue.t)(o,l)}for(var u=0,c=r;u<c.length;u++)l=c[u],Object(ue.s)(o,l);"number"==typeof e&&Object(ue.s)(o,e);for(var d=0;0!==i&&d<o.length;d++){var h=this.viewItems[o[d]],p=Object(le.a)(h.size+i,h.minimumSize,h.maximumSize);i-=p-h.size,h.size=p}},Le.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);for(var e=0,t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.layout(e,this.layoutContext),e+=i.size}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()},Le.prototype.updateSashEnablement=function(){var e=!1,t=this.viewItems.map((function(t){return e=0<t.size-t.minimumSize||e}));e=!1;var n=this.viewItems.map((function(t){return e=0<t.maximumSize-t.size||e})),i=pe(this.viewItems).reverse();e=!1;var o=i.map((function(t){return e=0<t.size-t.minimumSize||e})).reverse();e=!1;for(var r=i.map((function(t){return e=0<t.maximumSize-t.size||e})).reverse(),s=0,a=0;a<this.sashItems.length;a++){var l=this.sashItems[a].sash;s+=this.viewItems[a].size;var u=!(t[a]&&r[a+1]),c=!(n[a]&&o[a+1]);if(u&&c){var d=Object(ue.u)(a,-1),h=Object(ue.u)(a+1,this.viewItems.length),p=this.findFirstSnapIndex(d),f=this.findFirstSnapIndex(h),g="number"==typeof p&&!this.viewItems[p].visible,m="number"==typeof f&&!this.viewItems[f].visible;g&&o[a]&&(0<s||this.startSnappingEnabled)?l.state=1:m&&t[a]&&(s<this.contentSize||this.endSnappingEnabled)?l.state=2:l.state=0}else l.state=u&&!c?1:!u&&c?2:3}},Le.prototype.getSashPosition=function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return Math.min(t,this.contentSize-2);return 0},Le.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];if((s=this.viewItems[i]).visible&&s.snap)return i}for(var o=0,r=e;o<r.length;o++){var s;if(i=r[o],(s=this.viewItems[i]).visible&&0<s.maximumSize-s.minimumSize)return;if(!s.visible&&s.snap)return i}},Le.prototype.dispose=function(){Ee.prototype.dispose.call(this),this.viewItems.forEach((function(e){return e.dispose()})),this.viewItems=[],this.sashItems.forEach((function(e){return e.disposable.dispose()})),this.sashItems=[]},Le);function Le(e,t){void 0===t&&(t={});var n=Ee.call(this)||this;return n.size=0,n.contentSize=0,n.proportions=void 0,n.viewItems=[],n.sashItems=[],n.state=we.Idle,n._onDidSashChange=n._register(new f.a),n.onDidSashChange=n._onDidSashChange.event,n._onDidSashReset=n._register(new f.a),n._startSnappingEnabled=!0,n._endSnappingEnabled=!0,n.orientation=ae.k(t.orientation)?0:t.orientation,n.inverseAltBehavior=!!t.inverseAltBehavior,n.proportionalLayout=!!ae.k(t.proportionalLayout)||!!t.proportionalLayout,n.el=document.createElement("div"),h.f(n.el,"monaco-split-view2"),h.f(n.el,0===n.orientation?"vertical":"horizontal"),e.appendChild(n.el),n.sashContainer=h.q(n.el,h.a(".sash-container")),n.viewContainer=h.q(n.el,h.a(".split-view-container")),n.style(t.styles||fe),t.descriptor&&(n.size=t.descriptor.size,t.descriptor.views.forEach((function(e,t){var i=ae.k(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},o=e.view;n.doAddView(o,i,t,!0)})),n.contentSize=n.viewItems.reduce((function(e,t){return e+t.size}),0),n.saveProportions()),n}var De,Me=(De=function(e,t){return(De=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){function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Te=function(e,t){return function(n,i){t(n,i,e)}},Ie=(Pe.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},Pe.prototype._onModelChanged=function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(Object(m.e)(i.uri,e.uri))return void this._addDecorations(i)}},Pe.prototype._addDecorations=function(e){var t=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(e){return t._onDecorationChanged()})));for(var n=[],i=[],o=0,r=e.children.length;o<r;o++){var s=e.children[o];this._decorationIgnoreSet.has(s.id)||(n.push({range:s.range,options:Pe.DecorationOptions}),i.push(o))}var a=this._editor.deltaDecorations([],n);for(o=0;o<a.length;o++)this._decorations.set(a[o],e.children[i[o]])}},Pe.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach((function(i,o){var r=n.getDecorationRange(o);if(r){var s=!1;y.a.equalsRange(r,i.range)||(!y.a.spansMultipleLines(r)&&i.range.endColumn-i.range.startColumn==r.endColumn-r.startColumn||(s=!0),s?(e._decorationIgnoreSet.add(i.id),t.push(o)):i.range=r)}}));for(var i=0,o=t.length;i<o;i++)this._decorations.delete(t[i]);this._editor.deltaDecorations(t,[])}},Pe.prototype.removeDecorations=function(){var e=[];this._decorations.forEach((function(t,n){e.push(n)})),this._editor.deltaDecorations(e,[]),this._decorations.clear()},Pe.DecorationOptions=b.a.register({stickiness:1,className:"reference-decoration"}),Pe);function Pe(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.b,this._callOnModelChange=new r.b,this._callOnDispose.add(this._editor.onDidChangeModel((function(){return n._onModelChanged()}))),this._onModelChanged()}var Ae=(Re.fromJSON=function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:n||18}},Re);function Re(){this.ratio=.7,this.heightInLines=18}var je,Fe=(Me(Be,je=se.c),Be.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(r.f)(this._preview),Object(r.f)(this._previewNotAvailableMessage),Object(r.f)(this._tree),Object(r.f)(this._previewModelReference),this._splitView.dispose(),je.prototype.dispose.call(this)},Be.prototype._applyTheme=function(e){var t=e.getColor(se.e)||p.a.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(se.p)||p.a.transparent,primaryHeadingColor:e.getColor(se.q),secondaryHeadingColor:e.getColor(se.r)})},Be.prototype.show=function(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),je.prototype.show.call(this,e,this.layoutData.heightInLines||18)},Be.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},Be.prototype.focusOnPreviewEditor=function(){this._preview.focus()},Be.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},Be.prototype._onTitleClick=function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})},Be.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=h.q(e,h.a("div.messages")),h.J(this._messageContainer),this._splitView=new Ne(e,{orientation:1}),this._previewContainer=h.q(e,h.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(v.a,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),h.J(this._previewContainer),this._previewNotAvailableMessage=b.b.createFromString(i.a("missingPreviewMessage","no preview available")),this._treeContainer=h.q(e,h.a("div.ref-tree.inline"));var n={ariaLabel:i.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new te,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new q,overrideStyles:{listBackground:se.j}};function o(e,n){e instanceof d.b&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))}this._tree=this._instantiationService.createInstance(oe.c,"ReferencesWidget",this._treeContainer,new W,[this._instantiationService.createInstance(Z),this._instantiationService.createInstance(Q)],this._instantiationService.createInstance(F),n),this._splitView.addView({onDidChange:f.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},Se.Distribute),this._splitView.addView({onDidChange:f.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height=t._dim.height+"px",t._treeContainer.style.width=e+"px",t._tree.layout(t._dim.height,e)}},Se.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0)),this._tree.onDidChangeFocus((function(e){o(e.elements[0],"show")})),this._tree.onDidOpen((function(e){e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey)?o(e.elements[0],"side"):e.browserEvent instanceof KeyboardEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail||2===e.browserEvent.tapCount?o(e.elements[0],"goto"):o(e.elements[0],"show")})),h.J(this._treeContainer)},Be.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},Be.prototype._doLayoutBody=function(e,t){je.prototype._doLayoutBody.call(this,e,t),this._dim={height:e,width:t},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)},Be.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))},Be.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},Be.prototype._onNewModel=function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=i.a("noResults","No results"),h.X(this._messageContainer),Promise.resolve(void 0)):(h.J(this._messageContainer),this._decorationsManager=new Ie(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((function(t){return e._tree.rerender(t)}))),this._disposeOnNewModel.add(this._preview.onMouseDown((function(t){var n=t.event,i=t.target;if(2===n.detail){var o=e._getFocusedReference();o&&e._onDidSelectReference.fire({element:{uri:o.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),h.f(this.container,"results-loaded"),h.X(this._treeContainer),h.X(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},Be.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof d.b?e:e instanceof d.a&&0<e.children.length?e.children[0]:void 0},Be.prototype._revealReference=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o,s,a,l;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(u){switch(u.label){case 0:return this._revealedReference===e?[2]:((this._revealedReference=e).uri.scheme!==g.b.inMemory?this.setTitle(Object(m.c)(e.uri),this._uriLabel.getUriLabel(Object(m.d)(e.uri))):this.setTitle(i.a("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent?[3,1]:(this._tree.reveal(e),[3,3]));case 1:return t&&this._tree.reveal(e.parent),[4,this._tree.expand(e.parent)];case 2:u.sent(),this._tree.reveal(e),u.label=3;case 3:return[4,n];case 4:return o=u.sent(),this._model?(Object(r.f)(this._previewModelReference),(s=o.object)?(a=this._preview.getModel()===s.textEditorModel?0:1,l=y.a.lift(e.range).collapseToStart(),this._previewModelReference=o,this._preview.setModel(s.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,a)):(this._preview.setModel(this._previewNotAvailableMessage),o.dispose())):o.dispose(),[2]}}))}))},Be=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Te(3,L.c),Te(4,_.a),Te(5,a.a),Te(6,se.a),Te(7,N.a)],Be));function Be(e,t,n,i,o,s,a,l){var u=je.call(this,e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return u._defaultTreeKeyboardSupport=t,u.layoutData=n,u._textModelResolverService=o,u._instantiationService=s,u._peekViewService=a,u._uriLabel=l,u._disposeOnNewModel=new r.b,u._callOnDispose=new r.b,u._onDidSelectReference=new f.a,u.onDidSelectReference=u._onDidSelectReference.event,u._dim={height:0,width:0},u._applyTheme(i.getTheme()),u._callOnDispose.add(i.onThemeChange(u._applyTheme.bind(u))),u._peekViewService.addExclusiveWidget(e,u),u.create(),u}Object(L.e)((function(e,t){var n=e.getColor(se.m);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var i=e.getColor(se.h);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(se.i);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }");var r=e.getColor(re.b);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+r+"; box-sizing: border-box; }");var s=e.getColor(se.j);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(se.l);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var l=e.getColor(se.k);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+l+"; }");var u=e.getColor(se.n);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+u+"; }");var c=e.getColor(se.o);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(se.f);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(se.g);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")}));var We=n(450),Ve=n(532),ze=n(453),He=n(788),qe=n(548),Ue=n(489);n.d(t,"a",(function(){return Ye}));var Ke=function(e,t){return function(n,i){t(n,i,e)}},Ge=new l.d("referenceSearchVisible",!1),Ye=(Ze.get=function(e){return e.getContribution(Ze.ID)},Ze.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0},Ze.prototype.toggleWidget=function(e,t,n){var o,r=this;if(this._widget&&(o=this._widget.position),this.closeWidget(),!o||!e.containsPosition(o)){this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){r.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){r._ignoreModelChangeEvent||r.closeWidget()})));var s="peekViewLayout",a=Ae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Fe,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(i.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),r._widget&&(r._storageService.store(s,JSON.stringify(r._widget.layoutData),0),r._widget=void 0),r.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,i=e.kind;if(t)switch(i){case"open":"editor"===e.source&&r._configurationService.getValue("editor.stablePeek")||r.openReference(t,!1);break;case"side":r.openReference(t,!0);break;case"goto":n?r._gotoReference(t):r.openReference(t,!1)}})));var l=++this._requestIdPool;t.then((function(t){if(l===r._requestIdPool&&r._widget)return r._model&&r._model.dispose(),r._model=t,r._widget.setModel(r._model).then((function(){if(r._widget&&r._model&&r._editor.hasModel()){r._model.isEmpty?r._widget.setMetaTitle(""):r._widget.setMetaTitle(i.a("metaTitle.N","{0} ({1})",r._model.title,r._model.references.length));var t=r._editor.getModel().uri,n=new We.a(e.startLineNumber,e.startColumn),o=r._model.nearestReference(t,n);if(o)return r._widget.setSelection(o).then((function(){r._widget&&"editor"===r._editor.getOption(65)&&r._widget.focusOnPreviewEditor()}))}}))}),(function(e){r._notificationService.error(e)}))}},Ze.prototype.changeFocusBetweenPreviewAndReferences=function(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())},Ze.prototype.goToNextOrPreviousReference=function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,i,o,r;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(s){switch(s.label){case 0:return this._editor.hasModel()&&this._model&&this._widget&&(t=this._widget.position)&&(n=this._model.nearestReference(this._editor.getModel().uri,t))?(i=this._model.nextOrPreviousReference(n,e),o=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(i)]):[2];case 1:return s.sent(),[4,this._gotoReference(i)];case 2:return s.sent(),o?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor(),[2]}}))}))},Ze.prototype.closeWidget=function(e){void 0===e&&(e=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1},Ze.prototype._gotoReference=function(e){var t=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=y.a.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n}},this._editor).then((function(e){var i;if(t._ignoreModelChangeEvent=!1,e&&t._widget)if(t._editor===e)t._widget.show(n),t._widget.focusOnReferenceTree();else{var o=Ze.get(e),r=t._model.clone();t.closeWidget(),e.focus(),o.toggleWidget(n,Object(ze.f)((function(e){return Promise.resolve(r)})),null!==(i=t._peekMode)&&void 0!==i&&i)}else t.closeWidget()}),(function(e){t._ignoreModelChangeEvent=!1,Object(o.e)(e)}))},Ze.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t)},Ze.ID="editor.contrib.referencesController",Ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Ke(2,l.c),Ke(3,s.a),Ke(4,Ve.a),Ke(5,a.a),Ke(6,c.a),Ke(7,u.a)],Ze));function Ze(e,t,n,i,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new r.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Ge.bindTo(n)}function Xe(e,t){var n=Object(se.d)(e);if(n){var i=Ye.get(n);i&&t(i)}}He.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(qe.a)(2089,60),when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.changeFocusBetweenPreviewAndReferences()}))}}),He.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),He.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),Ue.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ue.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ue.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ue.a.registerCommand("closeReferenceSearch",(function(e){return Xe(e,(function(e){return e.closeWidget()}))})),He.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:l.a.and(se.b.inPeekEditor,l.a.not("config.editor.stablePeek"))}),He.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:l.a.and(Ge,l.a.not("config.editor.stablePeek"))}),He.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:l.a.and(Ge,oe.d),handler:function(e){var t,n=null===(t=e.get(oe.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&Xe(e,(function(e){return e.openReference(n[0],!0)}))}}),Ue.a.registerCommand("openReference",(function(e){var t,n=null===(t=e.get(oe.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&Xe(e,(function(e){return e.openReference(n[0],!1)}))}))},,,function(e,t,n){var i;i=function(){return n={},e.m=t=[function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(n(1)),s=l(n(3)),a=l(n(4));function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,s.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(c,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===i(t.container)?t.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(e){var t=0<arguments.length&&void 0!==e?e:["copy","cut"],n="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return n.forEach((function(e){i=i&&!!document.queryCommandSupported(e)})),i}}]),c);function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return n.resolveOptions(t),n.listenClick(e),n}function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r,s=(r=n(2))&&r.__esModule?r:{default:r},a=(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(l,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(e){var t=0<arguments.length&&void 0!==e?e:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),l);function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.resolveOptions(e),this.initSelection()}e.exports=a},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=n},function(e,t,n){var i=n(5),o=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return h=t,p=n,(d=e).addEventListener(h,p),{destroy:function(){d.removeEventListener(h,p)}};if(i.nodeList(e))return l=e,u=t,c=n,Array.prototype.forEach.call(l,(function(e){e.addEventListener(u,c)})),{destroy:function(){Array.prototype.forEach.call(l,(function(e){e.removeEventListener(u,c)}))}};if(i.string(e))return r=e,s=t,a=n,o(document.body,r,s,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var r,s,a,l,u,c,d,h,p}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var i=n(7);function o(e,t,n,o,r){var s=function(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,s,r),{destroy:function(){e.removeEventListener(n,s,r)}}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,i,r)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}],e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=0);function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},e.exports=i()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processSize=function(e){return/^\d+$/.test(e)?"".concat(e,"px"):e},t.noop=function(){}},function(e,t,n){"use strict";n(46),n(1390)},,,,,,function(e,t,n){"use strict";var i=n(0),o=n(1),r=n(52),s=n(33),a=n(12),l=n.n(a),u=n(25),c=n(77);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return e?e.toString().split("").reverse().map((function(e){var t=Number(e);return isNaN(t)?e:t})):[]}var v=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,f(e).call(this,t))).onAnimated=function(){var e=n.props.onAnimated;e&&e()},n.renderScrollNumber=function(e){var t=e.getPrefixCls,o=n.props,r=o.prefixCls,a=o.className,u=o.style,c=o.title,d=o.component,p=void 0===d?"sup":d,f=o.displayComponent,g=Object(s.default)(n.props,["count","onAnimated","component","prefixCls","displayComponent"]),m=t("scroll-number",r),v=h(h({},g),{className:l()(m,a),title:c});return u&&u.borderColor&&(v.style=h(h({},u),{boxShadow:"0 0 0 1px ".concat(u.borderColor," inset")})),f?i.cloneElement(f,{className:l()("".concat(m,"-custom-component"),f.props&&f.props.className)}):i.createElement(p,v,n.renderNumberElement(m))},n.state={animateStarted:!0,count:t.count},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,i.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e&&t.count!==e.count?{animateStarted:!0}:null}}],(n=[{key:"componentDidUpdate",value:function(e,t){this.lastCount=t.count,this.state.animateStarted&&this.setState((function(e,t){return{animateStarted:!1,count:t.count}}),this.onAnimated)}},{key:"getPositionByNum",value:function(e,t){var n=this.state.count,i=Math.abs(Number(n)),o=Math.abs(Number(this.lastCount)),r=Math.abs(m(this.state.count)[t]),s=Math.abs(m(this.lastCount)[t]);return this.state.animateStarted?10+e:o<i?s<=r?10+e:20+e:r<=s?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,n){if("number"!=typeof t)return i.createElement("span",{key:"symbol",className:"".concat(e,"-symbol")},t);var o=this.getPositionByNum(t,n),r=this.state.animateStarted||void 0===m(this.lastCount)[n];return i.createElement("span",{className:"".concat(e,"-only"),style:{transition:r?"none":void 0,msTransform:"translateY(".concat(100*-o,"%)"),WebkitTransform:"translateY(".concat(100*-o,"%)"),transform:"translateY(".concat(100*-o,"%)")},key:n},function(e,t){for(var n=[],o=0;o<30;o++)n.push(i.createElement("p",{key:o.toString(),className:l()(t,{current:e===o})},o%10));return n}(o,"".concat(e,"-only-unit")))}},{key:"renderNumberElement",value:function(e){var t=this,n=this.state.count;return n&&Number(n)%1==0?m(n).map((function(n,i){return t.renderCurrentNumber(e,n,i)})).reverse():n}},{key:"render",value:function(){return i.createElement(c.a,null,this.renderScrollNumber)}}])&&p(t.prototype,n),o&&p(t,o),e}();v.defaultProps={count:null,onAnimated:function(){}},Object(u.polyfill)(v);var y=v,b=n(632);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function O(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return L}));var E=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};function N(e){return-1!==b.a.indexOf(e)}var L=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=O(this,x(e).apply(this,arguments))).renderBadge=function(e){var n,o=e.getPrefixCls,a=t.props,u=a.prefixCls,c=a.scrollNumberPrefixCls,d=a.children,h=a.status,p=a.text,f=a.color,g=E(a,["prefixCls","scrollNumberPrefixCls","children","status","text","color"]),m=["count","showZero","overflowCount","className","style","dot","offset","title"],v=o("badge",u),y=o("scroll-number",c),b=t.renderBadgeNumber(v,y),_=t.renderStatusText(v),S=l()((C(n={},"".concat(v,"-status-dot"),t.hasStatus()),C(n,"".concat(v,"-status-").concat(h),!!h),C(n,"".concat(v,"-status-").concat(f),N(f)),n)),O={};if(f&&!N(f)&&(O.background=f),d||!t.hasStatus())return i.createElement("span",w({},Object(s.default)(g,m),{className:t.getBadgeClassName(v)}),d,i.createElement(r.a,{component:"",showProp:"data-show",transitionName:d?"".concat(v,"-zoom"):"",transitionAppear:!0},b),_);var x=t.getStyleWithOffset(),k=x&&x.color;return i.createElement("span",w({},Object(s.default)(g,m),{className:t.getBadgeClassName(v),style:x}),i.createElement("span",{className:S,style:O}),i.createElement("span",{style:{color:k},className:"".concat(v,"-status-text")},p))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(e,i.Component),t=e,(n=[{key:"getNumberedDispayCount",value:function(){var e=this.props,t=e.count,n=e.overflowCount;return n<t?"".concat(n,"+"):t}},{key:"getDispayCount",value:function(){return this.isDot()?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,n=e.count;return t||("string"==typeof n||"number"==typeof n?n:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,n=e.style;return t?w({right:-parseInt(t[0],10),marginTop:t[1]},n):n}},{key:"getBadgeClassName",value:function(e){var t,n=this.props,i=n.className,o=n.children;return l()(i,e,(C(t={},"".concat(e,"-status"),this.hasStatus()),C(t,"".concat(e,"-not-a-wrapper"),!o),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,n=e.color;return!!t||!!n}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),n=this.isZero(),i=this.isDot();return(null==t||""===t||n&&!e)&&!i}},{key:"renderStatusText",value:function(e){var t=this.props.text;return this.isHidden()||!t?null:i.createElement("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count;if(e&&"object"===_(e))return i.cloneElement(e,{style:w(w({},this.getStyleWithOffset()),e.props&&e.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var n,o=this.props,r=o.status,s=o.count,a=o.color,u=this.getDispayCount(),c=this.isDot(),d=this.isHidden(),h=l()((C(n={},"".concat(e,"-dot"),c),C(n,"".concat(e,"-count"),!c),C(n,"".concat(e,"-multiple-words"),!c&&s&&s.toString&&1<s.toString().length),C(n,"".concat(e,"-status-").concat(r),!!r),C(n,"".concat(e,"-status-").concat(a),N(a)),n)),p=this.getStyleWithOffset();return a&&!N(a)&&((p=p||{}).background=a),d?null:i.createElement(y,{prefixCls:t,"data-show":!d,className:h,count:u,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return i.createElement(c.a,null,this.renderBadge)}}])&&S(t.prototype,n),e}();L.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},L.propTypes={count:o.node,showZero:o.bool,dot:o.bool,overflowCount:o.number}},,function(e,t,n){"use strict";n.r(t),n(1318);var i,o,r=n(478),s=n(443),a=n(488),l=n(943),u=n(635),c=n(597),d=n(439),h=n(452),p=n(444),f=n(479),g=n(449),m=n(469),v=n(1003),y=n(456),b=n(448),_=n(531),w=n(636),C=n(461),S=n(451),O=n(754),x=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},E=function(e,t){return function(n,i){t(n,i,e)}},N=new y.d("accessibilityHelpWidgetVisible",!1),L=(x(D,o=d.a),D.get=function(e){return e.getContribution(D.ID)},D.prototype.show=function(){this._widget.show()},D.prototype.hide=function(){this._widget.hide()},D.ID="editor.contrib.accessibilityHelpController",D=k([E(1,b.a)],D));function D(e,t){var n=o.call(this)||this;return n._editor=e,n._widget=n._register(t.createInstance(T,n._editor)),n}var M,T=(x(I,M=c.a),I.prototype.dispose=function(){this._editor.removeOverlayWidget(this),M.prototype.dispose.call(this)},I.prototype.getId=function(){return I.ID},I.prototype.getDomNode=function(){return this._domNode.domNode},I.prototype.getPosition=function(){return{preference:null}},I.prototype.show=function(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())},I.prototype._descriptionForCommand=function(e,t,n){var i=this._keybindingService.lookupKeybinding(e);return i?p.r(t,i.getAriaLabel()):p.r(n,e)},I.prototype._buildContent=function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach((function(e){n+=i.getValueLengthInRange(e)}))}var o,r,s=(r=n,(o=t)&&0!==o.length?1===o.length?r?p.r(O.a.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,r):p.r(O.a.singleSelection,o[0].positionLineNumber,o[0].positionColumn):r?p.r(O.a.multiSelectionRange,o.length,r):0<o.length?p.r(O.a.multiSelection,o.length):"":O.a.noSelection);e.get(45)?e.get(68)?s+=O.a.readonlyDiffEditor:s+=O.a.editableDiffEditor:e.get(68)?s+=O.a.readonlyEditor:s+=O.a.editableEditor;var a=h.e?O.a.changeConfigToOnMac:O.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:s+="\n\n - "+a;break;case 2:s+="\n\n - "+O.a.auto_on;break;case 1:s+="\n\n - "+O.a.auto_off,s+=" "+a}e.get(106)?s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOnMsg,O.a.tabFocusModeOnMsgNoKb):s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOffMsg,O.a.tabFocusModeOffMsgNoKb),s+="\n\n - "+(h.e?O.a.openDocMac:O.a.openDocWinLinux),s+="\n\n"+O.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(l.b)(s)),this._contentDomNode.domNode.setAttribute("aria-label",s)},I.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,s.t(this._contentDomNode.domNode),this._editor.focus())},I.prototype._layout=function(){var e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(I.WIDTH,e.width-40)),n=Math.max(5,Math.min(I.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);var i=Math.round((e.height-n)/2);this._domNode.setTop(i);var o=Math.round((e.width-t)/2);this._domNode.setLeft(o)},I.ID="editor.contrib.accessibilityHelpWidget",I.WIDTH=500,I.HEIGHT=300,I=k([E(1,y.c),E(2,_.a),E(3,w.a)],I));function I(e,t,n,i){var o=M.call(this)||this;return o._contextKeyService=t,o._keybindingService=n,o._openerService=i,o._editor=e,o._isVisibleKey=N.bindTo(o._contextKeyService),o._domNode=Object(a.b)(document.createElement("div")),o._domNode.setClassName("accessibilityHelpWidget"),o._domNode.setDisplay("none"),o._domNode.setAttribute("role","dialog"),o._domNode.setAttribute("aria-hidden","true"),o._contentDomNode=Object(a.b)(document.createElement("div")),o._contentDomNode.setAttribute("role","document"),o._domNode.appendChild(o._contentDomNode),o._isVisible=!1,o._register(o._editor.onDidLayoutChange((function(){o._isVisible&&o._layout()}))),o._register(s.o(o._contentDomNode.domNode,"keydown",(function(e){if(o._isVisible&&(e.equals(2083)&&(Object(u.a)(O.a.emergencyConfOn),o._editor.updateOptions({accessibilitySupport:"on"}),s.t(o._contentDomNode.domNode),o._buildContent(),o._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(u.a)(O.a.openingDocs);var t=o._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),o._openerService.open(f.a.parse(t)),e.preventDefault(),e.stopPropagation()}}))),o.onblur(o._contentDomNode.domNode,(function(){o.hide()})),o._editor.addOverlayWidget(o),o}var P,A=(x(R,P=g.b),R.prototype.run=function(e,t){var n=L.get(t);n&&n.show()},R);function R(){return P.call(this,{id:"editor.action.showAccessibilityHelp",label:O.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:m.a.focus,primary:r.i?2107:571,weight:100}})||this}Object(g.h)(L.ID,L),Object(g.f)(A);var j=g.c.bindToContribution(L.get);Object(g.g)(new j({id:"closeAccessibilityHelp",precondition:N,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:m.a.focus,primary:9,secondary:[1033]}})),Object(S.e)((function(e,t){var n=e.getColor(C.Q);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(C.S);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+i+"; }");var o=e.getColor(C.hc);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(C.e);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return N})),n(1320);var i,o,r=n(445),s=n(453),a=n(439),l=n(449),u=n(450),c=n(440),d=n(466),h=n(469),p=n(599),f=n(495),g=n(572),m=n(461),v=n(451),y=n(755),b=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=Object(m.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},r.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),w=(b(C,o=l.b),C.prototype.run=function(e,t){var n=N.get(t);n&&n.jumpToBracket()},C);function C(){return o.call(this,{id:"editor.action.jumpToBracket",label:r.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:h.a.editorTextFocus,primary:3160,weight:100}})||this}var S,O=(b(x,S=l.b),x.prototype.run=function(e,t,n){var i=N.get(t);if(i){var o=!0;n&&!1===n.selectBrackets&&(o=!1),i.selectToBracket(o)}},x);function x(){return S.call(this,{id:"editor.action.selectToBracket",label:r.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}var k,E=function(e,t,n){this.position=e,this.brackets=t,this.options=n},N=(b(L,k=a.a),L.get=function(e){return e.getContribution(L.ID)},L.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map((function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findEnclosingBrackets(n);if(r)o=r[0].getStartPosition();else{var s=e.findNextBracket(n);s&&s.range&&(o=s.range.getStartPosition())}}return o?new d.a(o.lineNumber,o.column,o.lineNumber,o.column):new d.a(n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}},L.prototype.selectToBracket=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(i){var o=i.getStartPosition(),r=t.matchBracket(o);if(!r&&!(r=t.findEnclosingBrackets(o))){var s=t.findNextBracket(o);s&&s.range&&(r=t.matchBracket(s.range.getStartPosition()))}var a=null,l=null;if(r){r.sort(c.a.compareRangesUsingStarts);var u=r[0],h=r[1];a=e?u.getStartPosition():u.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition()}a&&l&&n.push(new d.a(a.lineNumber,a.column,l.lineNumber,l.column))})),0<n.length&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}},L.prototype._updateBrackets=function(){if("never"!==this._matchBrackets){this._recomputeBrackets();for(var e=[],t=0,n=0,i=this._lastBracketsData;n<i.length;n++){var o=i[n],r=o.brackets;r&&(e[t++]={range:r[0],options:o.options},e[t++]={range:r[1],options:o.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},L.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(100<e.length)return this._lastBracketsData=[],void(this._lastVersionId=0);var t=this._editor.getModel(),n=t.getVersionId(),i=[];this._lastVersionId===n&&(i=this._lastBracketsData);for(var o=[],r=0,s=0,a=e.length;s<a;s++){var l=e[s];l.isEmpty()&&(o[r++]=l.getStartPosition())}1<o.length&&o.sort(u.a.compare);var c=[],d=0,h=0,p=i.length;for(s=0,a=o.length;s<a;s++){for(var f=o[s];h<p&&i[h].position.isBefore(f);)h++;if(h<p&&i[h].position.equals(f))c[d++]=i[h];else{var g=t.matchBracket(f),m=L._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;g||"always"!==this._matchBrackets||(g=t.findEnclosingBrackets(f,20),m=L._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),c[d++]=new E(f,g,m)}}this._lastBracketsData=c,this._lastVersionId=n},L.ID="editor.contrib.bracketMatchingController",L._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(v.f)(_),position:p.d.Center}}),L._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match"}),L);function L(e){var t=k.call(this)||this;return t._editor=e,t._lastBracketsData=[],t._lastVersionId=0,t._decorations=[],t._updateBracketsSoon=t._register(new s.d((function(){return t._updateBrackets()}),50)),t._matchBrackets=t._editor.getOption(53),t._updateBracketsSoon.schedule(),t._register(e.onDidChangeCursorPosition((function(e){"never"!==t._matchBrackets&&t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelContent((function(e){t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModel((function(e){t._lastBracketsData=[],t._decorations=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelLanguageConfiguration((function(e){t._lastBracketsData=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeConfiguration((function(e){e.hasChanged(53)&&(t._matchBrackets=t._editor.getOption(53),t._decorations=t._editor.deltaDecorations(t._decorations,[]),t._lastBracketsData=[],t._lastVersionId=0,t._updateBracketsSoon.schedule())}))),t}Object(l.h)(N.ID,N),Object(l.f)(O),Object(l.f)(w),Object(v.e)((function(e,t){var n=e.getColor(g.c);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(g.d);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }")})),y.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:r.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},function(e,t,n){"use strict";n.r(t),n(1322);var i,o,r=n(445),s=n(478),a=n(452),l=n(1077),u=n(449),c=n(504),d=n(469),h=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p="9_cutcopypaste",f=a.f||document.queryCommandSupported("cut"),g=a.f||document.queryCommandSupported("copy"),m=g&&!s.f,v=a.f||!s.d&&document.queryCommandSupported("paste"),y=(h(b,o=u.b),b.prototype.runCommand=function(e,t){var n=e.get(c.a).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},b.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},b);function b(e,t){var n=o.call(this,t)||this;return n.browserCommand=e,n}var _,w=(h(C,_=y),C.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||_.prototype.run.call(this,e,t))},C);function C(){var e={kbExpr:d.a.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return a.f||(e=void 0),_.call(this,"cut",{id:"editor.action.clipboardCutAction",label:r.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:1},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this}var S,O=(h(x,S=y),x.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||S.prototype.run.call(this,e,t))},x);function x(){var e={kbExpr:d.a.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return a.f||(e=void 0),S.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:r.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:e,contextMenuOpts:{group:p,order:2},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this}var k,E=(h(N,k=y),N);function N(){var e={kbExpr:d.a.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return a.f||(e=void 0),k.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:r.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:3},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this}var L,D=(h(M,L=y),M.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||(l.a.forceCopyWithSyntaxHighlighting=!0,L.prototype.run.call(this,e,t),l.a.forceCopyWithSyntaxHighlighting=!1))},M);function M(){return L.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:r.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.a.textInputFocus,primary:0,weight:100}})||this}f&&Object(u.f)(w),g&&Object(u.f)(O),v&&Object(u.f)(E),m&&Object(u.f)(D)},function(e,t,n){"use strict";n.r(t);var i=n(449),o=n(1116);Object(i.h)(o.f.ID,o.f),Object(i.f)(o.e),Object(i.f)(o.g),Object(i.f)(o.h),Object(i.f)(o.d),Object(i.f)(o.a),Object(i.f)(o.c),Object(i.g)(new o.b)},function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoRedoController",(function(){return p})),n.d(t,"CursorUndo",(function(){return m})),n.d(t,"CursorRedo",(function(){return b}));var i,o=n(445),r=n(439),s=n(449),a=n(469),l=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=(c.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0},c);function c(e){this.selections=e}var d,h=function(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n},p=(l(f,d=r.a),f.get=function(e){return e.getContribution(f.ID)},f.prototype.cursorUndo=function(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new h(new u(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))},f.prototype.cursorRedo=function(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new h(new u(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))},f.prototype._applyState=function(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1},f.ID="editor.contrib.cursorUndoRedoController",f);function f(e){var t=d.call(this)||this;return t._editor=e,t._isCursorUndoRedo=!1,t._undoStack=[],t._redoStack=[],t._register(e.onDidChangeModel((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeModelContent((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeCursorSelection((function(n){if(!t._isCursorUndoRedo&&n.oldSelections&&n.oldModelVersionId===n.modelVersionId){var i=new u(n.oldSelections);0<t._undoStack.length&&t._undoStack[t._undoStack.length-1].cursorState.equals(i)||(t._undoStack.push(new h(i,e.getScrollTop(),e.getScrollLeft())),t._redoStack=[],50<t._undoStack.length&&t._undoStack.shift())}}))),t}var g,m=(l(v,g=s.b),v.prototype.run=function(e,t,n){p.get(t).cursorUndo()},v);function v(){return g.call(this,{id:"cursorUndo",label:o.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:a.a.textInputFocus,primary:2099,weight:100}})||this}var y,b=(l(_,y=s.b),_.prototype.run=function(e,t,n){p.get(t).cursorRedo()},_);function _(){return y.call(this,{id:"cursorRedo",label:o.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}Object(s.h)(p.ID,p),Object(s.f)(m),Object(s.f)(b)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(449),a=n(883),l=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=(l(c,o=s.b),c.prototype.run=function(e,t){a.a.setZoomLevel(a.a.getZoomLevel()+1)},c);function c(){return o.call(this,{id:"editor.action.fontZoomIn",label:r.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}var d,h=(l(p,d=s.b),p.prototype.run=function(e,t){a.a.setZoomLevel(a.a.getZoomLevel()-1)},p);function p(){return d.call(this,{id:"editor.action.fontZoomOut",label:r.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}var f,g=(l(m,f=s.b),m.prototype.run=function(e,t){a.a.setZoomLevel(0)},m);function m(){return f.call(this,{id:"editor.action.fontZoomReset",label:r.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}Object(s.f)(u),Object(s.f)(h),Object(s.f)(g)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",(function(){return g})),n.d(t,"GotoLineAction",(function(){return y})),n(1354);var i,o,r=n(444),s=n(975),a=n(892),l=n(449),u=n(450),c=n(440),d=n(469),h=n(968),p=n(754),f=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=(f(m,o=s.a),m.prototype.parseInput=function(e){var t,n,i=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===i.length?new u.a(-1,-1):1===i.length?new u.a(i[0],1):new u.a(i[0],i[1]),Object(a.a)(this.editor))n=this.editor.getModel();else{var o=this.editor.getModel();n=o?o.modified:null}var s=!!n&&n.validatePosition(t).equals(t);return{position:t,isValid:s,label:s?t.column&&1<t.column?r.r(p.b.gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):r.r(p.b.gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?r.r(p.b.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):r.r(p.b.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0)}},m.prototype.getLabel=function(){return this.parseResult.label},m.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return r.r(p.b.gotoLineAriaLabel,t,this.parseResult.label)},m.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},m.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},m.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},m.prototype.toSelection=function(){return new c.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},m);function m(e,t,n){var i=o.call(this)||this;return i.editor=t,i.decorator=n,i.parseResult=i.parseInput(e),i}var v,y=(f(b,v=h.a),b.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new s.c([new g(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:0<e.length}}})},b);function b(){return v.call(this,p.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:p.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:2085,mac:{primary:293},weight:100}})||this}Object(l.f)(y)},function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return c})),n(1369);var i,o,r=n(478),s=n(443),a=n(439),l=n(449),u=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=(u(d,o=a.a),d.prototype.update=function(){var e=!this.editor.getOption(68);!this.widget&&e?this.widget=new p(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},d.prototype.dispose=function(){o.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},d.ID="editor.contrib.iPadShowKeyboard",d);function d(e){var t=o.call(this)||this;return t.editor=e,t.widget=null,r.j&&(t._register(e.onDidChangeConfiguration((function(){return t.update()}))),t.update()),t}var h,p=(u(f,h=a.a),f.prototype.dispose=function(){this.editor.removeOverlayWidget(this),h.prototype.dispose.call(this)},f.prototype.getId=function(){return f.ID},f.prototype.getDomNode=function(){return this._domNode},f.prototype.getPosition=function(){return{preference:1}},f.ID="editor.contrib.ShowKeyboardWidget",f);function f(e){var t=h.call(this)||this;return t.editor=e,t._domNode=document.createElement("textarea"),t._domNode.className="iPadShowKeyboard",t._register(s.j(t._domNode,"touchstart",(function(e){t.editor.focus()}))),t._register(s.j(t._domNode,"focus",(function(e){t.editor.focus()}))),t.editor.addOverlayWidget(t),t}Object(l.h)(c.ID,c)},function(e,t,n){"use strict";n.r(t),n(1370);var i,o,r=n(490),s=n(439),a=n(444),l=n(449),u=n(454),c=n(756),d=n(778),h=n(827),p=n(461),f=n(451),g=n(754),m=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t){return function(n,i){t(n,i,e)}},y=(m(b,o=s.a),b.get=function(e){return e.getContribution(b.ID)},b.prototype.dispose=function(){this.stop(),o.prototype.dispose.call(this)},b.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new O(this._editor,this._modeService))},b.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},b.ID="editor.contrib.inspectTokens",b=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([v(1,h.a),v(2,d.a)],b));function b(e,t,n){var i=o.call(this)||this;return i._editor=e,i._modeService=n,i._widget=null,i._register(i._editor.onDidChangeModel((function(e){return i.stop()}))),i._register(i._editor.onDidChangeModelLanguage((function(e){return i.stop()}))),i._register(u.B.onDidChange((function(e){return i.stop()}))),i}var _,w=(m(C,_=l.b),C.prototype.run=function(e,t){var n=y.get(t);n&&n.launch()},C);function C(){return _.call(this,{id:"editor.action.inspectTokens",label:g.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}var S,O=(m(x,S=s.a),x.prototype.dispose=function(){this._editor.removeContentWidget(this),S.prototype.dispose.call(this)},x.prototype.getId=function(){return x._ID},x.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;0<=i;i--){var o=t.tokens1[i];if(e.column-1>=o.offset){n=i;break}}var s=0;for(i=t.tokens2.length>>>1;0<=i;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}var l="",u=this._model.getLineContent(e.lineNumber),c="";if(n<t.tokens1.length){var d=t.tokens1[n].offset,h=n+1<t.tokens1.length?t.tokens1[n+1].offset:u.length;c=u.substring(d,h)}l+='<h2 class="tm-token">'+function(e){for(var t="",n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);switch(o){case 9:t+="→";break;case 32:t+="·";break;case 60:t+="<";break;case 62:t+=">";break;case 38:t+="&";break;default:t+=String.fromCharCode(o)}}return t}(c)+'<span class="tm-token-length">('+c.length+" "+(1===c.length?"char":"chars")+")</span></h2>",l+='<hr class="tokens-inspect-separator" style="clear:both"/>';var p=this._decodeMetadata(t.tokens2[1+(s<<1)]);l+='<table class="tm-metadata-table"><tbody>',l+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(a.o)(p.languageIdentifier.language)+"</td>",l+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(p.tokenType)+"</td>",l+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(p.fontStyle)+"</td>",l+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.foreground)+"</td>",l+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.background)+"</td>",l+="</tbody></table>",l+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(l+='<span class="tm-token-type">'+Object(a.o)(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)},x.prototype._decodeMetadata=function(e){var t=u.B.getColorMap(),n=u.A.getLanguageId(e),i=u.A.getTokenType(e),o=u.A.getFontStyle(e),r=u.A.getForeground(e),s=u.A.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},x.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},x.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},x.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},x.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState;return t},x.prototype.getDomNode=function(){return this._domNode},x.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},x._ID="editor.contrib.inspectTokensWidget",x);function x(e,t){var n,i=S.call(this)||this;return i.allowEditorOverflow=!0,i._editor=e,i._modeService=t,i._model=i._editor.getModel(),i._domNode=document.createElement("div"),i._domNode.className="tokens-inspect-widget",i._tokenizationSupport=(n=i._model.getLanguageIdentifier(),u.B.get(n.language)||{getInitialState:function(){return c.c},tokenize:function(e,t,i){return Object(c.d)(n.language,e,t,i)},tokenize2:function(e,t,i){return Object(c.e)(n.id,e,t,i)}}),i._compute(i._editor.getPosition()),i._register(i._editor.onDidChangeCursorPosition((function(e){return i._compute(i._editor.getPosition())}))),i._editor.addContentWidget(i),i}Object(l.h)(y.ID,y),Object(l.f)(w),Object(f.e)((function(e,t){var n=e.getColor(p.B);if(n){var i=e.type===f.b?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+n+"; }")}var o=e.getColor(p.A);o&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+o+"; }");var r=e.getColor(p.C);r&&t.addRule(".monaco-editor .tokens-inspect-widget { color: "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",(function(){return C})),n.d(t,"InsertCursorBelow",(function(){return x})),n.d(t,"MultiCursorSessionResult",(function(){return R})),n.d(t,"MultiCursorSession",(function(){return j})),n.d(t,"MultiCursorSelectionController",(function(){return W})),n.d(t,"MultiCursorSelectionControllerAction",(function(){return H})),n.d(t,"AddSelectionToNextFindMatchAction",(function(){return K})),n.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return Z})),n.d(t,"MoveSelectionToNextFindMatchAction",(function(){return J})),n.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return te})),n.d(t,"SelectHighlightsAction",(function(){return oe})),n.d(t,"CompatChangeAll",(function(){return ae})),n.d(t,"SelectionHighlighter",(function(){return he}));var i,o,r=n(445),s=n(453),a=n(548),l=n(439),u=n(449),c=n(1084),d=n(440),h=n(466),p=n(469),f=n(599),g=n(495),m=n(454),v=n(1051),y=n(461),b=n(451),_=n(456),w=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=(w(S,o=u.b),S.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,c.b.addCursorUp(r,o.getAll(),i)),o.reveal(n.source,!0,1,0))}},S);function S(){return o.call(this,{id:"editor.action.insertCursorAbove",label:r.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}var O,x=(w(k,O=u.b),k.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,c.b.addCursorDown(r,o.getAll(),i)),o.reveal(n.source,!0,2,0))}},k);function k(){return O.call(this,{id:"editor.action.insertCursorBelow",label:r.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}var E,N=(w(L,E=u.b),L.prototype.getCursorsForSelection=function(e,t,n){if(!e.isEmpty()){for(var i=e.startLineNumber;i<e.endLineNumber;i++){var o=t.getLineMaxColumn(i);n.push(new h.a(i,o,i,o))}1<e.endColumn&&n.push(new h.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},L.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),o=t.getSelections(),r=[];o.forEach((function(e){return n.getCursorsForSelection(e,i,r)})),0<r.length&&t.setSelections(r)}},L);function L(){return E.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:r.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}var D,M=(w(T,D=u.b),T.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),o=[],r=n[0].startLineNumber;r<=i;r++)o.push(new h.a(r,n[0].startColumn,r,n[0].endColumn));0<o.length&&t.setSelections(o)}},T);function T(){return D.call(this,{id:"editor.action.addCursorsToBottom",label:r.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}var I,P=(w(A,I=u.b),A.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],o=n[0].startLineNumber;1<=o;o--)i.push(new h.a(o,n[0].startColumn,o,n[0].endColumn));0<i.length&&t.setSelections(i)}},A);function A(){return I.call(this,{id:"editor.action.addCursorsToTop",label:r.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}var R=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},j=(F.create=function(e,t){if(!e.hasModel())return null;var n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&0<n.searchString.length)return new F(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);var i,o,r=!1,s=e.getSelections();o=1===s.length&&s[0].isEmpty()?i=r=!0:(i=n.wholeWord,n.matchCase);var a,l=e.getSelection(),u=null;if(l.isEmpty()){var c=e.getModel().getWordAtPosition(l.getStartPosition());if(!c)return null;a=c.word,u=new h.a(l.startLineNumber,c.startColumn,l.startLineNumber,c.endColumn)}else a=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new F(e,t,r,a,i,o,u)},F.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.concat(e),e,0)},F.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)},F.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},F.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.concat(e),e,0)},F.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)},F.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},F.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},F);function F(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}var B,W=(w(V,B=l.a),V.get=function(e){return e.getContribution(V.ID)},V.prototype.dispose=function(){this._endSession(),B.prototype.dispose.call(this)},V.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=j.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((function(e){t._ignoreSelectionChange||t._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((function(){t._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((function(e){(e.matchCase||e.wholeWord)&&t._endSession()})))}},V.prototype._endSession=function(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null},V.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},V.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new h.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},V.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},V.prototype.getSession=function(e){return this._session},V.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(1<t.length){var n=e.getState().matchCase;if(!fe(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),o=[],r=0,s=t.length;r<s;r++)o[r]=this._expandEmptyToWord(i,t[r]);return void this._editor.setSelections(o)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}},V.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},V.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},V.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},V.prototype.selectAll=function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&0<n.searchString.length&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){for(var i=n.searchScope,o=[],r=0;r<t.length;r++)t[r].range.endLineNumber<=i.endLineNumber&&t[r].range.startLineNumber>=i.startLineNumber&&o.push(t[r]);t=o}if(0<t.length){for(var s=this._editor.getSelection(),a=(r=0,t.length);r<a;r++){var l=t[r];if(l.range.intersectRanges(s)){t[r]=t[0],t[0]=l;break}}this._setSelections(t.map((function(e){return new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})))}}},V.ID="editor.contrib.multiCursorController",V);function V(e){var t=B.call(this)||this;return t._sessionDispose=t._register(new l.b),t._editor=e,t._ignoreSelectionChange=!1,t._session=null,t}var z,H=(w(q,z=u.b),q.prototype.run=function(e,t){var n=W.get(t);if(n){var i=v.CommonFindController.get(t);i&&this._run(n,i)}},q);function q(){return null!==z&&z.apply(this,arguments)||this}var U,K=(w(G,U=H),G.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t)},G);function G(){return U.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:r.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:2082,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}var Y,Z=(w(X,Y=H),X.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t)},X);function X(){return Y.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:r.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}var $,J=(w(Q,$=H),Q.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t)},Q);function Q(){return $.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:r.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:Object(a.a)(2089,2082),weight:100}})||this}var ee,te=(w(ne,ee=H),ne.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t)},ne);function ne(){return ee.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:r.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}var ie,oe=(w(re,ie=H),re.prototype._run=function(e,t){e.selectAll(t)},re);function re(){return ie.call(this,{id:"editor.action.selectHighlights",label:r.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:3114,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}var se,ae=(w(le,se=H),le.prototype._run=function(e,t){e.selectAll(t)},le);function le(){return se.call(this,{id:"editor.action.changeAll",label:r.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:_.a.and(p.a.writable,p.a.editorTextFocus),kbOpts:{kbExpr:p.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}var ue=(ce.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators},ce);function ce(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n}var de,he=(w(pe,de=l.a),pe.prototype._update=function(){this._setState(pe._createState(this._isEnabled,this.editor))},pe._createState=function(e,t){if(!e)return null;if(!t.hasModel())return null;var n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;var i=W.get(t);if(!i)return null;var o=v.CommonFindController.get(t);if(!o)return null;var r=i.getSession(o);if(!r){var s=t.getSelections();if(1<s.length){var a=o.getState().matchCase;if(!fe(t.getModel(),s,a))return null}r=j.create(t,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(200<r.searchText.length)return null;var l=o.getState(),u=l.matchCase;if(l.isRevealed){var c=l.searchString;u||(c=c.toLowerCase());var d=r.searchText;if(u||(d=d.toLowerCase()),c===d&&r.matchCase===l.matchCase&&r.wholeWord===l.wholeWord&&!l.isRegex)return null}return new ue(r.searchText,r.matchCase,r.wholeWord?t.getOption(96):null)},pe.prototype._setState=function(e){if(ue.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var t=this.editor.getModel();if(!t.isTooLargeForTokenization()){var n=m.i.has(t),i=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map((function(e){return e.range}));i.sort(d.a.compareRangesUsingStarts);var o=this.editor.getSelections();o.sort(d.a.compareRangesUsingStarts);for(var r=[],s=0,a=0,l=i.length,u=o.length;s<l;){var c=i[s];if(u<=a)r.push(c),s++;else{var h=d.a.compareRangesUsingStarts(c,o[a]);h<0?(!o[a].isEmpty()&&d.a.areIntersecting(c,o[a])||r.push(c),s++):(0<h||s++,a++)}}var p=r.map((function(e){return{range:e,options:n?pe._SELECTION_HIGHLIGHT:pe._SELECTION_HIGHLIGHT_OVERVIEW}}));this.decorations=this.editor.deltaDecorations(this.decorations,p)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},pe.prototype.dispose=function(){this._setState(null),de.prototype.dispose.call(this)},pe.ID="editor.contrib.selectionHighlighter",pe._SELECTION_HIGHLIGHT_OVERVIEW=g.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(b.f)(y.Mb),position:f.d.Center}}),pe._SELECTION_HIGHLIGHT=g.a.register({stickiness:1,className:"selectionHighlight"}),pe);function pe(e){var t=de.call(this)||this;return t.editor=e,t._isEnabled=e.getOption(82),t.decorations=[],t.updateSoon=t._register(new s.d((function(){return t._update()}),300)),t.state=null,t._register(e.onDidChangeConfiguration((function(n){t._isEnabled=e.getOption(82)}))),t._register(e.onDidChangeCursorSelection((function(e){t._isEnabled&&(e.selection.isEmpty()?3===e.reason?(t.state&&t._setState(null),t.updateSoon.schedule()):t._setState(null):t._update())}))),t._register(e.onDidChangeModel((function(e){t._setState(null)}))),t._register(v.CommonFindController.get(e).getState().onFindReplaceStateChange((function(e){t._update()}))),t}function fe(e,t,n){for(var i=ge(e,t[0],!n),o=1,r=t.length;o<r;o++){var s=t[o];if(s.isEmpty())return!1;if(i!==ge(e,s,!n))return!1}return!0}function ge(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i}Object(u.h)(W.ID,W),Object(u.h)(he.ID,he),Object(u.f)(C),Object(u.f)(x),Object(u.f)(N),Object(u.f)(K),Object(u.f)(Z),Object(u.f)(J),Object(u.f)(te),Object(u.f)(oe),Object(u.f)(ae),Object(u.f)(M),Object(u.f)(P)},function(e,t,n){"use strict";n.r(t),n.d(t,"EditorActionCommandEntry",(function(){return m})),n.d(t,"QuickCommandAction",(function(){return b}));var i,o,r=n(444),s=n(478),a=n(446),l=n(760),u=n(975),c=n(449),d=n(469),h=n(968),p=n(531),f=n(754),g=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=(g(v,o=u.b),v.prototype.getLabel=function(){return this.action.label},v.prototype.getAriaLabel=function(){return this.keyAriaLabel?r.r(f.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):r.r(f.d.ariaLabelEntry,this.getLabel())},v.prototype.getGroupLabel=function(){return this.key},v.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{(n.action.run()||Promise.resolve()).then(void 0,a.e)}catch(e){Object(a.e)(e)}}),50),!0)},v);function v(e,t,n,i,r){var s=o.call(this)||this;return s.key=e,s.keyAriaLabel=t,s.setHighlights(n),s.action=i,s.editor=r,s}var y,b=(g(_,y=h.a),_.prototype.run=function(e,t){var n=this,i=e.get(p.a);this._show(this.getController(t),{getModel:function(e){return new u.c(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},_.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),i=(t.getLabel()||"").toLowerCase();return n.localeCompare(i)},_.prototype._editorActionsToEntries=function(e,t,n){for(var i=[],o=0,r=t.getSupportedActions();o<r.length;o++){var s=r[o],a=e.lookupKeybinding(s.id);if(s.label){var u=Object(l.f)(n,s.label);u&&i.push(new m(a&&a.getLabel()||"",a&&a.getAriaLabel()||"",u,s,t))}}return i.sort(this._sort)},_);function _(){return y.call(this,f.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:f.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:s.i?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}Object(c.f)(b)},function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",(function(){return f}));var i,o,r=n(449),s=n(504),a=n(1117),l=n(573),u=n(456),c=n(448),d=n(532),h=n(775),p=function(e,t){return function(n,i){t(n,i,e)}},f=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(g,o=a.a),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([p(1,u.c),p(2,s.a),p(3,d.a),p(4,c.a),p(5,h.a),p(6,l.a)],g));function g(e,t,n,i,r,s,a){return o.call(this,!0,e,t,n,i,r,s,a)||this}Object(r.h)(a.a.ID,f)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(449),s=n(827),a=n(754),l=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(u,o=r.b),u.prototype.run=function(e,t){var n=e.get(s.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},u);function u(){var e=o.call(this,{id:"editor.action.toggleHighContrast",label:a.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return e._originalThemeName=null,e}Object(r.f)(l)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(449),a=n(794),l=n(440),u=n(469),c=n(953),d=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(h,o=s.b),h.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=0,r=t.getSelections();o<r.length;o++){var s=r[o];if(s.isEmpty()){var u=s.startLineNumber,d=s.startColumn,h=n.getLineMaxColumn(u);if(1!==u||1!==d&&(2!==d||2!==h)){var p=d===h?s.getPosition():c.a.rightPosition(n,s.getPosition().lineNumber,s.getPosition().column),f=c.a.leftPosition(n,p.lineNumber,p.column),g=c.a.leftPosition(n,f.lineNumber,f.column),m=n.getValueInRange(l.a.fromPositions(g,f)),v=n.getValueInRange(l.a.fromPositions(f,p)),y=l.a.fromPositions(g,p);i.push(new a.a(y,v+m))}}}0<i.length&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}},h);function h(){return o.call(this,{id:"editor.action.transposeLetters",label:r.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:u.a.writable,kbOpts:{kbExpr:u.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})||this}Object(s.f)(d)},function(e,t,n){"use strict";n.r(t),n.d(t,"getOccurrencesAtPosition",(function(){return E}));var i,o=n(445),r=n(459),s=n(453),a=n(484),l=n(446),u=n(439),c=n(449),d=n(440),h=n(469),p=n(599),f=n(495),g=n(454),m=n(456),v=n(461),y=n(451),b=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},o.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),w=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},o.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},o.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),S=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},o.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),O=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},o.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),x=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},o.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),k=new m.d("hasWordHighlights",!1);function E(e,t,n){var i=g.i.ordered(e);return Object(s.h)(i.map((function(i){return function(){return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,l.f)}})),r.q)}var N=(L.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new d.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null},L.prototype.isValid=function(e,t,n){for(var i=t.startLineNumber,o=t.startColumn,r=t.endColumn,s=this._getCurrentWordRange(e,t),a=Boolean(this._wordRange&&this._wordRange.equalsRange(s)),l=0,u=n.length;!a&&l<u;l++){var c=e.getDecorationRange(n[l]);c&&c.startLineNumber===i&&c.startColumn<=o&&c.endColumn>=r&&(a=!0)}return a},L.prototype.cancel=function(){this.result.cancel()},L);function L(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(s.f)((function(o){return i._compute(e,t,n,o)}))}var D,M=(b(T,D=N),T.prototype._compute=function(e,t,n,i){return E(e,t.getPosition(),i).then((function(e){return e||[]}))},T);function T(){return null!==D&&D.apply(this,arguments)||this}var I,P=(b(A,I=N),A.prototype._compute=function(e,t,n,i){return Object(s.l)(250,i).then((function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());return i?e.findMatches(i.word,!0,!1,!0,n,!1).map((function(e){return{range:e.range,kind:g.h.Text}})):[]}))},A.prototype.isValid=function(e,t,n){var i=t.isEmpty();return this._selectionIsEmpty===i&&I.prototype.isValid.call(this,e,t,n)},A);function A(e,t,n){var i=I.call(this,e,t,n)||this;return i._selectionIsEmpty=t.isEmpty(),i}Object(c.k)("_executeDocumentHighlights",(function(e,t){return E(e,t,a.a.None)}));var R=(j.prototype.hasDecorations=function(){return 0<this._decorationIds.length},j.prototype.restore=function(){this.occurrencesHighlight&&this._run()},j.prototype._getSortedHighlights=function(){var e=this;return r.d(this._decorationIds.map((function(t){return e.model.getDecorationRange(t)})).sort(d.a.compareRangesUsingStarts))},j.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(t,(function(t){return t.containsPosition(e.editor.getPosition())}))+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},j.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(t,(function(t){return t.containsPosition(e.editor.getPosition())}))-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},j.prototype._removeDecorations=function(){0<this._decorationIds.length&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},j.prototype._stopAll=function(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},j.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()},j.prototype._run=function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn<o)this._stopAll();else{var s,a,u,c=this.workerRequest&&this.workerRequest.isValid(this.model,t,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),c)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var d=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(s=this.model,a=this.editor.getSelection(),u=this.editor.getOption(96),new(g.i.has(s)?M:P)(s,a,u)),this.workerRequest.result.then((function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}),l.e)}}}else this._stopAll()},j.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;n<=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((function(){e.renderDecorations()}),n-t)},j.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var e=[],t=0,n=this.workerRequestValue.length;t<n;t++){var i=this.workerRequestValue[t];e.push({range:i.range,options:j._getDecorationOptions(i.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())},j._getDecorationOptions=function(e){return e===g.h.Write?this._WRITE_OPTIONS:e===g.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},j.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},j._WRITE_OPTIONS=f.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(y.f)(x),position:p.d.Center}}),j._TEXT_OPTIONS=f.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(y.f)(v.Mb),position:p.d.Center}}),j._REGULAR_OPTIONS=f.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(y.f)(O),position:p.d.Center}}),j);function j(e,t){var n=this;this.toUnhook=new u.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=k.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)}))),this.toUnhook.add(e.onDidChangeModelContent((function(e){n._stopAll()}))),this.toUnhook.add(e.onDidChangeConfiguration((function(e){var t=n.editor.getOption(61);n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll())}))),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}var F,B=(b(W,F=u.a),W.get=function(e){return e.getContribution(W.ID)},W.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations())},W.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},W.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},W.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore()},W.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),F.prototype.dispose.call(this)},W.ID="editor.contrib.wordHighlighter",W=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,m.c)],W));function W(e,t){var n=F.call(this)||this;function i(){e.hasModel()&&(n.wordHighligher=new R(e,t))}return n.wordHighligher=null,n._register(e.onDidChangeModel((function(e){n.wordHighligher&&(n.wordHighligher.dispose(),n.wordHighligher=null),i()}))),i(),n}var V,z=(b(H,V=c.b),H.prototype.run=function(e,t){var n=B.get(t);n&&(this._isNext?n.moveNext():n.moveBack())},H);function H(e,t){var n=V.call(this,t)||this;return n._isNext=e,n}var q,U=(b(K,q=z),K);function K(){return q.call(this,!0,{id:"editor.action.wordHighlight.next",label:o.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:k,kbOpts:{kbExpr:h.a.editorTextFocus,primary:65,weight:100}})||this}var G,Y=(b(Z,G=z),Z);function Z(){return G.call(this,!1,{id:"editor.action.wordHighlight.prev",label:o.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:k,kbOpts:{kbExpr:h.a.editorTextFocus,primary:1089,weight:100}})||this}var X,$=(b(J,X=c.b),J.prototype.run=function(e,t,n){var i=B.get(t);i&&i.restoreViewState(!0)},J);function J(){return X.call(this,{id:"editor.action.wordHighlight.trigger",label:o.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:k.toNegated(),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100}})||this}Object(c.h)(B.ID,B),Object(c.f)(U),Object(c.f)(Y),Object(c.f)($),Object(y.e)((function(e,t){var n=e.getColor(v.M);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var i=e.getColor(_);i&&t.addRule(".monaco-editor .wordHighlight { background-color: "+i+"; }");var o=e.getColor(w);o&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+o+"; }");var r=e.getColor(v.N);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(C);s&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }");var a=e.getColor(S);a&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return h})),n.d(t,"DeleteWordPartRight",(function(){return g})),n.d(t,"WordPartLeftCommand",(function(){return y})),n.d(t,"CursorWordPartLeft",(function(){return w})),n.d(t,"CursorWordPartLeftSelect",(function(){return O})),n.d(t,"WordPartRightCommand",(function(){return E})),n.d(t,"CursorWordPartRight",(function(){return D})),n.d(t,"CursorWordPartRightSelect",(function(){return I}));var i,o,r=n(449),s=n(954),a=n(440),l=n(469),u=n(1006),c=n(489),d=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=(d(p,o=u.DeleteWordCommand),p.prototype._delete=function(e,t,n,i,o){return s.b.deleteWordPartLeft(e,t,n,i)||new a.a(1,1,1,1)},p);function p(){return o.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}var f,g=(d(m,f=u.DeleteWordCommand),m.prototype._delete=function(e,t,n,i,o){var r=s.b.deleteWordPartRight(e,t,n,i);if(r)return r;var l=t.getLineCount(),u=t.getLineMaxColumn(l);return new a.a(l,u,l,u)},m);function m(){return f.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}var v,y=(d(b,v=u.MoveWordCommand),b.prototype._move=function(e,t,n,i){return s.b.moveWordPartLeft(e,t,n)},b);function b(){return null!==v&&v.apply(this,arguments)||this}var _,w=(d(C,_=y),C);function C(){return _.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}c.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var S,O=(d(x,S=y),x);function x(){return S.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}c.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var k,E=(d(N,k=u.MoveWordCommand),N.prototype._move=function(e,t,n,i){return s.b.moveWordPartRight(e,t,n)},N);function N(){return null!==k&&k.apply(this,arguments)||this}var L,D=(d(M,L=E),M);function M(){return L.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}var T,I=(d(P,T=E),P);function P(){return T.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}Object(r.g)(new h),Object(r.g)(new g),Object(r.g)(new w),Object(r.g)(new O),Object(r.g)(new D),Object(r.g)(new I)},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e(236).then(n.bind(null,1544))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e(237).then(n.bind(null,1545))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e(238).then(n.bind(null,1546))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e(239).then(n.bind(null,1547))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e(240).then(n.bind(null,1548))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e(241).then(n.bind(null,1549))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e(242).then(n.bind(null,1550))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e(33).then(n.bind(null,1269))}}),Object(i.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e(33).then(n.bind(null,1269))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e(243).then(n.bind(null,1551))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e(244).then(n.bind(null,1552))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e(245).then(n.bind(null,1553))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var s={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},a={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l=new o("css",s,a),u=new o("scss",s,a),c=new o("less",s,a);function d(){return n.e(220).then(n.bind(null,1606))}monaco.languages.css={cssDefaults:l,lessDefaults:c,scssDefaults:u},monaco.languages.onLanguage("less",(function(){d().then((function(e){return e.setupMode(c)}))})),monaco.languages.onLanguage("scss",(function(){d().then((function(e){return e.setupMode(u)}))})),monaco.languages.onLanguage("css",(function(){d().then((function(e){return e.setupMode(l)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e(246).then(n.bind(null,1554))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e(247).then(n.bind(null,1555))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e(248).then(n.bind(null,1556))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e(249).then(n.bind(null,1557))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e(250).then(n.bind(null,1558))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return n.e(251).then(n.bind(null,1559))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),r.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}var s={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},a={format:s,suggest:{html5:!0}},l={format:s,suggest:{html5:!0,razor:!0}};function u(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===c,documentFormattingEdits:e===c,documentRangeFormattingEdits:e===c}}var c="html",d="handlebars",h=new o(c,{format:s,suggest:{html5:!0,angular1:!0,ionic:!0}},u(c)),p=new o(d,a,u(d)),f=new o("razor",l,u("razor"));function g(){return n.e(221).then(n.bind(null,1607))}monaco.languages.html={htmlDefaults:h,razorDefaults:f,handlebarDefaults:p},monaco.languages.onLanguage(c,(function(){g().then((function(e){return e.setupMode(h)}))})),monaco.languages.onLanguage(d,(function(){g().then((function(e){return e.setupMode(p)}))})),monaco.languages.onLanguage("razor",(function(){g().then((function(e){return e.setupMode(f)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e(252).then(n.bind(null,1560))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e(253).then(n.bind(null,1561))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(219).then(n.bind(null,1562))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var s=new o("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});monaco.languages.json={jsonDefaults:s},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",(function(){n.e(222).then(n.bind(null,1608)).then((function(e){return e.setupMode(s)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e(254).then(n.bind(null,1563))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e(255).then(n.bind(null,1564))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e(256).then(n.bind(null,1565))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e(257).then(n.bind(null,1566))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e(258).then(n.bind(null,1567))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e(259).then(n.bind(null,1568))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e(260).then(n.bind(null,1569))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e(261).then(n.bind(null,1570))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e(262).then(n.bind(null,1571))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(263).then(n.bind(null,1572))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e(264).then(n.bind(null,1573))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e(265).then(n.bind(null,1574))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e(266).then(n.bind(null,1575))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e(267).then(n.bind(null,1576))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e(268).then(n.bind(null,1577))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e(269).then(n.bind(null,1578))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e(270).then(n.bind(null,1579))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e(271).then(n.bind(null,1580))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e(272).then(n.bind(null,1581))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e(273).then(n.bind(null,1582))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e(274).then(n.bind(null,1583))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e(275).then(n.bind(null,1584))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e(276).then(n.bind(null,1585))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return n.e(277).then(n.bind(null,1586))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e(278).then(n.bind(null,1587))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e(279).then(n.bind(null,1588))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e(280).then(n.bind(null,1589))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e(281).then(n.bind(null,1590))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e(282).then(n.bind(null,1591))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e(283).then(n.bind(null,1592))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e(284).then(n.bind(null,1593))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e(285).then(n.bind(null,1594))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e(286).then(n.bind(null,1595))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e(287).then(n.bind(null,1596))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(288).then(n.bind(null,1597))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e(289).then(n.bind(null,1598))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(290).then(n.bind(null,1509))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e(291).then(n.bind(null,1599))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return n.e(292).then(n.bind(null,1600))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e(293).then(n.bind(null,1601))}})},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i,o=n(635),r=n(459),s=n(446),a=n(548),l=n(439),u=n(449),c=n(704),d=n(440),h=n(469),p=n(926),f=n(964),g=n(553),m=n(775),v=n(454),y=n(453),b=n(448),_=n(573),w=n(792),C=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e,t){return function(n,i){t(n,i,e)}},O=(x.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],o=1;o<n.length;o++){var r=n[o],s=r.score,a=r.completion;if(s[0]!==i)break;if(a.preselect)return o}return 0},x);function x(){}var k,E=(C(N,k=O),N.prototype.memorize=function(e,t,n){},N.prototype.toJSON=function(){},N.prototype.fromJSON=function(){},N);function N(){return null!==k&&k.apply(this,arguments)||this}var L,D=(C(M,L=O),M.prototype.memorize=function(e,t,n){var i=n.completion.label,o=e.getLanguageIdentifier().language+"/"+i;this._cache.set(o,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},M.prototype.select=function(e,t,n){if(0===n.length)return 0;var i=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(i))return L.prototype.select.call(this,e,t,n);for(var o=n[0].score[0],r=-1,s=-1,a=0;a<n.length&&n[a].score[0]===o;a++){var l=e.getLanguageIdentifier().language+"/"+n[a].completion.label,u=this._cache.peek(l);if(u&&u.touch>s&&u.type===n[a].completion.kind&&u.insertText===n[a].completion.insertText&&(s=u.touch,r=a),n[a].completion.preselect)return a}return-1!==r?r:0},M.prototype.toJSON=function(){var e=[];return this._cache.forEach((function(t,n){e.push([n,t])})),e},M.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.touch=0,r.type="number"==typeof r.type?r.type:Object(v.E)(r.type),this._cache.set(o,r)}this._seq=this._cache.size},M);function M(){var e=null!==L&&L.apply(this,arguments)||this;return e._cache=new g.a(300,.66),e._seq=0,e}var T,I=(C(P,T=O),P.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,o=e.getLanguageIdentifier().language+"/"+i;this._trie.set(o,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},P.prototype.select=function(e,t,n){var i=e.getWordUntilPosition(t).word;if(!i)return T.prototype.select.call(this,e,t,n);var o=e.getLanguageIdentifier().language+"/"+i,r=this._trie.get(o);if(r=r||this._trie.findSubstr(o))for(var s=0;s<n.length;s++){var a=n[s].completion,l=a.kind,u=a.insertText;if(l===r.type&&u===r.insertText)return s}return T.prototype.select.call(this,e,t,n)},P.prototype.toJSON=function(){var e=[];return this._trie.forEach((function(t,n){return e.push([n,t])})),e.sort((function(e,t){return-(e[1].touch-t[1].touch)})).forEach((function(e,t){return e[1].touch=t})),e.slice(0,200)},P.prototype.fromJSON=function(e){if(this._trie.clear(),0<e.length){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.type="number"==typeof r.type?r.type:Object(v.E)(r.type),this._trie.set(o,r)}}},P);function P(){var e=null!==T&&T.apply(this,arguments)||this;return e._trie=g.c.forStrings(),e._seq=0,e}var A,R=(C(j,A=l.a),j.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy=new("recentlyUsedByPrefix"===e?I:"recentlyUsed"===e?D:E);try{var i=t?0:1,o=this._storageService.get(this._storagePrefix+"/"+this._mode,i);o&&this._strategy.fromJSON(JSON.parse(o))}catch(e){}}},j.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},j.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},j.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},j=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([S(0,m.a),S(1,_.a)],j));function j(e,t){var n=A.call(this)||this;function i(){var e=n._configService.getValue("editor.suggestSelection"),t=n._configService.getValue("editor.suggest.shareSuggestSelections");n._update(e,t,!1)}return n._storageService=e,n._configService=t,n._storagePrefix="suggest/memories",n._persistSoon=n._register(new y.d((function(){return n._saveState()}),500)),n._register(e.onWillSaveState((function(e){e.reason===m.c.SHUTDOWN&&n._saveState()}))),n._register(n._configService.onDidChangeConfiguration((function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&i()}))),n._register(n._storageService.onDidChangeStorage((function(e){0===e.scope&&0===e.key.indexOf(n._storagePrefix)&&(document.hasFocus()||n._update(n._mode,n._shareMem,!0))}))),i(),n}var F=Object(b.c)("ISuggestMemories");Object(w.b)(F,R,!0);var B=n(445),W=n(489),V=n(456),z=n(788),H=n(900),q=(U.prototype.dispose=function(){this.reset()},U.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(l.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},U.prototype.set=function(e,t){var n=this,i=e.model,o=e.index;0!==i.items.length&&U._moveIndex(!0,i,o)!==o?(this._acceptNext=t,this._model=i,this._index=o,this._listener=this._editor.onDidChangeCursorPosition((function(){n._ignore||n.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()},U._moveIndex=function(e,t,n){for(var i=n;(i=(i+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[i].completion.additionalTextEdits;);return i},U.prototype.next=function(){this._move(!0)},U.prototype.prev=function(){this._move(!1)},U.prototype._move=function(e){if(this._model)try{this._ignore=!0,this._index=U._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},U.OtherSuggestions=new V.d("hasOtherSuggestions",!1),U=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,V.c)],U));function U(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=U.OtherSuggestions.bindTo(t)}var K=n(442),G=n(466),Y=n(760),Z=n(444),X=(Object.defineProperty($.prototype,"lineContext",{get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),$.prototype.adopt=function(e){for(var t=new Array,n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t},Object.defineProperty($.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),$.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},$.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var e=this._lineContext,t=e.leadingLineContent,n=e.characterCountDelta,i="",o="",r=1===this._refilterKind?this._items:this._filteredItems,s=[],a=!this._options.filterGraceful||2e3<r.length?Y.d:Y.e,l=0;l<r.length;l++){var u=r[l];u.container.incomplete&&this._isIncomplete.add(u.provider);var c=u.position.column-u.editStart.column,d=c+n-(u.position.column-this._column);if(i.length!==d&&(o=(i=0==d?"":t.slice(-d)).toLowerCase()),u.word=i,0==d)u.score=Y.a.Default;else{for(var h=0;h<c;){var p=i.charCodeAt(h);if(32!==p&&9!==p)break;h+=1}var f="string"==typeof u.completion.label?u.completion.label:u.completion.label.name;if(d<=h)u.score=Y.a.Default;else if("string"==typeof u.completion.filterText){if(!(g=a(i,o,h,u.completion.filterText,u.filterTextLow,0,!1)))continue;0===Object(Z.f)(u.completion.filterText,f)?u.score=g:(u.score=Object(Y.b)(i,o,h,f,u.labelLow,0),u.score[0]=g[0])}else{var g;if(!(g=a(i,o,h,f,u.labelLow,0,!1)))continue;u.score=g}}switch(u.idx=l,u.distance=this._wordDistance.distance(u.position,u.completion),s.push(u),this._stats.suggestionCount++,u.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0},$._compareCompletionItems=function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0},$._compareCompletionItemsSnippetsDown=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return $._compareCompletionItems(e,t)},$._compareCompletionItemsSnippetsUp=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return $._compareCompletionItems(e,t)},$);function $(e,t,n,i,o,r){this._snippetCompareFn=$._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=i,this._options=o,this._refilterKind=1,this._lineContext=n,"top"===r?this._snippetCompareFn=$._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=$._compareCompletionItemsSnippetsDown)}var J,Q,ee=n(484),te=n(1099),ne=(J=function(e,t){return(J=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){function n(){this.constructor=e}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=(oe.create=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,s;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(a){switch(a.label){case 0:return t.getOption(89).localityBonus&&t.hasModel()?(n=t.getModel(),i=t.getPosition(),e.canComputeWordRanges(n.uri)?[4,(new te.a).provideSelectionRanges(n,[i])]:[2,oe.None]):[2,oe.None];case 1:return(o=a.sent())&&0!==o.length&&0!==o[0].length?[4,e.computeWordRanges(n.uri,o[0][0].range)]:[2,oe.None];case 2:return s=a.sent(),[2,(ne(l,u=oe),l.prototype.distance=function(e,n){if(!s||!i.equals(t.getPosition()))return 0;if(17===n.kind)return 2<<20;var a="string"==typeof n.label?n.label:n.label.name,l=s[a];if(Object(r.p)(l))return 2<<20;for(var u=Object(r.c)(l,d.a.fromPositions(e),d.a.compareRangesUsingStarts),c=0<=u?l[u]:l[Math.max(0,~u-1)],h=o.length,p=0,f=o[0];p<f.length;p++){var g=f[p];if(!d.a.containsRange(g.range,c))break;--h}return h},new l)]}function l(){return null!==u&&u.apply(this,arguments)||this}var u}))}))},oe.None=(ne(re,Q=oe),re.prototype.distance=function(){return 0},new re),oe);function oe(){}function re(){return null!==Q&&Q.apply(this,arguments)||this}var se=(ae.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&i.endColumn===n.column&&!!isNaN(Number(i.word))},ae);function ae(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}var le=(ue.prototype.dispose=function(){Object(l.f)(this._triggerCharacterListener),Object(l.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},ue.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},ue.prototype._updateTriggerCharacters=function(){var e=this;if(this._triggerCharacterListener.clear(),!this._editor.getOption(68)&&this._editor.hasModel()&&this._editor.getOption(92)){for(var t=new Map,n=0,i=v.d.all(this._editor.getModel());n<i.length;n++)for(var o=i[n],r=0,s=o.triggerCharacters||[];r<s.length;r++){var a=s[r],l=t.get(a);l||((l=new Set).add(Object(H.c)()),t.set(a,l)),l.add(o)}var u=function(n){if(!n){var i=e._editor.getPosition();n=e._editor.getModel().getLineContent(i.lineNumber).substr(0,i.column-1)}var o="";Object(Z.A)(n.charCodeAt(n.length-1))?Object(Z.z)(n.charCodeAt(n.length-2))&&(o=n.substr(n.length-2)):o=n.charAt(n.length-1);var r=t.get(o);if(r){var s=e._completionModel?e._completionModel.adopt(r):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:o},Boolean(e._completionModel),r,s)}};this._triggerCharacterListener.add(this._editor.onDidType(u)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(u))}},Object.defineProperty(ue.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),ue.prototype.cancel=function(e){void 0===e&&(e=!1),0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))},ue.prototype.clear=function(){this._completionDisposables.clear()},ue.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&v.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},ue.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),i=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(v.d.has(n)&&0===this._state){if(!1===this._editor.getOption(66))return;if(!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&p.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&se.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getOption(66);if(!1!==i){if(!0!==i){e.tokenizeIfCheap(n.lineNumber);var o=e.getLineTokens(n.lineNumber),r=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(!(i.other&&0===r||i.comments&&1===r||i.strings&&2===r))return}t.trigger({auto:!0,shy:!1})}}}),this._quickSuggestDelay)}}},ue.prototype._refilterCompletionItems=function(){var e=this;Promise.resolve().then((function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new se(t,n,2===e._state,!1);e._onNewContext(i)}}))},ue.prototype.trigger=function(e,t,n,i){var o=this;if(void 0===t&&(t=!1),this._editor.hasModel()){var a,u=this._editor.getModel(),c=e.auto,d=new se(u,this._editor.getPosition(),c,e.shy);this.cancel(t),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:e.shy,position:this._editor.getPosition()}),this._context=d,a=e.triggerCharacter?{triggerKind:1,triggerCharacter:e.triggerCharacter}:n&&0<n.size?{triggerKind:2}:{triggerKind:0},this._requestToken=new ee.b;var h=this._editor.getOption(86),p=1;switch(h){case"top":p=0;break;case"bottom":p=2}var f=ue._createItemKindFilter(this._editor),g=ie.create(this._editorWorker,this._editor),m=Object(H.e)(u,this._editor.getPosition(),new H.a(p,f,n),a,this._requestToken.token);Promise.all([m,g]).then((function(t){var n=t[0],s=t[1];if(Object(l.f)(o._requestToken),0!==o._state&&o._editor.hasModel()){var a=o._editor.getModel();if(Object(r.q)(i)){var u=Object(H.d)(p);n=n.concat(i).sort(u)}var d=new se(a,o._editor.getPosition(),c,e.shy);o._completionModel=new X(n,o._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-o._context.column},s,o._editor.getOption(89),o._editor.getOption(86));for(var h=0,f=n;h<f.length;h++){var g=f[h];Object(l.g)(g.container)&&o._completionDisposables.add(g.container)}o._onNewContext(d)}})).catch(s.e)}},ue._createItemKindFilter=function(e){var t=new Set;"none"===e.getOption(86)&&t.add(25);var n=e.getOption(89);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(25),t},ue.prototype._onNewContext=function(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&0<this._completionModel.incomplete.size&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state,shy:!1},!0,t,n)}else{var i=this._completionModel.lineContext,o=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(se.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,(o=0<this._completionModel.items.length)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:o})}}else this.cancel()},ue);function ue(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new l.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new l.b,this._triggerQuickSuggest=new y.e,this._state=0,this._completionDisposables=new l.b,this._onDidCancel=new K.a,this._onDidTrigger=new K.a,this._onDidSuggest=new K.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new G.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((function(){n._updateTriggerCharacters(),n._updateQuickSuggest()}))),this._toDispose.add(v.d.onDidChange((function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){n._onCursorChange(e)})));var i=!1;this._toDispose.add(this._editor.onDidCompositionStart((function(){i=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((function(){i=!1,n._refilterCompletionItems()}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){i||n._refilterCompletionItems()}))),this._updateTriggerCharacters(),this._updateQuickSuggest()}n(1380),n(1381),n(1097),n(1098);var ce,de,he=n(443),pe=n(972),fe=n(688),ge=n(531),me=n(821),ve=n(826),ye=n(451),be=n(461),_e=n(915),we=n(778),Ce=n(636),Se=n(960),Oe=n(596),xe=n(554),ke=n(901);function Ee(e,t,n,i){var o,r=i===ce.ROOT_FOLDER?["rootfolder-icon"]:i===ce.FOLDER?["folder-icon"]:["file-icon"];if(n)if(o=n.scheme===Oe.b.data?xe.a.parseMetaData(n).get(xe.a.META_DATA_LABEL):Ne(Object(xe.c)(n).toLowerCase()),i===ce.FOLDER)r.push(o+"-name-folder-icon");else{if(o){r.push(o+"-name-file-icon");for(var s=o.split("."),a=1;a<s.length;a++)r.push(s.slice(a).join(".")+"-ext-file-icon");r.push("ext-file-icon")}var l=function(e,t,n){if(!n)return null;var i=null;if(n.scheme===Oe.b.data){var o=xe.a.parseMetaData(n).get(xe.a.META_DATA_MIME);o&&(i=t.getModeId(o))}else{var r=e.getModel(n);r&&(i=r.getModeId())}return i&&i!==ke.c?i:t.getModeIdByFilepathOrFirstLine(n)}(e,t,n);l&&r.push(Ne(l)+"-lang-file-icon")}return r}function Ne(e){return e.replace(/\s/g,"\\$&")}(de=ce=ce||{})[de.FILE=0]="FILE",de[de.FOLDER=1]="FOLDER",de[de.ROOT_FOLDER=2]="ROOT_FOLDER";var Le=n(598),De=n(479),Me=n(795),Te=n(450),Ie=function(){return(Ie=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Pe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Ae=function(e,t){return function(n,i){t(n,i,e)}},Re=Object(be.Tb)("editorSuggestWidget.background",{dark:be.Q,light:be.Q,hc:be.Q},B.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),je=Object(be.Tb)("editorSuggestWidget.border",{dark:be.R,light:be.R,hc:be.R},B.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Fe=Object(be.Tb)("editorSuggestWidget.foreground",{dark:be.x,light:be.x,hc:be.x},B.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Be=Object(be.Tb)("editorSuggestWidget.selectedBackground",{dark:be.rb,light:be.rb,hc:be.rb},B.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),We=Object(be.Tb)("editorSuggestWidget.highlightForeground",{dark:be.tb,light:be.tb,hc:be.tb},B.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Ve=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function ze(e){if(e){var t=e.completion;return t.documentation||t.detail&&t.detail!==t.label}}function He(e){return"suggest-aria-id:"+e}var qe=(Object.defineProperty(Ue.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),Ue.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new l.b,n.root=e,Object(he.f)(n.root,"show-file-icons"),n.icon=Object(he.q)(e,Object(he.a)(".icon")),n.colorspan=Object(he.q)(n.icon,Object(he.a)("span.colorspan"));var i=Object(he.q)(e,Object(he.a)(".contents")),o=Object(he.q)(i,Object(he.a)(".main"));function r(){var e=t.editor.getOptions(),i=e.get(34),r=i.fontFamily,s=i.fontFeatureSettings,a=e.get(90)||i.fontSize,l=e.get(91)||i.lineHeight,u=i.fontWeight,c=a+"px",d=l+"px";n.root.style.fontSize=c,n.root.style.fontWeight=u,o.style.fontFamily=r,o.style.fontFeatureSettings=s,o.style.lineHeight=d,n.icon.style.height=d,n.icon.style.width=d,n.readMore.style.height=d,n.readMore.style.width=d}return n.left=Object(he.q)(o,Object(he.a)("span.left")),n.right=Object(he.q)(o,Object(he.a)("span.right")),n.iconContainer=Object(he.q)(n.left,Object(he.a)(".icon-label.codicon")),n.iconLabel=new Se.a(n.left,{supportHighlights:!0,supportCodicons:!0}),n.disposables.add(n.iconLabel),n.signatureLabel=Object(he.q)(n.left,Object(he.a)("span.signature-label")),n.qualifierLabel=Object(he.q)(n.left,Object(he.a)("span.qualifier-label")),n.detailsLabel=Object(he.q)(n.right,Object(he.a)("span.details-label")),n.readMore=Object(he.q)(n.right,Object(he.a)("span.readMore.codicon.codicon-info")),n.readMore.title=B.a("readMore","Read More...{0}",this.triggerKeybindingLabel),r(),n.disposables.add(K.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)||e.hasChanged(90)||e.hasChanged(91)})).on(r,null)),n},Ue.prototype.renderElement=function(e,t,n){var i=this,o=n,s=e.completion,a="string"==typeof s.label?s.label:s.label.name;o.root.id=He(t),o.icon.className="icon "+Object(v.F)(s.kind);var l,u,c,d={labelEscapeNewLines:!(o.colorspan.style.backgroundColor=""),matches:Object(Y.c)(e.score)},h=[];if(19===s.kind&&(u=h,(c="string"==typeof(l=e).completion.label?l.completion.label:l.completion.label.name).match(Ve)?(u[0]=c,1):"string"==typeof l.completion.documentation&&l.completion.documentation.match(Ve)&&(u[0]=l.completion.documentation,1)))o.icon.className="icon customcolor",o.iconContainer.className="icon hide",o.colorspan.style.backgroundColor=h[0];else if(20===s.kind&&this._themeService.getIconTheme().hasFileIcons){o.icon.className="icon hide",o.iconContainer.className="icon hide";var p=Ee(this._modelService,this._modeService,De.a.from({scheme:"fake",path:a}),ce.FILE),f=Ee(this._modelService,this._modeService,De.a.from({scheme:"fake",path:s.detail}),ce.FILE);d.extraClasses=p.length>f.length?p:f}else 23===s.kind&&this._themeService.getIconTheme().hasFolderIcons?(o.icon.className="icon hide",o.iconContainer.className="icon hide",d.extraClasses=Object(r.m)([Ee(this._modelService,this._modeService,De.a.from({scheme:"fake",path:a}),ce.FOLDER),Ee(this._modelService,this._modeService,De.a.from({scheme:"fake",path:s.detail}),ce.FOLDER)])):(o.icon.className="icon hide",o.iconContainer.className="",Object(he.g)(o.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(s.kind)));s.tags&&0<=s.tags.indexOf(1)&&(d.extraClasses=(d.extraClasses||[]).concat(["deprecated"]),d.matches=[]),o.iconLabel.setLabel(a,void 0,d),"string"==typeof s.label?(o.signatureLabel.textContent="",o.qualifierLabel.textContent="",o.detailsLabel.textContent=(s.detail||"").replace(/\n.*$/m,""),Object(he.P)(o.right,"always-show-details")):(o.signatureLabel.textContent=(s.label.signature||"").replace(/\n.*$/m,""),o.qualifierLabel.textContent=(s.label.qualifier||"").replace(/\n.*$/m,""),o.detailsLabel.textContent=(s.label.type||"").replace(/\n.*$/m,""),Object(he.f)(o.right,"always-show-details")),ze(e)?(Object(he.f)(o.right,"can-expand-details"),Object(he.X)(o.readMore),o.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},o.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails()}):(Object(he.P)(o.right,"can-expand-details"),Object(he.J)(o.readMore),o.readMore.onmousedown=null,o.readMore.onclick=null)},Ue.prototype.disposeTemplate=function(e){e.disposables.dispose()},Ue=Pe([Ae(3,Le.a),Ae(4,we.a),Ae(5,ye.c)],Ue));function Ue(e,t,n,i,o,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=o,this._themeService=r}var Ke=(Object.defineProperty(Ge.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Ge.prototype.renderLoading=function(){this.type.textContent=B.a("loading","Loading..."),this.docs.textContent=""},Ge.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=Object(l.f)(this.renderDisposeable);var i=e.completion,o=i.documentation,r=i.detail;if(t){var s="";s+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",s+="distance: "+e.distance+", see localityBonus-setting\n",s+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",o=(new Me.a).appendCodeblock("empty",s),r="Provider: "+e.provider._debugDisplayName}if(!t&&!ze(e))return this.type.textContent="",this.docs.textContent="",void Object(he.f)(this.el,"no-docs");if(Object(he.P)(this.el,"no-docs"),"string"==typeof o)Object(he.P)(this.docs,"markdown-docs"),this.docs.textContent=o;else{Object(he.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var a=this.markdownRenderer.render(o);this.renderDisposeable=a,this.docs.appendChild(a.element)}r?(this.type.innerText=r,Object(he.X)(this.type)):(this.type.innerText="",Object(he.J)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),n.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},Ge.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},Ge.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},Ge.prototype.scrollTop=function(){this.body.scrollTop=0},Ge.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Ge.prototype.pageDown=function(){this.scrollDown(80)},Ge.prototype.pageUp=function(){this.scrollUp(80)},Ge.prototype.setBorderWidth=function(e){this.borderWidth=e},Ge.prototype.configureFont=function(){var e=this.editor.getOptions(),t=e.get(34),n=t.fontFamily,i=e.get(90)||t.fontSize,o=e.get(91)||t.lineHeight,r=t.fontWeight,s=i+"px",a=o+"px";this.el.style.fontSize=s,this.el.style.fontWeight=r,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=a,this.close.style.width=a},Ge.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(l.f)(this.renderDisposeable)},Ge);function Ge(e,t,n,i,o){var r=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.kbToggleDetails=o,this.borderWidth=1,this.disposables=new l.b,this.el=Object(he.q)(e,Object(he.a)(".details")),this.disposables.add(Object(l.h)((function(){return e.removeChild(r.el)}))),this.body=Object(he.a)(".body"),this.scrollbar=new fe.a(this.body,{}),Object(he.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(he.q)(this.body,Object(he.a)(".header")),this.close=Object(he.q)(this.header,Object(he.a)("span.codicon.codicon-close")),this.close.title=B.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(he.q)(this.header,Object(he.a)("p.type")),this.docs=Object(he.q)(this.body,Object(he.a)("p.docs")),this.configureFont(),K.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock((function(){return r.scrollbar.scanDomNode()}),this,this.disposables)}var Ye=(Ze.prototype.onEditorMouseDown=function(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()},Ze.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},Ze.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},Ze.prototype.onListMouseDownOrTap=function(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},Ze.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},Ze.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},Ze.prototype.onThemeChange=function(e){var t=e.getColor(Re);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(je);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var i=e.getColor(be.V);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},Ze.prototype.onListFocus=function(e){var t,n,i=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(this.completionModel){var o=e.elements[0],r=e.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,o!==this.focusedItem){var a="insert"===this.editor.getOption(89).insertMode,l=null===(t=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))||void 0===t?void 0:t.getLabel(),u=null===(n=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))||void 0===n?void 0:n.getLabel();Te.a.equals(o.editInsertEnd,o.editReplaceEnd)?this.setStatusBarLeftText(B.a("accept","{0} to accept",l)):a?this.setStatusBarLeftText(B.a("insert","{0} to insert, {1} to replace",l,u)):this.setStatusBarLeftText(B.a("replace","{0} to replace, {1} to insert",l,u)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=o,this.list.reveal(r),this.currentSuggestionDetails=Object(y.f)((function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(i,void 0,void 0,(function(){var t,n,i=this;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(r){switch(r.label){case 0:return t=Object(y.g)((function(){return i.showDetails(!0)}),250),e.onCancellationRequested((function(){return t.dispose()})),[4,o.resolve(e)];case 1:return n=r.sent(),t.dispose(),[2,n]}}))}))})),this.currentSuggestionDetails.then((function(){r>=i.list.length||o!==i.list.element(r)||(i.ignoreFocusEvents=!0,i.list.splice(r,1,[o]),i.list.setFocus([r]),i.ignoreFocusEvents=!1,i.expandDocsSettingFromStorage()?i.showDetails(!1):Object(he.P)(i.element,"docs-side"),ze(i.focusedItem)?i.expandDocsSettingFromStorage()?i.setStatusBarRightText(i.msgDetailsLess):i.setStatusBarRightText(i.msgDetailMore):i.statusBarRightSpan.innerText="",i.editor.setAriaOptions({activeDescendant:He(r)}))})).catch(s.e)}this.onDidFocusEmitter.fire({item:o,index:r,model:this.completionModel})}}},Ze.prototype.setState=function(e){if(this.element){var t=this.state!==e;switch(this.state=e,Object(he.Y)(this.element,"frozen",4===e),e){case 0:Object(he.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,t&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Ze.LOADING_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Ze.NO_SUGGESTIONS_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(he.J)(this.messageElement),Object(he.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(he.J)(this.messageElement),Object(he.X)(this.listElement),this.show();break;case 5:Object(he.J)(this.messageElement),Object(he.X)(this.details.element,this.listElement,this.statusBarElement),this.show()}}},Ze.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(y.g)((function(){return n.setState(1)}),t)))},Ze.prototype.showSuggestions=function(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var o=this.completionModel.items.length,r=0===o;if(this.suggestWidgetMultipleSuggestions.set(1<o),r)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var s=this.completionModel.stats;s.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",Ie({},s))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},Ze.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},Ze.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Ze.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},Ze.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},Ze.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Ze.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},Ze.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},Ze.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},Ze.prototype.toggleDetails=function(){if(ze(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(he.J)(this.details.element),Object(he.P)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Ze.prototype.showDetails=function(e){e||this.expandSideOrBelow(),Object(he.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},Ze.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Ze.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet((function(){Object(he.f)(e.element,"visible"),e.onDidShowEmitter.fire(e)}),100)},Ze.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(he.P)(this.element,"visible")},Ze.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Ze.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},Ze.prototype.getDomNode=function(){return this.element},Ze.prototype.getId=function(){return Ze.ID},Ze.prototype.isFrozen=function(){return 4===this.state},Ze.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight,n=this.editor.getOption(89).maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e},Ze.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getOption(49),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(he.C)(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Object(he.C)(this.element),s=r.left,a=r.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,(s<i-this.listWidth?Object(he.f):Object(he.P))(this.element,"list-right"),Object(he.I)(this.element,"docs-side")&&a<o-e&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},Ze.prototype.expandSideOrBelow=function(){if(!ze(this.focusedItem)&&this.firstFocusInCurrentList)return Object(he.P)(this.element,"docs-side"),void Object(he.P)(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Object(he.f)(this.element,"docs-below"),Object(he.P)(this.element,"docs-side")):ze(this.focusedItem)&&(Object(he.f)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"))},Object.defineProperty(Ze.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getOptions();return e.get(91)||e.get(34).lineHeight},enumerable:!0,configurable:!0}),Ze.prototype.getHeight=function(e){return this.unfocusedHeight},Ze.prototype.getTemplateId=function(e){return"suggestion"},Ze.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)},Ze.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},Ze.prototype.setStatusBarLeftText=function(e){this.statusBarLeftSpan.innerText=e},Ze.prototype.setStatusBarRightText=function(e){this.statusBarRightSpan.innerText=e},Ze.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},Ze.ID="editor.widget.suggestWidget",Ze.LOADING_MESSAGE=B.a("suggestWidget.loading","Loading..."),Ze.NO_SUGGESTIONS_MESSAGE=B.a("suggestWidget.noSuggestions","No suggestions."),Ze=Pe([Ae(1,me.a),Ae(2,ge.a),Ae(3,V.c),Ae(4,ye.c),Ae(5,m.a),Ae(6,we.a),Ae(7,Ce.a),Ae(8,b.a)],Ze));function Ze(e,t,n,i,o,r,s,a,u){var c,d,h=this;this.editor=e,this.telemetryService=t,this.keybindingService=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=l.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new y.e,this.toDispose=new l.b,this.onDidSelectEmitter=new K.a,this.onDidFocusEmitter=new K.a,this.onDidHideEmitter=new K.a,this.onDidShowEmitter=new K.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new K.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var p=this.toDispose.add(new _e.a(e,s,a)),f=null!==(d=null===(c=n.lookupKeybinding("toggleSuggestionDetails"))||void 0===c?void 0:c.getLabel())&&void 0!==d?d:"";function g(){return Object(he.Y)(h.element,"with-status-bar",!h.editor.getOption(89).hideStatusBar)}function m(){return Object(he.Y)(h.element,"no-icons",!h.editor.getOption(89).showIcons)}this.msgDetailsLess=B.a("detail.less","{0} for less...",f),this.msgDetailMore=B.a("detail.more","{0} for more...",f),this.isAuto=!1,this.focusedItem=null,this.storageService=r,this.element=Object(he.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(he.j)(this.element,"click",(function(e){e.target===h.element&&h.hideWidget()}))),this.messageElement=Object(he.q)(this.element,Object(he.a)(".message")),this.listElement=Object(he.q)(this.element,Object(he.a)(".tree")),g(),this.statusBarElement=Object(he.q)(this.element,Object(he.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.statusBarRightSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=u.createInstance(Ke,this.element,this,this.editor,p,f),m();var v=u.createInstance(qe,this,this.editor,f);this.list=new pe.c("SuggestWidget",this.listElement,this,[v],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(e){var t="string"==typeof e.completion.label?e.completion.label:e.completion.label.name;if(e.isResolved&&h.expandDocsSettingFromStorage()){var n=e.completion,i=n.documentation,o=n.detail,r=Z.r("{0}{1}",o||"",i?"string"==typeof i?i:i.value:"");return B.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",t,r)}return t}}}),this.toDispose.add(Object(ve.b)(this.list,o,{listInactiveFocusBackground:Be,listInactiveFocusOutline:be.b})),this.toDispose.add(o.onThemeChange((function(e){return h.onThemeChange(e)}))),this.toDispose.add(e.onDidLayoutChange((function(){return h.onEditorLayoutChange()}))),this.toDispose.add(this.list.onMouseDown((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onTap((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onSelectionChange((function(e){return h.onListSelection(e)}))),this.toDispose.add(this.list.onFocusChange((function(e){return h.onListFocus(e)}))),this.toDispose.add(this.editor.onDidChangeCursorSelection((function(){return h.onCursorSelectionChanged()}))),this.toDispose.add(this.editor.onDidChangeConfiguration((function(e){e.hasChanged(89)&&(g(),m())}))),this.suggestWidgetVisible=H.b.Visible.bindTo(i),this.suggestWidgetMultipleSuggestions=H.b.MultipleSuggestions.bindTo(i),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(o.getTheme()),this.toDispose.add(Object(he.o)(this.details.element,"keydown",(function(e){h._onDetailsKeydown.fire(e)}))),this.toDispose.add(this.editor.onMouseDown((function(e){return h.onEditorMouseDown(e)})))}Object(ye.e)((function(e,t){var n=e.getColor(We);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(Fe);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var o=e.getColor(be.ec);o&&t.addRule(".monaco-editor .suggest-widget a { color: "+o+"; }");var r=e.getColor(be.dc);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }")}));var Xe,$e,Je=((Xe=function(e,t){return(Xe=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){function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Qe,$e=l.a),Qe.prototype.dispose=function(){$e.prototype.dispose.call(this),Object(l.f)(this._selectionListener),this._ckAtEnd.reset()},Qe.prototype._update=function(){var e=this,t="on"===this._editor.getOption(94);if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1)}else e._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},Qe.AtEnd=new V.d("atEndOfWord",!1),Qe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,V.c)],Qe));function Qe(e,t){var n=$e.call(this)||this;return n._editor=e,n._enabled=!1,n._ckAtEnd=Qe.AtEnd.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(e){return e.hasChanged(94)&&n._update()}))),n._update(),n}var et=n(758),tt=n(465),nt=n(790),it=(ot.prototype._onItem=function(e){if(e&&Object(r.q)(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new nt.b,n=0,i=e.item.completion.commitCharacters;n<i.length;n++){var o=i[n];0<o.length&&t.add(o.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},ot.prototype.reset=function(){this._active=void 0},ot.prototype.dispose=function(){this._disposables.dispose()},ot);function ot(e,t,n){var i=this;this._disposables=new l.b,this._disposables.add(t.onDidShow((function(){return i._onItem(t.getFocusedItem())}))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((function(o){if(i._active&&!t.isFrozen()){var r=o.charCodeAt(o.length-1);i._active.acceptCharacters.has(r)&&e.getOption(0)&&n(i._active.item)}})))}var rt,st=n(452),at=n(686),lt=(rt=function(e,t){return(rt=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){function n(){this.constructor=e}rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ut=(ct.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(l.f)(this._widgetListener),Object(l.f)(this._shiftKeyListener)},ct.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},ct.prototype._highlight=function(e){var t,n=this;this._currentItem=e;var i=this._controller.editor.getOption(89),o=[];if(i.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=ht.event((function(){return n._highlight(n._currentItem)})));var r=this._controller.getOverwriteInfo(e,ht.isPressed),s=this._controller.editor.getPosition();if("insert"===i.insertMode&&0<r.overwriteAfter)o=[{range:new d.a(s.lineNumber,s.column,s.lineNumber,s.column+r.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if("replace"===i.insertMode&&0===r.overwriteAfter){var a=null===(t=this._controller.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(s);a&&a.endColumn>s.column&&(o=[{range:new d.a(s.lineNumber,s.column,s.lineNumber,a.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,o)},ct);function ct(e){var t=this;this._controller=e,this._disposables=new l.b,this._decorations=[],this._disposables.add(e.model.onDidSuggest((function(e){if(!e.shy){var n=t._controller.widget.getValue(),i=n.getFocusedItem();i&&t._highlight(i.item),t._widgetListener||(t._widgetListener=n.onDidFocus((function(e){return t._highlight(e.item)})))}}))),this._disposables.add(e.model.onDidCancel((function(){t._reset()})))}var dt,ht=(lt(pt,dt=K.a),Object.defineProperty(pt.prototype,"isPressed",{get:function(){return this._isPressed},set:function(e){this._isPressed!==e&&(this._isPressed=e,this.fire(e))},enumerable:!0,configurable:!0}),pt.prototype.dispose=function(){this._subscriptions.dispose(),dt.prototype.dispose.call(this)},new pt);function pt(){var e=dt.call(this)||this;return e._subscriptions=new l.b,e._isPressed=!1,e._subscriptions.add(Object(at.a)(document.body,"keydown")((function(t){return e.isPressed=t.shiftKey}))),e._subscriptions.add(Object(at.a)(document.body,"keyup")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(at.a)(document.body,"mouseleave")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(at.a)(document.body,"blur")((function(){return e.isPressed=!1}))),e}n.d(t,"SuggestController",(function(){return _t})),n.d(t,"TriggerSuggestAction",(function(){return St}));var ft,gt=function(){return(gt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},mt=function(e,t){return function(n,i){t(n,i,e)}},vt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},yt=(ft=function(e,t){return(ft=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)},bt.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},bt.prototype.delta=function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},bt);function bt(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){var n=e.getOffsetAt(t),i=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:d.a.fromPositions(t,i),options:{stickiness:1}}])}}var _t=(wt.get=function(e){return e.getContribution(wt.ID)},wt.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},wt.prototype._insertSuggestion=function(e,t){var n,i=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var o=this.editor.getModel(),r=o.getAlternativeVersionId(),a=e.item,l=a.completion;1&t||this.editor.pushUndoStop();var u=this.getOverwriteInfo(a,Boolean(8&t));this._memoryService.memorize(o,this.editor.getPosition(),a),Array.isArray(l.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",l.additionalTextEdits.map((function(e){return c.a.replace(d.a.lift(e.range),e.text)})));var h=l.insertText;4&l.insertTextRules||(h=f.c.escape(h)),p.SnippetController2.get(this.editor).insert(h,{overwriteBefore:u.overwriteBefore,overwriteAfter:u.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&l.insertTextRules)}),2&t||this.editor.pushUndoStop(),l.command?l.command.id===St.id?this.model.trigger({auto:!0,shy:!1},!0):((n=this._commandService).executeCommand.apply(n,vt([l.command.id],l.command.arguments?vt(l.command.arguments):[])).catch(s.e).finally((function(){return i.model.clear()})),this.model.cancel()):(this.model.cancel(),this.model.clear()),4&t&&this._alternatives.getValue().set(e,(function(e){for(;o.canUndo();){r!==o.getAlternativeVersionId()&&o.undo(),i._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(e.item)}},wt.prototype.getOverwriteInfo=function(e,t){Object(tt.a)(this.editor.hasModel());var n="replace"===this.editor.getOption(89).insertMode;t&&(n=!n);var i=e.position.column-e.editStart.column,o=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:i+(this.editor.getPosition().column-e.position.column),overwriteAfter:o+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}},wt.prototype._alertCompletionItem=function(e){var t=e.completion,n="string"==typeof t.label?t.label:t.label.name;if(Object(r.q)(t.additionalTextEdits)){var i=B.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",n,t.additionalTextEdits.length);Object(o.a)(i)}},wt.prototype.triggerSuggest=function(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},wt.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),i=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)};K.b.once(this.model.onDidTrigger)((function(e){var n=[];K.b.any(t.model.onDidTrigger,t.model.onDidCancel)((function(){Object(l.f)(n),i()}),void 0,n),t.model.onDidSuggest((function(e){var o=e.completionModel;if(Object(l.f)(n),0!==o.items.length){var r=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),o.items),s=o.items[r];!function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return 1;var n=t.editor.getPosition(),i=e.editStart.column,o=n.column;return o-i!==e.completion.insertText.length||t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:o})!==e.completion.insertText}(s)?i():(t.editor.pushUndoStop(),t._insertSuggestion({index:r,item:s,model:o},7))}else i()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(n.lineNumber,0),this.editor.focus()}},wt.prototype.acceptSelectedSuggestion=function(e,t){var n=this.widget.getValue().getFocusedItem(),i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)},wt.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},wt.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},wt.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},wt.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},wt.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},wt.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},wt.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},wt.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},wt.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},wt.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},wt.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},wt.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},wt.ID="editor.contrib.suggestController",wt=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([mt(1,et.a),mt(2,F),mt(3,W.b),mt(4,V.c),mt(5,b.a)],wt));function wt(e,t,n,i,o,r){var s=this;function u(){var e=s.editor.getOption(1);c.set("on"===e||"smart"===e)}this._memoryService=n,this._commandService=i,this._contextKeyService=o,this._instantiationService=r,this._lineSuffix=new l.d,this._toDispose=new l.b,this.editor=e,this.model=new le(this.editor,t),this.widget=this._toDispose.add(new y.b((function(){var e=s._instantiationService.createInstance(Ye,s.editor);s._toDispose.add(e),s._toDispose.add(e.onDidSelect((function(e){return s._insertSuggestion(e,0)}),s));var t=new it(s.editor,e,(function(e){return s._insertSuggestion(e,2)}));s._toDispose.add(t),s._toDispose.add(s.model.onDidSuggest((function(e){0===e.completionModel.items.length&&t.reset()})));var n=H.b.MakesTextEdit.bindTo(s._contextKeyService);return s._toDispose.add(e.onDidFocus((function(e){var t=e.item,i=s.editor.getPosition(),o=t.editStart.column,r=i.column,a=!0;"smart"!==s.editor.getOption(1)||2!==s.model.state||t.completion.command||t.completion.additionalTextEdits||4&t.completion.insertTextRules||r-o!==t.completion.insertText.length||(a=s.editor.getModel().getValueInRange({startLineNumber:i.lineNumber,startColumn:o,endLineNumber:i.lineNumber,endColumn:r})!==t.completion.insertText),n.set(a)}))),s._toDispose.add(Object(l.h)((function(){return n.reset()}))),s._toDispose.add(e.onDetailsKeyDown((function(e){e.toKeybinding().equals(new a.e(!0,!1,!1,!1,33))||st.e&&e.toKeybinding().equals(new a.e(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||s.editor.focus()}))),e}))),this._alternatives=this._toDispose.add(new y.b((function(){return s._toDispose.add(new q(s.editor,s._contextKeyService))}))),this._toDispose.add(r.createInstance(Je,e)),this._toDispose.add(this.model.onDidTrigger((function(e){s.widget.getValue().showTriggered(e.auto,e.shy?250:50),s._lineSuffix.value=new yt(s.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((function(e){if(!e.shy){var t=s._memoryService.select(s.editor.getModel(),s.editor.getPosition(),e.completionModel.items);s.widget.getValue().showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}}))),this._toDispose.add(this.model.onDidCancel((function(e){e.retrigger||s.widget.getValue().hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((function(){s.model.cancel(),s.model.clear()})));var c=H.b.AcceptSuggestionsOnEnter.bindTo(o);this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return u()}))),u(),this._toDispose.add(new ut(this))}var Ct,St=(function(e,t){function n(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(Ot,Ct=u.b),Ot.prototype.run=function(e,t){var n=_t.get(t);n&&n.triggerSuggest()},Ot.id="editor.action.triggerSuggest",Ot);function Ot(){return Ct.call(this,{id:Ot.id,label:B.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:V.a.and(h.a.writable,h.a.hasCompletionItemProvider),kbOpts:{kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})||this}Object(u.h)(_t.ID,_t),Object(u.f)(St);var xt=u.c.bindToContribution(_t.get);Object(u.g)(new xt({id:"acceptSelectedSuggestion",precondition:H.b.Visible,handler:function(e){e.acceptSelectedSuggestion(!0,!1)}})),z.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:V.a.and(H.b.Visible,h.a.textInputFocus),primary:2,weight:190}),z.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:V.a.and(H.b.Visible,h.a.textInputFocus,H.b.AcceptSuggestionsOnEnter,H.b.MakesTextEdit),primary:3,weight:190}),Object(u.g)(new xt({id:"acceptAlternativeSelectedSuggestion",precondition:V.a.and(H.b.Visible,h.a.textInputFocus),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1027,secondary:[1026]},handler:function(e){e.acceptSelectedSuggestion(!1,!0)}})),W.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(u.g)(new xt({id:"hideSuggestWidget",precondition:H.b.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:9,secondary:[1033]}})),Object(u.g)(new xt({id:"selectNextSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(u.g)(new xt({id:"selectNextPageSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:12,secondary:[2060]}})),Object(u.g)(new xt({id:"selectLastSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),Object(u.g)(new xt({id:"selectPrevSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(u.g)(new xt({id:"selectPrevPageSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:11,secondary:[2059]}})),Object(u.g)(new xt({id:"selectFirstSuggestion",precondition:V.a.and(H.b.Visible,H.b.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),Object(u.g)(new xt({id:"toggleSuggestionDetails",precondition:H.b.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266}}})),Object(u.g)(new xt({id:"toggleExplainMode",precondition:H.b.Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),Object(u.g)(new xt({id:"toggleSuggestionFocus",precondition:H.b.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(u.g)(new xt({id:"insertBestCompletion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),Je.AtEnd,H.b.Visible.toNegated(),q.OtherSuggestions.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(Object(tt.i)(t)?gt({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(u.g)(new xt({id:"insertNextSuggestion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),q.OtherSuggestions,H.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2}})),Object(u.g)(new xt({id:"insertPrevSuggestion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),q.OtherSuggestions,H.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1026}}))},function(e,t,n){"use strict";n.r(t),n(1334);var i=n(445),o=n(465),r=n(444),s=n(453),a=n(548),l=n(439),u=n(449),c=n(442),d=16777215,h=(p.prototype.ensureParentIndices=function(){var e,t,n;if(!this._parentsComputed){this._parentsComputed=!0;for(var i=[],o=0,r=this._startIndexes.length;o<r;o++){var s=this._startIndexes[o],a=this._endIndexes[o];if(d<s||d<a)throw new Error("startLineNumber or endLineNumber must not exceed "+d);for(;0<i.length&&(e=s,t=a,n=i[i.length-1],!(this.getStartLineNumber(n)<=e&&this.getEndLineNumber(n)>=t));)i.pop();var l=0<i.length?i[i.length-1]:-1;i.push(o),this._startIndexes[o]=s+((255&l)<<24),this._endIndexes[o]=a+((65280&l)<<16)}}},Object.defineProperty(p.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),p.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&d},p.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&d},p.prototype.getType=function(e){return this._types?this._types[e]:void 0},p.prototype.hasTypes=function(){return!!this._types},p.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<<n)},p.prototype.setCollapsed=function(e,t){var n=e/32|0,i=e%32,o=this._collapseStates[n];this._collapseStates[n]=t?o|1<<i:o&~(1<<i)},p.prototype.toRegion=function(e){return new f(this,e)},p.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return 65535==t?-1:t},p.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},p.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1},p.prototype.findRange=function(e){var t=this.findIndex(e);if(0<=t){if(e<=this.getEndLineNumber(t))return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},p.prototype.toString=function(){for(var e=[],t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ")},p);function p(e,t,n){if(e.length!==t.length||65535<e.length)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}var f=(Object.defineProperty(g.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),g.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},g.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},g);function g(e,t){this.ranges=e,this.index=t}var m=(Object.defineProperty(v.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),v.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations((function(i){for(var o=0,r=e;o<r.length;o++){var s=r[o].regionIndex,a=t._editorDecorationIds[s];if(a&&!n[a]){n[a]=!0;var l=!t._regions.isCollapsed(s);t._regions.setCollapsed(s,l),i.changeDecorationOptions(a,t._decorationProvider.getDecorationOption(l))}}})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},v.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);for(var i=[],o=function(o,r){var s=e.getStartLineNumber(o);r&&function(e,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e<r&&r<=n)return 1}}(s,e.getEndLineNumber(o))&&(r=!1),e.setCollapsed(o,r);var a=n._textModel.getLineMaxColumn(s),l={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:l,options:n._decorationProvider.getDecorationOption(r)})},r=0,s=function(){for(;r<n._regions.length;){var e=n._regions.isCollapsed(r);if(r++,e)return r-1}return-1},a=0,l=s();-1!==l&&a<e.length;){var u=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(u){var c=u.startLineNumber;if(this._textModel.getLineMaxColumn(c)===u.startColumn)for(;a<e.length;){var d=e.getStartLineNumber(a);if(!(d<=c))break;o(a,c===d),a++}}l=s()}for(;a<e.length;)o(a,!1),a++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},v.prototype.getMemento=function(){for(var e=[],t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var i=n.startLineNumber,o=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:o})}}if(0<e.length)return e},v.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],r=this.getRegionAtLine(o.startLineNumber);r&&!r.isCollapsed&&t.push(r)}this.toggleCollapseState(t)}},v.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},v.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions)for(var i=this._regions.findRange(e),o=1;0<=i;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}return n},v.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(0<=t)return this._regions.toRegion(t)}return null},v.prototype.getRegionsInside=function(e,t){var n=[],i=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var r=[],s=i,a=this._regions.length;s<a;s++){var l=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;for(;0<r.length&&!l.containedBy(r[r.length-1]);)r.pop();r.push(l),t(l,r.length)&&n.push(l)}else for(s=i,a=this._regions.length;s<a&&(l=this._regions.toRegion(s),this._regions.getStartLineNumber(s)<o);s++)t&&!t(l)||n.push(l);return n},v);function v(e,t){this._updateEventEmitter=new c.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new h(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}function y(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&0<i.length)for(var r=0,s=i;r<s.length;r++){var a=s[r],l=e.getRegionAtLine(a);if(l&&(l.isCollapsed!==t&&o.push(l),1<n)){var u=e.getRegionsInside(l,(function(e,i){return e.isCollapsed!==t&&i<n}));o.push.apply(o,u)}}else u=e.getRegionsInside(null,(function(e,i){return e.isCollapsed!==t&&i<n})),o.push.apply(o,u);e.toggleCollapseState(o)}function b(e,t,n,i){for(var o=[],r=0,s=i;r<s.length;r++){var a=s[r],l=e.getAllRegionsAtLine(a,(function(e,i){return e.isCollapsed!==t&&i<=n}));o.push.apply(o,l)}e.toggleCollapseState(o)}function _(e,t,n){for(var i=e.textModel,o=e.regions,r=[],s=o.length-1;0<=s;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function w(e,t,n){for(var i=e.regions,o=[],r=i.length-1;0<=r;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var C=n(495),S=(O.prototype.getDecorationOption=function(e){return e?this.showFoldingHighlights?O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:O.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:O.EXPANDED_VISUAL_DECORATION},O.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},O.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},O.COLLAPSED_VISUAL_DECORATION=C.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=C.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=C.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),O.EXPANDED_VISUAL_DECORATION=C.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),O);function O(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}var x=n(469),k=n(440),E=n(459),N=(Object.defineProperty(L.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),L.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n<s.length;n++)if(s.isCollapsed(n)){var a=s.getStartLineNumber(n)+1,l=s.getEndLineNumber(n);o<=a&&l<=r||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new k.a(a,1,l,1))),o=a,r=l)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},L.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!o.startLineNumber||!o.endLineNumber)return!1;t.push(new k.a(o.startLineNumber+1,1,o.endLineNumber,1))}return this.applyHiddenRanges(t),!0},L.prototype.getMemento=function(){return this._hiddenRanges.map((function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}}))},L.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},L.prototype.hasRanges=function(){return 0<this._hiddenRanges.length},L.prototype.isHidden=function(e){return null!==D(this._hiddenRanges,e)},L.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){var n,i;return o&&(n=e)>=(i=o).startLineNumber&&n<=i.endLineNumber||(o=D(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s<a;s++){var l=e[s],u=r(l.startLineNumber);u&&(l=l.setStartPosition(u,i.getLineMaxColumn(u)),n=!0);var c=r(l.endLineNumber);c&&(l=l.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=l}return n},L.prototype.dispose=function(){0<this.hiddenRanges.length&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},L);function L(e){var t=this;this._updateEventEmitter=new c.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange((function(e){return t.updateHiddenRanges()})),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}function D(e,t){var n=Object(E.i)(e,(function(e){return t<e.startLineNumber}))-1;return 0<=n&&e[n].endLineNumber>=t?e[n]:null}var M=n(575),T=(I.prototype.dispose=function(){},I.prototype.compute=function(e){var t=M.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(function(e,t,n,i){void 0===i&&(i=5e3);var o=e.getOptions().tabSize,r=new P(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(var u=e.getLineCount();0<u;u--){var c=e.getLineContent(u),d=C.b.computeIndentLevel(c,o),h=a[a.length-1];if(-1!==d){var p=void 0;if(s&&(p=c.match(s))){if(!p[1]){a.push({indent:-2,endAbove:u,line:u});continue}for(var f=a.length-1;0<f&&-2!==a[f].indent;)f--;if(0<f){a.length=f+1,h=a[f],r.insertFirst(u,h.line,d),h.line=u,h.indent=d,h.endAbove=u;continue}}if(h.indent>d){for(;a.pop(),(h=a[a.length-1]).indent>d;);var g=h.endAbove-1;1<=g-u&&r.insertFirst(u,g,d)}h.indent===d?h.endAbove=u:a.push({indent:d,endAbove:u,line:u})}else t&&(h.endAbove=u)}return r.toIndentRanges(e)}(this.editorModel,n,i))},I);function I(e){this.editorModel=e,this.id="indent"}var P=(A.prototype.insertFirst=function(e,t,n){if(!(d<e||d<t)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},A.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;0<=i;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new h(t,n)}var r=0,s=this._indentOccurrences.length;for(i=0;i<this._indentOccurrences.length;i++){var a=this._indentOccurrences[i];if(a){if(a+r>this._foldingRangesLimit){s=i;break}r+=a}}var l=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,o=0;0<=i;i--){var u=this._startIndexes[i],c=e.getLineContent(u),d=C.b.computeIndentLevel(c,l);(d<s||d===s&&r++<this._foldingRangesLimit)&&(t[o]=u,n[o]=this._endIndexes[i],o++)}return new h(t,n)},A);function A(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}var R=n(454),j=n(446),F={},B=(W.prototype.compute=function(e){var t,n,i,o,r,s=this;return t=this.providers,n=this.editorModel,i=e,o=null,r=t.map((function(e,t){return Promise.resolve(e.provideFoldingRanges(n,F,i)).then((function(e){if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(o)||(o=[]);for(var r=n.getLineCount(),s=0,a=e;s<a.length;s++){var l=a[s];0<l.start&&l.end>l.start&&l.end<=r&&o.push({start:l.start,end:l.end,rank:t,kind:l.kind})}}}),j.f)})),Promise.all(r).then((function(e){return o})).then((function(e){return e?H(e,s.limit):null}))},W.prototype.dispose=function(){},W);function W(e,t,n){void 0===n&&(n=5e3),this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax"}var V=(z.prototype.add=function(e,t,n,i){if(!(d<e||d<t)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},z.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new h(e,t,this._types)}var i=0,o=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var r=this._nestingLevelCounts[n];if(r){if(r+i>this._foldingRangesLimit){o=n;break}i+=r}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var s=[],a=n=0;n<this._length;n++){var l=this._nestingLevels[n];(l<o||l===o&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++)}return new h(e,t,s)},z);function z(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}function H(e,t){for(var n=e.sort((function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n})),i=new V(t),o=void 0,r=[],s=0,a=n;s<a.length;s++){var l=a[s];if(o){if(l.start>o.start)if(l.end<=o.end)r.push(o),o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length);else{if(l.start>o.end){for(;(o=r.pop())&&l.start>o.end;);o&&r.push(o),o=l}i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}}else o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}return i.toIndentRanges()}var q=(U.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},U.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,i=this.decorationIds;n<i.length;n++){var o=i[n],r=this.editorModel.getDecorationRange(o);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1})}return Promise.resolve(H(t,Number.MAX_VALUE))},U);function U(e,t,n,i){this.editorModel=e,this.id="init",t.length&&(this.decorationIds=e.deltaDecorations([],t.map((function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}}))),this.timeout=setTimeout(n,i))}var K=n(456),G=n(451),Y=n(461);n.d(t,"FoldingController",(function(){return Q})),n.d(t,"foldBackgroundBackground",(function(){return Be}));var Z,X,$=(Z=function(e,t){return(Z=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){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=new K.d("foldingEnabled",!1),Q=($(ee,X=l.a),ee.get=function(e){return e.getContribution(ee.ID)},ee.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}},ee.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){"syntax"!==e.provider&&"init"!==e.provider||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var i=this.getFoldingModel();i&&i.then((function(e){e&&e.applyMemento(n)})).then(void 0,j.e)}}},ee.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new m(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new N(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new s.a(200),this.cursorChangedScheduler=new s.d((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(R.o.onDidChange((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelContent((function(){return e.onModelContentChanged()}))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((function(){return e.onCursorPositionChanged()}))),this.localToDispose.add(this.editor.onMouseDown((function(t){return e.onEditorMouseDown(t)}))),this.localToDispose.add(this.editor.onMouseUp((function(t){return e.onEditorMouseUp(t)}))),this.localToDispose.add({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.onModelContentChanged())},ee.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ee.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new T(e),this._useFoldingProviders&&this.foldingModel){var n=R.o.ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new q(e,this.foldingStateMemento.collapsedRegions,(function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()}),3e4);0<n.length&&(this.rangeProvider=new B(e,n))}return this.foldingStateMemento=null,this.rangeProvider},ee.prototype.getFoldingModel=function(){return this.foldingModelPromise},ee.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=Object(s.f)((function(n){return e.getRangeProvider(t.textModel).compute(n)}));return n.then((function(i){if(i&&n===e.foldingRegionPromise){var o=e.editor.getSelections(),r=o?o.map((function(e){return e.startLineNumber})):[];t.update(i,r)}return t}))})).then(void 0,(function(e){return Object(j.e)(e),null})))},ee.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)},ee.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ee.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&0<n.length){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,(function(e){return e.isCollapsed&&o>e.startLineNumber})))},r=0,s=n;r<s.length;r++)o(s[r]);i.length&&(t.toggleCollapseState(i),e.reveal(n[0].getPosition()))}}})).then(void 0,j.e)},ee.prototype.onEditorMouseDown=function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,o=e.target.element.offsetLeft;if(i.offsetX-o<5)return;n=!0;break;case 6:if(this.hiddenRangeModel.hasRanges()){var r=this.editor.getModel();if(r&&t.startColumn===r.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}},ee.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var i=this.mouseDownInfo.lineNumber,o=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===i){if(o){if(4!==e.target.type)return}else{var s=this.editor.getModel();if(!s||r.startColumn!==s.getLineMaxColumn(i))return}n.then((function(n){if(n){var r=n.getRegionAtLine(i);if(r&&r.startLineNumber===i){var s=r.isCollapsed;if(o||s){var a=[],l=e.event.middleButton||e.event.shiftKey;if(l)for(var u=0,c=n.getRegionsInside(r);u<c.length;u++){var d=c[u];d.isCollapsed===s&&a.push(d)}!s&&l&&0!==a.length||a.push(r),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1})}}}})).then(void 0,j.e)}}},ee.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},ee.ID="editor.contrib.folding",ee=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,K.c)],ee));function ee(e,t){var n=X.call(this)||this;n.contextKeyService=t,n.localToDispose=n._register(new l.b),n.editor=e;var i=n.editor.getOptions();return n._isEnabled=i.get(30),n._useFoldingProviders="indentation"!==i.get(31),n.foldingModel=null,n.hiddenRangeModel=null,n.rangeProvider=null,n.foldingRegionPromise=null,n.foldingStateMemento=null,n.foldingModelPromise=null,n.updateScheduler=null,n.cursorChangedScheduler=null,n.mouseDownInfo=null,n.foldingDecorationProvider=new S(e),n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===i.get(84),n.foldingDecorationProvider.showFoldingHighlights=i.get(32),n.foldingEnabled=J.bindTo(n.contextKeyService),n.foldingEnabled.set(n._isEnabled),n._register(n.editor.onDidChangeModel((function(){return n.onModelChanged()}))),n._register(n.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(30)){var t=n.editor.getOptions();n._isEnabled=t.get(30),n.foldingEnabled.set(n._isEnabled),n.onModelChanged()}if(e.hasChanged(84)||e.hasChanged(32)){var i=n.editor.getOptions();n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===i.get(84),n.foldingDecorationProvider.showFoldingHighlights=i.get(32),n.onModelContentChanged()}if(e.hasChanged(31)){var o=n.editor.getOptions();n._useFoldingProviders="indentation"!==o.get(31),n.onFoldingStrategyChanged()}}))),n.onModelChanged(),n}var te,ne=($(ie,te=u.b),ie.prototype.runEditorCommand=function(e,t,n){var i=this,o=Q.get(t);if(o){var r=o.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((function(e){if(e){i.invoke(o,e,t,n);var r=t.getSelection();r&&o.reveal(r.getStartPosition())}}))):void 0}},ie.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]},ie.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)},ie.prototype.run=function(e,t){},ie);function ie(){return null!==te&&te.apply(this,arguments)||this}function oe(e){if(!o.k(e)){if(!o.i(e))return!1;var t=e;if(!o.k(t.levels)&&!o.h(t.levels))return!1;if(!o.k(t.direction)&&!o.j(t.direction))return!1;if(!(o.k(t.selectionLines)||o.d(t.selectionLines)&&t.selectionLines.every(o.h)))return!1}return!0}var re,se=($(ae,re=ne),ae.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);(i&&"up"===i.direction?b:y)(t,!1,o,r)},ae);function ae(){return re.call(this,{id:"editor.unfold",label:i.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:oe,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var le,ue=($(ce,le=ne),ce.prototype.invoke=function(e,t,n,i){y(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},ce);function ce(){return le.call(this,{id:"editor.unfoldRecursively",label:i.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2137),weight:100}})||this}var de,he=($(pe,de=ne),pe.prototype.invoke=function(e,t,n,i){var o=this.getLineNumbers(i,n),r=i&&i.levels,s=i&&i.direction;"number"!=typeof r&&"string"!=typeof s?function(e,t,n){for(var i=[],o=0,r=n;o<r.length;o++){var s=r[o],a=e.getAllRegionsAtLine(s,(function(e){return!0!==e.isCollapsed}));0<a.length&&i.push(a[0])}e.toggleCollapseState(i)}(t,0,o):("up"===s?b:y)(t,!0,r||1,o)},pe);function pe(){return de.call(this,{id:"editor.fold",label:i.a("foldAction.label","Fold"),alias:"Fold",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:oe,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var fe,ge=($(me,fe=ne),me.prototype.invoke=function(e,t,n){!function(e,t,n){for(var i=[],o=function(t){var n=e.getRegionAtLine(t);if(n){n.isCollapsed;i.push(n)}},r=0,s=n;r<s.length;r++)o(s[r]);e.toggleCollapseState(i)}(t,0,this.getSelectedLines(n))},me);function me(){return fe.call(this,{id:"editor.toggleFold",label:i.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2090),weight:100}})||this}var ve,ye=($(be,ve=ne),be.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);y(t,!0,Number.MAX_VALUE,i)},be);function be(){return ve.call(this,{id:"editor.foldRecursively",label:i.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2135),weight:100}})||this}var _e,we=($(Ce,_e=ne),Ce.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Comment.value,!0);else{var i=n.getModel();if(!i)return;var o=M.a.getComments(i.getLanguageIdentifier().id);o&&o.blockCommentStartToken&&_(t,new RegExp("^\\s*"+Object(r.p)(o.blockCommentStartToken)),!0)}},Ce);function Ce(){return _e.call(this,{id:"editor.foldAllBlockComments",label:i.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2133),weight:100}})||this}var Se,Oe=($(xe,Se=ne),xe.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Region.value,!0);else{var i=n.getModel();if(!i)return;var o=M.a.getFoldingRules(i.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&_(t,new RegExp(o.markers.start),!0)}},xe);function xe(){return Se.call(this,{id:"editor.foldAllMarkerRegions",label:i.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2077),weight:100}})||this}var ke,Ee=($(Ne,ke=ne),Ne.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Region.value,!1);else{var i=n.getModel();if(!i)return;var o=M.a.getFoldingRules(i.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&_(t,new RegExp(o.markers.start),!1)}},Ne);function Ne(){return ke.call(this,{id:"editor.unfoldAllMarkerRegions",label:i.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2078),weight:100}})||this}var Le,De=($(Me,Le=ne),Me.prototype.invoke=function(e,t,n){y(t,!0)},Me);function Me(){return Le.call(this,{id:"editor.foldAll",label:i.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2069),weight:100}})||this}var Te,Ie=($(Pe,Te=ne),Pe.prototype.invoke=function(e,t,n){y(t,!1)},Pe);function Pe(){return Te.call(this,{id:"editor.unfoldAll",label:i.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2088),weight:100}})||this}var Ae,Re=($(je,Ae=ne),je.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(je.ID_PREFIX.length))},je.prototype.invoke=function(e,t,n){var i,o,r,s;i=t,o=this.getFoldingLevel(),r=this.getSelectedLines(n),s=i.getRegionsInside(null,(function(e,t){return t===o&&!0!==e.isCollapsed&&!r.some((function(t){return e.containsLine(t)}))})),i.toggleCollapseState(s)},je.ID_PREFIX="editor.foldLevel",je.ID=function(e){return je.ID_PREFIX+e},je);function je(){return null!==Ae&&Ae.apply(this,arguments)||this}Object(u.h)(Q.ID,Q),Object(u.f)(se),Object(u.f)(ue),Object(u.f)(he),Object(u.f)(ye),Object(u.f)(De),Object(u.f)(Ie),Object(u.f)(we),Object(u.f)(Oe),Object(u.f)(Ee),Object(u.f)(ge);for(var Fe=1;Fe<=7;Fe++)Object(u.i)(new Re({id:Re.ID(Fe),label:i.a("foldLevelAction.label","Fold Level {0}",Fe),alias:"Fold Level "+Fe,precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(a.a)(2089,2048|21+Fe),weight:100}}));var Be=Object(Y.Tb)("editor.foldBackground",{light:Object(Y.fc)(Y.K,.3),dark:Object(Y.fc)(Y.K,.3),hc:null},i.a("editorSelectionBackground","Color of the editor selection."));Object(G.e)((function(e,t){var n=e.getColor(Be);n&&t.addRule(".monaco-editor .folded-background { background-color: "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1367);var i=n(445),o=n(548),r=n(439),s=n(449),a=n(440),l=n(469),u=n(778),c=n(443),d=n(484),h=n(490),p=n(795),f=n(450),g=n(495),m=n(454),v=n(1080),y=n(1004),b=n(442),_=(Object.defineProperty(w.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),w.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},w.prototype.guessColorPresentation=function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}},w.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},w);function w(e,t,n){this.presentationIndex=n,this._onColorFlushed=new b.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new b.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new b.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}n(1368);var C,S,O=n(478),x=n(793),k=n(597),E=n(461),N=n(451),L=(C=function(e,t){return(C=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){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=c.a,M=(L(T,S=r.a),T.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(e)||"",c.Y(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},T.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},T);function T(e,t,n){var i=S.call(this)||this;i.model=t,i.domNode=D(".colorpicker-header"),c.q(e,i.domNode),i.pickedColorNode=c.q(i.domNode,D(".picked-color"));var o=c.q(i.domNode,D(".original-color"));return o.style.backgroundColor=h.a.Format.CSS.format(i.model.originalColor)||"",i.backgroundColor=n.getTheme().getColor(E.A)||h.a.white,i._register(Object(N.e)((function(e,t){i.backgroundColor=e.getColor(E.A)||h.a.white}))),i._register(c.j(i.pickedColorNode,c.d.CLICK,(function(){return i.model.selectNextColorPresentation()}))),i._register(c.j(o,c.d.CLICK,(function(){i.model.color=i.model.originalColor,i.model.flushColor()}))),i._register(t.onDidChangeColor(i.onDidChangeColor,i)),i._register(t.onDidChangePresentation(i.onDidChangePresentation,i)),i.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(t.color)||"",c.Y(i.pickedColorNode,"light",t.color.rgba.a<.5?i.backgroundColor.isLighter():t.color.isLighter()),i}var I,P=(L(A,I=r.a),A.prototype.flushColor=function(){this.model.flushColor()},A.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new h.a(new h.b(i.h,t,n,i.a))},A.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new h.a(new h.b(t.h,t.s,t.v,e))},A.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new h.a(new h.b(360==n?0:n,t.s,t.v,t.a))},A.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},A);function A(e,t,n){var i=I.call(this)||this;return i.model=t,i.pixelRatio=n,i.domNode=D(".colorpicker-body"),c.q(e,i.domNode),i.saturationBox=new j(i.domNode,i.model,i.pixelRatio),i._register(i.saturationBox),i._register(i.saturationBox.onDidChange(i.onDidSaturationValueChange,i)),i._register(i.saturationBox.onColorFlushed(i.flushColor,i)),i.opacityStrip=new H(i.domNode,i.model),i._register(i.opacityStrip),i._register(i.opacityStrip.onDidChange(i.onDidOpacityChange,i)),i._register(i.opacityStrip.onColorFlushed(i.flushColor,i)),i.hueStrip=new K(i.domNode,i.model),i._register(i.hueStrip),i._register(i.hueStrip.onDidChange(i.onDidHueChange,i)),i._register(i.hueStrip.onColorFlushed(i.flushColor,i)),i}var R,j=(L(F,R=r.a),F.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new x.a);var n=c.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,x.b,(function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)}),(function(){return null}));var i=c.i(document,(function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)},F.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})},F.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)},F.prototype.paint=function(){var e=this.model.color.hsva,t=new h.a(new h.b(e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var o=n.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=h.a.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=o,n.fill()},F.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},F.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},F);function F(e,t,n){var i=R.call(this)||this;return i.model=t,i.pixelRatio=n,i._onDidChange=new b.a,i.onDidChange=i._onDidChange.event,i._onColorFlushed=new b.a,i.onColorFlushed=i._onColorFlushed.event,i.domNode=D(".saturation-wrap"),c.q(e,i.domNode),i.canvas=document.createElement("canvas"),i.canvas.className="saturation-box",c.q(i.domNode,i.canvas),i.selection=D(".saturation-selection"),c.q(i.domNode,i.selection),i.layout(),i._register(c.h(i.domNode,(function(e){return i.onMouseDown(e)}))),i._register(i.model.onDidChangeColor(i.onDidChangeColor,i)),i.monitor=null,i}var B,W=(L(V,B=r.a),V.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},V.prototype.onMouseDown=function(e){var t=this,n=this._register(new x.a),i=c.C(this.domNode);c.f(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(e.target,e.buttons,x.b,(function(e){return t.onDidChangeTop(e.posy-i.top)}),(function(){return null}));var o=c.i(document,(function(){t._onColorFlushed.fire(),o.dispose(),n.stopMonitoring(!0),c.P(t.domNode,"grabbing")}),!0)},V.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},V.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},V);function V(e,t){var n=B.call(this)||this;return n.model=t,n._onDidChange=new b.a,n.onDidChange=n._onDidChange.event,n._onColorFlushed=new b.a,n.onColorFlushed=n._onColorFlushed.event,n.domNode=c.q(e,D(".strip")),n.overlay=c.q(n.domNode,D(".overlay")),n.slider=c.q(n.domNode,D(".slider")),n.slider.style.top="0px",n._register(c.h(n.domNode,(function(e){return n.onMouseDown(e)}))),n.layout(),n}var z,H=(L(q,z=W),q.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,o=t.b,r=new h.a(new h.c(n,i,o,1)),s=new h.a(new h.c(n,i,o,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+s+" 100%)"},q.prototype.getValue=function(e){return e.hsva.a},q);function q(e,t){var n=z.call(this,e,t)||this;return c.f(n.domNode,"opacity-strip"),n._register(t.onDidChangeColor(n.onDidChangeColor,n)),n.onDidChangeColor(n.model.color),n}var U,K=(L(G,U=W),G.prototype.getValue=function(e){return 1-e.hsva.h/360},G);function G(e,t){var n=U.call(this,e,t)||this;return c.f(n.domNode,"hue-strip"),n}var Y,Z=(L(X,Y=k.a),X.prototype.layout=function(){this.body.layout()},X);function X(e,t,n,i){var o=Y.call(this)||this;o.model=t,o.pixelRatio=n,o._register(Object(O.o)((function(){return o.layout()})));var r=D(".colorpicker-widget");e.appendChild(r);var s=new M(r,o.model,i);return o.body=new P(r,o.model,o.pixelRatio),o._register(s),o._register(o.body),o}var $=n(459),J=n(446);function Q(e,t,n){var i=m.p.ordered(e).map((function(i){return Promise.resolve(i.provideHover(e,t,n)).then((function(e){return e&&(n=void 0!==(t=e).range,i=void 0!==t.contents&&t.contents&&0<t.contents.length,n&&i)?e:void 0;var t,n,i}),(function(e){Object(J.f)(e)}))}));return Promise.all(i).then($.d)}Object(s.k)("_executeHoverProvider",(function(e,t){return Q(e,t,d.a.None)}));var ee=n(453),te=(ne.prototype.setHoverTime=function(e){this._hoverTime=e},ne.prototype._firstWaitTime=function(){return this._hoverTime/2},ne.prototype._secondWaitTime=function(){return this._hoverTime/2},ne.prototype._loadingMessageTime=function(){return 3*this._hoverTime},ne.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)((function(t){return e._computer.computeAsync(t)})),this._asyncComputationPromise.then((function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t)}),(function(t){return e._onError(t)}))):this._asyncComputationPromiseDone=!0},ne.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},ne.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},ne.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},ne.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},ne.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Object(J.e)(e)},ne.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},ne.prototype.start=function(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}},ne.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0},ne);function ne(e,t,n,i,o){var r=this;this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new ee.d((function(){return r._triggerAsyncComputation()}),0),this._secondWaitScheduler=new ee.d((function(){return r._triggerSyncComputation()}),0),this._loadingMessageScheduler=new ee.d((function(){return r._showLoadingMessage()}),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}var ie,oe,re=n(688),se=(ie=function(e,t){return(ie=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){function n(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae=(se(le,oe=k.a),Object.defineProperty(le.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),le.prototype.getId=function(){return this._id},le.prototype.getDomNode=function(){return this._containerDomNode},le.prototype.showAt=function(e,t,n){this._showAtPosition=e,this._showAtRange=t,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),(this._stoleFocus=n)&&this._containerDomNode.focus()},le.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},le.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},le.prototype.dispose=function(){this._editor.removeContentWidget(this),oe.prototype.dispose.call(this)},le.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).forEach((function(t){return e._editor.applyFontInfo(t)}))},le.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},le.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},le.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(34),n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},le);function le(e,t){var n=oe.call(this)||this;return n.allowEditorOverflow=!0,n._id=e,n._editor=t,n._isVisible=!1,n._stoleFocus=!1,n._containerDomNode=document.createElement("div"),n._containerDomNode.className="monaco-editor-hover hidden",n._containerDomNode.tabIndex=0,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover-content",n.scrollbar=new re.a(n._domNode,{}),n._register(n.scrollbar),n._containerDomNode.appendChild(n.scrollbar.getDomNode()),n.onkeydown(n._containerDomNode,(function(e){e.equals(9)&&n.hide()})),n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.onDidLayoutChange((function(e){return n.layout()})),n.layout(),n._editor.addContentWidget(n),n._showAtPosition=null,n._showAtRange=null,n._stoleFocus=!1,n}var ue,ce=(se(de,ue=k.a),Object.defineProperty(de.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),de.prototype.getId=function(){return this._id},de.prototype.getDomNode=function(){return this._domNode},de.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),o=this._editor.getOption(49),r=n-i-(this._domNode.clientHeight-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(r),0)+"px"},de.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},de.prototype.getPosition=function(){return null},de.prototype.dispose=function(){this._editor.removeOverlayWidget(this),ue.prototype.dispose.call(this)},de.prototype.updateFont=function(){var e=this;(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i})(Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))).forEach((function(t){return e._editor.applyFontInfo(t)}))},de.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},de);function de(e,t){var n=ue.call(this)||this;return n._id=e,n._editor=t,n._isVisible=!1,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover hidden",n._domNode.setAttribute("aria-hidden","true"),n._domNode.setAttribute("role","presentation"),n._showAtLineNumber=-1,n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.addOverlayWidget(n),n}var he,pe=n(915),fe=n(773),ge=n(554),me=n(636),ve=n(1052),ye=n(885),be=n(1116),_e=n(886),we=(he=function(e,t){return(he=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){function n(){this.constructor=e}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ce=c.a,Se=function(e,t,n){this.range=e,this.color=t,this.provider=n},Oe=function(e,t){this.range=e,this.marker=t},xe=(ke.prototype.setRange=function(e){this._range=e,this._result=[]},ke.prototype.clearResult=function(){this._result=[]},ke.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return m.p.has(t)?Q(t,new f.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},ke.prototype.computeSync=function(){var e=this;if(!this._editor.hasModel()||!this._range)return[];var t=this._editor.getModel(),n=this._range.startLineNumber;if(n>this._editor.getModel().getLineCount())return[];var i=y.ColorDetector.get(this._editor),o=t.getLineMaxColumn(n),r=this._editor.getLineDecorations(n),s=!1,l=this._range,u=r.map((function(r){var u=r.range.startLineNumber===n?r.range.startColumn:1,c=r.range.endLineNumber===n?r.range.endColumn:o;if(u>l.startColumn||l.endColumn>c)return null;var d=new a.a(l.startLineNumber,u,l.startLineNumber,c),h=e._markerDecorationsService.getMarker(t,r);if(h)return new Oe(d,h);var f=i.getColorData(r.range.getStartPosition());if(s||!f)return Object(p.b)(r.options.hoverMessage)?null:{contents:r.options.hoverMessage?Object($.b)(r.options.hoverMessage):[],range:d};s=!0;var g=f.colorInfo,m=g.color,v=g.range;return new Se(v,m,f.provider)}));return Object($.d)(u)},ke.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort((function(e,t){return e instanceof Se?-1:t instanceof Se?1:0}))):this._result.concat(e)},ke.prototype.getResult=function(){return this._result.slice(0)},ke.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},ke.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new p.a).appendText(i.a("modesContentHover.loading","Loading..."))]}},ke);function ke(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}var Ee,Ne={type:2,filter:{include:_e.b.QuickFix}},Le=(we(De,Ee=ae),De.prototype.dispose=function(){this._hoverOperation.cancel(),Ee.prototype.dispose.call(this)},De.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},De.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){for(var i=[],o=0,r=this._messages.length;o<r;o++){var s=this._messages[o],a=s.range;a&&a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s)}if(0<i.length){if(function(e,t){if(!(!e&&t||e&&!t||e.length!==t.length)){for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i instanceof Oe&&o instanceof Oe)return fe.a.makeKey(i.marker)===fe.a.makeKey(o.marker);if(i instanceof Se||o instanceof Se)return;if(i instanceof Oe||o instanceof Oe)return;if(!Object(p.c)(i.contents,o.contents))return}return 1}}(i,this._messages))return;this._renderMessages(e,i)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},De.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),Ee.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},De.prototype.isColorPickerVisible=function(){return!!this._colorPicker},De.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&0<this._messages.length?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},De.prototype._renderMessages=function(e,t){var n=this;this.renderDisposable.dispose(),this._colorPicker=null;var i=1073741824,o=t[0].range?a.a.lift(t[0].range):null,s=document.createDocumentFragment(),l=!0,u=!1,g=new r.b,m=[];if(t.forEach((function(e){if(e.range)if(i=Math.min(i,e.range.startColumn),o=o?a.a.plusRange(o,e.range):a.a.lift(e.range),e instanceof Se){u=!0;var t=e.color,f=t.red,y=t.green,b=t.blue,w=t.alpha,C=new h.c(Math.round(255*f),Math.round(255*y),Math.round(255*b),w),S=new h.a(C);if(!n._editor.hasModel())return;var O=n._editor.getModel(),x=new a.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),k={range:e.range,color:e.color},E=new _(S,[],0),N=new Z(s,E,n._editor.getOption(105),n._themeService);Object(v.a)(O,k,e.provider,d.a.None).then((function(t){if(E.colorPresentations=t||[],n._editor.hasModel()){var i=n._editor.getModel().getValueInRange(e.range);E.guessColorPresentation(S,i);var o=function(){var e,t;t=E.presentation.textEdit?(e=[E.presentation.textEdit],(t=new a.a(E.presentation.textEdit.range.startLineNumber,E.presentation.textEdit.range.startColumn,E.presentation.textEdit.range.endLineNumber,E.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+E.presentation.textEdit.text.length)):(e=[{identifier:null,range:x,text:E.presentation.label,forceMoveMarkers:!1}],x.setEndPosition(x.endLineNumber,x.startColumn+E.presentation.label.length)),n._editor.pushUndoStop(),n._editor.executeEdits("colorpicker",e),E.presentation.additionalTextEdits&&(e=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(E.presentation.additionalTextEdits),n._editor.executeEdits("colorpicker",e),n.hide()),n._editor.pushUndoStop(),x=t},l=function(t){return Object(v.a)(O,{range:x,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,d.a.None).then((function(e){E.colorPresentations=e||[]}))},u=E.onColorFlushed((function(e){l(e).then(o)})),c=E.onDidChangeColor(l);n._colorPicker=N,n.showAt(x.getStartPosition(),x,n._shouldFocus),n.updateContents(s),n._colorPicker.layout(),n.renderDisposable.value=Object(r.e)(u,c,N,g)}}))}else e instanceof Oe?(m.push(e),l=!1):e.contents.filter((function(e){return!Object(p.b)(e)})).forEach((function(e){var t=Ce("div.hover-row.markdown-hover"),i=c.q(t,Ce("div.hover-contents")),o=g.add(new pe.a(n._editor,n._modeService,n._openerService));g.add(o.onDidRenderCodeBlock((function(){i.className="hover-contents code-hover-contents",n.onContentsChange()})));var r=g.add(o.render(e));i.appendChild(r.element),s.appendChild(t),l=!1}))})),m.length){m.forEach((function(e){return s.appendChild(n.renderMarkerHover(e))}));var y=1===m.length?m[0]:m.sort((function(e,t){return fe.c.compare(e.marker.severity,t.marker.severity)}))[0];s.appendChild(this.renderMarkerStatusbar(y))}u||l||(this.showAt(new f.a(e.startLineNumber,i),o,this._shouldFocus),this.updateContents(s)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,o?[{range:o,options:De._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},De.prototype.renderMarkerHover=function(e){var t=this,n=Ce("div.hover-row"),i=c.q(n,Ce("div.marker.hover-contents")),o=e.marker,r=o.source,s=o.message,a=o.code,l=o.relatedInformation;this._editor.applyFontInfo(i);var u=c.q(i,Ce("span"));if(u.style.whiteSpace="pre-wrap",u.innerText=s,r||a)if("string"==typeof a)(d=c.q(i,Ce("span"))).style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=r&&a?r+"("+a+")":r||"("+a+")";else if(a){var d,h=Ce("span");r&&(c.q(h,Ce("span")).innerText=r),this._codeLink=c.q(h,Ce("a.code-link")),this._codeLink.setAttribute("href",a.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(a.link),e.preventDefault(),e.stopPropagation()},c.q(this._codeLink,Ce("span")).innerText=a.value,(d=c.q(i,h)).style.opacity="0.6",d.style.paddingLeft="6px"}if(Object($.q)(l))for(var p=function(e,n,o,r){var s=c.q(i,Ce("div"));s.style.marginTop="8px";var a=c.q(s,Ce("a"));a.innerText=Object(ge.b)(n)+"("+o+", "+r+"): ",a.style.cursor="pointer",a.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:o+","+r}),{fromUserGesture:!0}).catch(J.e)};var l=c.q(s,Ce("span"));l.innerText=e,f._editor.applyFontInfo(l)},f=this,g=0,m=l;g<m.length;g++){var v=m[g];p(v.message,v.resource,v.startLineNumber,v.startColumn)}return n},De.prototype.renderMarkerStatusbar=function(e){var t=this,n=Ce("div.hover-row.status-bar"),o=new r.b,s=c.q(n,Ce("div.actions"));e.marker.severity!==fe.c.Error&&e.marker.severity!==fe.c.Warning&&e.marker.severity!==fe.c.Info||o.add(this.renderAction(s,{label:i.a("peek problem","Peek Problem"),commandId:ve.NextMarkerAction.ID,run:function(){t.hide(),ve.MarkerController.get(t._editor).show(e.marker),t._editor.focus()}}));var a=c.q(s,Ce("div"));a.style.opacity="0",a.style.transition="opacity 0.2s",setTimeout((function(){return a.style.opacity="1"}),200),a.textContent=i.a("checkingForQuickFixes","Checking for quick fixes..."),o.add(Object(r.h)((function(){return a.remove()})));var l=this.getCodeActions(e.marker);return o.add(Object(r.h)((function(){return l.cancel()}))),l.then((function(e){if(a.style.transition="",a.style.opacity="1",!e.validActions.length)return e.dispose(),void(a.textContent=i.a("noQuickFixes","No quick fixes available"));a.remove();var n=!1;o.add(Object(r.h)((function(){n||e.dispose()}))),o.add(t.renderAction(s,{label:i.a("quick fixes","Quick Fix..."),commandId:be.e.Id,run:function(i){n=!0;var o=be.f.get(t._editor),r=c.C(i);o.showCodeActions(Ne,e,{x:r.left+6,y:r.top+r.height+6})}}))})),this.renderDisposable.value=o,n},De.prototype.getCodeActions=function(e){var t=this;return Object(ee.f)((function(n){return Object(ye.c)(t._editor.getModel(),new a.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),Ne,n)}))},De.prototype.renderAction=function(e,t){var n=c.q(e,Ce("div.action-container")),i=c.q(n,Ce("a.action"));t.iconClass&&c.q(i,Ce("span.icon."+t.iconClass));var o=c.q(i,Ce("span"));o.textContent=t.label;var r=this._keybindingService.lookupKeybinding(t.commandId);return r&&(o.title=t.label+" ("+r.getLabel()+")"),c.j(n,c.d.CLICK,(function(e){e.stopPropagation(),e.preventDefault(),t.run(n)}))},De.ID="editor.contrib.modesContentHoverWidget",De._DECORATION_OPTIONS=g.a.register({className:"hoverHighlight"}),De);function De(e,t,n,i,o,s){void 0===s&&(s=me.b);var a=Ee.call(this,De.ID,e)||this;return a._themeService=n,a._keybindingService=i,a._modeService=o,a._openerService=s,a.renderDisposable=a._register(new r.d),a._messages=[],a._lastRange=null,a._computer=new xe(a._editor,t),a._highlightDecorations=[],a._isChangingDecorations=!1,a._shouldFocus=!1,a._colorPicker=null,a._hoverOperation=new te(a._computer,(function(e){return a._withResult(e,!0)}),null,(function(e){return a._withResult(e,!1)}),a._editor.getOption(44).delay),a._register(c.o(a.getDomNode(),c.d.FOCUS,(function(){a._colorPicker&&c.f(a.getDomNode(),"colorpicker-hover")}))),a._register(c.o(a.getDomNode(),c.d.BLUR,(function(){c.P(a.getDomNode(),"colorpicker-hover")}))),a._register(e.onDidChangeConfiguration((function(e){a._hoverOperation.setHoverTime(a._editor.getOption(44).delay)}))),a._register(m.B.onDidChange((function(e){a.isVisible&&a._lastRange&&0<a._messages.length&&(a._domNode.textContent="",a._renderMessages(a._lastRange,a._messages))}))),a}Object(N.e)((function(e,t){var n=e.getColor(E.ec);n&&t.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+n+"; }")}));var Me,Te=(Me=function(e,t){return(Me=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){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ie=(Pe.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},Pe.prototype.clearResult=function(){this._result=[]},Pe.prototype.computeSync=function(){function e(e){return{value:e}}var t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.options.glyphMarginClassName){var s=r.options.glyphMarginHoverMessage;s&&!Object(p.b)(s)&&n.push.apply(n,Object($.b)(s).map(e))}}return n},Pe.prototype.onResult=function(e,t){this._result=this._result.concat(e)},Pe.prototype.getResult=function(){return this._result},Pe.prototype.getResultWithLoadingMessage=function(){return this.getResult()},Pe);function Pe(e){this._editor=e,this._lineNumber=-1,this._result=[]}var Ae,Re=(Te(je,Ae=ce),je.prototype.dispose=function(){this._hoverOperation.cancel(),Ae.prototype.dispose.call(this)},je.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},je.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},je.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),Ae.prototype.hide.call(this)},je.prototype._withResult=function(e){this._messages=e,0<this._messages.length?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},je.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),i=0,o=t;i<o.length;i++){var r=o[i],s=this._markdownRenderer.render(r.value);this._renderDisposeables.add(s),n.appendChild(Object(c.a)("div.hover-row",void 0,s.element))}this.updateContents(n),this.showAt(e)},je.ID="editor.contrib.modesGlyphHoverWidget",je);function je(e,t,n){void 0===n&&(n=me.b);var i=Ae.call(this,je.ID,e)||this;return i._renderDisposeables=i._register(new r.b),i._messages=[],i._lastLineNumber=-1,i._markdownRenderer=i._register(new pe.a(i._editor,t,n)),i._computer=new Ie(i._editor),i._hoverOperation=new te(i._computer,(function(e){return i._withResult(e)}),void 0,(function(e){return i._withResult(e)}),300),i}var Fe=n(1096),Be=n(531),We=n(1005);n.d(t,"ModesHoverController",(function(){return qe}));var Ve,ze=(Ve=function(e,t){return(Ve=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){function n(){this.constructor=e}Ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),He=function(e,t){return function(n,i){t(n,i,e)}},qe=(Object.defineProperty(Ue.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),Ue.get=function(e){return e.getContribution(Ue.ID)},Ue.prototype._hookEvents=function(){function e(){return t._hideWidgets()}var t=this,n=this._editor.getOption(44);this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),this._toUnhook.add(this._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),this._toUnhook.add(this._editor.onMouseMove((function(e){return t._onEditorMouseMove(e)}))),this._toUnhook.add(this._editor.onKeyDown((function(e){return t._onKeyDown(e)}))),this._toUnhook.add(this._editor.onDidChangeModelDecorations((function(){return t._onModelDecorationsChanged()})))):this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange((function(e){return t._onEditorScrollChanged(e)})))},Ue.prototype._unhookEvents=function(){this._toUnhook.clear()},Ue.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},Ue.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},Ue.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==Le.ID?12===t&&e.target.detail===Re.ID||(12!==t&&e.target.detail!==Re.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},Ue.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},Ue.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&9===t&&e.target.detail===Le.ID||this._isHoverSticky&&12===t&&e.target.detail===Re.ID)){if(7===t){var n=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"==typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}},Ue.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},Ue.prototype._hideWidgets=function(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())},Ue.prototype._createHoverWidgets=function(){this._contentWidget.value=new Le(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Re(this._editor,this._modeService,this._openerService)},Ue.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},Ue.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},Ue.ID="editor.contrib.hover",Ue=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([He(1,me.a),He(2,u.a),He(3,Fe.a),He(4,Be.a),He(5,N.c)],Ue));function Ue(e,t,n,i,o,s){var a=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=o,this._themeService=s,this._toUnhook=new r.b,this._contentWidget=new r.d,this._glyphWidget=new r.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(44)&&(a._hideWidgets(),a._unhookEvents(),a._hookEvents())}))}var Ke,Ge=(ze(Ye,Ke=s.b),Ye.prototype.run=function(e,t){if(t.hasModel()){var n=qe.get(t);if(n){var i=t.getPosition(),o=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),r=2===t.getOption(2);n.showContentHover(o,1,r)}}},Ye);function Ye(){return Ke.call(this,{id:"editor.action.showHover",label:i.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:l.a.editorTextFocus,primary:Object(o.a)(2089,2087),weight:100}})||this}var Ze,Xe=(ze($e,Ze=s.b),$e.prototype.run=function(e,t){var n=qe.get(t);if(n){var i=t.getPosition();if(i){var o=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),r=We.GotoDefinitionAtPositionEditorContribution.get(t).startFindDefinitionFromCursor(i);r?r.then((function(){n.showContentHover(o,1,!0)})):n.showContentHover(o,1,!0)}}},$e);function $e(){return Ze.call(this,{id:"editor.action.showDefinitionPreviewHover",label:i.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}Object(s.h)(qe.ID,qe),Object(s.f)(Ge),Object(s.f)(Xe),Object(N.e)((function(e,t){var n=e.getColor(E.D);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(E.A);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(E.B);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+o.transparent(.5)+"; }"));var r=e.getColor(E.ec);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(E.C);s&&t.addRule(".monaco-editor .monaco-editor-hover { color: "+s+"; }");var a=e.getColor(E.E);a&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+a+"; }");var l=e.getColor(E.dc);l&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+l+"; }")}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(548),r=n(927),s=n(449),a=n(794),l=n(444),u=n(704),c=n(440),d=(h.prototype.getEditOperations=function(e,t){for(var n=function(e,t){t.sort((function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber}));for(var n=t.length-2;0<=n;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,d=e.getLineCount();a<=d;a++){var h=e.getLineContent(a),p=h.length+1,f=0;if(!(r<s&&t[r].lineNumber===a&&(f=t[r].column,r++,f===p))&&0!==h.length){var g=l.D(h),m=0;if(-1===g)m=1;else{if(g===h.length-1)continue;m=g+2}m=Math.max(f,m),i[o++]=u.a.delete(new c.a(a,m,a,p))}}return i}(e,this._cursors),i=0,o=n.length;i<o;i++){var r=n[i];t.addEditOperation(r.range,r.text)}this._selectionId=t.trackSelection(this._selection)},h.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},h);function h(e,t){this._selection=e,this._cursors=t,this._selectionId=null}var p=n(974),f=n(450),g=n(466),m=n(469),v=(y.prototype.getEditOperations=function(e,t){var n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));for(var i=[],o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));var r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new c.a(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new c.a(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()},y.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var i=n.startLineNumber,o=n.startColumn,r=n.endLineNumber,s=n.endColumn;0!==this._startLineNumberDelta&&(i+=this._startLineNumberDelta,o=1),0!==this._endLineNumberDelta&&(r+=this._endLineNumberDelta,s=1),n=g.a.createWithDirection(i,o,r,s,this._selectionDirection)}return n},y);function y(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}var b=n(1085),_=n(825),w=n(575);function C(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function S(e,t,n){e=e<0?0:e;var i="";if(!n){var o=Math.floor(e/t);e%=t;for(var r=0;r<o;r++)i+="\t"}for(r=0;r<e;r++)i+=" ";return i}var O=(x.prototype.getEditOperations=function(e,t){var n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)this._selectionId=t.trackSelection(this._selection);else if(this._isMovingDown||1!==this._selection.startLineNumber){this._moveEndPositionDown=!1;var i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var o=e.getOptions(),r=o.tabSize,s=o.indentSize,a=o.insertSpaces,u=this.buildIndentConverter(r,s,a),d={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){var h=i.startLineNumber,p=this._isMovingDown?h+1:h-1;1===e.getLineMaxColumn(p)?t.addEditOperation(new c.a(1,1,1,1),null):(t.addEditOperation(new c.a(h,1,h,1),e.getLineContent(p)),t.addEditOperation(new c.a(p,1,p,e.getLineMaxColumn(p)),null)),i=new g.a(p,1,p,1)}else{var f,m=void 0;if(this._isMovingDown){f=i.endLineNumber+1,m=e.getLineContent(f),t.addEditOperation(new c.a(f-1,e.getLineMaxColumn(f-1),f,e.getLineMaxColumn(f)),null);var v=m;if(this.shouldAutoIndent(e,i)){var y=this.matchEnterRule(e,u,r,f,i.startLineNumber-1);if(null!==y){var b=S(L=y+C(O=l.t(e.getLineContent(f)),r),r,a);v=b+this.trimLeft(m)}else{d.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(f):e.getLineContent(t)};var _=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),i.startLineNumber,u);if(null!==_){var O=l.t(e.getLineContent(f));(L=C(_,r))!==(D=C(O,r))&&(b=S(L,r,a),v=b+this.trimLeft(m))}}if(t.addEditOperation(new c.a(i.startLineNumber,1,i.startLineNumber,1),v+"\n"),null!==(E=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber,v)))0!==E&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,E);else{d.getLineContent=function(t){return t===i.startLineNumber?v:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var x=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),i.startLineNumber+1,u);if(null!==x&&(O=l.t(e.getLineContent(i.startLineNumber)),(L=C(x,r))!==(D=C(O,r)))){var k=L-D;this.getIndentEditsOfMovingBlock(e,t,i,r,a,k)}}}else t.addEditOperation(new c.a(i.startLineNumber,1,i.startLineNumber,1),v+"\n")}else{var E;if(f=i.startLineNumber-1,m=e.getLineContent(f),t.addEditOperation(new c.a(f,1,f+1,1),null),t.addEditOperation(new c.a(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+m),this.shouldAutoIndent(e,i))if(d.getLineContent=function(t){return t===f?e.getLineContent(i.startLineNumber):e.getLineContent(t)},null!==(E=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber-2)))0!==E&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,E);else{var N=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(i.startLineNumber,1),f,u);if(null!==N){var L,D,M=l.t(e.getLineContent(i.startLineNumber));(L=C(N,r))!==(D=C(M,r))&&(k=L-D,this.getIndentEditsOfMovingBlock(e,t,i,r,a,k))}}}}this._selectionId=t.trackSelection(i)}else this._selectionId=t.trackSelection(this._selection)},x.prototype.buildIndentConverter=function(e,t,n){return{shiftIndent:function(i){return b.a.shiftIndent(i,i.length+1,e,t,n)},unshiftIndent:function(i){return b.a.unshiftIndent(i,i.length+1,e,t,n)}}},x.prototype.matchEnterRule=function(e,t,n,i,o,r){for(var s=o;1<=s;){var a;if(a=s===o&&void 0!==r?r:e.getLineContent(s),0<=l.D(a))break;s--}if(s<1||i>e.getLineCount())return null;var u=e.getLineMaxColumn(s),d=w.a.getEnterAction(this._autoIndent,e,new c.a(s,u,s,u));if(d){var h=d.indentation;d.indentAction===_.a.None||d.indentAction===_.a.Indent?h=d.indentation+d.appendText:d.indentAction===_.a.IndentOutdent?h=d.indentation:d.indentAction===_.a.Outdent&&(h=t.unshiftIndent(d.indentation)+d.appendText);var p=e.getLineContent(i);if(0<=this.trimLeft(p).indexOf(this.trimLeft(h))){var f=l.t(e.getLineContent(i)),g=l.t(h),m=w.a.getIndentMetadata(e,i);return null!==m&&2&m&&(g=t.unshiftIndent(g)),C(g,n)-C(f,n)}}return null},x.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},x.prototype.shouldAutoIndent=function(e,t){if(this._autoIndent<4)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==w.a.getIndentRulesSupport(n)},x.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=e.getLineContent(s),u=l.t(a),d=S(C(u,i)+r,i,o);d!==u&&(t.addEditOperation(new c.a(s,1,s,u.length+1),d),s===n.endLineNumber&&n.endColumn<=u.length+1&&""===d&&(this._moveEndLineSelectionShrink=!0))}},x.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n},x);function x(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}var k=(E.getCollator=function(){return E._COLLATOR||(E._COLLATOR=new Intl.Collator),E._COLLATOR},E.prototype.getEditOperations=function(e,t){var n,i,o=(i=N(n=e,this.selection,this.descending))?u.a.replace(new c.a(i.startLineNumber,1,i.endLineNumber,n.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null;o&&t.addEditOperation(o.range,o.text),this.selectionId=t.trackSelection(this.selection)},E.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},E.canRun=function(e,t,n){if(null===e)return!1;var i=N(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o<r;o++)if(i.before[o]!==i.after[o])return!0;return!1},E._COLLATOR=null,E);function E(e,t){this.selection=e,this.descending=t,this.selectionId=null}function N(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,o<=i)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(k.getCollator().compare),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}n.d(t,"DuplicateSelectionAction",(function(){return V})),n.d(t,"AbstractSortLinesAction",(function(){return Q})),n.d(t,"SortLinesAscendingAction",(function(){return ne})),n.d(t,"SortLinesDescendingAction",(function(){return re})),n.d(t,"TrimTrailingWhitespaceAction",(function(){return le})),n.d(t,"DeleteLinesAction",(function(){return de})),n.d(t,"IndentLinesAction",(function(){return fe})),n.d(t,"InsertLineBeforeAction",(function(){return _e})),n.d(t,"InsertLineAfterAction",(function(){return Se})),n.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return ke})),n.d(t,"DeleteAllLeftAction",(function(){return Le})),n.d(t,"DeleteAllRightAction",(function(){return Te})),n.d(t,"JoinLinesAction",(function(){return Ae})),n.d(t,"TransposeAction",(function(){return Fe})),n.d(t,"AbstractCaseAction",(function(){return Ve})),n.d(t,"UpperCaseAction",(function(){return qe})),n.d(t,"LowerCaseAction",(function(){return Ge})),n.d(t,"TitleCaseAction",(function(){return Xe}));var L,D,M=(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){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=(M(I,D=s.b),I.prototype.run=function(e,t){for(var n=[],i=0,o=t.getSelections()||[];i<o.length;i++){var r=o[i];n.push(new v(r,this.down))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},I);function I(e,t){var n=D.call(this,t)||this;return n.down=e,n}var P,A=(M(R,P=T),R);function R(){return P.call(this,!1,{id:"editor.action.copyLinesUpAction",label:i.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}var j,F=(M(B,j=T),B);function B(){return j.call(this,!0,{id:"editor.action.copyLinesDownAction",label:i.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}var W,V=(M(z,W=s.b),z.prototype.run=function(e,t,n){if(t.hasModel()){for(var i=[],o=t.getSelections(),r=t.getModel(),s=0,l=o;s<l.length;s++){var u=l[s];if(u.isEmpty())i.push(new v(u,!0));else{var c=new g.a(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn);i.push(new a.c(c,r.getValueInRange(u)))}}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},z);function z(){return W.call(this,{id:"editor.action.duplicateSelection",label:i.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.a.writable,menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}var H,q=(M(U,H=s.b),U.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=t.getOption(8),r=0,s=i;r<s.length;r++){var a=s[r];n.push(new O(a,this.down,o))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},U);function U(e,t){var n=H.call(this,t)||this;return n.down=e,n}var K,G=(M(Y,K=q),Y);function Y(){return K.call(this,!1,{id:"editor.action.moveLinesUpAction",label:i.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}var Z,X=(M($,Z=q),$);function $(){return Z.call(this,!0,{id:"editor.action.moveLinesDownAction",label:i.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}var J,Q=(M(ee,J=s.b),ee.prototype.run=function(e,t){for(var n=t.getSelections()||[],i=0,o=n;i<o.length;i++){var r=o[i];if(!k.canRun(t.getModel(),r,this.descending))return}for(var s=[],a=0,l=n.length;a<l;a++)s[a]=new k(n[a],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()},ee);function ee(e,t){var n=J.call(this,t)||this;return n.descending=e,n}var te,ne=(M(ie,te=Q),ie);function ie(){return te.call(this,!1,{id:"editor.action.sortLinesAscending",label:i.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.a.writable})||this}var oe,re=(M(se,oe=Q),se);function se(){return oe.call(this,!0,{id:"editor.action.sortLinesDescending",label:i.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.a.writable})||this}var ae,le=(M(ue,ae=s.b),ue.prototype.run=function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map((function(e){return new f.a(e.positionLineNumber,e.positionColumn)})));var o=t.getSelection();if(null!==o){var r=new d(o,i);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}},ue.ID="editor.action.trimTrailingWhitespace",ue);function ue(){return ae.call(this,{id:ue.ID,label:i.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:Object(o.a)(2089,2102),weight:100}})||this}var ce,de=(M(he,ce=s.b),he.prototype.run=function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),i=t.getModel();if(1!==i.getLineCount()||1!==i.getLineMaxColumn(1)){for(var o=0,r=[],s=[],a=0,l=n.length;a<l;a++){var c=n[a],d=c.startLineNumber,h=c.endLineNumber,p=1,f=i.getLineMaxColumn(h);h<i.getLineCount()?(h+=1,f=1):1<d&&(--d,p=i.getLineMaxColumn(d)),r.push(u.a.replace(new g.a(d,p,h,f),"")),s.push(new g.a(d-o,c.positionColumn,d-o,c.positionColumn)),o+=c.endLineNumber-c.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}},he.prototype._getLinesToRemove=function(e){var t=e.getSelections().map((function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&--t,{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort((function(e,t){return e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber}));for(var n=[],i=t[0],o=1;o<t.length;o++)i.endLineNumber+1>=t[o].startLineNumber?i.endLineNumber=t[o].endLineNumber:(n.push(i),i=t[o]);return n.push(i),n},he);function he(){return ce.call(this,{id:"editor.action.deleteLines",label:i.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:3113,weight:100}})||this}var pe,fe=(M(ge,pe=s.b),ge.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop())},ge);function ge(){return pe.call(this,{id:"editor.action.indentLines",label:i.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2137,weight:100}})||this}var me,ve=(M(ye,me=s.b),ye.prototype.run=function(e,t){r.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)},ye);function ye(){return me.call(this,{id:"editor.action.outdentLines",label:i.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2135,weight:100}})||this}var be,_e=(M(we,be=s.b),we.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertBefore(n.context.config,t.getModel(),t.getSelections())))},we);function we(){return be.call(this,{id:"editor.action.insertLineBefore",label:i.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:3075,weight:100}})||this}var Ce,Se=(M(Oe,Ce=s.b),Oe.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertAfter(n.context.config,t.getModel(),t.getSelections())))},Oe);function Oe(){return Ce.call(this,{id:"editor.action.insertLineAfter",label:i.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2051,weight:100}})||this}var xe,ke=(M(Ee,xe=s.b),Ee.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelection(),i=this._getRangesToDelete(t),o=[],r=0,s=i.length-1;r<s;r++){var a=i[r],l=i[r+1];null===c.a.intersectRanges(a,l)?o.push(a):i[r+1]=c.a.plusRange(a,l)}o.push(i[i.length-1]);var d=this._getEndCursorState(n,o),h=o.map((function(e){return u.a.replace(e,"")}));t.pushUndoStop(),t.executeEdits(this.id,h,d),t.pushUndoStop()}},Ee);function Ee(){return null!==xe&&xe.apply(this,arguments)||this}var Ne,Le=(M(De,Ne=ke),De.prototype._getEndCursorState=function(e,t){var n=null,i=[],o=0;return t.forEach((function(t){var r;if(1===t.endColumn&&0<o){var s=t.startLineNumber-o;r=new g.a(s,t.startColumn,s,t.startColumn)}else r=new g.a(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:i.push(r)})),n&&i.unshift(n),i},De.prototype._getRangesToDelete=function(e){var t=e.getSelections();if(null===t)return[];var n=t,i=e.getModel();return null===i?[]:(n.sort(c.a.compareRangesUsingStarts),n=n.map((function(e){if(e.isEmpty()){if(1!==e.startColumn)return new c.a(e.startLineNumber,1,e.startLineNumber,e.startColumn);var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new c.a(t,n,e.startLineNumber,1)}return new c.a(e.startLineNumber,1,e.endLineNumber,e.endColumn)})))},De);function De(){return Ne.call(this,{id:"deleteAllLeft",label:i.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this}var Me,Te=(M(Ie,Me=ke),Ie.prototype._getEndCursorState=function(e,t){for(var n=null,i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=new g.a(+s.startLineNumber,s.startColumn,+s.startLineNumber,s.startColumn);s.intersectRanges(e)?n=a:i.push(a)}return n&&i.unshift(n),i},Ie.prototype._getRangesToDelete=function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var i=n.map((function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new c.a(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c.a(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e}));return i.sort(c.a.compareRangesUsingStarts),i},Ie);function Ie(){return Me.call(this,{id:"deleteAllRight",label:i.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this}var Pe,Ae=(M(Re,Pe=s.b),Re.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getSelection();if(null!==i){n.sort(c.a.compareRangesUsingStarts);var o=[],r=n.reduce((function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)}));o.push(r);var s=t.getModel();if(null!==s){for(var a=[],l=[],d=i,h=0,p=0,f=o.length;p<f;p++){var m=o[p],v=m.startLineNumber,y=0,b=void 0,_=void 0,w=s.getLineContent(m.endLineNumber).length-m.endColumn;if(m.isEmpty()||m.startLineNumber===m.endLineNumber){var C=m.getStartPosition();_=C.lineNumber<s.getLineCount()?(b=v+1,s.getLineMaxColumn(b)):(b=C.lineNumber,s.getLineMaxColumn(C.lineNumber))}else b=m.endLineNumber,_=s.getLineMaxColumn(b);for(var S=s.getLineContent(v),O=v+1;O<=b;O++){var x=s.getLineContent(O),k=s.getLineFirstNonWhitespaceColumn(O);if(1<=k){var E=!0;""===S&&(E=!1),!E||" "!==S.charAt(S.length-1)&&"\t"!==S.charAt(S.length-1)||(E=!1,S=S.replace(/[\s\uFEFF\xA0]+$/g," "));var N=x.substr(k-1);S+=(E?" ":"")+N,y=E?N.length+1:N.length}else y=0}var L=new c.a(v,1,b,_);if(!L.isEmpty()){var D;D=m.isEmpty()?(a.push(u.a.replace(L,S)),new g.a(L.startLineNumber-h,S.length-y+1,v-h,S.length-y+1)):m.startLineNumber===m.endLineNumber?(a.push(u.a.replace(L,S)),new g.a(m.startLineNumber-h,m.startColumn,m.endLineNumber-h,m.endColumn)):(a.push(u.a.replace(L,S)),new g.a(m.startLineNumber-h,m.startColumn,m.startLineNumber-h,S.length-w)),null!==c.a.intersectRanges(L,i)?d=D:l.push(D)}h+=L.endLineNumber-L.startLineNumber}l.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}}},Re);function Re(){return Pe.call(this,{id:"editor.action.joinLines",label:i.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this}var je,Fe=(M(Be,je=s.b),Be.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=[],r=0,s=n.length;r<s;r++){var l=n[r];if(l.isEmpty()){var u=l.getStartPosition(),d=i.getLineMaxColumn(u.lineNumber);if(u.column>=d){if(u.lineNumber===i.getLineCount())continue;var h=new c.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),p=i.getValueInRange(h).split("").reverse().join("");o.push(new a.a(new g.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),p))}else h=new c.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),p=i.getValueInRange(h).split("").reverse().join(""),o.push(new a.b(h,p,new g.a(u.lineNumber,u.column+1,u.lineNumber,u.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}},Be);function Be(){return je.call(this,{id:"editor.action.transpose",label:i.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:m.a.writable})||this}var We,Ve=(M(ze,We=s.b),ze.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=t.getOption(96),r=[],s=0,l=n.length;s<l;s++){var u=n[s];if(u.isEmpty()){var d=u.getStartPosition(),h=i.getWordAtPosition(d);if(!h)continue;var p=new c.a(d.lineNumber,h.startColumn,d.lineNumber,h.endColumn),f=i.getValueInRange(p);r.push(new a.b(p,this._modifyText(f,o),new g.a(d.lineNumber,d.column,d.lineNumber,d.column)))}else f=i.getValueInRange(u),r.push(new a.b(u,this._modifyText(f,o),u))}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}},ze);function ze(){return null!==We&&We.apply(this,arguments)||this}var He,qe=(M(Ue,He=Ve),Ue.prototype._modifyText=function(e,t){return e.toLocaleUpperCase()},Ue);function Ue(){return He.call(this,{id:"editor.action.transformToUppercase",label:i.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.a.writable})||this}var Ke,Ge=(M(Ye,Ke=Ve),Ye.prototype._modifyText=function(e,t){return e.toLocaleLowerCase()},Ye);function Ye(){return Ke.call(this,{id:"editor.action.transformToLowercase",label:i.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.a.writable})||this}var Ze,Xe=(M($e,Ze=Ve),$e.prototype._modifyText=function(e,t){for(var n=("\r\n\t "+t).split(""),i="",o=!0,r=0;r<e.length;r++){var s=e[r];0<=n.indexOf(s)?(o=!0,i+=s):o?(o=!1,i+=s.toLocaleUpperCase()):i+=s.toLocaleLowerCase()}return i},$e);function $e(){return Ze.call(this,{id:"editor.action.transformToTitlecase",label:i.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.a.writable})||this}Object(s.f)(A),Object(s.f)(F),Object(s.f)(V),Object(s.f)(G),Object(s.f)(X),Object(s.f)(ne),Object(s.f)(re),Object(s.f)(le),Object(s.f)(de),Object(s.f)(fe),Object(s.f)(ve),Object(s.f)(_e),Object(s.f)(Se),Object(s.f)(Le),Object(s.f)(Te),Object(s.f)(Ae),Object(s.f)(Fe),Object(s.f)(qe),Object(s.f)(Ge),Object(s.f)(Xe)},function(e,t,n){"use strict";n.r(t);var i=n(453),o=n(446),r=n(439),s=n(761),a=n(449),l=n(454),u=n(459),c=n(484),d=n(479),h=n(598),p=(f.prototype.dispose=function(){this._disposables.dispose()},f.prototype.add=function(e,t){this._disposables.add(e);for(var n=0,i=e.lenses;n<i.length;n++){var o=i[n];this.lenses.push({symbol:o,provider:t})}},f);function f(){this.lenses=[],this._disposables=new r.b}function g(e,t){var n=l.b.ordered(e),i=new Map,r=new p,s=n.map((function(n,s){return i.set(n,s),Promise.resolve(n.provideCodeLenses(e,t)).then((function(e){return e&&r.add(e,n)})).catch(o.f)}));return Promise.all(s).then((function(){return r.lenses=Object(u.r)(r.lenses,(function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0})),r}))}Object(a.j)("_executeCodeLensProvider",(function(e,t){var n=t.resource,i=t.itemResolveCount;if(!(n instanceof d.a))throw Object(o.b)();var s=e.get(h.a).getModel(n);if(!s)throw Object(o.b)();var a=[],l=new r.b;return g(s,c.a.None).then((function(e){l.add(e);for(var t=[],n=function(e){void 0===i||Boolean(e.symbol.command)?a.push(e.symbol):0<i--&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(s,e.symbol,c.a.None)).then((function(t){return a.push(t||e.symbol)})))},o=0,r=e.lenses;o<r.length;o++)n(r[o]);return Promise.all(t)})).then((function(){return a})).finally((function(){setTimeout((function(){return l.dispose()}),100)}))})),n(1326);var m=n(443),v=n(890),y=n(444),b=n(440),_=n(495),w=n(572),C=n(461),S=n(451),O=(x.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},x);function x(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}var k=(E.prototype.withCommands=function(e,t){this._commands.clear();for(var n="",i=!1,o=0;o<e.length;o++){var r=e[o];if(r&&(i=!0,r.command)){var s=Object(v.c)(Object(y.o)(r.command.title));r.command.id?(n+="<a id="+o+">"+s+"</a>",this._commands.set(String(o),r.command)):n+="<span>"+s+"</span>",o+1<e.length&&(n+="<span> | </span>")}}i?(n=n||" ",this._domNode.innerHTML=n,this._isEmpty&&t&&m.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},E.prototype.getCommand=function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0},E.prototype.getId=function(){return this._id},E.prototype.getDomNode=function(){return this._domNode},E.prototype.updatePosition=function(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}},E.prototype.getPosition=function(){return this._widgetPosition||null},E._idPool=0,E);function E(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+E._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}var N=(L.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},L.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},L.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n])},L);function L(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}var D=(M.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new k(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},M.prototype.dispose=function(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},M.prototype.isDisposed=function(){return this._isDisposed},M.prototype.isValid=function(){var e=this;return this._decorationIds.some((function(t,n){var i=e._editor.getModel().getDecorationRange(t),o=e._data[n].symbol;return!(!i||b.a.isEmpty(o.range)!==i.isEmpty())}))},M.prototype.updateCodeLensSymbols=function(e,t){var n=this;this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((function(e,i){t.addDecoration({range:e.symbol.range,options:_.a.EMPTY},(function(e){return n._decorationIds[i]=e}))}))},M.prototype.computeIfNecessary=function(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var t=0;t<this._decorationIds.length;t++){var n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data},M.prototype.updateCommands=function(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(var t=0;t<this._data.length;t++){var n=e[t];if(n){var i=this._data[t].symbol;i.command=n.command||i.command}}},M.prototype.getCommand=function(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)},M.prototype.getLineNumber=function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1},M.prototype.update=function(e){if(this.isValid()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},M);function M(e,t,n,i,o,r){var s,a=this;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];var l=[];this._data.forEach((function(e,t){e.symbol.command&&l.push(e.symbol),i.addDecoration({range:e.symbol.range,options:_.a.EMPTY},(function(e){return a._decorationIds[t]=e})),s=s?b.a.plusRange(s,e.symbol.range):b.a.lift(e.symbol.range)})),this._viewZone=new O(s.startLineNumber-1,r),this._viewZoneId=o.addZone(this._viewZone),0<l.length&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}Object(S.e)((function(e,t){var n=e.getColor(w.e);n&&(t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }"),t.addRule(".monaco-editor .codelens-decoration .codicon { color: "+n+"; }"));var i=e.getColor(C.n);i&&(t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+i+" !important; }"),t.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+i+" !important; }"))}));var T=n(489),I=n(532),P=n(448),A=n(792),R=n(553),j=n(775),F=n(880),B=Object(P.c)("ICodeLensCache"),W=function(e,t){this.lineCount=e,this.data=t},V=(z.prototype.put=function(e,t){var n=t.lenses.map((function(e){var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),i=new p;i.add({lenses:n,dispose:function(){}},this._fakeProvider);var o=new W(e.getLineCount(),i);this._cache.set(e.uri.toString(),o)},z.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},z.prototype.delete=function(e){this._cache.delete(e.uri.toString())},z.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach((function(t,n){for(var i=new Set,o=0,r=t.data.lenses;o<r.length;o++){var s=r[o];i.add(s.symbol.range.startLineNumber)}e[n]={lineCount:t.lineCount,lines:Object(R.e)(i)}})),JSON.stringify(e)},z.prototype._deserialize=function(e){try{var t=JSON.parse(e);for(var n in t){for(var i=t[n],o=[],r=0,s=i.lines;r<s.length;r++){var a=s[r];o.push({range:new b.a(a,1,a,11)})}var l=new p;l.add({lenses:o,dispose:function(){}},this._fakeProvider),this._cache.set(n,new W(i.lineCount,l))}}catch(e){}},z=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,j.a)],z));function z(e){var t=this;function n(){}this._fakeProvider=(n.prototype.provideCodeLenses=function(){throw new Error("not supported")},new n),this._cache=new R.a(20,.75),Object(i.k)((function(){return e.remove("codelens/cache",1)}));var o="codelens/cache2",r=e.get(o,1,"{}");this._deserialize(r),Object(F.a)(e.onWillSaveState)((function(n){n.reason===j.c.SHUTDOWN&&e.store(o,t._serialize(),1)}))}Object(A.b)(B,V);var H=n(952);n.d(t,"CodeLensContribution",(function(){return K}));var q=function(e,t){return function(n,i){t(n,i,e)}},U=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},K=(G.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(r.f)(this._currentCodeLensModel)},G.prototype._updateLensStyle=function(){var e=this._editor.getOptions(),t=e.get(34),n=e.get(49),i=Math.round(1.1*n),o=Math.round(.9*t.fontSize),r="\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" { height: "+i+"px; line-height: "+n+"px; font-size: "+o+"px; padding-right: "+Math.round(.45*t.fontSize)+"px;}\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" > a > .codicon { line-height: "+n+"px; font-size: "+o+"px; }\n\t\t";this._styleElement.innerHTML=r},G.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(r.f)(this._currentCodeLensModel)},G.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled){var n=this._codeLensCache.get(t);if(n&&this._renderCodeLensSymbols(n),l.b.has(t)){for(var a=0,u=l.b.all(t);a<u.length;a++){var c=u[a];if("function"==typeof c.onDidChange){var d=c.onDidChange((function(){return p.schedule()}));this._localToDispose.add(d)}}var h=this._detectVisibleLenses=new i.d((function(){return e._onViewportChanged()}),250),p=new i.d((function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=Object(i.f)((function(e){return g(t,e)})),e._currentFindCodeLensSymbolsPromise.then((function(i){n===e._modelChangeCounter&&(e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=i,e._codeLensCache.put(t,i),e._renderCodeLensSymbols(i),h.schedule())}),o.e)}),250);this._localToDispose.add(p),this._localToDispose.add(h),this._localToDispose.add(this._editor.onDidChangeModelContent((function(){e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){var i=[],o=-1;e._lenses.forEach((function(e){e.isValid()&&o!==e.getLineNumber()?(e.update(n),o=e.getLineNumber()):i.push(e)}));var r=new N;i.forEach((function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1)})),r.commit(t)}))})),h.schedule(),p.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((function(t){t.scrollTopChanged&&0<e._lenses.length&&h.schedule()}))),this._localToDispose.add(this._editor.onDidLayoutChange((function(){h.schedule()}))),this._localToDispose.add(Object(r.h)((function(){if(e._editor.getModel()){var t=s.c.capture(e._editor);e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){e._disposeAllLenses(t,n)}))})),t.restore(e._editor)}else e._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseUp((function(t){var n;if(9===t.target.type){var i=t.target.element;if("SPAN"===(null==i?void 0:i.tagName)&&(i=i.parentElement),"A"===(null==i?void 0:i.tagName))for(var o=0,r=e._lenses;o<r.length;o++){var s=r[o].getCommand(i);if(s){(n=e._commandService).executeCommand.apply(n,U([s.id],s.arguments||[])).catch((function(t){return e._notificationService.error(t)}));break}}}}))),p.schedule()}else n&&this._localToDispose.add(Object(i.g)((function(){var i=e._codeLensCache.get(t);n===i&&(e._codeLensCache.delete(t),e._onModelChange())}),3e4))}},G.prototype._disposeAllLenses=function(e,t){for(var n=new N,i=0,o=this._lenses;i<o.length;i++)o[i].dispose(n,t);e&&n.commit(e),this._lenses=[]},G.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.hasModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,a=e.lenses;r<a.length;r++){var l=a[r],u=l.symbol.range.startLineNumber;u<1||i<u||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(l):(n=[l],o.push(n)))}var c=s.c.capture(this._editor);this._editor.changeDecorations((function(e){t._editor.changeViewZones((function(n){for(var i=new N,r=0,s=0;s<o.length&&r<t._lenses.length;){var a=o[s][0].symbol.range.startLineNumber,l=t._lenses[r].getLineNumber();l<a?(t._lenses[r].dispose(i,n),t._lenses.splice(r,1)):l===a?(t._lenses[r].updateCodeLensSymbols(o[s],i),s++,r++):(t._lenses.splice(r,0,new D(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),r++,s++)}for(;r<t._lenses.length;)t._lenses[r].dispose(i,n),t._lenses.splice(r,1);for(;s<o.length;)t._lenses.push(new D(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),s++;i.commit(e)}))})),c.restore(this._editor)}},G.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var t=this._editor.getModel();if(t){var n=[],r=[];if(this._lenses.forEach((function(e){var i=e.computeIfNecessary(t);i&&(n.push(i),r.push(e))})),0!==n.length){var s=Object(i.f)((function(e){var i=n.map((function(n,i){var s=new Array(n.length),a=n.map((function(n,i){return n.symbol.command||"function"!=typeof n.provider.resolveCodeLens?(s[i]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then((function(e){s[i]=e}),o.f)}));return Promise.all(a).then((function(){e.isCancellationRequested||r[i].isDisposed()||r[i].updateCommands(s)}))}));return Promise.all(i)}));this._currentResolveCodeLensSymbolsPromise=s,this._currentResolveCodeLensSymbolsPromise.then((function(){e._currentCodeLensModel&&e._codeLensCache.put(t,e._currentCodeLensModel),e._oldCodeLensModels.clear(),s===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}),(function(t){Object(o.e)(t),s===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}))}}},G.ID="css.editor.codeLens",G=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([q(1,T.b),q(2,I.a),q(3,B)],G));function G(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=i,this._globalToDispose=new r.b,this._localToDispose=new r.b,this._lenses=[],this._oldCodeLensModels=new r.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeModelLanguage((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(){var e=o._isEnabled;o._isEnabled=o._editor.getOption(11),e!==o._isEnabled&&o._onModelChange()}))),this._globalToDispose.add(l.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&o._updateLensStyle()}))),this._onModelChange(),this._styleClassName=Object(H.a)(this._editor.getId()).toString(16),this._styleElement=m.w(m.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}Object(a.h)(K.ID,K)},function(e,t,n){"use strict";n.r(t);var i=n(459),o=n(484),r=n(548),s=n(439),a=n(449),l=n(504),u=n(790),c=n(440),d=n(469),h=n(454),p=n(758),f=n(635),g=n(446),m=n(479),v=n(761),y=n(892),b=n(450),_=n(466),w=n(598),C=n(704),S=(O._handleEolEdits=function(e,t){for(var n=void 0,i=[],o=0,r=t;o<r.length;o++){var s=r[o];"number"==typeof s.eol&&(n=s.eol),s.range&&"string"==typeof s.text&&i.push(s)}return"number"==typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i},O._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range);return n.getFullModelRange().equalsRange(i)},O.execute=function(e,t){e.pushUndoStop();var n=O._handleEolEdits(e,t);1===n.length&&O._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map((function(e){return C.a.replace(c.a.lift(e.range),e.text)}))):e.executeEdits("formatEditsCommand",n.map((function(e){return C.a.replaceMove(c.a.lift(e.range),e.text)}))),e.pushUndoStop()},O);function O(){}var x=n(445),k=(E.toKey=function(e){return"string"==typeof e?e.toLowerCase():e._lower},E);function E(e){this.value=e,this._lower=e.toLowerCase()}var N=n(448),L=n(786),D=n(489),M=n(465),T=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},I=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};function P(e){if((e=e.filter((function(e){return e.range}))).length){for(var t=e[0].range,n=1;n<e.length;n++)t=c.a.plusRange(t,e[n].range);var i=t.startLineNumber,o=t.endLineNumber;i===o?1===e.length?Object(f.a)(x.a("hint11","Made 1 formatting edit on line {0}",i)):Object(f.a)(x.a("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Object(f.a)(x.a("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):Object(f.a)(x.a("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}}function A(e){for(var t=[],n=new Set,i=0,o=h.g.ordered(e);i<o.length;i++){var r=o[i];t.push(r),r.extensionId&&n.add(k.toKey(r.extensionId))}for(var s=function(e){if(e.extensionId){if(n.has(k.toKey(e.extensionId)))return"continue";n.add(k.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})},a=0,l=h.j.ordered(e);a<l.length;a++)s(r=l[a]);return t}var R=(j.select=function(e,t,n){return T(this,void 0,void 0,(function(){var i;return I(this,(function(o){switch(o.label){case 0:return 0===e.length?[2,void 0]:(i=j._selectors.iterator().next().value)?[4,i(e,t,n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,e[0]]}}))}))},j._selectors=new L.a,j);function j(){}function F(e,t,n,i,o){return T(this,void 0,void 0,(function(){var r,s,a,l;return I(this,(function(u){switch(u.label){case 0:return r=e.get(N.a),s=Object(y.a)(t)?t.getModel():t,a=h.j.ordered(s),[4,R.select(a,s,i)];case 1:return(l=u.sent())?[4,r.invokeFunction(B,l,t,n,o)]:[3,3];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))}function B(e,t,n,i,o){return T(this,void 0,void 0,(function(){var r,s,a,l,u,d,h;return I(this,(function(f){switch(f.label){case 0:r=e.get(p.a),a=Object(y.a)(n)?(s=n.getModel(),new v.b(n,5,o)):(s=n,new v.d(n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(s,i,s.getFormattingOptions(),a.token)];case 2:return u=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,u)];case 3:return l=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return l&&0!==l.length?(Object(y.a)(n)?(S.execute(n,l),P(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(d=l[0].range,h=new _.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],l.map((function(e){return{text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c.a.areIntersectingOrTouching(i,h))return[new _.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function W(e,t,n,i){return T(this,void 0,void 0,(function(){var o,r,s,a;return I(this,(function(l){switch(l.label){case 0:return o=e.get(N.a),r=Object(y.a)(t)?t.getModel():t,s=A(r),[4,R.select(s,r,n)];case 1:return(a=l.sent())?[4,o.invokeFunction(V,a,t,n,i)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))}function V(e,t,n,i,o){return T(this,void 0,void 0,(function(){var r,s,a,l,u,d,h;return I(this,(function(f){switch(f.label){case 0:r=e.get(p.a),a=Object(y.a)(n)?(s=n.getModel(),new v.b(n,5,o)):(s=n,new v.d(n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token)];case 2:return u=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,u)];case 3:return l=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return l&&0!==l.length?(Object(y.a)(n)?(S.execute(n,l),2!==i&&(P(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(d=l[0].range,h=new _.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],l.map((function(e){return{text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c.a.areIntersectingOrTouching(i,h))return[new _.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function z(e,t,n,i,r){var s=h.t.ordered(t);return 0===s.length||s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(t,n,i,r,o.a.None)).catch(g.f).then((function(n){return e.computeMoreMinimalEdits(t.uri,n)}))}D.a.registerCommand("_executeFormatRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],s=t[1],a=t[2];Object(M.a)(m.a.isUri(r)),Object(M.a)(c.a.isIRange(s));var l=e.get(w.a).getModel(r);if(!l)throw Object(g.b)("resource");return function(e,t,n,o,r){return T(this,void 0,void 0,(function(){var s,a,l,u,c;return I(this,(function(d){switch(d.label){case 0:s=h.j.ordered(t),a=0,l=s,d.label=1;case 1:return a<l.length?(u=l[a],[4,Promise.resolve(u.provideDocumentRangeFormattingEdits(t,n,o,r)).catch(g.f)]):[3,5];case 2:return c=d.sent(),Object(i.q)(c)?[4,e.computeMoreMinimalEdits(t.uri,c)]:[3,4];case 3:return[2,d.sent()];case 4:return a++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),l,c.a.lift(s),a,o.a.None)})),D.a.registerCommand("_executeFormatDocumentProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],s=t[1];Object(M.a)(m.a.isUri(r));var a=e.get(w.a).getModel(r);if(!a)throw Object(g.b)("resource");return function(e,t,n,o){return T(this,void 0,void 0,(function(){var r,s,a,l,u;return I(this,(function(c){switch(c.label){case 0:r=A(t),s=0,a=r,c.label=1;case 1:return s<a.length?(l=a[s],[4,Promise.resolve(l.provideDocumentFormattingEdits(t,n,o)).catch(g.f)]):[3,5];case 2:return u=c.sent(),Object(i.q)(u)?[4,e.computeMoreMinimalEdits(t.uri,u)]:[3,4];case 3:return[2,c.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),a,s,o.a.None)})),D.a.registerCommand("_executeFormatOnTypeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],o=t[1],r=t[2],s=t[3];Object(M.a)(m.a.isUri(i)),Object(M.a)(b.a.isIPosition(o)),Object(M.a)("string"==typeof r);var a=e.get(w.a).getModel(i);if(!a)throw Object(g.b)("resource");return z(e.get(p.a),a,b.a.lift(o),r,s)}));var H,q=n(456),U=(H=function(e,t){return(H=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){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),K=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},G=function(e,t){return function(n,i){t(n,i,e)}},Y=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Z=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},X=($.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},$.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getOption(39)&&this._editor.hasModel()){var t=this._editor.getModel(),n=h.t.ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new u.b,o=0,r=n.autoFormatTriggerCharacters;o<r.length;o++){var s=r[o];i.add(s.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e._trigger(String.fromCharCode(n))})))}}},$.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(1<this._editor.getSelections().length)){var n=this._editor.getModel(),o=this._editor.getPosition(),r=!1,s=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return r=!0,void s.dispose();for(var t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=o.lineNumber)return r=!0,void s.dispose()}));z(this._workerService,n,o,e,n.getFormattingOptions()).then((function(e){s.dispose(),r||Object(i.q)(e)&&(S.execute(t._editor,e),P(e))}),(function(e){throw s.dispose(),e}))}},$.ID="editor.contrib.autoFormat",$=K([G(1,p.a)],$));function $(e,t){var n=this;this._workerService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h.t.onDidChange(this._update,this))}var J=(Q.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Q.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getOption(38)&&this.editor.hasModel()&&h.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;return e._trigger(n)})))},Q.prototype._trigger=function(e){this.editor.hasModel()&&(1<this.editor.getSelections().length||this._instantiationService.invokeFunction(F,this.editor,e,2,o.a.None).catch(g.e))},Q.ID="editor.contrib.formatOnPaste",Q=K([G(1,N.a)],Q));function Q(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h.j.onDidChange(this._update,this))}var ee,te=(U(ne,ee=a.b),ne.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:return t.hasModel()?[4,e.get(N.a).invokeFunction(W,t,1,o.a.None)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},ne);function ne(){return ee.call(this,{id:"editor.action.formatDocument",label:x.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:q.a.and(d.a.writable,d.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:q.a.and(d.a.editorTextFocus,d.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:d.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}var ie,oe=(U(re,ie=a.b),re.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){var n,i,r;return Z(this,(function(s){switch(s.label){case 0:return t.hasModel()?(n=e.get(N.a),i=t.getModel(),(r=t.getSelection()).isEmpty()&&(r=new c.a(r.startLineNumber,1,r.startLineNumber,i.getLineMaxColumn(r.startLineNumber))),[4,n.invokeFunction(F,t,r,1,o.a.None)]):[2];case 1:return s.sent(),[2]}}))}))},re);function re(){return ie.call(this,{id:"editor.action.formatSelection",label:x.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:q.a.and(d.a.writable,d.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:q.a.and(d.a.editorTextFocus,d.a.hasDocumentSelectionFormattingProvider),primary:Object(r.a)(2089,2084),weight:100},contextMenuOpts:{when:q.a.and(d.a.hasDocumentSelectionFormattingProvider,d.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}Object(a.h)(X.ID,X),Object(a.h)(J.ID,J),Object(a.f)(te),Object(a.f)(oe),D.a.registerCommand("editor.action.format",(function(e){return Y(void 0,void 0,void 0,(function(){var t,n;return Z(this,(function(i){switch(i.label){case 0:return(t=e.get(l.a).getFocusedCodeEditor())&&t.hasModel()?(n=e.get(D.b),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return i.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(439),r=n(448),s=n(469),a=n(456),l=n(449),u=n(443),c=n(686),d=n(635),h=n(688),p=n(442),f=(n(1372),n(778)),g=n(915),m=n(453),v=n(446),y=n(454),b=n(484),_={Visible:new a.d("parameterHintsVisible",!1),MultipleSignatures:new a.d("parameterHintsMultipleSignatures",!1)};function w(e,t,n,i){var o=y.x.ordered(e);return Object(m.h)(o.map((function(o){return function(){return Promise.resolve(o.provideSignatureHelp(e,t,i,n)).catch((function(e){return Object(v.f)(e)}))}})))}Object(l.e)("_executeSignatureHelpProvider",(function(e,t,n){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var i;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(o){switch(o.label){case 0:return[4,w(e,t,{triggerKind:y.y.Invoke,isRetrigger:!1,triggerCharacter:n.triggerCharacter},b.a.None)];case 1:return(i=o.sent())?(setTimeout((function(){return i.dispose()}),0),[2,i.value]):[2,void 0]}}))}))}));var C,S,O=n(636),x=n(461),k=n(451),E=n(790),N=(C=function(e,t){return(C=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){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=function(){return(L=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};!function(e){e.Default={type:0},e.Pending=function(e){this.request=e,this.type=2},e.Active=function(e){this.hints=e,this.type=1}}(S=S||{});var D,M=(N(T,D=o.a),Object.defineProperty(T.prototype,"state",{get:function(){return this._state},set:function(e){2===this._state.type&&this._state.request.cancel(),this._state=e},enumerable:!0,configurable:!0}),T.prototype.cancel=function(e){void 0===e&&(e=!1),this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)},T.prototype.trigger=function(e,t){var n=this,i=this.editor.getModel();if(i&&y.x.has(i)){var o=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((function(){return n.doTrigger(o)}),t).catch(v.e)}},T.prototype.next=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e==e-1,i=this.editor.getOption(64).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}},T.prototype.previous=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(64).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}},T.prototype.updateActiveSignature=function(e){1===this.state.type&&(this.state=new S.Active(L(L({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))},T.prototype.doTrigger=function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,i,o,r,s,a,l;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(u){switch(u.label){case 0:if(t=1===this.state.type||2===this.state.type,n=1===this.state.type?this.state.hints:void 0,this.cancel(!0),0===this._pendingTriggers.length)return[2,!1];if(i=this._pendingTriggers.reduce(I),this._pendingTriggers=[],o={triggerKind:i.triggerKind,triggerCharacter:i.triggerCharacter,isRetrigger:t,activeSignatureHelp:n},!this.editor.hasModel())return[2,!1];r=this.editor.getModel(),s=this.editor.getPosition(),this.state=new S.Pending(Object(m.f)((function(e){return w(r,s,o,e)}))),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.state.request];case 2:return a=u.sent(),e!==this.triggerId?(null!=a&&a.dispose(),[2,!1]):a&&a.value.signatures&&0!==a.value.signatures.length?(this.state=new S.Active(a.value),this._lastSignatureHelpResult.value=a,this._onChangedHints.fire(this.state.hints),[2,!0]):(null!=a&&a.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1]);case 3:return l=u.sent(),e===this.triggerId&&(this.state=S.Default),Object(v.e)(l),[2,!1];case 4:return[2]}}))}))},Object.defineProperty(T.prototype,"isTriggered",{get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),T.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new E.b,this.retriggerChars=new E.b;var e=this.editor.getModel();if(e)for(var t=0,n=y.x.ordered(e);t<n.length;t++){for(var i=n[t],o=0,r=i.signatureHelpTriggerCharacters||[];o<r.length;o++){var s=r[o];this.triggerChars.add(s.charCodeAt(0)),this.retriggerChars.add(s.charCodeAt(0))}for(var a=0,l=i.signatureHelpRetriggerCharacters||[];a<l.length;a++)s=l[a],this.retriggerChars.add(s.charCodeAt(0))}},T.prototype.onDidType=function(e){if(this.triggerOnType){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:y.y.TriggerCharacter,triggerCharacter:e.charAt(t)})}},T.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:y.y.ContentChange})},T.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:y.y.ContentChange})},T.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},T.prototype.dispose=function(){this.cancel(!0),D.prototype.dispose.call(this)},T.DEFAULT_DELAY=120,T);function T(e,t){void 0===t&&(t=T.DEFAULT_DELAY);var n=D.call(this)||this;return n._onChangedHints=n._register(new p.a),n.onChangedHints=n._onChangedHints.event,n.triggerOnType=!1,n._state=S.Default,n._pendingTriggers=[],n._lastSignatureHelpResult=n._register(new o.d),n.triggerChars=new E.b,n.retriggerChars=new E.b,n.triggerId=0,n.editor=e,n.throttledDelayer=new m.a(t),n._register(n.editor.onDidChangeConfiguration((function(){return n.onEditorConfigurationChange()}))),n._register(n.editor.onDidChangeModel((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeModelLanguage((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeCursorSelection((function(e){return n.onCursorChange(e)}))),n._register(n.editor.onDidChangeModelContent((function(e){return n.onModelContentChange()}))),n._register(y.x.onDidChange(n.onModelChanged,n)),n._register(n.editor.onDidType((function(e){return n.onDidType(e)}))),n.onEditorConfigurationChange(),n.onModelChanged(),n}function I(e,t){switch(t.triggerKind){case y.y.Invoke:return t;case y.y.ContentChange:return e;case y.y.TriggerCharacter:default:return t}}var P,A,R=n(444),j=(P=function(e,t){return(P=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){function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t){return function(n,i){t(n,i,e)}},B=u.a,W=(j(V,A=o.a),V.prototype.createParamaterHintDOMNodes=function(){var e=this,t=B(".editor-widget.parameter-hints-widget"),n=u.q(t,B(".wrapper"));n.tabIndex=-1;var i=u.q(n,B(".controls")),o=u.q(i,B(".button.codicon.codicon-chevron-up")),r=u.q(i,B(".overloads")),s=u.q(i,B(".button.codicon.codicon-chevron-down")),a=Object(c.b)(Object(c.a)(o,"click"));this._register(a(this.previous,this));var l=Object(c.b)(Object(c.a)(s,"click"));this._register(l(this.next,this));var d=B(".body"),f=new h.a(d,{});this._register(f),n.appendChild(f.getDomNode());var g=u.q(d,B(".signature")),m=u.q(d,B(".docs"));function v(){if(e.domNodes){var t=e.editor.getOption(34);e.domNodes.element.style.fontSize=t.fontSize+"px"}}t.style.userSelect="text",this.domNodes={element:t,signature:g,overloads:r,docs:m,scrollbar:f},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((function(t){e.visible&&e.editor.layoutContentWidget(e)}))),v(),this._register(p.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(v,null)),this._register(this.editor.onDidLayoutChange((function(t){return e.updateMaxHeight()}))),this.updateMaxHeight()},V.prototype.show=function(){var e=this;this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((function(){e.domNodes&&u.f(e.domNodes.element,"visible")}),100),this.editor.layoutContentWidget(this))},V.prototype.hide=function(){this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&u.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))},V.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},V.prototype.render=function(e){if(this.domNodes){var t=1<e.signatures.length;u.Y(this.domNodes.element,"multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var n=e.signatures[e.activeSignature];if(n){var o=u.q(this.domNodes.signature,B(".code")),r=0<n.parameters.length,s=this.editor.getOption(34);o.style.fontSize=s.fontSize+"px",o.style.fontFamily=s.fontFamily,r?this.renderParameters(o,n,e.activeParameter):u.q(o,B("span")).textContent=n.label,this.renderDisposeables.clear();var a=n.parameters[e.activeParameter];if(a&&a.documentation){var l=B("span.documentation");if("string"==typeof a.documentation)l.textContent=a.documentation;else{var c=this.markdownRenderer.render(a.documentation);u.f(c.element,"markdown-docs"),this.renderDisposeables.add(c),l.appendChild(c.element)}u.q(this.domNodes.docs,B("p",{},l))}void 0!==n.documentation&&("string"==typeof n.documentation?u.q(this.domNodes.docs,B("p",{},n.documentation)):(c=this.markdownRenderer.render(n.documentation),u.f(c.element,"markdown-docs"),this.renderDisposeables.add(c),u.q(this.domNodes.docs,c.element)));var h=this.hasDocs(n,a);if(u.Y(this.domNodes.signature,"has-docs",h),u.Y(this.domNodes.docs,"empty",!h),this.domNodes.overloads.textContent=Object(R.F)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,a){var p=this.getParameterLabel(n,e.activeParameter);this.announcedLabel!==p&&(d.a(i.a("hint","{0}, hint",p)),this.announcedLabel=p)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}},V.prototype.hasDocs=function(e,t){return!!(t&&"string"==typeof t.documentation&&0<t.documentation.length)||!!(t&&"object"==typeof t.documentation&&0<t.documentation.value.length)||"string"==typeof e.documentation&&0<e.documentation.length||"object"==typeof e.documentation&&0<e.documentation.value.length},V.prototype.renderParameters=function(e,t,n){var i=this.getParameterLabelOffsets(t,n),o=i[0],r=i[1],s=document.createElement("span");s.textContent=t.label.substring(0,o);var a=document.createElement("span");a.textContent=t.label.substring(o,r),a.className="parameter active";var l=document.createElement("span");l.textContent=t.label.substring(r),u.q(e,s,a,l)},V.prototype.getParameterLabel=function(e,t){var n=e.parameters[t];return"string"==typeof n.label?n.label:e.label.substring(n.label[0],n.label[1])},V.prototype.getParameterLabelOffsets=function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;var i=e.label.lastIndexOf(n.label);return 0<=i?[i,i+n.label.length]:[0,0]}return[0,0]},V.prototype.next=function(){this.editor.focus(),this.model.next()},V.prototype.previous=function(){this.editor.focus(),this.model.previous()},V.prototype.cancel=function(){this.model.cancel()},V.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},V.prototype.getId=function(){return V.ID},V.prototype.trigger=function(e){this.model.trigger(e,0)},V.prototype.updateMaxHeight=function(){if(this.domNodes){var e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=e;var t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}},V.ID="editor.widget.parameterHintsWidget",V=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([F(1,a.c),F(2,O.a),F(3,f.a)],V));function V(e,t,n,i){var r=A.call(this)||this;return r.editor=e,r.renderDisposeables=r._register(new o.b),r.visible=!1,r.announcedLabel=null,r.allowEditorOverflow=!0,r.markdownRenderer=r._register(new g.a(e,i,n)),r.model=r._register(new M(e)),r.keyVisible=_.Visible.bindTo(t),r.keyMultipleSignatures=_.MultipleSignatures.bindTo(t),r._register(r.model.onChangedHints((function(e){e?(r.show(),r.render(e)):r.hide()}))),r}Object(k.e)((function(e,t){var n=e.getColor(x.B);if(n){var i=e.type===k.b?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }")}var o=e.getColor(x.A);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(x.ec);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(x.C);s&&t.addRule(".monaco-editor .parameter-hints-widget { color: "+s+"; }");var a=e.getColor(x.dc);a&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+a+"; }")})),n.d(t,"TriggerParameterHintsAction",(function(){return Y}));var z,H,q=(z=function(e,t){return(z=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){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=(q(K,H=o.a),K.get=function(e){return e.getContribution(K.ID)},K.prototype.cancel=function(){this.widget.cancel()},K.prototype.previous=function(){this.widget.previous()},K.prototype.next=function(){this.widget.next()},K.prototype.trigger=function(e){this.widget.trigger(e)},K.ID="editor.controller.parameterHints",K=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,r.a)],K));function K(e,t){var n=H.call(this)||this;return n.editor=e,n.widget=n._register(t.createInstance(W,n.editor)),n}var G,Y=(q(Z,G=l.b),Z.prototype.run=function(e,t){var n=U.get(t);n&&n.trigger({triggerKind:y.y.Invoke})},Z);function Z(){return G.call(this,{id:"editor.action.triggerParameterHints",label:i.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s.a.hasSignatureHelpProvider,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3082,weight:100}})||this}Object(l.h)(U.ID,U),Object(l.f)(Y);var X=l.c.bindToContribution(U.get);Object(l.g)(new X({id:"closeParameterHints",precondition:_.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:9,secondary:[1033]}})),Object(l.g)(new X({id:"showPrevParameterHint",precondition:a.a.and(_.Visible,_.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(l.g)(new X({id:"showNextParameterHint",precondition:a.a.and(_.Visible,_.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(548),r=n(449),s=n(469),a=n(704),l=n(450),u=n(440),c=n(466),d=n(575),h=(p._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length;if(e.length<n+i)return!1;for(var o=0;o<i;o++){var r=e.charCodeAt(n+o),s=t.charCodeAt(o);if(r!==s&&!(65<=r&&r<=90&&r+32===s||65<=s&&s<=90&&s+32===r))return!1}return!0},p.prototype._createOperationsForBlockComment=function(e,t,n,i,o,r){var s,a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=o.getLineContent(a),f=o.getLineContent(c),g=h.lastIndexOf(t,l-1+t.length),m=f.indexOf(n,d-1-n.length);if(-1!==g&&-1!==m)if(a===c)0<=h.substring(g+t.length,m).indexOf(n)&&(m=g=-1);else{var v=h.substring(g+t.length),y=f.substring(0,m);(0<=v.indexOf(n)||0<=y.indexOf(n))&&(m=g=-1)}-1!==g&&-1!==m?(i&&g+t.length<h.length&&32===h.charCodeAt(g+t.length)&&(t+=" "),i&&0<m&&32===f.charCodeAt(m-1)&&(n=" "+n,--m),s=p._createRemoveBlockCommentOperations(new u.a(a,g+t.length+1,c,m+1),t,n)):(s=p._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=1===s.length?n:null);for(var b=0,_=s;b<_.length;b++){var w=_[b];r.addTrackedEditOperation(w.range,w.text)}},p._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return u.a.isEmpty(e)?i.push(a.a.delete(new u.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(a.a.delete(new u.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(a.a.delete(new u.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i},p._createAddBlockCommentOperations=function(e,t,n,i){var o=[];return u.a.isEmpty(e)?o.push(a.a.replace(new u.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(o.push(a.a.insert(new l.a(e.startLineNumber,e.startColumn),t+(i?" ":""))),o.push(a.a.insert(new l.a(e.endLineNumber,e.endColumn),(i?" ":"")+n))),o},p.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=d.a.getComments(o);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)},p.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new c.a(i.range.endLineNumber,i.range.endColumn,o.range.startLineNumber,o.range.startColumn)}var r=n[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new c.a(r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s)},p);function p(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}var f=n(444),g=(m._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=d.a.getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,l=n-t+1;a<l;a++)s[a]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return s},m._analyzeLines=function(e,t,n,i,o){var r,s=!0;r=0===e||1!==e;for(var a=0,l=i.length;a<l;a++){var u=i[a],c=o+a,d=n.getLineContent(c),p=f.q(d);if(-1!==p){if(s=!1,u.ignore=!1,u.commentStrOffset=p,r&&!h._haystackHasNeedleAtOffset(d,u.commentStr,p)&&(0===e?r=!1:1===e||(u.ignore=!0)),r&&t){var g=p+u.commentStrLength;g<d.length&&32===d.charCodeAt(g)&&(u.commentStrLength+=1)}}else u.ignore=!0,u.commentStrOffset=d.length}if(0===e&&s)for(r=!1,a=0,l=i.length;a<l;a++)i[a].ignore=!1;return{supported:!0,shouldRemoveComments:r,lines:i}},m._gatherPreflightData=function(e,t,n,i,o){var r=m._gatherPreflightCommentStrings(n,i,o);return null===r?{supported:!1}:m._analyzeLines(e,t,n,r,i)},m.prototype._executeLineComments=function(e,t,n,i){var o;o=n.shouldRemoveComments?m._createRemoveLineCommentsOperations(n.lines,i.startLineNumber):(m._normalizeInsertionPoint(e,n.lines,i.startLineNumber,this._tabSize),this._createAddLineCommentsOperations(n.lines,i.startLineNumber));for(var r=new l.a(i.positionLineNumber,i.positionColumn),s=0,a=o.length;s<a;s++)t.addEditOperation(o[s].range,o[s].text),o[s].range.isEmpty()&&o[s].range.getStartPosition().equals(r)&&e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(o[s].text||"").length);this._selectionId=t.trackSelection(i)},m.prototype._attemptRemoveBlockComment=function(e,t,n,i){var o=t.startLineNumber,r=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(o).lastIndexOf(n,s-1),l=e.getLineContent(r).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===l&&(l=e.getLineContent(o).indexOf(i,a+n.length),r=o),-1===a&&-1!==l&&(a=e.getLineContent(r).lastIndexOf(n,l),o=r),!t.isEmpty()||-1!==a&&-1!==l||-1!==(a=e.getLineContent(o).indexOf(n))&&(l=e.getLineContent(o).indexOf(i,a+n.length)),-1!==a&&32===e.getLineContent(o).charCodeAt(a+n.length)&&(n+=" "),-1!==l&&32===e.getLineContent(r).charCodeAt(l-1)&&(i=" "+i,--l),-1!==a&&-1!==l?h._createRemoveBlockCommentOperations(new u.a(o,a+n.length+1,r,l+1),n,i):null},m.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),o=d.a.getComments(i);if(o&&o.blockCommentStartToken&&o.blockCommentEndToken){var r=o.blockCommentStartToken,s=o.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,n,r,s);if(!a){if(n.isEmpty()){var l=e.getLineContent(n.startLineNumber),c=f.q(l);-1===c&&(c=l.length),a=h._createAddBlockCommentOperations(new u.a(n.startLineNumber,c+1,n.startLineNumber,l.length+1),r,s,this._insertSpace)}else a=h._createAddBlockCommentOperations(new u.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,s,this._insertSpace);1===a.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(n);for(var p=0,g=a;p<g.length;p++){var m=g[p];t.addEditOperation(m.range,m.text)}}},m.prototype.getEditOperations=function(e,t){var n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));var i=m._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber);return i.supported?this._executeLineComments(e,t,i,n):this._executeBlockComment(e,t,n)},m.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new c.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},m._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(a.a.delete(new u.a(t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n},m.prototype._createAddLineCommentsOperations=function(e,t){for(var n=[],i=this._insertSpace?" ":"",o=0,r=e.length;o<r;o++){var s=e[o];s.ignore||n.push(a.a.insert(new l.a(t+o,s.commentStrOffset+1),s.commentStr+i))}return n},m.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i},m._normalizeInsertionPoint=function(e,t,n,i){for(var o,r,s=1073741824,a=0,l=t.length;a<l;a++)if(!t[a].ignore){for(var u=e.getLineContent(n+a),c=0,d=0,h=t[a].commentStrOffset;c<s&&d<h;d++)c=m.nextVisibleColumn(c,i,9===u.charCodeAt(d),1);c<s&&(s=c)}for(s=Math.floor(s/i)*i,a=0,l=t.length;a<l;a++)if(!t[a].ignore){for(u=e.getLineContent(n+a),o=c=0,r=t[a].commentStrOffset;c<s&&o<r;o++)c=m.nextVisibleColumn(c,i,9===u.charCodeAt(o),1);t[a].commentStrOffset=s<c?o-1:o}},m);function m(e,t,n,i){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=i,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}var v,y,b=(v=function(e,t){return(v=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){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=(b(w,y=r.b),w.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=n.getOptions(),s=t.getOption(13),a=0,l=o;a<l.length;a++){var u=l[a];i.push(new g(u,r.tabSize,this._type,s.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},w);function w(e,t){var n=y.call(this,t)||this;return n._type=e,n}var C,S=(b(O,C=_),O);function O(){return C.call(this,0,{id:"editor.action.commentLine",label:i.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:17,group:"5_insert",title:i.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}var x,k=(b(E,x=_),E);function E(){return x.call(this,1,{id:"editor.action.addCommentLine",label:i.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2081),weight:100}})||this}var N,L=(b(D,N=_),D);function D(){return N.call(this,2,{id:"editor.action.removeCommentLine",label:i.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2099),weight:100}})||this}var M,T=(b(I,M=r.b),I.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getOption(13),i=[],o=0,r=t.getSelections();o<r.length;o++){var s=r[o];i.push(new h(s,n.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},I);function I(){return M.call(this,{id:"editor.action.blockComment",label:i.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:17,group:"5_insert",title:i.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}Object(r.f)(S),Object(r.f)(k),Object(r.f)(L),Object(r.f)(T)},function(e,t,n){"use strict";n.r(t),n(1373),n(1097),n(1098);var i,o=n(484),r=n(760),s=n(444),a=n(975),l=n(449),u=n(440),c=n(469),d=n(454),h=n(479),p=n(598),f=n(787),g=n(459),m=n(822),v=n(446),y=n(553),b=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=(w.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},w.findId=function(e,t){var n;"string"==typeof e?n=t.id+"/"+e:(n=t.id+"/"+e.name,void 0!==t.children[n]&&(n=t.id+"/"+e.name+"_"+e.range.startLineNumber+"_"+e.range.startColumn));for(var i=n,o=0;void 0!==t.children[i];o++)i=n+"_"+o;return i},w.empty=function(e){for(var t in e.children)return!1;return!0},w);function w(){}var C,S=(b(O,C=_),O);function O(e,t,n){var i=C.call(this)||this;return i.id=e,i.parent=t,i.symbol=n,i.children=Object.create(null),i}var x,k=(b(E,x=_),E);function E(e,t,n,i){var o=x.call(this)||this;return o.id=e,o.parent=t,o.provider=n,o.providerIndex=i,o.children=Object.create(null),o}var N=(L.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},L);function L(){this._n=1,this._val=0}var D,M=(b(T,D=_),T.create=function(e,t){var n=this,i=this._keys.for(e,!0),r=T._requests.get(i);if(!r){var s=new o.b;r={promiseCnt:0,source:s,promise:T._create(e,s.token),model:void 0},T._requests.set(i,r);var a=Date.now();r.promise.then((function(){var t=n._keys.for(e,!1),i=n._requestDurations.get(t);i||(i=new N,n._requestDurations.set(t,i)),i.update(Date.now()-a)}))}return r.model?Promise.resolve(r.model):(r.promiseCnt+=1,t.onCancellationRequested((function(){0==--r.promiseCnt&&(r.source.cancel(),T._requests.delete(i))})),new Promise((function(e,t){r.promise.then((function(t){r.model=t,e(t)}),(function(e){T._requests.delete(i),t(e)}))})))},T._create=function(e,t){var n=new o.b(t),i=new T(e),r=d.m.ordered(e),s=r.map((function(e,t){var o=_.findId("provider_"+t,i),r=new k(o,i,e,t);return Promise.resolve(e.provideDocumentSymbols(i.textModel,n.token)).then((function(e){for(var t=0,n=e||[];t<n.length;t++)T._makeOutlineElement(n[t],r);return r}),(function(e){return Object(v.f)(e),r})).then((function(e){_.empty(e)?e.remove():i._groups[o]=e}))})),a=d.m.onDidChange((function(){var t=d.m.ordered(e);Object(g.g)(t,r)||n.cancel()}));return Promise.all(s).then((function(){return n.token.isCancellationRequested&&!t.isCancellationRequested?T._create(e,t):i._compact()})).finally((function(){a.dispose()}))},T._makeOutlineElement=function(e,t){var n=_.findId(e,t),i=new S(n,t,e);if(e.children)for(var o=0,r=e.children;o<r.length;o++){var s=r[o];T._makeOutlineElement(s,i)}t.children[i.id]=i},T.prototype._compact=function(){var e=0;for(var t in this._groups){var n=this._groups[t];void 0===Object(m.b)(n.children)?delete this._groups[t]:e+=1}if(1!==e)this.children=this._groups;else for(var t in(n=Object(m.b)(this._groups)).children){var i=n.children[t];(i.parent=this).children[i.id]=i}return this},T._requestDurations=new y.a(50,.7),T._requests=new y.a(9,.75),T._keys=(I.prototype.for=function(e,t){return e.id+"/"+(t?e.getVersionId():"")+"/"+this._hash(d.m.all(e))},I.prototype._hash=function(e){for(var t="",n=0,i=e;n<i.length;n++){var o=i[n],r=this._data.get(o);void 0===r&&(r=this._counter++,this._data.set(o,r)),t+=r}return t},new I),T);function T(e){var t=D.call(this)||this;return t.textModel=e,t.id="root",t.parent=void 0,t._groups=Object.create(null),t.children=Object.create(null),t.id="root",t.parent=void 0,t}function I(){this._counter=1,this._data=new WeakMap}var P=n(489),A=n(465),R=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},j=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}};function F(e,t,n){return R(this,void 0,void 0,(function(){var i,o,r,s,a,l;return j(this,(function(u){switch(u.label){case 0:return[4,M.create(e,n)];case 1:for(i=u.sent(),o=[],r=0,s=Object(m.d)(i.children);r<s.length;r++)(a=s[r])instanceof S?o.push(a.symbol):o.push.apply(o,Object(m.d)(a.children).map((function(e){return e.symbol})));return l=[],n.isCancellationRequested?[2,l]:(t?function e(t,n,i){for(var o=0,r=n;o<r.length;o++){var s=r[o];t.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&e(t,s.children,s.name)}}(l,o,""):l=o,[2,l.sort(B)])}}))}))}function B(e,t){return u.a.compareRangesUsingStarts(e.range,t.range)}P.a.registerCommand("_executeDocumentSymbolProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return R(this,void 0,void 0,(function(){var n,i,r;return j(this,(function(s){switch(s.label){case 0:return n=t[0],Object(A.a)(h.a.isUri(n)),(i=e.get(p.a).getModel(n))?[2,F(i,!1,o.a.None)]:[4,e.get(f.a).createModelReference(n)];case 1:r=s.sent(),s.label=2;case 2:return s.trys.push([2,,4,5]),[4,F(r.object.textEditorModel,!1,o.a.None)];case 3:return[2,s.sent()];case 4:return r.dispose(),[7];case 5:return[2]}}))}))}));var W=n(968),V=n(754);n.d(t,"SymbolEntry",(function(){return U})),n.d(t,"QuickOutlineAction",(function(){return Y}));var z,H,q=(z=function(e,t){return(z=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){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=(q(K,H=a.b),K.prototype.getLabel=function(){return this.name},K.prototype.getAriaLabel=function(){return s.r(V.e.entryAriaLabel,this.name)},K.prototype.getIcon=function(){return this.type},K.prototype.getDescription=function(){return this.description},K.prototype.getType=function(){return this.type},K.prototype.getRange=function(){return this.range},K.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview()},K.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0},K.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1},K.prototype.toSelection=function(){return new u.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},K);function K(e,t,n,i,o,r,s){var a=H.call(this)||this;return a.name=e,a.type=t,a.description=n,a.range=i,a.setHighlights(o),a.editor=r,a.decorator=s,a}var G,Y=(q(Z,G=W.a),Z.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel();if(d.m.has(i))return F(i,!0,o.a.None).then((function(e){0!==e.length&&n._run(t,e)}))}},Z.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(i){return new a.c(n.toQuickOpenEntries(e,t,i))},getAutoFocus:function(e){return 0===e.indexOf(":")&&(e=e.substr(":".length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e}}})},Z.prototype.symbolEntry=function(e,t,n,i,o,r,s){return new U(e,t,n,u.a.lift(i),o,r,s)},Z.prototype.toQuickOpenEntries=function(e,t,n){var i=this.getController(e),o=[],a=n;0===n.indexOf(":")&&(a=a.substr(":".length));for(var l=0,u=t;l<u.length;l++){var c=u[l],h=s.Q(c.name),p=Object(r.f)(a,h);if(p){var f=void 0;c.containerName&&(f=c.containerName),o.push(this.symbolEntry(h,d.z.toCssClassName(c.kind),f,c.range,p,e,i))}}if(n&&(o=0===n.indexOf(":")?o.sort(this.sortScoped.bind(this,n.toLowerCase())):o.sort(this.sortNormal.bind(this,n.toLowerCase()))),0<o.length&&0===n.indexOf(":")){for(var g=null,m=null,v=0,y=0;y<o.length;y++){var b=o[y];g!==b.getType()?(m&&m.setGroupLabel(this.typeToLabel(g||"",v)),g=b.getType(),v=1,(m=b).setShowBorder(0<y)):v++}m&&m.setGroupLabel(this.typeToLabel(g||"",v))}else 0<o.length&&o[0].setGroupLabel(s.r(V.e._symbols_,o.length));return o},Z.prototype.typeToLabel=function(e,t){switch(e){case"module":return s.r(V.e._modules_,t);case"class":return s.r(V.e._class_,t);case"interface":return s.r(V.e._interface_,t);case"method":return s.r(V.e._method_,t);case"function":return s.r(V.e._function_,t);case"property":return s.r(V.e._property_,t);case"variable":return s.r(V.e._variable_,t);case"var":return s.r(V.e._variable2_,t);case"constructor":return s.r(V.e._constructor_,t);case"call":return s.r(V.e._call_,t)}return e},Z.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},Z.prototype.sortScoped=function(e,t,n){e=e.substr(":".length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),l=s.localeCompare(a);if(0!==l)return l}var u=t.getRange(),c=n.getRange();return u.startLineNumber-c.startLineNumber},Z);function Z(){return G.call(this,V.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:V.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:c.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:c.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}Object(l.f)(Y)},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(449),r=n(469),s=n(440),a=(l.prototype.getEditOperations=function(e,t){var n=this._selection;if(this._selectionId=t.trackSelection(n),n.startLineNumber===n.endLineNumber&&(!this._isMovingLeft||0!==n.startColumn)&&(this._isMovingLeft||n.endColumn!==e.getLineMaxColumn(n.startLineNumber))){var i,o,r,a=n.selectionStartLineNumber,l=e.getLineContent(a);r=this._isMovingLeft?(i=l.substring(0,n.startColumn-2),o=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.startColumn-2,n.startColumn-1)+l.substring(n.endColumn-1)):(i=l.substring(0,n.startColumn-1)+l.substring(n.endColumn-1,n.endColumn),o=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.endColumn));var u=i+o+r;t.addEditOperation(new s.a(a,1,a,e.getLineMaxColumn(a)),null),t.addEditOperation(new s.a(a,1,a,1),u),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},l.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex)).setEndPosition(n.startLineNumber,this._cutEndIndex)),n},l);function l(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}var u,c,d=(u=function(e,t){return(u=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){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=(d(p,c=o.b),p.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=0,o=t.getSelections();i<o.length;i++){var r=o[i];n.push(new a(r,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},p);function p(e,t){var n=c.call(this,t)||this;return n.left=e,n}var f,g=(d(m,f=h),m);function m(){return f.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:i.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:r.a.writable})||this}var v,y=(d(b,v=h),b);function b(){return v.call(this,!1,{id:"editor.action.moveCarretRightAction",label:i.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:r.a.writable})||this}Object(o.f)(g),Object(o.f)(y)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(443),a=n(772),l=n(439),u=n(449),c=n(469),d=n(755),h=n(456),p=n(757),f=n(531),g=n(1081),m=((i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(v,o=g.b),v);function v(e,t){var n=o.call(this,e,t,"contextsubmenu")||this;return n.entries=t,n}n.d(t,"ContextMenuController",(function(){return w}));var y,b=(y=function(e,t){return(y=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){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(e,t){return function(n,i){t(n,i,e)}},w=(C.get=function(e){return e.getContribution(C.ID)},C.prototype._onContextMenu=function(e){if(this._editor.hasModel()){if(!this._editor.getOption(14))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12!==e.target.type&&(e.event.preventDefault(),6===e.target.type||7===e.target.type||1===e.target.type)){if(this._editor.focus(),e.target.position){for(var t=!1,n=0,i=this._editor.getSelections();n<i.length;n++)if(i[n].containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}var o=null;1!==e.target.type&&(o={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(o)}}},C.prototype.showContextMenu=function(e){if(this._editor.getOption(14)&&this._editor.hasModel())if(this._contextMenuService){var t=this._getMenuActions(this._editor.getModel(),7);0<t.length&&this._doShowContextMenu(t,e)}else this._editor.focus()},C.prototype._getMenuActions=function(e,t){var n=[],i=this._menuService.createMenu(t,this._contextKeyService),o=i.getActions({arg:e.uri});i.dispose();for(var r=0,s=o;r<s.length;r++){for(var l=0,u=0,c=s[r][1];u<c.length;u++){var h=c[u];if(h instanceof d.d){var p=this._getMenuActions(e,h.item.submenu);0<p.length&&(n.push(new m(h.label,p)),l++)}else n.push(h),l++}l&&n.push(new a.d)}return n.length&&n.pop(),n},C.prototype._doShowContextMenu=function(e,t){var n=this;if(void 0===t&&(t=null),this._editor.hasModel()){var i=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var o=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=s.C(this._editor.getDomNode()),l=r.left+o.left,u=r.top+o.top+o.height;t={x:l,y:u}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return e},getActionViewItem:function(e){var t=n._keybindingFor(e);return t?new a.b(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0}):"function"==typeof e.getActionViewItem?e.getActionViewItem():new a.b(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:i})}})}},C.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)},C.prototype.dispose=function(){0<this._contextMenuIsBeingShownCount&&this._contextViewService.hideContextView(),this._toDispose.dispose()},C.ID="editor.contrib.contextmenu",C=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([_(1,p.a),_(2,p.b),_(3,h.c),_(4,f.a),_(5,d.a)],C));function C(e,t,n,i,o,r){var s=this;this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=r,this._toDispose=new l.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((function(e){return s._onContextMenu(e)}))),this._toDispose.add(this._editor.onMouseWheel((function(e){0<s._contextMenuIsBeingShownCount&&s._contextViewService.hideContextView()}))),this._toDispose.add(this._editor.onKeyDown((function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())})))}var S,O=(b(x,S=u.b),x.prototype.run=function(e,t){w.get(t).showContextMenu()},x);function x(){return S.call(this,{id:"editor.action.showContextMenu",label:r.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:c.a.textInputFocus,primary:1092,weight:100}})||this}Object(u.h)(w.ID,w),Object(u.f)(O)},function(e,t,n){"use strict";n.r(t),n(1329);var i=n(439),o=n(452),r=n(449),s=n(450),a=n(440),l=n(466),u=(c.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection},c.prototype.computeCursorState=function(e,t){return this.targetSelection},c);function c(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}var d,h=n(495);function p(e){return o.e?e.altKey:e.ctrlKey}n.d(t,"DragAndDropController",(function(){return g}));var f,g=((d=function(e,t){return(d=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){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(m,f=i.a),m.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},m.prototype.onEditorKeyDown=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!0),this._mouseDown&&p(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},m.prototype.onEditorKeyUp=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===m.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))},m.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},m.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},m.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=(this._editor.getSelections()||[]).filter((function(e){return t.position&&e.containsPosition(t.position)}));if(1!==n.length)return;this._dragSelection=n[0]}p(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))},m.prototype._onEditorMouseDrop=function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var t=new s.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var n=null;if(e.event.shiftKey){var i=this._editor.getSelection();if(i){var o=i.selectionStartLineNumber,r=i.selectionStartColumn;n=[new l.a(o,r,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map((function(e){return e.containsPosition(t)?new l.a(t.lineNumber,t.column,t.lineNumber,t.column):e}));this._editor.setSelections(n||[],"mouse")}else this._dragSelection.containsPosition(t)&&(!p(e.event)&&!this._modifierPressed||!this._dragSelection.getEndPosition().equals(t)&&!this._dragSelection.getStartPosition().equals(t))||(this._editor.pushUndoStop(),this._editor.executeCommand(m.ID,new u(this._dragSelection,t,p(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},m.prototype.showAt=function(e){var t=[{range:new a.a(e.lineNumber,e.column,e.lineNumber,e.column),options:m._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)},m.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},m.prototype._hitContent=function(e){return 6===e.type||7===e.type},m.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type},m.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,f.prototype.dispose.call(this)},m.ID="editor.contrib.dragAndDrop",m.TRIGGER_KEY_VALUE=o.e?6:5,m._DECORATION_OPTIONS=h.a.register({className:"dnd-target"}),m);function m(e){var t=f.call(this)||this;return t._editor=e,t._register(t._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),t._register(t._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),t._register(t._editor.onMouseDrag((function(e){return t._onEditorMouseDrag(e)}))),t._register(t._editor.onMouseDrop((function(e){return t._onEditorMouseDrop(e)}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(e)}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(e)}))),t._register(t._editor.onDidBlurEditorWidget((function(){return t.onEditorBlur()}))),t._dndDecorationIds=[],t._mouseDown=!1,t._modifierPressed=!1,t._dragSelection=null,t}Object(r.h)(g.ID,g)},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(440),r=n(466),s=n(469),a=n(449),l=n(758),u=(c.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},c.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new r.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new r.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)},c);function c(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}var d,h=n(761),p=n(451),f=n(572),g=n(495),m=n(453),v=n(446),y=(d=function(e,t){return(d=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){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=(_.get=function(e){return e.getContribution(_.ID)},_.prototype.dispose=function(){},_.prototype.run=function(e,t){var n=this;this.currentRequest&&this.currentRequest.cancel();var i=this.editor.getSelection(),s=this.editor.getModel();if(s&&i){var a=i;if(a.startLineNumber===a.endLineNumber){var l=new h.a(this.editor,5),c=s.uri;return this.editorWorkerService.canNavigateValueSet(c)?(this.currentRequest=Object(m.f)((function(e){return n.editorWorkerService.navigateValueSet(c,a,t)})),this.currentRequest.then((function(t){if(t&&t.range&&t.value&&l.validate(n.editor)){var i=o.a.lift(t.range),s=t.range,c=t.value.length-(a.endColumn-a.startColumn);s={startLineNumber:s.startLineNumber,startColumn:s.startColumn,endLineNumber:s.endLineNumber,endColumn:s.startColumn+t.value.length},1<c&&(a=new r.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+c-1));var d=new u(i,a,t.value);n.editor.pushUndoStop(),n.editor.executeCommand(e,d),n.editor.pushUndoStop(),n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[{range:s,options:_.DECORATION}]),n.decorationRemover&&n.decorationRemover.cancel(),n.decorationRemover=Object(m.l)(350),n.decorationRemover.then((function(){return n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[])})).catch(v.e)}})).catch(v.e)):Promise.resolve(void 0)}}},_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=g.a.register({className:"valueSetReplacement"}),_=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,l.a)],_));function _(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}var w,C=(y(S,w=a.b),S.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},S);function S(){return w.call(this,{id:"editor.action.inPlaceReplace.up",label:i.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3154,weight:100}})||this}var O,x=(y(k,O=a.b),k.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},k);function k(){return O.call(this,{id:"editor.action.inPlaceReplace.down",label:i.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3156,weight:100}})||this}Object(a.h)(b.ID,b),Object(a.f)(C),Object(a.f)(x),Object(p.e)((function(e,t){var n=e.getColor(f.d);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1371);var i,o=n(445),r=n(453),s=n(484),a=n(446),l=n(795),u=n(439),c=n(452),d=n(449),h=n(495),p=n(454),f=n(1094),g=n(479),m=n(440),v=n(598),y=n(489),b=n(459),_=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},C=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},S=(O.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(O.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),O.prototype.resolve=function(e){return w(this,void 0,void 0,(function(){var t=this;return C(this,(function(n){return this._link.url?[2,this._link.url]:"function"==typeof this._provider.resolveLink?[2,Promise.resolve(this._provider.resolveLink(this._link,e)).then((function(n){return t._link=n||t._link,t._link.url?t.resolve(e):Promise.reject(new Error("missing"))}))]:[2,Promise.reject(new Error("missing"))]}))}))},O);function O(e,t){this._link=e,this._provider=t}var x,k=(_(E,x=u.a),E._union=function(e,t){var n,i,o,r,s=[];for(o=n=0,i=e.length,r=t.length;n<i&&o<r;){var a=e[n],l=t[o];m.a.areIntersectingOrTouching(a.range,l.range)?n++:m.a.compareRangesUsingStarts(a.range,l.range)<0?(s.push(a),n++):(s.push(l),o++)}for(;n<i;n++)s.push(e[n]);for(;o<r;o++)s.push(t[o]);return s},E);function E(e){for(var t=x.call(this)||this,n=[],i=function(e,t){var i=e.links.map((function(e){return new S(e,t)}));n=E._union(n,i),Object(u.g)(t)&&o._register(t)},o=this,r=0,s=e;r<s.length;r++){var a=s[r];i(a[0],a[1])}return t.links=n,t}function N(e,t){var n=[],i=p.s.ordered(e).reverse().map((function(i,o){return Promise.resolve(i.provideLinks(e,t)).then((function(e){e&&(n[o]=[e,i])}),a.f)}));return Promise.all(i).then((function(){var e=new k(Object(b.d)(n));return t.isCancellationRequested?(e.dispose(),new k([])):e}))}y.a.registerCommand("_executeLinkProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w(void 0,void 0,void 0,(function(){var n,i,o,r;return C(this,(function(a){switch(a.label){case 0:return(n=t[0])instanceof g.a&&(i=e.get(v.a).getModel(n))?[4,N(i,s.a.None)]:[2,[]];case 1:return(o=a.sent())?(r=o.links.slice(0),o.dispose(),[2,r]):[2,[]]}}))}))}));var L,D=n(532),M=n(636),T=n(461),I=n(451),P=(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){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(){return(A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},R=function(e,t){return function(n,i){t(n,i,e)}},j={general:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},F=(B.decoration=function(e,t){return{range:e.range,options:B._getOptions(e,t,!1)}},B._getOptions=function(e,t,n){var i,r,s,a,u,d=A({},n?j.active:j.general);return d.hoverMessage=(r=t,s=(i=e).url&&/^command:/i.test(i.url.toString()),a=i.tooltip?i.tooltip:s?o.a("links.navigate.executeCmd","Execute command"):o.a("links.navigate.follow","Follow link"),u=r?c.e?o.a("links.navigate.kb.meta.mac","cmd + click"):o.a("links.navigate.kb.meta","ctrl + click"):c.e?o.a("links.navigate.kb.alt.mac","option + click"):o.a("links.navigate.kb.alt","alt + click"),i.url?new l.a("",!0).appendMarkdown("["+a+"]("+i.url.toString()+") ("+u+")"):(new l.a).appendText(a+" ("+u+")")),d},B.prototype.activate=function(e,t){e.changeDecorationOptions(this.decorationId,B._getOptions(this.link,t,!0))},B.prototype.deactivate=function(e,t){e.changeDecorationOptions(this.decorationId,B._getOptions(this.link,t,!1))},B);function B(e,t){this.link=e,this.decorationId=t}var W=(V.get=function(e){return e.getContribution(V.ID)},V.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},V.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},V.prototype.onChange=function(){var e=this;this.timeout.setIfNotSet((function(){return e.beginCompute()}),V.RECOMPUTE_TIME)},V.prototype.beginCompute=function(){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e,t,n;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(i){switch(i.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!p.s.has(e))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=r.f((function(t){return N(e,t)})),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,(t=this).computePromise];case 2:return t.activeLinksList=i.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return n=i.sent(),Object(a.e)(n),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}}))}))},V.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getOption(59),n=[],i=Object.keys(this.currentOccurrences),o=0,r=i.length;o<r;o++){var s=i[o],a=this.currentOccurrences[s];n.push(a.decorationId)}var l=[];if(e)for(var u=0,c=e;u<c.length;u++){var d=c[u];l.push(F.decoration(d,t))}var h=this.editor.deltaDecorations(n,l);for(this.currentOccurrences={},this.activeLinkDecorationId=null,o=0,r=h.length;o<r;o++)a=new F(e[o],h[o]),this.currentOccurrences[a.decorationId]=a},V.prototype._onEditorMouseMove=function(e,t){var n=this,i="altKey"===this.editor.getOption(59);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var o=this.getLinkOccurrence(e.target.position);o&&this.editor.changeDecorations((function(e){o.activate(e,i),n.activeLinkDecorationId=o.decorationId}))}else this.cleanUpActiveLinkDecoration()},V.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getOption(59);if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((function(n){t.deactivate(n,e)})),this.activeLinkDecorationId=null}},V.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}},V.prototype.openLinkOccurrence=function(e,t,n){var i=this;if(void 0===n&&(n=!1),this.openerService){var r=e.link;r.resolve(s.a.None).then((function(e){return i.openerService.open(e,{openToSide:t,fromUserGesture:n})}),(function(e){var t=e instanceof Error?e.message:e;"invalid"===t?i.notificationService.warn(o.a("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?i.notificationService.warn(o.a("missing.url","Failed to open this link because its target is missing.")):Object(a.e)(e)}))}},V.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=0,n=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);t<n.length;t++){var i=n[t],o=this.currentOccurrences[i.id];if(o)return o}return null},V.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))},V.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},V.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},V.ID="editor.linkDetector",V.RECOMPUTE_TIME=1e3,V=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([R(1,M.a),R(2,D.a)],V));function V(e,t,n){var i=this;this.listenersToRemove=new u.b,this.editor=e,this.openerService=t,this.notificationService=n;var o=new f.a(e);this.listenersToRemove.add(o),this.listenersToRemove.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i._onEditorMouseMove(t,n)}))),this.listenersToRemove.add(o.onExecute((function(e){i.onEditorMouseUp(e)}))),this.listenersToRemove.add(o.onCancel((function(e){i.cleanUpActiveLinkDecoration()}))),this.enabled=e.getOption(52),this.listenersToRemove.add(e.onDidChangeConfiguration((function(t){var n=e.getOption(52);i.enabled!==n&&(i.enabled=n,i.updateDecorations([]),i.stop(),i.beginCompute())}))),this.listenersToRemove.add(e.onDidChangeModelContent((function(e){return i.onChange()}))),this.listenersToRemove.add(e.onDidChangeModel((function(e){return i.onModelChanged()}))),this.listenersToRemove.add(e.onDidChangeModelLanguage((function(e){return i.onModelModeChanged()}))),this.listenersToRemove.add(p.s.onDidChange((function(e){return i.onModelModeChanged()}))),this.timeout=new r.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}var z,H=(P(q,z=d.b),q.prototype.run=function(e,t){var n=W.get(t);if(n&&t.hasModel())for(var i=0,o=t.getSelections();i<o.length;i++){var r=o[i],s=n.getLinkOccurrence(r.getEndPosition());s&&n.openLinkOccurrence(s,!1)}},q);function q(){return z.call(this,{id:"editor.action.openLink",label:o.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}Object(d.h)(W.ID,W),Object(d.f)(H),Object(I.e)((function(e,t){var n=e.getColor(T.n);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(446),r=n(456),s=n(774),a=n(449),l=n(469),u=(n(1378),n(439)),c=n(450),d=n(440),h=n(461),p=n(451),f=n(531),g=n(443),m=function(e,t){return function(n,i){t(n,i,e)}},v=new r.d("renameInputVisible",!1),y=(b.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},b.prototype.getId=function(){return"__renameInputWidget"},b.prototype.getDomNode=function(){var e=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(i.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var t=function(){var t,n,o=e._acceptKeybindings,r=o[0],s=o[1];e._keybindingService.lookupKeybinding(r),e._label.innerText=Object(i.a)("label","{0} to Rename, {1} to Preview",null===(t=e._keybindingService.lookupKeybinding(r))||void 0===t?void 0:t.getLabel(),null===(n=e._keybindingService.lookupKeybinding(s))||void 0===n?void 0:n.getLabel())};t(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(t)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},b.prototype._updateStyles=function(e){var t,n,i,o;if(this._input&&this._domNode){var r=e.getColor(h.hc);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(h.Q))&&void 0!==t?t:""),this._domNode.style.boxShadow=r?" 0 2px 8px "+r:"",this._domNode.style.color=String(null!==(n=e.getColor(h.bb))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(i=e.getColor(h.Z))&&void 0!==i?i:"");var s=e.getColor(h.ab);this._input.style.borderWidth=s?"1px":"0px",this._input.style.borderStyle=s?"solid":"none",this._input.style.borderColor=null!==(o=null==s?void 0:s.toString())&&void 0!==o?o:"none"}},b.prototype._updateFont=function(){if(this._input&&this._label){var e=this._editor.getOption(34);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=e.fontSize+"px",this._label.style.fontSize=.8*e.fontSize+"px"}},b.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},b.prototype.acceptInput=function(e){this._currentAcceptInput&&this._currentAcceptInput(e)},b.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},b.prototype.getInput=function(e,t,n,i,o){var r=this;Object(g.Y)(this._domNode,"preview",o),this._position=new c.a(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",i.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var s=new u.b;return new Promise((function(n){r._currentCancelInput=function(e){return r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n(e),!0},r._currentAcceptInput=function(e){0!==r._input.value.trim().length&&r._input.value!==t?(r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n({newName:r._input.value,wantsPreview:o&&e})):r.cancelInput(!0)},s.add(r._editor.onDidChangeCursorSelection((function(){var t=r._editor.getPosition();t&&d.a.containsPosition(e,t)||r.cancelInput(!0)}))),s.add(r._editor.onDidBlurEditorWidget((function(){return r.cancelInput(!1)}))),r._show()})).finally((function(){s.dispose(),r._hide()}))},b.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((function(){e._input.focus(),e._input.setSelectionRange(parseInt(e._input.getAttribute("selectionStart")),parseInt(e._input.getAttribute("selectionEnd")))}),100)},b.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},b=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([m(2,p.c),m(3,f.a),m(4,r.c)],b));function b(e,t,n,i,o){var r=this;this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=i,this._disposables=new u.b,this.allowEditorOverflow=!0,this._visibleContextKey=v.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&r._updateFont()}))),this._disposables.add(n.onThemeChange(this._updateStyles,this))}var _=n(454),w=n(635),C=n(887),S=n(761),O=n(532),x=n(951),k=n(479),E=n(504),N=n(484),L=n(453),D=n(465),M=n(828),T=n(448),I=n(571),P=n(789),A=n(899);n.d(t,"rename",(function(){return H})),n.d(t,"RenameAction",(function(){return G}));var R,j=(R=function(e,t){return(R=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){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t){return function(n,i){t(n,i,e)}},B=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},W=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},V=(z.prototype.hasProvider=function(){return 0<this._providers.length},z.prototype.resolveRenameLocation=function(e){return B(this,void 0,void 0,(function(){var t,n,i,o;return W(this,(function(r){switch(r.label){case 0:return(t=this._providers[0])?t.resolveRenameLocation?(i=D.n,[4,t.resolveRenameLocation(this.model,this.position,e)]):[3,2]:[2,void 0];case 1:n=i.apply(void 0,[r.sent()]),r.label=2;case 2:return!n&&(o=this.model.getWordAtPosition(this.position))?[2,{range:new d.a(this.position.lineNumber,o.startColumn,this.position.lineNumber,o.endColumn),text:o.word}]:[2,n]}}))}))},z.prototype.provideRenameEdits=function(e,t,n,o){return B(this,void 0,void 0,(function(){var r,s;return W(this,(function(a){switch(a.label){case 0:return(r=this._providers[t])?[4,r.provideRenameEdits(this.model,this.position,e,o)]:[2,{edits:[],rejectReason:n.join("\n")}];case 1:return(s=a.sent())?s.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(s.rejectReason),o)]:[2,s]:[2,this.provideRenameEdits(e,t+1,n.concat(i.a("no result","No result.")),o)]}}))}))},z);function z(e,t){this.model=e,this.position=t,this._providers=_.v.ordered(e)}function H(e,t,n){return B(this,void 0,void 0,(function(){return W(this,(function(i){return[2,new V(e,t).provideRenameEdits(n,0,[],N.a.None)]}))}))}var q=(U.get=function(e){return e.getContribution(U.ID)},U.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},U.prototype.run=function(){return B(this,void 0,void 0,(function(){var e,t,n,o,r,s,a,l,u,c,h,p=this;return W(this,(function(f){switch(f.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(e=this.editor.getPosition(),!(t=new V(this.editor.getModel(),e)).hasProvider())return[2,void 0];this._cts=new S.b(this.editor,5),f.label=1;case 1:return f.trys.push([1,3,,4]),o=t.resolveRenameLocation(this._cts.token),this._progressService.showWhile(o,250),[4,o];case 2:return n=f.sent(),[3,4];case 3:return r=f.sent(),C.a.get(this.editor).showMessage(r||i.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e),[2,void 0];case 4:return n?n.rejectReason?(C.a.get(this.editor).showMessage(n.rejectReason,e),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(s=this.editor.getSelection(),a=0,l=n.text.length,d.a.isEmpty(s)||d.a.spansMultipleLines(s)||!d.a.containsRange(n.range,s)||(a=Math.max(0,s.startColumn-n.range.startColumn),l=Math.min(n.range.endColumn,s.endColumn)-n.range.startColumn),u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(n.range,n.text,a,l,u)]):[2,void 0];case 5:return"boolean"==typeof(c=f.sent())?(c&&this.editor.focus(),[2,void 0]):(this.editor.focus(),h=Object(L.j)(t.provideRenameEdits(c.newName,0,[],this._cts.token),this._cts.token).then((function(e){return B(p,void 0,void 0,(function(){var t=this;return W(this,(function(o){return e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(e,{editor:this.editor,showPreview:c.wantsPreview,label:i.a("label","Renaming '{0}'",null==n?void 0:n.text)}).then((function(e){e.ariaSummary&&Object(w.a)(i.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,c.newName,e.ariaSummary))})).catch((function(e){t._notificationService.error(i.a("rename.failedApply","Rename failed to apply edits")),t._logService.error(e)}))),[2]}))}))}),(function(e){p._notificationService.error(i.a("rename.failed","Rename failed to compute edits")),p._logService.error(e)})),this._progressService.showWhile(h,250),[2,h])}}))}))},U.prototype.acceptRenameInput=function(e){this._renameInputField.getValue().acceptInput(e)},U.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},U.ID="editor.contrib.renameController",U=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([F(1,T.a),F(2,O.a),F(3,x.a),F(4,s.a),F(5,M.a),F(6,A.a)],U));function U(e,t,n,i,o,r,s){var a=this;this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=i,this._progressService=o,this._logService=r,this._configService=s,this._dispoableStore=new u.b,this._cts=new N.b,this._renameInputField=this._dispoableStore.add(new L.b((function(){return a._dispoableStore.add(a._instaService.createInstance(y,a.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))})))}var K,G=(j(Y,K=a.b),Y.prototype.runCommand=function(e,t){var n=this,i=e.get(E.a),r=Array.isArray(t)&&t||[void 0,void 0],s=r[0],a=r[1];return k.a.isUri(s)&&c.a.isIPosition(a)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(a),e.invokeWithinContext((function(t){return n.reportTelemetry(t,e),n.run(t,e)})))}),o.e):K.prototype.runCommand.call(this,e,t)},Y.prototype.run=function(e,t){var n=q.get(t);return n?n.run():Promise.resolve()},Y);function Y(){return K.call(this,{id:"editor.action.rename",label:i.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:r.a.and(l.a.writable,l.a.hasRenameProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}Object(a.h)(q.ID,q),Object(a.f)(G);var Z=a.c.bindToContribution(q.get);Object(a.g)(new Z({id:"acceptRenameInput",precondition:v,handler:function(e){return e.acceptRenameInput(!1)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:3}})),Object(a.g)(new Z({id:"acceptRenameInputWithPreview",precondition:r.a.and(v,r.a.has("config.editor.rename.enablePreview")),handler:function(e){return e.acceptRenameInput(!0)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:1027}})),Object(a.g)(new Z({id:"cancelRenameInput",precondition:v,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.e)("_executeDocumentRenameProvider",(function(e,t,n){var i=n.newName;if("string"!=typeof i)throw Object(o.b)("newName");return H(e,t,i)})),I.a.as(P.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:i.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},function(e,t,n){"use strict";n.r(t);var i=n(459),o=n(484),r=n(449),s=n(450),a=n(440),l=n(466),u=n(469),c=n(454),d=n(445),h=n(439),p=n(444),f=(g.prototype.provideSelectionRanges=function(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i],s=[];n.push(s),this._addInWordRanges(s,e,r),this._addWordRanges(s,e,r),this._addWhitespaceLine(s,e,r),s.push({range:e.getFullModelRange()})}return n},g.prototype._addInWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);if(i){for(var o=i.word,r=i.startColumn,s=n.column-r,l=s,u=s,c=0;0<=l&&95!==(d=o.charCodeAt(l))&&45!==d&&(!Object(p.B)(d)||!Object(p.C)(c));l--)c=d;for(l+=1;u<o.length;u++){var d=o.charCodeAt(u);if(Object(p.C)(d)&&Object(p.B)(c))break;if(95===d||45===d)break;c=d}l<u&&e.push({range:new a.a(n.lineNumber,r+l,n.lineNumber,r+u)})}},g.prototype._addWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);i&&e.push({range:new a.a(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})},g.prototype._addWhitespaceLine=function(e,t,n){0<t.getLineLength(n.lineNumber)&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},g);function g(){}var m=n(1099),v=n(489),y=n(446);n.d(t,"provideSelectionRanges",(function(){return P}));var b,_=(b=function(e,t){return(b=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){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=(C.prototype.mov=function(e){var t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;var n=new C(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n},C);function C(e,t){this.index=e,this.ranges=t}var S=(O.get=function(e){return e.getContribution(O.ID)},O.prototype.dispose=function(){Object(h.f)(this._selectionListener)},O.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),r=this._editor.getModel();if(c.w.has(r)){var s=Promise.resolve(void 0);return this._state||(s=P(r,n.map((function(e){return e.getPosition()})),o.a.None).then((function(e){if(i.q(e)&&e.length===n.length&&t._editor.hasModel()&&i.g(t._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var o=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},r=0;r<e.length;r++)o(r);t._state=e.map((function(e){return new w(0,e)})),Object(h.f)(t._selectionListener),t._selectionListener=t._editor.onDidChangeCursorPosition((function(){t._ignoreSelection||(Object(h.f)(t._selectionListener),t._state=void 0)}))}}))),s.then((function(){if(t._state){t._state=t._state.map((function(t){return t.mov(e)}));var n=t._state.map((function(e){return l.a.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())}));t._ignoreSelection=!0;try{t._editor.setSelections(n)}finally{t._ignoreSelection=!1}}}))}}},O.ID="editor.contrib.smartSelectController",O);function O(e){this._ignoreSelection=!1,this._editor=e}var x,k=(_(E,x=r.b),E.prototype.run=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(n){switch(n.label){case 0:return(e=S.get(t))?[4,e.run(this._forward)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},E);function E(e,t){var n=x.call(this,t)||this;return n._forward=e,n}var N,L=(_(D,N=k),D);function D(){return N.call(this,!0,{id:"editor.action.smartSelect.expand",label:d.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var M,T=(_(I,M=k),I);function I(){return M.call(this,!1,{id:"editor.action.smartSelect.shrink",label:d.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}function P(e,t,n){var o=c.w.all(e);1===o.length&&o.unshift(new m.a);for(var r=[],l=[],u=0,d=o;u<d.length;u++){var h=d[u];r.push(Promise.resolve(h.provideSelectionRanges(e,t,n)).then((function(e){if(i.q(e)&&e.length===t.length)for(var n=0;n<t.length;n++){l[n]||(l[n]=[]);for(var o=0,r=e[n];o<r.length;o++){var s=r[o];a.a.isIRange(s.range)&&a.a.containsPosition(s.range,t[n])&&l[n].push(a.a.lift(s.range))}}}),y.f))}return Promise.all(r).then((function(){return l.map((function(t){if(0===t.length)return[];t.sort((function(e,t){return s.a.isBefore(e.getStartPosition(),t.getStartPosition())?1:s.a.isBefore(t.getStartPosition(),e.getStartPosition())||s.a.isBefore(e.getEndPosition(),t.getEndPosition())?-1:s.a.isBefore(t.getEndPosition(),e.getEndPosition())?1:0}));for(var n,i=[],o=0,r=t;o<r.length;o++){var l=r[o];n&&(!a.a.containsRange(l,n)||a.a.equalsRange(l,n))||(i.push(l),n=l)}for(var u=[i[0]],c=1;c<i.length;c++){var d=i[c-1],h=i[c];if(h.startLineNumber!==d.startLineNumber||h.endLineNumber!==d.endLineNumber){var p=new a.a(d.startLineNumber,e.getLineFirstNonWhitespaceColumn(d.startLineNumber),d.endLineNumber,e.getLineLastNonWhitespaceColumn(d.endLineNumber));p.containsRange(d)&&!p.equalsRange(d)&&h.containsRange(p)&&!h.equalsRange(p)&&u.push(p);var f=new a.a(d.startLineNumber,1,d.endLineNumber,e.getLineMaxColumn(d.endLineNumber));f.containsRange(d)&&!f.equalsRange(p)&&h.containsRange(f)&&!h.equalsRange(f)&&u.push(f)}u.push(h)}return u}))}))}Object(r.h)(S.ID,S),Object(r.f)(L),Object(r.f)(T),c.w.register("*",new f),Object(r.l)("_executeSelectionRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(e,t[0],o.a.None)}))},function(e,t,n){"use strict";n.r(t),n(785),n.d(t,"LanguageServiceDefaultsImpl",(function(){return f}));var i,o,r,s,a,l,u,c,d,h,p=monaco.Emitter,f=(Object.defineProperty(g.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),g.prototype.getExtraLibs=function(){return this._extraLibs},g.prototype.addExtraLib=function(e,t){var n,i=this;if(n=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===o&&(delete i._extraLibs[n],i._fireOnDidExtraLibsChangeSoon())}}},g.prototype.setExtraLibs=function(e){if(this._extraLibs=Object.create(null),e&&0<e.length)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r=i.content;this._extraLibs[o]={content:r,version:1}}this._fireOnDidExtraLibsChangeSoon()},g.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},g.prototype.getCompilerOptions=function(){return this._compilerOptions},g.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},g.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.setMaximumWorkerIdleTime=function(e){},g.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},g.prototype.getEagerModelSync=function(){return this._eagerModelSync},g);function g(e,t){this._onDidChange=new p,this._onDidExtraLibsChange=new p,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this._onDidExtraLibsChangeTimeout=-1}(o=i=i||{})[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",(s=r=r||{})[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",(l=a=a||{})[l.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",l[l.LineFeed=1]="LineFeed",(c=u=u||{})[c.ES3=0]="ES3",c[c.ES5=1]="ES5",c[c.ES2015=2]="ES2015",c[c.ES2016=3]="ES2016",c[c.ES2017=4]="ES2017",c[c.ES2018=5]="ES2018",c[c.ES2019=6]="ES2019",c[c.ES2020=7]="ES2020",c[c.ESNext=99]="ESNext",c[c.JSON=100]="JSON",c[c.Latest=99]="Latest",(h=d=d||{})[h.Classic=1]="Classic",h[h.NodeJs=2]="NodeJs";var m=new f({allowNonTsExtensions:!0,target:u.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),v=new f({allowNonTsExtensions:!0,allowJs:!0,target:u.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function y(){return n.e(294).then(n.bind(null,2412))}monaco.languages.typescript={ModuleKind:i,JsxEmit:r,NewLineKind:a,ScriptTarget:u,ModuleResolutionKind:d,typescriptVersion:"3.7.5",typescriptDefaults:m,javascriptDefaults:v,getTypeScriptWorker:function(){return y().then((function(e){return e.getTypeScriptWorker()}))},getJavaScriptWorker:function(){return y().then((function(e){return e.getJavaScriptWorker()}))}},monaco.languages.onLanguage("typescript",(function(){return y().then((function(e){return e.setupTypeScript(m)}))})),monaco.languages.onLanguage("javascript",(function(){return y().then((function(e){return e.setupJavaScript(v)}))}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i,o,r=n(944),s=n(442),a=n(439),l=n(505),u=n(440),c=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},h=(c(p,o=a.a),p.prototype._init=function(){this._editor.getLineChanges()},p.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},p.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new u.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new u.a(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})})),this.ranges.sort((function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0})),this._onDidUpdate.fire(this)},p.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,o=this.ranges.length;i<o&&!t;i++){var r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0},p.prototype._move=function(e,t){if(r.a(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(--this.nextIdx,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},p.prototype.canNavigate=function(){return this.ranges&&0<this.ranges.length},p.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},p.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},p.prototype.dispose=function(){o.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},p);function p(e,t){void 0===t&&(t={});var n=o.call(this)||this;return n._onDidUpdate=n._register(new s.a),n._editor=e,n._options=l.g(t,d,!1),n.disposed=!1,n.nextIdx=-1,n.ranges=[],n.ignoreSelectionChange=!1,n.revealFirst=Boolean(n._options.alwaysRevealFirst),n._register(n._editor.onDidDispose((function(){return n.dispose()}))),n._register(n._editor.onDidUpdateDiff((function(){return n._onDiffUpdated()}))),n._options.followsCaret&&n._register(n._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){n.ignoreSelectionChange||(n.nextIdx=-1)}))),n._options.alwaysRevealFirst&&n._register(n._editor.getModifiedEditor().onDidChangeModel((function(e){n.revealFirst=!0}))),n._init(),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"MonacoDiffEditor",{enumerable:!0,get:function(){return o.default}});var i=r(n(1412)),o=r(n(1413));function r(e){return e&&e.__esModule?e:{default:e}}},,,,,,function(e,t,n){"use strict";n(1386);var i,o=n(445),r=n(443),s=n(488),a=n(891),l=n(453),u=n(442),c=n(439),d=n(505),h=n(707),p=n(761),f=n(504),g=n(930),m=(n(1387),n(772)),v=n(688),y=n(703),b=n(449),_=n(530),w=n(824),C=n(450),S=n(572),O=n(893),x=n(777),k=n(456),E=n(461),N=n(451),L=(i=function(e,t){return(i=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){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=(M.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},M);function M(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}var T,I=function(e){this.entries=e},P=(L(A,T=c.a),A.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new C.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},A.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new C.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},A.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new C.a(e,1)),this._diffEditor.revealPosition(new C.a(e,1),1))},A.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},A.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},A.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},A.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},A.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},A.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},A.prototype.isVisible=function(){return this._isVisible},A.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},A.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?A._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]},A._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],l=a.originalStartLineNumber,u=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],p=0,f=0===u?l:l-1,g=0===d?c:c-1,m=1,v=1;if(0<r){var y=e[r-1];m=0===y.originalEndLineNumber?y.originalStartLineNumber+1:y.originalEndLineNumber+1,v=0===y.modifiedEndLineNumber?y.modifiedStartLineNumber+1:y.modifiedEndLineNumber+1}var b=f-3+1,_=g-3+1;b<m&&(b+=k=m-b,_+=k),_<v&&(b+=k=v-_,_+=k),h[p++]=new D(b,f,_,g),0!==u&&(h[p++]=new D(l,u,0,0)),0!==d&&(h[p++]=new D(0,0,c,d));var w=0===u?l+1:u+1,C=0===d?c+1:d+1,S=t,O=n;if(r+1<s){var x=e[r+1];S=0===x.originalEndLineNumber?x.originalStartLineNumber:x.originalStartLineNumber-1,O=0===x.modifiedEndLineNumber?x.modifiedStartLineNumber:x.modifiedStartLineNumber-1}var k,E=w+3-1,N=C+3-1;S<E&&(E+=k=S-E,N+=k),O<N&&(E+=k=O-N,N+=k),h[p++]=new D(w,E,C,N),i[o++]=new I(h)}var L=i[0].entries,M=[],T=0;for(r=1,s=i.length;r<s;r++){var P=i[r].entries,A=L[L.length-1],R=P[0];L=0===A.getType()&&0===R.getType()&&R.originalLineStart<=A.originalLineEnd?(L[L.length-1]=new D(A.originalLineStart,R.originalLineEnd,A.modifiedLineStart,R.modifiedLineEnd),L.concat(P.slice(1))):(M[T++]=new I(L),P)}return M[T++]=new I(L),M},A.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var o=this._diffs[n].entries;if(t<=o[o.length-1].modifiedLineEnd)return n}return 0},A.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel(),s=n.getOptions(),a=i.getOptions();if(!this._isVisible||!n||!i)return r.t(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]!==this._currentDiff){this._currentDiff=this._diffs[l];var u=this._diffs[l].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),h.a.applyFontInfoSlow(c,t.get(34));for(var d=0,p=0,f=0,g=0,m=0,v=u.length;m<v;m++){var y=(D=u[m]).originalLineStart,b=D.originalLineEnd,_=D.modifiedLineStart,w=D.modifiedLineEnd;0!==y&&(0===d||y<d)&&(d=y),0!==b&&(0===p||p<b)&&(p=b),0!==_&&(0===f||_<f)&&(f=_),0!==w&&(0===g||g<w)&&(g=w)}var C=document.createElement("div");C.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var O=p-d+1,x=g-f+1;S.appendChild(document.createTextNode(l+1+"/"+this._diffs.length+": @@ -"+d+","+O+" +"+f+","+x+" @@")),C.setAttribute("data-line",String(f));var k=function(e){return 0===e?o.a("no_lines","no lines"):1===e?o.a("one_line","1 line"):o.a("more_lines","{0} lines",e)},E=k(O),N=k(x);C.setAttribute("aria-label",o.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",l+1,this._diffs.length,d,E,f,N)),C.appendChild(S),C.setAttribute("role","listitem"),c.appendChild(C);var L=f;for(m=0,v=u.length;m<v;m++){var D=u[m];A._renderSection(c,D,L,this._width,e,n,s,t,i,a),0!==D.modifiedLineStart&&(L=D.modifiedLineEnd)}r.t(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}},A._renderSection=function(e,t,n,i,r,s,a,l,u,c){var d=t.getType(),h="diff-review-row",p="",f="diff-review-spacer";switch(d){case 1:h="diff-review-row line-insert",p=" char-insert",f="diff-review-spacer insert-sign";break;case 2:h="diff-review-row line-delete",p=" char-delete",f="diff-review-spacer delete-sign"}for(var g=t.originalLineStart,m=t.originalLineEnd,v=t.modifiedLineStart,y=t.modifiedLineEnd,b=Math.max(y-v,m-g),_=r.get(107),w=_.glyphMarginWidth+_.lineNumbersWidth,C=l.get(107),S=10+C.glyphMarginWidth+C.lineNumbersWidth,O=0;O<=b;O++){var x=0===g?0:g+O,k=0===v?0:v+O,E=document.createElement("div");E.style.minWidth=i+"px",E.className=h,E.setAttribute("role","listitem"),0!==k&&(n=k),E.setAttribute("data-line",String(n));var N=document.createElement("div");N.className="diff-review-cell",E.appendChild(N);var L=document.createElement("span");L.style.width=w+"px",L.style.minWidth=w+"px",L.className="diff-review-line-number"+p,0!==x?L.appendChild(document.createTextNode(String(x))):L.innerHTML=" ",N.appendChild(L);var D=document.createElement("span");D.style.width=S+"px",D.style.minWidth=S+"px",D.style.paddingRight="10px",D.className="diff-review-line-number"+p,0!==k?D.appendChild(document.createTextNode(String(k))):D.innerHTML=" ",N.appendChild(D);var M=document.createElement("span");M.className=f,M.innerHTML="  ",N.appendChild(M);var T=void 0;0===(T=0!==k?(N.insertAdjacentHTML("beforeend",this._renderLine(u,l,c.tabSize,k)),u.getLineContent(k)):(N.insertAdjacentHTML("beforeend",this._renderLine(s,r,a.tabSize,x)),s.getLineContent(x))).length&&(T=o.a("blankLine","blank"));var I="";switch(d){case 0:I=o.a("equalLine","original {0}, modified {1}: {2}",x,k,T);break;case 1:I=o.a("insertLine","+ modified {0}: {1}",k,T);break;case 2:I=o.a("deleteLine","- original {0}: {1}",x,T)}E.setAttribute("aria-label",I),e.appendChild(E)}},A._renderLine=function(e,t,n,i){var o=e.getLineContent(i),r=t.get(34),s=new Uint32Array(2);s[0]=o.length,s[1]=16793600;var a=new w.a(s,o),l=x.d.isBasicASCII(o,e.mightContainNonBasicASCII()),u=x.d.containsRTL(o,l,e.mightContainRTL());return Object(O.e)(new O.c(r.isMonospace&&!t.get(23),r.canUseHalfwidthRightwardsArrow,o,!1,l,u,0,a,[],n,0,r.spaceWidth,r.middotWidth,t.get(88),t.get(74),t.get(69),t.get(35)!==_.d.OFF,null)).html},A);function A(e){var t=T.call(this)||this;return t._width=0,t._diffEditor=e,t._isVisible=!1,t.shadow=Object(s.b)(document.createElement("div")),t.shadow.setClassName("diff-review-shadow"),t.actionBarContainer=Object(s.b)(document.createElement("div")),t.actionBarContainer.setClassName("diff-review-actions"),t._actionBar=t._register(new m.a(t.actionBarContainer.domNode)),t._actionBar.push(new y.a("diffreview.close",o.a("label.close","Close"),"close-diff-review",!0,(function(){return t.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),t.domNode=Object(s.b)(document.createElement("div")),t.domNode.setClassName("diff-review monaco-editor-background"),t._content=Object(s.b)(document.createElement("div")),t._content.setClassName("diff-review-content"),t.scrollbar=t._register(new v.a(t._content.domNode,{})),t.domNode.domNode.appendChild(t.scrollbar.getDomNode()),t._register(e.onDidUpdateDiff((function(){t._isVisible&&(t._diffs=t._compute(),t._render())}))),t._register(e.getModifiedEditor().onDidChangeCursorPosition((function(){t._isVisible&&t._render()}))),t._register(e.getOriginalEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(e.getModifiedEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(r.o(t.domNode.domNode,"click",(function(e){e.preventDefault();var n=r.x(e.target,"diff-review-row");n&&t._goToRow(n)}))),t._register(r.o(t.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),t._goToRow(t._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),t._goToRow(t._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),t.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),t.accept())}))),t._diffs=[],t._currentDiff=null,t}Object(N.e)((function(e,t){var n=e.getColor(S.k);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(E.Vb);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }")}));var R,j=(L(F,R=b.b),F.prototype.run=function(e,t){var n=z(e);n&&n.diffReviewNext()},F);function F(){return R.call(this,{id:"editor.action.diffReview.next",label:o.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:k.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}var B,W=(L(V,B=b.b),V.prototype.run=function(e,t){var n=z(e);n&&n.diffReviewPrev()},V);function V(){return B.call(this,{id:"editor.action.diffReview.prev",label:o.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:k.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}function z(e){for(var t=e.get(f.a).listDiffEditors(),n=0,i=t.length;n<i;n++){var o=t[n];if(o.hasWidgetFocus())return o}return null}Object(b.f)(j),Object(b.f)(W);var H,q,U=n(440),K=n(894),G=n(776),Y=n(495),Z=n(758),X=n(1088),$=n(958),J=n(448),Q=n(895),ee=n(532),te=n(757),ne=(H=function(e,t){return(H=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){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},oe=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},re=(ne(se,q=c.a),Object.defineProperty(se.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),se.prototype._updateLightBulbPosition=function(e,t,n){var i=t-r.C(e).top,o=Math.floor(i/n),s=o*n;return this._diffActions.style.top=s+"px",o},se);function se(e,t,n,i,s,a){var l=q.call(this)||this;l._viewZoneId=e,l._marginDomNode=t,l.editor=n,l.diff=i,l._contextMenuService=s,l._clipboardService=a,l._visibility=!1,l._marginDomNode.style.zIndex="10",l._diffActions=document.createElement("div"),l._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",l._diffActions.style.position="absolute";var u=n.getOption(49),c=n.getModel().getEOL();l._diffActions.style.right="0px",l._diffActions.style.visibility="hidden",l._diffActions.style.height=u+"px",l._diffActions.style.lineHeight=u+"px",l._marginDomNode.appendChild(l._diffActions);var d=[];d.push(new y.a("diff.clipboard.copyDeletedContent",i.originalEndLineNumber>i.modifiedStartLineNumber?o.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):o.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){return oe(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent.join(c)+c)];case 1:return e.sent(),[2]}}))}))})));var h=0,p=void 0;function f(e,t){l._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return p&&(p.label=o.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+h)),d},autoSelectFirstItem:!0})}return i.originalEndLineNumber>i.modifiedStartLineNumber&&(p=new y.a("diff.clipboard.copyDeletedLineContent",o.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){return oe(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent[h])];case 1:return e.sent(),[2]}}))}))})),d.push(p)),n.getOption(68)||d.push(new y.a("diff.inline.revertChange",o.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){var e;return oe(this,(function(t){return 0===i.modifiedEndLineNumber?(e=n.getModel().getLineMaxColumn(i.modifiedStartLineNumber),n.executeEdits("diffEditor",[{range:new U.a(i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:c+i.originalContent.join(c)}])):(e=n.getModel().getLineMaxColumn(i.modifiedEndLineNumber),n.executeEdits("diffEditor",[{range:new U.a(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:i.originalContent.join(c)}])),[2]}))}))}))),l._register(r.o(l._diffActions,"mousedown",(function(e){var t=r.C(l._diffActions),n=t.top,i=t.height,o=Math.floor(u/3);e.preventDefault(),f(e.posx,n+i+o)}))),l._register(n.onMouseMove((function(e){(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===l._viewZoneId?(l.visibility=!0,h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,u)):l.visibility=!1}))),l._register(n.onMouseDown((function(e){e.event.rightButton&&(8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===l._viewZoneId&&(e.event.preventDefault(),h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,u),f(e.event.posx,e.event.posy+u)))}))),l}var ae=n(446),le=n(774),ue=n(1087);n.d(t,"a",(function(){return ve}));var ce,de=(ce=function(e,t){return(ce=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){function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),he=function(e,t){return function(n,i){t(n,i,e)}},pe=(fe.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},fe.prototype.clean=function(e){var t=this;0<this._zones.length&&e.changeViewZones((function(e){for(var n=0,i=t._zones.length;n<i;n++)e.removeZone(t._zones[n])})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},fe.prototype.apply=function(e,t,n,i){var o=this,r=i?p.c.capture(e):null;e.changeViewZones((function(t){for(var i=0,r=o._zones.length;i<r;i++)t.removeZone(o._zones[i]);i=0;for(var s=o.inlineDiffMargins.length;i<s;i++)o.inlineDiffMargins[i].dispose();o._zones=[],o._zonesMap={},o.inlineDiffMargins=[],i=0;for(var a=n.zones.length;i<a;i++){var l=n.zones[i];l.suppressMouseDown=!0;var u=t.addZone(l);o._zones.push(u),o._zonesMap[String(u)]=!0,n.zones[i].diff&&l.marginDomNode&&o._clipboardService&&(l.suppressMouseDown=!1,o.inlineDiffMargins.push(new re(u,l.marginDomNode,e,n.zones[i].diff,o._contextMenuService,o._clipboardService)))}})),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},fe);function fe(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}var ge,me=0,ve=(de(ye,ge=c.a),ye.prototype._setState=function(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))},ye.prototype.hasWidgetFocus=function(){return r.K(document.activeElement,this._domElement)},ye.prototype.diffReviewNext=function(){this._reviewPane.next()},ye.prototype.diffReviewPrev=function(){this._reviewPane.prev()},ye._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+Object(N.d)(e.type)},ye.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},ye.prototype._createLeftHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),i},ye.prototype._createRightHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i.getModel()&&n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),this._register(i.onDidChangeModelOptions((function(e){e.tabSize&&n._updateDecorationsRunner.schedule()}))),i},ye.prototype._createInnerEditor=function(e,t,n){return e.createInstance(g.a,t,n,{})},ye.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),ge.prototype.dispose.call(this)},ye.prototype.getId=function(){return this.getEditorType()+":"+this.id},ye.prototype.getEditorType=function(){return G.a.IDiffEditor},ye.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},ye.prototype.getOriginalEditor=function(){return this.originalEditor},ye.prototype.getModifiedEditor=function(){return this.modifiedEditor},ye.prototype.updateOptions=function(e){var t=!1;void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,t=!0),void 0!==e.maxComputationTime&&(this._maxComputationTime=e.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var n=!1;void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,n=!0),void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,n=!0),n&&this._beginUpdateDecorations(),void 0!==e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),void 0!==e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),t&&(this._renderSideBySide?this._setStrategy(new Le(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ae(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=ye._getClassName(this._themeService.getTheme(),this._renderSideBySide))},ye.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},ye.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},ye.prototype.getDomNode=function(){return this._domElement},ye.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},ye.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},ye.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},ye.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},ye.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},ye.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},ye.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},ye.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},ye.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},ye.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},ye.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},ye.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},ye.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},ye.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},ye.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},ye.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},ye.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this.modifiedEditor.revealRange(e,t,n,i)},ye.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},ye.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},ye.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},ye.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},ye.prototype.saveViewState=function(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}},ye.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},ye.prototype.layout=function(e){this._elementSizeObserver.observe(e)},ye.prototype.focus=function(){this.modifiedEditor.focus()},ye.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},ye.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},ye.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},ye.prototype._onDidContainerSizeChanged=function(){this._doLayout()},ye.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},ye.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),n=ye.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ye.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:ye.ONE_OVERVIEW_WIDTH,right:n+ye.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:ye.ONE_OVERVIEW_WIDTH,height:e-t}))}},ye.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},ye.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),ye.UPDATE_DIFF_DECORATIONS_DELAY)},ye._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},ye.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var t=this.originalEditor.getModel(),n=this.modifiedEditor.getModel();if(t&&n){this._diffComputationToken++;var i=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then((function(o){i===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=o,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(o){i===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):ye._equals(t.uri,this._lastOriginalWarning)&&ye._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(o.a("diff.tooLarge","Cannot compare files because one file is too large.")))}},ye.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},ye.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},ye.prototype._adjustOptionsForSubEditor=function(e){var t=d.c(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t},ye.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.extraEditorClassName="original-in-monaco-diff-editor",n},ye.prototype._adjustOptionsForRightHandSide=function(e){var t=this._adjustOptionsForSubEditor(e);return t.revealHorizontalRightPadding=_.e.revealHorizontalRightPadding.defaultValue+ye.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",t},ye.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},ye.prototype._doLayout=function(){var e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),i=this._strategy.layout();this._originalDomNode.style.width=i+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-i+"px",this._modifiedDomNode.style.left=i+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-n+"px",this._overviewDomElement.style.width=ye.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-ye.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(ye.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:i,height:t-n}),this.modifiedEditor.layout({width:e-i-ye.ENTIRE_DIFF_OVERVIEW_WIDTH,height:t-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-n,e,n),this._layoutOverviewViewport()},ye.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},ye.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),o=Math.max(0,+i),r=0<n?o/n:0;return{height:Math.max(0,Math.floor(e.height*r)),top:Math.floor(t*r)}},ye.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._elementSizeObserver.getWidth()},getHeight:function(){return e._elementSizeObserver.getHeight()-e._getReviewHeight()},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},ye.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),(this._strategy=e).applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},ye.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;for(var i=0,o=n.length-1;i<o;){var r=Math.floor((i+o)/2),s=t(n[r]),a=r+1<=o?t(n[r+1]):1073741824;e<s?o=r-1:a<=e?i=r+1:o=i=r}return n[i]},ye.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),i=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),o=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s},ye.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),i=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),o=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},ye.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},ye.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},ye.ONE_OVERVIEW_WIDTH=15,ye.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ye.UPDATE_DIFF_DECORATIONS_DELAY=200,ye=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([he(3,Z.a),he(4,k.c),he(5,J.a),he(6,f.a),he(7,N.c),he(8,ee.a),he(9,te.a),he(10,le.a)],ye));function ye(e,t,n,i,o,a,c,d,h,p,f){var g=ge.call(this)||this;g._editorProgressService=f,g._onDidDispose=g._register(new u.a),g.onDidDispose=g._onDidDispose.event,g._onDidUpdateDiff=g._register(new u.a),g.onDidUpdateDiff=g._onDidUpdateDiff.event,g._lastOriginalWarning=null,g._lastModifiedWarning=null,g._editorWorkerService=i,g._codeEditorService=c,g._contextKeyService=g._register(o.createScoped(e)),g._contextKeyService.createKey("isInDiffEditor",!0),g._themeService=d,g._notificationService=h,g.id=++me,g._state=0,g._updatingDiffProgress=null,g._domElement=e,t=t||{},g._renderSideBySide=!0,void 0!==t.renderSideBySide&&(g._renderSideBySide=t.renderSideBySide),g._maxComputationTime=5e3,void 0!==t.maxComputationTime&&(g._maxComputationTime=t.maxComputationTime),g._ignoreTrimWhitespace=!0,void 0!==t.ignoreTrimWhitespace&&(g._ignoreTrimWhitespace=t.ignoreTrimWhitespace),g._renderIndicators=!0,void 0!==t.renderIndicators&&(g._renderIndicators=t.renderIndicators),g._originalIsEditable=!1,void 0!==t.originalEditable&&(g._originalIsEditable=Boolean(t.originalEditable)),g._updateDecorationsRunner=g._register(new l.d((function(){return g._updateDecorations()}),0)),g._containerDomElement=document.createElement("div"),g._containerDomElement.className=ye._getClassName(g._themeService.getTheme(),g._renderSideBySide),g._containerDomElement.style.position="relative",g._containerDomElement.style.height="100%",g._domElement.appendChild(g._containerDomElement),g._overviewViewportDomElement=Object(s.b)(document.createElement("div")),g._overviewViewportDomElement.setClassName("diffViewport"),g._overviewViewportDomElement.setPosition("absolute"),g._overviewDomElement=document.createElement("div"),g._overviewDomElement.className="diffOverview",g._overviewDomElement.style.position="absolute",g._overviewDomElement.appendChild(g._overviewViewportDomElement.domNode),g._register(r.o(g._overviewDomElement,"mousedown",(function(e){g.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),g._containerDomElement.appendChild(g._overviewDomElement),g._originalDomNode=document.createElement("div"),g._originalDomNode.className="editor original",g._originalDomNode.style.position="absolute",g._originalDomNode.style.height="100%",g._containerDomElement.appendChild(g._originalDomNode),g._modifiedDomNode=document.createElement("div"),g._modifiedDomNode.className="editor modified",g._modifiedDomNode.style.position="absolute",g._modifiedDomNode.style.height="100%",g._containerDomElement.appendChild(g._modifiedDomNode),g._beginUpdateDecorationsTimeout=-1,g._currentlyChangingViewZones=!1,g._diffComputationToken=0,g._originalEditorState=new pe(p,n),g._modifiedEditorState=new pe(p,n),g._isVisible=!0,g._isHandlingScrollEvent=!1,g._elementSizeObserver=g._register(new ue.a(g._containerDomElement,void 0,(function(){return g._onDidContainerSizeChanged()}))),t.automaticLayout&&g._elementSizeObserver.startObserving(),g._diffComputationResult=null;var m=g._contextKeyService.createScoped();m.createKey("isInDiffLeftEditor",!0);var v=new Q.a;v.set(k.c,m);var y=a.createChild(v),_=g._contextKeyService.createScoped();_.createKey("isInDiffRightEditor",!0);var w=new Q.a;w.set(k.c,_);var C=a.createChild(w);g.originalEditor=g._createLeftHandSideEditor(t,y),g.modifiedEditor=g._createRightHandSideEditor(t,C),g._originalOverviewRuler=null,g._modifiedOverviewRuler=null,g._reviewPane=new P(g),g._containerDomElement.appendChild(g._reviewPane.domNode.domNode),g._containerDomElement.appendChild(g._reviewPane.shadow.domNode),g._containerDomElement.appendChild(g._reviewPane.actionBarContainer.domNode),g._enableSplitViewResizing=!0,void 0!==t.enableSplitViewResizing&&(g._enableSplitViewResizing=t.enableSplitViewResizing),g._renderSideBySide?g._setStrategy(new Le(g._createDataSource(),g._enableSplitViewResizing)):g._setStrategy(new Ae(g._createDataSource(),g._enableSplitViewResizing)),g._register(d.onThemeChange((function(e){g._strategy&&g._strategy.applyColors(e)&&g._updateDecorationsRunner.schedule(),g._containerDomElement.className=ye._getClassName(g._themeService.getTheme(),g._renderSideBySide)})));for(var S=0,O=b.d.getDiffEditorContributions();S<O.length;S++){var x=O[S];try{g._register(a.createInstance(x.ctor,g))}catch(e){Object(ae.e)(e)}}return g._codeEditorService.addDiffEditor(g),g}var be,_e=(de(we,be=c.a),we.prototype.applyColors=function(e){var t=(e.getColor(E.j)||E.g).transparent(2),n=(e.getColor(E.l)||E.h).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},we.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,i,o,r,s,n),l=this._getOriginalEditorDecorations(e,t,n,r,s),u=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.modified}}},we);function we(e){var t=be.call(this)||this;return t._dataSource=e,t._insertColor=null,t._removeColor=null,t}var Ce=(Se.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},Se);function Se(e){this._source=e,this._index=-1,this.current=null,this.advance()}var Oe=(xe.prototype.getViewZones=function(){for(var e=[],t=[],n=0,i=0,o=0,r=0,s=0,a=0,l=function(e,t){return e.afterLineNumber-t.afterLineNumber},u=function(e,t){if(null===t.domNode&&0<e.length){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new Ce(this.modifiedForeignVZ),d=new Ce(this.originalForeignVZ),h=0,p=this.lineChanges.length;h<=p;h++){var f=h<p?this.lineChanges[h]:null;a=null!==f?(o=f.originalStartLineNumber+(0<f.originalEndLineNumber?-1:0),r=f.modifiedStartLineNumber+(0<f.modifiedEndLineNumber?-1:0),i=0<f.originalEndLineNumber?f.originalEndLineNumber-f.originalStartLineNumber+1:0,n=0<f.modifiedEndLineNumber?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0,s=Math.max(f.originalStartLineNumber,f.originalEndLineNumber),Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)):(s=o+=1e7+i,r+=1e7+n);for(var g,m=[],v=[];c.current&&c.current.afterLineNumber<=a;){var y=void 0;y=c.current.afterLineNumber<=r?o-r+c.current.afterLineNumber:s;var b=null;f&&f.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=f.modifiedEndLineNumber&&(b=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),m.push({afterLineNumber:y,heightInLines:c.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:b}),c.advance()}for(;d.current&&d.current.afterLineNumber<=s;)y=void 0,y=d.current.afterLineNumber<=o?r-o+d.current.afterLineNumber:a,v.push({afterLineNumber:y,heightInLines:d.current.height/this.originalLineHeight,domNode:null}),d.advance();null!==f&&We(f)&&(g=this._produceOriginalFromDiff(f,i,n))&&m.push(g),null!==f&&Ve(f)&&(g=this._produceModifiedFromDiff(f,i,n))&&v.push(g);var _=0,w=0;for(m=m.sort(l),v=v.sort(l);_<m.length&&w<v.length;){var C=m[_],S=v[w],O=C.afterLineNumber-o,x=S.afterLineNumber-r;O<x?(u(e,C),_++):x<O?(u(t,S),w++):C.shouldNotShrink?(u(e,C),_++):S.shouldNotShrink?(u(t,S),w++):C.heightInLines>=S.heightInLines?(C.heightInLines-=S.heightInLines,w++):(S.heightInLines-=C.heightInLines,_++)}for(;_<m.length;)u(e,m[_]),_++;for(;w<v.length;)u(t,v[w]),w++}return{original:xe._ensureDomNodes(e),modified:xe._ensureDomNodes(t)}},xe._ensureDomNodes=function(e){return e.map((function(e){var t;return e.domNode||(e.domNode=((t=document.createElement("div")).className="diagonal-fill",t)),e}))},xe);function xe(e,t,n,i,o){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=o}function ke(e,t,n,i,o){return{range:new U.a(e,t,n,i),options:o}}var Ee,Ne={charDelete:Y.a.register({className:"char-delete"}),charDeleteWholeLine:Y.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Y.a.register({className:"char-insert"}),charInsertWholeLine:Y.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Y.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Y.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Y.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Y.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Y.a.register({marginClassName:"line-delete"})},Le=(de(De,Ee=_e),De.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},De.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=Math.floor((e||.5)*t),i=Math.floor(.5*t);return n=!this._disableSash&&n||i,2*De.MINIMUM_EDITOR_WIDTH<t?(n<De.MINIMUM_EDITOR_WIDTH&&(n=De.MINIMUM_EDITOR_WIDTH),t-De.MINIMUM_EDITOR_WIDTH<n&&(n=t-De.MINIMUM_EDITOR_WIDTH)):n=i,this._sashPosition!==n&&(this._sashPosition=n,this._sash.layout()),this._sashPosition},De.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},De.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},De.prototype.onSashDragEnd=function(){this._sash.layout()},De.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},De.prototype.getVerticalSashTop=function(e){return 0},De.prototype.getVerticalSashLeft=function(e){return this._sashPosition},De.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},De.prototype._getViewZones=function(e,t,n,i,o){return new Te(e,t,i.getOption(49),n,o.getOption(49)).getViewZones()},De.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=i.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(Ve(c)&&(s.decorations.push({range:new U.a(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824),options:n?Ne.lineDeleteWithSign:Ne.lineDelete}),We(c)&&c.charChanges||s.decorations.push(ke(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824,Ne.charDeleteWholeLine)),s.overviewZones.push(new X.a(c.originalStartLineNumber,c.originalEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Ve(p))if(t)for(var f=p.originalStartLineNumber;f<=p.originalEndLineNumber;f++){var g,m;g=f===p.originalStartLineNumber?p.originalStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.originalEndLineNumber?p.originalEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(ke(f,g,f,m,Ne.charDelete))}else s.decorations.push(ke(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn,Ne.charDelete))}}return s},De.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(We(c)&&(s.decorations.push({range:new U.a(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),Ve(c)&&c.charChanges||s.decorations.push(ke(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine)),s.overviewZones.push(new X.a(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(We(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(ke(f,g,f,m,Ne.charInsert))}else s.decorations.push(ke(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}}return s},De.MINIMUM_EDITOR_WIDTH=100,De);function De(e,t){var n=Ee.call(this,e)||this;return n._disableSash=!1===t,n._sashRatio=null,n._sashPosition=null,n._startSashPosition=null,n._sash=n._register(new a.a(n._dataSource.getContainerDomNode(),n)),n._disableSash&&(n._sash.state=0),n._sash.onDidStart((function(){return n.onSashDragStart()})),n._sash.onDidChange((function(e){return n.onSashDrag(e)})),n._sash.onDidEnd((function(){return n.onSashDragEnd()})),n._sash.onDidReset((function(){return n.onSashReset()})),n}var Me,Te=(de(Ie,Me=Oe),Ie.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},Ie.prototype._produceOriginalFromDiff=function(e,t,n){return t<n?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},Ie.prototype._produceModifiedFromDiff=function(e,t,n){return n<t?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},Ie);function Ie(e,t,n,i,o){return Me.call(this,e,t,n,i,o)||this}var Pe,Ae=(de(Re,Pe=_e),Re.prototype.setEnableSplitViewResizing=function(e){},Re.prototype._getViewZones=function(e,t,n,i,o,r){return new Fe(e,t,n,i,o,r).getViewZones()},Re.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,l=e.length;a<l;a++){var u=e[a];Ve(u)&&(s.decorations.push({range:new U.a(u.originalStartLineNumber,1,u.originalEndLineNumber,1073741824),options:Ne.lineDeleteMargin}),s.overviewZones.push(new X.a(u.originalStartLineNumber,u.originalEndLineNumber,r)))}return s},Re.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(We(c))if(s.decorations.push({range:new U.a(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),s.overviewZones.push(new X.a(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(We(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(ke(f,g,f,m,Ne.charInsert))}else s.decorations.push(ke(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}else s.decorations.push(ke(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine))}return s},Re.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},Re);function Re(e,t){var n=Pe.call(this,e)||this;return n.decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,n._register(e.getOriginalEditor().onDidLayoutChange((function(t){n.decorationsLeft!==t.decorationsLeft&&(n.decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))),n}var je,Fe=(de(Be,je=Oe),Be.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},Be.prototype._produceOriginalFromDiff=function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}},Be.prototype._produceModifiedFromDiff=function(e,t,n){var i=[];if(e.charChanges)for(var o=0,r=e.charChanges.length;o<r;o++){var s=e.charChanges[o];Ve(s)&&i.push(new x.a(new U.a(s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=Object(K.a)(1e4),l=[],u=this.modifiedEditorOptions.get(107),c=this.modifiedEditorOptions.get(34),d=u.decorationsWidth,p=this.modifiedEditorOptions.get(49),f=c.typicalHalfwidthCharacterWidth,g=0,m=[],v=e.originalStartLineNumber;v<=e.originalEndLineNumber;v++)if(g=Math.max(g,this._renderOriginalLine(v-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,v,i,a)),m.push(this.originalModel.getLineContent(v)),this.renderIndicators){var y=v-e.originalStartLineNumber;l=l.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+y*p+"px;width:"+d+"px;height:"+p+'px;right:0;"></div>'])}g+=this.modifiedEditorOptions.get(79);var b=document.createElement("div");b.className="view-lines line-delete",b.innerHTML=a.build(),h.a.applyFontInfoSlow(b,c);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=l.join(""),h.a.applyFontInfoSlow(_,c),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:g*f,domNode:b,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:m}}},Be.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),l=a.getLineContent(),u=n.get(34),c=$.a.filter(r,o,1,l.length+1);s.appendASCIIString('<div class="view-line'),0===r.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.get(49))),s.appendASCIIString('px;width:1000000px;">');var d=x.d.isBasicASCII(l,t.mightContainNonBasicASCII()),h=x.d.containsRTL(l,d,t.mightContainRTL()),p=Object(O.d)(new O.c(u.isMonospace&&!n.get(23),u.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,a,c,i,0,u.spaceWidth,u.middotWidth,n.get(88),n.get(74),n.get(69),n.get(35)!==_.d.OFF,null),s);s.appendASCIIString("</div>");var f=p.characterMapping.getAbsoluteOffsets();return 0<f.length?f[f.length-1]:0},Be);function Be(e,t,n,i,o,r){var s=je.call(this,e,t,i.getOption(49),n,o.getOption(49))||this;return s.originalModel=i.getModel(),s.modifiedEditorOptions=o.getOptions(),s.modifiedEditorTabSize=o.getModel().getOptions().tabSize,s.renderIndicators=r,s}function We(e){return 0<e.modifiedEndLineNumber}function Ve(e){return 0<e.originalEndLineNumber}Object(N.e)((function(e,t){var n=e.getColor(E.j);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(E.l);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor(E.k);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(E.m);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(E.Vb);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(E.i);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n(452),o=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i.h?"win32":i.e?"darwin":"linux"},nextTick:function(e){return Object(i.i)(e)}}:e,r=o.cwd,s=o.env,a=o.platform}).call(this,n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,t){!function(){"use strict";function n(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var i=setTimeout;function o(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(n){return void l(t.promise,n)}a(t.promise,i)}else(1===e._state?a:l)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void d(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new c(e,t,n)),n},r.prototype.finally=n,r.all=function(e){return new r((function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function r(e,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(t){r(e,t)}),n)}i[e]=s,0===--o&&t(i)}catch(s){n(s)}}for(var s=0;s<i.length;s++)r(s,i[s])}))},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)}))},r._immediateFn="function"===typeof e&&function(t){e(t)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof t)return t;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype.finally||(h.Promise.prototype.finally=n):h.Promise=r}()}).call(this,n(1383).setImmediate,n(64))},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(1384),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(64))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,o,r,s,a=1,l={},u=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,i="[object process]"==={}.toString.call(e.process)?function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(s="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(o=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):function(e){setTimeout(p,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[a]=o,i(a),a++},d.clearImmediate=h}function h(e){delete l[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(64),n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,y,b,_,w,C,S,O,x,k,E,N,L,D,M,T,I,P,A,R,j,F,B,W,V,z,H,q,U,K,G,Y,Z,X,$,J,Q,ee,te,ne,ie,oe,re,se,ae,le,ue,ce,de,he,pe,fe,ge=n(530),me=(n(1382),n(484)),ve=n(442),ye=n(548),be=n(479),_e=n(450),we=n(440),Ce=n(466),Se=n(884);(o=i=i||{})[o.Unknown=0]="Unknown",o[o.Disabled=1]="Disabled",o[o.Enabled=2]="Enabled",(s=r=r||{})[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet",(l=a=a||{})[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.Snippet=25]="Snippet",(c=u=u||{})[c.Deprecated=1]="Deprecated",(h=d=d||{})[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(f=p=p||{})[f.EXACT=0]="EXACT",f[f.ABOVE=1]="ABOVE",f[f.BELOW=2]="BELOW",(m=g=g||{})[m.NotSet=0]="NotSet",m[m.ContentFlush=1]="ContentFlush",m[m.RecoverFromMarkers=2]="RecoverFromMarkers",m[m.Explicit=3]="Explicit",m[m.Paste=4]="Paste",m[m.Undo=5]="Undo",m[m.Redo=6]="Redo",(y=v=v||{})[y.LF=1]="LF",y[y.CRLF=2]="CRLF",(_=b=b||{})[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write",(C=w=w||{})[C.None=0]="None",C[C.Keep=1]="Keep",C[C.Brackets=2]="Brackets",C[C.Advanced=3]="Advanced",C[C.Full=4]="Full",(O=S=S||{})[O.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",O[O.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",O[O.accessibilitySupport=2]="accessibilitySupport",O[O.accessibilityPageSize=3]="accessibilityPageSize",O[O.ariaLabel=4]="ariaLabel",O[O.autoClosingBrackets=5]="autoClosingBrackets",O[O.autoClosingOvertype=6]="autoClosingOvertype",O[O.autoClosingQuotes=7]="autoClosingQuotes",O[O.autoIndent=8]="autoIndent",O[O.automaticLayout=9]="automaticLayout",O[O.autoSurround=10]="autoSurround",O[O.codeLens=11]="codeLens",O[O.colorDecorators=12]="colorDecorators",O[O.comments=13]="comments",O[O.contextmenu=14]="contextmenu",O[O.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",O[O.cursorBlinking=16]="cursorBlinking",O[O.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",O[O.cursorStyle=18]="cursorStyle",O[O.cursorSurroundingLines=19]="cursorSurroundingLines",O[O.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",O[O.cursorWidth=21]="cursorWidth",O[O.disableLayerHinting=22]="disableLayerHinting",O[O.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",O[O.dragAndDrop=24]="dragAndDrop",O[O.emptySelectionClipboard=25]="emptySelectionClipboard",O[O.extraEditorClassName=26]="extraEditorClassName",O[O.fastScrollSensitivity=27]="fastScrollSensitivity",O[O.find=28]="find",O[O.fixedOverflowWidgets=29]="fixedOverflowWidgets",O[O.folding=30]="folding",O[O.foldingStrategy=31]="foldingStrategy",O[O.foldingHighlight=32]="foldingHighlight",O[O.fontFamily=33]="fontFamily",O[O.fontInfo=34]="fontInfo",O[O.fontLigatures=35]="fontLigatures",O[O.fontSize=36]="fontSize",O[O.fontWeight=37]="fontWeight",O[O.formatOnPaste=38]="formatOnPaste",O[O.formatOnType=39]="formatOnType",O[O.glyphMargin=40]="glyphMargin",O[O.gotoLocation=41]="gotoLocation",O[O.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",O[O.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",O[O.hover=44]="hover",O[O.inDiffEditor=45]="inDiffEditor",O[O.letterSpacing=46]="letterSpacing",O[O.lightbulb=47]="lightbulb",O[O.lineDecorationsWidth=48]="lineDecorationsWidth",O[O.lineHeight=49]="lineHeight",O[O.lineNumbers=50]="lineNumbers",O[O.lineNumbersMinChars=51]="lineNumbersMinChars",O[O.links=52]="links",O[O.matchBrackets=53]="matchBrackets",O[O.minimap=54]="minimap",O[O.mouseStyle=55]="mouseStyle",O[O.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",O[O.mouseWheelZoom=57]="mouseWheelZoom",O[O.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",O[O.multiCursorModifier=59]="multiCursorModifier",O[O.multiCursorPaste=60]="multiCursorPaste",O[O.occurrencesHighlight=61]="occurrencesHighlight",O[O.overviewRulerBorder=62]="overviewRulerBorder",O[O.overviewRulerLanes=63]="overviewRulerLanes",O[O.parameterHints=64]="parameterHints",O[O.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",O[O.quickSuggestions=66]="quickSuggestions",O[O.quickSuggestionsDelay=67]="quickSuggestionsDelay",O[O.readOnly=68]="readOnly",O[O.renderControlCharacters=69]="renderControlCharacters",O[O.renderIndentGuides=70]="renderIndentGuides",O[O.renderFinalNewline=71]="renderFinalNewline",O[O.renderLineHighlight=72]="renderLineHighlight",O[O.renderValidationDecorations=73]="renderValidationDecorations",O[O.renderWhitespace=74]="renderWhitespace",O[O.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",O[O.roundedSelection=76]="roundedSelection",O[O.rulers=77]="rulers",O[O.scrollbar=78]="scrollbar",O[O.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",O[O.scrollBeyondLastLine=80]="scrollBeyondLastLine",O[O.selectionClipboard=81]="selectionClipboard",O[O.selectionHighlight=82]="selectionHighlight",O[O.selectOnLineNumbers=83]="selectOnLineNumbers",O[O.showFoldingControls=84]="showFoldingControls",O[O.showUnused=85]="showUnused",O[O.snippetSuggestions=86]="snippetSuggestions",O[O.smoothScrolling=87]="smoothScrolling",O[O.stopRenderingLineAfter=88]="stopRenderingLineAfter",O[O.suggest=89]="suggest",O[O.suggestFontSize=90]="suggestFontSize",O[O.suggestLineHeight=91]="suggestLineHeight",O[O.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",O[O.suggestSelection=93]="suggestSelection",O[O.tabCompletion=94]="tabCompletion",O[O.useTabStops=95]="useTabStops",O[O.wordSeparators=96]="wordSeparators",O[O.wordWrap=97]="wordWrap",O[O.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",O[O.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",O[O.wordWrapColumn=100]="wordWrapColumn",O[O.wordWrapMinified=101]="wordWrapMinified",O[O.wrappingIndent=102]="wrappingIndent",O[O.wrappingStrategy=103]="wrappingStrategy",O[O.editorClassName=104]="editorClassName",O[O.pixelRatio=105]="pixelRatio",O[O.tabFocusMode=106]="tabFocusMode",O[O.layoutInfo=107]="layoutInfo",O[O.wrappingInfo=108]="wrappingInfo",(k=x=x||{})[k.TextDefined=0]="TextDefined",k[k.LF=1]="LF",k[k.CRLF=2]="CRLF",(N=E=E||{})[N.LF=0]="LF",N[N.CRLF=1]="CRLF",(D=L=L||{})[D.None=0]="None",D[D.Indent=1]="Indent",D[D.IndentOutdent=2]="IndentOutdent",D[D.Outdent=3]="Outdent",(T=M=M||{})[T.Unknown=0]="Unknown",T[T.Backspace=1]="Backspace",T[T.Tab=2]="Tab",T[T.Enter=3]="Enter",T[T.Shift=4]="Shift",T[T.Ctrl=5]="Ctrl",T[T.Alt=6]="Alt",T[T.PauseBreak=7]="PauseBreak",T[T.CapsLock=8]="CapsLock",T[T.Escape=9]="Escape",T[T.Space=10]="Space",T[T.PageUp=11]="PageUp",T[T.PageDown=12]="PageDown",T[T.End=13]="End",T[T.Home=14]="Home",T[T.LeftArrow=15]="LeftArrow",T[T.UpArrow=16]="UpArrow",T[T.RightArrow=17]="RightArrow",T[T.DownArrow=18]="DownArrow",T[T.Insert=19]="Insert",T[T.Delete=20]="Delete",T[T.KEY_0=21]="KEY_0",T[T.KEY_1=22]="KEY_1",T[T.KEY_2=23]="KEY_2",T[T.KEY_3=24]="KEY_3",T[T.KEY_4=25]="KEY_4",T[T.KEY_5=26]="KEY_5",T[T.KEY_6=27]="KEY_6",T[T.KEY_7=28]="KEY_7",T[T.KEY_8=29]="KEY_8",T[T.KEY_9=30]="KEY_9",T[T.KEY_A=31]="KEY_A",T[T.KEY_B=32]="KEY_B",T[T.KEY_C=33]="KEY_C",T[T.KEY_D=34]="KEY_D",T[T.KEY_E=35]="KEY_E",T[T.KEY_F=36]="KEY_F",T[T.KEY_G=37]="KEY_G",T[T.KEY_H=38]="KEY_H",T[T.KEY_I=39]="KEY_I",T[T.KEY_J=40]="KEY_J",T[T.KEY_K=41]="KEY_K",T[T.KEY_L=42]="KEY_L",T[T.KEY_M=43]="KEY_M",T[T.KEY_N=44]="KEY_N",T[T.KEY_O=45]="KEY_O",T[T.KEY_P=46]="KEY_P",T[T.KEY_Q=47]="KEY_Q",T[T.KEY_R=48]="KEY_R",T[T.KEY_S=49]="KEY_S",T[T.KEY_T=50]="KEY_T",T[T.KEY_U=51]="KEY_U",T[T.KEY_V=52]="KEY_V",T[T.KEY_W=53]="KEY_W",T[T.KEY_X=54]="KEY_X",T[T.KEY_Y=55]="KEY_Y",T[T.KEY_Z=56]="KEY_Z",T[T.Meta=57]="Meta",T[T.ContextMenu=58]="ContextMenu",T[T.F1=59]="F1",T[T.F2=60]="F2",T[T.F3=61]="F3",T[T.F4=62]="F4",T[T.F5=63]="F5",T[T.F6=64]="F6",T[T.F7=65]="F7",T[T.F8=66]="F8",T[T.F9=67]="F9",T[T.F10=68]="F10",T[T.F11=69]="F11",T[T.F12=70]="F12",T[T.F13=71]="F13",T[T.F14=72]="F14",T[T.F15=73]="F15",T[T.F16=74]="F16",T[T.F17=75]="F17",T[T.F18=76]="F18",T[T.F19=77]="F19",T[T.NumLock=78]="NumLock",T[T.ScrollLock=79]="ScrollLock",T[T.US_SEMICOLON=80]="US_SEMICOLON",T[T.US_EQUAL=81]="US_EQUAL",T[T.US_COMMA=82]="US_COMMA",T[T.US_MINUS=83]="US_MINUS",T[T.US_DOT=84]="US_DOT",T[T.US_SLASH=85]="US_SLASH",T[T.US_BACKTICK=86]="US_BACKTICK",T[T.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",T[T.US_BACKSLASH=88]="US_BACKSLASH",T[T.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",T[T.US_QUOTE=90]="US_QUOTE",T[T.OEM_8=91]="OEM_8",T[T.OEM_102=92]="OEM_102",T[T.NUMPAD_0=93]="NUMPAD_0",T[T.NUMPAD_1=94]="NUMPAD_1",T[T.NUMPAD_2=95]="NUMPAD_2",T[T.NUMPAD_3=96]="NUMPAD_3",T[T.NUMPAD_4=97]="NUMPAD_4",T[T.NUMPAD_5=98]="NUMPAD_5",T[T.NUMPAD_6=99]="NUMPAD_6",T[T.NUMPAD_7=100]="NUMPAD_7",T[T.NUMPAD_8=101]="NUMPAD_8",T[T.NUMPAD_9=102]="NUMPAD_9",T[T.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",T[T.NUMPAD_ADD=104]="NUMPAD_ADD",T[T.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",T[T.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",T[T.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",T[T.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",T[T.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",T[T.ABNT_C1=110]="ABNT_C1",T[T.ABNT_C2=111]="ABNT_C2",T[T.MAX_VALUE=112]="MAX_VALUE",(P=I=I||{})[P.Hint=1]="Hint",P[P.Info=2]="Info",P[P.Warning=4]="Warning",P[P.Error=8]="Error",(R=A=A||{})[R.Unnecessary=1]="Unnecessary",R[R.Deprecated=2]="Deprecated",(F=j=j||{})[F.Inline=1]="Inline",F[F.Gutter=2]="Gutter",(W=B=B||{})[W.UNKNOWN=0]="UNKNOWN",W[W.TEXTAREA=1]="TEXTAREA",W[W.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",W[W.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",W[W.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",W[W.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",W[W.CONTENT_TEXT=6]="CONTENT_TEXT",W[W.CONTENT_EMPTY=7]="CONTENT_EMPTY",W[W.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",W[W.CONTENT_WIDGET=9]="CONTENT_WIDGET",W[W.OVERVIEW_RULER=10]="OVERVIEW_RULER",W[W.SCROLLBAR=11]="SCROLLBAR",W[W.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",W[W.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(z=V=V||{})[z.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",z[z.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",z[z.TOP_CENTER=2]="TOP_CENTER",(q=H=H||{})[q.Left=1]="Left",q[q.Center=2]="Center",q[q.Right=4]="Right",q[q.Full=7]="Full",(K=U=U||{})[K.Off=0]="Off",K[K.On=1]="On",K[K.Relative=2]="Relative",K[K.Interval=3]="Interval",K[K.Custom=4]="Custom",(Y=G=G||{})[Y.None=0]="None",Y[Y.Text=1]="Text",Y[Y.Blocks=2]="Blocks",(X=Z=Z||{})[X.Smooth=0]="Smooth",X[X.Immediate=1]="Immediate",(J=$=$||{})[J.Auto=1]="Auto",J[J.Hidden=2]="Hidden",J[J.Visible=3]="Visible",(ee=Q=Q||{})[ee.LTR=0]="LTR",ee[ee.RTL=1]="RTL",(ne=te=te||{})[ne.Invoke=1]="Invoke",ne[ne.TriggerCharacter=2]="TriggerCharacter",ne[ne.ContentChange=3]="ContentChange",(oe=ie=ie||{})[oe.File=0]="File",oe[oe.Module=1]="Module",oe[oe.Namespace=2]="Namespace",oe[oe.Package=3]="Package",oe[oe.Class=4]="Class",oe[oe.Method=5]="Method",oe[oe.Property=6]="Property",oe[oe.Field=7]="Field",oe[oe.Constructor=8]="Constructor",oe[oe.Enum=9]="Enum",oe[oe.Interface=10]="Interface",oe[oe.Function=11]="Function",oe[oe.Variable=12]="Variable",oe[oe.Constant=13]="Constant",oe[oe.String=14]="String",oe[oe.Number=15]="Number",oe[oe.Boolean=16]="Boolean",oe[oe.Array=17]="Array",oe[oe.Object=18]="Object",oe[oe.Key=19]="Key",oe[oe.Null=20]="Null",oe[oe.EnumMember=21]="EnumMember",oe[oe.Struct=22]="Struct",oe[oe.Event=23]="Event",oe[oe.Operator=24]="Operator",oe[oe.TypeParameter=25]="TypeParameter",(se=re=re||{})[se.Deprecated=1]="Deprecated",(le=ae=ae||{})[le.Hidden=0]="Hidden",le[le.Blink=1]="Blink",le[le.Smooth=2]="Smooth",le[le.Phase=3]="Phase",le[le.Expand=4]="Expand",le[le.Solid=5]="Solid",(ce=ue=ue||{})[ce.Line=1]="Line",ce[ce.Block=2]="Block",ce[ce.Underline=3]="Underline",ce[ce.LineThin=4]="LineThin",ce[ce.BlockOutline=5]="BlockOutline",ce[ce.UnderlineThin=6]="UnderlineThin",(he=de=de||{})[he.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",he[he.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",he[he.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",he[he.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(fe=pe=pe||{})[fe.None=0]="None",fe[fe.Same=1]="Same",fe[fe.Indent=2]="Indent",fe[fe.DeepIndent=3]="DeepIndent";var Oe=(xe.chord=function(e,t){return Object(ye.a)(e,t)},xe.CtrlCmd=2048,xe.Shift=1024,xe.Alt=512,xe.WinCtrl=256,xe);function xe(){}function ke(){return{editor:void 0,languages:void 0,CancellationTokenSource:me.b,Emitter:ve.a,KeyCode:M,KeyMod:Oe,Position:_e.a,Range:we.a,Selection:Ce.a,SelectionDirection:Q,MarkerSeverity:I,MarkerTag:A,Uri:be.a,Token:Se.a}}n(1385);var Ee,Ne,Le=n(504),De=n(443),Me=n(786),Te=n(1095),Ie=n(596),Pe=n(554),Ae=n(489),Re=n(636);(Ne=Ee=Ee||{})[Ne.API=0]="API",Ne[Ne.USER=1]="USER";var je=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Fe=function(e,t){return function(n,i){t(n,i,e)}},Be=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},We=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Ve=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},ze=(He.prototype.open=function(e){return Be(this,void 0,void 0,(function(){var t,n;return We(this,(function(i){switch(i.label){case 0:if(!Object(Re.c)(e,Ie.b.command))return[2,!1];if("string"==typeof e&&(e=be.a.parse(e)),!Ae.a.getCommand(e.path))throw new Error("command '"+e.path+"' NOT known");t=[];try{t=Object(Te.a)(decodeURIComponent(e.query))}catch(i){try{t=Object(Te.a)(e.query)}catch(i){}}return Array.isArray(t)||(t=[t]),[4,(n=this._commandService).executeCommand.apply(n,Ve([e.path],t))];case 1:return i.sent(),[2,!0]}}))}))},He=je([Fe(0,Ae.b)],He));function He(e){this._commandService=e}var qe=(Ue.prototype.open=function(e,t){return Be(this,void 0,void 0,(function(){var n,i;return We(this,(function(o){switch(o.label){case 0:return"string"==typeof e&&(e=be.a.parse(e)),n=void 0,(i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment))&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===Ie.b.file&&(e=Object(Pe.g)(e)),[4,this._editorService.openCodeEditor({resource:e,options:{selection:n,context:null!=t&&t.fromUserGesture?Ee.USER:Ee.API}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide)];case 1:return o.sent(),[2,!0]}}))}))},Ue=je([Fe(0,Le.a)],Ue));function Ue(e){this._editorService=e}var Ke=(Ge.prototype.open=function(e,t){return Be(this,void 0,void 0,(function(){var n,i,o,r;return We(this,(function(s){switch(s.label){case 0:n=0,i=this._validators.toArray(),s.label=1;case 1:return n<i.length?[4,i[n].shouldOpen(e)]:[3,4];case 2:if(!s.sent())return[2,!1];s.label=3;case 3:return n++,[3,1];case 4:o=0,r=this._openers.toArray(),s.label=5;case 5:return o<r.length?[4,r[o].open(e,t)]:[3,8];case 6:if(s.sent())return[2,!0];s.label=7;case 7:return o++,[3,5];case 8:return[2,!1]}}))}))},Ge.prototype.resolveExternalUri=function(e,t){return Be(this,void 0,void 0,(function(){var n,i,o;return We(this,(function(r){switch(r.label){case 0:n=0,i=this._resolvers.toArray(),r.label=1;case 1:return n<i.length?[4,i[n].resolveExternalUri(e,t)]:[3,4];case 2:if(o=r.sent())return[2,o];r.label=3;case 3:return n++,[3,1];case 4:return[2,{resolved:e,dispose:function(){}}]}}))}))},Ge.prototype._doOpenExternal=function(e,t){return Be(this,void 0,void 0,(function(){var n,i;return We(this,(function(o){switch(o.label){case 0:return n="string"==typeof e?be.a.parse(e):e,[4,this.resolveExternalUri(n,t)];case 1:return i=o.sent().resolved,"string"==typeof e&&n.toString()===i.toString()?[2,this._externalOpener.openExternal(e)]:[2,this._externalOpener.openExternal(encodeURI(i.toString(!0)))]}}))}))},Ge.prototype.dispose=function(){this._validators.clear()},Ge=je([Fe(0,Le.a),Fe(1,Ae.b)],Ge));function Ge(e,t){var n=this;this._openers=new Me.a,this._validators=new Me.a,this._resolvers=new Me.a,this._externalOpener={openExternal:function(e){return De.ab(e),Promise.resolve(!0)}},this._openers.push({open:function(e,t){return Be(n,void 0,void 0,(function(){return We(this,(function(n){switch(n.label){case 0:return null!=t&&t.openExternal||Object(Re.c)(e,Ie.b.mailto)||Object(Re.c)(e,Ie.b.http)||Object(Re.c)(e,Ie.b.https)?[4,this._doOpenExternal(e,t)]:[3,2];case 1:return n.sent(),[2,!0];case 2:return[2,!1]}}))}))}}),this._openers.push(new ze(t)),this._openers.push(new qe(e))}var Ye,Ze=n(1266),Xe=n(946),$e=n(776),Je=n(599),Qe=n(454),et=n(756),tt=n(758),nt=n(787),it=n(453),ot=n(439),rt=n(446),st=n(452),at=n(465),lt="$initialize";function ut(){st.g}Ye=function(e,t){return(Ye=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)};var ct=(dt.prototype.setWorkerId=function(e){this._workerId=e},dt.prototype.sendMessage=function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise((function(o,r){n._pendingReplies[i]={resolve:o,reject:r},n._send({vsWorker:n._workerId,req:i,method:e,args:t})}))},dt.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},dt.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return;var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&((o=new Error).name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void i.reject(o)}i.resolve(n.res)}else{var r=e.req;this._handler.handleMessage(e.method,e.args).then((function(e){t._send({vsWorker:t._workerId,seq:r,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=Object(rt.g)(e.detail)),t._send({vsWorker:t._workerId,seq:r,res:void 0,err:Object(rt.g)(e)})}))}},dt.prototype._send=function(e){var t=[];if(e.req)for(var n=e,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&t.push(n.args[i]);else(n=e).res instanceof ArrayBuffer&&t.push(n.res);this._handler.sendMessage(e,t)},dt);function dt(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}var ht,pt=(function(e,t){function n(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(ft,ht=ot.a),ft.prototype.getProxyObject=function(){return this._lazyProxy},ft.prototype._request=function(e,t){var n=this;return new Promise((function(i,o){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(i,o)}),o)}))},ft.prototype._onError=function(e,t){},ft);function ft(e,t,n){var i=ht.call(this)||this,o=null;i._worker=i._register(e.create("vs/base/common/worker/simpleWorker",(function(e){i._protocol.handleMessage(e)}),(function(e){o&&o(e)}))),i._protocol=new ct({sendMessage:function(e,t){i._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!=typeof n[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(n[e].apply(n,t))}catch(e){return Promise.reject(e)}}}),i._protocol.setWorkerId(i._worker.getId());var r=null;void 0!==self.require&&"function"==typeof self.require.getConfig?r=self.require.getConfig():void 0!==self.requirejs&&(r=self.requirejs.s.contexts._.config);var s=at.c(n);function a(e,t){return i._request(e,t)}return i._onModuleLoaded=i._protocol.sendMessage(lt,[i._worker.getId(),JSON.parse(JSON.stringify(r)),t,s]),i._lazyProxy=new Promise((function(e,n){o=n,i._onModuleLoaded.then((function(t){e(at.b(t,a))}),(function(e){n(e),i._onError("Worker failed to load "+t,e)}))})),i}function gt(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new ct({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}gt.prototype.onmessage=function(e){this._protocol.handleMessage(e)},gt.prototype._handleMessage=function(e,t){if(e===lt)return this.initialize(t[0],t[1],t[2],t[3]);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)}},gt.prototype.initialize=function(e,t,n,i){var o=this;this._protocol.setWorkerId(e);var r=at.b(i,(function(e,t){return o._protocol.sendMessage(e,t)}));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(at.c(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){o._requestHandler=n.create(r),o._requestHandler?e(at.c(o._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))};var mt=(vt.prototype.getId=function(){return this.id},vt.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},vt.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},vt);function vt(e,t,n,i,o){this.id=t;var r=function(e,t){if(st.b.MonacoEnvironment){if("function"==typeof st.b.MonacoEnvironment.getWorker)return st.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof st.b.MonacoEnvironment.getWorkerUrl)return new Worker(st.b.MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",n);"function"==typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){i(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}))}var yt=(bt.prototype.create=function(e,t,n){var i=this,o=++bt.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new mt(e,o,this._label||"anonymous"+o,t,(function(e){ut(),i._webWorkerFailedBeforeError=e,n(e)}))},bt.LAST_WORKER_ID=0,bt);function bt(e){this._label=e,this._webWorkerFailedBeforeError=!1}var _t=n(575),wt=n(459),Ct=n(977),St=n(700),Ot=n(444);function xt(e,t,n,i){return new Ct.a(e,t,n).ComputeDiff(i)}var kt=(Et.prototype.getElements=function(){for(var e=[],t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e},Et.prototype.getStartLineNumber=function(e){return e+1},Et.prototype.getEndLineNumber=function(e){return e+1},Et.prototype.createCharSequence=function(e,t,n){for(var i=[],o=[],r=[],s=0,a=t;a<=n;a++)for(var l=this.lines[a],u=e?this._startColumns[a]:1,c=e?this._endColumns[a]:l.length+1,d=u;d<c;d++)i[s]=l.charCodeAt(d-1),o[s]=a+1,r[s]=d,s++;return new Nt(i,o,r)},Et);function Et(e){for(var t=[],n=[],i=0,o=e.length;i<o;i++)t[i]=Rt(e[i],1),n[i]=jt(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}var Nt=(Lt.prototype.getElements=function(){return this._charCodes},Lt.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},Lt.prototype.getStartColumn=function(e){return this._columns[e]},Lt.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},Lt.prototype.getEndColumn=function(e){return this._columns[e]+1},Lt);function Lt(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}var Dt=(Mt.createFromDiffChange=function(e,t,n){var i,o,r,s,a,l,u,c;return s=0===e.originalLength?r=o=i=0:(i=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),t.getEndColumn(e.originalStart+e.originalLength-1)),c=0===e.modifiedLength?u=l=a=0:(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new Mt(i,o,r,s,a,l,u,c)},Mt);function Mt(e,t,n,i,o,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}var Tt=(It.createFromDiffResult=function(e,t,n,i,o,r,s){var a,l,u,c,d=void 0;if(l=0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,0):(a=n.getStartLineNumber(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1)),c=0===t.modifiedLength?(u=i.getStartLineNumber(t.modifiedStart)-1,0):(u=i.getStartLineNumber(t.modifiedStart),i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&0<t.originalLength&&t.originalLength<20&&0<t.modifiedLength&&t.modifiedLength<20&&o()){var h=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),p=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),f=xt(h,p,o,!0).changes;s&&(f=function(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,o=e.length;i<o;i++){var r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,a)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(f)),d=[];for(var g=0,m=f.length;g<m;g++)d.push(Dt.createFromDiffChange(f[g],h,p))}return new It(a,l,u,c,d)},It);function It(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}var Pt=(At.prototype.computeDiff=function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=xt(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],o=0,r=t.length;o<r;o++)i.push(Tt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var s=[],a=0,l=0,u=(o=-1,t.length);o<u;o++){for(var c=o+1<u?t[o+1]:null,d=c?c.originalStart:this.originalLines.length,h=c?c.modifiedStart:this.modifiedLines.length;a<d&&l<h;){var p=this.originalLines[a],f=this.modifiedLines[l];if(p!==f){for(var g=Rt(p,1),m=Rt(f,1);1<g&&1<m&&p.charCodeAt(g-2)===f.charCodeAt(m-2);)g--,m--;(1<g||1<m)&&this._pushTrimWhitespaceCharChange(s,a+1,1,g,l+1,1,m);for(var v=jt(p,1),y=jt(f,1),b=p.length+1,_=f.length+1;v<b&&y<_&&p.charCodeAt(v-1)===p.charCodeAt(y-1);)v++,y++;(v<b||y<_)&&this._pushTrimWhitespaceCharChange(s,a+1,v,b,l+1,y,_)}a++,l++}c&&(s.push(Tt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=c.originalLength,l+=c.modifiedLength)}return{quitEarly:n,changes:s}},At.prototype._pushTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,o,r,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new Dt(t,n,t,i,o,r,o,s)]),e.push(new Tt(t,t,o,o,a))}},At.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){var a=e.length;if(0===a)return!1;var l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Dt(t,n,t,i,o,r,o,s)),!0)},At);function At(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new kt(e),this.modified=new kt(t),this.continueLineDiff=Ft(n.maxComputationTime),this.continueCharDiff=Ft(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}function Rt(e,t){var n=Ot.q(e);return-1===n?t:n+1}function jt(e,t){var n=Ot.D(e);return-1===n?t:n+2}function Ft(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}var Bt=n(1091),Wt=(Vt.prototype.dispose=function(){this._lines.length=0},Vt.prototype.getText=function(){return this._lines.join(this._eol)},Vt.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=0,n=e.changes;t<n.length;t++){var i=n[t];this._acceptDeleteRange(i.range),this._acceptInsertText(new _e.a(i.range.startLineNumber,i.range.startColumn),i.text)}this._versionId=e.versionId},Vt.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Bt.a(n)}},Vt.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},Vt.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},Vt.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},Vt);function Vt(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}var zt=n(882),Ht=n(790),qt=(Ut.prototype.get=function(e,t){return this._data[e*this.cols+t]},Ut.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},Ut);function Ut(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o<r;o++)i[o]=n;this._data=i,this.rows=e,this.cols=t}var Kt=(Gt.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},Gt);function Gt(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=r[0];t<(u=r[1])&&(t=u),n<s&&(n=s),n<(c=r[2])&&(n=c)}var a=new qt(++n,++t,0);for(i=0,o=e.length;i<o;i++){var l=e[i],u=(s=l[0],l[1]),c=l[2];a.set(s,u,c)}this._states=a,this._maxCharCode=t}var Yt=null,Zt=null,Xt=($t._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break;r--}while(i<r);if(0<i){var a=t.charCodeAt(i-1),l=t.charCodeAt(r);(40===a&&41===l||91===a&&93===l||123===a&&125===l)&&r--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},$t.computeLinks=function(e,t){void 0===t&&(null===Yt&&(Yt=new Kt([[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]])),t=Yt);for(var n=function(){if(null===Zt){Zt=new Ht.a(0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026",t=0;t<e.length;t++)Zt.set(e.charCodeAt(t),1);for(t=0;t<".,;".length;t++)Zt.set(".,;".charCodeAt(t),2)}return Zt}(),i=[],o=1,r=e.getLineCount();o<=r;o++){for(var s=e.getLineContent(o),a=s.length,l=0,u=0,c=0,d=1,h=!1,p=!1,f=!1;l<a;){var g=!1,m=s.charCodeAt(l);if(13===d){var v=void 0;switch(m){case 40:h=!0,v=0;break;case 41:v=h?0:1;break;case 91:p=!0,v=0;break;case 93:v=p?0:1;break;case 123:f=!0,v=0;break;case 125:v=f?0:1;break;case 39:v=34===c||96===c?0:1;break;case 34:v=39===c||96===c?0:1;break;case 96:v=39===c||34===c?0:1;break;case 42:v=42===c?1:0;break;case 124:v=124===c?1:0;break;default:v=n.get(m)}1===v&&(i.push($t._createLink(n,s,o,u,l)),g=!0)}else 12===d?(v=void 0,1===(v=91===m?(p=!0,0):n.get(m))?g=!0:d=13):0===(d=t.nextState(d,m))&&(g=!0);g&&(f=p=h=!(d=1),u=l+1,c=m),l++}13===d&&i.push($t._createLink(n,s,o,u,a))}return i},$t);function $t(){}var Jt=(Qt.prototype.navigateValueSet=function(e,t,n,i,o){var r;return e&&t&&(r=this.doNavigateValueSet(t,o))?{range:e,value:r}:n&&i&&(r=this.doNavigateValueSet(i,o))?{range:n,value:r}:null},Qt.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},Qt.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),o=parseFloat(e);return isNaN(i)||isNaN(o)||i!==o||0===i&&!t?null:(i=Math.floor(i*n),i+=t?n:-n,String(i/n))},Qt.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},Qt.prototype.valueSetsReplace=function(e,t,n){for(var i=null,o=0,r=e.length;null===i&&o<r;o++)i=this.valueSetReplace(e[o],t,n);return i},Qt.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return 0<=i?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},Qt.INSTANCE=new Qt,Qt);function Qt(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}var en,tn,nn=(en=function(e,t){return(en=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){function n(){this.constructor=e}en(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),on=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},rn=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},sn=(nn(an,tn=Wt),Object.defineProperty(an.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(an.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(an.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),an.prototype.getValue=function(){return this.getText()},an.prototype.getLinesContent=function(){return this._lines.slice(0)},an.prototype.getLineCount=function(){return this._lines.length},an.prototype.getLineContent=function(e){return this._lines[e-1]},an.prototype.getWordAtPosition=function(e,t){var n=Object(zt.d)(e.column,Object(zt.c)(t),this._lines[e.lineNumber-1],0);return n?new we.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},an.prototype.createWordIterator=function(e){var t,n,i=this,o=0,r=0,s=[];return{next:function a(){if(r<s.length){var l=n.substring(s[r].start,s[r].end);return r+=1,t?t.value=l:t={done:!1,value:l},t}return o>=i._lines.length?St.c:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a())}}},an.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=[],o=0,r=this._wordenize(n,t);o<r.length;o++){var s=r[o];i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1})}return i},an.prototype._wordenize=function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i},an.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=1+n;r<i;r++)o.push(this._lines[r]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.join(t)},an.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},an.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},an.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},an.prototype._validatePosition=function(e){if(!_e.a.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)n=t=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):o<n&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},an);function an(){return null!==tn&&tn.apply(this,arguments)||this}var ln=(un.prototype.dispose=function(){this._models=Object.create(null)},un.prototype._getModel=function(e){return this._models[e]},un.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},un.prototype.acceptNewModel=function(e){this._models[e.url]=new sn(be.a.parse(e.url),e.lines,e.EOL,e.versionId)},un.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},un.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},un.prototype.computeDiff=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c;return rn(this,(function(d){return o=this._getModel(e),r=this._getModel(t),o&&r?(s=o.getLinesContent(),a=r.getLinesContent(),l=new Pt(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),u=l.computeDiff(),c=!(0<u.changes.length)&&this._modelsAreIdentical(o,r),[2,{quitEarly:u.quitEarly,identical:c,changes:u.changes}]):[2,null]}))}))},un.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var i=1;i<=n;i++)if(e.getLineContent(i)!==t.getLineContent(i))return!1;return!0},un.prototype.computeMoreMinimalEdits=function(e,t){return on(this,void 0,void 0,(function(){var n,i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,y,b;return rn(this,(function(_){if(!(n=this._getModel(e)))return[2,t];for(i=[],o=void 0,t=Object(wt.r)(t,(function(e,t){return e.range&&t.range?we.a.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)})),r=0,s=t;r<s.length;r++)if(a=s[r],l=a.range,u=a.text,"number"==typeof(c=a.eol)&&(o=c),(!we.a.isEmpty(l)||u)&&(d=n.getValueInRange(l),u=u.replace(/\r\n|\n|\r/g,n.eol),d!==u))if(Math.max(u.length,d.length)>un._diffLimit)i.push({range:l,text:u});else for(h=Object(Ct.b)(d,u,!1),p=n.offsetAt(we.a.lift(l).getStartPosition()),f=0,g=h;f<g.length;f++)m=g[f],v=n.positionAt(p+m.originalStart),y=n.positionAt(p+m.originalStart+m.originalLength),b={text:u.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:y.lineNumber,endColumn:y.column}},n.getValueInRange(b.range)!==b.text&&i.push(b);return"number"==typeof o&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,i]}))}))},un.prototype.computeLinks=function(e){return on(this,void 0,void 0,(function(){var t;return rn(this,(function(n){return(t=this._getModel(e))?[2,(i=t)&&"function"==typeof i.getLineCount&&"function"==typeof i.getLineContent?Xt.computeLinks(i):[]]:[2,null];var i}))}))},un.prototype.textualSuggest=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c,d;return rn(this,(function(h){if(!(o=this._getModel(e)))return[2,null];for(r=[],s=new Set,a=new RegExp(n,i),(l=o.getWordAtPosition(t,a))&&s.add(o.getValueInRange(l)),u=o.createWordIterator(a),c=u.next();!c.done&&s.size<=un._suggestionsLimit;c=u.next())d=c.value,s.has(d)||(s.add(d),isNaN(Number(d))&&r.push(d));return[2,r]}))}))},un.prototype.computeWordRanges=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c,d,h;return rn(this,(function(p){if(!(o=this._getModel(e)))return[2,Object.create(null)];for(r=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(l=o.getLineWords(a,r),u=0,c=l;u<c.length;u++)d=c[u],isNaN(Number(d.word))&&((h=s[d.word])||(h=[],s[d.word]=h),h.push({startLineNumber:a,startColumn:d.startColumn,endLineNumber:a,endColumn:d.endColumn}));return[2,s]}))}))},un.prototype.navigateValueSet=function(e,t,n,i,o){return on(this,void 0,void 0,(function(){var r,s,a,l,u;return rn(this,(function(c){return(r=this._getModel(e))?(s=new RegExp(i,o),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),a=r.getValueInRange(t),(l=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s))?(u=r.getValueInRange(l),[2,Jt.INSTANCE.navigateValueSet(t,a,l,u,n)]):[2,null]):[2,null]}))}))},un.prototype.loadForeignModule=function(e,t,n){var i=this,o={host:at.b(n,(function(e,t){return i._host.fhr(e,t)})),getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(at.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},un.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}},un._diffLimit=1e5,un._suggestionsLimit=1e4,un);function un(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}"function"==typeof importScripts&&(st.b.monaco=ke());var cn,dn=n(598),hn=n(899),pn=n(828),fn=n(1054),gn=(cn=function(e,t){return(cn=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){function n(){this.constructor=e}cn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mn=function(e,t){return function(n,i){t(n,i,e)}};function vn(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var yn,bn=(gn(_n,yn=ot.a),_n.prototype.dispose=function(){yn.prototype.dispose.call(this)},_n.prototype.canComputeDiff=function(e,t){return vn(this._modelService,e)&&vn(this._modelService,t)},_n.prototype.computeDiff=function(e,t,n,i){return this._workerManager.withWorker().then((function(o){return o.computeDiff(e,t,n,i)}))},_n.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(wt.q)(t)){if(!vn(this._modelService,e))return Promise.resolve(t);var i=fn.a.create(!0),o=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return o.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),o}return Promise.resolve(void 0)},_n.prototype.canNavigateValueSet=function(e){return vn(this._modelService,e)},_n.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))},_n.prototype.canComputeWordRanges=function(e){return vn(this._modelService,e)},_n.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},_n=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([mn(0,dn.a),mn(1,hn.a),mn(2,pn.a)],_n));function _n(e,t,n){var i=yn.call(this)||this;return i._modelService=e,i._workerManager=i._register(new On(i._modelService)),i._logService=n,i._register(Qe.s.register("*",{provideLinks:function(e){return vn(i._modelService,e.uri)?i._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),i._register(Qe.d.register("*",new wn(i._workerManager,t,i._modelService))),i}var wn=(Cn.prototype.provideCompletionItems=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,r;return function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(s){switch(s.label){case 0:return this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&vn(this._modelService,e.uri)?(n=e.getWordAtPosition(t),i=n?new we.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):we.a.fromPositions(t),o=i.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0];case 1:return[4,s.sent().textualSuggest(e.uri,t)];case 2:return(r=s.sent())?[2,{suggestions:r.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:o,replace:i}}}))}]:[2,void 0]}}))}))},Cn);function Cn(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}var Sn,On=(gn(xn,Sn=ot.a),xn.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),Sn.prototype.dispose.call(this)},xn.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},xn.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&3e5<(new Date).getTime()-this._lastWorkerUsedTime&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},xn.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new An(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},xn);function xn(e){var t=Sn.call(this)||this;return t._modelService=e,t._editorWorkerClient=null,t._lastWorkerUsedTime=(new Date).getTime(),t._register(new it.c).cancelAndSet((function(){return t._checkStopIdleWorker()}),Math.round(15e4)),t._register(t._modelService.onModelRemoved((function(e){return t._checkStopEmptyWorker()}))),t}var kn,En=(gn(Nn,kn=ot.a),Nn.prototype.dispose=function(){for(var e in this._syncedModels)Object(ot.f)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),kn.prototype.dispose.call(this)},Nn.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString();this._syncedModels[o]||this._beginModelSync(i),this._syncedModels[o]&&(this._syncedModelsLastUsedTime[o]=(new Date).getTime())}},Nn.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime)6e4<e-this._syncedModelsLastUsedTime[n]&&t.push(n);for(var i=0,o=t;i<o.length;i++){var r=o[i];this._stopModelSync(r)}},Nn.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var o=new ot.b;o.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(i.toString(),e)}))),o.add(n.onWillDispose((function(){t._stopModelSync(i)}))),o.add(Object(ot.h)((function(){t._proxy.acceptRemovedModel(i)}))),this._syncedModels[i]=o}},Nn.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(ot.f)(t)},Nn);function Nn(e,t,n){var i=kn.call(this)||this;if(i._syncedModels=Object.create(null),i._syncedModelsLastUsedTime=Object.create(null),i._proxy=e,i._modelService=t,!n){var o=new it.c;o.cancelAndSet((function(){return i._checkStopModelSync()}),Math.round(3e4)),i._register(o)}return i}var Ln=(Dn.prototype.dispose=function(){this._instance.dispose()},Dn.prototype.getProxyObject=function(){return this._proxyObj},Dn);function Dn(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}var Mn=(Tn.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},Tn);function Tn(e){this._workerClient=e}var In,Pn,An=(gn(Rn,In=ot.a),Rn.prototype.fhr=function(e,t){throw new Error("Not implemented!")},Rn.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new pt(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Mn(this)))}catch(e){ut(),this._worker=new Ln(new ln(new Mn(this),null))}return this._worker},Rn.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return ut(),e._worker=new Ln(new ln(new Mn(e),null)),e._getOrCreateWorker().getProxyObject()}))},Rn.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new En(e,this._modelService,this._keepIdleModels))),this._modelManager},Rn.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},Rn.prototype.computeDiff=function(e,t,n,i){return this._withSyncedResources([e,t]).then((function(o){return o.computeDiff(e.toString(),t.toString(),n,i)}))},Rn.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},Rn.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},Rn.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var o=n._modelService.getModel(e);if(!o)return null;var r=_t.a.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object(Ot.H)(r);return i.textualSuggest(e.toString(),t,s,a)}))},Rn.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var o=n._modelService.getModel(e);if(!o)return Promise.resolve(null);var r=_t.a.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object(Ot.H)(r);return i.computeWordRanges(e.toString(),t,s,a)}))},Rn.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then((function(o){var r=i._modelService.getModel(e);if(!r)return null;var s=_t.a.getWordDefinition(r.getLanguageIdentifier().id),a=s.source,l=Object(Ot.H)(s);return o.navigateValueSet(e.toString(),t,n,a,l)}))},Rn);function Rn(e,t,n){var i=In.call(this)||this;return i._modelService=e,i._keepIdleModels=t,i._workerFactory=new yt(n),i._worker=null,i._modelManager=null,i}var jn,Fn=((Pn=function(e,t){return(Pn=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){function n(){this.constructor=e}Pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Bn,jn=An),Bn.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}},Bn.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?at.c(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n)},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},s=0,a=n;s<a.length;s++){var l=a[s];r[l]=o(l,i)}return r}))}))),this._foreignProxy},Bn.prototype.getProxy=function(){return this._getForeignProxy()},Bn.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},Bn);function Bn(e,t){var n=jn.call(this,e,t.keepIdleModels||!1,t.label)||this;return n._foreignModuleId=t.moduleId,n._foreignModuleCreateData=t.createData||null,n._foreignModuleHost=t.host||null,n._foreignProxy=null,n}var Wn=n(824),Vn=n(893),zn=n(777);function Hn(e){return t=e,!Array.isArray(t);var t}function qn(e){return"string"==typeof e}function Un(e){return!qn(e)}function Kn(e){return!e}function Gn(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Yn(e){return e.replace(/[&<>'"_]/g,"-")}function Zn(e,t){return new Error(e.languageId+": "+t)}function Xn(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,l,u,c,d,h,p){return Kn(a)?Kn(l)?!Kn(u)&&u<i.length?Gn(e,i[u]):!Kn(d)&&e&&"string"==typeof e[d]?e[d]:(null===r&&(r=o.split(".")).unshift(o),!Kn(c)&&c<r.length?Gn(e,r[c]):""):Gn(e,n):"$"}))}function $n(e,t){for(var n=t;n&&0<n.length;){var i=e.tokenizer[n];if(i)return i;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return null}var Jn=(Qn.create=function(e,t){return this._INSTANCE.create(e,t)},Qn.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new ei(e,t);var n=ei.getStackElementId(e);0<n.length&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new ei(e,t),this._entries[n]=i)},Qn._INSTANCE=new Qn(5),Qn);function Qn(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var ei=(ti.getStackElementId=function(e){for(var t="";null!==e;)0<t.length&&(t+="|"),t+=e.state,e=e.parent;return t},ti._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},ti.prototype.equals=function(e){return ti._equals(this,e)},ti.prototype.push=function(e){return Jn.create(this,e)},ti.prototype.pop=function(){return this.parent},ti.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},ti.prototype.switchTo=function(e){return Jn.create(this.parent,e)},ti);function ti(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}var ni=(ii.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},ii.prototype.clone=function(){return this.state.clone()===this.state?this:new ii(this.modeId,this.state)},ii);function ii(e,t){this.modeId=e,this.state=t}var oi=(ri.create=function(e,t){return this._INSTANCE.create(e,t)},ri.prototype.create=function(e,t){if(null!==t)return new si(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new si(e,t);var n=ei.getStackElementId(e),i=this._entries[n];return i||(i=new si(e,null),this._entries[n]=i)},ri._INSTANCE=new ri(5),ri);function ri(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var si=(ai.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:oi.create(this.stack,this.embeddedModeData)},ai.prototype.equals=function(e){return e instanceof ai&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))},ai);function ai(e,t){this.stack=e,this.embeddedModeData=t}var li=(ui.prototype.enterMode=function(e,t){this._language=t},ui.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new Se.a(e,t,this._language)))},ui.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Qe.B.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},ui.prototype.finalize=function(e){return new Se.b(this._tokens,e)},ui);function ui(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}var ci=(di.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},di.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},di._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a<o;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+o),s},di.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Qe.B.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize2(e,o,n);return this._prependTokens=di._merge(this._prependTokens,this._tokens,s.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,s.endState},di.prototype.finalize=function(e){return new Se.c(di._merge(this._prependTokens,this._tokens,null),e)},di);function di(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}var hi=(pi.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},pi.prototype.getLoadStatus=function(){var e=[];for(var t in this._embeddedModes){var n=Qe.B.get(t);if(n){if(n instanceof pi){var i=n.getLoadStatus();!1===i.loaded&&e.push(i.promise)}}else{var o=Qe.B.getPromise(t);o&&e.push(o)}}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((function(e){}))}},pi.prototype.getInitialState=function(){var e=Jn.create(null,this._lexer.start);return oi.create(e,null)},pi.prototype.tokenize=function(e,t,n){var i=new li,o=this._tokenize(e,t,n,i);return i.finalize(o)},pi.prototype.tokenize2=function(e,t,n){var i=new ci(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),o=this._tokenize(e,t,n,i);return i.finalize(o)},pi.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)},pi.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=$n(this._lexer,t.stack.state)))throw Zn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var i=-1,o=!1,r=0,s=n;r<s.length;r++){var a=s[r];if(Un(a.action)&&"@pop"===a.action.nextEmbedded){o=!0;var l=a.regex,u=a.regex.source;"^(?:"===u.substr(0,4)&&")"===u.substr(u.length-1,1)&&(l=new RegExp(u.substr(4,u.length-5),l.ignoreCase?"i":""));var c=e.search(l);-1===c||0!==c&&a.matchOnlyAtLineStart||(-1===i||c<i)&&(i=c)}}if(!o)throw Zn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i},pi.prototype._nestedTokenize=function(e,t,n,i){var o=this._findLeavingNestedModeOffset(e,t);if(-1===o){var r=i.nestedModeTokenize(e,t.embeddedModeData,n);return oi.create(t.stack,new ni(t.embeddedModeData.modeId,r))}var s=e.substring(0,o);0<s.length&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},pi.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},pi.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);for(var o=e.length,r=t.embeddedModeData,s=t.stack,a=0,l=null,u=!0;u||a<o;){var c=a,d=s.depth,h=l?l.groups.length:0,p=s.state,f=null,g=null,m=null,v=null,y=null;if(l){f=l.matches;var b=l.groups.shift();g=b.matched,m=b.action,v=l.rule,0===l.groups.length&&(l=null)}else{if(!u&&o<=a)break;u=!1;var _=this._lexer.tokenizer[p];if(!_&&!(_=$n(this._lexer,p)))throw Zn(this._lexer,"tokenizer state is not defined: "+p);for(var w=e.substr(a),C=0,S=_;C<S.length;C++){var O=S[C];if((0===a||!O.matchOnlyAtLineStart)&&(f=w.match(O.regex))){g=f[0],m=O.action;break}}}if(f||(f=[""],g=""),m||(a<o&&(g=(f=[e.charAt(a)])[0]),m=this._lexer.defaultToken),null===g)break;for(a+=g.length;Hn(m)&&Un(m)&&m.test;)m=m.test(g,f,p,a===o);var x=null;if("string"==typeof m||Array.isArray(m))x=m;else if(m.group)x=m.group;else if(null!==m.token&&void 0!==m.token){if(x=m.tokenSubst?Xn(this._lexer,m.token,g,f,p):m.token,m.nextEmbedded)if("@pop"===m.nextEmbedded){if(!r)throw Zn(this._lexer,"cannot pop embedded mode if not inside one");r=null}else{if(r)throw Zn(this._lexer,"cannot enter embedded mode from within an embedded mode");y=Xn(this._lexer,m.nextEmbedded,g,f,p)}if(m.goBack&&(a=Math.max(0,a-m.goBack)),m.switchTo&&"string"==typeof m.switchTo){if("@"===(k=Xn(this._lexer,m.switchTo,g,f,p))[0]&&(k=k.substr(1)),!$n(this._lexer,k))throw Zn(this._lexer,"trying to switch to a state '"+k+"' that is undefined in rule: "+this._safeRuleName(v));s=s.switchTo(k)}else{if(m.transform&&"function"==typeof m.transform)throw Zn(this._lexer,"action.transform not supported");if(m.next)if("@push"===m.next){if(s.depth>=this._lexer.maxStack)throw Zn(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(p)}else if("@pop"===m.next){if(s.depth<=1)throw Zn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));s=s.pop()}else if("@popall"===m.next)s=s.popall();else{var k;if("@"===(k=Xn(this._lexer,m.next,g,f,p))[0]&&(k=k.substr(1)),!$n(this._lexer,k))throw Zn(this._lexer,"trying to set a next state '"+k+"' that is undefined in rule: "+this._safeRuleName(v));s=s.push(k)}}m.log&&"string"==typeof m.log&&(this._lexer,this._lexer.languageId,Xn(this._lexer,m.log,g,f,p))}if(null===x)throw Zn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(x)){if(l&&0<l.groups.length)throw Zn(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(f.length!==x.length+1)throw Zn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var E=0,N=1;N<f.length;N++)E+=f[N].length;if(E!==g.length)throw Zn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(v));for(l={rule:v,matches:f,groups:[]},N=0;N<x.length;N++)l.groups[N]={action:x[N],matched:f[N+1]};a-=g.length}else{if("@rematch"===x&&(a-=g.length,f=null,x=g=""),0===g.length){if(0===o||d!==s.depth||p!==s.state||(l?l.groups.length:0)!==h)continue;throw Zn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(v))}var L=null;if(qn(x)&&0===x.indexOf("@brackets")){var D=x.substr("@brackets".length),M=fi(this._lexer,g);if(!M)throw Zn(this._lexer,"@brackets token returned but no bracket defined as: "+g);L=Yn(M.token+D)}else L=Yn(""===x?"":x+this._lexer.tokenPostfix);if(i.emit(c+n,L),null!==y){var T=this._modeService.getModeIdForLanguageName(y);T&&(y=T);var I=this._getNestedEmbeddedModeData(y);return a<o?(w=e.substr(a),this._nestedTokenize(w,oi.create(s,I),n+a,i)):oi.create(s,I)}}}return oi.create(s,r)},pi.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Qe.B.get(t);if(n)return new ni(t,n.getInitialState())}return new ni(t||et.b,et.c)},pi.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},pi);function pi(e,t,n,i){var o=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var r=!1;this._tokenizationRegistryListener=Qe.B.onDidChange((function(e){if(!r){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var s=e.changedLanguages[n];if(o._embeddedModes[s]){t=!0;break}}t&&(r=!0,Qe.B.fire([o._modeId]),r=!1)}}))}function fi(e,t){if(!t)return null;t=Gn(e,t);for(var n=0,i=e.brackets;n<i.length;n++){var o=i[n];if(o.open===t)return{token:o.token,bracketType:1};if(o.close===t)return{token:o.token,bracketType:-1}}return null}var gi=(mi.colorizeElement=function(e,t,n,i){var o=(i=i||{}).theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return Promise.resolve();e.setTheme(o);var s=n.firstChild?n.firstChild.nodeValue:"";return n.className+=" "+o,this.colorize(t,s||"",r,i).then((function(e){n.innerHTML=e}),(function(e){}))},mi.colorize=function(e,t,n,i){var o=4;i&&"number"==typeof i.tabSize&&(o=i.tabSize),Ot.P(t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(yi(r,o));e.triggerMode(s);var a=Qe.B.get(s);if(a)return vi(r,o,a);var l=Qe.B.getPromise(s);return new Promise(l?function(e,t){l.then((function(n){vi(r,o,n).then(e,t)}),t)}:function(e,t){function n(){i&&(i.dispose(),i=null),a&&(a.dispose(),a=null);var n=Qe.B.get(s);n?vi(r,o,n).then(e,t):e(yi(r,o))}var i=null,a=null;(a=new it.e).cancelAndSet(n,500),i=Qe.B.onDidChange((function(e){0<=e.changedLanguages.indexOf(s)&&n()}))})},mi.colorizeLine=function(e,t,n,i,o){void 0===o&&(o=4);var r=zn.d.isBasicASCII(e,t),s=zn.d.containsRTL(e,r,n);return Object(Vn.e)(new Vn.c(!1,!0,e,!1,r,s,0,i,[],o,0,0,0,-1,"none",!1,!1,null)).html},mi.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)},mi);function mi(){}function vi(e,t,n){return new Promise((function(i,o){!function r(){var s=function(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r<s;r++){var a=e[r],l=n.tokenize2(a,o,0);Wn.a.convertToEndOffset(l.tokens,a.length);var u=new Wn.a(l.tokens,a),c=zn.d.isBasicASCII(a,!0),d=zn.d.containsRTL(a,c,!0),h=Object(Vn.e)(new Vn.c(!1,!0,a,!1,c,d,0,u.inflate(),[],t,0,0,0,-1,"none",!1,!1,null));(i=i.concat(h.html)).push("<br/>"),o=l.endState}return i.join("")}(e,t,n);if(n instanceof hi){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}i(s)}()}))}function yi(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;o<r;o++){var s=e[o];i[0]=s.length;var a=new Wn.a(i,s),l=zn.d.isBasicASCII(s,!0),u=zn.d.containsRTL(s,l,!0),c=Object(Vn.e)(new Vn.c(!1,!0,s,!1,l,u,0,a,[],t,0,0,0,-1,"none",!1,!1,null));(n=n.concat(c.html)).push("<br/>")}return n.join("")}var bi,_i=n(701),wi=n(889),Ci=n(892),Si=n(945),Oi=n(704),xi=n(573),ki=n(553),Ei=n(505),Ni=n(789),Li=(bi=function(e,t){return(bi=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){function n(){this.constructor=e}bi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Di=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Mi=(Object.defineProperty(Ti.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),Ti.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},Ti.prototype.getValue=function(e){return e?Object(xi.d)(this.contents,e):this.contents},Ti.prototype.getOverrideValue=function(e,t){var n=this.getContentsForOverrideIdentifer(t);return n?e?Object(xi.d)(n,e):n:void 0},Ti.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;for(var n={},i=0,o=wt.e(Di(Object.keys(this.contents),Object.keys(t)));i<o.length;i++){var r=o[i],s=this.contents[r],a=t[r];a&&("object"==typeof s&&"object"==typeof a?(s=Ei.c(s),this.mergeContents(s,a)):s=a),n[r]=s}return new Ti(n,this.keys,this.overrides)},Ti.prototype.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Ei.c(this.contents),i=Ei.c(this.overrides),o=Di(this.keys),r=0,s=e;r<s.length;r++){var a=s[r];this.mergeContents(n,a.contents);for(var l=function(e){var t=i.filter((function(t){return wt.g(t.identifiers,e.identifiers)}))[0];t?u.mergeContents(t.contents,e.contents):i.push(Ei.c(e))},u=this,c=0,d=a.overrides;c<d.length;c++)l(d[c]);for(var h=0,p=a.keys;h<p.length;h++){var f=p[h];-1===o.indexOf(f)&&o.push(f)}}return new Ti(n,o,i)},Ti.prototype.freeze=function(){return this.isFrozen=!0,this},Ti.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];o in e&&at.i(e[o])&&at.i(t[o])?this.mergeContents(e[o],t[o]):e[o]=Ei.c(t[o])}},Ti.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?Ei.d(e):e},Ti.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var i=n[t];if(-1!==i.identifiers.indexOf(e))return i.contents}return null},Ti.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},Ti.prototype.setValue=function(e,t){this.addKey(e),Object(xi.b)(this.contents,e,t,(function(e){throw new Error(e)}))},Ti.prototype.removeValue=function(e){this.removeKey(e)&&Object(xi.h)(this.contents,e)},Ti.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},Ti.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},Ti);function Ti(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}var Ii,Pi=(Li(Ai,Ii=Mi),Ai);function Ai(){for(var e=Object(xi.e)(),t=Object(xi.c)(),n=[],i=0,o=Object.keys(e);i<o.length;i++){var r=o[i];Ni.b.test(r)&&n.push({identifiers:[Object(xi.g)(r).trim()],keys:Object.keys(e[r]),contents:Object(xi.i)(e[r],(function(e){}))})}return Ii.call(this,e,t,n)||this}var Ri=(ji.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},ji.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource))||(i=new Mi,this._memoryConfigurationByResource.set(n.resource,i)):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},ji.prototype.inspect=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n),o=this.getFolderConfigurationModelForResource(t.resource,n),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,s=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),a=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),u=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),c=n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,d=o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,h=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),p=i.getValue(e),f=wt.e(wt.m(i.overrides.map((function(e){return e.identifiers})))).filter((function(t){return void 0!==i.getOverrideValue(e,t)}));return{defaultValue:s,userValue:a,userLocalValue:l,userRemoteValue:u,workspaceValue:c,workspaceFolderValue:d,memoryValue:h,value:p,default:void 0!==s?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:void 0!==a?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:void 0!==l?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:void 0!==u?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:void 0!==c?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:void 0!==d?{value:null==o?void 0:o.freeze().getValue(e),override:t.overrideIdentifier&&null!=o?o.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:void 0!==h?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:f.length?f:void 0}},Object.defineProperty(ji.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(ji.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(ji.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),ji.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},ji.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var o=t.getFolder(n);o&&(i=this.getFolderConsolidatedConfiguration(o.uri)||i);var r=this._memoryConfigurationByResource.get(n);r&&(i=i.merge(r))}return i},ji.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},ji.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},ji.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}},ji);function ji(e,t,n,i,o,r,s,a){void 0===n&&(n=new Mi),void 0===i&&(i=new Mi),void 0===o&&(o=new ki.b),void 0===r&&(r=new Mi),void 0===s&&(s=new ki.b),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ki.b,this._userConfiguration=null}var Fi,Bi,Wi=n(445),Vi=((Fi=function(e,t){return(Fi=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){function n(){this.constructor=e}Fi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(zi,Bi=ot.a),Object.defineProperty(zi.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ve.b.None},enumerable:!0,configurable:!0}),zi.prototype.dispose=function(){Bi.prototype.dispose.call(this)},zi.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},zi.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},zi.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return null;var i=n.getDispatchParts()[0];if(null===i)return null;var o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,i)},zi.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Wi.a("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet((function(){(!n._documentHasFocus()||5e3<Date.now()-i)&&n._leaveChordMode()}),500)},zi.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},zi.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},zi.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return!1;var o=e.getDispatchParts()[0];if(null===o)return i;var r=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),l=this._getResolver().resolve(r,s,o);return l&&l.enterChord?(i=!0,this._enterChordMode(o,a)):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(Wi.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),i=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(i=!0),void 0===l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"}))),i},zi.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30)},zi);function zi(e,t,n,i){var o=Bi.call(this)||this;return o._contextKeyService=e,o._commandService=t,o._telemetryService=n,o._notificationService=i,o._onDidUpdateKeybindings=o._register(new ve.a),o._currentChord=null,o._currentChordChecker=new it.c,o._currentChordStatusMessage=null,o}var Hi=n(456),qi=(Ui._isTargetedForRemoval=function(e,t,n,i,o){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0},Ui.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var s=r.command.substr(1),a=r.keypressParts[0],l=r.keypressParts[1],u=r.when,c=e.length-1;0<=c;c--)this._isTargetedForRemoval(e[c],a,l,s,u)&&e.splice(c,1);else n.push(r)}return e.concat(n)},Ui.prototype._addKeyPress=function(e,t){var n=this._map.get(e);if(void 0===n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(var i=n.length-1;0<=i;i--){var o=n[i];if(o.command!==t.command){var r=1<o.keypressParts.length,s=1<t.keypressParts.length;r&&s&&o.keypressParts[1]!==t.keypressParts[1]||Ui.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}}n.push(t),this._addToLookupMap(t)},Ui.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},Ui.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}},Ui.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},Ui._implies=function(e,t){for(var n=function(e){return e instanceof Hi.b?e.expr:[e]},i=n(e.negate()).concat(n(t)),o=0;o<i.length;o++)for(var r=i[o].negate(),s=o+1;s<i.length;s++){var a=i[s];if(r.equals(a))return!0}return!1},Ui.prototype.getKeybindings=function(){return this._keybindings},Ui.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1]},Ui.prototype.resolve=function(e,t,n){var i=null;if(null!==t){if(void 0===(a=this._map.get(t)))return null;i=[];for(var o=0,r=a.length;o<r;o++){var s=a[o];s.keypressParts[1]===n&&i.push(s)}}else{var a;if(void 0===(a=this._map.get(n)))return null;i=a}var l=this._findCommand(e,i);return l?null===t&&1<l.keypressParts.length&&null!==l.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:l.command,commandArgs:l.commandArgs,bubble:l.bubble}:null},Ui.prototype._findCommand=function(e,t){for(var n=t.length-1;0<=n;n--){var i=t[n];if(Ui.contextMatchesRules(e,i.when))return i}return null},Ui.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},Ui);function Ui(e,t){this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(var n=0,i=e.length;n<i;n++){var o=e[n].command;o&&this._defaultBoundCommands.set(o,!0)}for(this._map=new Map,this._lookupMap=new Map,this._keybindings=Ui.combine(e,t),n=0,i=this._keybindings.length;n<i;n++){var r=this._keybindings[n];0!==r.keypressParts.length&&this._addKeyPress(r.keypressParts[0],r)}}var Ki,Gi,Yi=n(788),Zi=function(e,t,n,i,o){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o)return t;t.push(o)}return t}(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o},Xi=n(1092),$i=((Ki=function(e,t){return(Ki=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){function n(){this.constructor=e}Ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ji,Gi=ye.c),Ji.prototype.getLabel=function(){var e=this;return Xi.b.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},Ji.prototype.getAriaLabel=function(){var e=this;return Xi.a.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},Ji.prototype.isChord=function(){return 1<this._parts.length},Ji.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},Ji.prototype._getPart=function(e){return new ye.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},Ji.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},Ji);function Ji(e,t){var n=Gi.call(this)||this;if(0===t.length)throw Object(rt.b)("parts");return n._os=e,n._parts=t,n}var Qi,eo,to=((Qi=function(e,t){return(Qi=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){function n(){this.constructor=e}Qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(no,eo=$i),no.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return ye.b.toString(e)},no.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},no.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":ye.b.toString(e.keyCode)},no.prototype._getDispatchPart=function(e){return no.getDispatchStr(e)},no.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+ye.b.toString(e.keyCode)},no);function no(e,t){return eo.call(this,t,e.parts)||this}var io,oo=n(532),ro=n(963),so=n(754),ao=(io=function(e,t){return(io=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){function n(){this.constructor=e}io(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},uo=(Object.defineProperty(co.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),co.prototype.dispose=function(){this._onDispose.fire()},co);function co(e){this.model=e,this._onDispose=new ve.a}var ho=(po.prototype.setEditor=function(e){this.editor=e},po.prototype.createModelReference=function(e){var t,n,i,o=this,r=null;return this.editor&&(t=this.editor,n=function(t){return o.findModel(t,e)},i=function(t){return o.findModel(t.getOriginalEditor(),e)||o.findModel(t.getModifiedEditor(),e)},r=(Object(Ci.a)(t)?n:i)(t)),r?Promise.resolve(new ot.c(new uo(r))):Promise.reject(new Error("Model not found"))},po.prototype.findModel=function(e,t){var n=this.modelService?this.modelService.getModel(t):e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},po);function po(e){this.modelService=e}var fo=(go.prototype.show=function(){return go.NULL_PROGRESS_RUNNER},go.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},go.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},go);function go(){}var mo=function(){},vo=(yo.prototype.info=function(e){return this.notify({severity:wi.a.Info,message:e})},yo.prototype.warn=function(e){return this.notify({severity:wi.a.Warning,message:e})},yo.prototype.error=function(e){return this.notify({severity:wi.a.Error,message:e})},yo.prototype.notify=function(e){switch(e.severity){case wi.a.Error:case wi.a.Warning:}return yo.NO_OP},yo.prototype.status=function(e,t){return ot.a.None},yo.NO_OP=new oo.b,yo);function yo(){}var bo=(_o.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(ot.h)((function(){delete t._dynamicCommands[n]}))},_o.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Ae.a.getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,lo([i.handler],t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(o)}catch(e){return Promise.reject(e)}},_o);function _o(e){this._onWillExecuteCommand=new ve.a,this._onDidExecuteCommand=new ve.a,this._instantiationService=e,this._dynamicCommands=Object.create(null)}var wo,Co=(ao(So,wo=Vi),So.prototype.addDynamicKeybinding=function(e,t,n,i){var o=this,r=Object(ye.f)(t,st.a),s=new ot.b;r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0}),s.add(Object(ot.h)((function(){for(var t=0;t<o._dynamicKeybindings.length;t++)if(o._dynamicKeybindings[t].command===e)return o._dynamicKeybindings.splice(t,1),void o.updateResolver({source:1})}))));var a=this._commandService;if(!(a instanceof bo))throw new Error("Unknown command service!");return s.add(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),s},So.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},So.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Yi.a.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new qi(e,t)}return this._cachedResolver},So.prototype._documentHasFocus=function(){return document.hasFocus()},So.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,o=0,r=e;o<r.length;o++){var s=r[o],a=s.when||void 0,l=s.keybinding;if(l)for(var u=0,c=this.resolveKeybinding(l);u<c.length;u++){var d=c[u];n[i++]=new Zi(d,s.command,s.commandArgs,a,t)}else n[i++]=new Zi(void 0,s.command,s.commandArgs,a,t)}return n},So.prototype.resolveKeybinding=function(e){return[new to(e,st.a)]},So.prototype.resolveKeyboardEvent=function(e){var t=new ye.e(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new to(t,st.a)},So);function So(e,t,n,i,o){var r=wo.call(this,e,t,n,i)||this;return r._cachedResolver=null,r._dynamicKeybindings=[],r._register(De.j(o,De.d.KEY_DOWN,(function(e){var t=new _i.a(e);r._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),r}function Oo(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof be.a)}var xo=(ko.prototype.configuration=function(){return this._configuration},ko.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,i=Oo(e)?e:Oo(t)?t:{};return this.configuration().getValue(n,i,void 0)},ko.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve()},ko.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},ko);function ko(){this._onDidChangeConfiguration=new ve.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Ri(new Pi,new Mi)}var Eo=(No.prototype.getValue=function(e,t,n){var i=_e.a.isIPosition(t)&&t?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return void 0===i?this.configurationService.getValue():this.configurationService.getValue(i)},No);function No(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new ve.a,this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:function(t,n){return e.affectsConfiguration(n)}})}))}var Lo=(Do.prototype.getEOL=function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:st.d||st.e?"\n":"\r\n"},Do=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,xi.a)],Do));function Do(e){this.configurationService=e}var Mo=(To.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},To.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},To);function To(){}var Io=(Po.prototype.getWorkspace=function(){return this.workspace},Po.prototype.getWorkspaceFolder=function(e){return e&&e.scheme===Po.SCHEME?this.workspace.folders[0]:null},Po.SCHEME="inmemory",Po);function Po(){var e=be.a.from({scheme:Po.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new ro.b({uri:e,name:"",index:0})]}}function Ao(e,t,n){t&&e instanceof xo&&Object.keys(t).forEach((function(i){Object(Si.d)(i)&&e.updateValue("editor."+i,t[i]),n&&Object(Si.c)(i)&&e.updateValue("diffEditor."+i,t[i])}))}var Ro=(jo.prototype.hasPreviewHandler=function(){return!1},jo.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var i=0,o=e.edits;i<o.length;i++){var r=o[i];if(!Qe.D.is(r))return Promise.reject(new Error("bad edit - only text edits are supported"));var s=this._modelService.getModel(r.resource);if(!s)return Promise.reject(new Error("bad edit - model not found"));var a=n.get(s);a||(a=[],n.set(s,a)),a.push(r.edit)}var l=0,u=0;return n.forEach((function(e,t){t.pushStackElement(),t.pushEditOperations([],e.map((function(e){return Oi.a.replaceMove(we.a.lift(e.range),e.text)})),(function(){return[]})),t.pushStackElement(),u+=1,l+=e.length})),Promise.resolve({selection:void 0,ariaSummary:Ot.r(so.f.bulkEditServiceSummary,l,u)})},jo);function jo(e){this._modelService=e}var Fo=(Bo.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},Bo);function Bo(){}var Wo=(Object.defineProperty(Vo.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),Vo);function Vo(e){this._container=e,this.onLayout=ve.b.None}var zo,Ho,qo=n(478),Uo=n(635),Ko=n(930),Go=n(1273),Yo=n(1089),Zo=n(827),Xo=n(755),$o=n(757),Jo=n(448),Qo=n(531),er=n(451),tr=n(759),nr=n(955),ir=n(774),or=function(e,t){function n(){this.constructor=e}zo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},rr=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},sr=function(e,t){return function(n,i){t(n,i,e)}},ar=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},lr=0,ur=!(zo=function(e,t){return(zo=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)}),cr=(or(dr,Ho=Ko.a),dr.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return null;var i="DYNAMIC_"+ ++lr,o=Hi.a.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i},dr.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},dr.prototype.addAction=function(e){var t=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return ot.a.None;function n(n){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return Promise.resolve(e.run.apply(e,ar([t],i)))}var i=e.id,o=e.label,r=Hi.a.and(Hi.a.equals("editorId",this.getId()),Hi.a.deserialize(e.precondition)),s=e.keybindings,a=Hi.a.and(r,Hi.a.deserialize(e.keybindingContext)),l=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,c=new ot.b,d=this.getId()+":"+i;if(c.add(Ae.a.registerCommand(d,n)),l){var h={command:{id:d,title:o},when:r,group:l,order:u};c.add(Xo.c.appendMenuItem(7,h))}if(Array.isArray(s))for(var p=0,f=s;p<f.length;p++){var g=f[p];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,n,a))}var m=new Yo.a(d,o,o,r,n,this._contextKeyService);return this._actions[i]=m,c.add(Object(ot.h)((function(){delete t._actions[i]}))),c},dr=rr([sr(2,Jo.a),sr(3,Le.a),sr(4,Ae.b),sr(5,Hi.c),sr(6,Qo.a),sr(7,er.c),sr(8,oo.a),sr(9,tr.b)],dr));function dr(e,t,n,i,o,r,s,a,l,u){var c=this;return(t=t||{}).ariaLabel=t.ariaLabel||so.g.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+(qo.i?so.g.accessibilityHelpMessageIE:so.g.accessibilityHelpMessage),(c=Ho.call(this,e,t,{},n,i,o,r,a,l,u)||this)._standaloneKeybindingService=s instanceof Co?s:null,ur||(ur=!0,Uo.b(document.body)),c}var hr,pr=(or(fr,hr=cr),fr.prototype.dispose=function(){hr.prototype.dispose.call(this)},fr.prototype.updateOptions=function(e){Ao(this._configurationService,e,!1),hr.prototype.updateOptions.call(this,e)},fr.prototype._attachModel=function(e){hr.prototype._attachModel.call(this,e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},fr.prototype._postDetachModelCleanup=function(e){hr.prototype._postDetachModelCleanup.call(this,e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)},fr=rr([sr(3,Jo.a),sr(4,Le.a),sr(5,Ae.b),sr(6,Hi.c),sr(7,Qo.a),sr(8,$o.b),sr(9,Zo.a),sr(10,oo.a),sr(11,xi.a),sr(12,tr.b)],fr));function fr(e,t,n,i,o,r,s,a,l,u,c,d,h){var p=this;Ao(d,t,!1);var f=u.registerEditorContainer(e);"string"==typeof(t=t||{}).theme&&u.setTheme(t.theme);var g,m=t.model;if(delete t.model,(p=hr.call(this,e,t,i,o,r,s,a,u,c,h)||this)._contextViewService=l,p._configurationService=d,p._register(n),p._register(f),void 0===m?(g=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),p._ownsModel=!0):(g=m,p._ownsModel=!1),p._attachModel(g),g){var v={oldModelUrl:null,newModelUrl:g.uri};p._onDidChangeModel.fire(v)}return p}var gr,mr=(or(vr,gr=Go.a),vr.prototype.dispose=function(){gr.prototype.dispose.call(this)},vr.prototype.updateOptions=function(e){Ao(this._configurationService,e,!0),gr.prototype.updateOptions.call(this,e)},vr.prototype._createInnerEditor=function(e,t,n){return e.createInstance(cr,t,n)},vr.prototype.getOriginalEditor=function(){return gr.prototype.getOriginalEditor.call(this)},vr.prototype.getModifiedEditor=function(){return gr.prototype.getModifiedEditor.call(this)},vr.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},vr.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},vr.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},vr=rr([sr(3,Jo.a),sr(4,Hi.c),sr(5,Qo.a),sr(6,$o.b),sr(7,tt.a),sr(8,Le.a),sr(9,Zo.a),sr(10,oo.a),sr(11,xi.a),sr(12,$o.a),sr(13,ir.a),sr(14,Object(Jo.d)(nr.a))],vr));function vr(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f){var g=this;Ao(d,t,!0);var m=u.registerEditorContainer(e);return"string"==typeof(t=t||{}).theme&&(t.theme=u.setTheme(t.theme)),(g=gr.call(this,e,t,f,a,o,i,l,u,c,h,p)||this)._contextViewService=s,g._configurationService=d,g._register(n),g._register(m),g._contextViewService.setContainer(g._containerDomElement),g}var yr=n(951),br=n(778),_r=(wr.prototype.getId=function(){return this._languageIdentifier.language},wr);function wr(e){this._languageIdentifier=e}var Cr=n(791),Sr=n(1075),Or="text/plain",xr="application/unknown",kr=[],Er=[],Nr=[];function Lr(e,t){void 0===t&&(t=!1);var n,i={id:(n=e).id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:n.userConfigured,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?n.filepattern.toLowerCase():void 0,filepatternOnPath:!!n.filepattern&&0<=n.filepattern.indexOf(Cr.posix.sep)};kr.push(i),i.userConfigured?Nr.push(i):Er.push(i),t&&!i.userConfigured&&kr.forEach((function(e){e.mime===i.mime||e.userConfigured||(i.extension&&e.extension,i.filename&&e.filename,i.filepattern&&e.filepattern,i.firstline&&e.firstline)}))}function Dr(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;0<=s;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var l=a.filepatternOnPath?e:t;Object(Sr.a)(a.filepatternLowercase,l)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&Object(Ot.m)(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}var Mr,Tr,Ir=n(901),Pr=n(571),Ar=(Mr=function(e,t){return(Mr=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){function n(){this.constructor=e}Mr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Rr=Object.prototype.hasOwnProperty,jr=(Ar(Fr,Tr=ot.a),Fr.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=Ir.a.getLanguages();this._registerLanguages(e)},Fr.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var o=i[n];this._registerLanguage(o)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach((function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier})),n.mimetypes.forEach((function(e){t._mimeTypesMap[e]=n.identifier}))})),Pr.a.as(Ni.a.Configuration).registerOverrideIdentifiers(Ir.a.getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},Fr.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t},Fr.prototype._registerLanguage=function(e){var t,n=e.id;if(Rr.call(this._languages,n))t=this._languages[n];else{var i=this._getLanguageId(n);t={identifier:new Qe.r(n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},Fr.prototype._mergeLanguage=function(e,t){var n,i=t.id,o=null;if(Array.isArray(t.mimetypes)&&0<t.mimetypes.length&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var r=0,s=t.extensions;r<s.length;r++){var a=s[r];Lr({id:i,mime:o,extension:a},this._warnOnOverwrite),e.extensions.push(a)}if(Array.isArray(t.filenames))for(var l=0,u=t.filenames;l<u.length;l++){var c=u[l];Lr({id:i,mime:o,filename:c},this._warnOnOverwrite),e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++)Lr({id:i,mime:o,filepattern:h[d]},this._warnOnOverwrite);if("string"==typeof t.firstLine&&0<t.firstLine.length){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var f=new RegExp(p);Ot.I(f)||Lr({id:i,mime:o,firstline:f},this._warnOnOverwrite)}catch(e){Object(rt.e)(e)}}e.aliases.push(i);var g=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(g=0===t.aliases.length?[null]:t.aliases),null!==g)for(var m=0,v=g;m<v.length;m++){var y=v[m];y&&0!==y.length&&e.aliases.push(y)}var b=null!==g&&0<g.length;if(!b||null!==g[0]){var _=(b?g[0]:null)||i;!b&&e.name||(e.name=_)}t.configuration&&e.configurationFiles.push(t.configuration)},Fr.prototype.isRegisteredMode=function(e){return!!Rr.call(this._mimeTypesMap,e)||Rr.call(this._languages,e)},Fr.prototype.getModeIdForLanguageNameLowercase=function(e){return Rr.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},Fr.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return Rr.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return Rr.call(t._languages,e)})):[]},Fr.prototype.getLanguageIdentifier=function(e){if(e===et.b||0===e)return et.a;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return Rr.call(this._languages,t)?this._languages[t].identifier:null},Fr.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=function(e,t){var n;if(e)switch(e.scheme){case Ie.b.file:n=e.fsPath;break;case Ie.b.data:n=Pe.a.parseMetaData(e).get(Pe.a.META_DATA_LABEL);break;default:n=e.path}if(!n)return[xr];n=n.toLowerCase();var i=Object(Cr.basename)(n),o=Dr(n,i,Nr);if(o)return[o,Or];var r=Dr(n,i,Er);if(r)return[r,Or];if(t){var s=function(e){if(Object(Ot.P)(e)&&(e=e.substr(1)),0<e.length)for(var t=kr.length-1;0<=t;t--){var n=kr[t];if(n.firstline){var i=e.match(n.firstline);if(i&&0<i.length)return n.mime}}return null}(t);if(s)return[s,Or]}return[xr]}(e,t);return this.extractModeIds(n.join(","))},Fr);function Fr(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=Tr.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._warnOnOverwrite=t,n._nextLanguageId2=1,n._languageIdToLanguage=[],n._languageToLanguageId=Object.create(null),n._languages={},n._mimeTypesMap={},n._nameMap={},n._lowercaseNameMap={},e&&(n._initializeFromRegistry(),n._register(Ir.a.onDidChangeLanguages((function(e){return n._initializeFromRegistry()})))),n}var Br,Wr,Vr=((Br=function(e,t){return(Br=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){function n(){this.constructor=e}Br(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(zr,Wr=ot.a),zr.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},zr);function zr(e,t){var n=Wr.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._selector=t,n.languageIdentifier=n._selector(),n._register(e((function(){return n._evaluate()}))),n}var Hr=(qr.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},qr.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},qr.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(wt.l)(n,null)},qr.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return Object(wt.l)(t,null)},qr.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},qr.prototype.create=function(e){var t=this;return new Vr(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},qr.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new Vr(this.onLanguagesMaybeChanged,(function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)}))},qr.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||et.a;return this._getOrCreateMode(t.language),t},qr.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},qr.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||et.a;this._instantiatedModes[e]=new _r(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},qr);function qr(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new ve.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new ve.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new jr(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}var Ur,Kr=n(495),Gr=n(948),Yr=(Ur=function(e,t){return(Ur=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){function n(){this.constructor=e}Ur(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zr=function(e,t){return function(n,i){t(n,i,e)}};function Xr(e){return e.toString()}var $r=(Jr.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},Jr.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},Jr.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},Jr);function Jr(e,t,n){this._modelEventListeners=new ot.b,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}var Qr,es=st.d||st.e?1:2,ts=(Yr(ns,Qr=ot.a),ns._readModelOptions=function(e,t){var n=ge.c.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1)}var o=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(o=r),o<1&&(o=1)}var s=ge.c.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=es,l=e.eol;"\r\n"===l?a=2:"\n"===l&&(a=1);var u=ge.c.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(u="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=ge.c.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=ge.c.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:u,largeFileOptimizations:d}},ns.prototype.getCreationOptions=function(e,t,n){var i=this._modelCreationOptionsByLanguageAndResource[e+t];if(!i){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._resourcePropertiesService.getEOL(t,e);i=ns._readModelOptions({editor:o,eol:r},n),this._modelCreationOptionsByLanguageAndResource[e+t]=i}return i},ns.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n],r=this._models[o],s=r.model.getLanguageIdentifier().language,a=r.model.uri,l=e[s+a],u=this.getCreationOptions(s,a,r.model.isForSimpleWidget);ns._setModelOptionsForModel(r.model,u,l)}},ns._setModelOptionsForModel=function(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},ns.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),Qr.prototype.dispose.call(this)},ns.prototype._createModelData=function(e,t,n,i){var o=this,r=this.getCreationOptions(t.language,n,i),s=new Kr.b(e,r,t,n),a=Xr(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var l=new $r(s,(function(e){return o._onWillDispose(e)}),(function(e,t){return o._onDidChangeLanguage(e,t)}));return this._models[a]=l},ns.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),t?(o=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(o.model,t)):o=this._createModelData(e,Ir.b,n,i),this._onModelAdded.fire(o.model),o.model},ns.prototype.setMode=function(e,t){if(t){var n=this._models[Xr(e.uri)];n&&n.setLanguage(t)}},ns.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._models[o].model)}return e},ns.prototype.getModel=function(e){var t=Xr(e),n=this._models[t];return n?n.model:null},ns.prototype._onWillDispose=function(e){var t=Xr(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},ns.prototype._onDidChangeLanguage=function(e,t){var n=t.oldLanguage,i=e.getLanguageIdentifier().language,o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);ns._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldModeId:n})},ns=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Zr(0,xi.a),Zr(1,hn.b),Zr(2,er.c),Zr(3,pn.a)],ns));function ns(e,t,n,i){var o=Qr.call(this)||this;return o._onModelAdded=o._register(new ve.a),o.onModelAdded=o._onModelAdded.event,o._onModelRemoved=o._register(new ve.a),o.onModelRemoved=o._onModelRemoved.event,o._onModelModeChanged=o._register(new ve.a),o.onModelModeChanged=o._onModelModeChanged.event,o._configurationService=e,o._resourcePropertiesService=t,o._models={},o._modelCreationOptionsByLanguageAndResource=Object.create(null),o._configurationServiceSubscription=o._configurationService.onDidChangeConfiguration((function(e){return o._updateModelOptions()})),o._updateModelOptions(),o._register(new os(o,n,e,i)),o}var is,os=(Yr(rs,is=ot.a),rs.SETTING_ID="editor.semanticHighlighting",rs);function rs(e,t,n,i){var o=is.call(this)||this;function r(e){var t=n.getValue(rs.SETTING_ID,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri});return t&&t.enabled}function s(e){o._watchers[e.uri.toString()]=new vs(e,t,o._semanticStyling)}function a(e,t){t.dispose(),delete o._watchers[e.uri.toString()]}return o._configurationService=n,o._watchers=Object.create(null),o._semanticStyling=o._register(new as(t,i)),o._register(e.onModelAdded((function(e){r(e)&&s(e)}))),o._register(e.onModelRemoved((function(e){var t=o._watchers[e.uri.toString()];t&&a(e,t)}))),o._configurationService.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(rs.SETTING_ID))for(var n=0,i=e.getModels();n<i.length;n++){var l=i[n],u=o._watchers[l.uri.toString()];r(l)?u||s(l):u&&a(l,u)}})),o}var ss,as=(Yr(ls,ss=ot.a),ls.prototype.get=function(e){return this._caches.has(e)||this._caches.set(e,new hs(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)},ls);function ls(e,t){var n=ss.call(this)||this;return n._themeService=e,n._logService=t,n._caches=new WeakMap,n._themeService&&n._register(n._themeService.onThemeChange((function(){n._caches=new WeakMap}))),n}var us=function(e,t,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.metadata=n,this.next=null},cs=(ds._nullOutEntries=function(e,t){for(var n=0;n<t;n++)e[n]=null},ds.prototype._hashFunc=function(e,t){return((e<<5)-e+t|0)%this._currentLength},ds.prototype.get=function(e,t){for(var n=this._hashFunc(e,t),i=this._elements[n];i;){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t)return i;i=i.next}return null},ds.prototype.add=function(e,t,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var i=this._elements;this._currentLengthIndex++,this._currentLength=ds._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<ds._SIZES.length?2/3*this._currentLength:0),this._elements=[],ds._nullOutEntries(this._elements,this._currentLength);for(var o=0,r=i;o<r.length;o++)for(var s=r[o];s;){var a=s.next;s.next=null,this._add(s),s=a}}this._add(new us(e,t,n))},ds.prototype._add=function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet);e.next=this._elements[t],this._elements[t]=e},ds._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],ds);function ds(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=ds._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<ds._SIZES.length?2/3*this._currentLength:0),this._elements=[],ds._nullOutEntries(this._elements,this._currentLength)}var hs=(ps.prototype.getMetadata=function(e,t){var n,i=this._hashTable.get(e,t);if(i)n=i.metadata;else{for(var o=this._legend.tokenTypes[e],r=[],s=t,a=0;0<s&&a<this._legend.tokenModifiers.length;a++)1&s&&r.push(this._legend.tokenModifiers[a]),s>>=1;var l=this._themeService.getTheme().getTokenStyleMetadata(o,r);void 0===l?n=2147483647:(void(n=0)!==l.italic&&(n|=1|(l.italic?1:0)<<11),void 0!==l.bold&&(n|=2|(l.bold?2:0)<<11),void 0!==l.underline&&(n|=4|(l.underline?4:0)<<11),l.foreground&&(n|=8|l.foreground<<14),0===n&&(n=2147483647)),this._hashTable.add(e,t,n)}if(this._logService.getLevel()===pn.b.Trace){var u=this._legend.tokenTypes[e],c=t?" "+this._legend.tokenModifiers.filter((function(e,n){return t&1<<n})).join(" "):"";this._logService.trace("tokenStyleMetadata "+(i?"[CACHED] ":"")+u+c+": foreground "+Qe.A.getForeground(n)+", fontStyle "+Qe.A.getFontStyle(n).toString(2))}return n},ps);function ps(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new cs}var fs=(gs.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},gs);function gs(e,t,n){this._provider=e,this.resultId=t,this.data=n}var ms,vs=(Yr(ys,ms=ot.a),ys.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,ms.prototype.dispose.call(this)},ys.prototype._fetchSemanticTokensNow=function(){var e=this;if(!this._currentRequestCancellationTokenSource){var t=this._getSemanticColoringProvider();if(t){this._currentRequestCancellationTokenSource=new me.b;var n=[],i=this._model.onDidChangeContent((function(e){n.push(e)})),o=this._semanticStyling.get(t),r=this._currentResponse&&this._currentResponse.resultId||null;Promise.resolve(t.provideDocumentSemanticTokens(this._model,r,this._currentRequestCancellationTokenSource.token)).then((function(r){e._currentRequestCancellationTokenSource=null,i.dispose(),e._setSemanticTokens(t,r||null,o,n)}),(function(t){t&&"string"==typeof t.message&&-1!==t.message.indexOf("busy")||rt.e(t),e._currentRequestCancellationTokenSource=null,i.dispose(),0<n.length&&(e._fetchSemanticTokens.isScheduled()||e._fetchSemanticTokens.schedule())}))}}},ys._isSemanticTokens=function(e){return e&&!!e.data},ys._isSemanticTokensEdits=function(e){return e&&Array.isArray(e.edits)},ys._copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},ys.prototype._setSemanticTokens=function(e,t,n,i){var o=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&t&&n){if(ys._isSemanticTokensEdits(t)){if(!o)return void this._model.setSemanticTokens(null);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{for(var r=0,s=0,a=t.edits;s<a.length;s++)r+=((p=a[s]).data?p.data.length:0)-p.deleteCount;for(var l=o.data,u=new Uint32Array(l.length+r),c=l.length,d=u.length,h=t.edits.length-1;0<=h;h--){var p,f=c-((p=t.edits[h]).start+p.deleteCount);0<f&&(ys._copy(l,c-f,u,d-f,f),d-=f),p.data&&(ys._copy(p.data,0,u,d-p.data.length,p.data.length),d-=p.data.length),c=p.start}0<c&&ys._copy(l,0,u,0,c),t={resultId:t.resultId,data:u}}}if(ys._isSemanticTokens(t)){this._currentResponse=new fs(e,t.resultId,t.data),l=t.data;for(var g=t.data.length/5|0,m=Math.max(Math.ceil(g/1024),400),v=[],y=0,b=1,_=0;y<g;){var w=y,C=Math.min(w+m,g);if(C<g){for(var S=C;w<S-1&&0===l[5*S];)S--;if(S-1===w){for(var O=C;O+1<g&&0===l[5*O];)O++;C=O}else C=S}u=new Uint32Array(4*(C-w));for(var x=0,k=0;y<C;){var E=5*y,N=l[E],L=l[1+E],D=b+N,M=0===N?_+L:L,T=l[2+E],I=l[3+E],P=l[4+E],A=n.getMetadata(I,P);2147483647!==A&&(0===k&&(k=D),u[x]=D-k,u[x+1]=M,u[x+2]=M+T,u[x+3]=A,x+=4),b=D,_=M,y++}x!==u.length&&(u=u.subarray(0,x));var R=new Gr.a(k,new Gr.c(u));v.push(R)}if(0<i.length){for(var j=0,F=i;j<F.length;j++)for(var B=F[j],W=0,V=v;W<V.length;W++)for(var z=V[W],H=0,q=B.changes;H<q.length;H++){var U=q[H];z.applyEdit(U.range,U.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(v)}else this._model.setSemanticTokens(null)}else this._model.setSemanticTokens(null)},ys.prototype._getSemanticColoringProvider=function(){var e=Qe.l.ordered(this._model);return 0<e.length?e[0]:null},ys);function ys(e,t,n){var i=ms.call(this)||this;return i._isDisposed=!1,i._model=e,i._semanticStyling=n,i._fetchSemanticTokens=i._register(new it.d((function(){return i._fetchSemanticTokensNow()}),300)),i._currentResponse=null,i._currentRequestCancellationTokenSource=null,i._register(i._model.onDidChangeContent((function(e){i._fetchSemanticTokens.isScheduled()||i._fetchSemanticTokens.schedule()}))),i._register(Qe.l.onDidChange((function(e){return i._fetchSemanticTokens.schedule()}))),t&&i._register(t.onThemeChange((function(e){i._setSemanticTokens(null,null,null,[]),i._fetchSemanticTokens.schedule()}))),i._fetchSemanticTokens.schedule(0),i}var bs,_s,ws=((bs=function(e,t){return(bs=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){function n(){this.constructor=e}bs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Cs,_s=ot.a),Cs.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},Cs.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},Cs.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},Cs.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},Cs.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},Cs.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},Cs.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,n=this.listCodeEditors();t<n.length;t++){var i=n[t];if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e},Cs);function Cs(){var e=_s.call(this)||this;return e._onCodeEditorAdd=e._register(new ve.a),e.onCodeEditorAdd=e._onCodeEditorAdd.event,e._onCodeEditorRemove=e._register(new ve.a),e.onCodeEditorRemove=e._onCodeEditorRemove.event,e._onDiffEditorAdd=e._register(new ve.a),e._onDiffEditorRemove=e._register(new ve.a),e._codeEditors=Object.create(null),e._diffEditors=Object.create(null),e}var Ss,Os=(Ss=function(e,t){return(Ss=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){function n(){this.constructor=e}Ss(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),xs=(ks.prototype.ref=function(){this._refCount++},ks.prototype.unref=function(){var e;this._refCount--,0===this._refCount&&(null!==(e=this.styleSheet.parentNode)&&void 0!==e&&e.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},ks);function ks(e,t,n){this._parent=e,this._editorId=t,this.styleSheet=n,this._refCount=0}var Es=(Ns.prototype.ref=function(){},Ns.prototype.unref=function(){},Ns);function Ns(e){this.styleSheet=e}var Ls,Ds=(Os(Ms,Ls=ws),Ms.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new Es(De.w())),this._globalStyleSheet},Ms.prototype._getOrCreateStyleSheet=function(e){if(!e)return this._getOrCreateGlobalStyleSheet();var t=e.getContainerDomNode();if(!De.N(t))return this._getOrCreateGlobalStyleSheet();var n=e.getId();if(!this._editorStyleSheets.has(n)){var i=new xs(this,n,De.w(t));this._editorStyleSheets.set(n,i)}return this._editorStyleSheets.get(n)},Ms.prototype._removeEditorStyleSheets=function(e){this._editorStyleSheets.delete(e)},Ms.prototype.registerDecorationType=function(e,t,n,i){var o=this._decorationOptionProviders.get(e);if(!o){var r=this._getOrCreateStyleSheet(i),s={styleSheet:r.styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};o=new(n?Ts:Ps)(this._themeService,r,s),this._decorationOptionProviders.set(e,o)}o.refCount++},Ms.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},Ms.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},Ms=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,er.c)],Ms));function Ms(e,t){void 0===t&&(t=null);var n=Ls.call(this)||this;return n._decorationOptionProviders=new Map,n._editorStyleSheets=new Map,n._globalStyleSheet=t?new Es(t):null,n._themeService=e,n}var Ts=(Is.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},Is.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},Is);function Is(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new js(3,n,e),this._afterContentRules=new js(4,n,e)}var Ps=(As.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},As.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},As);function As(e,t,n){var i=this;function o(t){var o=new js(t,n,e);if(i._disposables.add(o),o.hasContent)return o.className}this._disposables=new ot.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0,this.className=o(0);var r,s=(r=new js(1,n,e),i._disposables.add(r),r.hasContent?{className:r.className,hasLetterSpacing:r.hasLetterSpacing}:null);s&&(this.inlineClassName=s.className,this.inlineClassNameAffectsLetterSpacing=s.hasLetterSpacing),this.beforeContentClassName=o(3),this.afterContentClassName=o(4),this.glyphMarginClassName=o(2);var a=n.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;var l=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,u=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;void 0===l&&void 0===u||(this.overviewRuler={color:l||u,darkColor:u||l,position:a.overviewRulerLane||Je.d.Center})}var Rs={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},js=(Fs.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(Fs.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Fs.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var o=this._providerArgs.styleSheet.sheet,r=!1;0<e.length&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),0<t.length&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),0<n.length&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},Fs.prototype._removeCSS=function(){De.O(this._unThemedSelector,this._providerArgs.styleSheet)},Fs.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},Fs.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},Fs.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Ot.r(Rs.contentIconPath,De.r(be.a.revive(e.contentIconPath)))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ot.r(Rs.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},Fs.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(Ot.r(Rs.gutterIconPath,De.r(be.a.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(Ot.r(Rs.gutterIconSize,e.gutterIconSize))),t.join("")},Fs.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ot.r("box-sizing: border-box;")),!0)},Fs.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;o<r.length;o++){var s=r[o],a=this.resolveValue(e[s]);"string"==typeof a&&n.push(Ot.r(Rs[s],a))}return n.length!==i},Fs.prototype.resolveValue=function(e){if(Object($e.c)(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},Fs);function Fs(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var o=Bs.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+Bs.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=Bs.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS()})):this._themeListener=null}var Bs=(Ws.getClassName=function(e,t){return"ced-"+e+"-"+t},Ws.getSelector=function(e,t,n){var i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i},Ws);function Ws(){}var Vs,zs,Hs=((Vs=function(e,t){return(Vs=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){function n(){this.constructor=e}Vs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(qs,zs=Ds),qs.prototype.getActiveCodeEditor=function(){return null},qs.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},qs.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===Ie.b.http||n===Ie.b.https)return Object(De.ab)(t.resource.toString()),e}return null}var i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e},qs.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},qs);function qs(){return null!==zs&&zs.apply(this,arguments)||this}var Us=n(490),Ks=function(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o};var Gs=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Ys=(Zs.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Gs);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Us.a.fromHex("#"+e),n)},Zs.prototype.getColorMap=function(){return this._id2color.slice(0)},Zs);function Zs(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}var Xs=($s.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=-1;if("string"==typeof r.fontStyle){s=0;for(var a=r.fontStyle.split(" "),l=0,u=a.length;l<u;l++)switch(a[l]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4}}var c=null;"string"==typeof r.foreground&&(c=r.foreground);var d=null;"string"==typeof r.background&&(d=r.background),t[n++]=new Ks(r.token||"",i,s,c,d)}return t}(e),t)},$s.createFromParsedTokenTheme=function(e,t){return function(e,t){e.sort((function(e,t){var n=function(e,t){return e<t?-1:t<e?1:0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,i="000000",o="ffffff";1<=e.length&&""===e[0].token;){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(i=r.foreground),null!==r.background&&(o=r.background)}for(var s=new Ys,a=0,l=t;a<l.length;a++){var u=l[a];s.getId(u)}for(var c=s.getId(i),d=s.getId(o),h=new Qs(n,c,d),p=new ta(h),f=0,g=e.length;f<g;f++){var m=e[f];p.insert(m.token,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new Xs(s,p)}(e,t)},$s.prototype.getColorMap=function(){return this._colorMap.getColorMap()},$s.prototype._match=function(e){return this._root.match(e)},$s.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var i=this._match(t),o=function(e){var t=e.match(Js);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(t);n=(i.metadata|o<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},$s);function $s(e,t){this._colorMap=e,this._root=t,this._cache=new Map}var Js=/\b(comment|string|regex|regexp)\b/,Qs=(ea.prototype.clone=function(){return new ea(this._fontStyle,this._foreground,this._background)},ea.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},ea);function ea(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}var ta=(na.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");n=-1===i?(t=e,""):(t=e.substring(0,i),e.substring(i+1));var o=this._children.get(t);return void 0!==o?o.match(n):this._mainRule},na.prototype.insert=function(e,t,n,i){if(""!==e){var o,r,s=e.indexOf(".");r=-1===s?(o=e,""):(o=e.substring(0,s),e.substring(s+1));var a=this._children.get(o);void 0===a&&(a=new na(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,n,i)}else this._mainRule.acceptOverwrite(t,n,i)},na);function na(e){this._mainRule=e,this._children=new Map}var ia,oa,ra,sa,aa=n(572),la=n(461),ua={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:((ia={})[la.o]="#FFFFFE",ia[la.x]="#000000",ia[la.F]="#E5EBF1",ia[aa.h]="#D3D3D3",ia[aa.a]="#939393",ia[la.M]="#ADD6FF4D",ia)},ca={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:((oa={})[la.o]="#1E1E1E",oa[la.x]="#D4D4D4",oa[la.F]="#3A3D41",oa[aa.h]="#404040",oa[aa.a]="#707070",oa[la.M]="#ADD6FF26",oa)},da={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:((ra={})[la.o]="#000000",ra[la.x]="#FFFFFF",ra[aa.h]="#FFFFFF",ra[aa.a]="#FFFFFF",ra)},ha=(sa=function(e,t){return(sa=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){function n(){this.constructor=e}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pa="vs",fa="vs-dark",ga="hc-black",ma=Pr.a.as(la.a.ColorContribution),va=Pr.a.as(er.a.ThemingContribution),ya=(Object.defineProperty(ba.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),ba.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},ba.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Us.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=wa(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Us.a.fromHex(n.colors[t]))}this.colors=e}return this.colors},ba.prototype.getColor=function(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)},ba.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=ma.resolveDefaultColor(e,this),this.defaultColors[e]=t)},ba.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(ba.prototype,"type",{get:function(){switch(this.base){case pa:return"light";case ga:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(ba.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=wa(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Xs.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),ba.prototype.getTokenStyleMetadata=function(e,t){},ba);function ba(e,t){var n=(this.themeData=t).base;0<e.length?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}function _a(e){return e===pa||e===fa||e===ga}function wa(e){switch(e){case pa:return ua;case fa:return ca;case ga:return da}}function Ca(e){var t=wa(e);return new ya(e,t)}var Sa,Oa=(ha(xa,Sa=ot.a),xa.prototype.registerEditorContainer=function(e){return De.N(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()},xa.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=De.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),ot.a.None},xa.prototype._registerShadowDomContainer=function(e){var t=this,n=De.w(e);return n.className="monaco-colors",n.innerHTML=this._css,this._styleElements.push(n),{dispose:function(){for(var e=0;e<t._styleElements.length;e++)if(t._styleElements[e]===n)return void t._styleElements.splice(e,1)}}},xa.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!_a(t.base)&&!_a(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new ya(e,t)),_a(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},xa.prototype.getTheme=function(){return this._theme},xa.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(pa),this._theme===t)return t.id;this._theme=t;var i=[],o={},r={addRule:function(e){o[e]||(i.push(e),o[e]=!0)}};va.getThemingParticipants().forEach((function(e){return e(t,r,n._environment)}));var s=t.tokenTheme.getColorMap();return r.addRule(function(e){for(var t=[],n=1,i=e.length;n<i;n++){var o=e[n];t[n]=".mtk"+n+" { color: "+o+"; }"}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}(s)),this._css=i.join("\n"),this._styleElements.forEach((function(e){return e.innerHTML=n._css})),Qe.B.setColorMap(s),this._onThemeChange.fire(t),t.id},xa.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},xa);function xa(){var e=Sa.call(this)||this;return e._onThemeChange=e._register(new ve.a),e.onThemeChange=e._onThemeChange.event,e._environment=Object.create(null),e._knownThemes=new Map,e._knownThemes.set(pa,Ca(pa)),e._knownThemes.set(fa,Ca(fa)),e._knownThemes.set(ga,Ca(ga)),e._css="",e._globalStyleElement=null,e._styleElements=[],e.setTheme(pa),e}var ka,Ea=(ka=function(e,t){return(ka=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){function n(){this.constructor=e}ka(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Na="data-keybinding-context",La=(Da.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},Da.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},Da.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},Da);function Da(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}var Ma,Ta=(Ea(Ia,Ma=La),Ia.prototype.setValue=function(e,t){return!1},Ia.prototype.removeValue=function(e){return!1},Ia.prototype.getValue=function(e){},Ia.INSTANCE=new Ia,Ia);function Ia(){return Ma.call(this,-1,null)||this}var Pa,Aa=(Ea(Ra,Pa=La),Ra.prototype.dispose=function(){this._listener.dispose()},Ra.prototype.getValue=function(e){if(0!==e.indexOf(Ra._keyPrefix))return Pa.prototype.getValue.call(this,e);if(this._values.has(e))return this._values.get(e);var t=e.substr(Ra._keyPrefix.length),n=this._configurationService.getValue(t),i=void 0;switch(typeof n){case"number":case"boolean":case"string":i=n}return this._values.set(e,i),i},Ra.prototype.setValue=function(e,t){return Pa.prototype.setValue.call(this,e,t)},Ra.prototype.removeValue=function(e){return Pa.prototype.removeValue.call(this,e)},Ra._keyPrefix="config.",Ra);function Ra(e,t,n){var i=Pa.call(this,e,null)||this;return i._configurationService=t,i._values=new Map,i._listener=i._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Object(ki.d)(i._values);i._values.clear(),n.fire(new Va(t))}else{for(var o=[],r=0,s=e.affectedKeys;r<s.length;r++){var a="config."+s[r];i._values.has(a)&&(i._values.delete(a),o.push(a))}n.fire(new Va(o))}})),i}var ja=(Fa.prototype.set=function(e){this._service.setContext(this._key,e)},Fa.prototype.reset=function(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},Fa.prototype.get=function(){return this._service.getContextKeyValue(this._key)},Fa);function Fa(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}var Ba=(Wa.prototype.affectsSome=function(e){return e.has(this.key)},Wa);function Wa(e){this.key=e}var Va=(za.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var i=n[t];if(e.has(i))return!0}return!1},za);function za(e){this.keys=e}var Ha=(qa.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++)if(n[t].affectsSome(e))return!0;return!1},qa);function qa(e){this.events=e}var Ua=(Ka.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ja(this,e,t)},Object.defineProperty(Ka.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),Ka.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},Ka.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new $a(this,e)},Ka.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return qi.contextMatchesRules(t,e)},Ka.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},Ka.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Ba(e))}},Ka.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Ba(e))},Ka.prototype.getContext=function(e){return this._isDisposed?Ta.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Na)){var t=e.getAttribute(Na);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))},Ka);function Ka(e){this._onDidChangeContext=new ve.e({merge:function(e){return new Ha(e)}}),this._isDisposed=!1,this._myContextId=e}var Ga,Ya=(Ea(Za,Ga=Ua),Za.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},Za.prototype.getContextValuesContainer=function(e){return!this._isDisposed&&this._contexts.get(e)||Ta.INSTANCE},Za.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new La(t,this.getContextValuesContainer(e))),t},Za.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},Za=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,xi.a)],Za));function Za(e){var t=Ga.call(this,0)||this;t._contexts=new Map,t._toDispose=new ot.b,t._lastContextId=0;var n=new Aa(t._myContextId,e,t._onDidChangeContext);return t._contexts.set(t._myContextId,n),t._toDispose.add(n),t}var Xa,$a=(Ea(Ja,Xa=Ua),Ja.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Na),this._domNode=void 0)},Object.defineProperty(Ja.prototype,"onDidChangeContext",{get:function(){return ve.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),Ja.prototype.getContextValuesContainer=function(e){return this._isDisposed?Ta.INSTANCE:this._parent.getContextValuesContainer(e)},Ja.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)},Ja.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},Ja);function Ja(e,t){var n=Xa.call(this,e.createChildContext())||this;return n._parent=e,t&&(n._domNode=t,n._domNode.setAttribute(Na,String(n._myContextId))),n}Ae.a.registerCommand(Hi.e,(function(e,t,n){e.get(Hi.c).createKey(String(t),n)})),n(1388);var Qa=n(703),el=n(1081),tl=n(826),nl=n(686),il=n(595),ol=(rl.prototype.configure=function(e){this.options=e},rl.prototype.showContextMenu=function(e){var t,n=this,i=e.getActions();i.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(o){var r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),n.options.blockMouse&&(n.block=o.appendChild(Object(De.a)(".context-view-block")));var s=new ot.b,a=e.actionRunner||new Qa.b;return a.onDidBeforeRun(n.onActionRun,n,s),a.onDidRun(n.onDidActionRun,n,s),t=new el.a(o,i,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),s.add(Object(tl.c)(t,n.themeService)),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,s),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,s),Object(nl.a)(window,De.d.BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,s),Object(nl.a)(window,De.d.MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new il.b(e),i=t.target;if(!t.rightButton){for(;i;){if(i===o)return;i=i.parentElement}n.contextViewService.hideContextView(!0)}}}),null,s),Object(ot.e)(s,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Object(De.R)(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},rl.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},rl.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},rl);function rl(e,t,n,i,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}var sl,al,ll=n(821),ul=function(e,t){return function(n,i){t(n,i,e)}},cl=((sl=function(e,t){return(sl=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){function n(){this.constructor=e}sl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(dl,al=ot.a),dl.prototype.configure=function(e){this.contextMenuHandler.configure(e)},dl.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},dl=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([ul(0,ll.a),ul(1,oo.a),ul(2,$o.b),ul(3,Qo.a),ul(4,er.c)],dl));function dl(e,t,n,i,o){var r=al.call(this)||this;return r._onDidContextMenu=r._register(new ve.a),r.contextMenuHandler=new ol(n,e,t,i,o),r}n(1389);var hl,pl=n(896),fl=n(820);function gl(e,t,n){var i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}var ml,vl=((hl=function(e,t){return(hl=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){function n(){this.constructor=e}hl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(yl,ml=ot.a),yl.prototype.setContainer=function(e){var t=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var n=new ot.b;yl.BUBBLE_UP_EVENTS.forEach((function(e){n.add(De.o(t.container,e,(function(e){t.onDOMEvent(e,!1)})))})),yl.BUBBLE_DOWN_EVENTS.forEach((function(e){n.add(De.o(t.container,e,(function(e){t.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=n}},yl.prototype.show=function(e){this.isVisible()&&this.hide(),De.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",De.X(this.view),this.toDisposeOnClean=e.render(this.view)||ot.a.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},yl.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout||st.c&&fl.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},yl.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(De.L(t)){var n=De.C(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var i,o=De.H(this.view),r=De.G(this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,l={offset:e.top-window.pageYOffset,size:e.height,position:0===s?0:1};i=0===a?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var u=gl(window.innerHeight,r,l)+window.pageYOffset;pl.a.intersects({start:u,end:u+r},{start:l.offset,end:l.offset+l.size})&&(i.size=e.width,1===a&&(i.offset=e.left));var c=gl(window.innerWidth,o,i);De.Q(this.view,"top","bottom","left","right"),De.f(this.view,0===s?"bottom":"top"),De.f(this.view,0===a?"left":"right");var d=De.C(this.container);this.view.style.top=u-d.top+"px",this.view.style.left=c-d.left+"px",this.view.style.width="initial"}},yl.prototype.hide=function(e){var t=this.delegate;(this.delegate=null)!=t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),De.J(this.view)},yl.prototype.isVisible=function(){return!!this.delegate},yl.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!De.K(e.target,this.container)&&this.hide())},yl.prototype.dispose=function(){this.hide(),ml.prototype.dispose.call(this)},yl.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],yl.BUBBLE_DOWN_EVENTS=["click"],yl);function yl(e){var t=ml.call(this)||this;return t.container=null,t.delegate=null,t.toDisposeOnClean=ot.a.None,t.toDisposeOnSetContainer=ot.a.None,t.view=De.a(".context-view"),De.J(t.view),t.setContainer(e),t._register(Object(ot.h)((function(){return t.setContainer(null)}))),t}var bl,_l,wl=Object(Jo.c)("layoutService"),Cl=((bl=function(e,t){return(bl=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){function n(){this.constructor=e}bl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Sl,_l=ot.a),Sl.prototype.setContainer=function(e){this.contextView.setContainer(e)},Sl.prototype.showContextView=function(e){this.contextView.show(e)},Sl.prototype.layout=function(){this.contextView.layout()},Sl.prototype.hideContextView=function(e){this.contextView.hide(e)},Sl=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,wl)],Sl));function Sl(e){var t=_l.call(this)||this;return t.layoutService=e,t.contextView=t._register(new vl(e.container)),t.layout(),t._register(e.onLayout((function(){return t.layout()}))),t}var Ol=Object(Jo.c)("dialogService"),xl=n(822),kl=(El.prototype.roots=function(){var e=[];return Object(xl.c)(this._nodes,(function(t){Object(at.f)(t.value.outgoing)&&e.push(t.value)})),e},El.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);(n.outgoing[this._hashFn(t)]=i).incoming[this._hashFn(e)]=n},El.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],Object(xl.c)(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},El.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n={data:e,incoming:Object.create(null),outgoing:Object.create(null)},this._nodes[t]=n),n},El.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},El.prototype.toString=function(){var e=[];return Object(xl.c)(this._nodes,(function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")})),e.join("\n")},El);function El(e){this._hashFn=e,this._nodes=Object.create(null)}var Nl,Ll,Dl=n(1079),Ml=n(895),Tl=function(e,t){function n(){this.constructor=e}Nl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Il=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Pl=(Nl=function(e,t){return(Nl=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"==typeof Proxy),Al=(Tl(Rl,Ll=Error),Rl);function Rl(e){var t=Ll.call(this,"cyclic dependency between services")||this;return t.message=e.toString(),t}var jl=(Fl.prototype.createChild=function(e){return new Fl(e,this._strict,this)},Fl.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=Wl.traceInvocation(e),r=!1;try{var s={get:function(e,n){if(r)throw Object(rt.c)("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,o);if(!i&&n!==Jo.d)throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,Il([s],n))}finally{r=!0,o.stop()}},Fl.prototype.createInstance=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e instanceof Dl.a?(t=Wl.traceCreation(e.ctor),this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=Wl.traceCreation(e),this._createInstance(e,i,t)),t.stop(),n},Fl.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=Jo.b.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),o=[],r=0,s=i;r<s.length;r++){var a=s[r],l=this._getOrCreateServiceInstance(a.id,n);if(!l&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");o.push(l)}var u=0<i.length?i[0].index:t.length;if(t.length!==u){var c=u-t.length;t=0<c?t.concat(new Array(c)):t.slice(0,u)}return new(e.bind.apply(e,Il([void 0],Il(t,o))))},Fl.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof Dl.a)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},Fl.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},Fl.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof Dl.a?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},Fl.prototype._createAndCacheServiceInstance=function(e,t,n){for(var i=new kl((function(e){return e.id.toString()})),o=0,r=[{id:e,desc:t,_trace:n}];r.length;){var s=r.pop();if(i.lookupOrInsertNode(s),150<o++)throw new Al(i);for(var a=0,l=Jo.b.getServiceDependencies(s.desc.ctor);a<l.length;a++){var u=l[a],c=this._getServiceInstanceOrDescriptor(u.id);if(c||u.optional,c instanceof Dl.a){var d={id:u.id,desc:c,_trace:s._trace.branch(u.id,!0)};i.insertEdge(s,d),r.push(d)}}}for(;;){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new Al(i);break}for(var p=0,f=h;p<f.length;p++){var g=f[p].data,m=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,m),i.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},Fl.prototype._createServiceInstanceWithOwner=function(e,t,n,i,o){if(void 0===n&&(n=[]),this._services.get(e)instanceof Dl.a)return this._createServiceInstance(t,n,i,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,o);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},Fl.prototype._createServiceInstance=function(e,t,n,i){var o=this;if(void 0===t&&(t=[]),n&&Pl){var r=new it.b((function(){return o._createInstance(e,t,i)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=r.getValue(),i=n[t];return"function"!=typeof i?i:(i=i.bind(n),e[t]=i)},set:function(e,t,n){return r.getValue()[t]=n,!0}})}return this._createInstance(e,t,i)},Fl);function Fl(e,t,n){void 0===e&&(e=new Ml.a),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(Jo.a,this)}var Bl,Wl=(Vl.traceInvocation=function(e){return Vl._None},Vl.traceCreation=function(e){return Vl._None},Vl.prototype.branch=function(e,t){var n=new Vl(2,e.toString());return this._dep.push([e,t,n]),n},Vl.prototype.stop=function(){var e=Date.now()-this._start;Vl._totals+=e,this.type,this.name,function e(t,n){for(var i=[],o=new Array(t+1).join("\t"),r=0,s=n._dep;r<s.length;r++){var a=s[r],l=a[0],u=a[1],c=a[2];if(u&&c){i.push(o+"CREATES -> "+l);var d=e(t+1,c);d&&i.push(d)}else i.push(o+"uses -> "+l)}return i.join("\n")}(1,this),e.toFixed(2),Vl._totals.toFixed(2)},Vl._None=(Tl(zl,Bl=Vl),zl.prototype.stop=function(){},zl.prototype.branch=function(){return this},new zl),Vl._totals=0,Vl);function Vl(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}function zl(){return Bl.call(this,-1,null)||this}var Hl,ql,Ul=n(898),Kl=n(969),Gl=n(773);(ql=Hl=Hl||{}).get=function(e,t,n){if(e[t])return e[t][n]},ql.set=function(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i},ql.remove=function(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Object(at.f)(e[t])&&delete e[t],!0)};var Yl=(Zl.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},Zl.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString(),r=this._data[o];r&&this._substract(r);var s=this._resourceStats(i);this._add(s),this._data[o]=s}},Zl.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Ie.b.inMemory||e.scheme===Ie.b.walkThrough||e.scheme===Ie.b.walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var o=i[n].severity;o===Gl.c.Error?t.errors+=1:o===Gl.c.Warning?t.warnings+=1:o===Gl.c.Info?t.infos+=1:t.unknowns+=1}return t},Zl.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},Zl.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},Zl);function Zl(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}var Xl=($l.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty($l.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),$l.prototype.remove=function(e,t){for(var n=0,i=t||[];n<i.length;n++){var o=i[n];this.changeOne(e,o,[])}},$l.prototype.changeOne=function(e,t,n){if(Object(wt.p)(n)){var i=Hl.remove(this._byResource,t.toString(),e),o=Hl.remove(this._byOwner,e,t.toString());if(i!==o)throw new Error("invalid marker service state");i&&o&&this._onMarkerChanged.fire([t])}else{for(var r=[],s=0,a=n;s<a.length;s++){var l=a[s],u=$l._toMarker(e,t,l);u&&r.push(u)}Hl.set(this._byResource,t.toString(),e,r),Hl.set(this._byOwner,e,t.toString(),r),this._onMarkerChanged.fire([t])}},$l._toMarker=function(e,t,n){var i=n.code,o=n.severity,r=n.message,s=n.source,a=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a=0<a?a:1,startColumn:l=0<l?l:1,endLineNumber:u=a<=u?u:a,endColumn:c=0<c?c:l,relatedInformation:d,tags:h}},$l.prototype.read=function(e){void 0===e&&(e=Object.create(null));var t=e.owner,n=e.resource,i=e.severities,o=e.take;if((!o||o<0)&&(o=-1),t&&n){if(y=Hl.get(this._byResource,n.toString(),t)){for(var r=[],s=0,a=y;s<a.length;s++){var l=a[s];if($l._accept(l,i)){var u=r.push(l);if(0<o&&u===o)break}}return r}return[]}if(t||n){var c=t?this._byOwner[t]:n?this._byResource[n.toString()]:void 0;if(!c)return[];for(var d in r=[],c)for(var h=0,p=c[d];h<p.length;h++)if(y=p[h],$l._accept(y,i)&&(u=r.push(y),0<o&&u===o))return r;return r}r=[];for(var f in this._byResource)for(var g in this._byResource[f])for(var m=0,v=this._byResource[f][g];m<v.length;m++){var y=v[m];if($l._accept(y,i)){u=r.push(y);if(0<o&&u===o)return r}}return r},$l._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},$l._debouncer=function(e,t){e||($l._dedupeMap=Object.create(null),e=[]);for(var n=0,i=t;n<i.length;n++){var o=i[n];void 0===$l._dedupeMap[o.toString()]&&($l._dedupeMap[o.toString()]=!0,e.push(o))}return e},$l);function $l(){this._onMarkerChanged=new ve.a,this._onMarkerChangedEvent=ve.b.debounce(this._onMarkerChanged.event,$l._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Yl(this)}var Jl=n(775),Ql=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},eu=function(e,t){return function(n,i){t(n,i,e)}},tu=(nu.prototype.createMenu=function(e,t){return new iu(e,this._commandService,t)},nu=Ql([eu(0,Ae.b)],nu));function nu(e){this._commandService=e}var iu=(ou.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},ou.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var e,t=Xo.c.getMenuItems(this._id);t.sort(ou._compareMenuItems);for(var n=0,i=t;n<i.length;n++){var o=i[n],r=o.group||"";e&&e[0]===r||(e=[r,[]],this._menuGroups.push(e)),e[1].push(o),ou._fillInKbExprKeys(o.when,this._contextKeys),Object(Xo.e)(o)&&o.command.precondition&&ou._fillInKbExprKeys(o.command.precondition,this._contextKeys),Object(Xo.e)(o)&&o.command.toggled&&ou._fillInKbExprKeys(o.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},ou.prototype.getActions=function(e){for(var t=[],n=0,i=this._menuGroups;n<i.length;n++){for(var o=i[n],r=o[0],s=[],a=0,l=o[1];a<l.length;a++){var u=l[a];if(this._contextKeyService.contextMatchesRules(u.when)){var c=Object(Xo.e)(u)?new Xo.b(u.command,u.alt,e,this._contextKeyService,this._commandService):new Xo.d(u);s.push(c)}}0<s.length&&t.push([r,s])}return t},ou._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var o=i[n];t.add(o)}},ou._compareMenuItems=function(e,t){var n=e.group,i=t.group;if(n!==i){if(!n)return 1;if(!i)return-1;if("navigation"===n)return-1;if("navigation"===i)return 1;var o=n.localeCompare(i);if(0!==o)return o}var r=e.order||0,s=t.order||0;return r<s?-1:s<r?1:ou._compareTitles(Object(Xo.e)(e)?e.command.title:e.title,Object(Xo.e)(t)?t.command.title:t.title)},ou._compareTitles=function(e,t){var n="string"==typeof e?e:e.value,i="string"==typeof t?t:t.value;return n.localeCompare(i)},ou=Ql([eu(1,Ae.b),eu(2,Hi.c)],ou));function ou(e,t,n){var i=this;this._id=e,this._commandService=t,this._contextKeyService=n,this._onDidChange=new ve.a,this._dispoables=new ot.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(ve.b.debounce(ve.b.filter(Xo.c.onDidChangeMenu,(function(e){return e===i._id})),(function(){}),50)(this._build,this)),this._dispoables.add(ve.b.debounce(this._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(i._contextKeys)}),50)((function(e){return e&&i._onDidChange.fire(void 0)}),this))}var ru,su=n(1096),au=(ru=function(e,t){return(ru=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){function n(){this.constructor=e}ru(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lu=function(e,t){return function(n,i){t(n,i,e)}};function uu(e){return e.toString()}var cu,du=(au(hu,cu=ot.a),hu.prototype.update=function(e,t){var n=Object(ki.d)(this._markersData);this._markersData.clear();for(var i=this.model.deltaDecorations(n,t),o=0;o<i.length;o++)this._markersData.set(i[o],e[o])},hu.prototype.getMarker=function(e){return this._markersData.get(e.id)},hu);function hu(e){var t=cu.call(this)||this;return t.model=e,t._markersData=new Map,t._register(Object(ot.h)((function(){t.model.deltaDecorations(Object(ki.d)(t._markersData),[]),t._markersData.clear()}))),t}var pu,fu=(au(gu,pu=ot.a),gu.prototype.dispose=function(){pu.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},gu.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(uu(e.uri));return n?Object(at.o)(n.getMarker(t)):null},gu.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(uu(e));n&&t._updateDecorations(n)}))},gu.prototype._onModelAdded=function(e){var t=new du(e);this._markerDecorations.set(uu(e.uri),t),this._updateDecorations(t)},gu.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(uu(e.uri));n&&(n.dispose(),this._markerDecorations.delete(uu(e.uri))),e.uri.scheme!==Ie.b.inMemory&&e.uri.scheme!==Ie.b.internal&&e.uri.scheme!==Ie.b.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map((function(e){return e.owner})).forEach((function(n){return t._markerService.remove(n,[e.uri])}))},gu.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,i),this._onDidChangeMarker.fire(e.model)},gu.prototype._createDecorationRange=function(e,t){var n=we.a.lift(t);if(t.severity!==Gl.c.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new we.a(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new we.a(n.startLineNumber,o-1,n.endLineNumber,o):new we.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new we.a(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n},gu.prototype._createDecorationOption=function(e){var t,n,i,o=void 0,r=void 0;switch(e.severity){case Gl.c.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Gl.c.Warning:t="squiggly-warning",o=Object(er.f)(aa.r),n=20,i={color:Object(er.f)(la.Jb),position:Je.c.Inline};break;case Gl.c.Info:t="squiggly-info",o=Object(er.f)(aa.q),n=10;break;case Gl.c.Error:default:t="squiggly-error",o=Object(er.f)(aa.p),n=30,i={color:Object(er.f)(la.Gb),position:Je.c.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:o,position:Je.d.Right},minimap:i,zIndex:n,inlineClassName:r}},gu.prototype._hasMarkerTag=function(e,t){return!!e.tags&&0<=e.tags.indexOf(t)},gu=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([lu(0,dn.a),lu(1,Gl.b)],gu));function gu(e,t){var n=pu.call(this)||this;return n._markerService=t,n._onDidChangeMarker=n._register(new ve.a),n._markerDecorations=new Map,e.getModels().forEach((function(e){return n._onModelAdded(e)})),n._register(e.onModelAdded(n._onModelAdded,n)),n._register(e.onModelRemoved(n._onModelRemoved,n)),n._register(n._markerService.onMarkerChanged(n._handleMarkerChange,n)),n}var mu,vu,yu=n(792),bu=function(e,t){return function(n,i){t(n,i,e)}},_u=((mu=function(e,t){return(mu=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){function n(){this.constructor=e}mu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(wu,vu=ot.a),Object.defineProperty(wu.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),wu.prototype.isScreenReaderOptimized=function(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport},wu.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},wu=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([bu(0,Hi.c),bu(1,xi.a)],wu));function wu(e,t){var n=vu.call(this)||this;function i(){return n._accessibilityModeEnabledContext.set(n.isScreenReaderOptimized())}return n._contextKeyService=e,n._configurationService=t,n._accessibilitySupport=0,n._onDidChangeScreenReaderOptimized=new ve.a,n._accessibilityModeEnabledContext=tr.a.bindTo(n._contextKeyService),n._register(n._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&(i(),n._onDidChangeScreenReaderOptimized.fire())}))),i(),n.onDidChangeScreenReaderOptimized((function(){return i()})),n}var Cu,Su,Ou=(Cu=function(e,t){return(Cu=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){function n(){this.constructor=e}Cu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){var t=new Ml.a,n=(Object.defineProperty(i.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),i.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},i);function i(e,t){this._serviceId=e,this._factory=t,this._value=null}e.LazyStaticService=n;var o=[];function r(e,t){var i=new n(e,t);return o.push(i),i}e.init=function(e){for(var t=new Ml.a,n=0,i=Object(yu.a)();n<i.length;n++){var r=i[n],s=r[0],a=r[1];t.set(s,a)}for(var l in e)e.hasOwnProperty(l)&&t.set(Object(Jo.c)(l),e[l]);o.forEach((function(n){return t.set(n.id,n.get(e))}));var u=new jl(t,!0);return t.set(Jo.a,u),[t,u]},e.instantiationService=r(Jo.a,(function(){return new jl(t,!0)}));var s=new xo;e.configurationService=r(xi.a,(function(){return s})),e.resourceConfigurationService=r(hn.a,(function(){return new Eo(s)})),e.resourcePropertiesService=r(hn.b,(function(){return new Lo(s)})),e.contextService=r(ro.a,(function(){return new Io})),e.labelService=r(Ul.a,(function(){return new Fo})),e.telemetryService=r(ll.a,(function(){return new Mo})),e.dialogService=r(Ol,(function(){return new mo})),e.notificationService=r(oo.a,(function(){return new vo})),e.markerService=r(Gl.b,(function(){return new Xl})),e.modeService=r(br.a,(function(e){return new Hr})),e.standaloneThemeService=r(Zo.a,(function(){return new Oa})),e.logService=r(pn.a,(function(){return new pn.c})),e.modelService=r(dn.a,(function(t){return new ts(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t))})),e.markerDecorationsService=r(su.a,(function(t){return new fu(e.modelService.get(t),e.markerService.get(t))})),e.codeEditorService=r(Le.a,(function(t){return new Hs(e.standaloneThemeService.get(t))})),e.editorProgressService=r(ir.a,(function(){return new fo})),e.storageService=r(Jl.a,(function(){return new Jl.b})),e.editorWorkerService=r(tt.a,(function(t){return new bn(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))}(Su=Su||{});var xu,ku=(Ou(Eu,xu=ot.a),Eu.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},Eu.prototype.set=function(e,t){this._serviceCollection.set(e,t)},Eu.prototype.has=function(e){return this._serviceCollection.has(e)},Eu);function Eu(e,t){var n=xu.call(this)||this,i=Su.init(t),o=i[0],r=i[1];function s(e,i){var o=null;return t&&(o=t[e.toString()]),o=o||i(),n._serviceCollection.set(e,o),o}n._serviceCollection=o,n._instantiationService=r;var a=n.get(xi.a),l=n.get(oo.a),u=n.get(ll.a),c=n.get(er.c),d=s(Hi.c,(function(){return n._register(new Ya(a))}));s(tr.b,(function(){return new _u(d,a)})),s(Kl.a,(function(){return new Kl.b(c)}));var h=s(Ae.b,(function(){return new bo(n._instantiationService)})),p=s(Qo.a,(function(){return n._register(new Co(d,h,u,l,e))})),f=s(wl,(function(){return new Wo(e)})),g=s($o.b,(function(){return n._register(new Cl(f))}));return s($o.a,(function(){var e=new cl(u,l,g,p,c);return e.configure({blockMouse:!1}),n._register(e)})),s(Xo.a,(function(){return new tu(h)})),s(yr.a,(function(){return new Ro(Su.modelService.get(dn.a))})),n}var Nu=n(707);function Lu(e,t,n){var i=new ku(e,t),o=null;i.has(nt.a)||(o=new ho(Su.modelService.get()),i.set(nt.a,o)),i.has(Re.a)||i.set(Re.a,new Ke(i.get(Le.a),i.get(Ae.b)));var r=n(i);return o&&o.setEditor(r),r}function Du(e,t,n){return Su.modelService.get().createModel(e,t,n)}function Mu(e,t){return"boolean"==typeof e?e:t}function Tu(e,t){return"string"==typeof e?e:t}function Iu(e,t){void 0===t&&(t=!1),t&&(e=e.map((function(e){return e.toLowerCase()})));var n=function(e){for(var t={},n=0,i=e;n<i.length;n++)t[i[n]]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function Pu(e,t){for(var n=0;0<=t.indexOf("@")&&n<5;)n++,t=t.replace(/@(\w+)/g,(function(n,i){var o="";if("string"==typeof e[i])o=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?Zn(e,"language definition does not contain attribute '"+i+"', used at: "+t):Zn(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source}return Kn(o)?"":"(?:"+o+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function Au(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,l="~",u=r;if(r&&0!==r.length?/^\w*$/.test(u)?l="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=s[1],u=s[2]):(l="!=",u=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(u))if("@"===l||"!@"===l){var c=e[u];if(!c)throw Zn(e,"the @ match target '"+u+"' is not defined, in rule: "+t);if(!function(e,t){if(t&&Array.isArray(t)){for(var n=0,i=t;n<i.length;n++)if(!e(i[n]))return;return 1}}((function(e){return"string"==typeof e}),c))throw Zn(e,"the @ match target '"+u+"' must be an array of strings, in rule: "+t);var d=Iu(c,e.ignoreCase);a=function(e){return"@"===l?d(e):!d(e)}}else if("~"===l||"!~"===l)if(u.indexOf("$")<0){var h=Pu(e,"^"+u+"$");a=function(e){return"~"===l?h.test(e):!h.test(e)}}else a=function(t,n,i,o){return Pu(e,"^"+Xn(e,u,n,i,o)+"$").test(t)};else if(u.indexOf("$")<0){var p=Gn(e,u);a=function(e){return"=="===l?e===p:e!==p}}else{var f=Gn(e,u);a=function(t,n,i,o){var r=Xn(e,f,n,i,o);return"=="===l?t===r:t!==r}}else{var g=Iu(u.split("|"),e.ignoreCase);a=function(e){return"~"===l?g(e):!g(e)}}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var r=function(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(100<=i){i-=100;var o=n.split(".");if(o.unshift(n),i<o.length)return o[i]}return null}(e,t,n,o);return a(r||"",e,t,n,i)}}}var Ru=(ju.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw Zn(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=0<n.length&&"^"===n[0],this.name=this.name+": "+n,this.regex=Pu(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},ju.prototype.setAction=function(e,t){this.action=function e(t,n,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)throw Zn(t,"a 'token' attribute must be of type string, in rule: "+n);var o={token:i.token};if(0<=i.token.indexOf("$")&&(o.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)o.bracket=1;else{if("@close"!==i.bracket)throw Zn(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n);o.bracket=-1}if(i.next){if("string"!=typeof i.next)throw Zn(t,"the next state must be a string value in rule: "+n);var r=i.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!function(e,t){for(var n=t;n&&0<n.length;){if(e.stateNames[n])return 1;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}}(t,Xn(t,r,"",[],""))))throw Zn(t,"the next state '"+i.next+"' is not defined in rule: "+n);o.next=r}return"number"==typeof i.goBack&&(o.goBack=i.goBack),"string"==typeof i.switchTo&&(o.switchTo=i.switchTo),"string"==typeof i.log&&(o.log=i.log),"string"==typeof i.nextEmbedded&&(o.nextEmbedded=i.nextEmbedded,t.usesEmbedded=!0),o}if(Array.isArray(i)){for(var s=[],a=0,l=i.length;a<l;a++)s[a]=e(t,n,i[a]);return{group:s}}if(i.cases){var u=[];for(var c in i.cases)if(i.cases.hasOwnProperty(c)){var d=e(t,n,i.cases[c]);"@default"===c||"@"===c||""===c?u.push({test:void 0,value:d,name:c}):"@eos"===c?u.push({test:function(e,t,n,i){return i},value:d,name:c}):u.push(Au(t,n,c,d))}var h=t.defaultToken;return{test:function(e,t,n,i){for(var o=0,r=u;o<r.length;o++){var s=r[o];if(!s.test||s.test(e,t,n,i))return s.value}return h}}}throw Zn(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n)}return{token:""}}(e,this.name,t)},ju);function ju(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}var Fu=(Bu.prototype.getInitialState=function(){return this._actual.getInitialState()},Bu.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},Bu.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new Se.c(n.tokens,n.endState)},Bu);function Bu(e){this._actual=e}var Wu=(Vu.prototype.getInitialState=function(){return this._actual.getInitialState()},Vu.prototype._toClassicTokens=function(e,t,n){for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],l=a.startIndex;0===r?l=0:l<o&&(l=o),i[r]=new Se.a(l+n,a.scopes,t),o=l}return i},Vu.prototype.tokenize=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toClassicTokens(o.tokens,this._languageIdentifier.language,n);return i=o.endState.equals(t)?t:o.endState,new Se.b(r,i)},Vu.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,o=[],r=0,s=0,a=0,l=e.length;a<l;a++){var u=e[a],c=i.match(n,u.scopes);if(!(0<r&&o[r-1]===c)){var d=u.startIndex;0===a?d=0:d<s&&(d=s),o[r++]=d+t,o[r++]=c,s=d}}var h=new Uint32Array(r);for(a=0;a<r;a++)h[a]=o[a];return h},Vu.prototype.tokenize2=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toBinaryTokens(o.tokens,n);return i=o.endState.equals(t)?t:o.endState,new Se.c(r,i)},Vu);function Vu(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}function zu(e){return e&&"function"==typeof e.then}n.d(t,"CancellationTokenSource",(function(){return Uu})),n.d(t,"Emitter",(function(){return Ku})),n.d(t,"KeyCode",(function(){return Gu})),n.d(t,"KeyMod",(function(){return Yu})),n.d(t,"Position",(function(){return Zu})),n.d(t,"Range",(function(){return Xu})),n.d(t,"Selection",(function(){return $u})),n.d(t,"SelectionDirection",(function(){return Ju})),n.d(t,"MarkerSeverity",(function(){return Qu})),n.d(t,"MarkerTag",(function(){return ec})),n.d(t,"Uri",(function(){return tc})),n.d(t,"Token",(function(){return nc})),n.d(t,"editor",(function(){return ic})),n.d(t,"languages",(function(){return oc}));var Hu=self;ge.e.wrappingIndent.defaultValue=0,ge.e.glyphMargin.defaultValue=!1,ge.e.autoIndent.defaultValue=3,ge.e.overviewRulerLanes.defaultValue=2;var qu=ke();qu.editor={create:function(e,t,n){return Lu(e,n||{},(function(n){return new pr(e,t,n,n.get(Jo.a),n.get(Le.a),n.get(Ae.b),n.get(Hi.c),n.get(Qo.a),n.get($o.b),n.get(Zo.a),n.get(oo.a),n.get(xi.a),n.get(tr.b))}))},onDidCreateEditor:function(e){return Su.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))},createDiffEditor:function(e,t,n){return Lu(e,n||{},(function(n){return new mr(e,t,n,n.get(Jo.a),n.get(Hi.c),n.get(Qo.a),n.get($o.b),n.get(tt.a),n.get(Le.a),n.get(Zo.a),n.get(oo.a),n.get(xi.a),n.get($o.a),n.get(ir.a),null)}))},createDiffNavigator:function(e,t){return new Ze.a(e,t)},createModel:function(e,t,n){if(e=e||"",t)return Du(e,Su.modeService.get().create(t),n);var i=e.indexOf("\n"),o=e;return-1!==i&&(o=e.substring(0,i)),Du(e,Su.modeService.get().createByFilepathOrFirstLine(n||null,o),n)},setModelLanguage:function(e,t){Su.modelService.get().setMode(e,Su.modeService.get().create(t))},setModelMarkers:function(e,t,n){e&&Su.markerService.get().changeOne(t,e.uri,n)},getModelMarkers:function(e){return Su.markerService.get().read(e)},getModels:function(){return Su.modelService.get().getModels()},getModel:function(e){return Su.modelService.get().getModel(e)},onDidCreateModel:function(e){return Su.modelService.get().onModelAdded(e)},onWillDisposeModel:function(e){return Su.modelService.get().onModelRemoved(e)},onDidChangeModelLanguage:function(e){return Su.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))},createWebWorker:function(e){return t=Su.modelService.get(),new Fn(t,e);var t},colorizeElement:function(e,t){return gi.colorizeElement(Su.standaloneThemeService.get(),Su.modeService.get(),e,t)},colorize:function(e,t,n){return gi.colorize(Su.modeService.get(),e,t,n)},colorizeModelLine:function(e,t,n){return void 0===n&&(n=4),gi.colorizeModelLine(e,t,n)},tokenize:function(e,t){Su.modeService.get().triggerMode(t);for(var n,i=(n=t,Qe.B.get(n)||{getInitialState:function(){return et.c},tokenize:function(e,t,i){return Object(et.d)(n,e,t,i)}}),o=e.split(/\r\n|\r|\n/),r=[],s=i.getInitialState(),a=0,l=o.length;a<l;a++){var u=o[a],c=i.tokenize(u,s,0);r[a]=c.tokens,s=c.endState}return r},defineTheme:function(e,t){Su.standaloneThemeService.get().defineTheme(e,t)},setTheme:function(e){Su.standaloneThemeService.get().setTheme(e)},remeasureFonts:function(){Object(Nu.b)()},AccessibilitySupport:i,ContentWidgetPositionPreference:p,CursorChangeReason:g,DefaultEndOfLine:v,EditorAutoIndentStrategy:w,EditorOption:S,EndOfLinePreference:x,EndOfLineSequence:E,MinimapPosition:j,MouseTargetType:B,OverlayWidgetPositionPreference:V,OverviewRulerLane:H,RenderLineNumbersType:U,RenderMinimap:G,ScrollbarVisibility:$,ScrollType:Z,TextEditorCursorBlinkingStyle:ae,TextEditorCursorStyle:ue,TrackedRangeStickiness:de,WrappingIndent:pe,ConfigurationChangedEvent:ge.a,BareFontInfo:Xe.a,FontInfo:Xe.b,TextModelResolvedOptions:Je.e,FindMatch:Je.b,EditorType:$e.a,EditorOptions:ge.e},qu.languages={register:function(e){Ir.a.registerLanguage(e)},getLanguages:function(){var e=[];return e.concat(Ir.a.getLanguages())},onLanguage:function(e,t){var n=Su.modeService.get().onDidCreateMode((function(i){i.getId()===e&&(n.dispose(),t())}));return n},getEncodedLanguageId:function(e){var t=Su.modeService.get().getLanguageIdentifier(e);return t?t.id:0},setLanguageConfiguration:function(e,t){var n=Su.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return _t.a.register(n,t)},setTokensProvider:function(e,t){var n=Su.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);function i(e){return"tokenizeEncoded"in e?new Fu(e):new Wu(Su.standaloneThemeService.get(),n,e)}return zu(t)?Qe.B.registerPromise(e,t.then((function(e){return i(e)}))):Qe.B.register(e,i(t))},setMonarchTokensProvider:function(e,t){function n(t){return n=Su.modeService.get(),i=Su.standaloneThemeService.get(),r=function(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"==typeof t.start?t.start:null,n.ignoreCase=Mu(t.ignoreCase,!1),n.tokenPostfix=Tu(t.tokenPostfix,"."+n.languageId),n.defaultToken=Tu(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function o(e,r,s){for(var a=0,l=s;a<l.length;a++){var u=l[a],c=u.include;if(c){if("string"!=typeof c)throw Zn(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw Zn(n,"include target '"+c+"' is not defined at: "+e);o(e+"."+c,r,t.tokenizer[c])}else{var d=new Ru(e);if(Array.isArray(u)&&1<=u.length&&u.length<=3)if(d.setRegex(i,u[0]),3<=u.length)if("string"==typeof u[1])d.setAction(i,{token:u[1],next:u[2]});else{if("object"!=typeof u[1])throw Zn(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=u[1];h.next=u[2],d.setAction(i,h)}else d.setAction(i,u[1]);else{if(!u.regex)throw Zn(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);u.name&&"string"==typeof u.name&&(d.name=u.name),u.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Mu(u.matchOnlyAtLineStart,!1)),d.setRegex(i,u.regex),d.setAction(i,u.action)}r.push(d)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw Zn(n,"a language definition must define the 'tokenizer' attribute as an object");for(var r in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){n.start||(n.start=r);var s=t.tokenizer[r];n.tokenizer[r]=new Array,o("tokenizer."+r,n.tokenizer[r],s)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Zn(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var a=[],l=0,u=t.brackets;l<u.length;l++){var c=u[l];if(c&&Array.isArray(c)&&3===c.length&&(c={token:c[2],open:c[0],close:c[1]}),c.open===c.close)throw Zn(n,"open and close brackets in a 'brackets' attribute must be different: "+c.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof c.open||"string"!=typeof c.token||"string"!=typeof c.close)throw Zn(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:c.token+n.tokenPostfix,open:Gn(n,c.open),close:Gn(n,c.close)})}return n.brackets=a,n.noThrow=!0,n}(o=e,t),new hi(n,i,o,r);var n,i,o,r}return zu(t)?Qe.B.registerPromise(e,t.then((function(e){return n(e)}))):Qe.B.register(e,n(t))},registerReferenceProvider:function(e,t){return Qe.u.register(e,t)},registerRenameProvider:function(e,t){return Qe.v.register(e,t)},registerCompletionItemProvider:function(e,t){return Qe.d.register(e,t)},registerSignatureHelpProvider:function(e,t){return Qe.x.register(e,t)},registerHoverProvider:function(e,t){return Qe.p.register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then((function(e){if(e)return!e.range&&o&&(e.range=new we.a(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new we.a(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return Qe.m.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Qe.i.register(e,t)},registerDefinitionProvider:function(e,t){return Qe.f.register(e,t)},registerImplementationProvider:function(e,t){return Qe.q.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Qe.C.register(e,t)},registerCodeLensProvider:function(e,t){return Qe.b.register(e,t)},registerCodeActionProvider:function(e,t){return Qe.a.register(e,{provideCodeActions:function(e,n,i,o){var r=Su.markerService.get().read({resource:e.uri}).filter((function(e){return we.a.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})},registerDocumentFormattingEditProvider:function(e,t){return Qe.g.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return Qe.j.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return Qe.t.register(e,t)},registerLinkProvider:function(e,t){return Qe.s.register(e,t)},registerColorProvider:function(e,t){return Qe.c.register(e,t)},registerFoldingRangeProvider:function(e,t){return Qe.o.register(e,t)},registerDeclarationProvider:function(e,t){return Qe.e.register(e,t)},registerSelectionRangeProvider:function(e,t){return Qe.w.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return Qe.l.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return Qe.k.register(e,t)},DocumentHighlightKind:b,CompletionItemKind:a,CompletionItemTag:u,CompletionItemInsertTextRule:r,SymbolKind:ie,SymbolTag:re,IndentAction:L,CompletionTriggerKind:d,SignatureHelpTriggerKind:te,FoldingRangeKind:Qe.n};var Uu=qu.CancellationTokenSource,Ku=qu.Emitter,Gu=qu.KeyCode,Yu=qu.KeyMod,Zu=qu.Position,Xu=qu.Range,$u=qu.Selection,Ju=qu.SelectionDirection,Qu=qu.MarkerSeverity,ec=qu.MarkerTag,tc=qu.Uri,nc=qu.Token,ic=qu.editor,oc=qu.languages;Hu.monaco=qu,void 0!==Hu.require&&"function"==typeof Hu.require.config&&Hu.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(785)),o=a(n(1)),r=a(n(0)),s=n(1150);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=d(e).call(this,t),n=!i||"object"!==l(i)&&"function"!=typeof i?h(this):i,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.language,r=t.theme,s=t.height,a=t.options,l=t.width,u=this.editor,c=u.getModel();null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:n}]),this.editor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==o&&i.editor.setModelLanguage(c,o),e.theme!==r&&i.editor.setTheme(r),!u||l===e.width&&s===e.height||u.layout(),e.options!==a&&u.updateOptions(a)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel();e&&e.dispose()}this._subscription&&this._subscription.dispose()}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.language,o=t.theme,r=t.options,s=t.overrideServices;this.containerElement&&(Object.assign(r,this.editorWillMount()),this.editor=i.editor.create(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:e,language:n},r,{},o?{theme:o}:{}),s),this.editorDidMount(this.editor))}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(i)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i),this._subscription=e.onDidChangeModelContent((function(n){t.__prevent_trigger_change_event||t.props.onChange(e.getValue(),n)}))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i={width:(0,s.processSize)(t),height:(0,s.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:i,className:"react-monaco-editor-container"})}}])&&c(t.prototype,n),e}();g.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},g.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var m=g;t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(785)),o=a(n(1)),r=a(n(0)),s=n(1150);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=d(e).call(this,t),n=!i||"object"!==l(i)&&"function"!=typeof i?h(this):i,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.language,o=t.theme,r=t.height,s=t.options,a=t.width,l=this.editor.getModel(),u=l.original,c=l.modified;this.props.original!==u.getValue()&&u.setValue(this.props.original),null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.modifiedEditor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:this.props.value}]),this.editor.modifiedEditor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==n&&(i.editor.setModelLanguage(u,n),i.editor.setModelLanguage(c,n)),e.theme!==o&&i.editor.setTheme(o),!this.editor||a===e.width&&r===e.height||this.editor.layout(),e.options!==s&&this.editor.updateOptions(s)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(i)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i);var n=e.getModel().modified;this._subscription=n.onDidChangeContent((function(e){t.__prevent_trigger_change_event||t.props.onChange(n.getValue(),e)}))}},{key:"initModels",value:function(e,t){var n=this.props.language,o=i.editor.createModel(t,n),r=i.editor.createModel(e,n);this.editor.setModel({original:o,modified:r})}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.original,o=t.theme,r=t.options,s=t.overrideServices;this.containerElement&&(this.editorWillMount(),this.editor=i.editor.createDiffEditor(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},o?{theme:o}:{}),s),this.initModels(e,n),this.editorDidMount(this.editor))}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}this._subscription&&this._subscription.dispose()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i={width:(0,s.processSize)(t),height:(0,s.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:i,className:"react-monaco-editor-container"})}}])&&c(t.prototype,n),e}();g.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),original:o.default.string,value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},g.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var m=g;t.default=m},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(1523);var i=n(0),o=n.n(i),r=n(28);t.a=function(e){var t=e.userInfo,n=t.image_url,i=t.name;return o.a.createElement("div",{className:"avator_nicker"},o.a.createElement("img",{style:{display:n?"inline-block":"none"},alt:"\u7528\u6237\u5934\u50cf",className:"student_img",src:Object(r.L)("images/".concat(n)||!1)}),o.a.createElement("span",{className:"student_nicker"},i||""))}},function(e,t,n){},,,,,,,,,,,,,,,,,,,,function(e,t,n){var i,o;void 0===(o="function"==typeof(i=function(){var e,t,n={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},r={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(i){var o,a,l,u;if(e.isNumeral(i))o=i.value();else if(0===i||void 0===i)o=0;else if(null===i||t.isNaN(i))o=null;else if("string"==typeof i)if(r.zeroFormat&&i===r.zeroFormat)o=0;else if(r.nullFormat&&i===r.nullFormat||!i.replace(/[^0-9]+/g,"").length)o=null;else{for(a in n)if((u="function"==typeof n[a].regexps.unformat?n[a].regexps.unformat():n[a].regexps.unformat)&&i.match(u)){l=n[a].unformat;break}o=(l=l||e._.stringToNumber)(i)}else o=Number(i)||null;return new s(i,o)}).version="2.0.6",e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,o){var r,s,a,l,u,c,d,h,p=i[e.options.currentLocale],f=!1,g=!1,m="",v="",y=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(f=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(s=!!(s=n.match(/a(k|m|b|t)?/))&&s[1],e._.includes(n," a")&&(m=" "),n=n.replace(new RegExp(m+"a[kmbt]?"),""),1e12<=a&&!s||"t"===s?(m+=p.abbreviations.trillion,t/=1e12):a<1e12&&1e9<=a&&!s||"b"===s?(m+=p.abbreviations.billion,t/=1e9):a<1e9&&1e6<=a&&!s||"m"===s?(m+=p.abbreviations.million,t/=1e6):(a<1e6&&1e3<=a&&!s||"k"===s)&&(m+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(g=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],u=n.split(".")[1],d=n.indexOf(","),r=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(l=(v=e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),e._.toFixed(t,u[0].length+u[1].length,o,u[1].length)):e._.toFixed(t,u.length,o)).split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",g&&0===Number(v.slice(1))&&(v="")):l=e._.toFixed(t,0,o),m&&!s&&1e3<=Number(l)&&m!==p.abbreviations.trillion)switch(l=String(Number(l)/1e3),m){case p.abbreviations.thousand:m=p.abbreviations.million;break;case p.abbreviations.million:m=p.abbreviations.billion;break;case p.abbreviations.billion:m=p.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<r)for(var b=r-l.length;0<b;b--)l="0"+l;return-1<d&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(l=""),h=l+v+(m||""),f?h=(f&&y?"(":"")+h+(f&&y?")":""):0<=c?h=0===c?(y?"-":"+")+h:h+(y?"-":"+"):y&&(h="-"+h),h},stringToNumber:function(e){var t,n,o,s=i[r.currentLocale],a=e,l={thousand:3,million:6,billion:9,trillion:12};if(r.zeroFormat&&e===r.zeroFormat)n=0;else if(r.nullFormat&&e===r.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==s.delimiters.decimal&&(e=e.replace(/\./g,"").replace(s.delimiters.decimal,".")),l)if(o=new RegExp("[^a-zA-Z]"+s.abbreviations[t]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),a.match(o)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return"number"==typeof e&&isNaN(e)})),includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t,n){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var i,o=Object(e),r=o.length>>>0,s=0;if(3===arguments.length)i=n;else{for(;s<r&&!(s in o);)s++;if(r<=s)throw new TypeError("Reduce of empty array with no initial value");i=o[s++]}for(;s<r;s++)s in o&&(i=t(i,o[s],s,o));return i},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var i=t.multiplier(n);return i<e?e:i}),1)},toFixed:function(e,t,n,i){var o,r,s,a,l=e.toString().split("."),u=t-(i||0);return o=2===l.length?Math.min(Math.max(l[1].length,u),t):u,s=Math.pow(10,o),a=(n(e+"e+"+o)/s).toFixed(o),t-o<i&&(r=new RegExp("\\.?0{1,"+(i-(t-o))+"}$"),a=a.replace(r,"")),a}},e.options=r,e.formats=n,e.locales=i,e.locale=function(e){return e&&(r.currentLocale=e.toLowerCase()),r.currentLocale},e.localeData=function(e){if(!e)return i[r.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)r[e]=o[e]},e.zeroFormat=function(e){r.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){r.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){r.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n},e.validate=function(t,n){var i,o,r,s,a,l,u,c;if("string"!=typeof t&&(t+="",console.warn),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return r=u.currency.symbol,a=u.abbreviations,i=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(c=t.match(/^[^\d]+/))||(t=t.substr(1),c[0]===r))&&(null===(c=t.match(/[^\d]+$/))||(t=t.slice(0,-1),c[0]===a.thousand||c[0]===a.million||c[0]===a.billion||c[0]===a.trillion))&&(l=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!(2<(s=t.split(i)).length)&&(s.length<2?!!s[0].match(/^\d+.*\d$/)&&!s[0].match(l):1===s[0].length?!!s[0].match(/^\d+$/)&&!s[0].match(l)&&!!s[1].match(/^\d+$/):!!s[0].match(/^\d+.*\d$/)&&!s[0].match(l)&&!!s[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,i){var o,s,a,l=this._value,u=t||r.defaultFormat;if(i=i||Math.round,0===l&&null!==r.zeroFormat)s=r.zeroFormat;else if(null===l&&null!==r.nullFormat)s=r.nullFormat;else{for(o in n)if(u.match(n[o].regexps.format)){a=n[o].format;break}s=(a=a||e._.numberToFormat)(l,u,i)}return s},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,i,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,i,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,i,o){var r=t.correctionFactor(e,n);return Math.round(e*r)*Math.round(n*r)/Math.round(r*r)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,i,o){var r=t.correctionFactor(e,n);return Math.round(e*r)/Math.round(n*r)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,i){var o,r=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,i),e._.includes(o,")")?((o=o.split("")).splice(-1,0,r+"BPS"),o.join("")):o+r+"BPS"},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");i="("+i.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(i,o,r){var s,a,l,u=e._.includes(o,"ib")?n:t,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(a=Math.pow(u.base,s),l=Math.pow(u.base,s+1),null===i||0===i||a<=i&&i<l){c+=u.suffixes[s],0<a&&(i/=a);break}return e._.numberToFormat(i,o,r)+c},unformat:function(i){var o,r,s=e._.stringToNumber(i);if(s){for(o=t.suffixes.length-1;0<=o;o--){if(e._.includes(i,t.suffixes[o])){r=Math.pow(t.base,o);break}if(e._.includes(i,n.suffixes[o])){r=Math.pow(n.base,o);break}}s*=r||1}return s}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,i){var o,r,s=e.locales[e.options.currentLocale],a={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,i),0<=t?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),r=0;r<a.before.length;r++)switch(a.before[r]){case"$":o=e._.insert(o,s.currency.symbol,r);break;case" ":o=e._.insert(o," ",r+s.currency.symbol.length-1)}for(r=a.after.length-1;0<=r;r--)switch(a.after[r]){case"$":o=r===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+r)));break;case" ":o=r===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+r)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,i){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,i)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),i=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([i,Math.pow(10,o)],(function(t,n,i,o){var r=e._.correctionFactor(t,n);return t*r*(n*r)/(r*r)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,i){var o=e.locales[e.options.currentLocale],r=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),r+=o.ordinal(t),e._.numberToFormat(t,n,i)+r}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,i){var o,r=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,i),e._.includes(o,")")?((o=o.split("")).splice(-1,0,r+"%"),o.join("")):o+r+"%"},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e){var t=Math.floor(e/60/60),n=Math.floor((e-60*t*60)/60),i=Math.round(e-60*t*60-60*n);return t+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?i.call(t,n,t,e):i)||(e.exports=o)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=n(1928),l=n.n(a),u=n(25);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){p(e,t,n[t])}))}return e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?v(e):t}var b=function(){function e(){return c(this,e),y(this,m(e).apply(this,arguments))}return g(e,o.a.PureComponent),h(e,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.split,r=e.style,s=e.size,a=e.eleRef,l=["Pane",i,n],u={flex:1,position:"relative",outline:"none"};return void 0!==s&&("vertical"===i?u.width=s:(u.height=s,u.display="flex"),u.flex="none"),u=Object.assign({},u,r||{}),o.a.createElement("div",{ref:a,className:l.join(" "),style:u},t)}}]),e}();b.propTypes={className:s.a.string.isRequired,children:s.a.node.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]),split:s.a.oneOf(["vertical","horizontal"]),style:l.a,eleRef:s.a.func},b.defaultProps={};var _=function(){function e(){return c(this,e),y(this,m(e).apply(this,arguments))}return g(e,o.a.Component),h(e,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,i=e.onDoubleClick,r=e.onMouseDown,s=e.onTouchEnd,a=e.onTouchStart,l=e.resizerClassName,u=e.split,c=e.style,d=[l,u,t];return o.a.createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return r(e)},onTouchStart:function(e){e.preventDefault(),a(e)},onTouchEnd:function(e){e.preventDefault(),s(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){i&&(e.preventDefault(),i(e))}})}}]),e}();function w(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function C(e,t,n,i){if("number"!=typeof i)return void 0!==e?e:t;var o="number"==typeof t?t:0,r="number"==typeof n&&0<=n?n:1/0;return Math.max(o,Math.min(r,i))}_.propTypes={className:s.a.string.isRequired,onClick:s.a.func,onDoubleClick:s.a.func,onMouseDown:s.a.func.isRequired,onTouchStart:s.a.func.isRequired,onTouchEnd:s.a.func.isRequired,split:s.a.oneOf(["vertical","horizontal"]),style:l.a,resizerClassName:s.a.string.isRequired},_.defaultProps={resizerClassName:"Resizer"};var S=function(){function e(t){var n;c(this,e),(n=y(this,m(e).call(this,t))).onMouseDown=n.onMouseDown.bind(v(v(n))),n.onTouchStart=n.onTouchStart.bind(v(v(n))),n.onMouseMove=n.onMouseMove.bind(v(v(n))),n.onTouchMove=n.onTouchMove.bind(v(v(n))),n.onMouseUp=n.onMouseUp.bind(v(v(n)));var i=t.size,o=t.defaultSize,r=t.minSize,s=t.maxSize,a=t.primary,l=void 0!==i?i:C(o,r,s,null);return n.state={active:!1,resized:!1,pane1Size:"first"===a?l:void 0,pane2Size:"second"===a?l:void 0,instanceProps:{size:i}},n}return g(e,o.a.Component),h(e,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(e.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,i=t.onDragStarted,o=t.split;if(n){w(document,window);var r="vertical"===o?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof i&&i(),this.setState({active:!0,position:r})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,i=t.maxSize,o=t.minSize,r=t.onChange,s=t.split,a=t.step,l=this.state,u=l.active,c=l.position;if(n&&u){w(document,window);var d="first"===this.props.primary,h=d?this.pane1:this.pane2,f=d?this.pane2:this.pane1;if(h){var g=h,m=f;if(g.getBoundingClientRect){var v=g.getBoundingClientRect().width,y=g.getBoundingClientRect().height,b="vertical"===s?v:y,_=c-("vertical"===s?e.touches[0].clientX:e.touches[0].clientY);if(a){if(Math.abs(_)<a)return;_=~~(_/a)*a}var C=d?_:-_,S=parseInt(window.getComputedStyle(g).order);parseInt(window.getComputedStyle(m).order)<S&&(C=-C);var O=i;if(void 0!==i&&i<=0){var x=this.splitPane;O="vertical"===s?x.getBoundingClientRect().width+i:x.getBoundingClientRect().height+i}var k=b-C,E=c-_;k<o?k=o:void 0!==i&&O<k?k=O:this.setState({position:E,resized:!0}),r&&r(k),this.setState(p({draggedSize:k},d?"pane1Size":"pane2Size",k))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,i=this.state,o=i.active,r=i.draggedSize;t&&o&&("function"==typeof n&&n(r),this.setState({active:!1}))}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.allowResize,r=n.children,s=n.className,a=n.onResizerClick,l=n.onResizerDoubleClick,u=n.paneClassName,c=n.pane1ClassName,d=n.pane2ClassName,h=n.paneStyle,p=n.pane1Style,g=n.pane2Style,m=n.resizerClassName,v=n.resizerStyle,y=n.split,w=n.style,C=this.state,S=C.pane1Size,O=C.pane2Size,x=i?"":"disabled",k=m?"".concat(m," ").concat("Resizer"):m,E=(e=r,o.a.Children.toArray(e).filter((function(e){return e}))),N=f({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},w);"vertical"===y?Object.assign(N,{flexDirection:"row",left:0,right:0}):Object.assign(N,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var L=["SplitPane",s,y,x],D=f({},h,p),M=f({},h,g),T=["Pane1",u,c].join(" "),I=["Pane2",u,d].join(" ");return o.a.createElement("div",{className:L.join(" "),ref:function(e){t.splitPane=e},style:N},o.a.createElement(b,{className:T,key:"pane1",eleRef:function(e){t.pane1=e},size:S,split:y,style:D},E[0]),o.a.createElement(_,{className:x,onClick:a,onDoubleClick:l,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:k,split:y,style:v||{}}),o.a.createElement(b,{className:I,key:"pane2",eleRef:function(e){t.pane2=e},size:O,split:y,style:M},E[1]))}}],[{key:"getDerivedStateFromProps",value:function(t,n){return e.getSizeUpdate(t,n)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var i=void 0!==e.size?e.size:C(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=i);var o="first"===e.primary;return n[o?"pane1Size":"pane2Size"]=i,n[o?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),e}();S.propTypes={allowResize:s.a.bool,children:s.a.arrayOf(s.a.node).isRequired,className:s.a.string,primary:s.a.oneOf(["first","second"]),minSize:s.a.oneOfType([s.a.string,s.a.number]),maxSize:s.a.oneOfType([s.a.string,s.a.number]),defaultSize:s.a.oneOfType([s.a.string,s.a.number]),size:s.a.oneOfType([s.a.string,s.a.number]),split:s.a.oneOf(["vertical","horizontal"]),onDragStarted:s.a.func,onDragFinished:s.a.func,onChange:s.a.func,onResizerClick:s.a.func,onResizerDoubleClick:s.a.func,style:l.a,resizerStyle:l.a,paneClassName:s.a.string,pane1ClassName:s.a.string,pane2ClassName:s.a.string,paneStyle:l.a,pane1Style:l.a,pane2Style:l.a,resizerClassName:s.a.string,step:s.a.number},S.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},Object(u.polyfill)(S),t.a=S},function(e,t,n){var i=n(1929),o=n(1);e.exports=function(e,t,n){var o=e[t];if(o){var r=[];if(Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&r.push(e)})),r.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+r.join(", "))}},e.exports.isRequired=function(t,n,i){if(!t[n])throw new Error("Prop "+n+" passed to "+i+" is required");return e.exports(t,n,i)},e.exports.supportingArrays=o.oneOfType([o.arrayOf(e.exports),e.exports])},function(e,t){e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(e,t,n){"use strict";n(170);var i=n(18).a.createFromIconfontCN({scriptUrl:"//at.alicdn.com/t/font_1535266_i4ilpm93kp.js"});t.a=i},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";n(2016);var i=n(0),o=n.n(i),r=n(1267),s=n.n(r);t.a=function(e){var t=e.detail,n=e.language;return o.a.createElement(o.a.Fragment,null,function(e){var t=0<arguments.length&&void 0!==e?e:{},i=t.status,r=t.error_msg,a=t.expected_output,l=t.input,u=t.output,c=t.execute_time,d=null;switch(i){case-1:d=o.a.createElement("div",{className:"error_result_wrap error_result_txt"},o.a.createElement("p",null,"\u8f93\u5165: [",l,"]"),o.a.createElement("p",null,"\u8f93\u51fa: [",u,"]"),o.a.createElement("p",null,"\u9884\u671f: [",a,"]"));break;case 2:d=o.a.createElement("div",{className:"error_result_wrap error_result_txt"},o.a.createElement("p",null,"\u6267\u884c\u8d85\u65f6\uff0c\u9650\u5236\u65f6\u9650: ","".concat(c,"s")));break;case 3:d=o.a.createElement("div",{className:"error_result_wrap"},o.a.createElement("p",null,"\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"));break;case 4:d=o.a.createElement("div",{className:"error_result_wrap error_result_code"},o.a.createElement(s.a,{height:"100%",width:"100%",language:n&&n.toLowerCase()||"c",value:r,theme:"dark"}));break;case 5:d=o.a.createElement("div",{className:"error_result_wrap"},o.a.createElement("p",null,"\u6267\u884c\u51fa\u9519\u4fe1\u606f: "),o.a.createElement("p",null,"\u6700\u540e\u6267\u884c\u7684\u8f93\u5165: ",l));break;default:return d}return d}(t))}},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){function t(e,t){var n,i,o=e.target.value;"font"===t&&(r(n=o),Object(c.hb)("oj_fontSize",n),b&&b(n)),"style"===t&&(p(i=o),Object(c.hb)("oj_theme",i),_&&_(i))}var n=Object(l.useState)((function(){return+Object(c.K)("oj_fontSize")||14})),i=Object(a.a)(n,2),o=i[0],r=i[1],s=Object(l.useState)((function(){return Object(c.K)("oj_theme")||"dark"})),d=Object(a.a)(s,2),h=d[0],p=d[1],f=e.title,g=e.type,m=void 0===g?"label":g,v=e.content,y=void 0===v?[]:v,b=e.onChangeFontSize,_=e.onChangeTheme;return u.a.createElement("div",{className:"setting_area"},function(e,n,i){var r=2<arguments.length&&void 0!==i?i:"label",s=(1<arguments.length&&void 0!==n?n:[]).map((function(e,n){var i=e.text,s=e.value,a="";if("string"==typeof s)a=u.a.createElement("div",{className:"setting_desc",key:"lab_".concat(n)},u.a.createElement("span",{className:"flex_item"},i),u.a.createElement("span",{className:"flex_item"},e.value));else if(Array.isArray(s)){var l="font"===e.type?o:h;if("select"===r){var c=e.value.map((function(e,t){return u.a.createElement("option",{key:"key_".concat(t)||!1,value:e.value},e.text)}));a=u.a.createElement("div",{className:"setting_desc",key:"sel_".concat(n)},u.a.createElement("span",{className:"flex_item"},e.text),u.a.createElement("select",{defaultValue:l,style:{width:"100px"},onChange:function(n){return t(n,e.type)}},c))}}return a}));return u.a.createElement(u.a.Fragment,null,u.a.createElement("h2",{className:"setting_h2"},e),s)}(f,y,m))}n(965);var o=n(970),r=(n(259),n(167)),s=(n(1151),n(1157)),a=n(136),l=(n(2014),n(0)),u=n.n(l),c=n(28),d=n(183),h=n(1267),p=n.n(h),f=n(200),g=n(1930),m=f.a.fontSetting,v=f.a.opacitySetting,y={c:"main.c","c++":"main.cc",java:"main.java",python:"main.py"};t.a=Object(d.b)((function(e){return{showOrHideControl:e.commonReducer.showOrHideControl}}))(Object(c.d)()((function(e,t){var n=e.code,d=e.notice,h=e.language,f=e.identifier,b=e.hadCodeUpdate,_=e.showOrHideControl,w=e.onCodeChange,C=e.onRestoreInitialCode,S=e.onUpdateNotice,O=Object(l.useState)(!1),x=Object(a.a)(O,2),k=x[0],E=x[1],N=Object(l.useState)((function(){return+Object(c.K)("oj_fontSize")||14})),L=Object(a.a)(N,2),D=L[0],M=L[1],T=Object(l.useState)((function(){return Object(c.K)("oj_theme")||"dark"})),I=Object(a.a)(T,2),P=I[0],A=I[1],R=Object(l.useState)("calc(100% - 56px)"),j=Object(a.a)(R,2),F=j[0],B=j[1],W=Object(l.useRef)(null);Object(l.useEffect)((function(){B(_?"calc(100% - 378px)":"calc(100% - 56px)")}),[_]);var V={selectOnLineNumbers:!0,automaticLayout:!0,fontSize:"".concat(D,"px")},z=b?"flex_strict flex_has_save":"flex_strict";return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"monaco_editor_area"},u.a.createElement("div",{className:"code_title"},u.a.createElement("span",{className:"flex_strict",style:{color:"#ddd"}},f?h?y[h.toLowerCase()]:"":"\u5b66\u5458\u521d\u59cb\u4ee3\u7801\u6587\u4ef6"),u.a.createElement("span",{className:z},b?"\u5df2\u4fdd\u5b58":""),u.a.createElement(r.a,{placement:"bottom",title:"\u901a\u77e5"},u.a.createElement(s.a,{className:"flex_normal",style:{color:"#666"},dot:d,onClick:function(){e.notice&&S&&S()}},u.a.createElement(g.a,{type:"iconxiaoxi1",style:{fontSize:"18px"}}))),u.a.createElement(r.a,{placement:"bottom",title:"\u6062\u590d"},u.a.createElement(g.a,{className:"flex_normal",onClick:function(){e.confirm({title:"\u63d0\u793a",content:"\u786e\u5b9a\u8981\u6062\u590d\u4ee3\u7801\u5417?",onOk:function(){C&&C()}})},type:"iconzaicizairu",style:{display:f?"inline-block":"none",fontSize:"18px"}})),u.a.createElement(r.a,{placement:"bottom",title:"\u8bbe\u7f6e"},u.a.createElement(g.a,{className:"code-icon",type:"iconshezhi",onClick:function(){E(!0)},style:{fontSize:"18px"}}))),u.a.createElement(p.a,{height:F,width:"100%",language:h&&h.toLowerCase(),value:n||"",options:V,theme:P,editorDidMount:function(e,t){W.current=t,W.current.onDidChangeModelContent((function(e){var t=W.current.getValue();w(t)}))}})),u.a.createElement(o.a,{className:"setting_drawer",placement:"right",onClose:function(){E(!1)},visible:k},u.a.createElement(i,Object.assign({},m,{onChangeFontSize:function(e){M(e)},onChangeTheme:function(e){A(e)}})),u.a.createElement(i,v)))})))},,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(170);var i=n(18),o=n(136),r=(n(2194),n(0)),s=n.n(r),a=n(183),l=n(1927),u=(n(803),n(804)),c=(n(2073),n(498),n(499)),d=(n(2195),n(273),n(91)),h=(n(1953),n(20));function p(e){var t=e.type,n=e.count,i=e.iconClick,o=e.iconColor,r=(e.theme,Object(h.a)(e,["type","count","iconClick","iconColor","theme"])),a=[void 0,null,""].includes(n)?"comment_count_none":"comment_count",l="iconfont icon-".concat(t," icon_font_size_14 comment_icon ");return s.a.createElement("span",{style:r.style,className:"comment_icon_count ".concat(r.className),onClick:function(){i&&i()}},s.a.createElement("span",{className:l,style:{color:o}}),s.a.createElement("span",{className:a},n))}var f=n(28),g=(n(131),n(39)),m=(n(103),n(47)),v=(n(500),n(501)),y=n(919),b=v.a.Item,_=v.a.create()((function(e){var t,n=e.onCancel,i=e.onSubmit,a=e.form,l=e.type,u=a.getFieldDecorator,c=Object(r.useState)(""),d=Object(o.a)(c,2),h=d[0],p=d[1],f=Object(r.useState)(!1),_=Object(o.a)(f,2),w=_[0],C=_[1],S=Object(r.useState)(!1),O=Object(o.a)(S,2),x=O[0],k=O[1];return t="bottom"===l?x?"comment_form_bottom_area active":"comment_form_bottom_area":"comment_form_area",s.a.createElement(v.a,{className:t},s.a.createElement(b,null,u("comment",{rules:[{required:!0,message:"\u8bc4\u8bba\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a"}]})(s.a.createElement(m.a,{onClick:function(){return k(!0),void C(!0)},placeholder:"\u8bf4\u70b9\u513f\u4ec0\u4e48~",className:x?"":"show_input",style:{height:x?"0px":"40px",overflow:x?"hidden":"auto",opacity:x?0:1}})),s.a.createElement(y.a,{imgAttrs:{width:"60px",height:"30px"},wrapStyle:{height:x?"auto":"0px",opacity:x?1:0,overflow:x?"none":"hidden",transition:"all 0.3s"},autoFocus:w,style:{height:"150px"},placeholder:"\u8bf4\u70b9\u513f\u4ec0\u4e48~",options:["code-block","link","image","formula"],value:h,showUploadImage:function(e){alert(e)},onContentChange:function(t){p(t);try{e.form.setFieldsValue({comment:t})}catch(t){}}})),s.a.createElement(b,{style:{textAlign:"right",display:x?"block":"none"}},s.a.createElement(g.a,{onClick:function(){k(!1),p(""),e.form.resetFields(),n&&n()}},"\u53d6\u6d88"),s.a.createElement(g.a,{onClick:function(t){t.preventDefault(),e.form.validateFields((function(t,n){if(!t){k(!1);var o=h;e.form.setFieldsValue({comment:""}),p(""),i&&i(JSON.stringify(o))}}))},type:"primary",style:{marginLeft:"10px"}},"\u53d1\u9001")))})),w=Object(f.d)()((function(e){function t(e){h({title:"\u63d0\u793a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u56de\u590d\u5417?",onOk:function(){m&&m(e)}})}function n(e){return s.a.createElement("img",{className:"item-flex flex-image",src:e.image_url?Object(f.L)("images/".concat(e.image_url)):"https://b-ssl.duitang.com/uploads/item/201511/13/20151113110434_kyReJ.jpeg",alt:""})}function a(e,n,i,o){var r=o?"item-close":"item-close hide";return s.a.createElement("div",{className:"item-header"},s.a.createElement("span",{className:"item-name"},n.name||""),s.a.createElement("span",{className:"item-time"},i||""),s.a.createElement("span",{className:r},s.a.createElement("span",{className:"iconfont icon-shanchu icon_font_size_14",onClick:function(){return t(e)}})))}function l(e){j(e)}function u(t){var n=null;try{n=JSON.parse(t)}catch(e){n=t}return s.a.createElement(y.a,{readOnly:!0,value:n,showUploadImage:l})}var c,d=e.isAdmin,h=e.confirm,g=e.comment,m=e.submitDeleteComment,v=e.submitChildComment,b=e.likeComment,w=e.showOrHideComment,C=Object(r.useState)(!1),S=Object(o.a)(C,2),O=S[0],x=S[1],k=Object(r.useState)(5),E=Object(o.a)(k,2),N=E[0],L=E[1],D=Object(r.useState)(!1),M=Object(o.a)(D,2),T=M[0],I=M[1],P=Object(r.useState)(""),A=Object(o.a)(P,2),R=A[0],j=A[1],F=g.author,B=void 0===F?{}:F,W=g.id,V=g.content,z=g.time,H=g.hidden,q=g.praise_count,U=g.user_praise,K=g.can_delete,G=g.children,Y=void 0===G?[]:G;return s.a.createElement("li",{className:"comment_item_area"},n(B),s.a.createElement("div",{className:"item-flex item-desc"},a(W,B,z,K),u(V),function(e){var t=0<arguments.length&&void 0!==e?e:[],o=t.length,r=N<o?"comment_item_loadmore show":"comment_item_loadmore",l=o-N,c=0<o?"comment_item_append_list active":"comment_item_append_list";return s.a.createElement("ul",{className:c},t.map((function(e,t){var i=e.id,o=e.author,r=void 0===o?{}:o,l=e.time,c=e.content,d=e.can_delete,h=t<N?"comment_item_show":"comment_item_hide";return s.a.createElement("li",{key:"child_".concat(t),className:h},s.a.createElement("div",{className:"comment_item_area comment_child_item_area"},n(r),s.a.createElement("div",{className:"item-flex item-desc"},a(i,r,l,d),u(c))))})),s.a.createElement("li",{className:r,onClick:function(){return L(T?1:o),void I(!T)}},s.a.createElement("p",{className:"loadmore-txt"},"\u5c55\u5f00\u5176\u4f59",l,"\u6761\u8bc4\u8bba"),s.a.createElement("p",{className:"loadmore-icon"},s.a.createElement(i.a,{type:T?"up":"down"}))))}(Y),s.a.createElement("div",{className:"comment_icon_area"},s.a.createElement(p,{style:{display:d?"inline-block":"none"},className:"comment-icon-margin",type:H?"yincang1":"xianshi",iconClick:function(){w&&w(W,H?0:1)}}),s.a.createElement(p,{style:{display:K?"inline-block":"none"},className:"comment-icon-margin",type:"shanchu",iconClick:function(){return t(W)}}),s.a.createElement(p,{className:"comment-icon-margin",type:"huifu1",count:Y.length,iconClick:function(){x(!0)}}),s.a.createElement(p,{iconColor:U?"#5091FF":"",className:"comment-icon-margin",theme:U?"filled":"",type:"dianzan",count:q,iconClick:function(){b&&b(W)}})),s.a.createElement("div",{style:{display:O?"block":"none"},className:"comment_item_quill"},s.a.createElement(_,{onCancel:function(){x(!1)},onSubmit:(c=W,function(e){x(!1),v&&v(c,e)})})),s.a.createElement("div",{className:"show_upload_image",style:{display:R?"block":"none"}},s.a.createElement(i.a,{type:"close",className:"image_close",onClick:function(){j("")}}),s.a.createElement("div",{className:"image_info"},s.a.createElement("img",{className:"image",src:R,alt:""})))))}));function C(e){var t=e.isAdmin,n=e.commentLists,i=e.submitChildComment,o=e.submitDeleteComment,r=e.likeComment,a=e.showOrHideComment,l=n.comments,u=void 0===l?[]:l;return s.a.createElement("ul",{className:"comment_list_wrapper"},0<u.length?u.map((function(e,n){return s.a.createElement(w,{isAdmin:t,key:"item_".concat(n),submitChildComment:i,submitDeleteComment:o,comment:e,likeComment:r,showOrHideComment:a})})):s.a.createElement("div",{className:"empty_comment"},s.a.createElement(d.a,null)))}function S(e){var t=e.commentLists,n=e.isAdmin,i=e.addChildComment,o=e.likeComment,r=e.showOrHideComment,a=e.submitDeleteComment;return s.a.createElement(s.a.Fragment,null,s.a.createElement(C,{isAdmin:n,likeComment:o,showOrHideComment:r,commentLists:t,submitChildComment:i,submitDeleteComment:a}))}function O(e){function t(){c&&c()}function n(){var e=o;return!e&&0!==e||"number"!=typeof Number(e)?"":(e=q(e).format("0,0"),s.a.createElement("span",{className:"numb_value"},e))}var i=e.text,o=e.number,r=e.position,a=void 0===r?"horizontal":r,l=e.type,u=void 0===l?"label":l,c=e.onIconClick,d=e.className;return e.theme,s.a.createElement(s.a.Fragment,null,function(e){if("icon"!==u)return s.a.createElement("div",{className:"text_number_area text_label_numb flex_".concat(a)},s.a.createElement("span",{className:"text_label"},i),n());var o="text_number_area text_icon_numb flex_".concat(a," ").concat(e),r="iconfont icon-".concat(i," numb_icon");return s.a.createElement("div",{className:o},s.a.createElement("span",{className:r,onClick:t}),n())}(d))}var x=n(194),k=Object(a.b)((function(e){var t=e.commentReducer,n=t.commentLists,i=t.pages,o=e.ojForUserReducer.comment_identifier;return{commentLists:n,isAdmin:e.userReducer.userInfo.admin,identifier:o,pages:i}}),(function(e){return{getCommentLists:function(t){return e(x.a.getCommentLists(t))},addComment:function(t,n){return e(x.a.addComment(t,n))},replayChildComment:function(t,n){return e(x.a.replayChildComment(t,n))},deleteComment:function(t,n){return e(x.a.deleteComment(t,n))},likeComment:function(t,n,i){return e(x.a.likeComment(t,n,i))},showOrHideComment:function(t,n,i){return e(x.a.showOrHideComment(t,n,i))},changePagination:function(t){return e(x.a.changePagination(t))}}}))((function(e){var t=Object(r.useState)(1),n=Object(o.a)(t,2),i=n[0],a=n[1],l=e.pages,u=e.isAdmin,d=e.identifier,h=e.commentLists,p=e.addComment,f=e.likeComment,g=e.deleteComment,m=e.getCommentLists,v=e.showOrHideComment,y=e.replayChildComment,b=e.changePagination;Object(r.useEffect)((function(){d&&m(d)}),[d]);var _={display:l.total>l.limit?"block":"none"};return s.a.createElement("div",{className:"task_comment_task"},s.a.createElement(S,{isAdmin:u,commentLists:h,addComment:function(e){p(d,{comments:{content:e}})},addChildComment:function(e,t){y(d,{comments:{content:t,parent_id:e}})},likeComment:function(e){f(d,e,{container_type:"Discuss",type:1})},showOrHideComment:function(e,t){v(d,e,{hidden:t})},submitDeleteComment:function(e){g(d,e)}}),s.a.createElement("div",{className:"task_comment_page",style:_},s.a.createElement(c.a,{showQuickJumper:!0,current:i,pageSize:l.limit,total:l.total,onChange:function(e){a(e),b(e),m(d)}})))})),E=(n(680),n(682)),N=(n(268),n(95)),L=(n(2196),n(74)),D=n(200),M=n(49),T=n.n(M),I=n(1120),P=n.n(I),A=n(2015),R=n(1543),j=D.a.reviewResult,F=[{title:"\u63d0\u4ea4\u65f6\u95f4",dataIndex:"created_at",render:function(e){return s.a.createElement("span",null,T()(e,"YYYYMMDD HHmmss").fromNow())}},{title:"\u63d0\u4ea4\u7ed3\u679c",dataIndex:"status",render:function(e,t){return s.a.createElement(L.b,{to:"/myproblems/record_detail/".concat(t.id)},s.a.createElement("span",{style:{color:0===e?"#28BD8B":"#E6262E"}},j[e]))}},{title:"\u6267\u884c\u7528\u65f6",dataIndex:"execute_time",render:function(e){return s.a.createElement("span",null,"".concat(e,"s"))}},{title:"\u5185\u5b58\u6d88\u8017",dataIndex:"execute_memory",render:function(e){return e?s.a.createElement("span",null,R(+e).format("0.00b")):s.a.createElement("span",null,"0MB")}},{title:"\u8bed\u8a00",dataIndex:"language"}],B=Object(a.b)((function(e){var t=e.ojForUserReducer,n=e.commonReducer,i=t.user_program_identifier,o=t.commitRecordDetail,r=t.commitRecord,s=t.hack,a=t.operateType,l=t.pages;return{identifier:i,commitRecordDetail:o,commitRecord:r,excuteState:n.excuteState,language:s.language,operateType:a,pages:l}}),(function(e){return{getUserCommitRecord:function(t){return e(x.a.getUserCommitRecord(t))},changeRecordPagination:function(t){return e(x.a.changeRecordPagination(t))}}}))((function(e){var t,n=e.identifier,a=e.pages,l=e.commitRecord,u=e.language,d=(e.operateType,e.commitRecordDetail),h=e.getUserCommitRecord,p=e.changeRecordPagination,f=Object(r.useState)(1),g=Object(o.a)(f,2),m=g[0],v=g[1];Object(r.useEffect)((function(){h(n)}),[]);var y=0,b=function(){y=0,(t=t||new P.a("#copyError")).on("success",(function(e){e.clearSelection(),0<y||(y++,N.a.success("\u590d\u5236\u6210\u529f"),setTimeout((function(){N.a.destroy()}),3e3))}))},_={display:a.total>a.limit?"block":"none"};return s.a.createElement("div",{className:"commit_record_area"},function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.id,o=t.status;if(0<Object.keys(t).length){var r=0===o?"record_result_suc":"record_result_err",a=0!==o?"ecord_error_info show_error_code":"ecord_error_info",l=0!==o?"copy_error show_error_copy":"copy_error";return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"record_header"},s.a.createElement("p",{className:"record_result"},"\u6267\u884c\u7ed3\u679c: ",s.a.createElement("span",{className:r},j[o])),s.a.createElement("p",{id:"copyError",onClick:b,className:l,"data-clipboard-target":"#errcode"},s.a.createElement("span",null,"\u590d\u5236\u9519\u8bef\u4fe1\u606f ",s.a.createElement(i.a,{type:"copy",className:"icon_style"}))),s.a.createElement("p",{className:"show_detail",style:{visibility:n?"visible":"hidden"}},s.a.createElement(L.b,{to:"/myproblems/record_detail/".concat(n)},"\u663e\u793a\u8be6\u60c5 ",s.a.createElement(i.a,{type:"right",className:"icon_style"})))),s.a.createElement("div",{id:"errcode",className:a},s.a.createElement(A.a,{detail:t,language:u})))}return""}(d),s.a.createElement("div",{className:"commit_record_table_pagination"},s.a.createElement(E.a,{columns:F,rowKey:function(e){return"key_".concat(e.id)},dataSource:l,pagination:!1}),s.a.createElement("div",{className:"commit_record_pagination",style:_},s.a.createElement(c.a,{showQuickJumper:!0,pageSize:a.limit,current:m,total:a.total,onChange:function(e){v(e),p(e),h(n)}}))))})),W=(n(683),n(684)),V=D.a.tagBackground,z=D.a.diffText,H=Object(a.b)((function(e){return{hack:e.ojForUserReducer.hack,userInfo:e.userReducer.userInfo}}))((function(e){var t=e.hack,n=void 0===t?{}:t,i=(e.userInfo,n.language),o=n.difficult,r=n.time_limit,a=n.username,l=n.description;return s.a.createElement("div",{className:"task_description_area"},s.a.createElement("div",{className:"desc_area_header"},s.a.createElement("p",{className:"header_flex"},s.a.createElement("span",{className:"flex_label"},"\u7f16\u7a0b\u8bed\u8a00:"),s.a.createElement("span",{className:"flex_value"},i)),s.a.createElement("p",{className:"header_flex"},s.a.createElement("span",{className:"flex_label"},"\u96be\u5ea6:"),s.a.createElement(W.a,{color:V[+o]},z[+o])),s.a.createElement("p",{className:"header_flex"},s.a.createElement("span",{className:"flex_label"},"\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4\u9650\u5236:"),s.a.createElement("span",{className:"flex_value"},r,"\u79d2")),s.a.createElement("p",{className:"header_flex"},s.a.createElement("span",{className:"flex_label"},"\u51fa\u9898\u8005:"),s.a.createElement(L.b,{to:n.user_path||"/",target:"_blank",style:{color:"#5091FF"}},a))),s.a.createElement("div",{className:"task_desc_area"},s.a.createElement(y.a,{readOnly:!0,value:l})))})),q=(n(2197),n(1543)),U=Object(a.b)((function(e){var t=e.ojForUserReducer;return{hack:t.hack,userCodeTab:t.userCodeTab,identifier:t.comment_identifier}}),(function(e){return{changeUserCodeTab:function(t){return e(x.a.changeUserCodeTab(t))},likeComment:function(t,n,i){return e(x.a.likeComment(t,n,i))},addComment:function(t,n){return e(x.a.addComment(t,n))}}}))((function(e){var t=e.hack,n=e.userCodeTab,i=t.pass_count,a=t.submit_count,l=t.praises_count,c=(t.comments_count,t.user_praise),d=Object(r.useState)("task"),h=Object(o.a)(d,2),p=h[0],f=h[1],g={task:s.a.createElement(H,null),record:s.a.createElement(B,null),comment:s.a.createElement(k,null)};Object(r.useEffect)((function(){f(n)}),[n]);var m=Object(r.useMemo)((function(){return g[p]}),[p,f]),v=[{title:"\u4efb\u52a1\u63cf\u8ff0",key:"task"},{title:"\u63d0\u4ea4\u8bb0\u5f55",key:"record"},{title:"\u8bc4\u8bba",key:"comment"}].map((function(e){var t=e.key===p?"add_editor_item active":"add_editor_item";return s.a.createElement("li",{key:e.key,className:t,onClick:function(){return f(e.key)}},s.a.createElement("span",{className:"item-span"},e.title))})),y={display:"record"===p?"none":"flex"};return s.a.createElement(s.a.Fragment,null,s.a.createElement("ul",{className:"add_editor_list_area"},v),s.a.createElement("div",{className:"comp_ctx"},m),s.a.createElement("div",{className:"number_area",style:y},s.a.createElement("div",{className:"number_flex flex_count",style:{display:"comment"!==p?"flex":"none"}},s.a.createElement(O,{text:"\u901a\u8fc7\u6b21\u6570",number:i,position:"vertical"}),s.a.createElement(u.a,{type:"vertical",style:{height:"20px",margin:"10px 20px"}}),s.a.createElement(O,{text:"\u63d0\u4ea4\u6b21\u6570",number:a,position:"vertical"})),s.a.createElement("div",{className:"number_flex flex_quill",style:{display:"comment"===p?"flex":"none"}},s.a.createElement(_,{onSubmit:function(t){e.identifier&&e.addComment(e.identifier,{comments:{content:t}})},type:"bottom"})),s.a.createElement("div",{className:"number_flex flex_info"},s.a.createElement(O,{text:"huifu1",number:t.comments_count,type:"icon",onIconClick:function(){f("comment")}}),s.a.createElement(O,{className:c?"like active":"like",text:"dianzan",number:l,theme:c?"filled":"",type:"icon",onIconClick:function(){var t=e.hack,n=t.id,i=t.identifier;e.likeComment(i,n,{container_type:"Hack",type:1})}}))))})),K=n(2054),G=(n(63),n(21)),Y=(n(868),n(871)),Z=(n(2198),n(2199),v.a.Item),X=m.a.TextArea,$=v.a.create()(Object(r.forwardRef)((function(e,t){var n=Object(r.useRef)(null),i=e.inputValue,a=e.onDebuggerCode;function l(){var t=e.form.getFieldDecorator;return s.a.createElement(v.a,{className:"user_case_form"},s.a.createElement(Z,{className:"input_area flex_l"},t("input",{rules:[{required:!0,message:"\u8f93\u5165\u503c\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:i})(s.a.createElement(X,{className:"input_textarea_style",rows:8,placeholder:"\u8bf7\u586b\u5199\u6d4b\u8bd5\u7528\u4f8b\u7684\u8f93\u5165\u503c\uff0c\u70b9\u51fb\u201c\u8c03\u8bd5\u4ee3\u7801\u201d"}))))}Object(r.useImperativeHandle)(t,(function(){return{handleTestCodeFormSubmit:function(e){p(e)}}}));var u=Object(r.useState)((function(){return function(){return s.a.createElement("span",{className:"ctx_default"},"\u8bf7\u5728\u8fd9\u91cc\u6dfb\u52a0\u6d4b\u8bd5\u7528\u4f8b\uff0c\u70b9\u51fb\u201c\u8c03\u8bd5\u4ee3\u7801\u201d\u65f6\u5c06\u4ece\u8fd9\u91cc\u8bfb\u53d6\u8f93\u5165\u6765\u6d4b\u8bd5\u4f60\u7684\u4ee3\u7801...")}})),c=Object(o.a)(u,2),d=c[0],h=c[1];Object(r.useEffect)((function(){h((function(){return l}))}),[i]);var p=function(t){e.form.validateFields((function(e,n){e||(t&&t(),a&&a(n))}))};return s.a.createElement("div",{ref:n},d())}))),J=(n(2200),D.a.reviewResult);function Q(e){function t(){return s.a.createElement("div",{className:"excute_result_area excute_flex_center"},s.a.createElement("span",{className:"loading_ctx"},s.a.createElement(i.a,{className:"ctx_icon",type:"loading"}),s.a.createElement("span",null,"\u52a0\u8f7d\u4e2d...")))}function n(){return s.a.createElement("div",{className:"excute_result_area excute_flex_center"},s.a.createElement("span",{className:"loaded_ctx"},s.a.createElement(i.a,{className:"ctx_icon",type:"loading"}),s.a.createElement("span",null,"\u52a0\u8f7d\u5b8c\u6210")))}function a(){return s.a.createElement("div",{className:"excute_result_area excute_flex_center"},s.a.createElement("span",{className:"loaded_ctx"},s.a.createElement("span",null,"\u672a\u77e5\u5f02\u5e38")))}function l(){v.error_line;var e,t,n,i=v.error_msg,o=(v.execute_memory,v.execute_time),r=v.input,a=v.output,l=v.status,u=v.expected_output;return s.a.createElement("div",{className:"excute_result_info"},(n=0===(t=l)?"excute_suc":"excute_err",s.a.createElement("p",{className:"excute_head_area"},s.a.createElement("span",{className:"excute_head_txt"},"\u6267\u884c\u7ed3\u679c: "),s.a.createElement("span",{className:n},J["".concat(t)]))),0===(e=l)?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{className:"result_info_style"},"\u8f93\u5165: ",r),s.a.createElement("p",{className:"result_info_style"},"\u8f93\u51fa: ",a),s.a.createElement("p",{className:"result_info_style"},"\u6267\u884c\u7528\u65f6: ","".concat(o,"s"))):4===e?s.a.createElement("p",{className:"result_info_style"},i):3===e?s.a.createElement("p",{className:"result_info_style"},"\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"):-1===e?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{className:"result_info_style"},"\u8f93\u5165: ",r),s.a.createElement("p",{className:"result_info_style"},"\u8f93\u51fa: ",a),s.a.createElement("p",{className:"result_info_style"},"\u9884\u671f\u8f93\u51fa: ",u)):5===e?s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{className:"result_info_style"}," \u6267\u884c\u51fa\u9519\u4fe1\u606f: ",i),s.a.createElement("p",{className:"result_info_style"},"\u6700\u540e\u6267\u884c\u7684\u8f93\u5165: ",r)):void 0)}var u=e.excuteState,c=e.excuteDetail,d=Object(r.useState)((function(){return function(){return s.a.createElement("div",{className:"excute_result_area excute_flex_center"},s.a.createElement("span",{className:"init_ctx"},"\u8bf7\u586b\u5199\u6d4b\u8bd5\u7528\u4f8b\u7684\u8f93\u5165\u503c\uff0c\u70b9\u51fb\u201c\u8c03\u8bd5\u4ee3\u7801\u201d"))}})),h=Object(o.a)(d,2),p=h[0],f=h[1],g=Object(r.useState)({}),m=Object(o.a)(g,2),v=m[0],y=m[1];return Object(r.useEffect)((function(){"loading"===u?f((function(){return t})):"loaded"===u?f((function(){return n})):"finish"===u?f((function(){return l})):"error"===u&&f((function(){return a}))}),[u]),Object(r.useEffect)((function(){y(c)}),[c]),s.a.createElement(s.a.Fragment,null,p())}var ee=Y.a.TabPane,te=Object(a.b)((function(e){var t=e.commonReducer,n=e.ojForUserReducer,i=t.loading,o=t.excuteState,r=t.submitLoading,s=t.showOrHideControl,a=n.commitTestRecordDetail;return{hack:n.hack,userCode:n.userCode,loading:i,submitLoading:r,excuteState:o,showOrHideControl:s,commitTestRecordDetail:a}}),(function(e){return{changeShowOrHideControl:function(t){return e(x.a.changeShowOrHideControl(t))},changeLoadingState:function(t){return e(x.a.changeLoadingState(t))},changeSubmitLoadingStatus:function(t){return e(x.a.changeSubmitLoadingStatus(t))},debuggerCode:function(t,n){return e(x.a.debuggerCode(t,n))},updateCode:function(t,n,i){return e(x.a.updateCode(t,n,i))}}}))((function(e){e.hack;var t=e.userCode,n=e.inputValue,a=e.loading,l=e.submitLoading,u=e.identifier,c=e.excuteState,d=e.commitTestRecordDetail,h=e.changeLoadingState,p=e.changeSubmitLoadingStatus,f=e.changeShowOrHideControl,m=e.onDebuggerCode,v=e.onSubmitForm,y=Object(r.useState)("1"),b=Object(o.a)(y,2),_=b[0],w=b[1],C=Object(r.useState)(!1),S=Object(o.a)(C,2),O=S[0],x=S[1],k=Object(r.useRef)(null),E="control_tab ".concat(O?"move_up move_up_final":"move_down_final");return Object(r.useEffect)((function(){x(e.showOrHideControl)}),[e]),s.a.createElement("div",{className:"pane_control_area"},s.a.createElement("div",{className:"pane_control_collapse",onClick:function(){x(!O),f(!O)},style:{top:O?"-267px":0}},s.a.createElement(i.a,{type:O?"down":"up"})),s.a.createElement(Y.a,{className:E,activeKey:_,tabBarStyle:{backgroundColor:"rgba(18,28,36,1)",color:"#fff"},onChange:function(e){w(e)}},s.a.createElement(ee,{tab:"\u81ea\u5b9a\u4e49\u6d4b\u8bd5\u7528\u4f8b",key:"1",style:{height:"280px",overflowY:"auto"}},s.a.createElement($,{inputValue:n,wrappedComponentRef:function(e){return k.current=e},onDebuggerCode:function(e){h(!0),m(e)}})),s.a.createElement(ee,{tab:"\u4ee3\u7801\u6267\u884c\u7ed3\u679c",key:"2",style:{height:"280px",overflowY:"auto"}},s.a.createElement(Q,{excuteState:c,excuteDetail:d}))),s.a.createElement("div",{className:"pane_control_opts"},s.a.createElement(g.a,{type:"link",style:{color:"#fff"}},"\u63a7\u5236\u53f0"),s.a.createElement("p",null,s.a.createElement(g.a,{ghost:!0,loading:a,style:{marginRight:"10px",color:"#28BD8B",borderColor:"#28BD8B"},onClick:function(){t?(x(!0),f(!0),k.current.handleTestCodeFormSubmit((function(){w("2")}))):G.a.warning({message:"\u63d0\u793a",description:"\u4ee3\u7801\u5757\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a"})},disabled:!u},"\u8c03\u8bd5\u4ee3\u7801"),s.a.createElement(g.a,{loading:l,type:"primary",onClick:function(e){e.preventDefault(),t?(p(!0),v&&v()):G.a.warning({message:"\u63d0\u793a",description:"\u4ee3\u7801\u5757\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a"})}},"\u63d0\u4ea4"))))})),ne=m.a.TextArea,ie=v.a.Item,oe=Object(a.b)((function(e){var t=e.ojForUserReducer,n=t.user_program_identifier,i=t.hack,o=t.userTestInput,r=t.editor_code,s=t.notice,a=t.hadCodeUpdate;return{hack:i,notice:s,loading:e.commonReducer.loading,hadCodeUpdate:a,editor_code:r,input:o,submitInput:i.input,identifier:n}}),(function(e){return{submitUserCode:function(t,n,i){return e(x.a.submitUserCode(t,n,i))},updateCode:function(t,n,i){return e(x.a.updateCode(t,n,i))},saveUserInputCode:function(t){return e(x.a.saveUserInputCode(t))},saveUserCodeForInterval:function(t,n){return e(x.a.saveUserCodeForInterval(t,n))},restoreInitialCode:function(t,n){return e(x.a.restoreInitialCode(t,n))},addNotes:function(t,n,i){return e(x.a.addNotes(t,n,i))},changeLoadingState:function(t){return e(x.a.changeLoadingState(t))}}}))(v.a.create()((function(e){var t=e.identifier,n=e.submitInput,i=e.submitUserCode,a=e.input,l=e.hack,u=e.loading,c=e.notice,d=e.updateCode,h=e.hadCodeUpdate,p=e.editor_code,f=e.updateNotice,m=e.saveUserInputCode,y=e.restoreInitialCode,b=e.saveUserCodeForInterval,_=e.addNotes,w=e.changeLoadingState,C=Object(r.useState)("editor_nodte_area"),S=Object(o.a)(C,2),O=S[0],x=S[1],k=Object(r.useState)(5e3),E=Object(o.a)(k,1)[0],N=null,L=e.form.getFieldDecorator;return s.a.createElement("div",{className:"right_pane_code_wrap"},s.a.createElement(K.a,{notice:c,identifier:t,language:l.language,code:p||l.code,hadCodeUpdate:h,onCodeChange:function(e){m(e),N=N||setInterval((function(){clearInterval(N),N=null,b(t)}),3e3)},onUpdateNotice:function(){f&&f()},onRestoreInitialCode:function(){y(t,"\u6062\u590d\u521d\u59cb\u4ee3\u7801\u6210\u529f")}}),s.a.createElement("span",{className:"iconfont icon-biji student_notes",onClick:function(){x("editor_nodte_area active")}}),s.a.createElement("div",{className:O},s.a.createElement(v.a,null,s.a.createElement(ie,null,L("notes",{rules:[{required:!0,message:"\u7b14\u8bb0\u4e0d\u80fd\u4e3a\u7a7a"},{max:E,message:"\u7b14\u8bb0\u6700\u5927\u5b57\u6570\u4e3a".concat(E)}],initialValue:l&&l.notes||""})(s.a.createElement(ne,{max:E,placeholder:"\u8bf7\u8f93\u5165\u7b14\u8bb0\u5185\u5bb9",rows:"5"}))),s.a.createElement(ie,{style:{textAlign:"right"}},s.a.createElement(g.a,{loading:u,style:{marginRight:"10px"},onClick:function(){e.form.resetFields(),x("editor_nodte_area")}},"\u53d6\u6d88"),s.a.createElement(g.a,{type:"primary",onClick:function(){e.form.validateFields((function(n,i){n||(w(!0),_(t,i,(function(){x("editor_nodte_area"),e.form.resetFields()})))}))}},"\u63d0\u4ea4")))),s.a.createElement(te,{identifier:t,inputValue:a,onDebuggerCode:function(e){d(t,e,"debug")},onSubmitForm:function(){i(t,n,"submit")}}))}))),re=n(1522),se=n(66);t.default=Object(se.h)(Object(a.b)((function(e){var t=e.userReducer.userInfo,n=e.ojForUserReducer,i=n.hack_identifier,o=n.user_program_identifier;return{hack:n.hack,userInfo:t,user_program_identifier:o,hack_identifier:i}}),(function(e){return{getUserProgramDetail:function(t){return e(x.a.getUserProgramDetail(t))},saveUserProgramIdentifier:function(t){return e(x.a.saveUserProgramIdentifier(t))},saveEditorCodeForDetail:function(t){return e(x.a.saveEditorCodeForDetail(t))},restoreInitialCode:function(t,n){return e(x.a.restoreInitialCode(t,n))},changeShowOrHideControl:function(t){return e(x.a.changeShowOrHideControl(t))},clearOjForUserReducer:function(){return e(x.a.clearOjForUserReducer())},changeUserCodeTab:function(t){return e(x.a.changeUserCodeTab(t))}}}))(Object(f.d)()((function(e){var t=Object(r.useState)(!0),n=Object(o.a)(t,2),a=n[0],u=n[1],c=e.hack,d=e.userInfo,h=e.restoreInitialCode,p=e.changeUserCodeTab,f=e.changeShowOrHideControl,g=e.match.params,m=e.getUserProgramDetail,v=e.saveUserProgramIdentifier,y=g.id,b=g.tab;Object(r.useEffect)((function(){v(y),m(y),b&&p(b)}),[]),Object(r.useEffect)((function(){var t=e.hack;(void 0===t?{}:t).modify_code&&a&&(u(!1),_())}),[e,a,u]);var _=function(){e.confirm({title:"\u63d0\u793a",content:s.a.createElement("p",null,"\u4ee3\u7801\u6587\u4ef6\u6709\u66f4\u65b0\u5566 ",s.a.createElement("br",null),"\u8fd8\u672a\u63d0\u4ea4\u7684\u4ee3\u7801\uff0c\u8bf7\u81ea\u884c\u4fdd\u5b58"),onOk:function(){h(y,"\u66f4\u65b0\u6210\u529f")}})};return s.a.createElement("div",{className:"student_study_warp"},s.a.createElement("div",{className:"student_study_header"},s.a.createElement(re.a,{userInfo:d}),s.a.createElement("div",{className:"study_name"},s.a.createElement("span",null,c.name)),s.a.createElement("div",{className:"study_quit"},s.a.createElement("span",{style:{display:d.hack_manager?"inline-block":"none"},onClick:function(){var t;(t=c.identifier)&&(f(!1),e.saveEditorCodeForDetail(""),e.clearOjForUserReducer(),e.history.push("/problems/".concat(t,"/edit")))},className:"quit-btn"},s.a.createElement(i.a,{type:"form",className:"quit-icon"})," \u7f16\u8f91"),s.a.createElement("span",{onClick:function(){e.clearOjForUserReducer(),f(!1),e.saveEditorCodeForDetail(""),e.history.push("/problems")},className:"quit-btn"},s.a.createElement(i.a,{type:"poweroff",className:"quit-icon"})," \u9000\u51fa"))),s.a.createElement("div",{className:"split-pane-area"},s.a.createElement(l.a,{className:"outer-split-pane",split:"vertical",minSize:350,maxSize:-350,defaultSize:"40%"},s.a.createElement("div",{className:"split-pane-left"},s.a.createElement(U,null)),s.a.createElement(l.a,{split:"vertical",defaultSize:"100%",allowResize:!1},s.a.createElement(oe,{updateNotice:_}),s.a.createElement("div",null)))))}))))}])]); |