1 line
23 KiB
JSON
1 line
23 KiB
JSON
|
{"ast":null,"code":"'use strict';\n\nvar _createForOfIteratorHelper = require(\"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/createForOfIteratorHelper\");\n\nvar escapeStringRegexp = require('escape-string-regexp');\n\nvar ansiStyles = require('ansi-styles');\n\nvar stdoutColor = require('supports-color').stdout;\n\nvar template = require('./templates.js');\n\nvar isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); // `supportsColor.level` → `ansiStyles.color[name]` mapping\n\nvar levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; // `color-convert` models to exclude from the Chalk API due to conflicts and such\n\nvar skipModels = new Set(['gray']);\nvar styles = Object.create(null);\n\nfunction applyOptions(obj, options) {\n options = options || {}; // Detect level if not set manually\n\n var scLevel = stdoutColor ? stdoutColor.level : 0;\n obj.level = options.level === undefined ? scLevel : options.level;\n obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;\n}\n\nfunction Chalk(options) {\n // We check for this.template here since calling `chalk.constructor()`\n // by itself will have a `this` of a previously constructed chalk object\n if (!this || !(this instanceof Chalk) || this.template) {\n var chalk = {};\n applyOptions(chalk, options);\n\n chalk.template = function () {\n var args = [].slice.call(arguments);\n return chalkTag.apply(null, [chalk.template].concat(args));\n };\n\n Object.setPrototypeOf(chalk, Chalk.prototype);\n Object.setPrototypeOf(chalk.template, chalk);\n chalk.template.constructor = Chalk;\n return chalk.template;\n }\n\n applyOptions(this, options);\n} // Use bright blue on Windows as the normal blue color is illegible\n\n\nif (isSimpleWindowsTerm) {\n ansiStyles.blue.open = \"\\x1B[94m\";\n}\n\nvar _loop = function _loop() {\n var key = _Object$keys[_i];\n ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');\n styles[key] = {\n get: function get() {\n var codes = ansiStyles[key];\n return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);\n }\n };\n};\n\nfor (var _i = 0, _Object$keys = Object.keys(ansiStyles); _i < _Object$keys.length; _i++) {\n _loop();\n}\n\nstyles.visible = {\n get: function get() {\n return build.call(this, this._styles || [], true, 'visible');\n }\n};\nansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');\n\nvar _loop2 = function _loop2() {\n var model = _Object$keys2[_i2];\n\n if (skipModels.has(model)) {\n return \"continue\";\n }\n\n styles[model] = {\n get: function get() {\n var level = this.level;\n return function () {\n var open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);\n var codes = {\n open: open,\n close: ansiStyles.color.close,\n closeRe: ansiStyles.color.closeRe\n };\n return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);\n };\n }\n };\n};\n\nfor (var _i2 = 0, _Object$keys2 = Object.keys(ansiStyles.color.ansi); _i2 < _Object$keys2.length; _i2++) {\n var _ret = _loop2();\n\n if (_ret === \"continue\") continue;\n}\n\nansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g');\n\nvar _loop3 = function _loop3() {\n var model = _Object$keys3[_i3];\n\n if (skipModels.has(model)) {\n return \"continue\";\n }\n\n var bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n styles[bgModel] = {\n get: function get() {\n var level = this.level;\n return function () {\n var open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);\n var codes = {\n open: open,\n close: ansiStyles.bgColor.close,\n closeRe: ansiStyles.bgColor.closeRe\n
|