UNPKG

@stencil/core

Version:

A Compiler for Web Components and Progressive Web Apps

1,503 lines (1,240 loc) 4.15 MB
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 186); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports) { module.exports = require("typescript"); /***/ }), /* 1 */ /***/ (function(module, exports) { module.exports = require("../../utils"); /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); } var Prefixer = __webpack_require__(30); var Browsers = __webpack_require__(22); var utils = __webpack_require__(10); var Declaration = /*#__PURE__*/ function (_Prefixer) { _inheritsLoose(Declaration, _Prefixer); function Declaration() { return _Prefixer.apply(this, arguments) || this; } var _proto = Declaration.prototype; /** * Always true, because we already get prefixer by property name */ _proto.check = function check() /* decl */ { return true; } /** * Return prefixed version of property */ ; _proto.prefixed = function prefixed(prop, prefix) { return prefix + prop; } /** * Return unprefixed version of property */ ; _proto.normalize = function normalize(prop) { return prop; } /** * Check `value`, that it contain other prefixes, rather than `prefix` */ ; _proto.otherPrefixes = function otherPrefixes(value, prefix) { for (var _iterator = Browsers.prefixes(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { if (_i >= _iterator.length) break; _ref = _iterator[_i++]; } else { _i = _iterator.next(); if (_i.done) break; _ref = _i.value; } var other = _ref; if (other === prefix) { continue; } if (value.indexOf(other) !== -1) { return true; } } return false; } /** * Set prefix to declaration */ ; _proto.set = function set(decl, prefix) { decl.prop = this.prefixed(decl.prop, prefix); return decl; } /** * Should we use visual cascade for prefixes */ ; _proto.needCascade = function needCascade(decl) { if (!decl._autoprefixerCascade) { decl._autoprefixerCascade = this.all.options.cascade !== false && decl.raw('before').indexOf('\n') !== -1; } return decl._autoprefixerCascade; } /** * Return maximum length of possible prefixed property */ ; _proto.maxPrefixed = function maxPrefixed(prefixes, decl) { if (decl._autoprefixerMax) { return decl._autoprefixerMax; } var max = 0; for (var _iterator2 = prefixes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref2; if (_isArray2) { if (_i2 >= _iterator2.length) break; _ref2 = _iterator2[_i2++]; } else { _i2 = _iterator2.next(); if (_i2.done) break; _ref2 = _i2.value; } var prefix = _ref2; prefix = utils.removeNote(prefix); if (prefix.length > max) { max = prefix.length; } } decl._autoprefixerMax = max; return decl._autoprefixerMax; } /** * Calculate indentation to create visual cascade */ ; _proto.calcBefore = function calcBefore(prefixes, decl, prefix) { if (prefix === void 0) { prefix = ''; } var max = this.maxPrefixed(prefixes, decl); var diff = max - utils.removeNote(prefix).length; var before = decl.raw('before'); if (diff > 0) { before += Array(diff).fill(' ').join(''); } return before; } /** * Remove visual cascade */ ; _proto.restoreBefore = function restoreBefore(decl) { var lines = decl.raw('before').split('\n'); var min = lines[lines.length - 1]; this.all.group(decl).up(function (prefixed) { var array = prefixed.raw('before').split('\n'); var last = array[array.length - 1]; if (last.length < min.length) { min = last; } }); lines[lines.length - 1] = min; decl.raws.before = lines.join('\n'); } /** * Clone and insert new declaration */ ; _proto.insert = function insert(decl, prefix, prefixes) { var cloned = this.set(this.clone(decl), prefix); if (!cloned) return undefined; var already = decl.parent.some(function (i) { return i.prop === cloned.prop && i.value === cloned.value; }); if (already) { return undefined; } if (this.needCascade(decl)) { cloned.raws.before = this.calcBefore(prefixes, decl, prefix); } return decl.parent.insertBefore(decl, cloned); } /** * Did this declaration has this prefix above */ ; _proto.isAlready = function isAlready(decl, prefixed) { var already = this.all.group(decl).up(function (i) { return i.prop === prefixed; }); if (!already) { already = this.all.group(decl).down(function (i) { return i.prop === prefixed; }); } return already; } /** * Clone and add prefixes for declaration */ ; _proto.add = function add(decl, prefix, prefixes, result) { var prefixed = this.prefixed(decl.prop, prefix); if (this.isAlready(decl, prefixed) || this.otherPrefixes(decl.value, prefix)) { return undefined; } return this.insert(decl, prefix, prefixes, result); } /** * Add spaces for visual cascade */ ; _proto.process = function process(decl, result) { if (!this.needCascade(decl)) { _Prefixer.prototype.process.call(this, decl, result); return; } var prefixes = _Prefixer.prototype.process.call(this, decl, result); if (!prefixes || !prefixes.length) { return; } this.restoreBefore(decl); decl.raws.before = this.calcBefore(prefixes, decl); } /** * Return list of prefixed properties to clean old prefixes */ ; _proto.old = function old(prop, prefix) { return [this.prefixed(prop, prefix)]; }; return Declaration; }(Prefixer); module.exports = Declaration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.default = void 0; var _declaration = _interopRequireDefault(__webpack_require__(38)); var _processor = _interopRequireDefault(__webpack_require__(72)); var _stringify = _interopRequireDefault(__webpack_require__(42)); var _comment = _interopRequireDefault(__webpack_require__(44)); var _atRule = _interopRequireDefault(__webpack_require__(45)); var _vendor = _interopRequireDefault(__webpack_require__(217)); var _parse = _interopRequireDefault(__webpack_require__(43)); var _list = _interopRequireDefault(__webpack_require__(74)); var _rule = _interopRequireDefault(__webpack_require__(47)); var _root = _interopRequireDefault(__webpack_require__(75)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Create a new {@link Processor} instance that will apply `plugins` * as CSS processors. * * @param {Array.<Plugin|pluginFunction>|Processor} plugins PostCSS plugins. * See {@link Processor#use} for plugin format. * * @return {Processor} Processor to process multiple CSS. * * @example * import postcss from 'postcss' * * postcss(plugins).process(css, { from, to }).then(result => { * console.log(result.css) * }) * * @namespace postcss */ function postcss() { for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) { plugins[_key] = arguments[_key]; } if (plugins.length === 1 && Array.isArray(plugins[0])) { plugins = plugins[0]; } return new _processor.default(plugins); } /** * Creates a PostCSS plugin with a standard API. * * The newly-wrapped function will provide both the name and PostCSS * version of the plugin. * * ```js * const processor = postcss([replace]) * processor.plugins[0].postcssPlugin //=> 'postcss-replace' * processor.plugins[0].postcssVersion //=> '6.0.0' * ``` * * The plugin function receives 2 arguments: {@link Root} * and {@link Result} instance. The function should mutate the provided * `Root` node. Alternatively, you can create a new `Root` node * and override the `result.root` property. * * ```js * const cleaner = postcss.plugin('postcss-cleaner', () => { * return (root, result) => { * result.root = postcss.root() * } * }) * ``` * * As a convenience, plugins also expose a `process` method so that you can use * them as standalone tools. * * ```js * cleaner.process(css, processOpts, pluginOpts) * // This is equivalent to: * postcss([ cleaner(pluginOpts) ]).process(css, processOpts) * ``` * * Asynchronous plugins should return a `Promise` instance. * * ```js * postcss.plugin('postcss-import', () => { * return (root, result) => { * return new Promise( (resolve, reject) => { * fs.readFile('base.css', (base) => { * root.prepend(base) * resolve() * }) * }) * } * }) * ``` * * Add warnings using the {@link Node#warn} method. * Send data to other plugins using the {@link Result#messages} array. * * ```js * postcss.plugin('postcss-caniuse-test', () => { * return (root, result) => { * root.walkDecls(decl => { * if (!caniuse.support(decl.prop)) { * decl.warn(result, 'Some browsers do not support ' + decl.prop) * } * }) * } * }) * ``` * * @param {string} name PostCSS plugin name. Same as in `name` * property in `package.json`. It will be saved * in `plugin.postcssPlugin` property. * @param {function} initializer Will receive plugin options * and should return {@link pluginFunction} * * @return {Plugin} PostCSS plugin. */ postcss.plugin = function plugin(name, initializer) { function creator() { var transformer = initializer.apply(void 0, arguments); transformer.postcssPlugin = name; transformer.postcssVersion = new _processor.default().version; return transformer; } var cache; Object.defineProperty(creator, 'postcss', { get: function get() { if (!cache) cache = creator(); return cache; } }); creator.process = function (css, processOpts, pluginOpts) { return postcss([creator(pluginOpts)]).process(css, processOpts); }; return creator; }; /** * Default function to convert a node tree into a CSS string. * * @param {Node} node Start node for stringifing. Usually {@link Root}. * @param {builder} builder Function to concatenate CSS from node’s parts * or generate string and source map. * * @return {void} * * @function */ postcss.stringify = _stringify.default; /** * Parses source css and returns a new {@link Root} node, * which contains the source CSS nodes. * * @param {string|toString} css String with input CSS or any object * with toString() method, like a Buffer * @param {processOptions} [opts] Options with only `from` and `map` keys. * * @return {Root} PostCSS AST. * * @example * // Simple CSS concatenation with source map support * const root1 = postcss.parse(css1, { from: file1 }) * const root2 = postcss.parse(css2, { from: file2 }) * root1.append(root2).toResult().css * * @function */ postcss.parse = _parse.default; /** * Contains the {@link vendor} module. * * @type {vendor} * * @example * postcss.vendor.unprefixed('-moz-tab') //=> ['tab'] */ postcss.vendor = _vendor.default; /** * Contains the {@link list} module. * * @member {list} * * @example * postcss.list.space('5px calc(10% + 5px)') //=> ['5px', 'calc(10% + 5px)'] */ postcss.list = _list.default; /** * Creates a new {@link Comment} node. * * @param {object} [defaults] Properties for the new node. * * @return {Comment} New comment node * * @example * postcss.comment({ text: 'test' }) */ postcss.comment = function (defaults) { return new _comment.default(defaults); }; /** * Creates a new {@link AtRule} node. * * @param {object} [defaults] Properties for the new node. * * @return {AtRule} new at-rule node * * @example * postcss.atRule({ name: 'charset' }).toString() //=> "@charset" */ postcss.atRule = function (defaults) { return new _atRule.default(defaults); }; /** * Creates a new {@link Declaration} node. * * @param {object} [defaults] Properties for the new node. * * @return {Declaration} new declaration node * * @example * postcss.decl({ prop: 'color', value: 'red' }).toString() //=> "color: red" */ postcss.decl = function (defaults) { return new _declaration.default(defaults); }; /** * Creates a new {@link Rule} node. * * @param {object} [defaults] Properties for the new node. * * @return {Rule} new rule node * * @example * postcss.rule({ selector: 'a' }).toString() //=> "a {\n}" */ postcss.rule = function (defaults) { return new _rule.default(defaults); }; /** * Creates a new {@link Root} node. * * @param {object} [defaults] Properties for the new node. * * @return {Root} new root node. * * @example * postcss.root({ after: '\n' }).toString() //=> "\n" */ postcss.root = function (defaults) { return new _root.default(defaults); }; var _default = postcss; exports.default = _default; module.exports = exports.default; //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvc3Rjc3MuZXM2Il0sIm5hbWVzIjpbInBvc3Rjc3MiLCJwbHVnaW5zIiwibGVuZ3RoIiwiQXJyYXkiLCJpc0FycmF5IiwiUHJvY2Vzc29yIiwicGx1Z2luIiwibmFtZSIsImluaXRpYWxpemVyIiwiY3JlYXRvciIsInRyYW5zZm9ybWVyIiwicG9zdGNzc1BsdWdpbiIsInBvc3Rjc3NWZXJzaW9uIiwidmVyc2lvbiIsImNhY2hlIiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJnZXQiLCJwcm9jZXNzIiwiY3NzIiwicHJvY2Vzc09wdHMiLCJwbHVnaW5PcHRzIiwic3RyaW5naWZ5IiwicGFyc2UiLCJ2ZW5kb3IiLCJsaXN0IiwiY29tbWVudCIsImRlZmF1bHRzIiwiQ29tbWVudCIsImF0UnVsZSIsIkF0UnVsZSIsImRlY2wiLCJEZWNsYXJhdGlvbiIsInJ1bGUiLCJSdWxlIiwicm9vdCIsIlJvb3QiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBa0JBLFNBQVNBLE9BQVQsR0FBOEI7QUF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9zdGNzcy5ydWxlID0gZGVmYXVsdHMgPT4gbmV3IFJ1bGUoZGVmYXVsdHMpXG5cbi8qKlxuICogQ3JlYXRlcyBhIG5ldyB7QGxpbmsgUm9vdH0gbm9kZS5cbiAqXG4gKiBAcGFyYW0ge29iamVjdH0gW2RlZmF1bHRzXSBQcm9wZXJ0aWVzIGZvciB0aGUgbmV3IG5vZGUuXG4gKlxuICogQHJldHVybiB7Um9vdH0gbmV3IHJvb3Qgbm9kZS5cbiAqXG4gKiBAZXhhbXBsZVxuICogcG9zdGNzcy5yb290KHsgYWZ0ZXI6ICdcXG4nIH0pLnRvU3RyaW5nKCkgLy89PiBcIlxcblwiXG4gKi9cbnBvc3Rjc3Mucm9vdCA9IGRlZmF1bHRzID0+IG5ldyBSb290KGRlZmF1bHRzKVxuXG5leHBvcnQgZGVmYXVsdCBwb3N0Y3NzXG4iXSwiZmlsZSI6InBvc3Rjc3MuanMifQ== /***/ }), /* 4 */ /***/ (function(module, exports) { module.exports = require("path"); /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { var parse = __webpack_require__(982); var walk = __webpack_require__(983); var stringify = __webpack_require__(984); function ValueParser(value) { if (this instanceof ValueParser) { this.nodes = parse(value); return this; } return new ValueParser(value); } ValueParser.prototype.toString = function() { return Array.isArray(this.nodes) ? stringify(this.nodes) : ""; }; ValueParser.prototype.walk = function(cb, bubble) { walk(this.nodes, cb, bubble); return this; }; ValueParser.unit = __webpack_require__(985); ValueParser.walk = walk; ValueParser.stringify = stringify; module.exports = ValueParser; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { var fs = __webpack_require__(11) var polyfills = __webpack_require__(187) var legacy = __webpack_require__(189) var clone = __webpack_require__(191) var queue = [] var util = __webpack_require__(17) function noop () {} var debug = noop if (util.debuglog) debug = util.debuglog('gfs4') else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) debug = function() { var m = util.format.apply(util, arguments) m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') console.error(m) } if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { process.on('exit', function() { debug(queue) __webpack_require__(35).equal(queue.length, 0) }) } module.exports = patch(clone(fs)) if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { module.exports = patch(fs) fs.__patched = true; } // Always patch fs.close/closeSync, because we want to // retry() whenever a close happens *anywhere* in the program. // This is essential when multiple graceful-fs instances are // in play at the same time. module.exports.close = (function (fs$close) { return function (fd, cb) { return fs$close.call(fs, fd, function (err) { if (!err) retry() if (typeof cb === 'function') cb.apply(this, arguments) }) }})(fs.close) module.exports.closeSync = (function (fs$closeSync) { return function (fd) { // Note that graceful-fs also retries when fs.closeSync() fails. // Looks like a bug to me, although it's probably a harmless one. var rval = fs$closeSync.apply(fs, arguments) retry() return rval }})(fs.closeSync) // Only patch fs once, otherwise we'll run into a memory leak if // graceful-fs is loaded multiple times, such as in test environments that // reset the loaded modules between tests. // We look for the string `graceful-fs` from the comment above. This // way we are not adding any extra properties and it will detect if older // versions of graceful-fs are installed. if (!/\bgraceful-fs\b/.test(fs.closeSync.toString())) { fs.closeSync = module.exports.closeSync; fs.close = module.exports.close; } function patch (fs) { // Everything that references the open() function needs to be in here polyfills(fs) fs.gracefulify = patch fs.FileReadStream = ReadStream; // Legacy name. fs.FileWriteStream = WriteStream; // Legacy name. fs.createReadStream = createReadStream fs.createWriteStream = createWriteStream var fs$readFile = fs.readFile fs.readFile = readFile function readFile (path, options, cb) { if (typeof options === 'function') cb = options, options = null return go$readFile(path, options, cb) function go$readFile (path, options, cb) { return fs$readFile(path, options, function (err) { if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readFile, [path, options, cb]]) else { if (typeof cb === 'function') cb.apply(this, arguments) retry() } }) } } var fs$writeFile = fs.writeFile fs.writeFile = writeFile function writeFile (path, data, options, cb) { if (typeof options === 'function') cb = options, options = null return go$writeFile(path, data, options, cb) function go$writeFile (path, data, options, cb) { return fs$writeFile(path, data, options, function (err) { if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$writeFile, [path, data, options, cb]]) else { if (typeof cb === 'function') cb.apply(this, arguments) retry() } }) } } var fs$appendFile = fs.appendFile if (fs$appendFile) fs.appendFile = appendFile function appendFile (path, data, options, cb) { if (typeof options === 'function') cb = options, options = null return go$appendFile(path, data, options, cb) function go$appendFile (path, data, options, cb) { return fs$appendFile(path, data, options, function (err) { if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$appendFile, [path, data, options, cb]]) else { if (typeof cb === 'function') cb.apply(this, arguments) retry() } }) } } var fs$readdir = fs.readdir fs.readdir = readdir function readdir (path, options, cb) { var args = [path] if (typeof options !== 'function') { args.push(options) } else { cb = options } args.push(go$readdir$cb) return go$readdir(args) function go$readdir$cb (err, files) { if (files && files.sort) files.sort() if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readdir, [args]]) else { if (typeof cb === 'function') cb.apply(this, arguments) retry() } } } function go$readdir (args) { return fs$readdir.apply(fs, args) } if (process.version.substr(0, 4) === 'v0.8') { var legStreams = legacy(fs) ReadStream = legStreams.ReadStream WriteStream = legStreams.WriteStream } var fs$ReadStream = fs.ReadStream if (fs$ReadStream) { ReadStream.prototype = Object.create(fs$ReadStream.prototype) ReadStream.prototype.open = ReadStream$open } var fs$WriteStream = fs.WriteStream if (fs$WriteStream) { WriteStream.prototype = Object.create(fs$WriteStream.prototype) WriteStream.prototype.open = WriteStream$open } fs.ReadStream = ReadStream fs.WriteStream = WriteStream function ReadStream (path, options) { if (this instanceof ReadStream) return fs$ReadStream.apply(this, arguments), this else return ReadStream.apply(Object.create(ReadStream.prototype), arguments) } function ReadStream$open () { var that = this open(that.path, that.flags, that.mode, function (err, fd) { if (err) { if (that.autoClose) that.destroy() that.emit('error', err) } else { that.fd = fd that.emit('open', fd) that.read() } }) } function WriteStream (path, options) { if (this instanceof WriteStream) return fs$WriteStream.apply(this, arguments), this else return WriteStream.apply(Object.create(WriteStream.prototype), arguments) } function WriteStream$open () { var that = this open(that.path, that.flags, that.mode, function (err, fd) { if (err) { that.destroy() that.emit('error', err) } else { that.fd = fd that.emit('open', fd) } }) } function createReadStream (path, options) { return new ReadStream(path, options) } function createWriteStream (path, options) { return new WriteStream(path, options) } var fs$open = fs.open fs.open = open function open (path, flags, mode, cb) { if (typeof mode === 'function') cb = mode, mode = null return go$open(path, flags, mode, cb) function go$open (path, flags, mode, cb) { return fs$open(path, flags, mode, function (err, fd) { if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$open, [path, flags, mode, cb]]) else { if (typeof cb === 'function') cb.apply(this, arguments) retry() } }) } } return fs } function enqueue (elem) { debug('ENQUEUE', elem[0].name, elem[1]) queue.push(elem) } function retry () { var elem = queue.shift() if (elem) { debug('RETRY', elem[0].name, elem[1]) elem[0].apply(null, elem[1]) } } /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var YAMLException = __webpack_require__(24); var TYPE_CONSTRUCTOR_OPTIONS = [ 'kind', 'resolve', 'construct', 'instanceOf', 'predicate', 'represent', 'defaultStyle', 'styleAliases' ]; var YAML_NODE_KINDS = [ 'scalar', 'sequence', 'mapping' ]; function compileStyleAliases(map) { var result = {}; if (map !== null) { Object.keys(map).forEach(function (style) { map[style].forEach(function (alias) { result[String(alias)] = style; }); }); } return result; } function Type(tag, options) { options = options || {}; Object.keys(options).forEach(function (name) { if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); } }); // TODO: Add tag format check. this.tag = tag; this.kind = options['kind'] || null; this.resolve = options['resolve'] || function () { return true; }; this.construct = options['construct'] || function (data) { return data; }; this.instanceOf = options['instanceOf'] || null; this.predicate = options['predicate'] || null; this.represent = options['represent'] || null; this.defaultStyle = options['defaultStyle'] || null; this.styleAliases = compileStyleAliases(options['styleAliases'] || null); if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); } } module.exports = Type; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var TAG = exports.TAG = 'tag'; var STRING = exports.STRING = 'string'; var SELECTOR = exports.SELECTOR = 'selector'; var ROOT = exports.ROOT = 'root'; var PSEUDO = exports.PSEUDO = 'pseudo'; var NESTING = exports.NESTING = 'nesting'; var ID = exports.ID = 'id'; var COMMENT = exports.COMMENT = 'comment'; var COMBINATOR = exports.COMBINATOR = 'combinator'; var CLASS = exports.CLASS = 'class'; var ATTRIBUTE = exports.ATTRIBUTE = 'attribute'; var UNIVERSAL = exports.UNIVERSAL = 'universal'; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var TAG = exports.TAG = 'tag'; var STRING = exports.STRING = 'string'; var SELECTOR = exports.SELECTOR = 'selector'; var ROOT = exports.ROOT = 'root'; var PSEUDO = exports.PSEUDO = 'pseudo'; var NESTING = exports.NESTING = 'nesting'; var ID = exports.ID = 'id'; var COMMENT = exports.COMMENT = 'comment'; var COMBINATOR = exports.COMBINATOR = 'combinator'; var CLASS = exports.CLASS = 'class'; var ATTRIBUTE = exports.ATTRIBUTE = 'attribute'; var UNIVERSAL = exports.UNIVERSAL = 'universal'; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var list = __webpack_require__(3).list; module.exports = { /** * Throw special error, to tell beniary, * that this error is from Autoprefixer. */ error: function error(text) { var err = new Error(text); err.autoprefixer = true; throw err; }, /** * Return array, that doesn’t contain duplicates. */ uniq: function uniq(array) { var filtered = []; for (var _iterator = array, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { if (_i >= _iterator.length) break; _ref = _iterator[_i++]; } else { _i = _iterator.next(); if (_i.done) break; _ref = _i.value; } var i = _ref; if (filtered.indexOf(i) === -1) { filtered.push(i); } } return filtered; }, /** * Return "-webkit-" on "-webkit- old" */ removeNote: function removeNote(string) { if (string.indexOf(' ') === -1) { return string; } return string.split(' ')[0]; }, /** * Escape RegExp symbols */ escapeRegexp: function escapeRegexp(string) { return string.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); }, /** * Return regexp to check, that CSS string contain word */ regexp: function regexp(word, escape) { if (escape === void 0) { escape = true; } if (escape) { word = this.escapeRegexp(word); } return new RegExp("(^|[\\s,(])(" + word + "($|[\\s(,]))", 'gi'); }, /** * Change comma list */ editList: function editList(value, callback) { var origin = list.comma(value); var changed = callback(origin, []); if (origin === changed) { return value; } var join = value.match(/,\s*/); join = join ? join[0] : ', '; return changed.join(join); }, /** * Split the selector into parts. * It returns 3 level deep array because selectors can be comma * separated (1), space separated (2), and combined (3) * @param {String} selector selector string * @return {Array<Array<Array>>} 3 level deep array of split selector * @see utils.test.js for examples */ splitSelector: function splitSelector(selector) { return list.comma(selector).map(function (i) { return list.space(i).map(function (k) { return k.split(/(?=\.|#)/g); }); }); } }; /***/ }), /* 11 */ /***/ (function(module, exports) { module.exports = require("fs"); /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Return flexbox spec versions by prefix */ module.exports = function (prefix) { var spec; if (prefix === '-webkit- 2009' || prefix === '-moz-') { spec = 2009; } else if (prefix === '-ms-') { spec = 2012; } else if (prefix === '-webkit-') { spec = 'final'; } if (prefix === '-webkit- 2009') { prefix = '-webkit-'; } return [spec, prefix]; }; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); } var vendor = __webpack_require__(3).vendor; var Prefixer = __webpack_require__(30); var OldValue = __webpack_require__(31); var utils = __webpack_require__(10); var Value = /*#__PURE__*/ function (_Prefixer) { _inheritsLoose(Value, _Prefixer); function Value() { return _Prefixer.apply(this, arguments) || this; } /** * Clone decl for each prefixed values */ Value.save = function save(prefixes, decl) { var _this = this; var prop = decl.prop; var result = []; var _loop = function _loop(prefix) { var value = decl._autoprefixerValues[prefix]; if (value === decl.value) { return "continue"; } var item = void 0; var propPrefix = vendor.prefix(prop); if (propPrefix === '-pie-') { return "continue"; } if (propPrefix === prefix) { item = decl.value = value; result.push(item); return "continue"; } var prefixed = prefixes.prefixed(prop, prefix); var rule = decl.parent; if (!rule.every(function (i) { return i.prop !== prefixed; })) { result.push(item); return "continue"; } var trimmed = value.replace(/\s+/, ' '); var already = rule.some(function (i) { return i.prop === decl.prop && i.value.replace(/\s+/, ' ') === trimmed; }); if (already) { result.push(item); return "continue"; } var cloned = _this.clone(decl, { value: value }); item = decl.parent.insertBefore(decl, cloned); result.push(item); }; for (var prefix in decl._autoprefixerValues) { var _ret = _loop(prefix); if (_ret === "continue") continue; } return result; } /** * Is declaration need to be prefixed */ ; var _proto = Value.prototype; _proto.check = function check(decl) { var value = decl.value; if (value.indexOf(this.name) === -1) { return false; } return !!value.match(this.regexp()); } /** * Lazy regexp loading */ ; _proto.regexp = function regexp() { return this.regexpCache || (this.regexpCache = utils.regexp(this.name)); } /** * Add prefix to values in string */ ; _proto.replace = function replace(string, prefix) { return string.replace(this.regexp(), "$1" + prefix + "$2"); } /** * Get value with comments if it was not changed */ ; _proto.value = function value(decl) { if (decl.raws.value && decl.raws.value.value === decl.value) { return decl.raws.value.raw; } else { return decl.value; } } /** * Save values with next prefixed token */ ; _proto.add = function add(decl, prefix) { if (!decl._autoprefixerValues) { decl._autoprefixerValues = {}; } var value = decl._autoprefixerValues[prefix] || this.value(decl); var before; do { before = value; value = this.replace(value, prefix); if (value === false) return; } while (value !== before); decl._autoprefixerValues[prefix] = value; } /** * Return function to fast find prefixed value */ ; _proto.old = function old(prefix) { return new OldValue(this.name, prefix + this.name); }; return Value; }(Prefixer); module.exports = Value; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { var jsReleases = __webpack_require__(268) var agents = __webpack_require__(79).agents var jsEOL = __webpack_require__(272) var path = __webpack_require__(4) var e2c = __webpack_require__(273) var BrowserslistError = __webpack_require__(81) var env = __webpack_require__(274) // Will load browser.js in webpack var FLOAT_RANGE = /^\d+(\.\d+)?(-\d+(\.\d+)?)*$/ var YEAR = 365.259641 * 24 * 60 * 60 * 1000 // Enum values MUST be powers of 2, so combination are safe /** @constant {number} */ var QUERY_OR = 1 /** @constant {number} */ var QUERY_AND = 2 function isVersionsMatch (versionA, versionB) { return (versionA + '.').indexOf(versionB + '.') === 0 } function isEolReleased (name) { var version = name.slice(1) return jsReleases.some(function (i) { return isVersionsMatch(i.version, version) }) } function normalize (versions) { return versions.filter(function (version) { return typeof version === 'string' }) } function normalizeElectron (version) { var versionToUse = version if (version.split('.').length === 3) { versionToUse = version .split('.') .slice(0, -1) .join('.') } return versionToUse } function nameMapper (name) { return function mapName (version) { return name + ' ' + version } } function getMajor (version) { return parseInt(version.split('.')[0]) } function getMajorVersions (released, number) { if (released.length === 0) return [] var minimum = getMajor(released[released.length - 1]) - parseInt(number) + 1 var selected = [] for (var i = released.length - 1; i >= 0; i--) { if (minimum > getMajor(released[i])) break selected.unshift(released[i]) } return selected } function uniq (array) { var filtered = [] for (var i = 0; i < array.length; i++) { if (filtered.indexOf(array[i]) === -1) filtered.push(array[i]) } return filtered } // Helpers function fillUsage (result, name, data) { for (var i in data) { result[name + ' ' + i] = data[i] } } function generateFilter (sign, version) { version = parseFloat(version) if (sign === '>') { return function