scorpio-menu
Version:
react右键菜单
1 lines • 2.03 MB
JavaScript
!function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,i,r){for(var s,a,u=0,l=[];u<t.length;u++)a=t[u],o[a]&&l.push(o[a][0]),o[a]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(n&&n(t,i,r);l.length;)l.shift()()};var i={},o={53:0};t.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(u);var t=o[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var i=o[e];if(0===i)return new Promise(function(e){e()});if(i)return i[2];var r=new Promise(function(t,n){i=o[e]=[t,n]});i[2]=r;var s=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,t.nc&&a.setAttribute("nonce",t.nc),a.src=t.p+"static/js/"+({}[e]||e)+"."+{0:"0bf59aa1",1:"19a92418",2:"4e12c5f3",3:"bd57076b",4:"8bb18300",5:"cfd3dbe1",6:"59314c66",7:"30117968",8:"b7a860c4",9:"d5b8e56a",10:"fe9db5fb",11:"140bce48",12:"214ffa5f",13:"ac2b74e5",14:"735326bf",15:"8dfe789d",16:"48dd87ab",17:"0920d852",18:"bca13fcc",19:"30941cd6",20:"cc782923",21:"f7f66e86",22:"09cee8ac",23:"6071e905",24:"5c3ff7a0",25:"2a10be35",26:"8bfc8abf",27:"dd7cf399",28:"92bd7cd8",29:"913738e7",30:"96a76e33",31:"6878edfd",32:"fbed8d84",33:"02b39b4d",34:"109f1791",35:"a713bdff",36:"07bb22a8",37:"2a1078e6",38:"8d8d4251",39:"3703d361",40:"dac98a2f",41:"1fd3a64e",42:"fb586a70",43:"695b7a9c",44:"fcc4f0ec",45:"d86be5ba",46:"d531d430",47:"b883c6a5",48:"6f556be7",49:"139f1a16",50:"074a8b7a",51:"8cc04a23",52:"06b4b3d3"}[e]+".chunk.js";var u=setTimeout(n,12e4);return a.onerror=a.onload=n,s.appendChild(a),r},t.m=e,t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t.oe=function(e){throw console.error(e),e},t(t.s=207)}([function(e,t,n){"use strict";function i(e){return"function"===typeof e.dispose&&0===e.dispose.length}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0!==t.length?(o(e),o(t),[]):e?(e.dispose(),e):void 0}function r(e){return{dispose:function(){return o(e)}}}function s(e){return{dispose:function(){e()}}}t.e=i,t.d=o,t.c=r,t.f=s,n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var a=function(){function e(){this._toDispose=[]}return Object.defineProperty(e.prototype,"toDispose",{get:function(){return this._toDispose},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._toDispose=o(this._toDispose)},e.prototype._register=function(e){return this._toDispose.push(e),e},e.None=Object.freeze({dispose:function(){}}),e}(),u=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(9),o=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){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))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.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)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,o=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,o=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,o=t.startColumn),n.endLineNumber>t.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return i<a?(i=a,o=u):i===a&&(o=Math.max(o,u)),r>l?(r=l,s=c):r===l&&(s=Math.min(s,c)),i>r?null:i===r&&o>s?null:new e(i,o,r,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new i.a(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new i.a(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){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)},e.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)},e.compareRangesUsingStarts=function(e,t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var o=0|e.startColumn,r=0|t.startColumn;if(o===r){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){return(0|e.endColumn)-(0|t.endColumn)}return s-a}return o-r}return n-i},e.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},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}()},function(e,t,n){"use strict";function i(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,n){var i=n[0];return"undefined"!==typeof t[i]?t[i]:e})}function o(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return i(t,n)}t.a=o},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("")}function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(B,function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]})}function s(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function a(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function u(e,t){return void 0===t&&(t=" "),c(l(e,t),t)}function l(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)}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;;){if(-1===(r=e.lastIndexOf(t,o-1))||r+n!==o)break;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 n>0?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=a(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"),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){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 _(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 v(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function y(e,t){return e<t?-1:e>t?1:0}function b(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){w(o)&&(o+=32),w(r)&&(r+=32);var s=o-r;if(0!==s)return C(o)&&C(r)?s:y(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function C(e){return e>=97&&e<=122}function w(e){return e>=65&&e<=90}function S(e){return C(e)||w(e)}function L(e,t){return(e?e.length:0)===(t?t.length:0)&&O(e,t)}function O(e,t,n){if(void 0===n&&(n=e.length),"string"!==typeof e||"string"!==typeof t)return!1;for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(S(o)&&S(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 x(e,t){var n=t.length;return!(t.length>e.length)&&O(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 E(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 k(e){return 55296<=e&&e<=56319}function I(e){return 56320<=e&&e<=57343}function D(e){return V.test(e)}function T(e){return H.test(e)}function M(e){return z.test(e)}function P(e){for(var t=0,n=e.length;t<n;t++)if(R(e.charCodeAt(t)))return!0;return!1}function R(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function A(e){return e&&e.length>0&&65279===e.charCodeAt(0)}function F(e){return btoa(encodeURIComponent(e))}function j(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"empty",function(){return W}),t.isFalsyOrWhitespace=i,t.pad=o,t.format=r,t.escape=s,t.escapeRegExpCharacters=a,t.trim=u,t.ltrim=l,t.rtrim=c,t.convertSimple2RegExpPattern=d,t.startsWith=h,t.endsWith=p,t.createRegExp=f,t.regExpLeadsToEndlessLoop=g,t.firstNonWhitespaceIndex=m,t.getLeadingWhitespace=_,t.lastNonWhitespaceIndex=v,t.compare=y,t.compareIgnoreCase=b,t.isLowerAsciiLetter=C,t.isUpperAsciiLetter=w,t.equalsIgnoreCase=L,t.startsWithIgnoreCase=x,t.commonPrefixLength=N,t.commonSuffixLength=E,t.isHighSurrogate=k,t.isLowSurrogate=I,t.containsRTL=D,t.containsEmoji=T,t.isBasicASCII=M,t.containsFullWidthCharacter=P,t.isFullWidthCharacter=R,n.d(t,"UTF8_BOM_CHARACTER",function(){return U}),t.startsWithUTF8BOM=A,t.safeBtoa=F,t.repeat=j;var W="",B=/{(\d+)}/g,V=/(?:[\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])/,H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/,z=/^[\t\n\r\x20-\x7E]*$/,U=String.fromCharCode(65279)},function(e,t,n){"use strict";function i(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function o(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1}function r(e,t,n,i){return new se(e,t,n,i)}function s(e){return function(t){return e(new Y.b(t))}}function a(e){return function(t){return e(new Z.a(t))}}function u(e,t){return r(e,"mouseout",function(n){for(var i=n.relatedTarget||n.toElement;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}function l(e){if(!ue){var t=function(e){return setTimeout(function(){return e((new Date).getTime())},0)};ue=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return ue.call(self,e)}function c(e,t,n,i,o){return new he(e,t,n,i,o)}function d(e){return document.defaultView.getComputedStyle(e,null)}function h(e,t,n){var i=d(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),pe(e,o)}function p(e){if(e!==document.body)return new ge(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new ge(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientWidth)return new ge(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new ge(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}function f(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=d(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=fe.getBorderLeftWidth(e),n+=fe.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function g(e){var t=e.getBoundingClientRect();return{left:t.left+me.scrollX,top:t.top+me.scrollY,width:t.width,height:t.height}}function m(e){var t=fe.getMarginLeft(e)+fe.getMarginRight(e);return e.offsetWidth+t}function _(e){var t=fe.getBorderLeftWidth(e)+fe.getBorderRightWidth(e),n=fe.getPaddingLeft(e)+fe.getPaddingRight(e);return e.offsetWidth-t-n}function v(e){var t=fe.getBorderTopWidth(e)+fe.getBorderBottomWidth(e),n=fe.getPaddingTop(e)+fe.getPaddingBottom(e);return e.offsetHeight-t-n}function y(e){var t=fe.getMarginTop(e)+fe.getMarginBottom(e);return e.offsetHeight+t}function b(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function C(e,t,n){for(;e;){if(ne(e,t))return e;if(n)if("string"===typeof n){if(ne(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function w(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}function S(){return _e||(_e=w()),_e}function L(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function O(e,t,n){void 0===n&&(n=S()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function x(e,t){if(void 0===t&&(t=S()),t){for(var n=L(t),i=[],o=0;o<n.length;o++){-1!==n[o].selectorText.indexOf(e)&&i.push(o)}for(var o=i.length-1;o>=0;o--)t.sheet.deleteRule(i[o])}}function N(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}function E(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function k(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}function I(e){return new be(e)}function D(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]}function T(e,t){return e.insertBefore(t,e.firstChild),t}function M(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=Ce.exec(e);if(!o)throw new Error("Bad use of emmet");var r=document.createElement(o[1]||"div");return o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),Object.keys(t||{}).forEach(function(e){if(/^on\w+$/.test(e))r[e]=t[e];else if("selected"===e){var n=t[e];n&&r.setAttribute(e,"true")}else r.setAttribute(e,t[e])}),n.filter(function(e){return!!e}).forEach(function(e){e instanceof Node?r.appendChild(e):r.appendChild(document.createTextNode(e))}),r}function P(){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 R(){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 A(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function F(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=A(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function j(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function W(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function B(e){if(z.e||G.i)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}t.l=i,t.D=o,n.d(t,"z",function(){return ne}),n.d(t,"f",function(){return ie}),n.d(t,"G",function(){return oe}),n.d(t,"N",function(){return re}),t.g=r,n.d(t,"j",function(){return ae}),t.h=u,n.d(t,"J",function(){return V}),n.d(t,"L",function(){return H}),t.i=c,t.r=d,t.q=p,n.d(t,"b",function(){return ge}),t.w=f,t.u=g,n.d(t,"e",function(){return me}),t.y=m,t.t=_,t.s=v,t.x=y,t.B=b,t.p=C,t.o=w,t.n=O,t.F=x,t.C=N,n.d(t,"d",function(){return ve}),n.d(t,"c",function(){return ye}),t.K=E,t.I=k,t.O=I,t.k=D,t.E=T,t.a=M,t.M=P,t.A=R,t.H=F,t.v=j,t.m=W,t.P=B;var V,H,z=n(14),U=n(10),K=n(6),q=n(0),G=n(26),Z=n(51),Y=n(37),X=n(5),$=n(80),J=this&&this.__extends||function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(!n)return void(this._lastStart=-1);t=t.trim();var i=n.length,o=t.length;if(0===o)return void(this._lastStart=-1);if(i<o)return void(this._lastStart=-1);if(n===t)return this._lastStart=0,void(this._lastEnd=i);for(var r,s=-1;(s=n.indexOf(t,s+1))>=0;){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(s>0&&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},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.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)})})},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.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))},e.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)})})},e.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)},e}()),ee=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return t&&e.classList&&e.classList.contains(t)},e.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)})})},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.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)})})},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),te=G.k?Q:ee,ne=te.hasClass.bind(te),ie=te.addClass.bind(te),oe=te.removeClass.bind(te),re=te.toggleClass.bind(te),se=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}(),ae=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=s(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=a(n)),r(e,t,o,i)},ue=null,le=function(){function e(e,t){this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(K.e)(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();!function(){var e=[],t=null,n=!1,i=!1,o=function(){for(n=!1,t=e,e=[],i=!0;t.length>0;){t.sort(le.sort);t.shift().execute()}i=!1};H=function(t,i){void 0===i&&(i=0);var r=new le(t,i);return e.push(r),n||(n=!0,l(o)),r},V=function(e,n){if(i){var o=new le(e,n);return t.push(o),o}return H(e,n)}}();var ce=16,de=function(e,t){return t},he=function(e){function t(t,n,i,o,s){void 0===o&&(o=de),void 0===s&&(s=ce);var a=e.call(this)||this,u=null,l=0,c=a._register(new U.f),d=function(){l=(new Date).getTime(),i(u),u=null};return a._register(r(t,n,function(e){u=o(u,e);var t=(new Date).getTime()-l;t>=s?(c.cancel(),d()):c.setIfNotSet(d,s-t)})),a}return J(t,e),t}(q.a),pe=function(){return function(e,t){return parseFloat(t)||0}}(),fe={getBorderLeftWidth:function(e){return h(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return h(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return h(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return h(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return h(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return h(e,"padding-right","paddingRight")},getPaddingTop:function(e){return h(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return h(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return h(e,"margin-left","marginLeft")},getMarginTop:function(e){return h(e,"margin-top","marginTop")},getMarginRight:function(e){return h(e,"margin-right","marginRight")},getMarginBottom:function(e){return h(e,"margin-bottom","marginBottom")},__commaSentinel:!1},ge=function(){function e(e,t){this.width=e,this.height=t}return e}(),me=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),_e=null,ve={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:G.n?"webkitAnimationStart":"animationstart",ANIMATION_END:G.n?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:G.n?"webkitAnimationIteration":"animationiteration"},ye={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},be=function(){function e(e){var t=this;this._onDidFocus=new X.a,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new X.a,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=!1,i=!1,o=function(){i=!1,n||(n=!0,t._onDidFocus.fire())},r=function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire())},0))};Object($.a)(e,ve.FOCUS,!0)(o,null,this.disposables),Object($.a)(e,ve.BLUR,!0)(r,null,this.disposables)}return e.prototype.dispose=function(){this.disposables=Object(q.d)(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}(),Ce=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/},function(e,t,n){"use strict";function i(e){return function(t,n,i){void 0===n&&(n=null);var o=e(function(e){return o.dispose(),t.call(n,e)},null,i);return o}}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),Object(h.c)(e.map(function(e){return e(function(e){return t.call(n,e)},null,i)}))}}function r(e,t,n,i){void 0===n&&(n=100),void 0===i&&(i=!1);var o,r=void 0,s=void 0,a=0,u=new f({onFirstListenerAdd:function(){o=e(function(e){a++,r=t(r,e),i&&!s&&u.fire(r),clearTimeout(s),s=setTimeout(function(){var e=r;r=void 0,s=void 0,(!i||a>1)&&u.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return u.event}function s(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e))},null,o)}}function a(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e)},null,o)}}function u(e){return new _(e)}n.d(t,"b",function(){return l}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return g}),t.k=i,t.f=o,t.h=r,n.d(t,"c",function(){return m}),t.j=s,t.i=a,t.g=u,n.d(t,"e",function(){return v});var l,c=n(6),d=n(224),h=n(0),p=n(153);!function(e){var t={dispose:function(){}};e.None=function(){return t}}(l||(l={}));var f=function(){function e(e){this._options=e}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,o){t._listeners||(t._listeners=new p.a);var r=t._listeners.isEmpty();r&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s=t._listeners.push(i?[n,i]:n);r&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i);var a;return a={dispose:function(){a.dispose=e._noop,t._disposed||(s(),t._options&&t._options.onLastListenerRemove&&t._listeners.isEmpty()&&t._options.onLastListenerRemove(t))}},Array.isArray(o)&&o.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var i=this._deliveryQueue.shift(),o=i[0],r=i[1];try{"function"===typeof o?o.call(void 0,r):o[0].call(o[1],r)}catch(n){Object(c.e)(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}(),g=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new f({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return Object(h.f)(Object(d.a)(i))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}(),m=function(){function e(){this.buffers=[]}return e.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)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}(),_=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(s(this._event,t))},e.prototype.filter=function(t){return new e(a(this._event,t))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}(),v=function(){function e(){this.emitter=new f,this.event=this.emitter.event,this.disposable=h.a.None}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}()},function(e,t,n){"use strict";function i(e){var t=e.detail,n=t.id;if(t.parent)return void(t.handler&&h&&delete h[n]);h[n]=t,1===Object.keys(h).length&&setTimeout(function(){var e=h;h={},Object.keys(e).forEach(function(t){var n=e[t];n.exception?o(n.exception):n.error&&o(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack)})},0)}function o(e){a(e)||f.onUnexpectedError(e)}function r(e){a(e)||f.onUnexpectedExternalError(e)}function s(e){if(e instanceof Error){return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}}return e}function a(e){return e instanceof Error&&e.name===g&&e.message===g}function u(){var e=new Error(g);return e.name=e.message,e}function l(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function c(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}t.e=o,t.f=r,t.g=s,t.d=a,t.a=u,t.b=l,t.c=c;var d=n(8),h={};d.b.addEventListener("error",i);var p=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}(),f=new p,g="Canceled"},function(e,t,n){"use strict";function i(e,t){h.a.registerCommand(e,function(e,n){return t(e,n||{})})}function o(e,t){i(e,function(e,n){var i=n.resource,o=n.position;if(!(i instanceof d.a))throw Object(c.b)("resource");if(!m.a.isIPosition(o))throw Object(c.b)("position");var r=e.get(_.a).getModel(i);if(!r)throw Object(c.b)("Can not find open model for "+i);var s=m.a.lift(o);return t(r,s,n)})}function r(e){return N.INSTANCE.registerEditorCommand(e),e}function s(e){N.INSTANCE.registerEditorAction(new e)}function a(e){N.INSTANCE.registerEditorAction(e)}function u(e){N.INSTANCE.registerEditorContribution(e)}n.d(t,"a",function(){return S}),n.d(t,"c",function(){return L}),n.d(t,"b",function(){return O}),t.j=i,t.e=o,t.g=r,t.f=s,t.i=a,t.h=u,n.d(t,"d",function(){return l});var l,c=n(6),d=n(28),h=n(30),p=n(90),f=n(40),g=n(85),m=n(9),_=n(44),v=n(41),y=n(16),b=n(29),C=this&&this.__extends||function(){var 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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},S=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menubarOpts=e.menubarOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(this._menubarOpts&&v.d.appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?y.d.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 h.a.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return C(n,t),n.prototype.runEditorCommand=function(t,n,i){e(n)&&this._callback(e(n))},n}(t)},t.prototype.runCommand=function(e,t){var n=this,i=e.get(b.a),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext(function(e){if(e.get(y.e).contextMatchesRules(n.precondition))return n.runEditorCommand(e,o,t)})},t}(S),O=function(e){function t(t){var n=e.call(this,t)||this;return n.label=t.label,n.alias=t.alias,n.menuOpts=t.menuOpts,n}return C(t,e),t.prototype.register=function(){this.menuOpts&&v.d.appendMenuItem(v.b.EditorContext,{command:{id:this.id,title:this.label},when:y.d.and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),e.prototype.register.call(this)},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(g.a).publicLog("editorActionInvoked",w({name:this.label,id:this.id},t.getTelemetryData()))},t}(L);!function(e){function t(e){return N.INSTANCE.getEditorCommand(e)}function n(){return N.INSTANCE.getEditorActions()}function i(){return N.INSTANCE.getEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i}(l||(l={}));var x={EditorCommonContributions:"editor.contributions"},N=function(){function e(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();f.a.add(x.EditorCommonContributions,N.INSTANCE)},function(e,t,n){"use strict";(function(e,i){n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var o;!function(){var t=Object.create(null);t["WinJS/Core/_WinJS"]={};var n=function(e,n,i){var o={},r=!1,s=n.map(function(e){return"exports"===e?(r=!0,o):t[e]}),a=i.apply({},s);t[e]=r?o:a};n("WinJS/Core/_Global",[],function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof e?e:{}}),n("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){function t(e){return e.supportedForProcessing=!0,e}var n=!!e.Windows,o=null;return{hasWinRT:n,markSupportedForProcessing:t,_setImmediate:function(t){null===o&&(o=e.setImmediate?e.setImmediate.bind(e):"undefined"!==typeof i&&"function"===typeof i.nextTick?i.nextTick.bind(i):e.setTimeout.bind(e)),o(t)}}}),n("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){return e.msWriteProfilerMark||function(){}}),n("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o<r;o++){var u=s[o],l=95!==u.charCodeAt(0),c=t[u];!c||"object"!==typeof c||void 0===c.value&&"function"!==typeof c.get&&"function"!==typeof c.set?l?a?e.forEach(function(e){e[u]=c}):e[u]=c:(i=i||{},i[u]={value:c,enumerable:l,configurable:!0,writable:!0}):(void 0===c.enumerable&&(c.enumerable=l),n&&c.setName&&"function"===typeof c.setName&&c.setName(n+"."+u),i=i||{},i[u]=c)}i&&(a?e.forEach(function(e){Object.defineProperties(e,i)}):Object.defineProperties(e,i))}return function(){function n(n,i){var o=n||{};if(i){var r=i.split(".");o===t&&"WinJS"===r[0]&&(o=e,r.splice(0,1));for(var s=0,a=r.length;s<a;s++){var u=r[s];o[u]||Object.defineProperty(o,u,{value:{},writable:!1,enumerable:!0,configurable:!0}),o=o[u]}}return o}function r(e,t,i){var r=n(e,t);return i&&o(r,i,t||"<ANONYMOUS>"),r}function s(e,n){return r(t,e,n)}function a(e){var t,n,o=c.uninitialized;return{setName:function(e){t=e},get:function(){switch(o){case c.initialized:return n;case c.uninitialized:o=c.working;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{i("WinJS.Namespace._lazy:"+t+",StopTM"),o=c.uninitialized}return e=null,o=c.initialized,n;case c.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(o){case c.working:throw"Illegal: reentrancy on initialization";default:o=c.initialized,n=e}},enumerable:!0,configurable:!0}}function u(e,i,r){var s=[e],a=null;return i&&(a=n(t,i),s.push(a)),o(s,r,i||"<ANONYMOUS>"),a}var l=e;l.Namespace||(l.Namespace=Object.create(Object.prototype));var c={uninitialized:1,working:2,initialized:3};Object.defineProperties(l.Namespace,{defineWithParent:{value:r,writable:!0,enumerable:!0,configurable:!0},define:{value:s,writable:!0,enumerable:!0,configurable:!0},_lazy:{value:a,writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:u,writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,i){return e=e||function(){},n.markSupportedForProcessing(e),t&&o(e.prototype,t),i&&o(e,i),e}function i(e,i,r,s){if(e){i=i||function(){};var a=e.prototype;return i.prototype=Object.create(a),n.markSupportedForProcessing(i),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0,enumerable:!0}),r&&o(i.prototype,r),s&&o(i,s),i}return t(i,r,s)}function r(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t<n;t++)o(e.prototype,arguments[t]);return e}e.Namespace.define("WinJS.Class",{define:t,derive:i,mix:r})}(),{Namespace:e.Namespace,Class:e.Class}}),n("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){var t=e.Class.derive(Error,function(e,t){this.name=e,this.message=t||e},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:t}),t}),n("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,t){function n(e){var t="_on"+e+"state";return{get:function(){var e=this[t];return e&&e.userHandler},set:function(n){var i=this[t];n?(i||(i={wrapper:function(e){return i.userHandler(e)},userHandler:n},Object.defineProperty(this,t,{value:i,enumerable:!1,writable:!0,configurable:!0}),this.addEventListener(e,i.wrapper,!1)),i.userHandler=n):i&&(this.removeEventListener(e,i.wrapper,!1),this[t]=null)},enumerable:!0}}function i(){for(var e={},t=0,i=arguments.length;t<i;t++){var o=arguments[t];e["on"+o]=n(o)}return e}var o=t.Class.define(function(e,t,n){this.detail=t,this.target=n,this.timeStamp=Date.now(),this.type=e},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target}},defaultPrevented:{get:function(){return this._preventDefaultCalled}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0},stopPropagation:function(){}},{supportedForProcessing:!1}),r={_listeners:null,addEventListener:function(e,t,n){n=n||!1,this._listeners=this._listeners||{};for(var i=this._listeners[e]=this._listeners[e]||[],o=0,r=i.length;o<r;o++){var s=i[o];if(s.useCapture===n&&s.listener===t)return}i.push({listener:t,useCapture:n})},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){var i=new o(e,t,this);n=n.slice(0,n.length);for(var r=0,s=n.length;r<s&&!i._stopImmediatePropagationCalled;r++)n[r].listener(i);return i.defaultPrevented||!1}return!1},removeEventListener:function(e,t,n){n=n||!1;var i=this._listeners&&this._listeners[e];if(i)for(var o=0,r=i.length;o<r;o++){var s=i[o];if(s.listener===t&&s.useCapture===n){i.splice(o,1),0===i.length&&delete this._listeners[e];break}}}};t.Namespace._moduleDefine(e,"WinJS.Utilities",{_createEventProperty:n,createEventProperties:i,eventMixin:r})}),n("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){function t(e){return e}return{_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||t,_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||t,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||t,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||t}}),n("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function(e,t,n,i,o,r){function s(){}function a(e,t){var n;n=t&&"object"===typeof t&&"function"===typeof t.then?P:j,e._value=t,e._setState(n)}function u(e,t,n,i,o,r){return{exception:e,error:t,promise:n,handler:r,id:i,parent:o}}function l(e,t,n,i){var o=n._isException,r=n._errorId;return u(o?t:null,o?null:t,e,r,n,i)}function c(e,t,n){var i=n._isException,o=n._errorId;return b(e,o,i),u(i?t:null,i?null:t,e,o,n)}function d(e,t){var n=++H;return b(e,n),u(null,t,e,n)}function h(e,t){var n=++H;return b(e,n,!0),u(t,null,e,n)}function p(e,t,n,i){y(e,{c:t,e:n,p:i,asyncOpID:r._traceAsyncOperationStarting("WinJS.Promise.done")})}function f(e,t,n,i){e._value=t,_(e,t,n,i),e._setState(B)}function g(t,n){var i=t._value,o=t._listeners;if(o){t._listeners=null;var s,a;for(s=0,a=Array.isArray(o)?o.length:1;s<a;s++){var u=1===a?o:o[s],l=u.c,c=u.promise;if(r._traceAsyncOperationCompleted(u.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),c){r._traceAsyncCallbackStarting(u.asyncOpID);try{c._setCompleteValue(l?l(i):i)}catch(e){c._setExceptionValue(e)}finally{r._traceAsyncCallbackCompleted()}c._state!==P&&c._listeners&&n.push(c)}else Z.prototype.done.call(t,l)}}}function m(t,n){var i=t._value,o=t._listeners;if(o){t._listeners=null;var s,a;for(s=0,a=Array.isArray(o)?o.length:1;s<a;s++){var u=1===a?o:o[s],c=u.e,d=u.promise,h=e.Debug&&(i&&i.name===k?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(r._traceAsyncOperationCompleted(u.asyncOpID,h),d){var p=!1;try{c?(r._traceAsyncCallbackStarting(u.asyncOpID),p=!0,c.handlesOnError||_(d,i,l,t,c),d._setCompleteValue(c(i))):d._setChainedErrorValue(i,t)}catch(e){d._setExceptionValue(e)}finally{p&&r._traceAsyncCallbackCompleted()}d._state!==P&&d._listeners&&n.push(d)}else q.prototype.done.call(t,null,c)}}}function _(e,t,n,i,o){if(N._listeners[E]){if(t instanceof Error&&t.message===k)return;N.dispatchEvent(E,n(e,t,i,o))}}function v(e,t){var n=e._listeners;if(n){var i,o;for(i=0,o=Array.isArray(n)?n.length:1;i<o;i++){var r=1===o?n:n[i],s=r.p;if(s)try{s(t)}catch(e){}r.c||r.e||!r.promise||r.promise._progress(t)}}}function y(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n],n.push(t)):n=t,e._listeners=n}function b(e,t,n){e._isException=n||!1,e._errorId=t}function C(e,t,n,i){e._value=t,_(e,t,n,i),e._setState(V)}function w(e,t){var n;n=t&&"object"===typeof t&&"function"===typeof t.then?P:W,e._value=t,e._setState(n)}function S(e,t,n,i){var o=new K(e);return y(e,{promise:o,c:t,e:n,p:i,asyncOpID:r._traceAsyncOperationStarting("WinJS.Promise.then")}),o}function L(n){var i;return new Y(function(o){n?i=e.setTimeout(o,n):t._setImmediate(o)},function(){i&&e.clearTimeout(i)})}function O(e,t){var n=function(){t.cancel()},i=function(){e.cancel()};return e.then(n),t.then(i,i),t}e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var x=n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),o.eventMixin),N=new x;N._listeners={};var E="error",k="Canceled",I=!1,D={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};D.all=D.promise|D.thenPromise|D.errorPromise|D.exceptionPromise|D.completePromise;var T,M,P,R,A,F,j,W,B,V,H=1;T={name:"created",enter:function(e){e._setState(M)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},M={name:"working",enter:s,cancel:function(e){e._setState(A)},done:p,then:S,_completed:a,_error:f,_notify:s,_progress:v,_setCompleteValue:w,_setErrorValue:C},P={name:"waiting",enter:function(e){var t=e._value;if(t instanceof K&&t._state!==V&&t._state!==W)y(t,{promise:e});else{var n=function(i){t._errorId?e._chainedError(i,t):(_(e,i,l,t,n),e._error(i))};n.handlesOnError=!0,t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(R)},done:p,then:S,_completed:a,_error:f,_notify:s,_progress:v,_setCompleteValue:w,_setErrorValue:C},R={name:"waiting_canceled",enter:function(e){e._setState(F);var t=e._value;t.cancel&&t.cancel()},cancel:s,done:p,then:S,_completed:a,_error:f,_notify:s,_progress:v,_setCompleteValue:w,_setErrorValue:C},A={name:"canceled",enter:function(e){e._setState(F),e._cancelAction()},cancel:s,done:p,then:S,_completed:a,_error:f,_notify:s,_progress:v,_setCompleteValue:w,_setErrorValue:C},F={name:"canceling",enter:function(e){var t=new Error(k);t.name=t.message,e._value=t,e._setState(B)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},j={name:"complete_notify",enter:function(e){if(e.done=Z.prototype.done,e.then=Z.prototype.then,e._listeners)for(var t,n=[e];n.length;)t=n.shift(),t._state._notify(t,n);e._setState(W)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},W={name:"success",enter:function(e){e.done=Z.prototype.done,e.then=Z.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},B={name:"error_notify",enter:function(e){if(e.done=q.prototype.done,e.then=q.prototype.then,e._listeners)for(var t,n=[e];n.length;)t=n.shift(),t._state._notify(t,n);e._setState(V)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s},V={name:"error",enter:function(e){e.done=q.prototype.done,e.then=q.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s};var z,U=n.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run()},done:function(e,t,n){this._state.done(this,e,t,n)},then:function e(t,n,i){return this.then!==e?void this.then(t,n,i):this._state.then(this,t,n,i)},_chainedError:function(e,t){var n=this._state._error(this,e,c,t);return this._run(),n},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t},_error:function(e){var t=this._state._error(this,e,d);return this._run(),t},_progress:function(e){this._state._progress(this,e)},_setState:function(e){this._nextState=e},_setCompleteValue:function(e){this._state._setCompleteValue(this,e),this._run()},_setChainedErrorValue:function(e,t){var n=this._state._setErrorValue(this,e,c,t);return this._run(),n},_setExceptionValue:functio