UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

81 lines (61 loc) 7.72 MB
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ /***/ "../../node_modules/setimmediate/setImmediate.js": /*!********************************************************************!*\ !*** /mnt/vss/_work/1/s/node_modules/setimmediate/setImmediate.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n var script = doc.createElement(\"script\");\n script.onreadystatechange = function () {\n runIfPresent(handle);\n script.onreadystatechange = null;\n html.removeChild(script);\n script = null;\n };\n html.appendChild(script);\n };\n }\n\n function installSetTimeoutImplementation() {\n registerImmediate = function(handle) {\n setTimeout(runIfPresent, 0, handle);\n };\n }\n\n // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\n var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);\n attachTo = attachTo && attachTo.setTimeout ? attachTo : global;\n\n // Don't get fooled by e.g. browserify environments.\n if ({}.toString.call(global.process) === \"[object process]\") {\n // For Node.js before 0.9\n installNextTickImplementation();\n\n } else if (canUsePostMessage()) {\n // For non-IE10 modern browsers\n installPostMessageImplementation();\n\n } else if (global.MessageChannel) {\n // For web workers, where supported\n installMessageChannelImplementation();\n\n } else if (doc && \"onreadystatechange\" in doc.createElement(\"script\")) {\n // For IE 6–8\n installReadyStateChangeImplementation();\n\n } else {\n // For older browsers\n installSetTimeoutImplementation();\n }\n\n attachTo.setImmediate = setImmediate;\n attachTo.clearImmediate = clearImmediate;\n}(typeof self === \"undefined\" ? typeof global === \"undefined\" ? this : global : self));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../process/browser.js */ \"../../node_modules/process/browser.js\")))\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/setimmediate/setImmediate.js?"); /***/ }), /***/ "../../node_modules/timers-browserify/main.js": /*!*****************************************************************!*\ !*** /mnt/vss/_work/1/s/node_modules/timers-browserify/main.js ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\n__webpack_require__(/*! setimmediate */ \"../../node_modules/setimmediate/setImmediate.js\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/timers-browserify/main.js?"); /***/ }), /***/ "../monaco-editor/esm/vs/base/browser/browser.js": /*!*******************************************************!*\ !*** ../monaco-editor/esm/vs/base/browser/browser.js ***! \*******************************************************/ /*! exports provided: getZoomLevel, getTimeSinceLastZoomLevelChanged, onDidChangeZoomLevel, getPixelRatio, isIE, isEdge, isEdgeOrIE, isFirefox, isWebKit, isChrome, isSafari, isWebkitWebView, isIPad, isEdgeWebView, isStandalone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getZoomLevel\", function() { return getZoomLevel; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTimeSinceLastZoomLevelChanged\", function() { return getTimeSinceLastZoomLevelChanged; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onDidChangeZoomLevel\", function() { return onDidChangeZoomLevel; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPixelRatio\", function() { return getPixelRatio; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isIE\", function() { return isIE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEdge\", function() { return isEdge; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEdgeOrIE\", function() { return isEdgeOrIE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isFirefox\", function() { return isFirefox; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWebKit\", function() { return isWebKit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isChrome\", function() { return isChrome; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSafari\", function() { return isSafari; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWebkitWebView\", function() { return isWebkitWebView; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isIPad\", function() { return isIPad; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEdgeWebView\", function() { return isEdgeWebView; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isStandalone\", function() { return isStandalone; });\n/* harmony import */ var _common_event_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/event.js */ \"../monaco-editor/esm/vs/base/common/event.js\");\n/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nvar WindowManager = /** @class */ (function () {\r\n function WindowManager() {\r\n // --- Zoom Level\r\n this._zoomLevel = 0;\r\n this._lastZoomLevelChangeTime = 0;\r\n this._onDidChangeZoomLevel = new _common_event_js__WEBPACK_IMPORTED_MODULE_0__[\"Emitter\"]();\r\n this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event;\r\n }\r\n WindowManager.prototype.getZoomLevel = function () {\r\n return this._zoomLevel;\r\n };\r\n WindowManager.prototype.getTimeSinceLastZoomLevelChanged = function () {\r\n return Date.now() - this._lastZoomLevelChangeTime;\r\n };\r\n // --- Pixel Ratio\r\n WindowManager.prototype.getPixelRatio = function () {\r\n var ctx = document.createElement('canvas').getContext('2d');\r\n var dpr = window.devicePixelRatio || 1;\r\n var bsr = ctx.webkitBackingStorePixelRatio ||\r\n ctx.mozBackingStorePixelRatio ||\r\n ctx.msBackingStorePixelRatio ||\r\n ctx.oBackingStorePixelRatio ||\r\n ctx.backingStorePixelRatio || 1;\r\n return dpr / bsr;\r\n };\r\n WindowManager.INSTANCE = new WindowManager();\r\n return WindowManager;\r\n}());\r\nfunction getZoomLevel() {\r\n return WindowManager.INSTANCE.getZoomLevel();\r\n}\r\n/** Returns the time (in ms) since the zoom level was changed */\r\nfunction getTimeSinceLastZoomLevelChanged() {\r\n return WindowManager.INSTANCE.getTimeSinceLastZoomLevelChanged();\r\n}\r\nfunction onDidChangeZoomLevel(callback) {\r\n return WindowManager.INSTANCE.onDidChangeZoomLevel(callback);\r\n}\r\nfunction getPixelRatio() {\r\n return WindowManager.INSTANCE.getPixelRatio();\r\n}\r\nvar userAgent = navigator.userAgent;\r\nvar isIE = (userAgent.indexOf('Trident') >= 0);\r\nvar isEdge = (userAgent.indexOf('Edge/') >= 0);\r\nvar isEdgeOrIE = isIE || isEdge;\r\nvar isFirefox = (userAgent.indexOf('Firefox') >= 0);\r\nvar isWebKit = (userAgent.indexOf('AppleWebKit') >= 0);\r\nvar isChrome = (userAgent.indexOf('Chrome') >= 0);\r\nvar isSafari = (!isChrome && (userAgent.indexOf('Safari') >= 0));\r\nvar isWebkitWebView = (!isChrome && !isSafari && isWebKit);\r\nvar isIPad = (userAgent.indexOf('iPad') >= 0);\r\nvar isEdgeWebView = isEdge && (userAgent.indexOf('WebView/') >= 0);\r\nvar isStandalone = (window.matchMedia && window.matchMedia('(display-mode: standalone)').matches);\r\n\n\n//# sourceURL=webpack:///../monaco-editor/esm/vs/base/browser/browser.js?"); /***/ }), /***/ "../monaco-editor/esm/vs/base/browser/canIUse.js": /*!*******************************************************!*\ !*** ../monaco-editor/esm/vs/base/browser/canIUse.js ***! \*******************************************************/ /*! exports provided: BrowserFeatures */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BrowserFeatures\", function() { return BrowserFeatures; });\n/* harmony import */ var _browser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./browser.js */ \"../monaco-editor/esm/vs/base/browser/browser.js\");\n/* harmony import */ var _common_platform_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/platform.js */ \"../monaco-editor/esm/vs/base/common/platform.js\");\n/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n\r\n/**\r\n * Browser feature we can support in current platform, browser and environment.\r\n */\r\nvar BrowserFeatures = {\r\n clipboard: {\r\n writeText: (_common_platform_js__WEBPACK_IMPORTED_MODULE_1__[\"isNative\"]\r\n || (document.queryCommandSupported && document.queryCommandSupported('copy'))\r\n || !!(navigator && navigator.clipboard && navigator.clipboard.writeText)),\r\n readText: (_common_platform_js__WEBPACK_IMPORTED_MODULE_1__[\"isNative\"]\r\n || !!(navigator && navigator.clipboard && navigator.clipboard.readText)),\r\n richText: (function () {\r\n if (_browser_js__WEBPACK_IMPORTED_MODULE_0__[\"isIE\"]) {\r\n return false;\r\n }\r\n if (_browser_js__WEBPACK_IMPORTED_MODULE_0__[\"isEdge\"]) {\r\n var index = navigator.userAgent.indexOf('Edge/');\r\n var version = parseInt(navigator.userAgent.substring(index + 5, navigator.userAgent.indexOf('.', index)), 10);\r\n if (!version || (version >= 12 && version <= 16)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n })()\r\n },\r\n keyboard: (function () {\r\n if (_common_platform_js__WEBPACK_IMPORTED_MODULE_1__[\"isNative\"] || _browser_js__WEBPACK_IMPORTED_MODULE_0__[\"isStandalone\"]) {\r\n return 0 /* Always */;\r\n }\r\n if (navigator.keyboard || _browser_js__WEBPACK_IMPORTED_MODULE_0__[\"isSafari\"]) {\r\n return 1 /* FullScreen */;\r\n }\r\n return 2 /* None */;\r\n })(),\r\n touch: 'ontouchstart' in window || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0,\r\n pointerEvents: window.PointerEvent && ('ontouchstart' in window || window.navigator.maxTouchPoints > 0 || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0)\r\n};\r\n\n\n//# sourceURL=webpack:///../monaco-editor/esm/vs/base/browser/canIUse.js?"); /***/ }), /***/ "../monaco-editor/esm/vs/base/browser/contextmenu.js": /*!***********************************************************!*\ !*** ../monaco-editor/esm/vs/base/browser/contextmenu.js ***! \***********************************************************/ /*! exports provided: ContextSubMenu */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ContextSubMenu\", function() { return ContextSubMenu; });\n/* harmony import */ var _ui_menu_menu_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui/menu/menu.js */ \"../monaco-editor/esm/vs/base/browser/ui/menu/menu.js\");\n/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nvar __extends = (undefined && undefined.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\n\r\nvar ContextSubMenu = /** @class */ (function (_super) {\r\n __extends(ContextSubMenu, _super);\r\n function ContextSubMenu(label, entries) {\r\n var _this = _super.call(this, label, entries, 'contextsubmenu') || this;\r\n _this.entries = entries;\r\n return _this;\r\n }\r\n return ContextSubMenu;\r\n}(_ui_menu_menu_js__WEBPACK_IMPORTED_MODULE_0__[\"SubmenuAction\"]));\r\n\r\n\n\n//# sourceURL=webpack:///../monaco-editor/esm/vs/base/browser/contextmenu.js?"); /***/ }), /***/ "../monaco-editor/esm/vs/base/browser/dnd.js": /*!***************************************************!*\ !*** ../monaco-editor/esm/vs/base/browser/dnd.js ***! \***************************************************/ /*! exports provided: DataTransfers, DragAndDropData, StaticDND */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DataTransfers\", function() { return DataTransfers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DragAndDropData\", function() { return DragAndDropData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"StaticDND\", function() { return StaticDND; });\n// Common data transfers\r\nvar DataTransfers = {\r\n /**\r\n * Application specific resource transfer type\r\n */\r\n RESOURCES: 'ResourceURLs',\r\n /**\r\n * Browser specific transfer type to download\r\n */\r\n DOWNLOAD_URL: 'DownloadURL',\r\n /**\r\n * Browser specific transfer type for files\r\n */\r\n FILES: 'Files',\r\n /**\r\n * Typically transfer type for copy/paste transfers.\r\n */\r\n TEXT: 'text/plain'\r\n};\r\nvar DragAndDropData = /** @class */ (function () {\r\n function DragAndDropData(data) {\r\n this.data = data;\r\n }\r\n DragAndDropData.prototype.update = function () {\r\n // noop\r\n };\r\n DragAndDropData.prototype.getData = function () {\r\n return this.data;\r\n };\r\n return DragAndDropData;\r\n}());\r\n\r\nvar StaticDND = {\r\n CurrentDragAndDropData: undefined\r\n};\r\n\n\n//# sourceURL=webpack:///../monaco-editor/esm/vs/base/browser/dnd.js?"); /***/ }), /***/ "../monaco-editor/esm/vs/base/browser/dom.js": /*!***************************************************!*\ !*** ../monaco-editor/esm/vs/base/browser/dom.js ***! \***************************************************/ /*! exports provided: clearNode, removeNode, isInDOM, hasClass, addClass, addClasses, removeClass, removeClasses, toggleClass, addDisposableListener, addStandardDisposableListener, addStandardDisposableGenericMouseDownListner, addDisposableGenericMouseDownListner, addDisposableGenericMouseUpListner, addDisposableNonBubblingMouseOutListener, addDisposableNonBubblingPointerOutListener, runAtThisOrScheduleAtNextAnimationFrame, scheduleAtNextAnimationFrame, addDisposableThrottledListener, getComputedStyle, Dimension, getTopLeftOffset, getDomNodePagePosition, StandardWindow, getTotalWidth, getContentWidth, getContentHeight, getTotalHeight, isAncestor, findParentWithClass, createStyleSheet, createCSSRule, removeCSSRulesContainingSelector, isHTMLElement, EventType, EventHelper, saveParentsScrollTop, restoreParentsScrollTop, trackFocus, append, Namespace, $, show, hide, removeTabIndexAndUpdateFocus, getElementsByTagName, computeScreenAwareSize, windowOpenNoOpener, animate, asDomUri, asCSSUrl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearNode\", function() { return clearNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeNode\", function() { return removeNode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isInDOM\", function() { return isInDOM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasClass\", function() { return hasClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addClass\", function() { return addClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addClasses\", function() { return addClasses; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeClass\", function() { return removeClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeClasses\", function() { return removeClasses; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toggleClass\", function() { return toggleClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableListener\", function() { return addDisposableListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addStandardDisposableListener\", function() { return addStandardDisposableListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addStandardDisposableGenericMouseDownListner\", function() { return addStandardDisposableGenericMouseDownListner; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableGenericMouseDownListner\", function() { return addDisposableGenericMouseDownListner; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableGenericMouseUpListner\", function() { return addDisposableGenericMouseUpListner; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableNonBubblingMouseOutListener\", function() { return addDisposableNonBubblingMouseOutListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableNonBubblingPointerOutListener\", function() { return addDisposableNonBubblingPointerOutListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"runAtThisOrScheduleAtNextAnimationFrame\", function() { return runAtThisOrScheduleAtNextAnimationFrame; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"scheduleAtNextAnimationFrame\", function() { return scheduleAtNextAnimationFrame; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addDisposableThrottledListener\", function() { return addDisposableThrottledListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getComputedStyle\", function() { return getComputedStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Dimension\", function() { return Dimension; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTopLeftOffset\", function() { return getTopLeftOffset; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getDomNodePagePosition\", function() { return getDomNodePagePosition; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"StandardWindow\", function() { return StandardWindow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTotalWidth\", function() { return getTotalWidth; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getContentWidth\", function() { return getContentWidth; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getContentHeight\", function() { return getContentHeight; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTotalHeight\", function() { return getTotalHeight; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAncestor\", function() { return isAncestor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findParentWithClass\", function() { return findParentWithClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createStyleSheet\", function() { return createStyleSheet; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createCSSRule\", function() { return createCSSRule; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeCSSRulesContainingSelector\", function() { return removeCSSRulesContainingSelector; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isHTMLElement\", function() { return isHTMLElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EventType\", function() { return EventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EventHelper\", function() { return EventHelper; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"saveParentsScrollTop\", function() { return saveParentsScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"restoreParentsScrollTop\", function() { return restoreParentsScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trackFocus\", function() { return trackFocus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"append\", function() { return append; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Namespace\", function() { return Namespace; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$\", function() { return $; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"show\", function() { return show; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hide\", function() { return hide; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeTabIndexAndUpdateFocus\", function() { return removeTabIndexAndUpdateFocus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getElementsByTagName\", function() { return getElementsByTagName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"computeScreenAwareSize\", function() { return computeScreenAwareSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"windowOpenNoOpener\", function() { return windowOpenNoOpener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"animate\", function() { return animate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"asDomUri\", function() { return asDomUri; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"asCSSUrl\", function() { return asCSSUrl; });\n/* harmony import */ var _browser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./browser.js */ \"../monaco-editor/esm/vs/base/browser/browser.js\");\n/* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./event.js */ \"../monaco-editor/esm/vs/base/browser/event.js\");\n/* harmony import */ var _keyboardEvent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./keyboardEvent.js */ \"../monaco-editor/esm/vs/base/browser/keyboardEvent.js\");\n/* harmony import */ var _mouseEvent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mouseEvent.js */ \"../monaco-editor/esm/vs/base/browser/mouseEvent.js\");\n/* harmony import */ var _common_async_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/async.js */ \"../monaco-editor/esm/vs/base/common/async.js\");\n/* harmony import */ var _common_errors_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/errors.js */ \"../monaco-editor/esm/vs/base/common/errors.js\");\n/* harmony import */ var _common_event_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/event.js */ \"../monaco-editor/esm/vs/base/common/event.js\");\n/* harmony import */ var _common_lifecycle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/lifecycle.js */ \"../monaco-editor/esm/vs/base/common/lifecycle.js\");\n/* harmony import */ var _common_platform_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/platform.js */ \"../monaco-editor/esm/vs/base/common/platform.js\");\n/* harmony import */ var _common_arrays_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../common/arrays.js */ \"../monaco-editor/esm/vs/base/common/arrays.js\");\n/* harmony import */ var _common_network_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/network.js */ \"../monaco-editor/esm/vs/base/common/network.js\");\n/* harmony import */ var _canIUse_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./canIUse.js */ \"../monaco-editor/esm/vs/base/browser/canIUse.js\");\n/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nvar __extends = (undefined && undefined.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (undefined && undefined.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (undefined && undefined.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nfunction clearNode(node) {\r\n while (node.firstChild) {\r\n node.removeChild(node.firstChild);\r\n }\r\n}\r\nfunction removeNode(node) {\r\n if (node.parentNode) {\r\n node.parentNode.removeChild(node);\r\n }\r\n}\r\nfunction isInDOM(node) {\r\n while (node) {\r\n if (node === document.body) {\r\n return true;\r\n }\r\n node = node.parentNode || node.host;\r\n }\r\n return false;\r\n}\r\nvar _manualClassList = new /** @class */ (function () {\r\n function class_1() {\r\n this._lastStart = -1;\r\n this._lastEnd = -1;\r\n }\r\n class_1.prototype._findClassName = function (node, className) {\r\n var classes = node.className;\r\n if (!classes) {\r\n this._lastStart = -1;\r\n return;\r\n }\r\n className = className.trim();\r\n var classesLen = classes.length, classLen = className.length;\r\n if (classLen === 0) {\r\n this._lastStart = -1;\r\n return;\r\n }\r\n if (classesLen < classLen) {\r\n this._lastStart = -1;\r\n return;\r\n }\r\n if (classes === className) {\r\n this._lastStart = 0;\r\n this._lastEnd = classesLen;\r\n return;\r\n }\r\n var idx = -1, idxEnd;\r\n while ((idx = classes.indexOf(className, idx + 1)) >= 0) {\r\n idxEnd = idx + classLen;\r\n // a class that is followed by another class\r\n if ((idx === 0 || classes.charCodeAt(idx - 1) === 32 /* Space */) && classes.charCodeAt(idxEnd) === 32 /* Space */) {\r\n this._lastStart = idx;\r\n this._lastEnd = idxEnd + 1;\r\n return;\r\n }\r\n // last class\r\n if (idx > 0 && classes.charCodeAt(idx - 1) === 32 /* Space */ && idxEnd === classesLen) {\r\n this._lastStart = idx - 1;\r\n this._lastEnd = idxEnd;\r\n return;\r\n }\r\n // equal - duplicate of cmp above\r\n if (idx === 0 && idxEnd === classesLen) {\r\n this._lastStart = 0;\r\n this._lastEnd = idxEnd;\r\n return;\r\n }\r\n }\r\n this._lastStart = -1;\r\n };\r\n class_1.prototype.hasClass = function (node, className) {\r\n this._findClassName(node, className);\r\n return this._lastStart !== -1;\r\n };\r\n class_1.prototype.addClasses = function (node) {\r\n var _this = this;\r\n var classNames = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n classNames[_i - 1] = arguments[_i];\r\n }\r\n classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.addClass(node, name); }); });\r\n };\r\n class_1.prototype.addClass = function (node, className) {\r\n if (!node.className) { // doesn't have it for sure\r\n node.className = className;\r\n }\r\n else {\r\n this._findClassName(node, className); // see if it's already there\r\n if (this._lastStart === -1) {\r\n node.className = node.className + ' ' + className;\r\n }\r\n }\r\n };\r\n class_1.prototype.removeClass = function (node, className) {\r\n this._findClassName(node, className);\r\n if (this._lastStart === -1) {\r\n return; // Prevent styles invalidation if not necessary\r\n }\r\n else {\r\n node.className = node.className.substring(0, this._lastStart) + node.className.substring(this._lastEnd);\r\n }\r\n };\r\n class_1.prototype.removeClasses = function (node) {\r\n var _this = this;\r\n var classNames = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n classNames[_i - 1] = arguments[_i];\r\n }\r\n classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.removeClass(node, name); }); });\r\n };\r\n class_1.prototype.toggleClass = function (node, className, shouldHaveIt) {\r\n this._findClassName(node, className);\r\n if (this._lastStart !== -1 && (shouldHaveIt === undefined || !shouldHaveIt)) {\r\n this.removeClass(node, className);\r\n }\r\n if (this._lastStart === -1 && (shouldHaveIt === undefined || shouldHaveIt)) {\r\n this.addClass(node, className);\r\n }\r\n };\r\n return class_1;\r\n}());\r\nvar _nativeClassList = new /** @class */ (function () {\r\n function class_2() {\r\n }\r\n class_2.prototype.hasClass = function (node, className) {\r\n return Boolean(className) && node.classList && node.classList.contains(className);\r\n };\r\n class_2.prototype.addClasses = function (node) {\r\n var _this = this;\r\n var classNames = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n classNames[_i - 1] = arguments[_i];\r\n }\r\n classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.addClass(node, name); }); });\r\n };\r\n class_2.prototype.addClass = function (node, className) {\r\n if (className && node.classList) {\r\n node.classList.add(className);\r\n }\r\n };\r\n class_2.prototype.removeClass = function (node, className) {\r\n if (className && node.classList) {\r\n node.classList.remove(className);\r\n }\r\n };\r\n class_2.prototype.removeClasses = function (node) {\r\n var _this = this;\r\n var classNames = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n classNames[_i - 1] = arguments[_i];\r\n }\r\n classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.removeClass(node, name); }); });\r\n };\r\n class_2.prototype.toggleClass = function (node, className, shouldHaveIt) {\r\n if (node.classList) {\r\n node.classList.toggle(className, shouldHaveIt);\r\n }\r\n };\r\n return class_2;\r\n}());\r\n// In IE11 there is only partial support for `classList` which makes us keep our\r\n// custom implementation. Otherwise use the native implementation, see: http://caniuse.com/#search=classlist\r\nvar _classList = _browser_js__WEBPACK_IMPORTED_MODULE_0__[\"isIE\"] ? _manualClassList : _nativeClassList;\r\nvar hasClass = _classList.hasClass.bind(_classList);\r\nvar addClass = _classList.addClass.bind(_classList);\r\nvar addClasses = _classList.addClasses.bind(_classList);\r\nvar removeClass = _classList.removeClass.bind(_classList);\r\nvar removeClasses = _classList.removeClasses.bind(_classList);\r\nvar toggleClass = _classList.toggleClass.bind(_classList);\r\nvar DomListener = /** @class */ (function () {\r\n function DomListener(node, type, handler, options) {\r\n this._node = node;\r\n this._type = type;\r\n this._handler = handler;\r\n this._options = (options || false);\r\n this._node.addEventListener(this._type, this._handler, this._options);\r\n }\r\n DomListener.prototype.dispose = function () {\r\n if (!this._handler) {\r\n // Already disposed\r\n return;\r\n }\r\n this._node.removeEventListener(this._type, this._handler, this._options);\r\n // Prevent leakers from holding on to the dom or handler func\r\n this._node = null;\r\n this._handler = null;\r\n };\r\n return DomListener;\r\n}());\r\nfunction addDisposableListener(node, type, handler, useCaptureOrOptions) {\r\n return new DomListener(node, type, handler, useCaptureOrOptions);\r\n}\r\nfunction _wrapAsStandardMouseEvent(handler) {\r\n return function (e) {\r\n return handler(new _mouseEvent_js__WEBPACK_IMPORTED_MODULE_3__[\"StandardMouseEvent\"](e));\r\n };\r\n}\r\nfunction _wrapAsStandardKeyboardEvent(handler) {\r\n return function (e) {\r\n return handler(new _keyboardEvent_js__WEBPACK_IMPORTED_MODULE_2__[\"StandardKeyboardEvent\"](e));\r\n };\r\n}\r\nvar addStandardDisposableListener = function addStandardDisposableListener(node, type, handler, useCapture) {\r\n var wrapHandler = handler;\r\n if (type === 'click' || type === 'mousedown') {\r\n wrapHandler = _wrapAsStandardMouseEvent(handler);\r\n }\r\n else if (type === 'keydown' || type === 'keypress' || type === 'keyup') {\r\n wrapHandler = _wrapAsStandardKeyboardEvent(handler);\r\n }\r\n return addDisposableListener(node, type, wrapHandler, useCapture);\r\n};\r\nvar addStandardDisposableGenericMouseDownListner = function addStandardDisposableListener(node, handler, useCapture) {\r\n var wrapHandler = _wrapAsStandardMouseEvent(handler);\r\n return addDisposableGenericMouseDownListner(node, wrapHandler, useCapture);\r\n};\r\nfunction addDisposableGenericMouseDownListner(node, handler, useCapture) {\r\n return addDisposableListener(node, _common_platform_js__WEBPACK_IMPORTED_MODULE_8__[\"isIOS\"] && _canIUse_js__WEBPACK_IMPORTED_MODULE_11__[\"BrowserFeatures\"].pointerEvents ? EventType.POINTER_DOWN : EventType.MOUSE_DOWN, handler, useCapture);\r\n}\r\nfunction addDisposableGenericMouseUpListner(node, handler, useCapture) {\r\n return addDisposableListener(node, _common_platform_js__WEBPACK_IMPORTED_MODULE_8__[\"isIOS\"] && _canIUse_js__WEBPACK_IMPORTED_MODULE_11__[\"BrowserFeatures\"].pointerEvents ? EventType.POINTER_UP : EventType.MOUSE_UP, handler, useCapture);\r\n}\r\nfunction addDisposableNonBubblingMouseOutListener(node, handler) {\r\n return addDisposableListener(node, 'mouseout', function (e) {\r\n // Mouse out bubbles, so this is an attempt to ignore faux mouse outs coming from children elements\r\n var toElement = (e.relatedTarget || e.target);\r\n while (toElement && toElement !== node) {\r\n toElement = toElement.parentNode;\r\n }\r\n if (toElement === node) {\r\n return;\r\n }\r\n handler(e);\r\n });\r\n}\r\nfunction addDisposableNonBubblingPointerOutListener(node, handler) {\r\n return addDisposableListener(node, 'pointerout', function (e) {\r\n // Mouse out bubbles, so this is an attempt to ignore faux mouse outs coming from children elements\r\n var toElement = (e.relatedTarget || e.target);\r\n while (toElement && toElement !== node) {\r\n toElement = toElement.parentNode;\r\n }\r\n if (toElement === node) {\r\n return;\r\n }\r\n handler(e);\r\n });\r\n}\r\nvar _animationFrame = null;\r\nfunction doRequestAnimationFrame(callback) {\r\n if (!_animationFrame) {\r\n var emulatedRequestAnimationFrame = function (callback) {\r\n return setTimeout(function () { return callback(new Date().getTime()); }, 0);\r\n };\r\n _animationFrame = (self.requestAnimationFrame\r\n || self.msRequestAnimationFrame\r\n || self.webkitRequestAnimationFrame\r\n || self.mozRequestAnimationFrame\r\n || self.oRequestAnimationFrame\r\n || emulatedRequestAnimationFrame);\r\n }\r\n return _animationFrame.call(self, callback);\r\n}\r\n/**\r\n * Schedule a callback to be run at the next animation frame.\r\n * This allows multiple parties to register callbacks that should run at the next animation frame.\r\n * If currently in an animation frame, `runner` will be executed immediately.\r\n * @return token that can be used to cancel the scheduled runner (only if `runner` was not executed immediately).\r\n */\r\nvar runAtThisOrScheduleAtNextAnimationFrame;\r\n/**\r\n * Schedule a callback to be run at the next animation frame.\r\n * This allows multiple parties to register callbacks that should run at the next animation frame.\r\n * If currently in an animation frame, `runner` will be executed at the next animation frame.\r\n * @return token that can be used to cancel the scheduled runner.\r\n */\r\nvar scheduleAtNextAnimationFrame;\r\nvar AnimationFrameQueueItem = /** @class */ (function () {\r\n function AnimationFrameQueueItem(runner, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n this._runner = runner;\r\n this.priority = priority;\r\n this._canceled = false;\r\n }\r\n AnimationFrameQueueItem.prototype.dispose = function () {\r\n this._canceled = true;\r\n };\r\n AnimationFrameQueueItem.prototype.execute = function () {\r\n if (this._canceled) {\r\n return;\r\n }\r\n try {\r\n this._runner();\r\n }\r\n catch (e) {\r\n Object(_common_errors_js__WEBPACK_IMPORTED_MODULE_5__[\"onUnexpectedError\"])(e);\r\n }\r\n };\r\n // Sort by priority (largest to lowest)\r\n AnimationFrameQueueItem.sort = function (a, b) {\r\n return b.priority - a.priority;\r\n };\r\n return AnimationFrameQueueItem;\r\n}());\r\n(function () {\r\n /**\r\n * The runners scheduled at the next animation frame\r\n */\r\n var NEXT_QUEUE = [];\r\n /**\r\n * The runners scheduled at the current animation frame\r\n */\r\n var CURRENT_QUEUE = null;\r\n /**\r\n * A flag to keep track if the native requestAnimationFrame was already called\r\n */\r\n var animFrameRequested = false;\r\n /**\r\n * A flag to indicate if currently handling a native requestAnimationFrame callback\r\n */\r\n var inAnimationFrameRunner = false;\r\n var animationFrameRunner = function () {\r\n animFrameRequested = false;\r\n CURRENT_QUEUE = NEXT_QUEUE;\r\n NEXT_QUEUE = [];\r\n inAnimationFrameRunner = true;\r\n while (CURRENT_QUEUE.length > 0) {\r\n CURRENT_QUEUE.sort(AnimationFrameQueueItem.sort);\r\n var top_1 = CURRENT_QUEUE.shift();\r\n top_1.execute();\r\n }\r\n inAn