UNPKG

cspace-ui

Version:
28 lines (23 loc) 1.31 MB
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ (self["webpackChunkcspaceUI"] = self["webpackChunkcspaceUI"] || []).push([["vendors-node_modules_axe-core_react_dist_index_mjs"],{ /***/ "./node_modules/@axe-core/react/dist/index.mjs": /*!*****************************************************!*\ !*** ./node_modules/@axe-core/react/dist/index.mjs ***! \*****************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ reactAxe),\n/* harmony export */ logToConsole: () => (/* binding */ logToConsole)\n/* harmony export */ });\n/* harmony import */ var axe_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axe-core */ \"./node_modules/axe-core/axe.js\");\n/* harmony import */ var requestidlecallback__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! requestidlecallback */ \"./node_modules/requestidlecallback/index.js\");\n// index.ts\n\n\n\n// after.ts\nvar restoreFunctions = [];\nfunction after(host, name, cb) {\n const originalFn = host[name];\n let restoreFn;\n if (originalFn) {\n host[name] = function(...args) {\n originalFn.apply(this, args);\n cb(host);\n };\n restoreFn = function() {\n host[name] = originalFn;\n };\n } else {\n host[name] = function() {\n cb(host);\n };\n restoreFn = function() {\n delete host[name];\n };\n }\n restoreFunctions.push(restoreFn);\n}\nafter.restorePatchedMethods = function() {\n restoreFunctions.forEach((restoreFn) => restoreFn());\n restoreFunctions = [];\n};\n\n// cache.ts\nvar _cache = {};\nvar cache = {\n set(key, value) {\n _cache[key] = value;\n },\n get(key) {\n return _cache[key];\n },\n clear() {\n Object.keys(_cache).forEach((key) => {\n delete _cache[key];\n });\n }\n};\nvar cache_default = cache;\n\n// index.ts\nvar requestIdleCallback = requestidlecallback__WEBPACK_IMPORTED_MODULE_1__.request;\nvar cancelIdleCallback = requestidlecallback__WEBPACK_IMPORTED_MODULE_1__.cancel;\nvar React;\nvar ReactDOM;\nvar logger;\nvar lightTheme = {\n serious: \"#d93251\",\n minor: \"#d24700\",\n text: \"black\"\n};\nvar darkTheme = {\n serious: \"#ffb3b3\",\n minor: \"#ffd500\",\n text: \"white\"\n};\nvar theme = window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? darkTheme : lightTheme;\nvar boldCourier = \"font-weight:bold;font-family:Courier;\";\nvar critical = `color:${theme.serious};font-weight:bold;`;\nvar serious = `color:${theme.serious};font-weight:normal;`;\nvar moderate = `color:${theme.minor};font-weight:bold;`;\nvar minor = `color:${theme.minor};font-weight:normal;`;\nvar defaultReset = `font-color:${theme.text};font-weight:normal;`;\nvar idleId;\nvar timeout;\nvar context;\nvar conf;\nvar _createElement;\nvar components = {};\nvar nodes = [document.documentElement];\nfunction debounce(func, wait, immediate) {\n let _timeout;\n return function(...args) {\n const later = () => {\n _timeout = null;\n if (!immediate) func.apply(this, args);\n };\n const callNow = immediate && !_timeout;\n clearTimeout(_timeout);\n _timeout = setTimeout(later, wait);\n if (callNow) func.apply(this, args);\n };\n}\nfunction getPath(node) {\n const path = [node];\n while (node && node.nodeName.toLowerCase() !== \"html\") {\n path.push(node.parentNode);\n node = node.parentNode;\n }\n if (!node || !node.parentNode) {\n return null;\n }\n return path.reverse();\n}\nfunction getCommonParent(nodes2) {\n let path;\n let nextPath;\n if (nodes2.length === 1) {\n return nodes2.pop();\n }\n while (!path && nodes2.length) {\n path = getPath(nodes2.pop());\n }\n while (nodes2.length) {\n nextPath = getPath(nodes2.pop());\n if (nextPath) {\n path = path.filter((node, index) => {\n return nextPath.length > index && nextPath[index] === node;\n });\n }\n }\n return path ? path[path.length - 1] : document;\n}\nfunction logElement(node, logFn) {\n const el = document.querySelector(node.target.toString());\n if (!el) {\n logFn(\"Selector: %c%s\", boldCourier, node.target.toString());\n } else {\n logFn(\"Element: %o\", el);\n }\n}\nfunction logHtml(node) {\n console.log(\"HTML: %c%s\", boldCourier, node.html);\n}\nfunction logFailureMessage(node, key) {\n const message = axe_core__WEBPACK_IMPORTED_MODULE_0__._audit.data.failureSummaries[key].failureMessage(\n node[key].map((check) => check.message || \"\")\n );\n console.error(message);\n}\nfunction failureSummary(node, key) {\n if (node[key].length > 0) {\n logElement(node, console.groupCollapsed);\n logHtml(node);\n logFailureMessage(node, key);\n let relatedNodes = [];\n node[key].forEach((check) => {\n relatedNodes = relatedNodes.concat(check.relatedNodes);\n });\n if (relatedNodes.length > 0) {\n console.groupCollapsed(\"Related nodes\");\n relatedNodes.forEach((relatedNode) => {\n logElement(relatedNode, console.log);\n logHtml(relatedNode);\n });\n console.groupEnd();\n }\n console.groupEnd();\n }\n}\nfunction checkAndReport(node, timeout2) {\n const disableDeduplicate = conf[\"disableDeduplicate\"];\n if (idleId) {\n cancelIdleCallback(idleId);\n idleId = void 0;\n }\n return new Promise((resolve, reject) => {\n nodes.push(node);\n idleId = requestIdleCallback(\n () => {\n let n = context;\n if (n === void 0) {\n n = getCommonParent(nodes.filter((node2) => node2.isConnected));\n if (n.nodeName.toLowerCase() === \"html\") {\n n = document;\n }\n }\n axe_core__WEBPACK_IMPORTED_MODULE_0__.configure({ allowedOrigins: [\"<unsafe_all_origins>\"] });\n axe_core__WEBPACK_IMPORTED_MODULE_0__.run(\n n,\n { reporter: \"v2\" },\n function(error, results) {\n if (error) {\n return reject(error);\n }\n results.violations = results.violations.filter((result) => {\n result.nodes = result.nodes.filter((node2) => {\n const key = node2.target.toString() + result.id;\n const retVal = !cache_default.get(key);\n cache_default.set(key, key);\n return disableDeduplicate || retVal;\n });\n return !!result.nodes.length;\n });\n if (results.violations.length) {\n logger(results);\n }\n resolve();\n }\n );\n },\n {\n timeout: timeout2\n }\n );\n });\n}\nfunction checkNode(component) {\n let node;\n try {\n node = ReactDOM.findDOMNode(component);\n } catch (e) {\n console.group(\"%caxe error: could not check node\", critical);\n console.group(\"%cComponent\", serious);\n console.error(component);\n console.groupEnd();\n console.group(\"%cError\", serious);\n console.error(e);\n console.groupEnd();\n console.groupEnd();\n }\n if (node) {\n checkAndReport(node, timeout);\n }\n}\nfunction componentAfterRender(component) {\n const debounceCheckNode = debounce(checkNode, timeout, true);\n after(component, \"componentDidMount\", debounceCheckNode);\n after(component, \"componentDidUpdate\", debounceCheckNode);\n}\nfunction addComponent(component) {\n const reactInstance = component._reactInternalInstance || {};\n const reactInstanceDebugID = reactInstance._debugID;\n const reactFiberInstance = component._reactInternalFiber || {};\n const reactFiberInstanceDebugID = reactFiberInstance._debugID;\n const reactInternals = component._reactInternals || {};\n const reactInternalsDebugID = reactInternals._debugID;\n if (reactInstanceDebugID && !components[reactInstanceDebugID]) {\n components[reactInstanceDebugID] = component;\n componentAfterRender(component);\n } else if (reactFiberInstanceDebugID && !components[reactFiberInstanceDebugID]) {\n components[reactFiberInstanceDebugID] = component;\n componentAfterRender(component);\n } else if (reactInternalsDebugID && !components[reactInternalsDebugID]) {\n components[reactInternalsDebugID] = component;\n componentAfterRender(component);\n }\n}\nfunction logToConsole(results) {\n console.group(\"%cNew axe issues\", serious);\n results.violations.forEach((result) => {\n let fmt;\n switch (result.impact) {\n case \"critical\":\n fmt = critical;\n break;\n case \"serious\":\n fmt = serious;\n break;\n case \"moderate\":\n fmt = moderate;\n break;\n case \"minor\":\n fmt = minor;\n break;\n default:\n fmt = minor;\n break;\n }\n console.groupCollapsed(\n \"%c%s: %c%s %s\",\n fmt,\n result.impact,\n defaultReset,\n result.help,\n result.helpUrl\n );\n result.nodes.forEach((node) => {\n failureSummary(node, \"any\");\n failureSummary(node, \"none\");\n });\n console.groupEnd();\n });\n console.groupEnd();\n}\nfunction reactAxe(_React, _ReactDOM, _timeout, _conf = {}, _context, _logger) {\n React = _React;\n ReactDOM = _ReactDOM;\n timeout = _timeout;\n context = _context;\n conf = _conf;\n logger = _logger || logToConsole;\n const runOnly = conf[\"runOnly\"];\n if (runOnly) {\n conf[\"rules\"] = axe_core__WEBPACK_IMPORTED_MODULE_0__.getRules(runOnly).map((rule) => ({ ...rule, id: rule.ruleId, enabled: true }));\n conf[\"disableOtherRules\"] = true;\n }\n if (Object.keys(conf).length > 0) {\n axe_core__WEBPACK_IMPORTED_MODULE_0__.configure(conf);\n }\n axe_core__WEBPACK_IMPORTED_MODULE_0__.configure({ allowedOrigins: [\"<unsafe_all_origins>\"] });\n if (!_createElement) {\n _createElement = React.createElement;\n React.createElement = function(...args) {\n const reactEl = _createElement.apply(this, args);\n if (reactEl._owner && reactEl._owner._instance) {\n addComponent(reactEl._owner._instance);\n } else if (reactEl._owner && reactEl._owner.stateNode) {\n addComponent(reactEl._owner.stateNode);\n }\n return reactEl;\n };\n }\n return checkAndReport(document.body, timeout);\n}\n\n\n\n//# sourceURL=webpack://cspaceUI/./node_modules/@axe-core/react/dist/index.mjs?"); /***/ }), /***/ "./node_modules/axe-core/axe.js": /*!**************************************!*\ !*** ./node_modules/axe-core/axe.js ***! \**************************************/ /***/ (function(module, exports, __webpack_require__) { eval("/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;/*! axe v4.11.0\n * Copyright (c) 2015 - 2025 Deque Systems, Inc.\n *\n * Your use of this Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/.\n *\n * This entire copyright notice must appear in every copy of this file you\n * distribute or in any file that contains substantial portions of this source\n * code.\n */\n(function axeFunction(window) {\n var global = window;\n var document = window.document;\n 'use strict';\n function _typeof(o) {\n '@babel/helpers - typeof';\n return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(o) {\n return typeof o;\n } : function(o) {\n return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o;\n }, _typeof(o);\n }\n var axe = axe || {};\n axe.version = '4.11.0';\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() {\n return axe;\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n }\n if (( false ? 0 : _typeof(module)) === 'object' && module.exports && typeof axeFunction.toString === 'function') {\n axe.source = '(' + axeFunction.toString() + ')(typeof window === \"object\" ? window : this);';\n module.exports = axe;\n }\n if (typeof window.getComputedStyle === 'function') {\n window.axe = axe;\n }\n var commons;\n 'use strict';\n var _excluded = [ 'precision', 'format', 'inGamut' ], _excluded2 = [ 'space' ], _excluded3 = [ 'algorithm' ], _excluded4 = [ 'method' ], _excluded5 = [ 'maxDeltaE', 'deltaEMethod', 'steps', 'maxSteps' ], _excluded6 = [ 'variant' ], _excluded7 = [ 'matches' ], _excluded8 = [ 'chromium' ], _excluded9 = [ 'noImplicit' ], _excluded0 = [ 'noPresentational' ], _excluded1 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'node' ], _excluded12 = [ 'node' ], _excluded13 = [ 'environmentData' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ], _excluded17 = [ 'environmentData' ];\n function _toArray(r) {\n return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();\n }\n function _wrapNativeSuper(t) {\n var r = 'function' == typeof Map ? new Map() : void 0;\n return _wrapNativeSuper = function _wrapNativeSuper(t) {\n if (null === t || !_isNativeFunction(t)) {\n return t;\n }\n if ('function' != typeof t) {\n throw new TypeError('Super expression must either be null or a function');\n }\n if (void 0 !== r) {\n if (r.has(t)) {\n return r.get(t);\n }\n r.set(t, Wrapper);\n }\n function Wrapper() {\n return _construct(t, arguments, _getPrototypeOf(this).constructor);\n }\n return Wrapper.prototype = Object.create(t.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), _setPrototypeOf(Wrapper, t);\n }, _wrapNativeSuper(t);\n }\n function _isNativeFunction(t) {\n try {\n return -1 !== Function.toString.call(t).indexOf('[native code]');\n } catch (n) {\n return 'function' == typeof t;\n }\n }\n function _defineProperty(e, r, t) {\n return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n }\n function _construct(t, e, r) {\n if (_isNativeReflectConstruct()) {\n return Reflect.construct.apply(null, arguments);\n }\n var o = [ null ];\n o.push.apply(o, e);\n var p = new (t.bind.apply(t, o))();\n return r && _setPrototypeOf(p, r.prototype), p;\n }\n function _objectWithoutProperties(e, t) {\n if (null == e) {\n return {};\n }\n var o, r, i = _objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) {\n o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n }\n return i;\n }\n function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) {\n return {};\n }\n var t = {};\n for (var n in r) {\n if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) {\n continue;\n }\n t[n] = r[n];\n }\n }\n return t;\n }\n function _callSuper(t, o, e) {\n return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));\n }\n function _possibleConstructorReturn(t, e) {\n if (e && ('object' == _typeof(e) || 'function' == typeof e)) {\n return e;\n }\n if (void 0 !== e) {\n throw new TypeError('Derived constructors may only return object or undefined');\n }\n return _assertThisInitialized(t);\n }\n function _assertThisInitialized(e) {\n if (void 0 === e) {\n throw new ReferenceError('this hasn\\'t been initialised - super() hasn\\'t been called');\n }\n return e;\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n }\n function _inherits(t, e) {\n if ('function' != typeof e && null !== e) {\n throw new TypeError('Super expression must either be null or a function');\n }\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, 'prototype', {\n writable: !1\n }), e && _setPrototypeOf(t, e);\n }\n function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n }\n function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function(n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) {\n ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n }\n return n;\n }, _extends.apply(null, arguments);\n }\n function _toConsumableArray(r) {\n return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();\n }\n function _nonIterableSpread() {\n throw new TypeError('Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n function _iterableToArray(r) {\n if ('undefined' != typeof Symbol && null != r[Symbol.iterator] || null != r['@@iterator']) {\n return Array.from(r);\n }\n }\n function _arrayWithoutHoles(r) {\n if (Array.isArray(r)) {\n return _arrayLikeToArray(r);\n }\n }\n function _classPrivateFieldInitSpec(e, t, a) {\n _checkPrivateRedeclaration(e, t), t.set(e, a);\n }\n function _classPrivateMethodInitSpec(e, a) {\n _checkPrivateRedeclaration(e, a), a.add(e);\n }\n function _checkPrivateRedeclaration(e, t) {\n if (t.has(e)) {\n throw new TypeError('Cannot initialize the same private elements twice on an object');\n }\n }\n function _classPrivateFieldGet(s, a) {\n return s.get(_assertClassBrand(s, a));\n }\n function _classPrivateFieldSet(s, a, r) {\n return s.set(_assertClassBrand(s, a), r), r;\n }\n function _assertClassBrand(e, t, n) {\n if ('function' == typeof e ? e === t : e.has(t)) {\n return arguments.length < 3 ? t : n;\n }\n throw new TypeError('Private element is not present on this object');\n }\n function _slicedToArray(r, e) {\n return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();\n }\n function _nonIterableRest() {\n throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : 'undefined' != typeof Symbol && r[Symbol.iterator] || r['@@iterator'];\n if (null != t) {\n var e, n, i, u, a = [], f = !0, o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) {\n return;\n }\n f = !1;\n } else {\n for (;!(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {}\n }\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t['return'] && (u = t['return'](), Object(u) !== u)) {\n return;\n }\n } finally {\n if (o) {\n throw n;\n }\n }\n }\n return a;\n }\n }\n function _arrayWithHoles(r) {\n if (Array.isArray(r)) {\n return r;\n }\n }\n function _classCallCheck(a, n) {\n if (!(a instanceof n)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n function _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), \n Object.defineProperty(e, _toPropertyKey(o.key), o);\n }\n }\n function _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), \n Object.defineProperty(e, 'prototype', {\n writable: !1\n }), e;\n }\n function _toPropertyKey(t) {\n var i = _toPrimitive(t, 'string');\n return 'symbol' == _typeof(i) ? i : i + '';\n }\n function _toPrimitive(t, r) {\n if ('object' != _typeof(t) || !t) {\n return t;\n }\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || 'default');\n if ('object' != _typeof(i)) {\n return i;\n }\n throw new TypeError('@@toPrimitive must return a primitive value.');\n }\n return ('string' === r ? String : Number)(t);\n }\n function _createForOfIteratorHelper(r, e) {\n var t = 'undefined' != typeof Symbol && r[Symbol.iterator] || r['@@iterator'];\n if (!t) {\n if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && 'number' == typeof r.length) {\n t && (r = t);\n var _n = 0, F = function F() {};\n return {\n s: F,\n n: function n() {\n return _n >= r.length ? {\n done: !0\n } : {\n done: !1,\n value: r[_n++]\n };\n },\n e: function e(r) {\n throw r;\n },\n f: F\n };\n }\n throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');\n }\n var o, a = !0, u = !1;\n return {\n s: function s() {\n t = t.call(r);\n },\n n: function n() {\n var r = t.next();\n return a = r.done, r;\n },\n e: function e(r) {\n u = !0, o = r;\n },\n f: function f() {\n try {\n a || null == t['return'] || t['return']();\n } finally {\n if (u) {\n throw o;\n }\n }\n }\n };\n }\n function _unsupportedIterableToArray(r, a) {\n if (r) {\n if ('string' == typeof r) {\n return _arrayLikeToArray(r, a);\n }\n var t = {}.toString.call(r).slice(8, -1);\n return 'Object' === t && r.constructor && (t = r.constructor.name), 'Map' === t || 'Set' === t ? Array.from(r) : 'Arguments' === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n }\n }\n function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) {\n n[e] = r[e];\n }\n return n;\n }\n function _typeof(o) {\n '@babel/helpers - typeof';\n return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(o) {\n return typeof o;\n } : function(o) {\n return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o;\n }, _typeof(o);\n }\n (function(_Class_brand, _path, _CSS, _space, _r, _g, _b, _red, _green, _blue, _Class3_brand) {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getProtoOf = Object.getPrototypeOf;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __defNormalProp = function __defNormalProp(obj, key, value) {\n return key in obj ? __defProp(obj, key, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: value\n }) : obj[key] = value;\n };\n var __markAsModule = function __markAsModule(target) {\n return __defProp(target, '__esModule', {\n value: true\n });\n };\n var __commonJS = function __commonJS(cb, mod) {\n return function() {\n return mod || cb((mod = {\n exports: {}\n }).exports, mod), mod.exports;\n };\n };\n var __export = function __export(target, all) {\n for (var name in all) {\n __defProp(target, name, {\n get: all[name],\n enumerable: true\n });\n }\n };\n var __exportStar = function __exportStar(target, module, desc) {\n if (module && _typeof(module) === 'object' || typeof module === 'function') {\n var _iterator = _createForOfIteratorHelper(__getOwnPropNames(module)), _step;\n try {\n var _loop = function _loop() {\n var key = _step.value;\n if (!__hasOwnProp.call(target, key) && key !== 'default') {\n __defProp(target, key, {\n get: function get() {\n return module[key];\n },\n enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable\n });\n }\n };\n for (_iterator.s(); !(_step = _iterator.n()).done; ) {\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n return target;\n };\n var __toModule = function __toModule(module) {\n return __exportStar(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, 'default', module && module.__esModule && 'default' in module ? {\n get: function get() {\n return module['default'];\n },\n enumerable: true\n } : {\n value: module,\n enumerable: true\n })), module);\n };\n var __publicField = function __publicField(obj, key, value) {\n __defNormalProp(obj, _typeof(key) !== 'symbol' ? key + '' : key, value);\n return value;\n };\n var require_es6_promise = __commonJS(function(exports, module) {\n (function(global2, factory) {\n _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;\n })(exports, function() {\n 'use strict';\n function objectOrFunction(x) {\n var type2 = _typeof(x);\n return x !== null && (type2 === 'object' || type2 === 'function');\n }\n function isFunction(x) {\n return typeof x === 'function';\n }\n var _isArray = void 0;\n if (Array.isArray) {\n _isArray = Array.isArray;\n } else {\n _isArray = function _isArray(x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n }\n var isArray = _isArray;\n var len = 0;\n var vertxNext = void 0;\n var customSchedulerFn = void 0;\n var asap = function asap2(callback, arg) {\n queue2[len] = callback;\n queue2[len + 1] = arg;\n len += 2;\n if (len === 2) {\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n };\n function setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n }\n function setAsap(asapFn) {\n asap = asapFn;\n }\n var browserWindow = typeof window !== 'undefined' ? window : void 0;\n var browserGlobal = browserWindow || {};\n var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n var isNode2 = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n function useNextTick() {\n return function() {\n return process.nextTick(flush);\n };\n }\n function useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function() {\n vertxNext(flush);\n };\n }\n return useSetTimeout();\n }\n function useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function() {\n node.data = iterations = ++iterations % 2;\n };\n }\n function useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function() {\n return channel.port2.postMessage(0);\n };\n }\n function useSetTimeout() {\n var globalSetTimeout = setTimeout;\n return function() {\n return globalSetTimeout(flush, 1);\n };\n }\n var queue2 = new Array(1e3);\n function flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue2[i];\n var arg = queue2[i + 1];\n callback(arg);\n queue2[i] = void 0;\n queue2[i + 1] = void 0;\n }\n len = 0;\n }\n function attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n }\n var scheduleFlush = void 0;\n if (isNode2) {\n scheduleFlush = useNextTick();\n } else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n } else if (isWorker) {\n scheduleFlush = useMessageChannel();\n } else if (browserWindow === void 0 && true) {\n scheduleFlush = attemptVertx();\n } else {\n scheduleFlush = useSetTimeout();\n }\n function then(onFulfillment, onRejection) {\n var parent = this;\n var child = new this.constructor(noop3);\n if (child[PROMISE_ID] === void 0) {\n makePromise(child);\n }\n var _state = parent._state;\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function() {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe2(parent, child, onFulfillment, onRejection);\n }\n return child;\n }\n function resolve$1(object) {\n var Constructor = this;\n if (object && _typeof(object) === 'object' && object.constructor === Constructor) {\n return object;\n }\n var promise = new Constructor(noop3);\n resolve(promise, object);\n return promise;\n }\n var PROMISE_ID = Math.random().toString(36).substring(2);\n function noop3() {}\n var PENDING = void 0;\n var FULFILLED = 1;\n var REJECTED = 2;\n function selfFulfillment() {\n return new TypeError('You cannot resolve a promise with itself');\n }\n function cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n }\n function handleForeignThenable(promise, thenable, then$$1) {\n asap(function(promise2) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function(value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise2, value);\n } else {\n fulfill(promise2, value);\n }\n }, function(reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n reject(promise2, reason);\n }, 'Settle: ' + (promise2._label || ' unknown promise'));\n if (!sealed && error) {\n sealed = true;\n reject(promise2, error);\n }\n }, promise);\n }\n function handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n reject(promise, thenable._result);\n } else {\n subscribe2(thenable, void 0, function(value) {\n return resolve(promise, value);\n }, function(reason) {\n return reject(promise, reason);\n });\n }\n }\n function handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === void 0) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n }\n function resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n var then$$1 = void 0;\n try {\n then$$1 = value.then;\n } catch (error) {\n reject(promise, error);\n return;\n }\n handleMaybeThenable(promise, value, then$$1);\n } else {\n fulfill(promise, value);\n }\n }\n function publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n publish(promise);\n }\n function fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._result = value;\n promise._state = FULFILLED;\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n }\n function reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n asap(publishRejection, promise);\n }\n function subscribe2(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n parent._onerror = null;\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n }\n function publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n if (subscribers.length === 0) {\n return;\n }\n var child = void 0, callback = void 0, detail = promise._result;\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n promise._subscribers.length = 0;\n }\n function invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true;\n if (hasCallback) {\n try {\n value = callback(detail);\n } catch (e) {\n succeeded = false;\n error = e;\n }\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n }\n if (promise._state !== PENDING) {} else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (succeeded === false) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n }\n function initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n }\n var id = 0;\n function nextId() {\n return id++;\n }\n function makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = void 0;\n promise._result = void 0;\n promise._subscribers = [];\n }\n function validationError() {\n return new Error('Array Methods must be provided an Array');\n }\n var Enumerator = function() {\n function Enumerator2(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop3);\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n this._result = new Array(this.length);\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n Enumerator2.prototype._enumerate = function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n Enumerator2.prototype._eachEntry = function _eachEntry(entry, i) {\n var c4 = this._instanceConstructor;\n var resolve$$1 = c4.resolve;\n if (resolve$$1 === resolve$1) {\n var _then = void 0;\n var error = void 0;\n var didError = false;\n try {\n _then = entry.then;\n } catch (e) {\n didError = true;\n error = e;\n }\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c4 === Promise$1) {\n var promise = new c4(noop3);\n if (didError) {\n reject(promise, error);\n } else {\n handleMaybeThenable(promise, entry, _then);\n }\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c4(function(resolve$$12) {\n return resolve$$12(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n };\n Enumerator2.prototype._settledAt = function _settledAt(state, i, value) {\n var promise = this.promise;\n if (promise._state === PENDING) {\n this._remaining--;\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n };\n Enumerator2.prototype._willSettleAt = function _willSettleAt(promise, i) {\n var enumerator = this;\n subscribe2(promise, void 0, function(value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function(reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n };\n return Enumerator2;\n }();\n function all(entries) {\n return new Enumerator(this, entries).promise;\n }\n function race(entries) {\n var Constructor = this;\n if (!isArray(entries)) {\n return new Constructor(function(_, reject2) {\n return reject2(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function(resolve2, reject2) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve2, reject2);\n }\n });\n }\n }\n function reject$1(reason) {\n var Constructor = this;\n var promise = new Constructor(noop3);\n reject(promise, reason);\n return promise;\n }\n function needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n function needsNew() {\n throw new TypeError('Failed to construct \\'Promise\\': Please use the \\'new\\' operator, this object constructor cannot be called as a function.');\n }\n var Promise$1 = function() {\n function Promise2(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = void 0;\n this._subscribers = [];\n if (noop3 !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise2 ? initializePromise(this, resolver) : needsNew();\n }\n }\n Promise2.prototype['catch'] = function _catch(onRejection) {\n return this.then(null, onRejection);\n };\n Promise2.prototype['finally'] = function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n if (isFunction(callback)) {\n return promise.then(function(value) {\n return constructor.resolve(callback()).then(function() {\n return value;\n });\n }, function(reason) {\n return constructor.resolve(callback()).then(function() {\n throw reason;\n });\n });\n }\n return promise.then(callback, callback);\n };\n return Promise2;\n }();\n Promise$1.prototype.then = then;\n Promise$1.all = all;\n Promise$1.race = race;\n Promise$1.resolve = resolve$1;\n Promise$1.reject = reject$1;\n Promise$1._setScheduler = setScheduler;\n Promise$1._setAsap = setAsap;\n Promise$1._asap = asap;\n function polyfill() {\n var local = void 0;\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n var P = local.Promise;\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {}\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n local.Promise = Promise$1;\n }\n Promise$1.polyfill = polyfill;\n Promise$1.Promise = Promise$1;\n return Promise$1;\n });\n });\n var require_typedarray = __commonJS(function(exports) {\n var MAX_ARRAY_LENGTH = 1e5;\n var ECMAScript = function() {\n var opts = Object.prototype.toString;\n var ophop = Object.prototype.hasOwnProperty;\n return {\n Class: function Class(v) {\n return opts.call(v).replace(/^\\[object *|\\]$/g, '');\n },\n HasProperty: function HasProperty(o, p2) {\n return p2 in o;\n },\n HasOwnProperty: function HasOwnProperty(o, p2) {\n return ophop.call(o, p2);\n },\n IsCallable: function IsCallable(o) {\n return typeof o === 'function';\n },\n ToInt32: function ToInt32(v) {\n return v >> 0;\n },\n ToUint32: function ToUint32(v) {\n return v >>> 0;\n }\n };\n }();\n var LN2 = Math.LN2;\n var abs = Math.abs;\n var floor = Math.floor;\n var log2 = Math.log;\n var min = Math.min;\n var pow = Math.pow;\n var round = Math.round;\n function clamp3(v, minimum, max2) {\n return v < minimum ? minimum : v > max2 ? max2 : v;\n }\n var getOwnPropNames = Object.getOwnPropertyNames || function(o) {\n if (o !== Object(o)) {\n throw new TypeError('Object.getOwnPropertyNames called on non-object');\n }\n var props = [], p2;\n for (p2 in o) {\n if (ECMAScript.HasOwnProperty(o, p2)) {\n props.push(p2);\n }\n }\n return props;\n };\n var defineProp;\n if (Object.defineProperty && function() {\n try {\n Object.defineProperty({}, 'x', {});\n return true;\n } catch (e) {\n return false;\n }\n }()) {\n defineProp = Object.defineProperty;\n } else {\n defineProp = function defineProp(o, p2, desc) {\n if (!o === Object(o)) {\n throw new TypeError('Object.defineProperty called on non-object');\n }\n if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) {\n Object.prototype.__defineGetter__.call(o, p2, desc.get);\n }\n if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) {\n Object.prototype.__defineSetter__.call(o, p2, desc.set);\n }\n if (ECMAScript.HasProperty(desc, 'value')) {\n o[p2] = desc.value;\n }\n return o;\n };\n }\n function configureProperties(obj) {\n if (getOwnPropNames && defineProp) {\n var props = getOwnPropNames(obj), i;\n for (i = 0; i < props.length; i += 1) {\n defineProp(obj, props[i], {\n value: obj[props[i]],\n writable: false,\n enumerable: false,\n configurable: false\n });\n }\n }\n }\n function makeArrayAccessors(obj) {\n if (!defineProp) {\n return;\n }\n if (obj.length > MA