From: Juriy Zaytsev Date: Wed, 30 Mar 2016 21:31:08 +0000 (-0700) Subject: Version 1.4.0 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f68b7afd4a02aedd7a6b553e1e11b20bb2e0a14c;p=html-minifier.git Version 1.4.0 --- diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index 2eac123..c1828c3 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -1,5 +1,5 @@ /*! - * HTMLMinifier v1.3.1 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v1.4.0 (http://kangax.github.io/html-minifier/) * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ @@ -308,8 +308,8 @@ function amdefine(module, requireFn) { module.exports = amdefine; -}).call(this,require('_process'),"/node_modules\\amdefine\\amdefine.js") -},{"_process":78,"path":76}],2:[function(require,module,exports){ +}).call(this,require('_process'),"/node_modules/amdefine/amdefine.js") +},{"_process":79,"path":77}],2:[function(require,module,exports){ 'use strict' exports.toByteArray = toByteArray @@ -320,12 +320,17 @@ var revLookup = [] var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array function init () { + var i var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - for (var i = 0, len = code.length; i < len; ++i) { + var len = code.length + + for (i = 0; i < len; i++) { lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i } + for (i = 0; i < len; ++i) { + revLookup[code.charCodeAt(i)] = i + } revLookup['-'.charCodeAt(0)] = 62 revLookup['_'.charCodeAt(0)] = 63 } @@ -357,8 +362,8 @@ function toByteArray (b64) { for (i = 0, j = 0; i < l; i += 4, j += 3) { tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)] - arr[L++] = (tmp >> 16) & 0xFF - arr[L++] = (tmp >> 8) & 0xFF + arr[L++] = (tmp & 0xFF0000) >> 16 + arr[L++] = (tmp & 0xFF00) >> 8 arr[L++] = tmp & 0xFF } @@ -713,12 +718,17 @@ Buffer.compare = function compare (a, b) { var x = a.length var y = b.length - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i] - y = b[i] - break - } + var i = 0 + var len = Math.min(x, y) + while (i < len) { + if (a[i] !== b[i]) break + + ++i + } + + if (i !== len) { + x = a[i] + y = b[i] } if (x < y) return -1 @@ -879,6 +889,7 @@ Buffer.prototype.inspect = function inspect () { Buffer.prototype.compare = function compare (b) { if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') + if (this === b) return 0 return Buffer.compare(this, b) } @@ -1884,7 +1895,14 @@ function blitBuffer (src, dst, offset, length) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"base64-js":2,"ieee754":70,"isarray":73}],6:[function(require,module,exports){ +},{"base64-js":2,"ieee754":71,"isarray":6}],6:[function(require,module,exports){ +var toString = {}.toString; + +module.exports = Array.isArray || function (arr) { + return toString.call(arr) == '[object Array]'; +}; + +},{}],7:[function(require,module,exports){ module.exports = { "100": "Continue", "101": "Switching Protocols", @@ -1949,10 +1967,10 @@ module.exports = { "511": "Network Authentication Required" } -},{}],7:[function(require,module,exports){ +},{}],8:[function(require,module,exports){ module.exports = require('./lib/clean'); -},{"./lib/clean":8}],8:[function(require,module,exports){ +},{"./lib/clean":9}],9:[function(require,module,exports){ (function (process){ /** * Clean-css - https://github.com/jakubpawlowicz/clean-css @@ -2187,7 +2205,7 @@ function minify(context, data) { } }).call(this,require('_process')) -},{"./imports/inliner":12,"./properties/validator":26,"./selectors/advanced":29,"./selectors/simple":42,"./stringifier/simple":46,"./stringifier/source-maps":47,"./text/comments-processor":48,"./text/expressions-processor":50,"./text/free-text-processor":51,"./text/urls-processor":52,"./tokenizer/tokenize":55,"./urls/rebase":56,"./utils/compatibility":60,"./utils/input-source-map-tracker":61,"./utils/object":62,"./utils/source-reader":64,"./utils/source-tracker":65,"_process":78,"fs":4,"path":76,"url":140}],9:[function(require,module,exports){ +},{"./imports/inliner":13,"./properties/validator":27,"./selectors/advanced":30,"./selectors/simple":43,"./stringifier/simple":47,"./stringifier/source-maps":48,"./text/comments-processor":49,"./text/expressions-processor":51,"./text/free-text-processor":52,"./text/urls-processor":53,"./tokenizer/tokenize":56,"./urls/rebase":57,"./utils/compatibility":61,"./utils/input-source-map-tracker":62,"./utils/object":63,"./utils/source-reader":65,"./utils/source-tracker":66,"_process":79,"fs":4,"path":77,"url":141}],10:[function(require,module,exports){ var HexNameShortener = {}; var COLORS = { @@ -2375,7 +2393,7 @@ HexNameShortener.shorten = function (value) { module.exports = HexNameShortener; -},{}],10:[function(require,module,exports){ +},{}],11:[function(require,module,exports){ // HSL to RGB converter. Both methods adapted from: // http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript @@ -2444,7 +2462,7 @@ HSLColor.prototype.toHex = function () { module.exports = HSLColor; -},{}],11:[function(require,module,exports){ +},{}],12:[function(require,module,exports){ function RGB(red, green, blue) { this.red = red; this.green = green; @@ -2462,7 +2480,7 @@ RGB.prototype.toHex = function () { module.exports = RGB; -},{}],12:[function(require,module,exports){ +},{}],13:[function(require,module,exports){ (function (process){ var fs = require('fs'); var path = require('path'); @@ -2857,7 +2875,7 @@ function restoreImport(importedUrl, mediaQuery, context) { module.exports = ImportInliner; }).call(this,require('_process')) -},{"../urls/rewrite":58,"../utils/object.js":62,"../utils/split":66,"_process":78,"fs":4,"http":122,"https":69,"path":76,"url":140}],13:[function(require,module,exports){ +},{"../urls/rewrite":59,"../utils/object.js":63,"../utils/split":67,"_process":79,"fs":4,"http":123,"https":70,"path":77,"url":141}],14:[function(require,module,exports){ var wrapSingle = require('./wrap-for-optimizing').single; var split = require('../utils/split'); @@ -3188,7 +3206,7 @@ module.exports = { outline: widthStyleColor }; -},{"../utils/split":66,"./wrap-for-optimizing":28}],14:[function(require,module,exports){ +},{"../utils/split":67,"./wrap-for-optimizing":29}],15:[function(require,module,exports){ // Functions that decide what value can override what. // The main purpose is to disallow removing CSS fallbacks. // A separate implementation is needed for every different kind of CSS property. @@ -3315,7 +3333,7 @@ module.exports = { unit: unit }; -},{}],15:[function(require,module,exports){ +},{}],16:[function(require,module,exports){ var wrapSingle = require('./wrap-for-optimizing').single; function deep(property) { @@ -3343,7 +3361,7 @@ module.exports = { shallow: shallow }; -},{"./wrap-for-optimizing":28}],16:[function(require,module,exports){ +},{"./wrap-for-optimizing":29}],17:[function(require,module,exports){ // Contains the interpretation of CSS properties, as used by the property optimizer var breakUp = require('./break-up'); @@ -3630,7 +3648,7 @@ for (var property in compactable) { module.exports = compactable; -},{"./break-up":13,"./can-override":14,"./restore":24}],17:[function(require,module,exports){ +},{"./break-up":14,"./can-override":15,"./restore":25}],18:[function(require,module,exports){ var shallowClone = require('./clone').shallow; var MULTIPLEX_SEPARATOR = ','; @@ -3656,7 +3674,7 @@ function everyCombination(fn, left, right, validator) { module.exports = everyCombination; -},{"./clone":15}],18:[function(require,module,exports){ +},{"./clone":16}],19:[function(require,module,exports){ function hasInherit(property) { for (var i = property.value.length - 1; i >= 0; i--) { if (property.value[i][0] == 'inherit') @@ -3668,7 +3686,7 @@ function hasInherit(property) { module.exports = hasInherit; -},{}],19:[function(require,module,exports){ +},{}],20:[function(require,module,exports){ var compactable = require('./compactable'); var wrapForOptimizing = require('./wrap-for-optimizing').all; var populateComponents = require('./populate-components'); @@ -3882,7 +3900,7 @@ function optimize(selector, properties, mergeAdjacent, withCompacting, options, module.exports = optimize; -},{"../stringifier/one-time":45,"./compactable":16,"./override-compactor":20,"./populate-components":21,"./remove-unused":22,"./restore-from-optimizing":23,"./shorthand-compactor":25,"./wrap-for-optimizing":28}],20:[function(require,module,exports){ +},{"../stringifier/one-time":46,"./compactable":17,"./override-compactor":21,"./populate-components":22,"./remove-unused":23,"./restore-from-optimizing":24,"./shorthand-compactor":26,"./wrap-for-optimizing":29}],21:[function(require,module,exports){ var canOverride = require('./can-override'); var compactable = require('./compactable'); var deepClone = require('./clone').deep; @@ -4263,7 +4281,7 @@ function compactOverrides(properties, compatibility, validator) { module.exports = compactOverrides; -},{"../stringifier/one-time":45,"./can-override":14,"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./restore-from-optimizing":23,"./vendor-prefixes":27}],21:[function(require,module,exports){ +},{"../stringifier/one-time":46,"./can-override":15,"./clone":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./restore-from-optimizing":24,"./vendor-prefixes":28}],22:[function(require,module,exports){ var compactable = require('./compactable'); function populateComponents(properties, validator) { @@ -4286,7 +4304,7 @@ function populateComponents(properties, validator) { module.exports = populateComponents; -},{"./compactable":16}],22:[function(require,module,exports){ +},{"./compactable":17}],23:[function(require,module,exports){ function removeUnused(properties) { for (var i = properties.length - 1; i >= 0; i--) { var property = properties[i]; @@ -4298,7 +4316,7 @@ function removeUnused(properties) { module.exports = removeUnused; -},{}],23:[function(require,module,exports){ +},{}],24:[function(require,module,exports){ var compactable = require('./compactable'); var BACKSLASH_HACK = '\\9'; @@ -4360,7 +4378,7 @@ function restoreFromOptimizing(properties, simpleMode) { module.exports = restoreFromOptimizing; -},{"./compactable":16}],24:[function(require,module,exports){ +},{"./compactable":17}],25:[function(require,module,exports){ var shallowClone = require('./clone').shallow; var MULTIPLEX_SEPARATOR = ','; var SIZE_POSITION_SEPARATOR = '/'; @@ -4591,7 +4609,7 @@ module.exports = { withoutDefaults: withoutDefaults }; -},{"./clone":15}],25:[function(require,module,exports){ +},{"./clone":16}],26:[function(require,module,exports){ var compactable = require('./compactable'); var deepClone = require('./clone').deep; var hasInherit = require('./has-inherit'); @@ -4727,7 +4745,7 @@ function compactShortands(properties, sourceMaps, validator) { module.exports = compactShortands; -},{"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./populate-components":21,"./wrap-for-optimizing":28}],26:[function(require,module,exports){ +},{"./clone":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./populate-components":22,"./wrap-for-optimizing":29}],27:[function(require,module,exports){ // Validates various CSS property values var split = require('../utils/split'); @@ -4926,7 +4944,7 @@ Validator.prototype.areSameFunction = function (a, b) { module.exports = Validator; -},{"../utils/split":66}],27:[function(require,module,exports){ +},{"../utils/split":67}],28:[function(require,module,exports){ var VENDOR_PREFIX_PATTERN = /$\-moz\-|\-ms\-|\-o\-|\-webkit\-/; function prefixesIn(tokens) { @@ -4954,7 +4972,7 @@ module.exports = { same: same }; -},{}],28:[function(require,module,exports){ +},{}],29:[function(require,module,exports){ var BACKSLASH_HACK = '\\'; var IMPORTANT_TOKEN = '!important'; var STAR_HACK = '*'; @@ -5067,7 +5085,7 @@ module.exports = { single: wrapSingle }; -},{}],29:[function(require,module,exports){ +},{}],30:[function(require,module,exports){ var optimizeProperties = require('../properties/optimizer'); var removeDuplicates = require('./remove-duplicates'); @@ -5155,7 +5173,7 @@ function optimize(tokens, options, validator, withRestructuring) { module.exports = optimize; -},{"../properties/optimizer":19,"./merge-adjacent":33,"./merge-media-queries":34,"./merge-non-adjacent-by-body":35,"./merge-non-adjacent-by-selector":36,"./reduce-non-adjacent":37,"./remove-duplicate-media-queries":38,"./remove-duplicates":39,"./restructure":41}],30:[function(require,module,exports){ +},{"../properties/optimizer":20,"./merge-adjacent":34,"./merge-media-queries":35,"./merge-non-adjacent-by-body":36,"./merge-non-adjacent-by-selector":37,"./reduce-non-adjacent":38,"./remove-duplicate-media-queries":39,"./remove-duplicates":40,"./restructure":42}],31:[function(require,module,exports){ function removeWhitespace(match, value) { return '[' + value.replace(/ /g, '') + ']'; } @@ -5164,15 +5182,6 @@ function selectorSorter(s1, s2) { return s1[0] > s2[0] ? 1 : -1; } -function whitespaceReplacements(_, p1, p2, p3) { - if (p1 && p2 && p3.length) - return p1 + p2 + ' '; - else if (p1 && p2) - return p1 + p2; - else - return p2; -} - var CleanUp = { selectors: function (selectors, removeUnsupported, adjacentSpace) { var list = []; @@ -5183,7 +5192,7 @@ var CleanUp = { var reduced = selector[0] .replace(/\s+/g, ' ') .replace(/ ?, ?/g, ',') - .replace(/\s*(\\)?([>+~])(\s*)/g, whitespaceReplacements) + .replace(/\s*([>\+\~])\s*/g, '$1') .trim(); if (adjacentSpace && reduced.indexOf('nav') > 0) @@ -5246,7 +5255,7 @@ var CleanUp = { module.exports = CleanUp; -},{}],31:[function(require,module,exports){ +},{}],32:[function(require,module,exports){ // This extractor is used in advanced optimizations // IMPORTANT: Mind Token class and this code is not related! // Properties will be tokenized in one step, see #429 @@ -5317,14 +5326,14 @@ function findNameRoot(name) { module.exports = extract; -},{"../stringifier/one-time":45}],32:[function(require,module,exports){ +},{"../stringifier/one-time":46}],33:[function(require,module,exports){ function isSpecial(options, selector) { return options.compatibility.selectors.special.test(selector); } module.exports = isSpecial; -},{}],33:[function(require,module,exports){ +},{}],34:[function(require,module,exports){ var optimizeProperties = require('../properties/optimizer'); var stringifyBody = require('../stringifier/one-time').body; @@ -5361,7 +5370,7 @@ function mergeAdjacent(tokens, options, validator) { module.exports = mergeAdjacent; -},{"../properties/optimizer":19,"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],34:[function(require,module,exports){ +},{"../properties/optimizer":20,"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],35:[function(require,module,exports){ var canReorder = require('./reorderable').canReorder; var extractProperties = require('./extractor'); @@ -5427,7 +5436,7 @@ function mergeMediaQueries(tokens) { module.exports = mergeMediaQueries; -},{"./extractor":31,"./reorderable":40}],35:[function(require,module,exports){ +},{"./extractor":32,"./reorderable":41}],36:[function(require,module,exports){ var stringifyBody = require('../stringifier/one-time').body; var stringifySelectors = require('../stringifier/one-time').selectors; var cleanUpSelectors = require('./clean-up').selectors; @@ -5490,7 +5499,7 @@ function mergeNonAdjacentByBody(tokens, options) { module.exports = mergeNonAdjacentByBody; -},{"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],36:[function(require,module,exports){ +},{"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],37:[function(require,module,exports){ var optimizeProperties = require('../properties/optimizer'); var stringifySelectors = require('../stringifier/one-time').selectors; var extractProperties = require('./extractor'); @@ -5568,7 +5577,7 @@ function mergeNonAdjacentBySelector(tokens, options, validator) { module.exports = mergeNonAdjacentBySelector; -},{"../properties/optimizer":19,"../stringifier/one-time":45,"./extractor":31,"./reorderable":40}],37:[function(require,module,exports){ +},{"../properties/optimizer":20,"../stringifier/one-time":46,"./extractor":32,"./reorderable":41}],38:[function(require,module,exports){ var optimizeProperties = require('../properties/optimizer'); var stringifyBody = require('../stringifier/one-time').body; var stringifySelectors = require('../stringifier/one-time').selectors; @@ -5742,7 +5751,7 @@ function reduceSelector(tokens, selector, data, context, options, validator) { module.exports = reduceNonAdjacent; -},{"../properties/optimizer":19,"../stringifier/one-time":45,"../utils/clone-array":59,"./is-special":32}],38:[function(require,module,exports){ +},{"../properties/optimizer":20,"../stringifier/one-time":46,"../utils/clone-array":60,"./is-special":33}],39:[function(require,module,exports){ var stringifyAll = require('../stringifier/one-time').all; function removeDuplicateMediaQueries(tokens) { @@ -5765,7 +5774,7 @@ function removeDuplicateMediaQueries(tokens) { module.exports = removeDuplicateMediaQueries; -},{"../stringifier/one-time":45}],39:[function(require,module,exports){ +},{"../stringifier/one-time":46}],40:[function(require,module,exports){ var stringifyBody = require('../stringifier/one-time').body; var stringifySelectors = require('../stringifier/one-time').selectors; @@ -5808,7 +5817,7 @@ function removeDuplicates(tokens) { module.exports = removeDuplicates; -},{"../stringifier/one-time":45}],40:[function(require,module,exports){ +},{"../stringifier/one-time":46}],41:[function(require,module,exports){ // TODO: it'd be great to merge it with the other canReorder functionality var FLEX_PROPERTIES = /align\-items|box\-align|box\-pack|flex|justify/; @@ -5905,7 +5914,7 @@ module.exports = { canReorderSingle: canReorderSingle }; -},{}],41:[function(require,module,exports){ +},{}],42:[function(require,module,exports){ var extractProperties = require('./extractor'); var canReorderSingle = require('./reorderable').canReorderSingle; var stringifyBody = require('../stringifier/one-time').body; @@ -6276,7 +6285,7 @@ function restructure(tokens, options) { module.exports = restructure; -},{"../stringifier/one-time":45,"../utils/clone-array":59,"./clean-up":30,"./extractor":31,"./is-special":32,"./reorderable":40}],42:[function(require,module,exports){ +},{"../stringifier/one-time":46,"../utils/clone-array":60,"./clean-up":31,"./extractor":32,"./is-special":33,"./reorderable":41}],43:[function(require,module,exports){ var cleanUpSelectors = require('./clean-up').selectors; var cleanUpBlock = require('./clean-up').block; var cleanUpAtRule = require('./clean-up').atRule; @@ -6722,7 +6731,7 @@ function optimize(tokens, options) { module.exports = optimize; -},{"../colors/hex-name-shortener":9,"../colors/hsl":10,"../colors/rgb":11,"../properties/remove-unused":22,"../properties/restore-from-optimizing":23,"../properties/wrap-for-optimizing":28,"../utils/split":66,"./clean-up":30}],43:[function(require,module,exports){ +},{"../colors/hex-name-shortener":10,"../colors/hsl":11,"../colors/rgb":12,"../properties/remove-unused":23,"../properties/restore-from-optimizing":24,"../properties/wrap-for-optimizing":29,"../utils/split":67,"./clean-up":31}],44:[function(require,module,exports){ var escapePrefix = '__ESCAPED_'; function trackPrefix(value, context, interestingContent) { @@ -6843,7 +6852,7 @@ function track(data, context, snapshotMetadata, fallbacks) { module.exports = track; -},{}],44:[function(require,module,exports){ +},{}],45:[function(require,module,exports){ var lineBreak = require('os').EOL; var AT_RULE = 'at-rule'; @@ -7015,7 +7024,7 @@ module.exports = { value: value }; -},{"os":75}],45:[function(require,module,exports){ +},{"os":76}],46:[function(require,module,exports){ var helpers = require('./helpers'); function store(token, context) { @@ -7067,7 +7076,7 @@ module.exports = { value: value }; -},{"./helpers":44}],46:[function(require,module,exports){ +},{"./helpers":45}],47:[function(require,module,exports){ var all = require('./helpers').all; function store(token, context) { @@ -7091,7 +7100,7 @@ function stringify(tokens, options, restoreCallback) { module.exports = stringify; -},{"./helpers":44}],47:[function(require,module,exports){ +},{"./helpers":45}],48:[function(require,module,exports){ (function (process){ var SourceMapGenerator = require('source-map').SourceMapGenerator; var all = require('./helpers').all; @@ -7191,7 +7200,7 @@ function stringify(tokens, options, restoreCallback, inputMapTracker) { module.exports = stringify; }).call(this,require('_process')) -},{"./helpers":44,"_process":78,"source-map":110}],48:[function(require,module,exports){ +},{"./helpers":45,"_process":79,"source-map":111}],49:[function(require,module,exports){ var EscapeStore = require('./escape-store'); var QuoteScanner = require('../utils/quote-scanner'); @@ -7324,7 +7333,7 @@ CommentsProcessor.prototype.restore = function (data) { module.exports = CommentsProcessor; -},{"../utils/quote-scanner":63,"./escape-store":49,"os":75}],49:[function(require,module,exports){ +},{"../utils/quote-scanner":64,"./escape-store":50,"os":76}],50:[function(require,module,exports){ var placeholderBrace = '__'; function EscapeStore(placeholderRoot) { @@ -7379,7 +7388,7 @@ EscapeStore.prototype.restore = function (placeholder) { module.exports = EscapeStore; -},{}],50:[function(require,module,exports){ +},{}],51:[function(require,module,exports){ var EscapeStore = require('./escape-store'); var EXPRESSION_NAME = 'expression'; @@ -7498,7 +7507,7 @@ ExpressionsProcessor.prototype.restore = function (data) { module.exports = ExpressionsProcessor; -},{"./escape-store":49,"os":75}],51:[function(require,module,exports){ +},{"./escape-store":50,"os":76}],52:[function(require,module,exports){ var EscapeStore = require('./escape-store'); var QuoteScanner = require('../utils/quote-scanner'); @@ -7598,7 +7607,7 @@ FreeTextProcessor.prototype.restore = function (data, prefixContext) { module.exports = FreeTextProcessor; -},{"../utils/quote-scanner":63,"./escape-store":49,"os":75}],52:[function(require,module,exports){ +},{"../utils/quote-scanner":64,"./escape-store":50,"os":76}],53:[function(require,module,exports){ var EscapeStore = require('./escape-store'); var reduceUrls = require('../urls/reduce'); @@ -7672,7 +7681,7 @@ UrlsProcessor.prototype.restore = function (data) { module.exports = UrlsProcessor; -},{"../urls/reduce":57,"./escape-store":49,"os":75}],53:[function(require,module,exports){ +},{"../urls/reduce":58,"./escape-store":50,"os":76}],54:[function(require,module,exports){ var split = require('../utils/split'); var COMMA = ','; @@ -7862,7 +7871,7 @@ function extractProperties(string, selectors, context) { module.exports = extractProperties; -},{"../utils/split":66}],54:[function(require,module,exports){ +},{"../utils/split":67}],55:[function(require,module,exports){ var split = require('../utils/split'); function extractSelectors(string, context) { @@ -7881,7 +7890,7 @@ function extractSelectors(string, context) { module.exports = extractSelectors; -},{"../utils/split":66}],55:[function(require,module,exports){ +},{"../utils/split":67}],56:[function(require,module,exports){ var extractProperties = require('./extract-properties'); var extractSelectors = require('./extract-selectors'); var track = require('../source-maps/track'); @@ -8147,7 +8156,7 @@ function intoTokens(context) { module.exports = tokenize; -},{"../source-maps/track":43,"../utils/split":66,"./extract-properties":53,"./extract-selectors":54,"path":76}],56:[function(require,module,exports){ +},{"../source-maps/track":44,"../utils/split":67,"./extract-properties":54,"./extract-selectors":55,"path":77}],57:[function(require,module,exports){ var path = require('path'); var rewriteUrls = require('./rewrite'); @@ -8179,7 +8188,7 @@ function rebaseUrls(data, context) { module.exports = rebaseUrls; -},{"./rewrite":58,"path":76}],57:[function(require,module,exports){ +},{"./rewrite":59,"path":77}],58:[function(require,module,exports){ var URL_PREFIX = 'url('; var UPPERCASE_URL_PREFIX = 'URL('; var URL_SUFFIX = ')'; @@ -8333,7 +8342,7 @@ function reduceAll(data, context, callback) { module.exports = reduceAll; -},{}],58:[function(require,module,exports){ +},{}],59:[function(require,module,exports){ (function (process){ var path = require('path'); var url = require('url'); @@ -8444,7 +8453,7 @@ function rewriteUrls(data, options, context) { module.exports = rewriteUrls; }).call(this,require('_process')) -},{"./reduce":57,"_process":78,"path":76,"url":140}],59:[function(require,module,exports){ +},{"./reduce":58,"_process":79,"path":77,"url":141}],60:[function(require,module,exports){ function cloneArray(array) { var cloned = array.slice(0); @@ -8458,7 +8467,7 @@ function cloneArray(array) { module.exports = cloneArray; -},{}],60:[function(require,module,exports){ +},{}],61:[function(require,module,exports){ var util = require('util'); var DEFAULTS = { @@ -8622,7 +8631,7 @@ Compatibility.prototype.toOptions = function () { module.exports = Compatibility; -},{"util":144}],61:[function(require,module,exports){ +},{"util":145}],62:[function(require,module,exports){ (function (process,global,Buffer){ var SourceMapConsumer = require('source-map').SourceMapConsumer; @@ -8910,7 +8919,7 @@ InputSourceMapStore.prototype.resolveSources = function (whenDone) { module.exports = InputSourceMapStore; }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) -},{"../utils/object.js":62,"_process":78,"buffer":5,"fs":4,"http":122,"https":69,"path":76,"source-map":110,"url":140}],62:[function(require,module,exports){ +},{"../utils/object.js":63,"_process":79,"buffer":5,"fs":4,"http":123,"https":70,"path":77,"source-map":111,"url":141}],63:[function(require,module,exports){ module.exports = { override: function (source1, source2) { var target = {}; @@ -8923,7 +8932,7 @@ module.exports = { } }; -},{}],63:[function(require,module,exports){ +},{}],64:[function(require,module,exports){ function QuoteScanner(data) { this.data = data; } @@ -9027,7 +9036,7 @@ QuoteScanner.prototype.each = function (callback) { module.exports = QuoteScanner; -},{}],64:[function(require,module,exports){ +},{}],65:[function(require,module,exports){ (function (Buffer){ var path = require('path'); var rewriteUrls = require('../urls/rewrite'); @@ -9127,7 +9136,7 @@ function fromHash(self) { module.exports = SourceReader; }).call(this,{"isBuffer":require("../../../is-buffer/index.js")}) -},{"../../../is-buffer/index.js":72,"../urls/rewrite":58,"path":76}],65:[function(require,module,exports){ +},{"../../../is-buffer/index.js":73,"../urls/rewrite":59,"path":77}],66:[function(require,module,exports){ function SourceTracker() { this.sources = []; } @@ -9160,7 +9169,7 @@ SourceTracker.prototype.removeAll = function (data) { module.exports = SourceTracker; -},{}],66:[function(require,module,exports){ +},{}],67:[function(require,module,exports){ function split(value, separator, includeSeparator, openLevel, closeLevel) { var withRegex = typeof separator != 'string'; var hasSeparator = withRegex ? @@ -9211,7 +9220,7 @@ function split(value, separator, includeSeparator, openLevel, closeLevel) { module.exports = split; -},{}],67:[function(require,module,exports){ +},{}],68:[function(require,module,exports){ (function (Buffer){ // Copyright Joyent, Inc. and other Node contributors. // @@ -9322,7 +9331,7 @@ function objectToString(o) { } }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":72}],68:[function(require,module,exports){ +},{"../../is-buffer/index.js":73}],69:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -9622,7 +9631,7 @@ function isUndefined(arg) { return arg === void 0; } -},{}],69:[function(require,module,exports){ +},{}],70:[function(require,module,exports){ var http = require('http'); var https = module.exports; @@ -9638,7 +9647,7 @@ https.request = function (params, cb) { return http.request.call(this, params, cb); } -},{"http":122}],70:[function(require,module,exports){ +},{"http":123}],71:[function(require,module,exports){ exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m var eLen = nBytes * 8 - mLen - 1 @@ -9724,7 +9733,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { buffer[offset + i - d] |= s * 128 } -},{}],71:[function(require,module,exports){ +},{}],72:[function(require,module,exports){ if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { @@ -9749,7 +9758,7 @@ if (typeof Object.create === 'function') { } } -},{}],72:[function(require,module,exports){ +},{}],73:[function(require,module,exports){ /** * Determine if an object is Buffer * @@ -9768,14 +9777,12 @@ module.exports = function (obj) { )) } -},{}],73:[function(require,module,exports){ -var toString = {}.toString; - +},{}],74:[function(require,module,exports){ module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; + return Object.prototype.toString.call(arr) == '[object Array]'; }; -},{}],74:[function(require,module,exports){ +},{}],75:[function(require,module,exports){ 'use strict'; var xmlChars = require('xml-char-classes'); @@ -9786,7 +9793,7 @@ function getRange(re) { // http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName module.exports = new RegExp('^[' + getRange(xmlChars.letter) + '_][' + getRange(xmlChars.letter) + getRange(xmlChars.digit) + '\\.\\-_' + getRange(xmlChars.combiningChar) + getRange(xmlChars.extender) + ']*$'); -},{"xml-char-classes":145}],75:[function(require,module,exports){ +},{"xml-char-classes":146}],76:[function(require,module,exports){ exports.endianness = function () { return 'LE' }; exports.hostname = function () { @@ -9833,7 +9840,7 @@ exports.tmpdir = exports.tmpDir = function () { exports.EOL = '\n'; -},{}],76:[function(require,module,exports){ +},{}],77:[function(require,module,exports){ (function (process){ // Copyright Joyent, Inc. and other Node contributors. // @@ -10061,7 +10068,7 @@ var substr = 'ab'.substr(-1) === 'b' ; }).call(this,require('_process')) -},{"_process":78}],77:[function(require,module,exports){ +},{"_process":79}],78:[function(require,module,exports){ (function (process){ 'use strict'; @@ -10085,7 +10092,7 @@ function nextTick(fn) { } }).call(this,require('_process')) -},{"_process":78}],78:[function(require,module,exports){ +},{"_process":79}],79:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; @@ -10178,9 +10185,9 @@ process.chdir = function (dir) { }; process.umask = function() { return 0; }; -},{}],79:[function(require,module,exports){ +},{}],80:[function(require,module,exports){ (function (global){ -/*! https://mths.be/punycode v1.4.1 by @mathias */ +/*! https://mths.be/punycode v1.4.0 by @mathias */ ;(function(root) { /** Detect free variables */ @@ -10668,7 +10675,7 @@ process.umask = function() { return 0; }; * @memberOf punycode * @type String */ - 'version': '1.4.1', + 'version': '1.3.2', /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. @@ -10715,7 +10722,7 @@ process.umask = function() { return 0; }; }(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],80:[function(require,module,exports){ +},{}],81:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -10801,7 +10808,7 @@ var isArray = Array.isArray || function (xs) { return Object.prototype.toString.call(xs) === '[object Array]'; }; -},{}],81:[function(require,module,exports){ +},{}],82:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -10888,16 +10895,16 @@ var objectKeys = Object.keys || function (obj) { return res; }; -},{}],82:[function(require,module,exports){ +},{}],83:[function(require,module,exports){ 'use strict'; exports.decode = exports.parse = require('./decode'); exports.encode = exports.stringify = require('./encode'); -},{"./decode":80,"./encode":81}],83:[function(require,module,exports){ +},{"./decode":81,"./encode":82}],84:[function(require,module,exports){ module.exports = require("./lib/_stream_duplex.js") -},{"./lib/_stream_duplex.js":84}],84:[function(require,module,exports){ +},{"./lib/_stream_duplex.js":85}],85:[function(require,module,exports){ // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from @@ -10906,21 +10913,22 @@ module.exports = require("./lib/_stream_duplex.js") 'use strict'; /**/ - var objectKeys = Object.keys || function (obj) { var keys = []; - for (var key in obj) { - keys.push(key); - }return keys; -}; + for (var key in obj) keys.push(key); + return keys; +} /**/ + module.exports = Duplex; /**/ var processNextTick = require('process-nextick-args'); /**/ + + /**/ var util = require('core-util-is'); util.inherits = require('inherits'); @@ -10934,21 +10942,26 @@ util.inherits(Duplex, Readable); var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + if (!Duplex.prototype[method]) + Duplex.prototype[method] = Writable.prototype[method]; } function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); + if (!(this instanceof Duplex)) + return new Duplex(options); Readable.call(this, options); Writable.call(this, options); - if (options && options.readable === false) this.readable = false; + if (options && options.readable === false) + this.readable = false; - if (options && options.writable === false) this.writable = false; + if (options && options.writable === false) + this.writable = false; this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; + if (options && options.allowHalfOpen === false) + this.allowHalfOpen = false; this.once('end', onend); } @@ -10957,7 +10970,8 @@ function Duplex(options) { function onend() { // if we allow half-open state, or if the writable side ended, // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) return; + if (this.allowHalfOpen || this._writableState.ended) + return; // no more data can be written. // But allow more writes to happen in this tick. @@ -10968,12 +10982,13 @@ function onEndNT(self) { self.end(); } -function forEach(xs, f) { +function forEach (xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } -},{"./_stream_readable":86,"./_stream_writable":88,"core-util-is":67,"inherits":71,"process-nextick-args":77}],85:[function(require,module,exports){ + +},{"./_stream_readable":87,"./_stream_writable":89,"core-util-is":68,"inherits":72,"process-nextick-args":78}],86:[function(require,module,exports){ // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. @@ -10992,15 +11007,17 @@ util.inherits = require('inherits'); util.inherits(PassThrough, Transform); function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); + if (!(this instanceof PassThrough)) + return new PassThrough(options); Transform.call(this, options); } -PassThrough.prototype._transform = function (chunk, encoding, cb) { +PassThrough.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); }; -},{"./_stream_transform":87,"core-util-is":67,"inherits":71}],86:[function(require,module,exports){ + +},{"./_stream_transform":88,"core-util-is":68,"inherits":72}],87:[function(require,module,exports){ (function (process){ 'use strict'; @@ -11010,10 +11027,12 @@ module.exports = Readable; var processNextTick = require('process-nextick-args'); /**/ + /**/ var isArray = require('isarray'); /**/ + /**/ var Buffer = require('buffer').Buffer; /**/ @@ -11023,20 +11042,21 @@ Readable.ReadableState = ReadableState; var EE = require('events'); /**/ -var EElistenerCount = function (emitter, type) { +var EElistenerCount = function(emitter, type) { return emitter.listeners(type).length; }; /**/ + + /**/ var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); +(function (){try{ + Stream = require('st' + 'ream'); +}catch(_){}finally{ + if (!Stream) + Stream = require('events').EventEmitter; +}}()) /**/ var Buffer = require('buffer').Buffer; @@ -11046,9 +11066,11 @@ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ + + /**/ var debugUtil = require('util'); -var debug = undefined; +var debug; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { @@ -11070,16 +11092,17 @@ function ReadableState(options, stream) { // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + if (stream instanceof Duplex) + this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; + this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; + this.highWaterMark = ~~this.highWaterMark; this.buffer = []; this.length = 0; @@ -11101,7 +11124,6 @@ function ReadableState(options, stream) { this.needReadable = false; this.emittedReadable = false; this.readableListening = false; - this.resumeScheduled = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. @@ -11121,7 +11143,8 @@ function ReadableState(options, stream) { this.decoder = null; this.encoding = null; if (options.encoding) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; + if (!StringDecoder) + StringDecoder = require('string_decoder/').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } @@ -11131,14 +11154,16 @@ var Duplex; function Readable(options) { Duplex = Duplex || require('./_stream_duplex'); - if (!(this instanceof Readable)) return new Readable(options); + if (!(this instanceof Readable)) + return new Readable(options); this._readableState = new ReadableState(options, this); // legacy this.readable = true; - if (options && typeof options.read === 'function') this._read = options.read; + if (options && typeof options.read === 'function') + this._read = options.read; Stream.call(this); } @@ -11147,7 +11172,7 @@ function Readable(options) { // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. -Readable.prototype.push = function (chunk, encoding) { +Readable.prototype.push = function(chunk, encoding) { var state = this._readableState; if (!state.objectMode && typeof chunk === 'string') { @@ -11162,12 +11187,12 @@ Readable.prototype.push = function (chunk, encoding) { }; // Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { +Readable.prototype.unshift = function(chunk) { var state = this._readableState; return readableAddChunk(this, state, chunk, '', true); }; -Readable.prototype.isPaused = function () { +Readable.prototype.isPaused = function() { return this._readableState.flowing === false; }; @@ -11186,28 +11211,26 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) { var e = new Error('stream.unshift() after end event'); stream.emit('error', e); } else { - var skipAdd; - if (state.decoder && !addToFront && !encoding) { + if (state.decoder && !addToFront && !encoding) chunk = state.decoder.write(chunk); - skipAdd = !state.objectMode && chunk.length === 0; - } - if (!addToFront) state.reading = false; + if (!addToFront) + state.reading = false; - // Don't add to the buffer if we've decoded to an empty string chunk and - // we're not in object mode - if (!skipAdd) { - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + // if we want the data now, just emit it. + if (state.flowing && state.length === 0 && !state.sync) { + stream.emit('data', chunk); + stream.read(0); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) + state.buffer.unshift(chunk); + else + state.buffer.push(chunk); - if (state.needReadable) emitReadable(stream); - } + if (state.needReadable) + emitReadable(stream); } maybeReadMore(stream, state); @@ -11219,6 +11242,7 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) { return needMoreData(state); } + // if it's past the high water mark, we can push in some more. // Also, if we have no data yet, we can stand some // more bytes. This is to work around cases where hwm=0, @@ -11227,12 +11251,16 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) { // needReadable was set, then we ought to push more, so that another // 'readable' event will be triggered. function needMoreData(state) { - return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); + return !state.ended && + (state.needReadable || + state.length < state.highWaterMark || + state.length === 0); } // backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; +Readable.prototype.setEncoding = function(enc) { + if (!StringDecoder) + StringDecoder = require('string_decoder/').StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; @@ -11257,22 +11285,29 @@ function computeNewHighWaterMark(n) { } function howMuchToRead(n, state) { - if (state.length === 0 && state.ended) return 0; + if (state.length === 0 && state.ended) + return 0; - if (state.objectMode) return n === 0 ? 0 : 1; + if (state.objectMode) + return n === 0 ? 0 : 1; if (n === null || isNaN(n)) { // only flow one buffer at a time - if (state.flowing && state.buffer.length) return state.buffer[0].length;else return state.length; + if (state.flowing && state.buffer.length) + return state.buffer[0].length; + else + return state.length; } - if (n <= 0) return 0; + if (n <= 0) + return 0; // If we're asking for more than the target buffer level, // then raise the water mark. Bump up to the next highest // power of 2, to prevent increasing it excessively in tiny // amounts. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n > state.highWaterMark) + state.highWaterMark = computeNewHighWaterMark(n); // don't have that much. return null, unless we've ended. if (n > state.length) { @@ -11288,19 +11323,25 @@ function howMuchToRead(n, state) { } // you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { +Readable.prototype.read = function(n) { debug('read', n); var state = this._readableState; var nOrig = n; - if (typeof n !== 'number' || n > 0) state.emittedReadable = false; + if (typeof n !== 'number' || n > 0) + state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. - if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { + if (n === 0 && + state.needReadable && + (state.length >= state.highWaterMark || state.ended)) { debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + if (state.length === 0 && state.ended) + endReadable(this); + else + emitReadable(this); return null; } @@ -11308,7 +11349,8 @@ Readable.prototype.read = function (n) { // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); + if (state.length === 0) + endReadable(this); return null; } @@ -11356,7 +11398,8 @@ Readable.prototype.read = function (n) { state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; + if (state.length === 0) + state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; @@ -11364,10 +11407,14 @@ Readable.prototype.read = function (n) { // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. - if (doRead && !state.reading) n = howMuchToRead(nOrig, state); + if (doRead && !state.reading) + n = howMuchToRead(nOrig, state); var ret; - if (n > 0) ret = fromList(n, state);else ret = null; + if (n > 0) + ret = fromList(n, state); + else + ret = null; if (ret === null) { state.needReadable = true; @@ -11378,24 +11425,32 @@ Readable.prototype.read = function (n) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. - if (state.length === 0 && !state.ended) state.needReadable = true; + if (state.length === 0 && !state.ended) + state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended && state.length === 0) endReadable(this); + if (nOrig !== n && state.ended && state.length === 0) + endReadable(this); - if (ret !== null) this.emit('data', ret); + if (ret !== null) + this.emit('data', ret); return ret; }; function chunkInvalid(state, chunk) { var er = null; - if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { + if (!(Buffer.isBuffer(chunk)) && + typeof chunk !== 'string' && + chunk !== null && + chunk !== undefined && + !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; } + function onEofChunk(stream, state) { if (state.ended) return; if (state.decoder) { @@ -11420,7 +11475,10 @@ function emitReadable(stream) { if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; - if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); + if (state.sync) + processNextTick(emitReadable_, stream); + else + emitReadable_(stream); } } @@ -11430,6 +11488,7 @@ function emitReadable_(stream) { flow(stream); } + // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if @@ -11445,12 +11504,15 @@ function maybeReadMore(stream, state) { function maybeReadMore_(stream, state) { var len = state.length; - while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { + while (!state.reading && !state.flowing && !state.ended && + state.length < state.highWaterMark) { debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. - break;else len = state.length; + break; + else + len = state.length; } state.readingMore = false; } @@ -11459,11 +11521,11 @@ function maybeReadMore_(stream, state) { // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { +Readable.prototype._read = function(n) { this.emit('error', new Error('not implemented')); }; -Readable.prototype.pipe = function (dest, pipeOpts) { +Readable.prototype.pipe = function(dest, pipeOpts) { var src = this; var state = this._readableState; @@ -11481,10 +11543,15 @@ Readable.prototype.pipe = function (dest, pipeOpts) { state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + var doEnd = (!pipeOpts || pipeOpts.end !== false) && + dest !== process.stdout && + dest !== process.stderr; var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); + if (state.endEmitted) + processNextTick(endFn); + else + src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable) { @@ -11526,7 +11593,9 @@ Readable.prototype.pipe = function (dest, pipeOpts) { // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + if (state.awaitDrain && + (!dest._writableState || dest._writableState.needDrain)) + ondrain(); } src.on('data', ondata); @@ -11537,7 +11606,10 @@ Readable.prototype.pipe = function (dest, pipeOpts) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. - if (state.pipesCount === 1 && state.pipes[0] === dest && src.listenerCount('data') === 1 && !cleanedUp) { + if (state.pipesCount === 1 && + state.pipes[0] === dest && + src.listenerCount('data') === 1 && + !cleanedUp) { debug('false write response, pause', src._readableState.awaitDrain); src._readableState.awaitDrain++; } @@ -11551,11 +11623,18 @@ Readable.prototype.pipe = function (dest, pipeOpts) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); + if (EElistenerCount(dest, 'error') === 0) + dest.emit('error', er); } // This is a brutally ugly hack to make sure that our error handler // is attached before any userland ones. NEVER DO THIS. - if (!dest._events || !dest._events.error) dest.on('error', onerror);else if (isArray(dest._events.error)) dest._events.error.unshift(onerror);else dest._events.error = [onerror, dest._events.error]; + if (!dest._events || !dest._events.error) + dest.on('error', onerror); + else if (isArray(dest._events.error)) + dest._events.error.unshift(onerror); + else + dest._events.error = [onerror, dest._events.error]; + // Both close and finish should trigger unpipe, but only once. function onclose() { @@ -11588,10 +11667,11 @@ Readable.prototype.pipe = function (dest, pipeOpts) { }; function pipeOnDrain(src) { - return function () { + return function() { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; + if (state.awaitDrain) + state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); @@ -11599,24 +11679,29 @@ function pipeOnDrain(src) { }; } -Readable.prototype.unpipe = function (dest) { + +Readable.prototype.unpipe = function(dest) { var state = this._readableState; // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; + if (state.pipesCount === 0) + return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; + if (dest && dest !== state.pipes) + return this; - if (!dest) dest = state.pipes; + if (!dest) + dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; - if (dest) dest.emit('unpipe', this); + if (dest) + dest.emit('unpipe', this); return this; } @@ -11630,18 +11715,20 @@ Readable.prototype.unpipe = function (dest) { state.pipesCount = 0; state.flowing = false; - for (var _i = 0; _i < len; _i++) { - dests[_i].emit('unpipe', this); - }return this; + for (var i = 0; i < len; i++) + dests[i].emit('unpipe', this); + return this; } // try to find the right one. var i = indexOf(state.pipes, dest); - if (i === -1) return this; + if (i === -1) + return this; state.pipes.splice(i, 1); state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; + if (state.pipesCount === 1) + state.pipes = state.pipes[0]; dest.emit('unpipe', this); @@ -11650,7 +11737,7 @@ Readable.prototype.unpipe = function (dest) { // set up data events if they are asked for // Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { +Readable.prototype.on = function(ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); // If listening to data, and it has not explicitly been paused, @@ -11659,7 +11746,7 @@ Readable.prototype.on = function (ev, fn) { this.resume(); } - if (ev === 'readable' && !this._readableState.endEmitted) { + if (ev === 'readable' && this.readable) { var state = this._readableState; if (!state.readableListening) { state.readableListening = true; @@ -11684,7 +11771,7 @@ function nReadingNextTick(self) { // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { +Readable.prototype.resume = function() { var state = this._readableState; if (!state.flowing) { debug('resume'); @@ -11710,10 +11797,11 @@ function resume_(stream, state) { state.resumeScheduled = false; stream.emit('resume'); flow(stream); - if (state.flowing && !state.reading) stream.read(0); + if (state.flowing && !state.reading) + stream.read(0); } -Readable.prototype.pause = function () { +Readable.prototype.pause = function() { debug('call pause flowing=%j', this._readableState.flowing); if (false !== this._readableState.flowing) { debug('pause'); @@ -11736,27 +11824,32 @@ function flow(stream) { // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { +Readable.prototype.wrap = function(stream) { var state = this._readableState; var paused = false; var self = this; - stream.on('end', function () { + stream.on('end', function() { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); - if (chunk && chunk.length) self.push(chunk); + if (chunk && chunk.length) + self.push(chunk); } self.push(null); }); - stream.on('data', function (chunk) { + stream.on('data', function(chunk) { debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); + if (state.decoder) + chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + if (state.objectMode && (chunk === null || chunk === undefined)) + return; + else if (!state.objectMode && (!chunk || !chunk.length)) + return; var ret = self.push(chunk); if (!ret) { @@ -11769,23 +11862,21 @@ Readable.prototype.wrap = function (stream) { // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function (method) { - return function () { - return stream[method].apply(stream, arguments); - }; - }(i); + this[i] = function(method) { return function() { + return stream[method].apply(stream, arguments); + }; }(i); } } // proxy certain important events. var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function (ev) { + forEach(events, function(ev) { stream.on(ev, self.emit.bind(self, ev)); }); // when we try to consume some more bytes, simply unpause the // underlying stream. - self._read = function (n) { + self._read = function(n) { debug('wrapped _read', n); if (paused) { paused = false; @@ -11796,6 +11887,7 @@ Readable.prototype.wrap = function (stream) { return self; }; + // exposed for testing purposes only. Readable._fromList = fromList; @@ -11809,11 +11901,21 @@ function fromList(n, state) { var ret; // nothing in the list, definitely empty. - if (list.length === 0) return null; + if (list.length === 0) + return null; - if (length === 0) ret = null;else if (objectMode) ret = list.shift();else if (!n || n >= length) { + if (length === 0) + ret = null; + else if (objectMode) + ret = list.shift(); + else if (!n || n >= length) { // read it all, truncate the array. - if (stringMode) ret = list.join('');else if (list.length === 1) ret = list[0];else ret = Buffer.concat(list, length); + if (stringMode) + ret = list.join(''); + else if (list.length === 1) + ret = list[0]; + else + ret = Buffer.concat(list, length); list.length = 0; } else { // read just some of it. @@ -11829,16 +11931,25 @@ function fromList(n, state) { } else { // complex case. // we have enough to cover it, but it spans past the first buffer. - if (stringMode) ret = '';else ret = new Buffer(n); + if (stringMode) + ret = ''; + else + ret = new Buffer(n); var c = 0; for (var i = 0, l = list.length; i < l && c < n; i++) { var buf = list[0]; var cpy = Math.min(n - c, buf.length); - if (stringMode) ret += buf.slice(0, cpy);else buf.copy(ret, c, 0, cpy); + if (stringMode) + ret += buf.slice(0, cpy); + else + buf.copy(ret, c, 0, cpy); - if (cpy < buf.length) list[0] = buf.slice(cpy);else list.shift(); + if (cpy < buf.length) + list[0] = buf.slice(cpy); + else + list.shift(); c += cpy; } @@ -11853,7 +11964,8 @@ function endReadable(stream) { // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. - if (state.length > 0) throw new Error('endReadable called on non-empty stream'); + if (state.length > 0) + throw new Error('endReadable called on non-empty stream'); if (!state.endEmitted) { state.ended = true; @@ -11870,20 +11982,21 @@ function endReadableNT(state, stream) { } } -function forEach(xs, f) { +function forEach (xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } -function indexOf(xs, x) { +function indexOf (xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } + }).call(this,require('_process')) -},{"./_stream_duplex":84,"_process":78,"buffer":5,"core-util-is":67,"events":68,"inherits":71,"isarray":73,"process-nextick-args":77,"string_decoder/":126,"util":3}],87:[function(require,module,exports){ +},{"./_stream_duplex":85,"_process":79,"buffer":5,"core-util-is":68,"events":69,"inherits":72,"isarray":74,"process-nextick-args":78,"string_decoder/":127,"util":3}],88:[function(require,module,exports){ // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where @@ -11939,8 +12052,9 @@ util.inherits = require('inherits'); util.inherits(Transform, Duplex); + function TransformState(stream) { - this.afterTransform = function (er, data) { + this.afterTransform = function(er, data) { return afterTransform(stream, er, data); }; @@ -11948,7 +12062,6 @@ function TransformState(stream) { this.transforming = false; this.writecb = null; this.writechunk = null; - this.writeencoding = null; } function afterTransform(stream, er, data) { @@ -11957,14 +12070,17 @@ function afterTransform(stream, er, data) { var cb = ts.writecb; - if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); + if (!cb) + return stream.emit('error', new Error('no writecb in Transform class')); ts.writechunk = null; ts.writecb = null; - if (data !== null && data !== undefined) stream.push(data); + if (data !== null && data !== undefined) + stream.push(data); - cb(er); + if (cb) + cb(er); var rs = stream._readableState; rs.reading = false; @@ -11973,8 +12089,10 @@ function afterTransform(stream, er, data) { } } + function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); + if (!(this instanceof Transform)) + return new Transform(options); Duplex.call(this, options); @@ -11992,19 +12110,24 @@ function Transform(options) { this._readableState.sync = false; if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; + if (typeof options.transform === 'function') + this._transform = options.transform; - if (typeof options.flush === 'function') this._flush = options.flush; + if (typeof options.flush === 'function') + this._flush = options.flush; } - this.once('prefinish', function () { - if (typeof this._flush === 'function') this._flush(function (er) { - done(stream, er); - });else done(stream); + this.once('prefinish', function() { + if (typeof this._flush === 'function') + this._flush(function(er) { + done(stream, er); + }); + else + done(stream); }); } -Transform.prototype.push = function (chunk, encoding) { +Transform.prototype.push = function(chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; @@ -12019,25 +12142,28 @@ Transform.prototype.push = function (chunk, encoding) { // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { +Transform.prototype._transform = function(chunk, encoding, cb) { throw new Error('not implemented'); }; -Transform.prototype._write = function (chunk, encoding, cb) { +Transform.prototype._write = function(chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + if (ts.needTransform || + rs.needReadable || + rs.length < rs.highWaterMark) + this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { +Transform.prototype._read = function(n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { @@ -12050,22 +12176,26 @@ Transform.prototype._read = function (n) { } }; + function done(stream, er) { - if (er) return stream.emit('error', er); + if (er) + return stream.emit('error', er); // if there's nothing in the write buffer, then that means // that nothing more will ever be provided var ws = stream._writableState; var ts = stream._transformState; - if (ws.length) throw new Error('calling transform done when ws.length != 0'); + if (ws.length) + throw new Error('calling transform done when ws.length != 0'); - if (ts.transforming) throw new Error('calling transform done when still transforming'); + if (ts.transforming) + throw new Error('calling transform done when still transforming'); return stream.push(null); } -},{"./_stream_duplex":84,"core-util-is":67,"inherits":71}],88:[function(require,module,exports){ -(function (process){ + +},{"./_stream_duplex":85,"core-util-is":68,"inherits":72}],89:[function(require,module,exports){ // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. @@ -12078,9 +12208,6 @@ module.exports = Writable; var processNextTick = require('process-nextick-args'); /**/ -/**/ -var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; -/**/ /**/ var Buffer = require('buffer').Buffer; @@ -12088,26 +12215,29 @@ var Buffer = require('buffer').Buffer; Writable.WritableState = WritableState; + /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ + /**/ var internalUtil = { deprecate: require('util-deprecate') }; /**/ + + /**/ var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); +(function (){try{ + Stream = require('st' + 'ream'); +}catch(_){}finally{ + if (!Stream) + Stream = require('events').EventEmitter; +}}()) /**/ var Buffer = require('buffer').Buffer; @@ -12133,17 +12263,18 @@ function WritableState(options, stream) { // contains buffers or objects. this.objectMode = !!options.objectMode; - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + if (stream instanceof Duplex) + this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; + this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; + this.highWaterMark = ~~this.highWaterMark; this.needDrain = false; // at the start of calling end() @@ -12187,7 +12318,7 @@ function WritableState(options, stream) { this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { + this.onwrite = function(er) { onwrite(stream, er); }; @@ -12210,14 +12341,6 @@ function WritableState(options, stream) { // True if the error was already emitted and should not be thrown again this.errorEmitted = false; - - // count buffered requests - this.bufferedRequestCount = 0; - - // create the two objects needed to store the corked requests - // they are not a linked list, as no new elements are inserted in there - this.corkedRequestsFree = new CorkedRequest(this); - this.corkedRequestsFree.next = new CorkedRequest(this); } WritableState.prototype.getBuffer = function writableStateGetBuffer() { @@ -12230,15 +12353,15 @@ WritableState.prototype.getBuffer = function writableStateGetBuffer() { return out; }; -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function () { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') - }); - } catch (_) {} -})(); +(function (){try { +Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function() { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + + 'instead.') +}); +}catch(_){}}()); + var Duplex; function Writable(options) { @@ -12246,7 +12369,8 @@ function Writable(options) { // Writable ctor is applied to Duplexes, though they're not // instanceof Writable, they're instanceof Readable. - if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options); + if (!(this instanceof Writable) && !(this instanceof Duplex)) + return new Writable(options); this._writableState = new WritableState(options, this); @@ -12254,19 +12378,22 @@ function Writable(options) { this.writable = true; if (options) { - if (typeof options.write === 'function') this._write = options.write; + if (typeof options.write === 'function') + this._write = options.write; - if (typeof options.writev === 'function') this._writev = options.writev; + if (typeof options.writev === 'function') + this._writev = options.writev; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { +Writable.prototype.pipe = function() { this.emit('error', new Error('Cannot pipe. Not readable.')); }; + function writeAfterEnd(stream, cb) { var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb @@ -12282,7 +12409,11 @@ function writeAfterEnd(stream, cb) { function validChunk(stream, state, chunk, cb) { var valid = true; - if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { + if (!(Buffer.isBuffer(chunk)) && + typeof chunk !== 'string' && + chunk !== null && + chunk !== undefined && + !state.objectMode) { var er = new TypeError('Invalid non-string/buffer chunk'); stream.emit('error', er); processNextTick(cb, er); @@ -12291,7 +12422,7 @@ function validChunk(stream, state, chunk, cb) { return valid; } -Writable.prototype.write = function (chunk, encoding, cb) { +Writable.prototype.write = function(chunk, encoding, cb) { var state = this._writableState; var ret = false; @@ -12300,11 +12431,17 @@ Writable.prototype.write = function (chunk, encoding, cb) { encoding = null; } - if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + if (Buffer.isBuffer(chunk)) + encoding = 'buffer'; + else if (!encoding) + encoding = state.defaultEncoding; - if (typeof cb !== 'function') cb = nop; + if (typeof cb !== 'function') + cb = nop; - if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { + if (state.ended) + writeAfterEnd(this, cb); + else if (validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, chunk, encoding, cb); } @@ -12312,31 +12449,42 @@ Writable.prototype.write = function (chunk, encoding, cb) { return ret; }; -Writable.prototype.cork = function () { +Writable.prototype.cork = function() { var state = this._writableState; state.corked++; }; -Writable.prototype.uncork = function () { +Writable.prototype.uncork = function() { var state = this._writableState; if (state.corked) { state.corked--; - if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + if (!state.writing && + !state.corked && + !state.finished && + !state.bufferProcessing && + state.bufferedRequest) + clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); + if (typeof encoding === 'string') + encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', +'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw'] +.indexOf((encoding + '').toLowerCase()) > -1)) + throw new TypeError('Unknown encoding: ' + encoding); this._writableState.defaultEncoding = encoding; }; function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + if (!state.objectMode && + state.decodeStrings !== false && + typeof chunk === 'string') { chunk = new Buffer(chunk, encoding); } return chunk; @@ -12348,14 +12496,16 @@ function decodeChunk(state, chunk, encoding) { function writeOrBuffer(stream, state, chunk, encoding, cb) { chunk = decodeChunk(state, chunk, encoding); - if (Buffer.isBuffer(chunk)) encoding = 'buffer'; + if (Buffer.isBuffer(chunk)) + encoding = 'buffer'; var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; + if (!ret) + state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; @@ -12365,7 +12515,6 @@ function writeOrBuffer(stream, state, chunk, encoding, cb) { } else { state.bufferedRequest = state.lastBufferedRequest; } - state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } @@ -12378,13 +12527,19 @@ function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writecb = cb; state.writing = true; state.sync = true; - if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + if (writev) + stream._writev(chunk, state.onwrite); + else + stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; - if (sync) processNextTick(cb, er);else cb(er); + if (sync) + processNextTick(cb, er); + else + cb(er); stream._writableState.errorEmitted = true; stream.emit('error', er); @@ -12404,26 +12559,30 @@ function onwrite(stream, er) { onwriteStateUpdate(state); - if (er) onwriteError(stream, state, sync, er, cb);else { + if (er) + onwriteError(stream, state, sync, er, cb); + else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state); - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + if (!finished && + !state.corked && + !state.bufferProcessing && + state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { - /**/ - asyncWrite(afterWrite, stream, state, finished, cb); - /**/ + processNextTick(afterWrite, stream, state, finished, cb); } else { - afterWrite(stream, state, finished, cb); - } + afterWrite(stream, state, finished, cb); + } } } function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); + if (!finished) + onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); @@ -12439,6 +12598,7 @@ function onwriteDrain(stream, state) { } } + // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; @@ -12446,26 +12606,26 @@ function clearBuffer(stream, state) { if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - - var count = 0; + var buffer = []; + var cbs = []; while (entry) { - buffer[count] = entry; + cbs.push(entry.callback); + buffer.push(entry); entry = entry.next; - count += 1; } - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - - // doWrite is always async, defer these to save a bit of time - // as the hot path ends with doWrite + // count the one we are adding, as well. + // TODO(isaacs) clean this up state.pendingcb++; state.lastBufferedRequest = null; - state.corkedRequestsFree = holder.next; - holder.next = null; + doWrite(stream, state, true, state.length, buffer, '', function(err) { + for (var i = 0; i < cbs.length; i++) { + state.pendingcb--; + cbs[i](err); + } + }); + + // Clear buffer } else { // Slow case, write chunks one-by-one while (entry) { @@ -12485,21 +12645,20 @@ function clearBuffer(stream, state) { } } - if (entry === null) state.lastBufferedRequest = null; + if (entry === null) + state.lastBufferedRequest = null; } - - state.bufferedRequestCount = 0; state.bufferedRequest = entry; state.bufferProcessing = false; } -Writable.prototype._write = function (chunk, encoding, cb) { +Writable.prototype._write = function(chunk, encoding, cb) { cb(new Error('not implemented')); }; Writable.prototype._writev = null; -Writable.prototype.end = function (chunk, encoding, cb) { +Writable.prototype.end = function(chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { @@ -12511,7 +12670,8 @@ Writable.prototype.end = function (chunk, encoding, cb) { encoding = null; } - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); + if (chunk !== null && chunk !== undefined) + this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { @@ -12520,11 +12680,17 @@ Writable.prototype.end = function (chunk, encoding, cb) { } // ignore unnecessary end() calls. - if (!state.ending && !state.finished) endWritable(this, state, cb); + if (!state.ending && !state.finished) + endWritable(this, state, cb); }; + function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; + return (state.ending && + state.length === 0 && + state.bufferedRequest === null && + !state.finished && + !state.writing); } function prefinish(stream, state) { @@ -12552,41 +12718,18 @@ function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { - if (state.finished) processNextTick(cb);else stream.once('finish', cb); + if (state.finished) + processNextTick(cb); + else + stream.once('finish', cb); } state.ended = true; - stream.writable = false; } -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - - this.next = null; - this.entry = null; - - this.finish = function (err) { - var entry = _this.entry; - _this.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - if (state.corkedRequestsFree) { - state.corkedRequestsFree.next = _this; - } else { - state.corkedRequestsFree = _this; - } - }; -} -}).call(this,require('_process')) -},{"./_stream_duplex":84,"_process":78,"buffer":5,"core-util-is":67,"events":68,"inherits":71,"process-nextick-args":77,"util-deprecate":142}],89:[function(require,module,exports){ +},{"./_stream_duplex":85,"buffer":5,"core-util-is":68,"events":69,"inherits":72,"process-nextick-args":78,"util-deprecate":143}],90:[function(require,module,exports){ module.exports = require("./lib/_stream_passthrough.js") -},{"./lib/_stream_passthrough.js":85}],90:[function(require,module,exports){ +},{"./lib/_stream_passthrough.js":86}],91:[function(require,module,exports){ var Stream = (function (){ try { return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify @@ -12600,13 +12743,13 @@ exports.Duplex = require('./lib/_stream_duplex.js'); exports.Transform = require('./lib/_stream_transform.js'); exports.PassThrough = require('./lib/_stream_passthrough.js'); -},{"./lib/_stream_duplex.js":84,"./lib/_stream_passthrough.js":85,"./lib/_stream_readable.js":86,"./lib/_stream_transform.js":87,"./lib/_stream_writable.js":88}],91:[function(require,module,exports){ +},{"./lib/_stream_duplex.js":85,"./lib/_stream_passthrough.js":86,"./lib/_stream_readable.js":87,"./lib/_stream_transform.js":88,"./lib/_stream_writable.js":89}],92:[function(require,module,exports){ module.exports = require("./lib/_stream_transform.js") -},{"./lib/_stream_transform.js":87}],92:[function(require,module,exports){ +},{"./lib/_stream_transform.js":88}],93:[function(require,module,exports){ module.exports = require("./lib/_stream_writable.js") -},{"./lib/_stream_writable.js":88}],93:[function(require,module,exports){ +},{"./lib/_stream_writable.js":89}],94:[function(require,module,exports){ "use strict"; module.exports = @@ -12618,7 +12761,7 @@ module.exports = SHORTEST: "shortest" }; -},{}],94:[function(require,module,exports){ +},{}],95:[function(require,module,exports){ "use strict"; var constants = require("./constants"); @@ -12794,7 +12937,7 @@ function showResource(urlObj, options) module.exports = formatUrl; -},{"./constants":93}],95:[function(require,module,exports){ +},{"./constants":94}],96:[function(require,module,exports){ "use strict"; var constants = require("./constants"); @@ -12890,7 +13033,7 @@ objUtils.shallowMerge(RelateUrl, constants); module.exports = RelateUrl; -},{"./constants":93,"./format":94,"./options":96,"./parse":99,"./relate":106,"./util/object":108}],96:[function(require,module,exports){ +},{"./constants":94,"./format":95,"./options":97,"./parse":100,"./relate":107,"./util/object":109}],97:[function(require,module,exports){ "use strict"; var objUtils = require("./util/object"); @@ -12949,7 +13092,7 @@ function mergeOption(newValues, defaultValues) module.exports = getOptions; -},{"./util/object":108}],97:[function(require,module,exports){ +},{"./util/object":109}],98:[function(require,module,exports){ "use strict"; function parseHost(urlObj, options) @@ -12977,7 +13120,7 @@ function parseHost(urlObj, options) module.exports = parseHost; -},{}],98:[function(require,module,exports){ +},{}],99:[function(require,module,exports){ "use strict"; function hrefInfo(urlObj) @@ -12999,7 +13142,7 @@ function hrefInfo(urlObj) module.exports = hrefInfo; -},{}],99:[function(require,module,exports){ +},{}],100:[function(require,module,exports){ "use strict"; var hrefInfo = require("./hrefInfo"); @@ -13059,7 +13202,7 @@ module.exports = to: parseUrl }; -},{"../util/path":109,"./host":97,"./hrefInfo":98,"./path":100,"./port":101,"./query":102,"./urlstring":103}],100:[function(require,module,exports){ +},{"../util/path":110,"./host":98,"./hrefInfo":99,"./path":101,"./port":102,"./query":103,"./urlstring":104}],101:[function(require,module,exports){ "use strict"; function isDirectoryIndex(resource, options) @@ -13161,7 +13304,7 @@ function splitPath(path) module.exports = parsePath; -},{}],101:[function(require,module,exports){ +},{}],102:[function(require,module,exports){ "use strict"; function parsePort(urlObj, options) @@ -13195,7 +13338,7 @@ function parsePort(urlObj, options) module.exports = parsePort; -},{}],102:[function(require,module,exports){ +},{}],103:[function(require,module,exports){ "use strict"; function parseQuery(urlObj, options) @@ -13247,7 +13390,7 @@ function stringify(queryObj, removeEmptyQueries) module.exports = parseQuery; -},{}],103:[function(require,module,exports){ +},{}],104:[function(require,module,exports){ "use strict"; var _parseUrl = require("url").parse; @@ -13395,7 +13538,7 @@ function parseUrlString(url, options) module.exports = parseUrlString; -},{"url":140}],104:[function(require,module,exports){ +},{"url":141}],105:[function(require,module,exports){ "use strict"; var findRelation = require("./findRelation"); @@ -13486,7 +13629,7 @@ function copyResource(urlObj, siteUrlObj) module.exports = absolutize; -},{"../util/object":108,"../util/path":109,"./findRelation":105}],105:[function(require,module,exports){ +},{"../util/object":109,"../util/path":110,"./findRelation":106}],106:[function(require,module,exports){ "use strict"; function findRelation_upToPath(urlObj, siteUrlObj, options) @@ -13567,7 +13710,7 @@ module.exports = upToPath: findRelation_upToPath }; -},{}],106:[function(require,module,exports){ +},{}],107:[function(require,module,exports){ "use strict"; var absolutize = require("./absolutize"); @@ -13587,7 +13730,7 @@ function relateUrl(siteUrlObj, urlObj, options) module.exports = relateUrl; -},{"./absolutize":104,"./relativize":107}],107:[function(require,module,exports){ +},{"./absolutize":105,"./relativize":108}],108:[function(require,module,exports){ "use strict"; var pathUtils = require("../util/path"); @@ -13656,7 +13799,7 @@ function relativize(urlObj, siteUrlObj, options) module.exports = relativize; -},{"../util/path":109}],108:[function(require,module,exports){ +},{"../util/path":110}],109:[function(require,module,exports){ "use strict"; /* @@ -13722,7 +13865,7 @@ module.exports = shallowMerge: shallowMerge }; -},{}],109:[function(require,module,exports){ +},{}],110:[function(require,module,exports){ "use strict"; function joinPath(pathArray) @@ -13773,7 +13916,7 @@ module.exports = resolveDotSegments: resolveDotSegments }; -},{}],110:[function(require,module,exports){ +},{}],111:[function(require,module,exports){ /* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: @@ -13783,7 +13926,7 @@ exports.SourceMapGenerator = require('./source-map/source-map-generator').Source exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; exports.SourceNode = require('./source-map/source-node').SourceNode; -},{"./source-map/source-map-consumer":117,"./source-map/source-map-generator":118,"./source-map/source-node":119}],111:[function(require,module,exports){ +},{"./source-map/source-map-consumer":118,"./source-map/source-map-generator":119,"./source-map/source-node":120}],112:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -13892,7 +14035,7 @@ define(function (require, exports, module) { }); -},{"./util":120,"amdefine":1}],112:[function(require,module,exports){ +},{"./util":121,"amdefine":1}],113:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -14040,7 +14183,7 @@ define(function (require, exports, module) { }); -},{"./base64":113,"amdefine":1}],113:[function(require,module,exports){ +},{"./base64":114,"amdefine":1}],114:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -14115,7 +14258,7 @@ define(function (require, exports, module) { }); -},{"amdefine":1}],114:[function(require,module,exports){ +},{"amdefine":1}],115:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -14234,7 +14377,7 @@ define(function (require, exports, module) { }); -},{"amdefine":1}],115:[function(require,module,exports){ +},{"amdefine":1}],116:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2014 Mozilla Foundation and contributors @@ -14322,7 +14465,7 @@ define(function (require, exports, module) { }); -},{"./util":120,"amdefine":1}],116:[function(require,module,exports){ +},{"./util":121,"amdefine":1}],117:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -14444,7 +14587,7 @@ define(function (require, exports, module) { }); -},{"amdefine":1}],117:[function(require,module,exports){ +},{"amdefine":1}],118:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -15523,7 +15666,7 @@ define(function (require, exports, module) { }); -},{"./array-set":111,"./base64-vlq":112,"./binary-search":114,"./quick-sort":116,"./util":120,"amdefine":1}],118:[function(require,module,exports){ +},{"./array-set":112,"./base64-vlq":113,"./binary-search":115,"./quick-sort":117,"./util":121,"amdefine":1}],119:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -15924,7 +16067,7 @@ define(function (require, exports, module) { }); -},{"./array-set":111,"./base64-vlq":112,"./mapping-list":115,"./util":120,"amdefine":1}],119:[function(require,module,exports){ +},{"./array-set":112,"./base64-vlq":113,"./mapping-list":116,"./util":121,"amdefine":1}],120:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -16340,7 +16483,7 @@ define(function (require, exports, module) { }); -},{"./source-map-generator":118,"./util":120,"amdefine":1}],120:[function(require,module,exports){ +},{"./source-map-generator":119,"./util":121,"amdefine":1}],121:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -16712,7 +16855,7 @@ define(function (require, exports, module) { }); -},{"amdefine":1}],121:[function(require,module,exports){ +},{"amdefine":1}],122:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -16841,7 +16984,7 @@ Stream.prototype.pipe = function(dest, options) { return dest; }; -},{"events":68,"inherits":71,"readable-stream/duplex.js":83,"readable-stream/passthrough.js":89,"readable-stream/readable.js":90,"readable-stream/transform.js":91,"readable-stream/writable.js":92}],122:[function(require,module,exports){ +},{"events":69,"inherits":72,"readable-stream/duplex.js":84,"readable-stream/passthrough.js":90,"readable-stream/readable.js":91,"readable-stream/transform.js":92,"readable-stream/writable.js":93}],123:[function(require,module,exports){ (function (global){ var ClientRequest = require('./lib/request') var extend = require('xtend') @@ -16923,7 +17066,7 @@ http.METHODS = [ 'UNSUBSCRIBE' ] }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./lib/request":124,"builtin-status-codes":6,"url":140,"xtend":146}],123:[function(require,module,exports){ +},{"./lib/request":125,"builtin-status-codes":7,"url":141,"xtend":147}],124:[function(require,module,exports){ (function (global){ exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableByteStream) @@ -16967,7 +17110,7 @@ function isFunction (value) { xhr = null // Help gc }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],124:[function(require,module,exports){ +},{}],125:[function(require,module,exports){ (function (process,global,Buffer){ // var Base64 = require('Base64') var capability = require('./capability') @@ -17249,7 +17392,7 @@ var unsafeHeaders = [ ] }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) -},{"./capability":123,"./response":125,"_process":78,"buffer":5,"inherits":71,"stream":121,"to-arraybuffer":127}],125:[function(require,module,exports){ +},{"./capability":124,"./response":126,"_process":79,"buffer":5,"inherits":72,"stream":122,"to-arraybuffer":128}],126:[function(require,module,exports){ (function (process,global,Buffer){ var capability = require('./capability') var inherits = require('inherits') @@ -17431,7 +17574,7 @@ IncomingMessage.prototype._onXHRProgress = function () { } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) -},{"./capability":123,"_process":78,"buffer":5,"inherits":71,"stream":121}],126:[function(require,module,exports){ +},{"./capability":124,"_process":79,"buffer":5,"inherits":72,"stream":122}],127:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -17654,7 +17797,7 @@ function base64DetectIncompleteChar(buffer) { this.charLength = this.charReceived ? 3 : 0; } -},{"buffer":5}],127:[function(require,module,exports){ +},{"buffer":5}],128:[function(require,module,exports){ var Buffer = require('buffer').Buffer module.exports = function (buf) { @@ -17683,7 +17826,7 @@ module.exports = function (buf) { } } -},{"buffer":5}],128:[function(require,module,exports){ +},{"buffer":5}],129:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -17789,7 +17932,7 @@ module.exports = function (buf) { exports.ArraySet = ArraySet; } -},{"./util":137}],129:[function(require,module,exports){ +},{"./util":138}],130:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -17932,7 +18075,7 @@ module.exports = function (buf) { }; } -},{"./base64":130}],130:[function(require,module,exports){ +},{"./base64":131}],131:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -18002,7 +18145,7 @@ module.exports = function (buf) { }; } -},{}],131:[function(require,module,exports){ +},{}],132:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -18116,7 +18259,7 @@ module.exports = function (buf) { }; } -},{}],132:[function(require,module,exports){ +},{}],133:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2014 Mozilla Foundation and contributors @@ -18198,7 +18341,7 @@ module.exports = function (buf) { exports.MappingList = MappingList; } -},{"./util":137}],133:[function(require,module,exports){ +},{"./util":138}],134:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -18315,7 +18458,7 @@ module.exports = function (buf) { }; } -},{}],134:[function(require,module,exports){ +},{}],135:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -19399,7 +19542,7 @@ module.exports = function (buf) { exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; } -},{"./array-set":128,"./base64-vlq":129,"./binary-search":131,"./quick-sort":133,"./util":137}],135:[function(require,module,exports){ +},{"./array-set":129,"./base64-vlq":130,"./binary-search":132,"./quick-sort":134,"./util":138}],136:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -19797,7 +19940,7 @@ module.exports = function (buf) { exports.SourceMapGenerator = SourceMapGenerator; } -},{"./array-set":128,"./base64-vlq":129,"./mapping-list":132,"./util":137}],136:[function(require,module,exports){ +},{"./array-set":129,"./base64-vlq":130,"./mapping-list":133,"./util":138}],137:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -20207,7 +20350,7 @@ module.exports = function (buf) { exports.SourceNode = SourceNode; } -},{"./source-map-generator":135,"./util":137}],137:[function(require,module,exports){ +},{"./source-map-generator":136,"./util":138}],138:[function(require,module,exports){ /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -20578,7 +20721,7 @@ module.exports = function (buf) { exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; } -},{}],138:[function(require,module,exports){ +},{}],139:[function(require,module,exports){ /* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: @@ -20588,7 +20731,7 @@ exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGene exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; exports.SourceNode = require('./lib/source-node').SourceNode; -},{"./lib/source-map-consumer":134,"./lib/source-map-generator":135,"./lib/source-node":136}],139:[function(require,module,exports){ +},{"./lib/source-map-consumer":135,"./lib/source-map-generator":136,"./lib/source-node":137}],140:[function(require,module,exports){ var sys = require("util"); var MOZ_SourceMap = require("source-map"); var UglifyJS = exports; @@ -22319,7 +22462,6 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8)); else ch = read_escaped_char(true); } - else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) parse_error("Unterminated string constant"); else if (ch == quote) break; ret += ch; } @@ -22645,9 +22787,9 @@ function parse($TEXT, options) { ); }; - function semicolon(optional) { + function semicolon() { if (is("punc", ";")) next(); - else if (!optional && !can_insert_semicolon()) unexpected(); + else if (!can_insert_semicolon()) unexpected(); }; function parenthesised() { @@ -22735,7 +22877,7 @@ function parse($TEXT, options) { case "do": return new AST_Do({ body : in_loop(statement), - condition : (expect_token("keyword", "while"), tmp = parenthesised(), semicolon(true), tmp) + condition : (expect_token("keyword", "while"), tmp = parenthesised(), semicolon(), tmp) }); case "while": @@ -23098,13 +23240,6 @@ function parse($TEXT, options) { break; } break; - case "operator": - if (!is_identifier_string(tok.value)) { - throw new JS_Parse_Error("Invalid getter/setter name: " + tok.value, - tok.file, tok.line, tok.col, tok.pos); - } - ret = _make_symbol(AST_SymbolRef); - break; } next(); return ret; @@ -23494,7 +23629,7 @@ TreeTransformer.prototype = new TreeWalker; x = this; descend(x, tw); } else { - tw.stack[tw.stack.length - 1] = x = this; + tw.stack[tw.stack.length - 1] = x = this.clone(); descend(x, tw); y = tw.after(x, in_list); if (y !== undefined) x = y; @@ -23743,7 +23878,6 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ var scope = self.parent_scope = null; var labels = new Dictionary(); var defun = null; - var last_var_had_const_pragma = false; var nesting = 0; var tw = new TreeWalker(function(node, descend){ if (options.screw_ie8 && node instanceof AST_Catch) { @@ -23801,13 +23935,10 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ // later. (node.scope = defun.parent_scope).def_function(node); } - else if (node instanceof AST_Var) { - last_var_had_const_pragma = node.has_const_pragma(); - } else if (node instanceof AST_SymbolVar || node instanceof AST_SymbolConst) { var def = defun.def_variable(node); - def.constant = node instanceof AST_SymbolConst || last_var_had_const_pragma; + def.constant = node instanceof AST_SymbolConst; def.init = tw.parent().value; } else if (node instanceof AST_SymbolCatch) { @@ -23843,11 +23974,6 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ } if (node instanceof AST_SymbolRef) { var name = node.name; - if (name == "eval" && tw.parent() instanceof AST_Call) { - for (var s = node.scope; s && !s.uses_eval; s = s.parent_scope) { - s.uses_eval = true; - } - } var sym = node.scope.find_variable(name); if (!sym) { var g; @@ -23860,6 +23986,10 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ globals.set(name, g); } node.thedef = g; + if (name == "eval" && tw.parent() instanceof AST_Call) { + for (var s = node.scope; s && !s.uses_eval; s = s.parent_scope) + s.uses_eval = true; + } if (func && name == "arguments") { func.uses_arguments = true; } @@ -23891,10 +24021,6 @@ AST_Scope.DEFMETHOD("init_scope_vars", function(nesting){ AST_Lambda.DEFMETHOD("init_scope_vars", function(){ AST_Scope.prototype.init_scope_vars.apply(this, arguments); this.uses_arguments = false; - - var symbol = new AST_VarDef({ name: "arguments", start: this.start, end: this.end }); - var def = new SymbolDef(this, this.variables.size(), symbol); - this.variables.set(symbol.name, def); }); AST_SymbolRef.DEFMETHOD("reference", function() { @@ -24011,12 +24137,6 @@ AST_Symbol.DEFMETHOD("global", function(){ return this.definition().global; }); -AST_Var.DEFMETHOD("has_const_pragma", function() { - var comments_before = this.start && this.start.comments_before; - var lastComment = comments_before && comments_before[comments_before.length - 1]; - return lastComment && /@const\b/.test(lastComment.value); -}); - AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){ return defaults(options, { except : [], @@ -24030,10 +24150,6 @@ AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){ AST_Toplevel.DEFMETHOD("mangle_names", function(options){ options = this._default_mangler_options(options); - - // Never mangle arguments - options.except.push('arguments'); - // We only need to mangle declaration nodes. Special logic wired // into the code generator will display the mangled name if it's // present (and for AST_SymbolRef-s it'll use the mangled name of @@ -24730,11 +24846,11 @@ function OutputStream(options) { }); } else if (c.test) { comments = comments.filter(function(comment){ - return comment.type == "comment5" || c.test(comment.value); + return c.test(comment.value) || comment.type == "comment5"; }); } else if (typeof c == "function") { comments = comments.filter(function(comment){ - return comment.type == "comment5" || c(self, comment); + return c(self, comment) || comment.type == "comment5"; }); } @@ -25724,7 +25840,6 @@ function Compressor(options, false_by_default) { hoist_vars : false, if_return : !false_by_default, join_vars : !false_by_default, - collapse_vars : false, cascade : !false_by_default, side_effects : !false_by_default, pure_getters : false, @@ -25834,23 +25949,6 @@ merge(Compressor.prototype, { } }; - // we shouldn't compress (1,func)(something) to - // func(something) because that changes the meaning of - // the func (becomes lexical instead of global). - function maintain_this_binding(parent, orig, val) { - if (parent instanceof AST_Call && parent.expression === orig) { - if (val instanceof AST_PropAccess || val instanceof AST_SymbolRef && val.name === "eval") { - return make_node(AST_Seq, orig, { - car: make_node(AST_Number, orig, { - value: 0 - }), - cdr: val - }); - } - } - return val; - } - function as_statement_array(thing) { if (thing === null) return []; if (thing instanceof AST_BlockStatement) return thing.body; @@ -25894,9 +25992,6 @@ merge(Compressor.prototype, { if (compressor.option("join_vars")) { statements = join_consecutive_vars(statements, compressor); } - if (compressor.option("collapse_vars")) { - statements = collapse_single_use_vars(statements, compressor); - } } while (CHANGED && max_iter-- > 0); if (compressor.option("negate_iife")) { @@ -25905,163 +26000,6 @@ merge(Compressor.prototype, { return statements; - function collapse_single_use_vars(statements, compressor) { - // Iterate statements backwards looking for a statement with a var/const - // declaration immediately preceding it. Grab the rightmost var definition - // and if it has exactly one reference then attempt to replace its reference - // in the statement with the var value and then erase the var definition. - - var self = compressor.self(); - var var_defs_removed = false; - for (var stat_index = statements.length; --stat_index >= 0;) { - var stat = statements[stat_index]; - if (stat instanceof AST_Definitions) continue; - - // Process child blocks of statement if present. - [stat, stat.body, stat.alternative, stat.bcatch, stat.bfinally].forEach(function(node) { - node && node.body && collapse_single_use_vars(node.body, compressor); - }); - - // The variable definition must precede a statement. - if (stat_index <= 0) break; - var prev_stat_index = stat_index - 1; - var prev_stat = statements[prev_stat_index]; - if (!(prev_stat instanceof AST_Definitions)) continue; - var var_defs = prev_stat.definitions; - if (var_defs == null) continue; - - var var_names_seen = {}; - var side_effects_encountered = false; - var lvalues_encountered = false; - var lvalues = {}; - - // Scan variable definitions from right to left. - for (var var_defs_index = var_defs.length; --var_defs_index >= 0;) { - - // Obtain var declaration and var name with basic sanity check. - var var_decl = var_defs[var_defs_index]; - if (var_decl.value == null) break; - var var_name = var_decl.name.name; - if (!var_name || !var_name.length) break; - - // Bail if we've seen a var definition of same name before. - if (var_name in var_names_seen) break; - var_names_seen[var_name] = true; - - // Only interested in cases with just one reference to the variable. - var def = self.find_variable && self.find_variable(var_name); - if (!def || !def.references || def.references.length !== 1 || var_name == "arguments") { - side_effects_encountered = true; - continue; - } - var ref = def.references[0]; - - // Don't replace ref if eval() or with statement in scope. - if (ref.scope.uses_eval || ref.scope.uses_with) break; - - // Constant single use vars can be replaced in any scope. - if (var_decl.value.is_constant(compressor)) { - var ctt = new TreeTransformer(function(node) { - if (node === ref) - return replace_var(node, ctt.parent(), true); - }); - stat.transform(ctt); - continue; - } - - // Restrict var replacement to constants if side effects encountered. - if (side_effects_encountered |= lvalues_encountered) continue; - - // Non-constant single use vars can only be replaced in same scope. - if (ref.scope !== self) { - side_effects_encountered |= var_decl.value.has_side_effects(compressor); - continue; - } - - // Detect lvalues in var value. - var tw = new TreeWalker(function(node){ - if (node instanceof AST_SymbolRef && is_lvalue(node, tw.parent())) { - lvalues[node.name] = lvalues_encountered = true; - } - }); - var_decl.value.walk(tw); - - // Replace the non-constant single use var in statement if side effect free. - var unwind = false; - var tt = new TreeTransformer( - function preorder(node) { - if (unwind) return node; - var parent = tt.parent(); - if (node instanceof AST_Lambda - || node instanceof AST_Try - || node instanceof AST_With - || node instanceof AST_Case - || node instanceof AST_IterationStatement - || (parent instanceof AST_If && node !== parent.condition) - || (parent instanceof AST_Conditional && node !== parent.condition) - || (parent instanceof AST_Binary - && (parent.operator == "&&" || parent.operator == "||") - && node === parent.right) - || (parent instanceof AST_Switch && node !== parent.expression)) { - return side_effects_encountered = unwind = true, node; - } - }, - function postorder(node) { - if (unwind) return node; - if (node === ref) - return unwind = true, replace_var(node, tt.parent(), false); - if (side_effects_encountered |= node.has_side_effects(compressor)) - return unwind = true, node; - if (lvalues_encountered && node instanceof AST_SymbolRef && node.name in lvalues) { - side_effects_encountered = true; - return unwind = true, node; - } - } - ); - stat.transform(tt); - } - } - - // Remove extraneous empty statments in block after removing var definitions. - // Leave at least one statement in `statements`. - if (var_defs_removed) for (var i = statements.length; --i >= 0;) { - if (statements.length > 1 && statements[i] instanceof AST_EmptyStatement) - statements.splice(i, 1); - } - - return statements; - - function is_lvalue(node, parent) { - return node instanceof AST_SymbolRef && ( - (parent instanceof AST_Assign && node === parent.left) - || (parent instanceof AST_Unary && parent.expression === node - && (parent.operator == "++" || parent.operator == "--"))); - } - function replace_var(node, parent, is_constant) { - if (is_lvalue(node, parent)) return node; - - // Remove var definition and return its value to the TreeTransformer to replace. - var value = maintain_this_binding(parent, node, var_decl.value); - var_decl.value = null; - - var_defs.splice(var_defs_index, 1); - if (var_defs.length === 0) { - statements[prev_stat_index] = make_node(AST_EmptyStatement, self); - var_defs_removed = true; - } - // Further optimize statement after substitution. - stat.walk(new TreeWalker(function(node){ - delete node._squeezed; - delete node._optimized; - })); - - compressor.warn("Replacing " + (is_constant ? "constant" : "variable") + - " " + var_name + " [{file}:{line},{col}]", node.start); - CHANGED = true; - return value; - } - } - function process_for_angular(statements) { function has_inject(comment) { return /@ngInject/.test(comment.value); @@ -26562,32 +26500,6 @@ merge(Compressor.prototype, { return [ this ]; } }); - AST_Node.DEFMETHOD("is_constant", function(compressor){ - // Accomodate when compress option evaluate=false - // as well as the common constant expressions !0 and !1 - return this instanceof AST_Constant - || (this instanceof AST_UnaryPrefix && this.operator == "!" - && this.expression instanceof AST_Constant) - || this.evaluate(compressor).length > 1; - }); - // Obtain the constant value of an expression already known to be constant. - // Result only valid iff this.is_constant(compressor) is true. - AST_Node.DEFMETHOD("constant_value", function(compressor){ - // Accomodate when option evaluate=false. - if (this instanceof AST_Constant) return this.value; - // Accomodate the common constant expressions !0 and !1 when option evaluate=false. - if (this instanceof AST_UnaryPrefix - && this.operator == "!" - && this.expression instanceof AST_Constant) { - return !this.expression.value; - } - var result = this.evaluate(compressor) - if (result.length > 1) { - return result[1]; - } - // should never be reached - return undefined; - }); def(AST_Statement, function(){ throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]", this.start)); }); @@ -27112,10 +27024,7 @@ merge(Compressor.prototype, { var seq = node.to_assignments(); var p = tt.parent(); if (p instanceof AST_ForIn && p.init === node) { - if (seq == null) { - var def = node.definitions[0].name; - return make_node(AST_SymbolRef, def, def); - } + if (seq == null) return node.definitions[0].name; return seq; } if (p instanceof AST_For && p.init === node) { @@ -27346,13 +27255,9 @@ merge(Compressor.prototype, { } if (is_empty(self.alternative)) self.alternative = null; var negated = self.condition.negate(compressor); - var self_condition_length = self.condition.print_to_string().length; - var negated_length = negated.print_to_string().length; - var negated_is_best = negated_length < self_condition_length; + var negated_is_best = best_of(self.condition, negated) === negated; if (self.alternative && negated_is_best) { negated_is_best = false; // because we already do the switch here. - // no need to swap values of self_condition_length and negated_length - // here because they are only used in an equality comparison later on. self.condition = negated; var tmp = self.body; self.body = self.alternative || make_node(AST_EmptyStatement); @@ -27374,13 +27279,6 @@ merge(Compressor.prototype, { }).transform(compressor); } if (is_empty(self.alternative) && self.body instanceof AST_SimpleStatement) { - if (self_condition_length === negated_length && !negated_is_best - && self.condition instanceof AST_Binary && self.condition.operator == "||") { - // although the code length of self.condition and negated are the same, - // negated does not require additional surrounding parentheses. - // see https://github.com/mishoo/UglifyJS2/issues/979 - negated_is_best = true; - } if (negated_is_best) return make_node(AST_SimpleStatement, self, { body: make_node(AST_Binary, self, { operator : "||", @@ -27794,7 +27692,13 @@ merge(Compressor.prototype, { if (!compressor.option("side_effects")) return self; if (!self.car.has_side_effects(compressor)) { - return maintain_this_binding(compressor.parent(), self, self.cdr); + // we shouldn't compress (1,func)(something) to + // func(something) because that changes the meaning of + // the func (becomes lexical instead of global). + var p = compressor.parent(); + if (!(p instanceof AST_Call && p.expression === self)) { + return self.cdr; + } } if (compressor.option("cascade")) { if (self.car instanceof AST_Assign @@ -27984,10 +27888,11 @@ merge(Compressor.prototype, { if (ll.length > 1) { if (ll[1]) { compressor.warn("Condition left of && always true [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, self.right.evaluate(compressor)[0]); + var rr = self.right.evaluate(compressor); + return rr[0]; } else { compressor.warn("Condition left of && always false [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, ll[0]); + return ll[0]; } } } @@ -27996,10 +27901,11 @@ merge(Compressor.prototype, { if (ll.length > 1) { if (ll[1]) { compressor.warn("Condition left of || always true [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, ll[0]); + return ll[0]; } else { compressor.warn("Condition left of || always false [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, self.right.evaluate(compressor)[0]); + var rr = self.right.evaluate(compressor); + return rr[0]; } } } @@ -28224,10 +28130,10 @@ merge(Compressor.prototype, { if (cond.length > 1) { if (cond[1]) { compressor.warn("Condition always true [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, self.consequent); + return self.consequent; } else { compressor.warn("Condition always false [{file}:{line},{col}]", self.start); - return maintain_this_binding(compressor.parent(), self, self.alternative); + return self.alternative; } } var negated = cond[0].negate(compressor); @@ -28295,52 +28201,32 @@ merge(Compressor.prototype, { alternative: alternative }); } - // y?1:1 --> 1 - if (consequent.is_constant(compressor) - && alternative.is_constant(compressor) + // x=y?1:1 --> x=1 + if (consequent instanceof AST_Constant + && alternative instanceof AST_Constant && consequent.equivalent_to(alternative)) { - var consequent_value = consequent.constant_value(); if (self.condition.has_side_effects(compressor)) { - return AST_Seq.from_array([self.condition, make_node_from_constant(compressor, consequent_value, self)]); + return AST_Seq.from_array([self.condition, make_node_from_constant(compressor, consequent.value, self)]); } else { - return make_node_from_constant(compressor, consequent_value, self); - } - } + return make_node_from_constant(compressor, consequent.value, self); - // y?true:false --> !!y - if (is_true(consequent) && is_false(alternative)) { - if (self.condition.is_boolean()) { - // boolean_expression ? true : false --> boolean_expression - return self.condition; } + } + // x=y?true:false --> x=!!y + if (consequent instanceof AST_True + && alternative instanceof AST_False) { self.condition = self.condition.negate(compressor); return make_node(AST_UnaryPrefix, self.condition, { operator: "!", expression: self.condition }); } - // y?false:true --> !y - if (is_false(consequent) && is_true(alternative)) { + // x=y?false:true --> x=!y + if (consequent instanceof AST_False + && alternative instanceof AST_True) { return self.condition.negate(compressor) } return self; - - // AST_True or !0 - function is_true(node) { - return node instanceof AST_True - || (node instanceof AST_UnaryPrefix - && node.operator == "!" - && node.expression instanceof AST_Constant - && !node.expression.value); - } - // AST_False or !1 - function is_false(node) { - return node instanceof AST_False - || (node instanceof AST_UnaryPrefix - && node.operator == "!" - && node.expression instanceof AST_Constant - && !!node.expression.value); - } }); OPT(AST_Boolean, function(self, compressor){ @@ -28476,11 +28362,16 @@ function SourceMap(options) { orig_line_diff : 0, dest_line_diff : 0, }); - var generator = new MOZ_SourceMap.SourceMapGenerator({ - file : options.file, - sourceRoot : options.root - }); var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig); + var generator; + if (orig_map) { + generator = MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map); + } else { + generator = new MOZ_SourceMap.SourceMapGenerator({ + file : options.file, + sourceRoot : options.root + }); + } function add(source, gen_line, gen_col, orig_line, orig_col, name) { if (orig_map) { var info = orig_map.originalPositionFor({ @@ -28501,7 +28392,7 @@ function SourceMap(options) { source : source, name : name }); - }; + } return { add : add, get : function() { return generator }, @@ -29288,7 +29179,6 @@ exports["parse"] = parse; exports["push_uniq"] = push_uniq; exports["string_template"] = string_template; exports["is_identifier"] = is_identifier; -exports["SymbolDef"] = SymbolDef; exports.sys = sys; @@ -29453,18 +29343,15 @@ exports.AST_Node.warn_function = function (txt) { if (typeof console != "undefin exports.minify = function (files, options) { options = UglifyJS.defaults(options, { - spidermonkey : false, - outSourceMap : null, - sourceRoot : null, - inSourceMap : null, - fromString : false, - warnings : false, - mangle : {}, - mangleProperties : false, - nameCache : null, - output : null, - compress : {}, - parse : {} + spidermonkey : false, + outSourceMap : null, + sourceRoot : null, + inSourceMap : null, + fromString : false, + warnings : false, + mangle : {}, + output : null, + compress : {} }); UglifyJS.base54.reset(); @@ -29484,8 +29371,7 @@ exports.minify = function (files, options) { sourcesContent[file] = code; toplevel = UglifyJS.parse(code, { filename: options.fromString ? i : file, - toplevel: toplevel, - bare_returns: options.parse ? options.parse.bare_returns : undefined + toplevel: toplevel }); }); } @@ -29502,21 +29388,14 @@ exports.minify = function (files, options) { toplevel = toplevel.transform(sq); } - // 3. mangle properties - if (options.mangleProperties || options.nameCache) { - options.mangleProperties.cache = UglifyJS.readNameCache(options.nameCache, "props"); - toplevel = UglifyJS.mangle_properties(toplevel, options.mangleProperties); - UglifyJS.writeNameCache(options.nameCache, "props", options.mangleProperties.cache); - } - - // 4. mangle + // 3. mangle if (options.mangle) { toplevel.figure_out_scope(options.mangle); toplevel.compute_char_frequency(options.mangle); toplevel.mangle_names(options.mangle); } - // 5. output + // 4. output var inMap = options.inSourceMap; var output = {}; if (typeof options.inSourceMap == "string") { @@ -29592,7 +29471,7 @@ exports.describe_ast = function () { doitem(UglifyJS.AST_Node); return out + ""; }; -},{"source-map":138,"util":144}],140:[function(require,module,exports){ +},{"source-map":139,"util":145}],141:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -30326,7 +30205,7 @@ Url.prototype.parseHost = function() { if (host) this.hostname = host; }; -},{"./util":141,"punycode":79,"querystring":82}],141:[function(require,module,exports){ +},{"./util":142,"punycode":80,"querystring":83}],142:[function(require,module,exports){ 'use strict'; module.exports = { @@ -30344,7 +30223,7 @@ module.exports = { } }; -},{}],142:[function(require,module,exports){ +},{}],143:[function(require,module,exports){ (function (global){ /** @@ -30415,14 +30294,14 @@ function config (name) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],143:[function(require,module,exports){ +},{}],144:[function(require,module,exports){ module.exports = function isBuffer(arg) { return arg && typeof arg === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function'; } -},{}],144:[function(require,module,exports){ +},{}],145:[function(require,module,exports){ (function (process,global){ // Copyright Joyent, Inc. and other Node contributors. // @@ -31012,7 +30891,7 @@ function hasOwnProperty(obj, prop) { } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./support/isBuffer":143,"_process":78,"inherits":71}],145:[function(require,module,exports){ +},{"./support/isBuffer":144,"_process":79,"inherits":72}],146:[function(require,module,exports){ exports.baseChar = /[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/; exports.ideographic = /[\u3007\u3021-\u3029\u4E00-\u9FA5]/; @@ -31024,7 +30903,7 @@ exports.combiningChar = /[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u0 exports.digit = /[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/; exports.extender = /[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/; -},{}],146:[function(require,module,exports){ +},{}],147:[function(require,module,exports){ module.exports = extend var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -31045,7 +30924,7 @@ function extend() { return target } -},{}],147:[function(require,module,exports){ +},{}],148:[function(require,module,exports){ 'use strict'; function createMap(values, ignoreCase) { @@ -31761,7 +31640,7 @@ exports.HTMLtoDOM = function( html, doc ) { return doc; }; -},{"./utils":147,"ncname":74}],"html-minifier":[function(require,module,exports){ +},{"./utils":148,"ncname":75}],"html-minifier":[function(require,module,exports){ 'use strict'; var CleanCSS = require('clean-css'); @@ -32871,4 +32750,4 @@ exports.minify = function(value, options) { return minify(value, options); }; -},{"./htmlparser":"html-minifier/src/htmlparser","./utils":147,"clean-css":7,"relateurl":95,"uglify-js":139}]},{},["html-minifier"]); +},{"./htmlparser":"html-minifier/src/htmlparser","./utils":148,"clean-css":8,"relateurl":96,"uglify-js":140}]},{},["html-minifier"]); diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index 39ff24d..e52f2f5 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -1,18 +1,18 @@ /*! - * HTMLMinifier v1.3.1 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v1.4.0 (http://kangax.github.io/html-minifier/) * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ -require=function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g0&&(a.splice(b-1,2),b-=2)}}function g(a,b){var c;return a&&"."===a.charAt(0)&&b&&(c=b.split("/"),c=c.slice(0,c.length-1),c=c.concat(a.split("/")),f(c),a=c.join("/")),a}function h(a){return function(b){return g(b,a)}}function i(a){function b(b){o[a]=b}return b.fromText=function(a,b){throw new Error("amdefine does not implement load.fromText")},b}function j(a,c,f){var g,h,i,j;if(a)h=o[a]={},i={id:a,uri:d,exports:h},g=l(e,h,i,a);else{if(p)throw new Error("amdefine with no module ID cannot be called more than once per file.");p=!0,h=b.exports,i=b,g=l(e,h,i,b.id)}c&&(c=c.map(function(a){return g(a)})),j="function"==typeof f?f.apply(i.exports,c):f,void 0!==j&&(i.exports=j,a&&(o[a]=i.exports))}function k(a,b,c){Array.isArray(a)?(c=b,b=a,a=void 0):"string"!=typeof a&&(c=a,a=b=void 0),b&&!Array.isArray(b)&&(c=b,b=void 0),b||(b=["require","exports","module"]),a?n[a]=[a,b,c]:j(a,b,c)}var l,m,n={},o={},p=!1,q=a("path");return l=function(a,b,d,e){function f(f,g){return"string"==typeof f?m(a,b,d,f,e):(f=f.map(function(c){return m(a,b,d,c,e)}),void(g&&c.nextTick(function(){g.apply(null,f)})))}return f.toUrl=function(a){return 0===a.indexOf(".")?g(a,q.dirname(d.filename)):a},f},e=e||function(){return b.require.apply(b,arguments)},m=function(a,b,c,d,e){var f,k,p=d.indexOf("!"),q=d;if(-1===p){if(d=g(d,e),"require"===d)return l(a,b,c,e);if("exports"===d)return b;if("module"===d)return c;if(o.hasOwnProperty(d))return o[d];if(n[d])return j.apply(null,n[d]),o[d];if(a)return a(q);throw new Error("No module with ID: "+d)}return f=d.substring(0,p),d=d.substring(p+1,d.length),k=m(a,b,c,f,e),d=k.normalize?k.normalize(d,h(e)):g(d,e),o[d]?o[d]:(k.load(d,l(a,b,c,e),i(d),{}),o[d])},k.require=function(a){return o[a]?o[a]:n[a]?(j.apply(null,n[a]),o[a]):void 0},k.amd={},k}b.exports=e}).call(this,a("_process"),"/node_modules\\amdefine\\amdefine.js")},{_process:78,path:76}],2:[function(a,b,c){"use strict";function d(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,c=a.length;c>b;++b)i[b]=a[b],j[a.charCodeAt(b)]=b;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63}function e(a){var b,c,d,e,f,g,h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f="="===a[h-2]?2:"="===a[h-1]?1:0,g=new k(3*h/4-f),d=f>0?h-4:h;var i=0;for(b=0,c=0;d>b;b+=4,c+=3)e=j[a.charCodeAt(b)]<<18|j[a.charCodeAt(b+1)]<<12|j[a.charCodeAt(b+2)]<<6|j[a.charCodeAt(b+3)],g[i++]=e>>16&255,g[i++]=e>>8&255,g[i++]=255&e;return 2===f?(e=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,g[i++]=255&e):1===f&&(e=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,g[i++]=e>>8&255,g[i++]=255&e),g}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;c>g;g+=3)d=(a[g]<<16)+(a[g+1]<<8)+a[g+2],e.push(f(d));return e.join("")}function h(a){for(var b,c=a.length,d=c%3,e="",f=[],h=16383,j=0,k=c-d;k>j;j+=h)f.push(g(a,j,j+h>k?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}c.toByteArray=e,c.fromByteArray=h;var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array;d()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){arguments[4][3][0].apply(c,arguments)},{dup:3}],5:[function(a,b,c){(function(b){"use strict";function d(){try{var a=new Uint8Array(1);return a.foo=function(){return 42},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(b){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return b.byteLength,f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a.length=b;var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,0xf.fffff(e+31),-0xf.fffff(e+31)),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(_,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f._augment=function(a){return a.__proto__=f.prototype,a},f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=this.subarray(a,b),d.__proto__=f.prototype;else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bc&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else Uint8Array.prototype.set.call(a,this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}};var _=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:70,isarray:73}],6:[function(a,b,c){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],7:[function(a,b,c){b.exports=a("./lib/clean")},{"./lib/clean":8}],8:[function(a,b,c){(function(c){function d(a){return void 0===a?["all"]:a}function e(a){return!C.existsSync(a)&&!/\.css$/.test(a)}function f(a){return C.existsSync(a)&&C.statSync(a).isDirectory()}function g(a){return a?{hostname:E.parse(a).hostname,port:parseInt(E.parse(a).port)}:{}}function h(a,b){function c(c){return c=b.options.debug?j(b,c):l(b,c),c=i(b,c),a?a.call(null,b.errors.length>0?b.errors:null,c):c}return function(a){return b.options.sourceMap?b.inputSourceMapTracker.track(a,function(){return b.options.sourceMapInlineSources?b.inputSourceMapTracker.resolveSources(function(){return c(a)}):c(a)}):c(a)}}function i(a,b){return b.stats=a.stats,b.errors=a.errors,b.warnings=a.warnings,b}function j(a,b){var d=c.hrtime();a.stats.originalSize=a.sourceTracker.removeAll(b).length,b=l(a,b);var e=c.hrtime(d);return a.stats.timeSpent=~~(1e3*e[0]+e[1]/1e6),a.stats.efficiency=1-b.styles.length/a.stats.originalSize,a.stats.minifiedSize=b.styles.length,b}function k(a){return function(b,d){var e=b.constructor.name+"#"+d,f=c.hrtime();a(b,d);var g=c.hrtime(f);console.log("%d ms: "+e,1e3*g[0]+g[1]/1e6)}}function l(a,b){function c(b,c){return b=g.restore(b,c),b=h.restore(b),b=d.rebase?n(b,a):b,b=f.restore(b),e.restore(b)}var d=a.options,e=new t(a,d.keepSpecialComments,d.keepBreaks,d.sourceMap),f=new u(d.sourceMap),g=new v(d.sourceMap),h=new w(a,d.sourceMap,d.compatibility.properties.urlQuotes),i=d.sourceMap?s:r,j=function(a,c){b="function"==typeof a?a(b):a[c](b)};d.benchmark&&(j=k(j)),j(e,"escape"),j(f,"escape"),j(h,"escape"),j(g,"escape");var l=o(b,a);return p(l,d),d.advanced&&q(l,d,a.validator,!0),i(l,d,c,a.inputSourceMapTracker)}var m=a("./imports/inliner"),n=a("./urls/rebase"),o=a("./tokenizer/tokenize"),p=a("./selectors/simple"),q=a("./selectors/advanced"),r=a("./stringifier/simple"),s=a("./stringifier/source-maps"),t=a("./text/comments-processor"),u=a("./text/expressions-processor"),v=a("./text/free-text-processor"),w=a("./text/urls-processor"),x=a("./utils/compatibility"),y=a("./utils/input-source-map-tracker"),z=a("./utils/source-tracker"),A=a("./utils/source-reader"),B=a("./properties/validator"),C=a("fs"),D=a("path"),E=a("url"),F=a("./utils/object").override,G=5e3,H=b.exports=function(a){a=a||{},this.options={advanced:void 0===a.advanced?!0:!!a.advanced,aggressiveMerging:void 0===a.aggressiveMerging?!0:!!a.aggressiveMerging,benchmark:a.benchmark,compatibility:new x(a.compatibility).toOptions(),debug:a.debug,explicitRoot:!!a.root,explicitTarget:!!a.target,inliner:a.inliner||{},keepBreaks:a.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in a?a.keepSpecialComments:"*",mediaMerging:void 0===a.mediaMerging?!0:!!a.mediaMerging,processImport:void 0===a.processImport?!0:!!a.processImport,processImportFrom:d(a.processImportFrom),rebase:void 0===a.rebase?!0:!!a.rebase,relativeTo:a.relativeTo,restructuring:void 0===a.restructuring?!0:!!a.restructuring,root:a.root||c.cwd(),roundingPrecision:a.roundingPrecision,semanticMerging:void 0===a.semanticMerging?!1:!!a.semanticMerging,shorthandCompacting:void 0===a.shorthandCompacting?!0:!!a.shorthandCompacting,sourceMap:a.sourceMap,sourceMapInlineSources:!!a.sourceMapInlineSources,target:!a.target||e(a.target)||f(a.target)?a.target:D.dirname(a.target)},this.options.inliner.timeout=this.options.inliner.timeout||G,this.options.inliner.request=F(g(c.env.HTTP_PROXY||c.env.http_proxy),this.options.inliner.request||{})};H.prototype.minify=function(a,b){var d={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!b,sourceTracker:new z,validator:new B(this.options.compatibility)};if(d.options.sourceMap&&(d.inputSourceMapTracker=new y(d)),d.sourceReader=new A(d,a),a=d.sourceReader.toString(),d.options.processImport||a.indexOf("@shallow")>0){var e=b?c.nextTick:function(a){return a()};return e(function(){return new m(d).process(a,{localOnly:d.localOnly,imports:d.options.processImportFrom,whenDone:h(b,d)})})}return h(b,d)(a)}}).call(this,a("_process"))},{"./imports/inliner":12,"./properties/validator":26,"./selectors/advanced":29,"./selectors/simple":42,"./stringifier/simple":46,"./stringifier/source-maps":47,"./text/comments-processor":48,"./text/expressions-processor":50,"./text/free-text-processor":51,"./text/urls-processor":52,"./tokenizer/tokenize":55,"./urls/rebase":56,"./utils/compatibility":60,"./utils/input-source-map-tracker":61,"./utils/object":62,"./utils/source-reader":64,"./utils/source-tracker":65,_process:78,fs:4,path:76,url:140}],9:[function(a,b,c){function d(a,b,c,d){return b+h[c.toLowerCase()]+d}function e(a,b,c){return i[b.toLowerCase()]+c}var f={},g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},h={},i={};for(var j in g){var k=g[j];j.length-1,c=a.replace(l,d);return c!=a&&(c=c.replace(l,d)),b?c.replace(m,e):c},b.exports=f},{}],10:[function(a,b,c){function d(a,b,c){this.hue=a,this.saturation=b,this.lightness=c}function e(a,b,c){var d,e,g;if(a%=360,0>a&&(a+=360),a=~~a/360,0>b?b=0:b>100&&(b=100),b=~~b/100,0>c?c=0:c>100&&(c=100),c=~~c/100,0===b)d=e=g=c;else{var h=.5>c?c*(1+b):c+b-c*b,i=2*c-h;d=f(i,h,a+1/3),e=f(i,h,a),g=f(i,h,a-1/3)}return[~~(255*d),~~(255*e),~~(255*g)]}function f(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+(b-a)*(2/3-c)*6:a}d.prototype.toHex=function(){var a=e(this.hue,this.saturation,this.lightness),b=a[0].toString(16),c=a[1].toString(16),d=a[2].toString(16);return"#"+((1==b.length?"0":"")+b)+((1==c.length?"0":"")+c)+((1==d.length?"0":"")+d)},b.exports=d},{}],11:[function(a,b,c){function d(a,b,c){this.red=a,this.green=b,this.blue=c}d.prototype.toHex=function(){var a=Math.max(0,Math.min(~~this.red,255)),b=Math.max(0,Math.min(~~this.green,255)),c=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(a<<16|b<<8|c).toString(16)).slice(-6)},b.exports=d},{}],12:[function(a,b,c){(function(c){function d(a){this.outerContext=a}function e(a,b){if(b.shallow)return b.shallow=!1,b.done.push(a),h(b);for(var c=0,d=0,e=0,f=i(a);d-1&&-1==d?c:-1==c&&d>-1?d:Math.min(c,d)}function h(a){return a.left.length>0?e.apply(null,a.left.shift()):a.whenDone(a.done.join(""))}function i(a){var b=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,c=0,d=0,e=!1;return function(f){var g,h=0,i=0,j=0,k=0;if(e)return!1;do{if(f>c&&d>f)return!0; -if(g=a.match(b),!g)return e=!0,!1;c=h=g.index,i=h+g[0].length,k=i+d,j=k-g[0].length,a=a.substring(i),d=k}while(f>k);return k>f&&f>j}}function j(a){for(var b=i(a),c=-1;;)if(c=a.indexOf("{",c+1),-1==c||!b(c))break;return c>-1}function k(a,b,c,d){d.shallow=a.indexOf("@shallow")>0;var e=a.substring(g(a,b)+"@import".length+1,c).replace(/@shallow\)$/,")").trim(),f=0===e.indexOf("url("),i=f?4:0,k=/^['"]/.exec(e.substring(i,i+2)),p=k?e.indexOf(k[0],i+1):v(e," ")[0].length-(f?1:0),q=e.substring(i,p).replace(/['"]/g,"").replace(/\)$/,"").trim(),r=e.substring(p+1).replace(/^\)/,"").trim(),s=d.isRemote||y.test(q);if(s&&(d.localOnly||!l(q,!0,d.imports)))return d.afterContent||j(d.done.join(""))?d.warnings.push('Ignoring remote @import of "'+q+'" as no callback given.'):o(q,r,d),h(d);if(!s&&!l(q,!1,d.imports))return d.afterImport?d.warnings.push('Ignoring local @import of "'+q+'" as after other inlined content.'):o(q,r,d),h(d);if(!s&&d.afterContent)return d.warnings.push('Ignoring local @import of "'+q+'" as after other CSS content.'),h(d);var t=s?m:n;return t(q,r,d)}function l(a,b,c){if(0===c.length)return!1;b&&z.test(a)&&(a="http:"+a);for(var d=b?t.parse(a).host:a,e=!0,f=0;f-1)return h(d);d.debug&&console.error("Inlining remote stylesheet: "+i),d.visited.push(i);var k=0===i.indexOf("http://")?r.get:s.get,l=!1,n=w(t.parse(i),d.inliner.request);void 0!==d.inliner.request.hostname&&(n.path=n.href),k(n,function(a){if(a.statusCode<200||a.statusCode>399)return g("error "+a.statusCode);if(a.statusCode>299){var h=t.resolve(i,a.headers.location);return m(h,b,d)}var k=[],l=t.parse(i);a.on("data",function(a){k.push(a.toString())}),a.on("end",function(){var a=k.join("");d.rebase&&(a=u(a,{toBase:j},d)),d.sourceReader.trackSource(i,a),a=d.sourceTracker.store(i,a),a=f(a,i),b.length>0&&(a="@media "+b+"{"+a+"}"),d.afterImport=!0;var g=w(d,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});c.nextTick(function(){e(a,g)})})}).on("error",function(a){g(a.message)}).on("timeout",function(){g("timeout")}).setTimeout(d.inliner.timeout)}function n(a,b,c){var d="/"==a[0]?c.root:c.relativeTo,f=q.resolve(q.join(d,a));if(!p.existsSync(f)||!p.statSync(f).isFile())return c.errors.push('Broken @import declaration of "'+a+'"'),h(c);if(c.visited.indexOf(f)>-1)return h(c);c.debug&&console.error("Inlining local stylesheet: "+f),c.visited.push(f);var g=q.dirname(f),i=p.readFileSync(f,"utf8");if(c.rebase){var j={relative:!0,fromBase:g,toBase:c.baseRelativeTo};i=u(i,j,c)}var k=q.relative(c.root,f);c.sourceReader.trackSource(k,i),i=c.sourceTracker.store(k,i),b.length>0&&(i="@media "+b+"{"+i+"}"),c.afterImport=!0;var l=w(c,{relativeTo:g});return e(i,l)}function o(a,b,c){var d="@import url("+a+")"+(b.length>0?" "+b:"")+";";c.done.push(d)}var p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../urls/rewrite"),v=a("../utils/split"),w=a("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//,z=/^\/\//;d.prototype.process=function(a,b){var c=this.outerContext.options.root;return b=w(b,{baseRelativeTo:this.outerContext.options.relativeTo||c,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||c,root:c,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),e(a,b)},b.exports=d}).call(this,a("_process"))},{"../urls/rewrite":58,"../utils/object.js":62,"../utils/split":66,_process:78,fs:4,http:122,https:69,path:76,url:140}],13:[function(a,b,c){function d(a){return function(b){return"invert"==b[0]||a.isValidColor(b[0])}}function e(a){return function(b){return"inherit"!=b[0]&&a.isValidStyle(b[0])&&!a.isValidColorValue(b[0])}}function f(a,b,c){var d=c[a];return n(d.doubleValues&&2==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]],[d.defaultValue[1]]]:d.doubleValues&&1==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]]]:[[a,b.important],[d.defaultValue]])}function g(a){return function(b){return"inherit"!=b[0]&&a.isValidWidth(b[0])&&!a.isValidStyleKeyword(b[0])&&!a.isValidColorValue(b[0])}}function h(a,b,c){var d=f("background-image",a,b),e=f("background-position",a,b),g=f("background-size",a,b),h=f("background-repeat",a,b),i=f("background-attachment",a,b),j=f("background-origin",a,b),k=f("background-clip",a,b),l=f("background-color",a,b),m=[d,e,g,h,i,j,k,l],n=a.value,p=!1,q=!1,r=!1,s=!1;if(1==a.value.length&&"inherit"==a.value[0][0])return l.value=d.value=h.value=e.value=g.value=j.value=k.value=a.value,m;for(var t=n.length-1;t>=0;t--){var u=n[t];if(c.isValidBackgroundAttachment(u[0]))i.value=[u];else if(c.isValidBackgroundBox(u[0]))q?(j.value=[u],r=!0):(k.value=[u],q=!0);else if(c.isValidBackgroundRepeat(u[0]))s?h.value.unshift(u):(h.value=[u],s=!0);else if(c.isValidBackgroundPositionPart(u[0])||c.isValidBackgroundSizePart(u[0]))if(t>0){var v=n[t-1];if(v[0].indexOf("/")>0){var w=o(v[0],"/");g.value=[[w.pop()].concat(v.slice(1)),u],n[t-1]=[w.pop()].concat(v.slice(1))}else t>1&&"/"==n[t-2]?(g.value=[v,u],t-=2):"/"==v[0]?g.value=[u]:(p||(e.value=[]),e.value.unshift(u),p=!0)}else p||(e.value=[]),e.value.unshift(u),p=!0;else if(c.isValidBackgroundPositionAndSize(u[0])){var x=o(u[0],"/");g.value=[[x.pop()].concat(u.slice(1))],e.value=[[x.pop()].concat(u.slice(1))]}else l.value[0][0]!=b[l.name].defaultValue&&"none"!=l.value[0][0]||!c.isValidColor(u[0])?(c.isValidUrl(u[0])||c.isValidFunction(u[0]))&&(d.value=[u]):l.value=[u]}return q&&!r&&(j.value=k.value.slice(0)),m}function i(a,b){for(var c=a.value,d=-1,e=0,g=c.length;g>e;e++)if("/"==c[e][0]){d=e;break}if(-1==d)return j(a,b);var h=f(a.name,a,b);h.value=c.slice(0,d),h.components=j(h,b);var i=f(a.name,a,b);i.value=c.slice(d+1),i.components=j(i,b);for(var k=0;4>k;k++)h.components[k].multiplex=!0,h.components[k].value=h.components[k].value.concat([["/"]]).concat(i.components[k].value);return h.components}function j(a,b){var c=b[a.name].components,d=[],e=a.value;if(e.length<1)return[];e.length<2&&(e[1]=e[0].slice(0)),e.length<3&&(e[2]=e[0].slice(0)),e.length<4&&(e[3]=e[1].slice(0));for(var f=c.length-1;f>=0;f--){var g=n([[c[f],a.important]]);g.value=[e[f]],d.unshift(g)}return d}function k(a){return function(b,c,d){var e,g,h,i,j=[],k=b.value;for(e=0,h=k.length;h>e;e++)","==k[e][0]&&j.push(e);if(0===j.length)return a(b,c,d);var l=[];for(e=0,h=j.length;h>=e;e++){var m=0===e?0:j[e-1]+1,n=h>e?j[e]:k.length,o=f(b.name,b,c);o.value=k.slice(m,n),l.push(a(o,c,d))}var q=l[0];for(e=0,h=q.length;h>e;e++)for(q[e].multiplex=!0,g=1,i=l.length;i>g;g++)q[e].value.push([p]),Array.prototype.push.apply(q[e].value,l[g][e].value);return q}}function l(a,b,c){var d=f("list-style-type",a,b),e=f("list-style-position",a,b),g=f("list-style-image",a,b),h=[d,e,g];if(1==a.value.length&&"inherit"==a.value[0][0])return d.value=e.value=g.value=[a.value[0]],h;var i=a.value.slice(0),j=i.length,k=0;for(k=0,j=i.length;j>k;k++)if(c.isValidUrl(i[k][0])||"0"==i[k][0]){g.value=[i[k]],i.splice(k,1);break}for(k=0,j=i.length;j>k;k++)if(c.isValidListStyleType(i[k][0])){d.value=[i[k]],i.splice(k,1);break}return i.length>0&&c.isValidListStylePosition(i[0][0])&&(e.value=[i[0]]),h}function m(a,b,c){for(var h,i,j,k=b[a.name],l=[f(k.components[0],a,b),f(k.components[1],a,b),f(k.components[2],a,b)],m=0;3>m;m++){var n=l[m];n.name.indexOf("color")>0?h=n:n.name.indexOf("style")>0?i=n:j=n}if(1==a.value.length&&"inherit"==a.value[0][0]||3==a.value.length&&"inherit"==a.value[0][0]&&"inherit"==a.value[1][0]&&"inherit"==a.value[2][0])return h.value=i.value=j.value=[a.value[0]],l;var o,p,q=a.value.slice(0);return q.length>0&&(p=q.filter(g(c)),o=p.length>1&&("none"==p[0][0]||"auto"==p[0][0])?p[1]:p[0],o&&(j.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(e(c))[0],o&&(i.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(d(c))[0],o&&(h.value=[o],q.splice(q.indexOf(o),1))),l}var n=a("./wrap-for-optimizing").single,o=a("../utils/split"),p=",";b.exports={background:h,border:m,borderRadius:i,fourValues:j,listStyle:l,multiplex:k,outline:m}},{"../utils/split":66,"./wrap-for-optimizing":28}],14:[function(a,b,c){function d(){return!0}function e(a,b,c){var d=a.value[0][0],e=b.value[0][0];return"none"==e||"inherit"==e||c.isValidUrl(e)?!0:"none"==d||"inherit"==d||c.isValidUrl(d)?!1:j(a,b,c)}function f(a,b,c){return g(a.components[2],b.components[2],c)}function g(a,b,c){var d=a.value[0][0],e=b.value[0][0];return(c.colorOpacity||!c.isValidRgbaColor(d)&&!c.isValidHslaColor(d))&&(c.colorOpacity||!c.isValidRgbaColor(e)&&!c.isValidHslaColor(e))?c.isValidNamedColor(e)||c.isValidHexColor(e)?!0:c.isValidNamedColor(d)||c.isValidHexColor(d)?!1:c.isValidRgbaColor(e)||c.isValidHslaColor(e)?!0:c.isValidRgbaColor(d)||c.isValidHslaColor(d)?!1:j(a,b,c):!1}function h(a,b,c){var d=a.value[0][0],e=b.value[0][0];return!(c.isValidFunction(d)^c.isValidFunction(e))}function i(a,b){var c=a.value[0][0],d=b.value[0][0];return c===d}function j(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.areSameFunction(d,e)?!0:d===e}function k(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.isValidAndCompatibleUnitWithoutFunction(d)&&!c.isValidAndCompatibleUnitWithoutFunction(e)?!1:c.isValidUnitWithoutFunction(e)?!0:c.isValidUnitWithoutFunction(d)?!1:c.isValidFunctionWithoutVendorPrefix(e)&&c.isValidFunctionWithoutVendorPrefix(d)?!0:j(a,b,c)}b.exports={always:d,backgroundImage:e,border:f,color:g,sameValue:i,sameFunctionOrValue:j,twoOptionalFunctions:h,unit:k}},{}],15:[function(a,b,c){function d(a){for(var b=e(a),c=a.components.length-1;c>=0;c--){var d=e(a.components[c]);d.value=a.components[c].value.slice(0),b.components.unshift(d)}return b.dirty=!0,b.value=a.value.slice(0),b}function e(a){var b=f([[a.name,a.important,a.hack]]);return b.unused=!1,b}var f=a("./wrap-for-optimizing").single;b.exports={deep:d,shallow:e}},{"./wrap-for-optimizing":28}],16:[function(a,b,c){var d=a("./break-up"),e=a("./can-override"),f=a("./restore"),g={color:{canOverride:e.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:d.multiplex(d.background),defaultValue:"0 0",restore:f.multiplex(f.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:e.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:e.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:e.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:e.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:e.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:e.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:e.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:e.always,defaultValue:"scroll"},border:{breakUp:d.border,canOverride:e.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:f.withoutDefaults,shorthand:!0},"border-color":{canOverride:e.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:e.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:e.always,breakUp:d.listStyle,restore:f.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:e.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:e.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:e.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:d.outline,restore:f.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:e.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:e.always,defaultValue:"none"},"outline-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:e.sameFunctionOrValue},"-ms-transform":{canOverride:e.sameFunctionOrValue},"-webkit-transform":{canOverride:e.sameFunctionOrValue},transform:{canOverride:e.sameFunctionOrValue}},h=function(a,b,c){c=c||{},g[a]={canOverride:c.canOverride,components:b,breakUp:c.breakUp||d.fourValues,defaultValue:c.defaultValue||"0",restore:c.restore||f.fourValues,shortestValue:c.shortestValue,shorthand:!0};for(var h=0;hj;j++)g[g[i].components[j]].componentOf=i;b.exports=g},{"./break-up":13,"./can-override":14,"./restore":24}],17:[function(a,b,c){function d(a,b,c,d){for(var g=e(b),h=e(c),i=0,j=b.value.length;j>i;i++)for(var k=0,l=c.value.length;l>k;k++)if(b.value[i][0]!=f&&c.value[k][0]!=f&&(g.value=[b.value[i]],h.value=[c.value[k]],!a(g,h,d)))return!1;return!0}var e=a("./clone").shallow,f=",";b.exports=d},{"./clone":15}],18:[function(a,b,c){function d(a){for(var b=a.value.length-1;b>=0;b--)if("inherit"==a.value[b][0])return!0;return!1}b.exports=d},{}],19:[function(a,b,c){function d(a,b,c,d){function e(a){return b===!1||b===!0?b:b.indexOf(a)>-1}function g(b){var c=a[b-1],d=a[b];return m(c.all,c.position)==m(d.all,d.position)}var h,i,j={},k=null;a:for(var l=0,o=a.length;o>l;l++){var p=a[l],q=!("-ms-filter"!=p.name&&"filter"!=p.name||"background"!=k&&"background-image"!=k)?k:p.name,r=p.important,s=p.hack;if(!p.unused)if(l>0&&h&&q==k&&r==h.important&&s==h.hack&&g(l)&&!h.unused)p.unused=!0;else{if(q in j&&(c&&q!=k||e(l))){var t=j[q],u=f[q]&&f[q].canOverride,v=!1;for(i=t.length-1;i>=0;i--){var w=a[t[i]],x=w.name!=q,y=w.important,z=w.hack;if(!w.unused&&(!x||!y)&&(y||!(z&&!s||!z&&s))&&(!y||"star"!=s&&"underscore"!=s)&&(z||s||x||!u||u(w,p,d))){if(y&&!r||y&&s){p.unused=!0,h=p;continue a}v=!0,w.unused=!0}}if(v){l=-1,h=null,k=null,j={};continue}}else{j[q]=j[q]||[],j[q].push(l);var A=n[q];if(A)for(i=A.length-1;i>=0;i--){var B=A[i];j[B]=j[B]||[],j[B].push(l)}}k=q,h=p}}}function e(a,b,c,f,m,n){var o=g(b);h(o,n),d(o,c,m.aggressiveMerging,n);for(var p=0,q=o.length;q>p;p++){var r=o[p];r.variable&&r.block&&e(a,r.value[0],c,f,m,n)}f&&m.shorthandCompacting&&(i(o,m.compatibility,n),j(o,m.sourceMap,n)),l(o),k(o)}var f=a("./compactable"),g=a("./wrap-for-optimizing").all,h=a("./populate-components"),i=a("./override-compactor"),j=a("./shorthand-compactor"),k=a("./remove-unused"),l=a("./restore-from-optimizing"),m=a("../stringifier/one-time").property,n={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};b.exports=e},{"../stringifier/one-time":45,"./compactable":16,"./override-compactor":20,"./populate-components":21,"./remove-unused":22,"./restore-from-optimizing":23,"./shorthand-compactor":25,"./wrap-for-optimizing":28}],20:[function(a,b,c){function d(a){return function(b){return a.name===b.name}}function e(a,b){for(var c=0;c-1}function g(a,b){b.unused=!0,l(b,m(a)),a.value=b.value}function h(a,b){b.unused=!0,a.multiplex=!0,a.value=b.value}function i(a,b){b.unused=!0,a.value=b.value}function j(a,b){b.multiplex?h(a,b):a.multiplex?g(a,b):i(a,b)}function k(a,b){b.unused=!0;for(var c=0,d=a.components.length;d>c;c++)j(a.components[c],b.components[c],a.multiplex)}function l(a,b){a.multiplex=!0;for(var c=0,d=a.components.length;d>c;c++){var e=a.components[c];if(!e.multiplex)for(var f=e.value.slice(0),g=1;b>g;g++)e.value.push([G]),Array.prototype.push.apply(e.value,f)}}function m(a){for(var b=0,c=0,d=a.value.length;d>c;c++)a.value[c][0]==G&&b++;return b+1}function n(a){var b=[[a.name]].concat(a.value);return F([b],0).length}function o(a,b,c){for(var d=0,e=b;e>=0&&(a[e].name!=c||a[e].unused||d++,!(d>1));e--);return d>1}function p(a,b){for(var c=0,d=a.components.length;d>c;c++)if(q(b.isValidFunction,a.components[c]))return!0;return!1}function q(a,b){for(var c=0,d=b.value.length;d>c;c++)if(b.value[c][0]!=G&&a(b.value[c][0]))return!0;return!1}function r(a,b){if(!a.multiplex&&!b.multiplex||a.multiplex&&b.multiplex)return!1;var c,e=a.multiplex?a:b,f=a.multiplex?b:a,i=z(e);C([i]);var j=z(f);C([j]);var k=n(i)+1+n(j);a.multiplex?(c=i.components.filter(d(j))[0],g(c,j)):(c=j.components.filter(d(i))[0],l(j,m(i)),h(c,i)),C([j]);var o=n(j);return o>k}function s(a){return a.name in y}function t(a,b){return!a.multiplex&&("background"==a.name||"background-image"==a.name)&&b.multiplex&&("background"==b.name||"background-image"==b.name)&&u(b.value)}function u(a){for(var b=v(a),c=0,d=b.length;d>c;c++)if(1==b[c].length&&"none"==b[c][0][0])return!0;return!1}function v(a){for(var b=[],c=0,d=[],e=a.length;e>c;c++){var f=a[c];f[0]==G?(b.push(d),d=[]):d.push(f)}return b.push(d),b}function w(a,b,c){var g,h,i,n,u,v,w;a:for(u=a.length-1;u>=0;u--)if(h=a[u],s(h)&&!h.variable)for(g=y[h.name].canOverride||x.sameValue,v=u-1;v>=0;v--)if(i=a[v],s(i)&&!(i.variable||i.unused||h.unused||i.hack&&!h.hack||!i.hack&&h.hack||B(h)||t(i,h)))if(!i.shorthand&&h.shorthand&&f(h,i)){if(!h.important&&i.important)continue;if(!E([i],h.components))continue;if(!q(c.isValidFunction,i)&&p(h,c))continue;n=h.components.filter(d(i))[0],g=y[i.name]&&y[i.name].canOverride||x.sameValue,D(g,i,n,c)&&(i.unused=!0)}else if(i.shorthand&&!h.shorthand&&f(i,h)){if(h.important&&!i.important)continue;if(o(a,u-1,i.name))continue;if(p(i,c))continue;if(n=i.components.filter(d(h))[0],D(g,n,h,c)){var z=!b.properties.backgroundClipMerging&&n.name.indexOf("background-clip")>-1||!b.properties.backgroundOriginMerging&&n.name.indexOf("background-origin")>-1||!b.properties.backgroundSizeMerging&&n.name.indexOf("background-size")>-1,A=y[h.name].nonMergeableValue===h.value[0][0];if(z||A)continue;if(!b.properties.merging&&e(i,c))continue;if(n.value[0][0]!=h.value[0][0]&&(B(i)||B(h)))continue;if(r(i,h))continue;!i.multiplex&&h.multiplex&&l(i,m(h)),j(n,h),i.dirty=!0}}else if(i.shorthand&&h.shorthand&&i.name==h.name){if(!i.multiplex&&h.multiplex)continue;if(!h.important&&i.important){h.unused=!0;continue a}if(h.important&&!i.important){i.unused=!0;continue}for(w=i.components.length-1;w>=0;w--){var C=i.components[w],F=h.components[w];if(g=y[C.name].canOverride||x.sameValue,!D(g,C,F,c))continue a;if(!D(x.twoOptionalFunctions,C,F,c)&&c.isValidFunction(F))continue a}k(i,h),i.dirty=!0}else if(i.shorthand&&h.shorthand&&f(i,h)){if(!i.important&&h.important)continue;if(n=i.components.filter(d(h))[0],g=y[h.name].canOverride||x.sameValue,!D(g,n,h,c))continue;if(i.important&&!h.important){h.unused=!0;continue}var G=y[h.name].restore(h,y);if(G.length>1)continue;n=i.components.filter(d(h))[0],j(n,h),h.dirty=!0}else if(i.name==h.name){if(i.important&&!h.important){h.unused=!0;continue}if(g=y[h.name].canOverride||x.sameValue,!D(g,i,h,c))continue;i.unused=!0}}var x=a("./can-override"),y=a("./compactable"),z=a("./clone").deep,A=a("./clone").shallow,B=a("./has-inherit"),C=a("./restore-from-optimizing"),D=a("./every-combination"),E=a("./vendor-prefixes").same,F=a("../stringifier/one-time").property,G=",";b.exports=w},{"../stringifier/one-time":45,"./can-override":14,"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./restore-from-optimizing":23,"./vendor-prefixes":27}],21:[function(a,b,c){function d(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c],f=e[d.name];f&&f.shorthand&&(d.shorthand=!0,d.dirty=!0,d.components=f.breakUp(d,e,b),d.components.length>0?d.multiplex=d.components[0].multiplex:d.unused=!0)}}var e=a("./compactable");b.exports=d},{"./compactable":16}],22:[function(a,b,c){function d(a){for(var b=a.length-1;b>=0;b--){var c=a[b];c.unused&&c.all.splice(c.position,1)}}b.exports=d},{}],23:[function(a,b,c){function d(a){a.value[a.value.length-1][0]+=i}function e(a){"underscore"==a.hack?a.name=k+a.name:"star"==a.hack?a.name=j+a.name:"backslash"==a.hack?a.value[a.value.length-1][0]+=h:"bang"==a.hack&&(a.value[a.value.length-1][0]+=" "+l)}function f(a,b){for(var c=a.length-1;c>=0;c--){var f,h=a[c],i=g[h.name];if(!h.unused&&(h.dirty||h.important||h.hack)&&(!b&&i&&i.shorthand?(f=i.restore(h,g),h.value=f):f=h.value,h.important&&d(h),h.hack&&e(h),"all"in h)){var j=h.all[h.position];j[0][0]=h.name,j.splice(1,j.length-1),Array.prototype.push.apply(j,f)}}}var g=a("./compactable"),h="\\9",i="!important",j="*",k="_",l="!ie";b.exports=f},{"./compactable":16}],24:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var d=a[b][0];if("inherit"!=d&&d!=k&&d!=l)return!1}return!0}function e(a,b,c){function e(a){Array.prototype.unshift.apply(j,a.value)}function f(a){var c=b[a.name];return c.doubleValues?1==c.defaultValue.length?a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]==c.defaultValue[0]:!0):a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]:a.value[0][0])==c.defaultValue[1]:a.value[0][0]==c.defaultValue}for(var g,h,i=a.components,j=[],k=i.length-1;k>=0;k--){var m=i[k],n=f(m);if("background-clip"==m.name){var o=i[k-1],p=f(o);g=m.value[0][0]==o.value[0][0],h=!g&&(p&&!n||!p&&!n||!p&&n&&m.value[0][0]!=o.value[0][0]),g?e(o):h&&(e(m),e(o)),k--}else if("background-size"==m.name){var q=i[k-1],r=f(q);g=!r&&n,h=!g&&(r&&!n||!r&&!n),g?e(q):h?(e(m),j.unshift([l]),e(q)):1==q.value.length&&e(q),k--}else{if(n||b[m.name].multiplexLastOnly&&!c)continue;e(m)}}return 0===j.length&&1==a.value.length&&"0"==a.value[0][0]&&j.push(a.value[0]),0===j.length&&j.push([b[a.name].defaultValue]),d(j)?[j[0]]:j}function f(a,b){if(a.multiplex){for(var c=j(a),d=j(a),e=0;4>e;e++){var f=a.components[e],h=j(a);h.value=[f.value[0]],c.components.push(h);var i=j(a);i.value=[f.value[2]],d.components.push(i)}var k=g(c,b),l=g(d,b);return k.length!=l.length||k[0][0]!=l[0][0]||(k.length>1?k[1][0]!=l[1][0]:0)||(k.length>2?k[2][0]!=l[2][0]:0)||(k.length>3?k[3][0]!=l[3][0]:0)?k.concat([["/"]]).concat(l):k}return g(a,b)}function g(a){var b=a.components,c=b[0].value[0],d=b[1].value[0],e=b[2].value[0],f=b[3].value[0];return c[0]==d[0]&&c[0]==e[0]&&c[0]==f[0]?[c]:c[0]==e[0]&&d[0]==f[0]?[c,d]:d[0]==f[0]?[c,d,e]:[c,d,e,f]}function h(a){return function(b,c){if(!b.multiplex)return a(b,c,!0);var d,e,f=0,g=[],h={};for(d=0,e=b.components[0].value.length;e>d;d++)b.components[0].value[d][0]==k&&f++;for(d=0;f>=d;d++){for(var i=j(b),l=0,m=b.components.length;m>l;l++){var n=b.components[l],o=j(n);i.components.push(o);for(var p=h[o.name]||0,q=n.value.length;q>p;p++){if(n.value[p][0]==k){h[o.name]=p+1;break}o.value.push(n.value[p])}}var r=d==f,s=a(i,c,r);Array.prototype.push.apply(g,s),f>d&&g.push([","])}return g}}function i(a,b){for(var c=a.components,e=[],f=c.length-1;f>=0;f--){var g=c[f],h=b[g.name];g.value[0][0]!=h.defaultValue&&e.unshift(g.value[0])}return 0===e.length&&e.push([b[a.name].defaultValue]),d(e)?[e[0]]:e}var j=a("./clone").shallow,k=",",l="/";b.exports={background:e,borderRadius:f,fourValues:g,multiplex:h,withoutDefaults:i}},{"./clone":15}],25:[function(a,b,c){function d(a){var b;for(var c in a){if(void 0!==b&&a[c].important!=b)return!0;b=a[c].important}return!1}function e(a){var b=[];for(var c in a){var d=a[c],e=d.all[d.position],f=e[0][e[0].length-1];Array.isArray(f)&&Array.prototype.push.apply(b,f)}return b}function f(a,b,c,d,f){var g,h=i[c],o=[[c],[h.defaultValue]],p=m(o);p.shorthand=!0,p.dirty=!0,l([p],f);for(var q=0,r=h.components.length;r>q;q++){var s=b[h.components[q]],t=i[s.name].canOverride;if(k(s))return;if(!n(t,p.components[q],s,f))return;p.components[q]=j(s),p.important=s.important,g=s.all}for(var u in b)b[u].unused=!0;if(d){var v=e(b);v.length>0&&o[0].push(v)}p.position=g.length,p.all=g,p.all.push(o),a.push(p)}function g(a,b,c,e,g){var h=a[b];for(var j in c)if(void 0===h||j!=h.name){var k=i[j],l=c[j];k.components.length>Object.keys(l).length?delete c[j]:d(l)||f(a,l,j,e,g)}}function h(a,b,c){var d={};if(!(a.length<3)){for(var e=0,f=a.length;f>e;e++){var h=a[e];if(!h.unused&&!h.hack&&!h.variable){var j=i[h.name];if(j&&j.componentOf)if(h.shorthand)g(a,e,d,b,c);else{var k=j.componentOf;d[k]=d[k]||{},d[k][h.name]=h}}}g(a,e,d,b,c)}}var i=a("./compactable"),j=a("./clone").deep,k=a("./has-inherit"),l=a("./populate-components"),m=a("./wrap-for-optimizing").single,n=a("./every-combination");b.exports=h},{"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./populate-components":21,"./wrap-for-optimizing":28}],26:[function(a,b,c){function d(a){var b=g.slice(0).filter(function(b){return!(b in a.units)||a.units[b]===!0}),c="(\\-?\\.?\\d+\\.?\\d*("+b.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+c+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+f.join("|")+"|"+c+"|"+l+"|"+j+"|"+k+")$","i"),this.colorOpacity=a.colors.opacity}var e=a("../utils/split"),f=["thin","thick","medium","inherit","initial"],g=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],h="(\\-?\\.?\\d+\\.?\\d*("+g.join("|")+"|)|auto|inherit)",i="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",j="[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)",k="\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)",l="var\\(\\-\\-[^\\)]+\\)",m="("+l+"|"+j+"|"+k+")",n="("+h+"|"+i+")",o="(none|"+f.join("|")+"|"+h+"|"+l+"|"+j+"|"+k+")",p=new RegExp("^"+j+"$","i"),q=new RegExp("^"+k+"$","i"),r=new RegExp("^"+l+"$","i"),s=new RegExp("^"+m+"$","i"),t=new RegExp("^"+h+"$","i"),u=new RegExp("^"+n+"$","i"),v=new RegExp("^"+o+"$","i"),w=["repeat","no-repeat","repeat-x","repeat-y","inherit"],x=["inherit","scroll","fixed","local"],y=["center","top","bottom","left","right"],z=["contain","cover"],A=["border-box","content-box","padding-box"],B=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],C=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],D=["inside","outside","inherit"];d.prototype.isValidHexColor=function(a){return(4===a.length||7===a.length)&&"#"===a[0]},d.prototype.isValidRgbaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("rgba(")&&a.indexOf(")")===a.length-1},d.prototype.isValidHslaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("hsla(")&&a.indexOf(")")===a.length-1},d.prototype.isValidNamedColor=function(a){return"auto"!==a&&("transparent"===a||"inherit"===a||/^[a-zA-Z]+$/.test(a))},d.prototype.isValidVariable=function(a){return r.test(a)},d.prototype.isValidColor=function(a){return this.isValidNamedColor(a)||this.isValidColorValue(a)||this.isValidVariable(a)||this.isValidVendorPrefixedValue(a)},d.prototype.isValidColorValue=function(a){return this.isValidHexColor(a)||this.isValidRgbaColor(a)||this.isValidHslaColor(a)},d.prototype.isValidUrl=function(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS")},d.prototype.isValidUnit=function(a){return v.test(a)},d.prototype.isValidUnitWithoutFunction=function(a){return t.test(a)},d.prototype.isValidAndCompatibleUnit=function(a){return this.compatibleCssUnitAnyRegex.test(a); -},d.prototype.isValidAndCompatibleUnitWithoutFunction=function(a){return this.compatibleCssUnitRegex.test(a)},d.prototype.isValidFunctionWithoutVendorPrefix=function(a){return p.test(a)},d.prototype.isValidFunctionWithVendorPrefix=function(a){return q.test(a)},d.prototype.isValidFunction=function(a){return s.test(a)},d.prototype.isValidBackgroundRepeat=function(a){return w.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundAttachment=function(a){return x.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundBox=function(a){return A.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionPart=function(a){return y.indexOf(a)>=0||u.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPosition=function(a){if("inherit"===a)return!0;for(var b=a.split(" "),c=0,d=b.length;d>c;c++)if(""!==b[c]&&!this.isValidBackgroundPositionPart(b[c])&&!this.isValidVariable(b[c]))return!1;return!0},d.prototype.isValidBackgroundSizePart=function(a){return z.indexOf(a)>=0||t.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionAndSize=function(a){if(a.indexOf("/")<0)return!1;var b=e(a,"/");return this.isValidBackgroundSizePart(b.pop())&&this.isValidBackgroundPositionPart(b.pop())},d.prototype.isValidListStyleType=function(a){return C.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidListStylePosition=function(a){return D.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidStyle=function(a){return this.isValidStyleKeyword(a)||this.isValidVariable(a)},d.prototype.isValidStyleKeyword=function(a){return B.indexOf(a)>=0},d.prototype.isValidWidth=function(a){return this.isValidUnit(a)||this.isValidWidthKeyword(a)||this.isValidVariable(a)},d.prototype.isValidWidthKeyword=function(a){return f.indexOf(a)>=0},d.prototype.isValidVendorPrefixedValue=function(a){return/^-([A-Za-z0-9]|-)*$/gi.test(a)},d.prototype.areSameFunction=function(a,b){if(!this.isValidFunction(a)||!this.isValidFunction(b))return!1;var c=a.substring(0,a.indexOf("(")),d=b.substring(0,b.indexOf("("));return c===d},b.exports=d},{"../utils/split":66}],27:[function(a,b,c){function d(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=a[c],g=0,h=e.value.length;h>g;g++){var i=f.exec(e.value[g][0]);i&&-1==b.indexOf(i[0])&&b.push(i[0])}return b}function e(a,b){return d(a).sort().join(",")==d(b).sort().join(",")}var f=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;b.exports={same:e}},{}],28:[function(a,b,c){function d(a){for(var b=[],c=a.length-1;c>=0;c--)if("string"!=typeof a[c][0]){var d=k(a[c]);d.all=a,d.position=c,b.unshift(d)}return b}function e(a){for(var b=1,c=a.length;c>b;b++)if(","==a[b][0]||"/"==a[b][0])return!0;return!1}function f(a){var b=!1,c=a[0][0],d=a[a.length-1];return c[0]==o?b="underscore":c[0]==n?b="star":d[0][0]==p&&-1==d[0].indexOf("important")?b="bang":d[0].indexOf(p)>0&&-1==d[0].indexOf("important")?b="bang":d[0].indexOf(l)>0&&d[0].indexOf(l)==d[0].length-l.length-1?b="backslash":0===d[0].indexOf(l)&&2==d[0].length&&(b="backslash"),b}function g(a){return a.length>1?a[a.length-1][0].indexOf(m)>0:!1}function h(a){a.length>0&&(a[a.length-1][0]=a[a.length-1][0].replace(m,""))}function i(a){a[0][0]=a[0][0].substring(1)}function j(a,b){var c=a[a.length-1];c[0]=c[0].substring(0,c[0].indexOf("backslash"==b?l:p)).trim(),0===c[0].length&&a.pop()}function k(a){var b=g(a);b&&h(a);var c=f(a);"star"==c||"underscore"==c?i(a):"backslash"!=c&&"bang"!=c||j(a,c);var d=0===a[0][0].indexOf("--");return{block:d&&a[1]&&Array.isArray(a[1][0][0]),components:[],dirty:!1,hack:c,important:b,name:a[0][0],multiplex:a.length>2?e(a):!1,position:0,shorthand:!1,unused:a.length<2,value:a.slice(1),variable:d}}var l="\\",m="!important",n="*",o="_",p="!";b.exports={all:d,single:k}},{}],29:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var e=a[b],f=!1;switch(e[0]){case"selector":f=0===e[1].length||0===e[2].length;break;case"block":d(e[2]),f=0===e[2].length}f&&(a.splice(b,1),b--,c--)}}function e(a,b,c){for(var d=0,e=a.length;e>d;d++){var f=a[d];if("block"==f[0]){var h=/@(-moz-|-o-|-webkit-)?keyframes/.test(f[1][0]);g(f[2],b,c,!h)}}}function f(a,b,c){for(var d=0,e=a.length;e>d;d++){var g=a[d];switch(g[0]){case"selector":h(g[1],g[2],!1,!0,b,c);break;case"block":f(g[2],b,c)}}}function g(a,b,c,h){if(e(a,b,c),f(a,b,c),i(a),j(a,b,c),k(a,b,c),l(a,b,c),m(a,b),b.restructuring&&h&&(n(a,b),j(a,b,c)),b.mediaMerging){o(a);for(var q=p(a),r=q.length-1;r>=0;r--)g(q[r][2],b,c,!1)}d(a)}var h=a("../properties/optimizer"),i=a("./remove-duplicates"),j=a("./merge-adjacent"),k=a("./reduce-non-adjacent"),l=a("./merge-non-adjacent-by-selector"),m=a("./merge-non-adjacent-by-body"),n=a("./restructure"),o=a("./remove-duplicate-media-queries"),p=a("./merge-media-queries");b.exports=g},{"../properties/optimizer":19,"./merge-adjacent":33,"./merge-media-queries":34,"./merge-non-adjacent-by-body":35,"./merge-non-adjacent-by-selector":36,"./reduce-non-adjacent":37,"./remove-duplicate-media-queries":38,"./remove-duplicates":39,"./restructure":41}],30:[function(a,b,c){function d(a,b){return"["+b.replace(/ /g,"")+"]"}function e(a,b){return a[0]>b[0]?1:-1}function f(a,b,c,d){return b&&c&&d.length?b+c+" ":b&&c?b+c:c}var g={selectors:function(a,b,c){for(var g=[],h=[],i=0,j=a.length;j>i;i++){var k=a[i],l=k[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,f).trim();c&&l.indexOf("nav")>0&&(l=l.replace(/\+nav(\S|$)/,"+ nav$1")),(!b||-1==l.indexOf("*+html ")&&-1==l.indexOf("*:first-child+html "))&&(l.indexOf("*")>-1&&(l=l.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),l.indexOf("[")>-1&&(l=l.replace(/\[([^\]]+)\]/g,d)),-1==h.indexOf(l)&&(k[0]=l,h.push(l),g.push(k)))}return g.sort(e)},selectorDuplicates:function(a){for(var b=[],c=[],d=0,f=a.length;f>d;d++){var g=a[d];-1==c.indexOf(g[0])&&(c.push(g[0]),b.push(g))}return b.sort(e)},block:function(a,b){a[0]=a[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),b||(a[0]=a[0].replace(/\) /g,")"))},atRule:function(a){a[0]=a[0].replace(/\s+/g," ").trim()}};b.exports=g},{}],31:[function(a,b,c){function d(a){var b=[];if("selector"==a[0])for(var c=!/[\.\+>~]/.test(f(a[1])),i=0,j=a[2].length;j>i;i++){var k=a[2][i];if(0!==k.indexOf("__ESCAPED")&&k[0]!=h){var l=a[2][i][0][0];if(0!==l.length&&0!==l.indexOf("--")){var m=g(a[2],i);b.push([l,m,e(l),a[2][i],l+":"+m,a[1],c])}}}else if("block"==a[0])for(var n=0,o=a[2].length;o>n;n++)b=b.concat(d(a[2][n]));return b}function e(a){return"list-style"==a?a:a.indexOf("-radius")>0?"border-radius":"border-collapse"==a||"border-spacing"==a||"border-image"==a?a:0===a.indexOf("border-")&&/^border\-\w+\-\w+$/.test(a)?a.match(/border\-\w+/)[0]:0===a.indexOf("border-")&&/^border\-\w+$/.test(a)?"border":0===a.indexOf("text-")?a:a.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var f=a("../stringifier/one-time").selectors,g=a("../stringifier/one-time").value,h="at-rule";b.exports=d},{"../stringifier/one-time":45}],32:[function(a,b,c){function d(a,b){return a.compatibility.selectors.special.test(b)}b.exports=d},{}],33:[function(a,b,c){function d(a,b,c){for(var d=[null,[],[]],j=b.compatibility.selectors.adjacentSpace,k=0,l=a.length;l>k;k++){var m=a[k];if("selector"==m[0])if("selector"==d[0]&&g(m[1])==g(d[1])){var n=[d[2].length];Array.prototype.push.apply(d[2],m[2]),e(m[1],d[2],n,!0,b,c),m[2]=[]}else"selector"!=d[0]||f(m[2])!=f(d[2])||i(b,g(m[1]))||i(b,g(d[1]))?d=m:(d[1]=h(d[1].concat(m[1]),!1,j),m[2]=[]);else d=[null,[],[]]}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").body,g=a("../stringifier/one-time").selectors,h=a("./clean-up").selectors,i=a("./is-special");b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],34:[function(a,b,c){function d(a){for(var b={},c=[],d=a.length-1;d>=0;d--){var g=a[d];if("block"==g[0]){var h=b[g[1][0]];h||(h=[],b[g[1][0]]=h),h.push(d)}}for(var i in b){var j=b[i];a:for(var k=j.length-1;k>0;k--){var l=j[k],m=a[l],n=j[k-1],o=a[n];b:for(var p=1;p>=-1;p-=2){for(var q=1==p,r=q?l+1:n-1,s=q?n:l,t=q?1:-1,u=q?m:o,v=q?o:m,w=f(u);r!=s;){var x=f(a[r]);if(r+=t,!e(w,x))continue b}v[2]=q?u[2].concat(v[2]):v[2].concat(u[2]),u[2]=[],c.push(v);continue a}}}return c}var e=a("./reorderable").canReorder,f=a("./extractor");b.exports=d},{"./extractor":31,"./reorderable":40}],35:[function(a,b,c){function d(a){return/\.|\*| :/.test(a)}function e(a){var b=j(a[1]);return b.indexOf("__")>-1||b.indexOf("--")>-1}function f(a){return a.replace(/--[^ ,>\+~:]+/g,"")}function g(a,b){var c=f(j(a[1]));for(var d in b){var e=b[d],g=f(j(e[1]));(g.indexOf(c)>-1||c.indexOf(g)>-1)&&delete b[d]}}function h(a,b){for(var c={},f=b.compatibility.selectors.adjacentSpace,h=a.length-1;h>=0;h--){var m=a[h];if("selector"==m[0]){m[2].length>0&&!b.semanticMerging&&d(j(m[1]))&&(c={}),m[2].length>0&&b.semanticMerging&&e(m)&&g(m,c);var n=i(m[2]),o=c[n];!o||l(b,j(m[1]))||l(b,j(o[1]))||(m[1]=m[2].length>0?k(o[1].concat(m[1]),!1,f):o[1].concat(m[1]),o[2]=[],c[n]=null),c[i(m[2])]=m}}}var i=a("../stringifier/one-time").body,j=a("../stringifier/one-time").selectors,k=a("./clean-up").selectors,l=a("./is-special");b.exports=h},{"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],36:[function(a,b,c){function d(a,b,c){var d,i={},j=[];for(d=a.length-1;d>=0;d--)if("selector"==a[d][0]&&0!==a[d][2].length){var k=f(a[d][1]);i[k]=[d].concat(i[k]||[]),2==i[k].length&&j.push(k)}for(d=j.length-1;d>=0;d--){var l=i[j[d]];a:for(var m=l.length-1;m>0;m--){var n=l[m-1],o=a[n],p=l[m],q=a[p];b:for(var r=1;r>=-1;r-=2){for(var s,t=1==r,u=t?n+1:p-1,v=t?p:n,w=t?1:-1,x=t?o:q,y=t?q:o,z=g(x);u!=v;){var A=g(a[u]);u+=w;var B=t?h(z,A):h(A,z);if(!B&&!t)continue a;if(!B&&t)continue b}t?(s=[x[2].length],Array.prototype.push.apply(x[2],y[2]),y[2]=x[2]):(s=[y[2].length],Array.prototype.push.apply(y[2],x[2])),e(y[1],y[2],s,!0,b,c),x[2]=[]}}}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").selectors,g=a("./extractor"),h=a("./reorderable").canReorder;b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"./extractor":31,"./reorderable":40}],37:[function(a,b,c){function d(a,b,c){for(var d={},h=[],i=a.length-1;i>=0;i--){var j=a[i];if("selector"==j[0]&&0!==j[2].length)for(var m=k(j[1]),n=j[1].length>1&&!l(b,m),o=b.sourceMap?e(j[1]):j[1],p=n?[m].concat(o):[m],q=0,r=p.length;r>q;q++){var s=p[q];d[s]?h.push(s):d[s]=[],d[s].push({where:i,list:o,isPartial:n&&q>0,isComplex:n&&0===q})}}f(a,h,d,b,c),g(a,d,b,c)}function e(a){for(var b=[],c=0;ci;i++){var k=b[i],l=c[k];h(a,k,l,{filterOut:f,callback:g},d,e)}}function g(a,b,c,d){function e(a){return g.data[a].whereq;q++){var s=p[q],t=b[s];if(t.length<2)continue a;if(g.data=t,h(a,s,t,{filterOut:e,callback:f},c,d),j(o[o.length-1])!=j(o[0]))continue a}n[2]=o[0]}}}function h(a,b,c,d,e,f){for(var g=[],h=[],j=[],k=[],l=c.length-1,n=0;l>=0;l--)if(!d.filterOut(l,g)){var o=c[l].where,p=a[o],q=m(p[2]);g=g.concat(q),h.push(q),k.push(o)}for(l=0,n=h.length;n>l;l++)h[l].length>0&&j.push((j[l-1]||0)+h[l].length);i(b,g,j,!1,e,f);for(var r=k.length,s=g.length-1,t=r-1;t>=0;)if((0===t||g[s]&&h[t].indexOf(g[s])>-1)&&s>-1)s--;else{var u=g.splice(s+1);d.callback(a[k[t]],u,r,t),t--}}var i=a("../properties/optimizer"),j=a("../stringifier/one-time").body,k=a("../stringifier/one-time").selectors,l=a("./is-special"),m=a("../utils/clone-array");b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"../utils/clone-array":59,"./is-special":32}],38:[function(a,b,c){function d(a){for(var b={},c=0,d=a.length;d>c;c++){var f=a[c];if("block"==f[0]){var g=f[1][0]+"%"+e(f[2]),h=b[g];h&&(h[2]=[]),b[g]=f}}}var e=a("../stringifier/one-time").all;b.exports=d},{"../stringifier/one-time":45}],39:[function(a,b,c){function d(a){for(var b,c,d,g,h={},i=[],j=0,k=a.length;k>j;j++)c=a[j],"selector"==c[0]&&(b=f(c[1]),h[b]&&1==h[b].length?i.push(b):h[b]=h[b]||[],h[b].push(j));for(j=0,k=i.length;k>j;j++){b=i[j],g=[];for(var l=h[b].length-1;l>=0;l--)c=a[h[b][l]],d=e(c[2]),g.indexOf(d)>-1?c[2]=[]:g.push(d)}}var e=a("../stringifier/one-time").body,f=a("../stringifier/one-time").selectors;b.exports=d},{"../stringifier/one-time":45}],40:[function(a,b,c){function d(a,b){for(var c=b.length-1;c>=0;c--)for(var d=a.length-1;d>=0;d--)if(!e(a[d],b[c]))return!1;return!0}function e(a,b){var c=a[0],d=a[1],e=a[2],o=a[5],p=a[6],q=b[0],r=b[1],s=b[2],t=b[5],u=b[6];return"font"==c&&"line-height"==q||"font"==q&&"line-height"==c?!1:m.test(c)&&m.test(q)?!1:e==s&&g(c)==g(q)&&f(c)^f(q)?!1:("border"!=e||!n.test(s)||"border"!=c&&c!=s)&&("border"!=s||!n.test(e)||"border"!=q&&q!=e)?"border"==e&&"border"==s&&c!=q&&(h(c)&&i(q)||i(c)&&h(q))?!1:e!=s?!0:c!=q||e!=s||d!=r&&!j(d,r)?c!=q&&e==s&&c!=e&&q!=s?!0:c!=q&&e==s&&d==r?!0:!(!u||!p||l(e)||l(s)||!k(t,o)):!0:!1}function f(a){return/^\-(?:moz|webkit|ms|o)\-/.test(a)}function g(a){return a.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function h(a){return"border-top"==a||"border-right"==a||"border-bottom"==a||"border-left"==a}function i(a){return"border-color"==a||"border-style"==a||"border-width"==a}function j(a,b){return f(a)&&f(b)&&a.split("-")[1]!=b.split("-")[2]}function k(a,b){for(var c=0,d=a.length;d>c;c++)for(var e=0,f=b.length;f>e;e++)if(a[c][0]==b[e][0])return!1;return!0}function l(a){return"font"==a||"line-height"==a||"list-style"==a}var m=/align\-items|box\-align|box\-pack|flex|justify/,n=/^border\-(top|right|bottom|left|color|style|width|radius)/;b.exports={canReorder:d,canReorderSingle:e}},{}],41:[function(a,b,c){function d(a,b){return a>b}function e(a,b){var c=m(a);return c[5]=c[5].concat(b[5]),c}function f(a,b){function c(a,b,c){for(var d=c.length-1;d>=0;d--){var e=c[d][0],g=f(b,e);if(B[g].length>1&&x(a,B[g])){m(g);break}}}function f(a,b){var c=n(b);return B[c]=B[c]||[],B[c].push([a,b]),c}function m(a){var b,c=a.split(E),d=[];for(var e in B){var f=e.split(E);for(b=f.length-1;b>=0;b--)if(c.indexOf(f[b])>-1){d.push(e);break}}for(b=d.length-1;b>=0;b--)delete B[d[b]]}function n(a){for(var b=[],c=0,d=a.length;d>c;c++)b.push(j(a[c][1]));return b.join(E)}function o(a){for(var c=[],d=[],e=a.length-1;e>=0;e--)l(b,j(a[e][1]))||(d.unshift(a[e]),a[e][2].length>0&&-1==c.indexOf(a[e])&&c.push(a[e]));return c.length>1?d:[]}function p(a,b){var d=b[0],e=b[1],f=b[4],g=d.length+e.length+1,h=[],i=[],j=o(z[f]);if(!(j.length<2)){var l=r(j,g,1),m=l[0];if(m[1]>0)return c(a,b,l);for(var n=m[0].length-1;n>=0;n--)h=m[0][n][1].concat(h),i.unshift(m[0][n]);h=k(h),u(a,[b],h,i)}}function q(a,b){return a[1]>b[1]}function r(a,b,c){var d=s(a,b,c,D-1);return d.sort(q)}function s(a,b,c,d){var e=[[a,t(a,b,c)]];if(a.length>2&&d>0)for(var f=a.length-1;f>=0;f--){var g=Array.prototype.slice.call(a,0);g.splice(f,1),e=e.concat(s(g,b,c,d-1))}return e}function t(a,b,c){for(var d=0,e=a.length-1;e>=0;e--)d+=a[e][2].length>c?j(a[e][1]).length:-1;return d-(a.length-1)*b+1}function u(b,c,d,e){var f,g,h,j,k=[];for(f=e.length-1;f>=0;f--){var l=e[f];for(g=l[2].length-1;g>=0;g--){var m=l[2][g];for(h=0,j=c.length;j>h;h++){var n=c[h],o=m[0][0],p=n[0],q=n[4];if(o==p&&i([m])==q){l[2].splice(g,1);break}}}}for(f=c.length-1;f>=0;f--)k.unshift(c[f][3]);var r=["selector",d,k];a.splice(b,0,r)}function v(a,b){var c=b[4],d=z[c];d&&d.length>1&&(w(a,b)||p(a,b))}function w(a,b){var c,d,e=[],f=[],g=b[4],h=o(z[g]);if(!(h.length<2)){a:for(var i in z){var j=z[i];for(c=h.length-1;c>=0;c--)if(-1==j.indexOf(h[c]))continue a;e.push(i)}if(e.length<2)return!1;for(c=e.length-1;c>=0;c--)for(d=A.length-1;d>=0;d--)if(A[d][4]==e[c]){f.unshift([A[d],h]);break}return x(a,f)}}function x(a,b){for(var c,d=0,e=[],f=b.length-1;f>=0;f--){c=b[f][0];var g=c[4];d+=g.length+(f>0?1:0),e.push(c)}var h=b[0][1],i=r(h,d,e.length)[0];if(i[1]>0)return!1;var j=[],l=[];for(f=i[0].length-1;f>=0;f--)j=i[0][f][1].concat(j),l.unshift(i[0][f]);for(j=k(j),u(a,e,j,l),f=e.length-1;f>=0;f--){c=e[f];var m=A.indexOf(c);delete z[c[4]],m>-1&&-1==C.indexOf(m)&&C.push(m)}return!0}function y(a,b,c){var d=a[0],e=b[0];if(d!=e)return!1;var f=b[4],g=z[f];return g&&g.indexOf(c)>-1}for(var z={},A=[],B={},C=[],D=2,E="%",F=a.length-1;F>=0;F--){var G,H,I,J,K,L=a[F];if("selector"==L[0])G=!0;else{if("block"!=L[0])continue;G=!1}var M=A.length,N=g(L);C=[];var O=[];for(H=N.length-1;H>=0;H--)for(I=H-1;I>=0;I--)if(!h(N[H],N[I])){O.push(H);break}for(H=N.length-1;H>=0;H--){var P=N[H],Q=!1;for(I=0;M>I;I++){var R=A[I];-1!=C.indexOf(I)||h(P,R)||y(P,R,L)||(v(F+1,R,L),-1==C.indexOf(I)&&(C.push(I),delete z[R[4]])),Q||(Q=P[0]==R[0]&&P[1]==R[1],Q&&(K=I))}if(G&&!(O.indexOf(H)>-1)){var S=P[4];z[S]=z[S]||[],z[S].push(L),Q?A[K]=e(A[K],P):A.push(P)}}for(C=C.sort(d),H=0,J=C.length;J>H;H++){var T=C[H]-H;A.splice(T,1)}}for(var U=a[0]&&"at-rule"==a[0][0]&&0===a[0][1][0].indexOf("@charset")?1:0;U-1&&(b=b.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),b.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(a,b,c){return(b.length>0?".":"")+b+c}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function f(a,b){return-1==b.indexOf("0deg")?b:b.replace(/\(0deg\)/g,"(0)")}function g(a,b){return a.indexOf("filter")>-1||-1==b.indexOf(" ")?b:(b=b.replace(/\s+/g," "),b.indexOf("calc")>-1&&(b=b.replace(/\) ?\/ ?/g,")/ ")),b.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function h(a,b,c){return-1===c.value||-1===b.indexOf(".")?b:b.replace(c.regexp,function(a,b){return Math.round(parseFloat(b)*c.multiplier)/c.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function i(a,b,c){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(b)?b:"flex"==a||"-ms-flex"==a||"-webkit-flex"==a||"flex-basis"==a||"-webkit-flex-basis"==a?b:b.indexOf("%")>0&&("height"==a||"max-height"==a)?b:b.replace(c,"$10$2").replace(c,"$10$2")}function j(a){var b,c=a.value;4==c.length&&"0"===c[0][0]&&"0"===c[1][0]&&"0"===c[2][0]&&"0"===c[3][0]&&(b=a.name.indexOf("box-shadow")>-1?2:1),b&&(a.value.splice(b),a.dirty=!0)}function k(a,b,c){return-1===b.indexOf("#")&&-1==b.indexOf("rgb")&&-1==b.indexOf("hsl")?B.shorten(b):(b=b.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(a,b,c,d){return new z(b,c,d).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(a,b,c,d){return new A(b,c,d).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(a,b,c){return c[0]==c[1]&&c[2]==c[3]&&c[4]==c[5]?b+"#"+c[0]+c[2]+c[4]:b+"#"+c}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(a,b,c){var d=c.split(","),e="hsl"==b&&3==d.length||"hsla"==b&&4==d.length||"rgb"==b&&3==d.length&&c.indexOf("%")>0||"rgba"==b&&4==d.length&&c.indexOf("%")>0;return e?(-1==d[1].indexOf("%")&&(d[1]+="%"),-1==d[2].indexOf("%")&&(d[2]+="%"),b+"("+d.join(",")+")"):a}),c.colors.opacity&&-1==a.indexOf("background")&&(b=b.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(a){return y(b,",").pop().indexOf("gradient(")>-1?a:"transparent"})),B.shorten(b))}function l(a,b,c){return L.test(b)?b.replace(L,function(a,b){var d,e=parseInt(b);return 0===e?a:(c.properties.shorterLengthUnits&&c.units.pt&&3*e%4===0&&(d=3*e/4+"pt"),c.properties.shorterLengthUnits&&c.units.pc&&e%16===0&&(d=e/16+"pc"),c.properties.shorterLengthUnits&&c.units["in"]&&e%96===0&&(d=e/96+"in"),d&&(d=a.substring(0,a.indexOf(b))+d),d&&d.length-1||b[1]&&I.indexOf(b[1][0])>-1||b[2]&&I.indexOf(b[2][0])>-1;if(!c&&"/"!=b[1]){var d=0;if("normal"==b[0][0]&&d++,b[1]&&"normal"==b[1][0]&&d++,b[2]&&"normal"==b[2][0]&&d++,!(d>1)){var e;K.indexOf(b[0][0])>-1?e=0:b[1]&&K.indexOf(b[1][0])>-1?e=1:b[2]&&K.indexOf(b[2][0])>-1?e=2:J.indexOf(b[0][0])>-1?e=0:b[1]&&J.indexOf(b[1][0])>-1?e=1:b[2]&&J.indexOf(b[2][0])>-1&&(e=2),void 0!==e&&(a.value[e][0]=N["font-weight"](b[e][0]),a.dirty=!0)}}}function q(a,b){for(var c,r,s,t=C(a),u=0,v=t.length;v>u;u++)if(c=t[u],r=c.name,c.hack&&(("star"==c.hack||"underscore"==c.hack)&&!b.compatibility.properties.iePrefixHack||"backslash"==c.hack&&!b.compatibility.properties.ieSuffixHack||"bang"==c.hack&&!b.compatibility.properties.ieBangHack)&&(c.unused=!0),0===r.indexOf("padding")&&(d(c,0)||d(c,1)||d(c,2)||d(c,3))&&(c.unused=!0),!c.unused)if(c.variable)c.block&&q(c.value[0],b);else{for(var w=0,x=c.value.length;x>w;w++)s=c.value[w][0],N[r]&&(s=N[r](s,w,x)),s=g(r,s),s=h(r,s,b.precision),s=l(r,s,b.compatibility),s=m(r,s),s=e(r,s),b.compatibility.properties.zeroUnits&&(s=f(r,s),s=i(r,s,b.unitsRegexp)),b.compatibility.properties.colors&&(s=k(r,s,b.compatibility)),c.value[w][0]=s;j(c),0===r.indexOf("border")&&r.indexOf("radius")>0?n(c):"filter"==r?o(c):"font"==r&&p(c)}D(t,!0),E(t)}function r(a){for(var b=!1,c=0,d=a.length;d>c;c++){var e=a[c];"at-rule"==e[0]&&H.test(e[1][0])&&(b||-1==e[1][0].indexOf(G)?(a.splice(c,1),c--,d--):(b=!0,a.splice(c,1),a.unshift(["at-rule",[e[1][0].replace(H,G)]])))}}function s(a){var b=["px","em","ex","cm","mm","in","pt","pc","%"],c=["ch","rem","vh","vm","vmax","vmin","vw"];return c.forEach(function(c){a.compatibility.units[c]&&b.push(c)}),new RegExp("(^|\\s|\\(|,)0(?:"+b.join("|")+")(\\W|$)","g")}function t(a){var b={};return b.value=void 0===a.roundingPrecision?F:a.roundingPrecision,b.multiplier=Math.pow(10,b.value),b.regexp=new RegExp("(\\d*\\.\\d{"+(b.value+1)+",})px","g"),b}function u(a,b){var c=b.compatibility.selectors.ie7Hack,d=b.compatibility.selectors.adjacentSpace,e=b.compatibility.properties.spaceAfterClosingBrace,f=!1;b.unitsRegexp=s(b),b.precision=t(b);for(var g=0,h=a.length;h>g;g++){var i=a[g];switch(i[0]){case"selector":i[1]=v(i[1],!c,d),q(i[2],b);break;case"block":w(i[1],e),u(i[2],b);break;case"flat-block":w(i[1],e),q(i[2],b);break;case"at-rule":x(i[1]),f=!0}(0===i[1].length||i[2]&&0===i[2].length)&&(a.splice(g,1),g--,h--)}f&&r(a)}var v=a("./clean-up").selectors,w=a("./clean-up").block,x=a("./clean-up").atRule,y=a("../utils/split"),z=a("../colors/rgb"),A=a("../colors/hsl"),B=a("../colors/hex-name-shortener"),C=a("../properties/wrap-for-optimizing").all,D=a("../properties/restore-from-optimizing"),E=a("../properties/remove-unused"),F=2,G="@charset",H=new RegExp("^"+G,"i"),I=["100","200","300","400","500","600","700","800","900"],J=["normal","bold","bolder","lighter"],K=["bold","bolder","lighter"],L=/(?:^|\s|\()(-?\d+)px/,M=/^(\-?[\d\.]+)(m?s)$/,N={background:function(a,b,c){return 0!==b||1!=c||"none"!=a&&"transparent"!=a?a:"0 0"},"font-weight":function(a){return"normal"==a?"400":"bold"==a?"700":a},outline:function(a,b,c){return 0===b&&1==c&&"none"==a?"0":a}};b.exports=u},{"../colors/hex-name-shortener":9,"../colors/hsl":10,"../colors/rgb":11,"../properties/remove-unused":22,"../properties/restore-from-optimizing":23,"../properties/wrap-for-optimizing":28,"../utils/split":66,"./clean-up":30}],43:[function(a,b,c){function d(a,b,c){if(!c&&-1==a.indexOf("\n"))return 0===a.indexOf(i)?a:void(b.column+=a.length);for(var d=0,e=a.split("\n"),f=e.length,g=0;;){if(d==f-1)break;var h=e[d];if(/\S/.test(h))break;g+=h.length+1,d++}return b.line+=d,b.column=d>0?0:b.column,b.column+=/^(\s)*/.exec(e[d])[0].length,a.substring(g).trimLeft()}function e(a,b,c){var d=a.source||b.source;return d&&c.resolvePath?c.resolvePath(b.source,d):d}function f(a,b,c){var d={line:b.line,column:b.column,source:b.source},f=null,g=b.sourceMapTracker.isTracking(d.source)?b.sourceMapTracker.originalPositionFor(d,a,c||0):{};if(d.line=g.line||d.line,d.column=g.column||d.column,d.source=g.sourceResolved?g.source:e(g,d,b),b.sourceMapInlineSources){var h=b.sourceMapTracker.sourcesContentFor(b.source);f=h&&h[d.source]?h:b.sourceReader.sourceAt(b.source)}return f?[d.line,d.column,d.source,f]:[d.line,d.column,d.source]}function g(a,b){for(var c=a.split("\n"),d=0,e=c.length;e>d;d++){var f=c[d],g=0;for(d>0&&(b.line++,b.column=0);;){var h=f.indexOf(i,g);if(-1==h){b.column+=f.substring(g).length;break}b.column+=h-g,g+=h-g;var j=f.substring(h,f.indexOf("__",h+1)+2),k=j.substring(j.indexOf("(")+1,j.indexOf(")")).split(",");b.line+=~~k[0],b.column=(0===~~k[0]?b.column:0)+~~k[1],g+=j.length}}}function h(a,b,c,e){var h=d(a,b,c),i=c?f(h,b,e):[];return h&&g(h,b),i}var i="__ESCAPED_";b.exports=h},{}],44:[function(a,b,c){function d(a,b){for(var c=b,d=a.length;d>c;c++)if("string"!=typeof a[c])return!0;return!1}function e(a){return"background"==a[0][0]||"transform"==a[0][0]||"src"==a[0][0]}function f(a,b){return 0===a[b][0].indexOf("var(")}function g(a,b){return")"==a[b][0][a[b][0].length-1]||0===a[b][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function h(a,b){return","==a[b][0]}function i(a,b){return"/"==a[b][0]}function j(a,b){return a[b+1]&&","==a[b+1][0]}function k(a,b){return a[b+1]&&"/"==a[b+1][0]}function l(a){return"filter"==a[0][0]||"-ms-filter"==a[0][0]}function m(a,b,c){return(!c.spaceAfterClosingBrace&&e(a)||f(a,b))&&g(a,b)||k(a,b)||i(a,b)||j(a,b)||h(a,b)}function n(a,b){for(var c=b.store,d=0,e=a.length;e>d;d++)c(a[d],b),e-1>d&&c(",",b)}function o(a,b){for(var c=0,d=a.length;d>c;c++)p(a,c,c==d-1,b)}function p(a,b,c,d){var e=d.store,f=a[b];"string"==typeof f?e(f,d):f[0]==v?q(f[1],c,d):(e(f[0],d),e(":",d),r(a,b,c,d))}function q(a,b,c){var d=c.store;d(a,c),b||d(w,c)}function r(a,b,c,e){var f=e.store,g=a[b],h=0===g[0][0].indexOf("--");if(h&&s(g[1]))return f("{",e),o(g[1],e),void f("};",e);for(var i=1,j=g.length;j>i;i++)f(g[i],e),j-1>i&&(l(g)||!m(g,i,e))?f(" ",e):i==j-1&&!c&&d(a,b+1)&&f(w,e)}function s(a){for(var b=0,c=a.length;c>b;b++)if(a[b][0]==v||Array.isArray(a[b][0]))return!0;return!1}function t(a,b){for(var c=b.keepBreaks?u:"",d=b.store,e=0,f=a.length;f>e;e++){var g=a[e];switch(g[0]){case"at-rule":case"text":d(g[1][0],b),d(c,b);break;case"block":n([g[1]],b),d("{",b),t(g[2],b),d("}",b),d(c,b);break;case"flat-block":n([g[1]],b),d("{",b),o(g[2],b),d("}",b),d(c,b);break;default:n(g[1],b),d("{",b),o(g[2],b),d("}",b),d(c,b)}}}var u=a("os").EOL,v="at-rule",w=";";b.exports={all:t,body:o,property:p,selectors:n,value:r}},{os:75}],45:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(){return{output:[],store:d}}function f(a){var b=e();return k.all(a,b),b.output.join("")}function g(a){var b=e();return k.body(a,b),b.output.join("")}function h(a,b){var c=e();return k.property(a,b,!0,c),c.output.join("")}function i(a){var b=e();return k.selectors(a,b),b.output.join("")}function j(a,b){var c=e();return k.value(a,b,!0,c),c.output.join("")}var k=a("./helpers");b.exports={all:f,body:g,property:h,selectors:i,value:j}},{"./helpers":44}],46:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(a,b,c){var e={keepBreaks:b.keepBreaks,output:[],spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return f(a,e,!1),{styles:c(e.output.join("")).trim()}}var f=a("./helpers").all;b.exports=e},{"./helpers":44}],47:[function(a,b,c){(function(c){function d(a,b){var c="string"==typeof a,d=c?a:a[0];d.indexOf("_")>-1&&(d=b.restore(d,e(b.output))),f(d,c?null:a,b),b.output.push(d)}function e(a){for(var b=[],c=a.length-1;c>=0;c--){var d=a[c];if(b.unshift(d),"{"==d||";"==d)break}return b.join("")}function f(a,b,c){b&&g(b,c);var d=a.split("\n");c.line+=d.length-1,c.column=d.length>1?0:c.column+d.pop().length}function g(a,b){var c=a[a.length-1];if(Array.isArray(c))for(var d=0,e=c.length;e>d;d++)h(c[d],b)}function h(a,b){var c=a[2]||m;l&&(c=c.replace(/\\/g,"/")),b.outputMap.addMapping({generated:{line:b.line,column:b.column},source:c,original:{line:a[0],column:a[1]}}),a[3]&&b.outputMap.setSourceContent(c,a[3][a[2]])}function i(a,b,c,e){var f={column:0,inputMapTracker:e,keepBreaks:b.keepBreaks,line:1,output:[],outputMap:new j,restore:c,sourceMapInlineSources:b.sourceMapInlineSources,spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return k(a,f,!1),{sourceMap:f.outputMap,styles:f.output.join("").trim()}}var j=a("source-map").SourceMapGenerator,k=a("./helpers").all,l="win32"==c.platform,m="$stdin";b.exports=i}).call(this,a("_process"))},{"./helpers":44,_process:78,"source-map":110}],48:[function(a,b,c){function d(a,b,c,d){this.comments=new g("COMMENT"),this.specialComments=new g("COMMENT_SPECIAL"),this.context=a,this.restored=0,this.keepAll="*"==b,this.keepOne="1"==b||1===b,this.keepBreaks=c,this.saveWaypoints=d}function e(a){var b=[];return new h(a).each(function(a,c,d){b.push([d,d+a.length])}),function(a){for(var c=0,d=b.length;d>c;c++)if(b[c][0]a)return!0;return!1}}function f(a,b,c,d){for(var e=[],f=0;f0?e.join("")+b.substring(f,b.length):b}var g=a("./escape-store"),h=a("../utils/quote-scanner"),i="/*!",j="/*",k="*/",l=a("os").EOL;d.prototype.escape=function(a){for(var b,c,d,f=[],g=0,h=0,m=0,n=0,o=e(a),p=this.saveWaypoints;h0?q.substring(c+l.length).length:n+q.length),p||r){var s=p?[b,d]:null,t=r?this.specialComments.store(q,s):this.comments.store(q,s);f.push(t)}p&&(n=d+1),m=h+k.length}return f.length>0?f.join("")+a.substring(m,a.length):a},d.prototype.restore=function(a){return a=f(this,a,this.comments,!1),a=f(this,a,this.specialComments,!0)},b.exports=d},{"../utils/quote-scanner":63,"./escape-store":49,os:75}],49:[function(a,b,c){function d(a){this.placeholderRoot="ESCAPED_"+a+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var e="__";d.prototype._nextPlaceholder=function(a){return{index:this.count,value:e+this.placeholderRoot+this.count++ +a+e}},d.prototype.store=function(a,b){var c=b?"("+b.join(",")+")":"",d=this.dataToPlaceholder[a];if(!d){var e=this._nextPlaceholder(c);d=e.value,this.placeholderToData[e.index]=a,this.dataToPlaceholder[a]=e.value}return b&&(d=d.replace(/\([^\)]+\)/,c)),d}, -d.prototype.nextMatch=function(a,b){var c={};return c.start=a.indexOf(this.placeholderRoot,b)-e.length,c.end=a.indexOf(e,c.start+e.length)+e.length,c.start>-1&&c.end>-1&&(c.match=a.substring(c.start,c.end)),c},d.prototype.restore=function(a){var b=this.restoreMatcher.exec(a)[1];return this.placeholderToData[b]},b.exports=d},{}],50:[function(a,b,c){function d(a,b){for(var c=b+g.length,d=0,e=!1,f=!1;;){var j=a[c++];if(e?e="'"!=j&&'"'!=j:(e="'"==j||'"'==j,j==h&&d++,j==i&&d--,j==k&&(f=!0),j!=l||f||1!=d||(c--,d--)),0===d&&j==i)break;if(!j){c=a.substring(0,c).lastIndexOf(l);break}}return c}function e(a){this.expressions=new f("EXPRESSION"),this.saveWaypoints=a}var f=a("./escape-store"),g="expression",h="(",i=")",j=g+h,k="{",l="}",m=a("os").EOL;e.prototype.escape=function(a){for(var b,c,e,f=0,g=0,h=0,i=[],k=0,l=this.saveWaypoints;g0?n.substring(c+m.length).length:k+n.length);var o=l?[b,e]:null,p=this.expressions.store(n,o);i.push(a.substring(h,f)),i.push(p),l&&(k=e+1),h=g}return i.length>0?i.join("")+a.substring(h,a.length):a},e.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=e},{"./escape-store":49,os:75}],51:[function(a,b,c){function d(a){this.matches=new f("FREE_TEXT"),this.saveWaypoints=a}function e(a,b,c,d){var e=b;c&&(e=c+b.substring(0,b.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),d=e.length);var f=e.lastIndexOf(";",d),g=e.lastIndexOf("{",d),h=0;h=f>-1&&g>-1?Math.max(f,g):-1==f?g:f;var i=e.substring(h+1,d);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i)&&(a=a.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(a)&&!/format\($/.test(i)){var j=/^(font|font\-family):/.test(i),k=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(i),m=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(i);(j||k||l||m)&&(a=a.substring(1,a.length-1))}return a}var f=a("./escape-store"),g=a("../utils/quote-scanner"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e,f=this,i=this.saveWaypoints;return new g(a).each(function(a,g){i&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length,e=[b,d]);var j=f.matches.store(a,e);g.push(j)})},d.prototype.restore=function(a,b){for(var c=[],d=0;d0?c.join("")+a.substring(d,a.length):a},b.exports=d},{"../utils/quote-scanner":63,"./escape-store":49,os:75}],52:[function(a,b,c){function d(a,b,c){this.urls=new f("URL"),this.context=a,this.saveWaypoints=b,this.keepUrlQuotes=c}function e(a,b){return a=a.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),b||/^['"].+['"]$/.test(a)||/url\(.*[\s\(\)].*\)/.test(a)||/url\(['"]data:[^;]+;charset/.test(a)||(a=a.replace(/["']/g,"")),a}var f=a("./escape-store"),g=a("../urls/reduce"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e=this.saveWaypoints,f=this;return g(a,this.context,function(a,g){e&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length);var i=f.urls.store(a,e?[b,d]:null);g.push(i)})},d.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=d},{"../urls/reduce":57,"./escape-store":49,os:75}],53:[function(a,b,c){function d(a){return a[0]}function e(){}function f(a,b,c,d){for(var f=c?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,g=c?d.track:e;f.test(a);){var h=a.indexOf("__"),i=a.indexOf("__",h+1)+2,j=a.substring(h,i);a=a.substring(0,h)+a.substring(i),g(j),b.push(j)}return a}function g(a,b,c){return f(a,b,!0,c)}function h(a,b,c){return f(a,b,!1,c)}function i(a,b,c){for(var d=0,e=a.length;e>d;d++)c.track(a[d]),b.push(a[d])}function j(a,b,c){var e=[],f=[],o=/[ ,\/]/;if("string"!=typeof a)return[];a.indexOf(")")>-1&&(a=a.replace(/\)([^\s_;:,\)])/g,c.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),a.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(a=a.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,c.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var p=k(a,";",!1,"{","}"),q=0,r=p.length;r>q;q++){var s=p[q],t=s.indexOf(":"),u="@"==s.trim()[0];if(u)c.track(s),e.push([n,s.trim()]);else if(-1!=t)if(s.indexOf("{")>0&&s.indexOf("{")-1&&(w=g(w,e,c)),w.indexOf("__ESCAPED_COMMENT")>-1&&(w=h(w,f,c)),v.push([w.trim()].concat(c.track(w,!0))),c.track(":"),i(f,e,c);var x=s.indexOf("{"),y=0===w.trim().indexOf("--");if(y&&x>0){var z=s.substring(t+1,x+1),A=s.substring(s.indexOf("}")),B=s.substring(x+1,s.length-A.length);c.track(z),v.push(j(B,b,c)),e.push(v),c.track(A),c.track(r-1>q?";":"")}else{var C=k(s.substring(t+1),o,!0);if(1!=C.length||""!==C[0]){for(var D=0,E=C.length;E>D;D++){var F=C[D],G=F.trim();if(0!==G.length){var H=G[G.length-1],I=G.length>1&&(H==l||H==m);if(I&&(G=G.substring(0,G.length-1)),G.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)c.track(G);else if(f=[],G.indexOf("__ESCAPED_COMMENT")>-1&&(G=g(G,e,c)),G.indexOf("__ESCAPED_COMMENT")>-1&&(G=h(G,f,c)),0!==G.length){var J=v.length-1;"important"!=G||"!"!=v[J][0]?"!important"==G||"important"==G&&"!"==v[J][0][v[J][0].length-1]?(c.track(G),v[J][0]+=G):(v.push([G].concat(c.track(F,!0))),i(f,e,c),I&&(v.push([H]),c.track(H))):(c.track(G),v[J-1][0]+="!important",v.pop())}else i(f,e,c)}}r-1>q&&c.track(";"),e.push(v)}else c.warnings.push("Empty property '"+w+"' inside '"+b.filter(d).join(",")+"' selector. Ignoring.")}}else c.track(s),s.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&e.push(s.trim())}return e}var k=a("../utils/split"),l=",",m="/",n="at-rule";b.exports=j},{"../utils/split":66}],54:[function(a,b,c){function d(a,b){for(var c,d=[],f=e(a,","),g=0,h=f.length;h>g;g++)c=b.track(f[g],!0,g),b.track(","),d.push([f[g].trim()].concat(c));return d}var e=a("../utils/split");b.exports=d},{"../utils/split":66}],55:[function(a,b,c){function d(a,b){var c=l(e(a),"}",!0,"{","}");if(0===c.length)return[];var d={chunk:c.shift(),chunks:c,column:0,cursor:0,line:1,mode:"top",resolvePath:b.options.explicitTarget?f(b.options.root,b.options.target):null,source:void 0,sourceMap:b.options.sourceMap,sourceMapInlineSources:b.options.sourceMapInlineSources,sourceMapTracker:b.inputSourceMapTracker,sourceReader:b.sourceReader,sourceTracker:b.sourceTracker,state:[],track:b.options.sourceMap?function(a,b,c){return[[k(a,d,b,c)]]}:function(){return[]},warnings:b.warnings};return h(d)}function e(a){return a.replace(/\r\n/g,"\n")}function f(a,b){var c=m.relative(a,b);return function(a,b){return a!=b?m.normalize(m.join(m.relative(c,m.dirname(a)),b)):b}}function g(a){var b,c=a.mode,d=a.chunk;if(d.length==a.cursor){if(0===a.chunks.length)return null;a.chunk=d=a.chunks.shift(),a.cursor=0}if("body"==c)return"}"==d[a.cursor]?[a.cursor,"bodyEnd"]:-1==d.indexOf("}",a.cursor)?null:(b=a.cursor+l(d.substring(a.cursor-1),"}",!0,"{","}")[0].length-2,[b,"bodyEnd"]);var e=d.indexOf("@",a.cursor),f=d.indexOf("__ESCAPED_",a.cursor),g=d.indexOf("{",a.cursor),h=d.indexOf("}",a.cursor);return f>-1&&/\S/.test(d.substring(a.cursor,f))&&(f=-1),b=e,(-1==b||f>-1&&b>f)&&(b=f),(-1==b||g>-1&&b>g)&&(b=g),(-1==b||h>-1&&b>h)&&(b=h),-1!=b?f===b?[b,"escape"]:g===b?[b,"bodyStart"]:h===b?[b,"bodyEnd"]:e===b?[b,"special"]:void 0:void 0}function h(a){for(var b,c,d=a.chunk,e=[];;){var f=g(a);if(!f){var k=a.chunk.substring(a.cursor);k.trim().length>0&&("body"==a.mode?a.warnings.push("Missing '}' after '"+k+"'. Ignoring."):e.push(["text",[k]]),a.cursor+=k.length);break}var l,m,o=f[0],p=f[1];if(d=a.chunk,a.cursor!=o&&"bodyEnd"!=p){var q=d.substring(a.cursor,o),r=/^\s+/.exec(q);r&&(a.cursor+=r[0].length,a.track(r[0]))}if("special"==p){var s=d.indexOf("{",o),t=d.indexOf(";",o),u=t>-1&&(-1==s||s>t),v=-1==s&&-1==t;if(v)a.warnings.push("Broken declaration: '"+d.substring(a.cursor)+"'."),a.cursor=d.length;else if(u)l=d.indexOf(";",o+1),c=d.substring(a.cursor,l+1),e.push(["at-rule",[c].concat(a.track(c,!0))]),a.track(";"),a.cursor=l+1;else{l=d.indexOf("{",o+1),c=d.substring(a.cursor,l);var w=c.trim(),x=n.test(w);m=a.mode,a.cursor=l+1,a.mode=x?"body":"block",b=[x?"flat-block":"block"],b.push([w].concat(a.track(c,!0))),a.track("{"),b.push(h(a)),"string"==typeof b[2]&&(b[2]=i(b[2],[[w]],a)),a.mode=m,a.track("}"),e.push(b)}}else if("escape"==p){l=d.indexOf("__",o+1);var y=d.substring(a.cursor,l+2),z=!!a.sourceTracker.nextStart(y),A=!!a.sourceTracker.nextEnd(y);if(z)a.track(y),a.state.push({source:a.source,line:a.line,column:a.column}),a.source=a.sourceTracker.nextStart(y).filename,a.line=1,a.column=0;else if(A){var B=a.state.pop();a.source=B.source,a.line=B.line,a.column=B.column,a.track(y)}else 0===y.indexOf("__ESCAPED_COMMENT_SPECIAL")&&e.push(["text",[y]]),a.track(y);a.cursor=l+2}else if("bodyStart"==p){var C=j(d.substring(a.cursor,o),a);m=a.mode,a.cursor=o+1,a.mode="body";var D=i(h(a),C,a);a.track("{"),a.mode=m,e.push(["selector",C,D])}else if("bodyEnd"==p){if("top"==a.mode){var E=a.cursor,F="}"==d[a.cursor]?"Unexpected '}' in '"+d.substring(E-20,E+20)+"'. Ignoring.":"Unexpected content: '"+d.substring(E,o+1)+"'. Ignoring.";a.warnings.push(F),a.cursor=o+1;continue}"block"==a.mode&&a.track(d.substring(a.cursor,o)),"block"!=a.mode&&(e=d.substring(a.cursor,o)),a.cursor=o+1;break}}return e}var i=a("./extract-properties"),j=a("./extract-selectors"),k=a("../source-maps/track"),l=a("../utils/split"),m=a("path"),n=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;b.exports=d},{"../source-maps/track":43,"../utils/split":66,"./extract-properties":53,"./extract-selectors":54,path:76}],56:[function(a,b,c){function d(a,b){var c={absolute:b.options.explicitRoot,relative:!b.options.explicitRoot&&b.options.explicitTarget,fromBase:b.options.relativeTo};return c.absolute||c.relative?(c.absolute&&b.options.explicitTarget&&b.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),c.absolute&&(c.toBase=e.resolve(b.options.root)),c.relative&&(c.toBase=e.resolve(b.options.target)),c.fromBase&&c.toBase?f(a,c,b):a):a}var e=a("path"),f=a("./rewrite");b.exports=d},{"./rewrite":58,path:76}],57:[function(a,b,c){function d(a,b,c){for(var d=0,e=0,f=0,k=0,l=!1,m=0,n=[],o=a.indexOf(h)>-1;f-1&&(d=e),'"'==a[d+g.length])f=a.indexOf('"',d+g.length+1);else if("'"==a[d+g.length])f=a.indexOf("'",d+g.length+1);else if(l=0===a.substring(d+g.length).trim().indexOf(j),f=a.indexOf(i,d),l)for(;;){if(k=a.indexOf(i,f+1),-1==k||/[\s\{\};]/.test(a.substring(f,k)))break;f=k}-1==f?(f=a.indexOf("}",d),-1==f?f=a.length:f--,b.warnings.push("Broken URL declaration: '"+a.substring(d,f+1)+"'.")):a[f]!=i&&(f=a.indexOf(i,f)),n.push(a.substring(m,d));var p=a.substring(d,f+1);c(p,n),m=f+1}return n.length>0?n.join("")+a.substring(m,a.length):a}function e(a,b,c){for(var d,e,f=0,g=0,h=0,i=0,j=0,n=[],o=0,p=0,q="'",r='"';i-1&&g>-1&&f>g&&(f=g),o=a.indexOf(q,f),p=a.indexOf(r,f),o>-1&&p>-1&&p>o)h=o,e=q;else if(o>-1&&p>-1&&o>p)h=p,e=r;else if(o>-1)h=o,e=q;else{if(!(p>-1))break;h=p,e=r}if(n.push(a.substring(j,h)),i=a.indexOf(e,h+1),d=a.substring(f,i),-1==i||/^@import\s+(url\(|__ESCAPED)/i.test(d)||m.test(d)){j=h;break}var s=a.substring(h,i+1);c(s,n),j=i+1}return n.length>0?n.join("")+a.substring(j,a.length):a}function f(a,b,c){return a=d(a,b,c),a=e(a,b,c)}var g="url(",h="URL(",i=")",j="data:",k="@import",l="@IMPORT",m=/\*\//;b.exports=f},{}],58:[function(a,b,c){(function(c){function d(a){return"/"==a[0]}function e(a){return"#"==a[0]}function f(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function g(a){return/^\w+:\w+/.test(a)}function h(a){return/^[^:]+?:\/\//.test(a)||0===a.indexOf("//")}function i(a,b){return s.parse(a).protocol==s.parse(b).protocol&&s.parse(a).host==s.parse(b).host}function j(a){return a.lastIndexOf(".css")===a.length-4}function k(a){return 0===a.indexOf("data:")}function l(a,b){return r.resolve(r.join(b.fromBase||"",a)).replace(b.toBase,"")}function m(a,b){return r.relative(b.toBase,r.join(b.fromBase||"",a))}function n(a){return u?a.replace(/\\/g,"/"):a}function o(a,b){return d(a)||e(a)||f(a)||g(a)?a:b.rebase!==!1||j(a)?!b.imports&&j(a)?a:k(a)?"'"+a+"'":h(a)&&!h(b.toBase)?a:h(a)&&!i(a,b.toBase)?a:!h(a)&&h(b.toBase)?s.resolve(b.toBase,a):n(b.absolute?l(a,b):m(a,b)):a}function p(a){return a.indexOf("'")>-1?'"':a.indexOf('"')>-1?"'":/\s/.test(a)||/[\(\)]/.test(a)?"'":""}function q(a,b,c){return t(a,c,function(a,c){var d,e=a.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),f=a.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);d=b.urlQuotes&&f&&f[2]===f[3]?f[2]:p(e),c.push("url("+d+o(e,b)+d+")")})}var r=a("path"),s=a("url"),t=a("./reduce"),u="win32"==c.platform;b.exports=q}).call(this,a("_process"))},{"./reduce":57,_process:78,path:76,url:140}],59:[function(a,b,c){function d(a){for(var b=a.slice(0),c=0,e=b.length;e>c;c++)Array.isArray(b[c])&&(b[c]=d(b[c]));return b}b.exports=d},{}],60:[function(a,b,c){function d(a){this.source=a||{}}function e(a,b){for(var c in a){var d=a[c];"object"!=typeof d||g.isRegExp(d)?b[c]=c in b?b[c]:d:b[c]=e(d,b[c]||{})}return b}function f(a){if("object"==typeof a)return a;if(!/[,\+\-]/.test(a))return h[a]||h["*"];var b=a.split(","),c=b[0]in h?h[b.shift()]:h["*"];return a={},b.forEach(function(b){var c="+"==b[0],d=b.substring(1).split("."),e=d[0],f=d[1];a[e]=a[e]||{},a[e][f]=c}),e(c,a)}var g=a("util"),h={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!0,"in":!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};d.prototype.toOptions=function(){return e(h["*"],f(this.source))},b.exports=d},{util:144}],61:[function(a,b,c){(function(c,d,e){function f(a){this.options=a.options,this.errors=a.errors,this.warnings=a.warnings,this.sourceTracker=a.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=a.localOnly,this.relativeTo=a.options.target||c.cwd(),this.maps={},this.sourcesContent={}}function g(a,b,c){return a.trackLoaded(void 0,void 0,a.options.sourceMap),c()}function h(a,b,c,d){function e(){d.cursor+=f+1,h(a,b,c,d)}for(var f=0;d.cursor-1&&(f=k.index),l.index>-1&&l.index-1&&m.index299)return d(a.statusCode);var b=[];a.on("data",function(a){b.push(a.toString())}),a.on("end",function(){c(b.join(""))})}).on("error",function(a){g||(d(a.message),g=!0)}).on("timeout",function(){g||(d("timeout"),g=!0)}).setTimeout(a.timeout)}function l(a,b,c,d,e){for(var f,g=d.length,h={line:b,column:c+g};g-- >0&&(h.column--,!(f=a.data.originalPositionFor(h))););return null===f.line&&b>1&&e>0?l(a,b-1,c,d,e-1):(a.path&&f.source&&(f.source=w.test(a.path)?t.resolve(a.path,f.source):q.join(a.path,f.source),f.sourceResolved=!0),f)}function m(a,b){var c=a.maps[b].data,d=w.test(b),e={};c.sources.forEach(function(f,g){var h=d?t.resolve(q.dirname(b),f):q.relative(a.relativeTo,q.resolve(q.dirname(b),f));e[h]=c.sourcesContent&&c.sourcesContent[g]}),a.sourcesContent[b]=e}function n(a,b,c){function d(){return n(a,b,c)}if(0===b.length)return c();var e=b.shift(),f=e[0],g=e[1],h=w.test(f);if(h&&a.localOnly)return a.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+g+'"'),d();if(!h){var i=q.join(a.options.root,g);return p.existsSync(i)?a.sourcesContent[f][g]=p.readFileSync(i,"utf-8"):a.warnings.push('Missing original source file at "'+i+'".'),d()}k(a,g,function(b){a.sourcesContent[f][g]=b,d()},function(b){a.warnings.push('Broken original source file at "'+g+'" - '+b),d()})}var o=a("source-map").SourceMapConsumer,p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../utils/object.js").override,v=/\/\*# sourceMappingURL=(\S+) \*\//,w=/^(https?:)?\/\//,x=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,y=d.unescape;f.prototype.track=function(a,b){return"string"==typeof this.options.sourceMap?g(this,a,b):h(this,a,b,{files:[],cursor:0,errors:this.errors})},f.prototype.trackLoaded=function(a,b,c){var d=this.options.explicitTarget?this.options.target:this.options.root,e=w.test(a);b&&(b=e?q.dirname(b):q.dirname(q.relative(d,b))),this.maps[a]={path:b,data:new o(c)},m(this,a)},f.prototype.isTracking=function(a){return!!this.maps[a]},f.prototype.originalPositionFor=function(a,b,c){return l(this.maps[a.source],a.line,a.column,b,c)},f.prototype.sourcesContentFor=function(a){return this.sourcesContent[a]},f.prototype.resolveSources=function(a){var b=[];for(var c in this.sourcesContent){var d=this.sourcesContent[c];for(var e in d)d[e]||b.push([c,e])}return n(this,b,a)},b.exports=f}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"../utils/object.js":62,_process:78,buffer:5,fs:4,http:122,https:69,path:76,"source-map":110,url:140}],62:[function(a,b,c){b.exports={override:function(a,b){var c={};for(var d in a)c[d]=a[d];for(var e in b)c[e]=b[e];return c}}},{}],63:[function(a,b,c){function d(a){this.data=a}function e(a,b,c){for(var d="\\",e=c;;){if(e=a.indexOf(b,e+1),-1==e)return-1;if(a[e-1]!=d)return e}}var f=function(a,b,c,d){var e="/*",f="*/",g="\\",h="}",i=a.substring(d,c),j=i.lastIndexOf(f,c),k=i.lastIndexOf(e,c),l=!1;if(j>=c&&k>-1&&(l=!0),c>k&&k>j&&(l=!0),l){var m=a.indexOf(f,c);return m>-1?m:(m=a.indexOf(h,c),m>-1?m-1:a.length)}for(;;){if(void 0===a[c])break;if(a[c]==b&&(a[c-1]!=g||a[c-2]==g))break;c++}return c};d.prototype.each=function(a){for(var b=this.data,c=[],d=0,g=0,h=0,i=null,j="'",k='"',l=b.length;gm?(d=m,i=j):(d=n,i=k),-1==d)break;if(g=f(b,i,d+1,h),-1==g)break;var o=b.substring(d,g+1);c.push(b.substring(h,d)),o.length>0&&a(o,c,d),h=g+1}return c.length>0?c.join("")+b.substring(h,b.length):b},b.exports=d},{}],64:[function(a,b,c){(function(c){function d(a,b){this.outerContext=a,this.data=b,this.sources={}}function e(a){var b=a.data;return a.trackSource(void 0,b),b}function f(a){var b=a.data.toString();return a.trackSource(void 0,b),b}function g(a){return a.data.map(function(b){return a.outerContext.options.processImport===!1?b+"@shallow":b}).map(function(b){return!a.outerContext.options.relativeTo||/^https?:\/\//.test(b)?b:i.relative(a.outerContext.options.relativeTo,b)}).map(function(a){return"@import url("+a+");"}).join("")}function h(a){var b=[],c=i.resolve(a.outerContext.options.target||a.outerContext.options.root);for(var d in a.data){var e=a.data[d].styles,f=a.data[d].sourceMap,g=k.test(d),h=g?d:i.resolve(d),l=i.dirname(h),m={absolute:a.outerContext.options.explicitRoot,relative:!a.outerContext.options.explicitRoot,imports:!0,rebase:a.outerContext.options.rebase,fromBase:l,toBase:g?l:c,urlQuotes:a.outerContext.options.compatibility.properties.urlQuotes};e=j(e,m,a.outerContext),a.trackSource(d,e),e=a.outerContext.sourceTracker.store(d,e),a.outerContext.options.sourceMap&&f&&a.outerContext.inputSourceMapTracker.trackLoaded(d,d,f),b.push(e)}return b.join("")}var i=a("path"),j=a("../urls/rewrite"),k=/^(https?:)?\/\//;d.prototype.sourceAt=function(a){return this.sources[a]},d.prototype.trackSource=function(a,b){this.sources[a]={},this.sources[a][a]=b},d.prototype.toString=function(){return"string"==typeof this.data?e(this):c.isBuffer(this.data)?f(this):Array.isArray(this.data)?g(this):h(this)},b.exports=d}).call(this,{isBuffer:a("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":72,"../urls/rewrite":58,path:76}],65:[function(a,b,c){function d(){this.sources=[]}d.prototype.store=function(a,b){return this.sources.push(a),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+b+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},d.prototype.nextStart=function(a){var b=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(a);return b?{index:b.index,filename:this.sources[~~b[1]]}:null},d.prototype.nextEnd=function(a){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(a)},d.prototype.removeAll=function(a){return a.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},b.exports=d},{}],66:[function(a,b,c){function d(a,b,c,d,e){var f="string"!=typeof b,g=f?b.test(a):a.indexOf(b);if(!g)return[a];if(d=d||"(",e=e||")",-1==a.indexOf(d)&&!c)return a.split(b);for(var h=0,i=0,j=0,k=a.length,l=[];k>i;)a[i]==d?h++:a[i]==e&&h--,0===h&&i>0&&k>i+1&&(f?b.test(a[i]):a[i]==b)&&(l.push(a.substring(j,i+(c?1:0))),j=i+1),i++;if(i+1>j){var m=a.substring(j),n=m[m.length-1];!c&&(f?b.test(n):n==b)&&(m=m.substring(0,m.length-1)),l.push(m)}return l}b.exports=d},{}],67:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":72}],68:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f);return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned&&(c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],69:[function(a,b,c){var d=a("http"),e=b.exports;for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f]);e.request=function(a,b){return a||(a={}),a.scheme="https",a.protocol="https:",d.request.call(this,a,b)}},{http:122}],70:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],71:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],72:[function(a,b,c){b.exports=function(a){return!(null==a||!(a._isBuffer||a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)))}},{}],73:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],74:[function(a,b,c){"use strict";function d(a){return a.source.slice(1,-1)}var e=a("xml-char-classes");b.exports=new RegExp("^["+d(e.letter)+"_]["+d(e.letter)+d(e.digit)+"\\.\\-_"+d(e.combiningChar)+d(e.extender)+"]*$")},{"xml-char-classes":145}],75:[function(a,b,c){c.endianness=function(){return"LE"},c.hostname=function(){return"undefined"!=typeof location?location.hostname:""},c.loadavg=function(){return[]},c.uptime=function(){return 0},c.freemem=function(){return Number.MAX_VALUE},c.totalmem=function(){return Number.MAX_VALUE},c.cpus=function(){return[]},c.type=function(){return"Browser"},c.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},c.networkInterfaces=c.getNetworkInterfaces=function(){return{}},c.arch=function(){return"javascript"},c.platform=function(){return"browser"},c.tmpdir=c.tmpDir=function(){return"/tmp"},c.EOL="\n"},{}],76:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0); -return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:78}],77:[function(a,b,c){(function(a){"use strict";function c(b){for(var c=new Array(arguments.length-1),d=0;d1)for(var c=1;c1&&(d=c[0]+"@",a=c[1]),a=a.replace(G,".");var e=a.split("."),g=f(e,b).join(".");return d+g}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c&&!c.nodeType&&c,r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof a&&a;s.global!==s&&s.window!==s&&s.self!==s||(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.4.1",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&r)if(b.exports==q)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],80:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],81:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else{var i;!b.decoder||e||d||(c=b.decoder.write(c),i=!b.objectMode&&0===c.length),e||(b.reading=!1),i||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&l(a))),n(a,b)}else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length=J?a=J:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return B.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,l(a)}}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(G("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?z(m,a):m(a))}function m(a){G("emit readable"),a.emit("readable"),t(a)}function n(a,b){b.readingMore||(b.readingMore=!0,z(o,a,b))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=e)c=f?d.join(""):1===d.length?d[0]:B.concat(d,e),d.length=0;else if(aj&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l0)throw new Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,z(w,b,a))}function w(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function x(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function y(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e;var z=a("process-nextick-args"),A=a("isarray"),B=a("buffer").Buffer;e.ReadableState=d;var C,D=(a("events"),function(a,b){return a.listeners(b).length});!function(){try{C=a("stream")}catch(b){}finally{C||(C=a("events").EventEmitter)}}();var B=a("buffer").Buffer,E=a("core-util-is");E.inherits=a("inherits");var F=a("util"),G=void 0;G=F&&F.debuglog?F.debuglog("stream"):function(){};var H;E.inherits(e,C);var I,I;e.prototype.push=function(a,b){var c=this._readableState;return c.objectMode||"string"!=typeof a||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new B(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(b){return H||(H=a("string_decoder/").StringDecoder),this._readableState.decoder=new H(b),this._readableState.encoding=b,this};var J=8388608;e.prototype.read=function(a){G("read",a);var b=this._readableState,c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return G("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?v(this):l(this),null;if(a=i(a,b),0===a&&b.ended)return 0===b.length&&v(this),null;var d=b.needReadable;G("need readable",d),(0===b.length||b.length-a0?u(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&v(this),null!==e&&this.emit("data",e),e},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){G("onunpipe"),a===l&&f()}function e(){G("onend"),a.end()}function f(){G("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",q),a.removeListener("error",h),a.removeListener("unpipe",d),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),r=!0,!m.awaitDrain||a._writableState&&!a._writableState.needDrain||q()}function g(b){G("ondata");var c=a.write(b);!1===c&&(1!==m.pipesCount||m.pipes[0]!==a||1!==l.listenerCount("data")||r||(G("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++),l.pause())}function h(b){G("onerror",b),k(),a.removeListener("error",h),0===D(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){G("onfinish"),a.removeListener("close",i),k()}function k(){G("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,G("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,o=n?e:f;m.endEmitted?z(o):l.once("end",o),a.on("unpipe",d);var q=p(l);a.on("drain",q);var r=!1;return l.on("data",g),a._events&&a._events.error?A(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(G("pipe resume"),l.resume()),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var f=y(b.pipes,a);return-1===f?this:(b.pipes.splice(f,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&!this._readableState.endEmitted){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):z(q,this))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var a=this._readableState;return a.flowing||(G("resume"),a.flowing=!0,r(this,a)),this},e.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(G("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(G("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return x(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){G("wrapped _read",b),c&&(c=!1,a.resume())},d},e._fromList=u}).call(this,a("_process"))},{"./_stream_duplex":84,_process:78,buffer:5,"core-util-is":67,events:68,inherits:71,isarray:73,"process-nextick-args":77,"string_decoder/":126,util:3}],87:[function(a,b,c){"use strict";function d(a){this.afterTransform=function(b,c){return e(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length-1?setImmediate:x,z=a("buffer").Buffer;g.WritableState=f;var A=a("core-util-is");A.inherits=a("inherits");var B,C={deprecate:a("util-deprecate")};!function(){try{B=a("stream")}catch(b){}finally{B||(B=a("events").EventEmitter)}}();var z=a("buffer").Buffer;A.inherits(g,B);var D;f.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.defineProperty(f.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var D;g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},g.prototype.write=function(a,b,c){var e=this._writableState,f=!1;return"function"==typeof b&&(c=b,b=null),z.isBuffer(a)?b="buffer":b||(b=e.defaultEncoding),"function"!=typeof c&&(c=d),e.ended?h(this,c):i(this,e,a,c)&&(e.pendingcb++,f=k(this,e,a,b,c)),f},g.prototype.cork=function(){var a=this._writableState;a.corked++},g.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||r(this,a))},g.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+a);this._writableState.defaultEncoding=a},g.prototype._write=function(a,b,c){c(new Error("not implemented"))},g.prototype._writev=null,g.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||v(this,d,c)}}).call(this,a("_process"))},{"./_stream_duplex":84,_process:78,buffer:5,"core-util-is":67,events:68,inherits:71,"process-nextick-args":77,"util-deprecate":142}],89:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":85}],90:[function(a,b,c){var d=function(){try{return a("stream")}catch(b){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=d||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":84,"./lib/_stream_passthrough.js":85,"./lib/_stream_readable.js":86,"./lib/_stream_transform.js":87,"./lib/_stream_writable.js":88}],91:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":87}],92:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":88}],93:[function(a,b,c){"use strict";b.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},{}],94:[function(a,b,c){"use strict";function d(a,b){return!a.auth||b.removeAuth||!a.extra.relation.maximumHost&&b.output!==p.ABSOLUTE?"":a.auth+"@"}function e(a,b){return a.hash?a.hash:""}function f(a,b){return a.host.full&&(a.extra.relation.maximumAuth||b.output===p.ABSOLUTE)?a.host.full:""}function g(a,b){var c="",d=a.path.absolute.string,e=a.path.relative.string,f=o(a,b);if(a.extra.relation.maximumHost||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE)c=d;else if(e.length<=d.length&&b.output===p.SHORTEST||b.output===p.PATH_RELATIVE){if(c=e,""===c){var g=n(a,b)&&!!m(a,b);a.extra.relation.maximumPath&&!f?c="./":!a.extra.relation.overridesQuery||f||g||(c="./")}}else c=d;return"/"!==c||f||!b.removeRootTrailingSlash||a.extra.relation.minimumPort&&b.output!==p.ABSOLUTE||(c=""),c}function h(a,b){return a.port&&!a.extra.portIsDefault&&a.extra.relation.maximumHost?":"+a.port:""}function i(a,b){return n(a,b)?m(a,b):""}function j(a,b){return o(a,b)?a.resource:""}function k(a,b){var c="";return(a.extra.relation.maximumHost||b.output===p.ABSOLUTE)&&(c+=a.extra.relation.minimumScheme&&b.schemeRelative&&b.output!==p.ABSOLUTE?"//":a.scheme+"://"),c}function l(a,b){var c="";return c+=k(a,b),c+=d(a,b),c+=f(a,b),c+=h(a,b),c+=g(a,b),c+=j(a,b),c+=i(a,b),c+=e(a,b)}function m(a,b){var c=b.removeEmptyQueries&&a.extra.relation.minimumPort;return a.query.string[c?"stripped":"full"]}function n(a,b){return!a.extra.relation.minimumQuery||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE}function o(a,b){var c=b.removeDirectoryIndexes&&a.extra.resourceIsIndex,d=a.extra.relation.minimumResource&&b.output!==p.ABSOLUTE&&b.output!==p.ROOT_RELATIVE;return!!a.resource&&!d&&!c}var p=a("./constants");b.exports=l},{"./constants":93}],95:[function(a,b,c){"use strict";function d(a,b){this.options=g(b,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:d.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=i.from(a,this.options,null)}var e=a("./constants"),f=a("./format"),g=a("./options"),h=a("./util/object"),i=a("./parse"),j=a("./relate");d.prototype.relate=function(a,b,c){if(h.isPlainObject(b)?(c=b,b=a,a=null):b||(b=a,a=null),c=g(c,this.options),a=a||c.site,a=i.from(a,c,this.from),!a||!a.href)throw new Error("from value not defined.");if(a.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+a.href);return b=i.to(b,c),b.valid===!1?b.href:(b=j(a,b,c),b=f(b,c))},d.relate=function(a,b,c){return(new d).relate(a,b,c)},h.shallowMerge(d,e),b.exports=d},{"./constants":93,"./format":94,"./options":96,"./parse":99,"./relate":106,"./util/object":108}],96:[function(a,b,c){"use strict";function d(a,b){if(f.isPlainObject(a)){var c={};for(var d in b)b.hasOwnProperty(d)&&(void 0!==a[d]?c[d]=e(a[d],b[d]):c[d]=b[d]);return c}return b}function e(a,b){return b instanceof Object&&a instanceof Object?b instanceof Array&&a instanceof Array?b.concat(a):f.shallowMerge(a,b):a}var f=a("./util/object");b.exports=d},{"./util/object":108}],97:[function(a,b,c){"use strict";function d(a,b){if(b.ignore_www){var c=a.host.full;if(c){var d=c;0===c.indexOf("www.")&&(d=c.substr(4)),a.host.stripped=d}}}b.exports=d},{}],98:[function(a,b,c){"use strict";function d(a){var b=!(a.scheme||a.auth||a.host.full||a.port),c=b&&!a.path.absolute.string,d=c&&!a.resource,e=d&&!a.query.string.full.length,f=e&&!a.hash;a.extra.hrefInfo.minimumPathOnly=b,a.extra.hrefInfo.minimumResourceOnly=c,a.extra.hrefInfo.minimumQueryOnly=d,a.extra.hrefInfo.minimumHashOnly=e,a.extra.hrefInfo.empty=f}b.exports=d},{}],99:[function(a,b,c){"use strict";function d(a,b,c){if(a){var d=e(a,b),f=l.resolveDotSegments(d.path.absolute.array);return d.path.absolute.array=f,d.path.absolute.string="/"+l.join(f),d}return c}function e(a,b){var c=k(a,b);return c.valid===!1?c:(g(c,b),i(c,b),h(c,b),j(c,b),f(c),c)}var f=a("./hrefInfo"),g=a("./host"),h=a("./path"),i=a("./port"),j=a("./query"),k=a("./urlstring"),l=a("../util/path");b.exports={from:d,to:e}},{"../util/path":109,"./host":97,"./hrefInfo":98,"./path":100,"./port":101,"./query":102,"./urlstring":103}],100:[function(a,b,c){"use strict";function d(a,b){var c=!1;return b.directoryIndexes.every(function(b){return b===a?(c=!0,!1):!0}),c}function e(a,b){var c=a.path.absolute.string;if(c){var e=c.lastIndexOf("/");if(e>-1){if(++e-1&&(c=c.toString(),null===a.port&&(a.port=c),a.extra.portIsDefault=a.port===c)}b.exports=d},{}],102:[function(a,b,c){"use strict";function d(a,b){a.query.string.full=e(a.query.object,!1),b.removeEmptyQueries&&(a.query.string.stripped=e(a.query.object,!0))}function e(a,b){var c=0,d="";for(var e in a)if(""!==e&&a.hasOwnProperty(e)){var f=a[e];""===f&&b||(d+=1===++c?"?":"&",e=encodeURIComponent(e),d+=""!==f?e+"="+encodeURIComponent(f).replace(/%20/g,"+"):e)}return d}b.exports=d},{}],103:[function(a,b,c){"use strict";function d(a){var b=a.protocol;return b&&b.indexOf(":")===b.length-1&&(b=b.substr(0,b.length-1)),a.host={full:a.hostname,stripped:null},a.path={absolute:{array:null,string:a.pathname},relative:{array:null,string:null -}},a.query={object:a.query,string:{full:null,stripped:null}},a.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===a.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:a.slashes},a.resource=null,a.scheme=b,delete a.hostname,delete a.pathname,delete a.protocol,delete a.search,delete a.slashes,a}function e(a,b){var c=!0;return b.rejectedSchemes.every(function(b){return c=!(0===a.indexOf(b+":"))}),c}function f(a,b){return e(a,b)?d(g(a,!0,b.slashesDenoteHost)):{href:a,valid:!1}}var g=a("url").parse;b.exports=f},{url:140}],104:[function(a,b,c){"use strict";function d(a,b,c){h.upToPath(a,b,c),a.extra.relation.minimumScheme&&(a.scheme=b.scheme),a.extra.relation.minimumAuth&&(a.auth=b.auth),a.extra.relation.minimumHost&&(a.host=i.clone(b.host)),a.extra.relation.minimumPort&&f(a,b),a.extra.relation.minimumScheme&&e(a,b),h.pathOn(a,b,c),a.extra.relation.minimumResource&&g(a,b),a.extra.relation.minimumQuery&&(a.query=i.clone(b.query)),a.extra.relation.minimumHash&&(a.hash=b.hash)}function e(a,b){if(a.extra.relation.maximumHost||!a.extra.hrefInfo.minimumResourceOnly){var c=a.path.absolute.array,d="/";c?(a.extra.hrefInfo.minimumPathOnly&&0!==a.path.absolute.string.indexOf("/")&&(c=b.path.absolute.array.concat(c)),c=j.resolveDotSegments(c),d+=j.join(c)):c=[],a.path.absolute.array=c,a.path.absolute.string=d}else a.path=i.clone(b.path)}function f(a,b){a.port=b.port,a.extra.portIsDefault=b.extra.portIsDefault}function g(a,b){a.resource=b.resource,a.extra.resourceIsIndex=b.extra.resourceIsIndex}var h=a("./findRelation"),i=a("../util/object"),j=a("../util/path");b.exports=d},{"../util/object":108,"../util/path":109,"./findRelation":105}],105:[function(a,b,c){"use strict";function d(a,b,c){var d=a.extra.hrefInfo.minimumPathOnly,e=a.scheme===b.scheme||!a.scheme,f=e&&(a.auth===b.auth||c.removeAuth||d),g=c.ignore_www?"stripped":"full",h=f&&(a.host[g]===b.host[g]||d),i=h&&(a.port===b.port||d);a.extra.relation.minimumScheme=e,a.extra.relation.minimumAuth=f,a.extra.relation.minimumHost=h,a.extra.relation.minimumPort=i,a.extra.relation.maximumScheme=!e||e&&!f,a.extra.relation.maximumAuth=!e||e&&!h,a.extra.relation.maximumHost=!e||e&&!i}function e(a,b,c){var d=a.extra.hrefInfo.minimumQueryOnly,e=a.extra.hrefInfo.minimumHashOnly,f=a.extra.hrefInfo.empty,g=a.extra.relation.minimumPort,h=a.extra.relation.minimumScheme,i=g&&a.path.absolute.string===b.path.absolute.string,j=a.resource===b.resource||!a.resource&&b.extra.resourceIsIndex||c.removeDirectoryIndexes&&a.extra.resourceIsIndex&&!b.resource,k=i&&(j||d||e||f),l=c.removeEmptyQueries?"stripped":"full",m=a.query.string[l],n=b.query.string[l],o=k&&!!m&&m===n||(e||f)&&!a.extra.hrefInfo.separatorOnlyQuery,p=o&&a.hash===b.hash;a.extra.relation.minimumPath=i,a.extra.relation.minimumResource=k,a.extra.relation.minimumQuery=o,a.extra.relation.minimumHash=p,a.extra.relation.maximumPort=!h||h&&!i,a.extra.relation.maximumPath=!h||h&&!k,a.extra.relation.maximumResource=!h||h&&!o,a.extra.relation.maximumQuery=!h||h&&!p,a.extra.relation.maximumHash=!h||h&&!p,a.extra.relation.overridesQuery=i&&a.extra.relation.maximumResource&&!o&&!!n}b.exports={pathOn:e,upToPath:d}},{}],106:[function(a,b,c){"use strict";function d(a,b,c){return e(b,a,c),f(b,a,c),b}var e=a("./absolutize"),f=a("./relativize");b.exports=d},{"./absolutize":104,"./relativize":107}],107:[function(a,b,c){"use strict";function d(a,b){var c=[],d=!0,e=-1;return b.forEach(function(b,f){d&&(a[f]!==b?d=!1:e=f),d||c.push("..")}),a.forEach(function(a,b){b>e&&c.push(a)}),c}function e(a,b,c){if(a.extra.relation.minimumScheme){var e=d(a.path.absolute.array,b.path.absolute.array);a.path.relative.array=e,a.path.relative.string=f.join(e)}}var f=a("../util/path");b.exports=e},{"../util/path":109}],108:[function(a,b,c){"use strict";function d(a){if(a instanceof Object){var b=a instanceof Array?[]:{};for(var c in a)a.hasOwnProperty(c)&&(b[c]=d(a[c]));return b}return a}function e(a){return!!a&&"object"==typeof a&&a.constructor===Object}function f(a,b){if(a instanceof Object&&b instanceof Object)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}b.exports={clone:d,isPlainObject:e,shallowMerge:f}},{}],109:[function(a,b,c){"use strict";function d(a){return a.length?a.join("/")+"/":""}function e(a){var b=[];return a.forEach(function(a){".."!==a?"."!==a&&b.push(a):b.length&&b.splice(b.length-1,1)}),b}b.exports={join:d,resolveDotSegments:e}},{}],110:[function(a,b,c){c.SourceMapGenerator=a("./source-map/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./source-map/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":117,"./source-map/source-map-generator":118,"./source-map/source-node":119}],111:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(){this._array=[],this._set={}}var e=a("./util");d.fromArray=function(a,b){for(var c=new d,e=0,f=a.length;f>e;e++)c.add(a[e],b);return c},d.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},d.prototype.add=function(a,b){var c=this.has(a),d=this._array.length;c&&!b||this._array.push(a),c||(this._set[e.toSetString(a)]=d)},d.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this._set,e.toSetString(a))},d.prototype.indexOf=function(a){if(this.has(a))return this._set[e.toSetString(a)];throw new Error('"'+a+'" is not in the set.')},d.prototype.at=function(a){if(a>=0&&aa?(-a<<1)+1:(a<<1)+0}function e(a){var b=1===(1&a),c=a>>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},b.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),-1===h)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<=0&&a=b&&c>=a?a-b:a>=d&&e>=a?a-d+j:a>=f&&g>=a?a-f+k:a==h?62:a==i?63:-1}})},{amdefine:1}],114:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,c,e,f,g,h){var i=Math.floor((c-a)/2)+a,j=g(e,f[i],!0);return 0===j?i:j>0?c-i>1?d(i,c,e,f,g,h):h==b.LEAST_UPPER_BOUND?c1?d(a,i,e,f,g,h):h==b.LEAST_UPPER_BOUND?i:0>a?-1:a}b.GREATEST_LOWER_BOUND=1,b.LEAST_UPPER_BOUND=2,b.search=function(a,c,e,f){if(0===c.length)return-1;var g=d(-1,c.length,a,c,e,f||b.GREATEST_LOWER_BOUND);if(0>g)return-1;for(;g-1>=0&&0===e(c[g],c[g-1],!0);)--g;return g}})},{amdefine:1}],115:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},b.MappingList=e})},{"./util":120,amdefine:1}],116:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(g>c){var h=e(c,g),i=c-1;d(a,h,g);for(var j=a[g],k=c;g>k;k++)b(a[k],j)<=0&&(i+=1,d(a,i,k));d(a,i+1,k);var l=i+1;f(a,b,c,l-1),f(a,b,l+1,g)}}b.quickSort=function(a,b){f(a,b,0,a.length-1)}})},{amdefine:1}],117:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a){var b=a;return"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,""))),null!=b.sections?new g(b):new e(b)}function e(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),d=h.getArg(b,"sources"),e=h.getArg(b,"names",[]),f=h.getArg(b,"sourceRoot",null),g=h.getArg(b,"sourcesContent",null),i=h.getArg(b,"mappings"),k=h.getArg(b,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);d=d.map(h.normalize),this._names=j.fromArray(e,!0),this._sources=j.fromArray(d,!0),this.sourceRoot=f,this.sourcesContent=g,this._mappings=i,this.file=k}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function g(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),e=h.getArg(b,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new j,this._names=new j;var f={line:-1,column:0};this._sections=e.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var b=h.getArg(a,"offset"),c=h.getArg(b,"line"),e=h.getArg(b,"column");if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},b.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;n>m;m++){var o=g[m],p=new f;p.generatedLine=o.generatedLine,p.generatedColumn=o.generatedColumn,o.source&&(p.source=d.indexOf(o.source),p.originalLine=o.originalLine,p.originalColumn=o.originalColumn,o.name&&(p.name=c.indexOf(o.name)),k.push(p)),i.push(p)}return l(b.__originalMappings,h.compareByOriginalPositions),b},e.prototype._version=3,Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=this.sourceRoot?h.join(this.sourceRoot,a):a},this)}}),e.prototype._parseMappings=function(a,b){for(var c,d,e,g,i,j=1,m=0,n=0,o=0,p=0,q=0,r=a.length,s=0,t={},u={},v=[],w=[];r>s;)if(";"===a.charAt(s))j++,s++,m=0;else if(","===a.charAt(s))s++;else{for(c=new f,c.generatedLine=j,g=s;r>g&&!this._charIsMappingSeparator(a,g);g++);if(d=a.slice(s,g),e=t[d])s+=d.length;else{for(e=[];g>s;)k.decode(a,s,u),i=u.value,s=u.rest,e.push(i);if(2===e.length)throw new Error("Found a source, but no line and column");if(3===e.length)throw new Error("Found a source and line, but no column");t[d]=e}c.generatedColumn=m+e[0],m=c.generatedColumn,e.length>1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},b.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b=0,c=1,d=0,g=0,h=0,i=0,j="",k=this._mappings.toArray(),l=0,m=k.length;m>l;l++){if(a=k[l],a.generatedLine!==c)for(b=0;a.generatedLine!==c;)j+=";",c++;else if(l>0){if(!f.compareByGeneratedPositionsInflated(a,k[l-1]))continue;j+=","}j+=e.encode(a.generatedColumn-b),b=a.generatedColumn,null!=a.source&&(j+=e.encode(this._sources.indexOf(a.source)-i),i=this._sources.indexOf(a.source),j+=e.encode(a.originalLine-1-g),g=a.originalLine-1,j+=e.encode(a.originalColumn-d),d=a.originalColumn,null!=a.name&&(j+=e.encode(this._names.indexOf(a.name)-h),h=this._names.indexOf(a.name)))}return j},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},b.SourceMapGenerator=d})},{"./array-set":111,"./base64-vlq":112,"./mapping-list":115,"./util":120,amdefine:1}],119:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){for(var b,c=0,d=this.children.length;d>c;c++)b=this.children[c],b[i]?b.walk(a):""!==b&&a(b,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(a){var b,c,d=this.children.length;if(d>0){for(b=[],c=0;d-1>c;c++)b.push(this.children[c]),b.push(a);b.push(this.children[c]),this.children=b}return this},d.prototype.replaceRight=function(a,b){var c=this.children[this.children.length-1];return c[i]?c.replaceRight(a,b):"string"==typeof c?this.children[this.children.length-1]=c.replace(a,b):this.children.push("".replace(a,b)),this},d.prototype.setSourceContent=function(a,b){this.sourceContents[f.toSetString(a)]=b},d.prototype.walkSourceContents=function(a){for(var b=0,c=this.children.length;c>b;b++)this.children[b][i]&&this.children[b].walkSourceContents(a);for(var d=Object.keys(this.sourceContents),b=0,c=d.length;c>b;b++)a(f.fromSetString(d[b]),this.sourceContents[d[b]])},d.prototype.toString=function(){var a="";return this.walk(function(b){a+=b}),a},d.prototype.toStringWithSourceMap=function(a){var b={code:"",line:1,column:0},c=new e(a),d=!1,f=null,g=null,i=null,j=null;return this.walk(function(a,e){b.code+=a,null!==e.source&&null!==e.line&&null!==e.column?(f===e.source&&g===e.line&&i===e.column&&j===e.name||c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name}),f=e.source,g=e.line,i=e.column,j=e.name,d=!0):d&&(c.addMapping({generated:{line:b.line,column:b.column}}),f=null,d=!1);for(var k=0,l=a.length;l>k;k++)a.charCodeAt(k)===h?(b.line++,b.column=0,k+1===l?(f=null,d=!1):d&&c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name})):b.column++}),this.walkSourceContents(function(a,b){c.setSourceContent(a,b)}),{code:b.code,map:c}},b.SourceNode=d})},{"./source-map-generator":118,"./util":120,amdefine:1}],120:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw new Error('"'+b+'" is a required argument.')}function e(a){var b=a.match(p);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}function f(a){var b="";return a.scheme&&(b+=a.scheme+":"),b+="//",a.auth&&(b+=a.auth+"@"),a.host&&(b+=a.host),a.port&&(b+=":"+a.port),a.path&&(b+=a.path),b}function g(a){var b=a,c=e(a);if(c){if(!c.path)return a;b=c.path}for(var d,g="/"===b.charAt(0),h=b.split(/\/+/),i=0,j=h.length-1;j>=0;j--)d=h[j],"."===d?h.splice(j,1):".."===d?i++:i>0&&(""===d?(h.splice(j+1,i),i=0):(h.splice(j,2),i--));return b=h.join("/"),""===b&&(b=g?"/":"."),c?(c.path=b,f(c)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(q))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return"$"+a}function k(a){return a.substr(1)}function l(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function m(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function n(a,b){return a===b?0:a>b?1:-1}function o(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=n(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:n(a.name,b.name)))))}b.getArg=d;var p=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;b.urlParse=e,b.urlGenerate=f,b.normalize=g,b.join=h,b.relative=i,b.toSetString=j,b.fromSetString=k,b.compareByOriginalPositions=l,b.compareByGeneratedPositionsDeflated=m,b.compareByGeneratedPositionsInflated=o})},{amdefine:1}],121:[function(a,b,c){function d(){e.call(this)}b.exports=d;var e=a("events").EventEmitter,f=a("inherits");f(d,e),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a}},{events:68,inherits:71, -"readable-stream/duplex.js":83,"readable-stream/passthrough.js":89,"readable-stream/readable.js":90,"readable-stream/transform.js":91,"readable-stream/writable.js":92}],122:[function(a,b,c){(function(b){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,c){a="string"==typeof a?g.parse(a):e(a);var f=-1===b.location.protocol.search(/^https?:$/)?"http:":"",h=a.protocol||f,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),a.url=(i?h+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new d(a);return c&&l.on("response",c),l},h.get=function(a,b){var c=h.request(a,b);return c.end(),c},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":124,"builtin-status-codes":6,url:140,xtend:146}],123:[function(a,b,c){(function(a){function b(a){try{return f.responseType=a,f.responseType===a}catch(b){}return!1}function d(a){return"function"==typeof a}c.fetch=d(a.fetch)&&d(a.ReadableByteStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var f=new a.XMLHttpRequest;f.open("GET",a.location.host?"/":"https://example.com");var g="undefined"!=typeof a.ArrayBuffer,h=g&&d(a.ArrayBuffer.prototype.slice);c.arraybuffer=g&&b("arraybuffer"),c.msstream=!c.fetch&&h&&b("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&g&&b("moz-chunked-arraybuffer"),c.overrideMimeType=d(f.overrideMimeType),c.vbArray=d(a.VBArray),f=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],124:[function(a,b,c){(function(c,d,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{var b=a.status;return null!==b&&0!==b}catch(c){return!1}}var h=a("./capability"),i=a("inherits"),j=a("./response"),k=a("stream"),l=a("to-arraybuffer"),m=j.IncomingMessage,n=j.readyStates,o=b.exports=function(a){var b=this;k.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(c){b.setHeader(c,a.headers[c])});var c;if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=f(c),b.on("finish",function(){b._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===p.indexOf(d)&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var b,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(b=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:b,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var j=a._xhr=new d.XMLHttpRequest;try{j.open(a._opts.method,a._opts.url,!0)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}"responseType"in j&&(j.responseType=a._mode.split(":")[0]),"withCredentials"in j&&(j.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){j.setRequestHeader(g[a].name,g[a].value)}),a._response=null,j.onreadystatechange=function(){switch(j.readyState){case n.LOADING:case n.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(j.onprogress=function(){a._onXHRProgress()}),j.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{j.send(b)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}}}},o.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},o.prototype._connect=function(){var a=this;a._destroyed||(a._response=new m(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},o.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},o.prototype.abort=o.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},o.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),k.Writable.prototype.end.call(d,a,b,c)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":123,"./response":125,_process:78,buffer:5,inherits:71,stream:121,"to-arraybuffer":127}],125:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("inherits"),h=a("stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=c.IncomingMessage=function(a,c,d){function g(){m.read().then(function(a){if(!i._destroyed){if(a.done)return void i.push(null);i.push(new e(a.value)),g()}})}var i=this;if(h.Readable.call(i),i._mode=d,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){b.nextTick(function(){i.emit("close")})}),"fetch"===d){i._fetchResponse=c,i.statusCode=c.status,i.statusMessage=c.statusText;for(var j,k,l=c.headers[Symbol.iterator]();j=(k=l.next()).value,!k.done;)i.headers[j[0].toLowerCase()]=j[1],i.rawHeaders.push(j[0],j[1]);var m=c.body.getReader();g()}else{i._xhr=a,i._pos=0,i.statusCode=a.status,i.statusMessage=a.statusText;var n=a.getAllResponseHeaders().split(/\r?\n/);if(n.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===i.headers[c]&&(i.headers[c]=[]),i.headers[c].push(b[2])):void 0!==i.headers[c]?i.headers[c]+=", "+b[2]:i.headers[c]=b[2],i.rawHeaders.push(b[1],b[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var o=i.rawHeaders["mime-type"];if(o){var p=o.match(/;\s*charset=([^;])(;|$)/);p&&(i._charset=p[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(f){a._mode="text:vbarray";break}if(c.length>a._pos){var g=c.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new e(g.length),j=0;ja._pos&&(a.push(new e(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(c)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":123,_process:78,buffer:5,inherits:71,stream:121}],126:[function(a,b,c){function d(a){if(a&&!i(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a("buffer").Buffer,i=h.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},j=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};j.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:5}],127:[function(a,b,c){var d=a("buffer").Buffer;b.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(d.isBuffer(a)){for(var b=new Uint8Array(a.length),c=a.length,e=0;c>e;e++)b[e]=a[e];return b.buffer}throw new Error("Argument must be a Buffer")}},{buffer:5}],128:[function(a,b,c){function d(){this._array=[],this._set={}}var e=a("./util");d.fromArray=function(a,b){for(var c=new d,e=0,f=a.length;f>e;e++)c.add(a[e],b);return c},d.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},d.prototype.add=function(a,b){var c=e.toSetString(a),d=this._set.hasOwnProperty(c),f=this._array.length;d&&!b||this._array.push(a),d||(this._set[c]=f)},d.prototype.has=function(a){var b=e.toSetString(a);return this._set.hasOwnProperty(b)},d.prototype.indexOf=function(a){var b=e.toSetString(a);if(this._set.hasOwnProperty(b))return this._set[b];throw new Error('"'+a+'" is not in the set.')},d.prototype.at=function(a){if(a>=0&&aa?(-a<<1)+1:(a<<1)+0}function e(a){var b=1===(1&a),c=a>>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},c.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),-1===h)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<=0&&a=b&&c>=a?a-b:a>=d&&e>=a?a-d+j:a>=f&&g>=a?a-f+k:a==h?62:a==i?63:-1}},{}],131:[function(a,b,c){function d(a,b,e,f,g,h){var i=Math.floor((b-a)/2)+a,j=g(e,f[i],!0);return 0===j?i:j>0?b-i>1?d(i,b,e,f,g,h):h==c.LEAST_UPPER_BOUND?b1?d(a,i,e,f,g,h):h==c.LEAST_UPPER_BOUND?i:0>a?-1:a}c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.search=function(a,b,e,f){if(0===b.length)return-1;var g=d(-1,b.length,a,b,e,f||c.GREATEST_LOWER_BOUND);if(0>g)return-1;for(;g-1>=0&&0===e(b[g],b[g-1],!0);)--g;return g}},{}],132:[function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},c.MappingList=e},{"./util":137}],133:[function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(g>c){var h=e(c,g),i=c-1;d(a,h,g);for(var j=a[g],k=c;g>k;k++)b(a[k],j)<=0&&(i+=1,d(a,i,k));d(a,i+1,k);var l=i+1;f(a,b,c,l-1),f(a,b,l+1,g)}}c.quickSort=function(a,b){f(a,b,0,a.length-1)}},{}],134:[function(a,b,c){function d(a){var b=a;return"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,""))),null!=b.sections?new g(b):new e(b)}function e(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),d=h.getArg(b,"sources"),e=h.getArg(b,"names",[]),f=h.getArg(b,"sourceRoot",null),g=h.getArg(b,"sourcesContent",null),i=h.getArg(b,"mappings"),k=h.getArg(b,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);d=d.map(h.normalize).map(function(a){return f&&h.isAbsolute(f)&&h.isAbsolute(a)?h.relative(f,a):a}),this._names=j.fromArray(e,!0),this._sources=j.fromArray(d,!0),this.sourceRoot=f,this.sourcesContent=g,this._mappings=i,this.file=k}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function g(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),e=h.getArg(b,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new j,this._names=new j;var f={line:-1,column:0};this._sections=e.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var b=h.getArg(a,"offset"),c=h.getArg(b,"line"),e=h.getArg(b,"column");if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},c.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;n>m;m++){var o=g[m],p=new f;p.generatedLine=o.generatedLine,p.generatedColumn=o.generatedColumn,o.source&&(p.source=d.indexOf(o.source),p.originalLine=o.originalLine,p.originalColumn=o.originalColumn,o.name&&(p.name=c.indexOf(o.name)),k.push(p)),i.push(p)}return l(b.__originalMappings,h.compareByOriginalPositions),b},e.prototype._version=3,Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=this.sourceRoot?h.join(this.sourceRoot,a):a},this)}}),e.prototype._parseMappings=function(a,b){for(var c,d,e,g,i,j=1,m=0,n=0,o=0,p=0,q=0,r=a.length,s=0,t={},u={},v=[],w=[];r>s;)if(";"===a.charAt(s))j++,s++,m=0;else if(","===a.charAt(s))s++;else{for(c=new f,c.generatedLine=j,g=s;r>g&&!this._charIsMappingSeparator(a,g);g++);if(d=a.slice(s,g),e=t[d])s+=d.length;else{for(e=[];g>s;)k.decode(a,s,u),i=u.value,s=u.rest,e.push(i);if(2===e.length)throw new Error("Found a source, but no line and column");if(3===e.length)throw new Error("Found a source and line, but no column");t[d]=e}c.generatedColumn=m+e[0],m=c.generatedColumn,e.length>1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},c.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b,c,d=0,g=1,h=0,i=0,j=0,k=0,l="",m=this._mappings.toArray(),n=0,o=m.length;o>n;n++){if(a=m[n],a.generatedLine!==g)for(d=0;a.generatedLine!==g;)l+=";",g++;else if(n>0){if(!f.compareByGeneratedPositionsInflated(a,m[n-1]))continue;l+=","}l+=e.encode(a.generatedColumn-d),d=a.generatedColumn,null!=a.source&&(c=this._sources.indexOf(a.source),l+=e.encode(c-k),k=c,l+=e.encode(a.originalLine-1-i),i=a.originalLine-1,l+=e.encode(a.originalColumn-h),h=a.originalColumn,null!=a.name&&(b=this._names.indexOf(a.name),l+=e.encode(b-j),j=b))}return l},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},c.SourceMapGenerator=d},{"./array-set":128,"./base64-vlq":129,"./mapping-list":132,"./util":137}],136:[function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){ -for(var b,c=0,d=this.children.length;d>c;c++)b=this.children[c],b[i]?b.walk(a):""!==b&&a(b,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(a){var b,c,d=this.children.length;if(d>0){for(b=[],c=0;d-1>c;c++)b.push(this.children[c]),b.push(a);b.push(this.children[c]),this.children=b}return this},d.prototype.replaceRight=function(a,b){var c=this.children[this.children.length-1];return c[i]?c.replaceRight(a,b):"string"==typeof c?this.children[this.children.length-1]=c.replace(a,b):this.children.push("".replace(a,b)),this},d.prototype.setSourceContent=function(a,b){this.sourceContents[f.toSetString(a)]=b},d.prototype.walkSourceContents=function(a){for(var b=0,c=this.children.length;c>b;b++)this.children[b][i]&&this.children[b].walkSourceContents(a);for(var d=Object.keys(this.sourceContents),b=0,c=d.length;c>b;b++)a(f.fromSetString(d[b]),this.sourceContents[d[b]])},d.prototype.toString=function(){var a="";return this.walk(function(b){a+=b}),a},d.prototype.toStringWithSourceMap=function(a){var b={code:"",line:1,column:0},c=new e(a),d=!1,f=null,g=null,i=null,j=null;return this.walk(function(a,e){b.code+=a,null!==e.source&&null!==e.line&&null!==e.column?(f===e.source&&g===e.line&&i===e.column&&j===e.name||c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name}),f=e.source,g=e.line,i=e.column,j=e.name,d=!0):d&&(c.addMapping({generated:{line:b.line,column:b.column}}),f=null,d=!1);for(var k=0,l=a.length;l>k;k++)a.charCodeAt(k)===h?(b.line++,b.column=0,k+1===l?(f=null,d=!1):d&&c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name})):b.column++}),this.walkSourceContents(function(a,b){c.setSourceContent(a,b)}),{code:b.code,map:c}},c.SourceNode=d},{"./source-map-generator":135,"./util":137}],137:[function(a,b,c){function d(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw new Error('"'+b+'" is a required argument.')}function e(a){var b=a.match(p);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}function f(a){var b="";return a.scheme&&(b+=a.scheme+":"),b+="//",a.auth&&(b+=a.auth+"@"),a.host&&(b+=a.host),a.port&&(b+=":"+a.port),a.path&&(b+=a.path),b}function g(a){var b=a,d=e(a);if(d){if(!d.path)return a;b=d.path}for(var g,h=c.isAbsolute(b),i=b.split(/\/+/),j=0,k=i.length-1;k>=0;k--)g=i[k],"."===g?i.splice(k,1):".."===g?j++:j>0&&(""===g?(i.splice(k+1,j),j=0):(i.splice(k,2),j--));return b=i.join("/"),""===b&&(b=h?"/":"."),d?(d.path=b,f(d)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(q))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return"$"+a}function k(a){return a.substr(1)}function l(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function m(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function n(a,b){return a===b?0:a>b?1:-1}function o(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=n(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:n(a.name,b.name)))))}c.getArg=d;var p=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;c.urlParse=e,c.urlGenerate=f,c.normalize=g,c.join=h,c.isAbsolute=function(a){return"/"===a.charAt(0)||!!a.match(p)},c.relative=i,c.toSetString=j,c.fromSetString=k,c.compareByOriginalPositions=l,c.compareByGeneratedPositionsDeflated=m,c.compareByGeneratedPositionsInflated=o},{}],138:[function(a,b,c){c.SourceMapGenerator=a("./lib/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./lib/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./lib/source-node").SourceNode},{"./lib/source-map-consumer":134,"./lib/source-map-generator":135,"./lib/source-node":136}],139:[function(a,b,c){function d(a){for(var b=Object.create(null),c=0;c=0;)if(b[c]==a)return!0;return!1}function h(a,b){for(var c=0,d=b.length;d>c;++c)if(a(b[c]))return b[c]}function i(a,b){if(0>=b)return"";if(1==b)return a;var c=i(a,b>>1);return c+=c,1&b&&(c+=a),c}function j(a,b){Error.call(this,a),this.msg=a,this.defs=b}function k(a,b,c){a===!0&&(a={});var d=a||{};if(c)for(var e in d)d.hasOwnProperty(e)&&!b.hasOwnProperty(e)&&j.croak("`"+e+"` is not a supported option",b);for(var e in b)b.hasOwnProperty(e)&&(d[e]=a&&a.hasOwnProperty(e)?a[e]:b[e]);return d}function l(a,b){var c=0;for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d],c++);return c}function m(){}function n(a,b){a.indexOf(b)<0&&a.push(b)}function o(a,b){return a.replace(/\{(.+?)\}/g,function(a,c){return b[c]})}function p(a,b){for(var c=a.length;--c>=0;)a[c]===b&&a.splice(c,1)}function q(a,b){function c(a,c){for(var d=[],e=0,f=0,g=0;e=0})}function t(a){function b(a){if(1==a.length)return c+="return str === "+JSON.stringify(a[0])+";";c+="switch(str){";for(var b=0;b3){d.sort(function(a,b){return b.length-a.length}),c+="switch(str.length){";for(var e=0;e=0;)if(!b(a[c]))return!1;return!0}function v(){this._values=Object.create(null),this._size=0}function w(a,b,d,e){arguments.length<4&&(e=_),b=b?b.split(/\s+/):[];var f=b;e&&e.PROPS&&(b=b.concat(e.PROPS));for(var g="return function AST_"+a+"(props){ if (props) { ",h=b.length;--h>=0;)g+="this."+b[h]+" = props."+b[h]+";";var i=e&&new e;(i&&i.initialize||d&&d.initialize)&&(g+="this.initialize();"),g+="}}";var j=new Function(g)();if(i&&(j.prototype=i,j.BASE=e),e&&e.SUBCLASSES.push(j),j.prototype.CTOR=j,j.PROPS=b||null,j.SELF_PROPS=f,j.SUBCLASSES=[],a&&(j.prototype.TYPE=j.TYPE=a),d)for(h in d)d.hasOwnProperty(h)&&(/^\$/.test(h)?j[h.substr(1)]=d[h]:j.prototype[h]=d[h]);return j.DEFMETHOD=function(a,b){this.prototype[a]=b},c["AST_"+a]=j,j}function x(a,b){a.body instanceof aa?a.body._walk(b):a.body.forEach(function(a){a._walk(b)})}function y(a){this.visit=a,this.stack=[],this.directives=Object.create(null)}function z(a){return a>=97&&122>=a||a>=65&&90>=a||a>=170&&Rb.letter.test(String.fromCharCode(a))}function A(a){return a>=48&&57>=a}function B(a){return A(a)||z(a)}function C(a){return Rb.digit.test(String.fromCharCode(a))}function D(a){return Rb.non_spacing_mark.test(a)||Rb.space_combining_mark.test(a)}function E(a){return Rb.connector_punctuation.test(a)}function F(a){return!Hb(a)&&/^[a-z_$][a-z0-9_$]*$/i.test(a)}function G(a){return 36==a||95==a||z(a)}function H(a){var b=a.charCodeAt(0);return G(b)||A(b)||8204==b||8205==b||D(a)||E(a)||C(b)}function I(a){return/^[a-z_$][a-z0-9_$]*$/i.test(a)}function J(a){if(Kb.test(a))return parseInt(a.substr(2),16);if(Lb.test(a))return parseInt(a.substr(1),8);var b=parseFloat(a);return b==a?b:void 0}function K(a,b,c,d,e){this.message=a,this.filename=b,this.line=c,this.col=d,this.pos=e,this.stack=(new Error).stack}function L(a,b,c,d,e){throw new K(a,b,c,d,e)}function M(a,b,c){return a.type==b&&(null==c||a.value==c)}function N(a,b,c,d){function e(){return z.text.charAt(z.pos)}function f(a,b){var c=z.text.charAt(z.pos++);if(a&&!c)throw Sb;return"\r\n\u2028\u2029".indexOf(c)>=0?(z.newline_before=z.newline_before||!b,++z.line,z.col=0,b||"\r"!=c||"\n"!=e()||(++z.pos,c="\n")):++z.col,c}function g(a){for(;a-- >0;)f()}function h(a){return z.text.substr(z.pos,a.length)==a}function i(a,b){var c=z.text.indexOf(a,z.pos);if(b&&-1==c)throw Sb;return c}function j(){z.tokline=z.line,z.tokcol=z.col,z.tokpos=z.pos}function k(c,d,e){z.regex_allowed="operator"==c&&!Ub(d)||"keyword"==c&&Ib(d)||"punc"==c&&Ob(d),C="punc"==c&&"."==d;var f={type:c,value:d,line:z.tokline,col:z.tokcol,pos:z.tokpos,endline:z.line,endcol:z.col,endpos:z.pos,nlb:z.newline_before,file:b};if(/^(?:num|string|regexp)$/i.test(c)&&(f.raw=a.substring(f.pos,f.endpos)),!e){f.comments_before=z.comments_before,z.comments_before=[];for(var g=0,h=f.comments_before.length;h>g;g++)f.nlb=f.nlb||f.comments_before[g].nlb}return z.newline_before=!1,new $(f)}function l(){for(var a;Nb(a=e())||"\u2028"==a||"\u2029"==a;)f()}function m(a){for(var b,c="",d=0;(b=e())&&a(b,d++);)c+=f();return c}function n(a){L(a,b,z.tokline,z.tokcol,z.tokpos)}function o(a){var b=!1,c=!1,d=!1,e="."==a,f=m(function(f,g){var h=f.charCodeAt(0);switch(h){case 120:case 88:return d?!1:d=!0;case 101:case 69:return d?!0:b?!1:b=c=!0;case 45:return c||0==g&&!a;case 43:return c;case c=!1,46:return e||d||b?!1:e=!0}return B(h)});a&&(f=a+f);var g=J(f);return isNaN(g)?void n("Invalid syntax: "+f):k("num",g)}function p(a){var b=f(!0,a);switch(b.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 120:return String.fromCharCode(q(2));case 117:return String.fromCharCode(q(4));case 10:return"";case 13:if("\n"==e())return f(!0,a),""}return b}function q(a){for(var b=0;a>0;--a){var c=parseInt(f(!0),16);isNaN(c)&&n("Invalid hex-character pattern in string"),b=b<<4|c}return b}function r(a){var b,c=z.regex_allowed,d=i("\n");return-1==d?(b=z.text.substr(z.pos),z.pos=z.text.length):(b=z.text.substring(z.pos,d),z.pos=d),z.col=z.tokcol+(z.pos-z.tokpos),z.comments_before.push(k(a,b,!0)),z.regex_allowed=c,y()}function s(){for(var a,b,c=!1,d="",g=!1;null!=(a=e());)if(c)"u"!=a&&n("Expecting UnicodeEscapeSequence -- uXXXX"),a=p(),H(a)||n("Unicode char: "+a.charCodeAt(0)+" is not valid in identifier"),d+=a,c=!1;else if("\\"==a)g=c=!0,f();else{if(!H(a))break;d+=f()}return Fb(d)&&g&&(b=d.charCodeAt(0).toString(16).toUpperCase(),d="\\u"+"0000".substr(b.length)+b+d.slice(1)),d}function t(a){function b(a){if(!e())return a;var c=a+e();return Mb(c)?(f(),b(c)):a}return k("operator",b(a||f()))}function u(){switch(f(),e()){case"/":return f(),r("comment1");case"*":return f(),E()}return z.regex_allowed?F(""):t("/")}function v(){return f(),A(e().charCodeAt(0))?o("."):k("punc",".")}function w(){var a=s();return C?k("name",a):Gb(a)?k("atom",a):Fb(a)?Mb(a)?k("operator",a):k("keyword",a):k("name",a)}function x(a,b){return function(c){try{return b(c)}catch(d){if(d!==Sb)throw d;n(a)}}}function y(a){if(null!=a)return F(a);if(l(),j(),c){if(h("")&&z.newline_before)return g(3),r("comment4")}var b=e();if(!b)return k("eof");var i=b.charCodeAt(0);switch(i){case 34:case 39:return D(b);case 46:return v();case 47:return u()}return A(i)?o():Pb(b)?k("punc",f()):Jb(b)?t():92==i||G(i)?w():d&&0==z.pos&&h("#!")?(g(2),r("comment5")):void n("Unexpected character '"+b+"'")}var z={text:a,filename:b,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[]},C=!1,D=x("Unterminated string constant",function(a){for(var b=f(),c="";;){var d=f(!0,!0);if("\\"==d){var e=0,g=null;d=m(function(a){if(a>="0"&&"7">=a){if(!g)return g=a,++e;if("3">=g&&2>=e)return++e;if(g>="4"&&1>=e)return++e}return!1}),d=e>0?String.fromCharCode(parseInt(d,8)):p(!0)}else if("\r\n\u2028\u2029".indexOf(d)>=0)n("Unterminated string constant");else if(d==b)break;c+=d}var h=k("string",c);return h.quote=a,h}),E=x("Unterminated multiline comment",function(){var a=z.regex_allowed,b=i("*/",!0),c=z.text.substring(z.pos,b),d=c.split("\n"),e=d.length;z.pos=b+2,z.line+=e-1,e>1?z.col=d[e-1].length:z.col+=d[e-1].length,z.col+=2;var f=z.newline_before=z.newline_before||c.indexOf("\n")>=0;return z.comments_before.push(k("comment2",c,!0)),z.regex_allowed=a,z.newline_before=f,y()}),F=x("Unterminated regular expression",function(a){for(var b,c=!1,d=!1;b=f(!0);)if(c)a+="\\"+b,c=!1;else if("["==b)d=!0,a+=b;else if("]"==b&&d)d=!1,a+=b;else{if("/"==b&&!d)break;"\\"==b?c=!0:a+=b}var e=s();try{return k("regexp",new RegExp(a,e))}catch(g){n(g.message)}});return y.context=function(a){return a&&(z=a),z},y}function O(a,b){function c(a,b){return M(S.token,a,b)}function d(){return S.peeked||(S.peeked=S.input())}function e(){return S.prev=S.token,S.peeked?(S.token=S.peeked,S.peeked=null):S.token=S.input(),S.in_directives=S.in_directives&&("string"==S.token.type||c("punc",";")),S.token}function f(){return S.prev}function g(a,b,c,d){var e=S.input.context();L(a,e.filename,null!=b?b:e.tokline,null!=c?c:e.tokcol,null!=d?d:e.tokpos)}function i(a,b){g(b,a.line,a.col)}function j(a){null==a&&(a=S.token),i(a,"Unexpected token: "+a.type+" ("+a.value+")")}function l(a,b){return c(a,b)?e():void i(S.token,"Unexpected token "+S.token.type+" «"+S.token.value+"», expected "+a+" «"+b+"»")}function m(a){return l("punc",a)}function n(){return!b.strict&&(S.token.nlb||c("eof")||c("punc","}"))}function o(a){c("punc",";")?e():a||n()||j()}function p(){m("(");var a=qa(!0);return m(")"),a}function q(a){return function(){var b=S.token,c=a(),d=f();return c.start=b,c.end=d,c}}function r(){(c("operator","/")||c("operator","/="))&&(S.peeked=null,S.token=S.input(S.token.value.substr(1)))}function s(){var a=J(ob);h(function(b){return b.name==a.name},S.labels)&&g("Label "+a.name+" defined twice"),m(":"),S.labels.push(a);var b=T();return S.labels.pop(),b instanceof ja||a.references.forEach(function(b){b instanceof Ca&&(b=b.label.start,g("Continue label `"+a.name+"` refers to non-IterationStatement.",b.line,b.col,b.pos))}),new ia({body:b,label:a})}function t(a){return new da({body:(a=qa(!0),o(),a)})}function u(a){var b,c=null;n()||(c=J(qb,!0)),null!=c?(b=h(function(a){return a.name==c.name},S.labels),b||g("Undefined label "+c.name),c.thedef=b):0==S.in_loop&&g(a.TYPE+" not inside a loop or switch"),o();var d=new a({label:c});return b&&b.references.push(d),d}function v(){m("(");var a=null;return!c("punc",";")&&(a=c("keyword","var")?(e(),V(!0)):qa(!0,!0),c("operator","in"))?(a instanceof Ma&&a.definitions.length>1&&g("Only one variable declaration allowed in for..in loop"),e(),x(a)):w(a)}function w(a){m(";");var b=c("punc",";")?null:qa(!0);m(";");var d=c("punc",")")?null:qa(!0);return m(")"),new na({init:a,condition:b,step:d,body:R(T)})}function x(a){var b=a instanceof Ma?a.definitions[0].name:null,c=qa(!0);return m(")"),new oa({init:a,name:b,object:c,body:R(T)})}function y(){var a=p(),b=T(),d=null;return c("keyword","else")&&(e(),d=T()),new Da({condition:a,body:b,alternative:d})}function z(){m("{");for(var a=[];!c("punc","}");)c("eof")&&j(),a.push(T());return e(),a}function A(){m("{");for(var a,b=[],d=null,g=null;!c("punc","}");)c("eof")&&j(),c("keyword","case")?(g&&(g.end=f()),d=[],g=new Ha({start:(a=S.token,e(),a),expression:qa(!0),body:d}),b.push(g),m(":")):c("keyword","default")?(g&&(g.end=f()),d=[],g=new Ga({start:(a=S.token,e(),m(":"),a),body:d}),b.push(g)):(d||j(),d.push(T()));return g&&(g.end=f()),e(),b}function B(){var a=z(),b=null,d=null;if(c("keyword","catch")){var h=S.token;e(),m("(");var i=J(nb);m(")"),b=new Ja({start:h,argname:i,body:z(),end:f()})}if(c("keyword","finally")){var h=S.token;e(),d=new Ka({start:h,body:z(),end:f()})}return b||d||g("Missing catch/finally blocks"),new Ia({body:a,bcatch:b,bfinally:d})}function C(a,b){for(var d=[];d.push(new Oa({start:S.token,name:J(b?jb:ib),value:c("operator","=")?(e(),qa(!1,a)):null,end:f()})),c("punc",",");)e();return d}function D(){var a,b=S.token;switch(b.type){case"name":case"keyword":a=H(pb);break;case"num":a=new ub({start:b,end:b,value:b.value});break;case"string":a=new tb({start:b,end:b,value:b.value,quote:b.quote});break;case"regexp":a=new vb({start:b,end:b,value:b.value});break;case"atom":switch(b.value){case"false":a=new Db({start:b,end:b});break;case"true":a=new Eb({start:b,end:b});break;case"null":a=new xb({start:b,end:b})}break;case"operator":if(!I(b.value))throw new K("Invalid getter/setter name: "+b.value,b.file,b.line,b.col,b.pos);a=H(pb)}return e(),a}function E(a,b,d){for(var f=!0,g=[];!c("punc",a)&&(f?f=!1:m(","),!b||!c("punc",a));)c("punc",",")&&d?g.push(new Ab({start:S.token,end:S.token})):g.push(qa(!1));return e(),g}function F(){var a=S.token;switch(e(),a.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function G(){var a=S.token;switch(e(),a.type){case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function H(a){var b=S.token.value;return new("this"==b?rb:a)({name:String(b),start:S.token,end:S.token})}function J(a,b){if(!c("name"))return b||g("Name expected"),null;var d=H(a);return e(),d}function O(a,b,c){return"++"!=b&&"--"!=b||Q(c)||g("Invalid use of "+b+" operator"),new a({operator:b,expression:c})}function P(a){return ea(aa(!0),0,a)}function Q(a){return b.strict?a instanceof rb?!1:a instanceof Sa||a instanceof fb:!0}function R(a){++S.in_loop;var b=a();return--S.in_loop,b}b=k(b,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var S={input:"string"==typeof a?N(a,b.filename,b.html5_comments,b.shebang):a,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};S.token=e();var T=q(function(){var a;switch(r(),S.token.type){case"string":var h=S.in_directives,i=t();return h&&i.body instanceof tb&&!c("punc",",")?new ca({start:i.body.start,end:i.body.end,quote:i.body.quote,value:i.body.value}):i;case"num":case"regexp":case"operator":case"atom":return t();case"name":return M(d(),"punc",":")?s():t();case"punc":switch(S.token.value){case"{":return new fa({start:S.token,body:z(),end:f()});case"[":case"(":return t();case";":return e(),new ga;default:j()}case"keyword":switch(a=S.token.value,e(),a){case"break":return u(Ba);case"continue":return u(Ca);case"debugger":return o(),new ba;case"do":return new la({body:R(T),condition:(l("keyword","while"),a=p(),o(!0),a)});case"while":return new ma({condition:p(),body:R(T)});case"for":return v();case"function":return U(va);case"if":return y();case"return":return 0!=S.in_function||b.bare_returns||g("'return' outside of function"),new ya({value:c("punc",";")?(e(),null):n()?null:(a=qa(!0),o(),a)});case"switch":return new Ea({expression:p(),body:R(A)});case"throw":return S.token.nlb&&g("Illegal newline after 'throw'"),new za({value:(a=qa(!0),o(),a)});case"try":return B();case"var":return a=V(),o(),a;case"const":return a=W(),o(),a;case"with":return new pa({expression:p(),body:T()});default:j()}}}),U=function(a){var b=a===va,d=c("name")?J(b?lb:mb):null;return b&&!d&&j(),m("("),new a({name:d,argnames:function(a,b){for(;!c("punc",")");)a?a=!1:m(","),b.push(J(kb));return e(),b}(!0,[]),body:function(a,b){++S.in_function,S.in_directives=!0,S.in_loop=0,S.labels=[];var c=z();return--S.in_function,S.in_loop=a,S.labels=b,c}(S.in_loop,S.labels)})},V=function(a){return new Ma({start:f(),definitions:C(a,!1),end:f()})},W=function(){return new Na({start:f(),definitions:C(!1,!0),end:f()})},X=function(a){var b=S.token;l("operator","new");var d,g=Y(!1);return c("punc","(")?(e(),d=E(")")):d=[],_(new Qa({start:b,expression:g,args:d,end:f()}),a)},Y=function(a){if(c("operator","new"))return X(a);var b=S.token;if(c("punc")){switch(b.value){case"(":e();var d=qa(!0);return d.start=b,d.end=S.token,m(")"),_(d,a);case"[":return _(Z(),a);case"{":return _($(),a)}j()}if(c("keyword","function")){e();var g=U(ua);return g.start=b,g.end=f(),_(g,a)}return Yb[S.token.type]?_(D(),a):void j()},Z=q(function(){return m("["),new _a({elements:E("]",!b.strict,!0)})}),$=q(function(){m("{");for(var a=!0,d=[];!c("punc","}")&&(a?a=!1:m(","),b.strict||!c("punc","}"));){var g=S.token,h=g.type,i=F();if("name"==h&&!c("punc",":")){if("get"==i){d.push(new eb({start:g,key:D(),value:U(ta),end:f()}));continue}if("set"==i){d.push(new db({start:g,key:D(),value:U(ta),end:f()}));continue}}m(":"),d.push(new cb({start:g,quote:g.quote,key:i,value:qa(!1),end:f()}))}return e(),new ab({properties:d})}),_=function(a,b){var d=a.start;if(c("punc","."))return e(),_(new Ta({start:d,expression:a,property:G(),end:f()}),b);if(c("punc","[")){e();var g=qa(!0);return m("]"),_(new Ua({start:d,expression:a,property:g,end:f()}),b)}return b&&c("punc","(")?(e(),_(new Pa({start:d,expression:a,args:E(")"),end:f()}),!0)):a},aa=function(a){var b=S.token;if(c("operator")&&Tb(b.value)){e(),r();var d=O(Wa,b.value,aa(a));return d.start=b,d.end=f(),d}for(var g=Y(a);c("operator")&&Ub(S.token.value)&&!S.token.nlb;)g=O(Xa,S.token.value,g),g.start=b,g.end=S.token,e();return g},ea=function(a,b,d){var f=c("operator")?S.token.value:null;"in"==f&&d&&(f=null);var g=null!=f?Wb[f]:null;if(null!=g&&g>b){e();var h=ea(aa(!0),g,d);return ea(new Ya({start:a.start,left:a,operator:f,right:h,end:h.end}),b,d)}return a},ha=function(a){var b=S.token,d=P(a);if(c("operator","?")){e();var g=qa(!1);return m(":"),new Za({start:b,condition:d,consequent:g,alternative:qa(!1,a),end:f()})}return d},ka=function(a){var b=S.token,d=ha(a),h=S.token.value;if(c("operator")&&Vb(h)){if(Q(d))return e(),new $a({start:b,left:d,operator:h,right:ka(a),end:f()});g("Invalid assignment")}return d},qa=function(a,b){var f=S.token,g=ka(b);return a&&c("punc",",")?(e(),new Ra({start:f,car:g,cdr:qa(!0,b),end:d()})):g};return b.expression?qa(!0):function(){for(var a=S.token,d=[];!c("eof");)d.push(T());var e=f(),g=b.toplevel;return g?(g.body=g.body.concat(d),g.end=e):g=new ra({start:a,body:d,end:e}),g}()}function P(a,b){y.call(this),this.before=a,this.after=b}function Q(a,b,c){this.name=c.name,this.orig=[c],this.scope=a,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=b}function R(a){function b(a,b){return a.replace(/[\u0080-\uffff]/g,function(a){var c=a.charCodeAt(0).toString(16);if(c.length<=2&&!b){for(;c.length<2;)c="0"+c;return"\\x"+c}for(;c.length<4;)c="0"+c;return"\\u"+c})}function c(c,d){function e(){return"'"+c.replace(/\x27/g,"\\'")+"'"}function f(){return'"'+c.replace(/\x22/g,'\\"')+'"'}var g=0,h=0;switch(c=c.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(b){switch(b){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\x0B":return a.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case'"':return++g,'"';case"'":return++h,"'";case"\x00":return"\\x00";case"\ufeff":return"\\ufeff"}return b}),a.ascii_only&&(c=b(c)),a.quote_style){case 1:return e();case 2:return f();case 3:return"'"==d?e():f();default:return g>h?e():f()}}function d(b,d){var e=c(b,d);return a.inline_script&&(e=e.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),e=e.replace(/\x3c!--/g,"\\x3c!--"),e=e.replace(/--\x3e/g,"--\\x3e")),e}function e(c){return c=c.toString(),a.ascii_only&&(c=b(c,!0)),c}function f(b){return i(" ",a.indent_start+v-b*a.indent_level)}function g(){return C.charAt(C.length-1)}function h(){a.max_line_len&&w>a.max_line_len&&j("\n")}function j(b){b=String(b);var c=b.charAt(0);if(B&&(B=!1,c&&!(";}".indexOf(c)<0)||/[;]$/.test(C)||(a.semicolons||D(c)?(z+=";",w++,y++):(z+="\n",y++,x++,w=0,/^\s+$/.test(b)&&(B=!0)),a.beautify||(A=!1))),!a.beautify&&a.preserve_line&&L[L.length-1])for(var d=L[L.length-1].start.line;d>x;)z+="\n",y++,x++,w=0,A=!1;if(A){var e=g();(H(e)&&(H(c)||"\\"==c)||/^[\+\-\/]$/.test(c)&&c==e)&&(z+=" ",w++,y++),A=!1}var f=b.split(/\r?\n/),h=f.length-1;x+=h,0==h?w+=f[h].length:w=f[h].length,y+=b.length,C=b,z+=b}function l(){B=!1,j(";")}function n(){return v+a.indent_level}function o(a){var b;return j("{"),I(),G(n(),function(){b=a()}),F(),j("}"),b}function p(a){j("(");var b=a();return j(")"),b}function q(a){j("[");var b=a();return j("]"),b}function r(){j(","),E()}function s(){j(":"),a.space_colon&&E()}function u(){return z}a=k(a,{indent_start:0,indent_level:4,quote_keys:!1,space_colon:!0,ascii_only:!1,unescape_regexps:!1,inline_script:!1,width:80,max_line_len:32e3,beautify:!1,source_map:null,bracketize:!1,semicolons:!0,comments:!1,shebang:!0,preserve_line:!1,screw_ie8:!1,preamble:null,quote_style:0},!0);var v=0,w=0,x=1,y=0,z="",A=!1,B=!1,C=null,D=t("( [ + * / - , ."),E=a.beautify?function(){j(" ")}:function(){A=!0},F=a.beautify?function(b){a.beautify&&j(f(b?.5:0))}:m,G=a.beautify?function(a,b){a===!0&&(a=n());var c=v;v=a;var d=b();return v=c,d}:function(a,b){return b()},I=a.beautify?function(){j("\n")}:h,J=a.beautify?function(){j(";")}:function(){B=!0},K=a.source_map?function(b,c){try{b&&a.source_map.add(b.file||"?",x,w,b.line,b.col,c||"name"!=b.type?c:b.value)}catch(d){_.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:b.file,line:b.line,col:b.col,cline:x,ccol:w,name:c||""})}}:m;a.preamble&&j(a.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"));var L=[];return{get:u,toString:u,indent:F,indentation:function(){return v},current_width:function(){return w-v},should_break:function(){return a.width&&this.current_width()>=a.width},newline:I,print:j,space:E,comma:r,colon:s,last:function(){return C},semicolon:J,force_semicolon:l,to_ascii:b,print_name:function(a){j(e(a))},print_string:function(a,b){j(d(a,b))},next_indent:n,with_indent:G,with_block:o,with_parens:p,with_square:q,add_mapping:K,option:function(b){return a[b]},line:function(){return x},col:function(){return w},pos:function(){return y},push_node:function(a){L.push(a)},pop_node:function(){return L.pop()},stack:function(){return L},parent:function(a){return L[L.length-2-(a||0)]}}}function S(a,b){return this instanceof S?(P.call(this,this.before,this.after),void(this.options=k(a,{sequences:!b,properties:!b,dead_code:!b,drop_debugger:!b,unsafe:!1,unsafe_comps:!1,conditionals:!b,comparisons:!b,evaluate:!b,booleans:!b,loops:!b,unused:!b,hoist_funs:!b,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!b,join_vars:!b,collapse_vars:!1,cascade:!b,side_effects:!b,pure_getters:!1,pure_funcs:null,negate_iife:!b,screw_ie8:!1,drop_console:!1,angular:!1,warnings:!0,global_defs:{}},!0))):new S(a,b)}function T(a){function b(b,e,f,g,h,i){if(d){var j=d.originalPositionFor({line:g,column:h});if(null===j.source)return;b=j.source,g=j.line,h=j.column,i=j.name||i}c.addMapping({generated:{line:e+a.dest_line_diff,column:f},original:{line:g+a.orig_line_diff,column:h},source:b,name:i})}a=k(a,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var c=new X.SourceMapGenerator({file:a.file,sourceRoot:a.root}),d=a.orig&&new X.SourceMapConsumer(a.orig);return{add:b,get:function(){return c},toString:function(){return JSON.stringify(c.toJSON())}}}function U(){function a(a){n(b,a)}var b=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(b){Object.getOwnPropertyNames(b).map(a),b.prototype&&Object.getOwnPropertyNames(b.prototype).map(a)}),b}function V(a,b){function c(a){return o.indexOf(a)>=0?!1:i.indexOf(a)>=0?!1:b.only_cache?j.props.has(a):!/^[0-9.]+$/.test(a)}function d(a){return l&&!l.test(a)?!1:i.indexOf(a)>=0?!1:j.props.has(a)||m.indexOf(a)>=0}function e(a){c(a)&&n(m,a),d(a)||n(o,a)}function f(a){if(!d(a))return a;var b=j.props.get(a);if(!b){do b=Zb(++j.cname);while(!c(b));j.props.set(a,b)}return b}function g(a){var b={};try{!function d(a){a.walk(new y(function(a){if(a instanceof Ra)return d(a.cdr),!0;if(a instanceof tb)return e(a.value),!0;if(a instanceof Za)return d(a.consequent),d(a.alternative),!0;throw b}))}(a)}catch(c){if(c!==b)throw c}}function h(a){return a.transform(new P(function(a){return a instanceof Ra?a.cdr=h(a.cdr):a instanceof tb?a.value=f(a.value):a instanceof Za&&(a.consequent=h(a.consequent),a.alternative=h(a.alternative)),a}))}b=k(b,{reserved:null,cache:null,only_cache:!1,regex:null});var i=b.reserved;null==i&&(i=U());var j=b.cache;null==j&&(j={cname:-1,props:new v});var l=b.regex,m=[],o=[];return a.walk(new y(function(a){a instanceof cb?e(a.key):a instanceof bb?e(a.key.name):a instanceof Ta?this.parent()instanceof $a&&e(a.property):a instanceof Ua&&this.parent()instanceof $a&&g(a.property)})),a.transform(new P(function(a){a instanceof cb?a.key=f(a.key):a instanceof bb?a.key.name=f(a.key.name):a instanceof Ta?a.property=f(a.property):a instanceof Ua&&(a.property=h(a.property))}))}var W=a("util"),X=a("source-map"),Y=c;j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.croak=function(a,b){throw new j(a,b)};var Z=function(){function a(a,f,g){function h(){var h=f(a[i],i),l=h instanceof d;return l&&(h=h.v),h instanceof b?(h=h.v,h instanceof c?k.push.apply(k,g?h.v.slice().reverse():h.v):k.push(h)):h!==e&&(h instanceof c?j.push.apply(j,g?h.v.slice().reverse():h.v):j.push(h)),l}var i,j=[],k=[];if(a instanceof Array)if(g){for(i=a.length;--i>=0&&!h(););j.reverse(),k.reverse()}else for(i=0;i SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},ea),ra=w("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(a){var b=this,c=[],d=[];a.forEach(function(a){var b=a.lastIndexOf(":");c.push(a.substr(0,b)),d.push(a.substr(b+1))});var e="(function("+d.join(",")+"){ '$ORIG'; })("+c.join(",")+")";return e=O(e),e=e.transform(new P(function(a){return a instanceof ca&&"$ORIG"==a.value?Z.splice(b.body):void 0}))},wrap_commonjs:function(a,b){var c=this,d=[];b&&(c.figure_out_scope(),c.walk(new y(function(a){a instanceof hb&&a.definition().global&&(h(function(b){return b.name==a.name},d)||d.push(a))})));var e="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+a+"'] = exports; }({}, (function(){return this}())))";return e=O(e),e=e.transform(new P(function(a){if(a instanceof ca)switch(a.value){case"$ORIG":return Z.splice(c.body);case"$EXPORTS":var b=[];return d.forEach(function(a){b.push(new da({body:new $a({left:new Ua({expression:new pb({name:"exports"}),property:new tb({value:a.name})}),operator:"=",right:new pb(a)})}))}),Z.splice(b)}}))}},qa),sa=w("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(a){return a._visit(this,function(){this.name&&this.name._walk(a),this.argnames.forEach(function(b){b._walk(a)}),x(this,a)})}},qa),ta=w("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},sa),ua=w("Function",null,{$documentation:"A function expression"},sa),va=w("Defun",null,{$documentation:"A function definition"},sa),wa=w("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},aa),xa=w("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(a){return a._visit(this,this.value&&function(){this.value._walk(a)})}},wa),ya=w("Return",null,{$documentation:"A `return` statement"},xa),za=w("Throw",null,{$documentation:"A `throw` statement"},xa),Aa=w("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(a){return a._visit(this,this.label&&function(){this.label._walk(a)})}},wa),Ba=w("Break",null,{$documentation:"A `break` statement"},Aa),Ca=w("Continue",null,{$documentation:"A `continue` statement"},Aa),Da=w("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.body._walk(a),this.alternative&&this.alternative._walk(a)})}},ha),Ea=w("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),x(this,a)})}},ea),Fa=w("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},ea),Ga=w("Default",null,{$documentation:"A `default` switch branch"},Fa),Ha=w("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),x(this,a)})}},Fa),Ia=w("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(a){return a._visit(this,function(){x(this,a),this.bcatch&&this.bcatch._walk(a),this.bfinally&&this.bfinally._walk(a)})}},ea),Ja=w("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(a){return a._visit(this,function(){this.argname._walk(a),x(this,a)})}},ea),Ka=w("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},ea),La=w("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(a){return a._visit(this,function(){this.definitions.forEach(function(b){b._walk(a)})})}},aa),Ma=w("Var",null,{$documentation:"A `var` statement"},La),Na=w("Const",null,{$documentation:"A `const` statement"},La),Oa=w("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(a){return a._visit(this,function(){this.name._walk(a),this.value&&this.value._walk(a)})}}),Pa=w("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.args.forEach(function(b){b._walk(a)})})}}),Qa=w("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Pa),Ra=w("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(a,b){var c=new Ra(a);return c.car=a,c.cdr=b,c},$from_array:function(a){if(0==a.length)return null;if(1==a.length)return a[0].clone();for(var b=null,c=a.length;--c>=0;)b=Ra.cons(a[c],b);for(var d=b;d;){if(d.cdr&&!d.cdr.cdr){d.cdr=d.cdr.car;break}d=d.cdr}return b},to_array:function(){for(var a=this,b=[];a;){if(b.push(a.car),a.cdr&&!(a.cdr instanceof Ra)){b.push(a.cdr);break}a=a.cdr}return b},add:function(a){for(var b=this;b;){if(!(b.cdr instanceof Ra)){var c=Ra.cons(b.cdr,a);return b.cdr=c}b=b.cdr}},_walk:function(a){return a._visit(this,function(){this.car._walk(a),this.cdr&&this.cdr._walk(a)})}}),Sa=w("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ta=w("Dot",null,{$documentation:"A dotted property access expression",_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}},Sa),Ua=w("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.property._walk(a)})}},Sa),Va=w("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}}),Wa=w("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Va),Xa=w("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Va),Ya=w("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(a){return a._visit(this,function(){this.left._walk(a),this.right._walk(a)})}}),Za=w("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.consequent._walk(a),this.alternative._walk(a)})}}),$a=w("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ya),_a=w("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(a){return a._visit(this,function(){this.elements.forEach(function(b){b._walk(a)})})}}),ab=w("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(a){return a._visit(this,function(){this.properties.forEach(function(b){b._walk(a)})})}}),bb=w("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(a){return a._visit(this,function(){this.value._walk(a)})}}),cb=w("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},bb),db=w("ObjectSetter",null,{$documentation:"An object setter property"},bb),eb=w("ObjectGetter",null,{$documentation:"An object getter property"},bb),fb=w("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),gb=w("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},fb),hb=w("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},fb),ib=w("SymbolVar",null,{$documentation:"Symbol defining a variable"},hb),jb=w("SymbolConst",null,{$documentation:"A constant declaration"},hb),kb=w("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ib),lb=w("SymbolDefun",null,{$documentation:"Symbol defining a function"},hb),mb=w("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},hb),nb=w("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},hb),ob=w("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},fb),pb=w("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},fb),qb=w("LabelRef",null,{$documentation:"Reference to a label symbol"},fb),rb=w("This",null,{$documentation:"The `this` symbol"},fb),sb=w("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),tb=w("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},sb),ub=w("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},sb),vb=w("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},sb),wb=w("Atom",null,{$documentation:"Base class for atoms"},sb),xb=w("Null",null,{$documentation:"The `null` atom",value:null},wb),yb=w("NaN",null,{$documentation:"The impossible value",value:NaN},wb),zb=w("Undefined",null,{$documentation:"The `undefined` value",value:void 0},wb),Ab=w("Hole",null,{$documentation:"A hole in an array",value:void 0},wb),Bb=w("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},wb),Cb=w("Boolean",null,{$documentation:"Base class for booleans"},wb),Db=w("False",null,{$documentation:"The `false` atom",value:!1},Cb),Eb=w("True",null,{$documentation:"The `true` atom",value:!0},Cb);y.prototype={_visit:function(a,b){this.push(a);var c=this.visit(a,b?function(){b.call(a)}:m);return!c&&b&&b.call(a),this.pop(a),c},parent:function(a){return this.stack[this.stack.length-2-(a||0)]},push:function(a){a instanceof sa?this.directives=Object.create(this.directives):a instanceof ca&&(this.directives[a.value]=this.directives[a.value]?"up":!0),this.stack.push(a)},pop:function(a){this.stack.pop(),a instanceof sa&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(a){for(var b=this.stack,c=b.length;--c>=0;){var d=b[c];if(d instanceof a)return d}},has_directive:function(a){var b=this.directives[a];if(b)return b;var c=this.stack[this.stack.length-1];if(c instanceof qa)for(var d=0;d0;){var d=a[--b];if(d instanceof Da&&d.condition===c||d instanceof Za&&d.condition===c||d instanceof ka&&d.condition===c||d instanceof na&&d.condition===c||d instanceof Wa&&"!"==d.operator&&d.expression===c)return!0;if(!(d instanceof Ya)||"&&"!=d.operator&&"||"!=d.operator)return!1;c=d}},loopcontrol_target:function(a){var b=this.stack;if(a)for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof ia&&d.label.name==a.name)return d.body}else for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof Ea||d instanceof ja)return d}}};var Fb="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Gb="false null true",Hb="abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield "+Gb+" "+Fb,Ib="return new delete throw else case";Fb=t(Fb),Hb=t(Hb),Ib=t(Ib),Gb=t(Gb);var Jb=t(f("+-*&%=<>!?|~^")),Kb=/^0x[0-9a-f]+$/i,Lb=/^0[0-7]+$/,Mb=t(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Nb=t(f("  \n\r \f\x0B​᠎              \ufeff")),Ob=t(f("[{(,.;:")),Pb=t(f("[]{}(),;:")),Qb=t(f("gmsiy")),Rb={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};K.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Sb={},Tb=t(["typeof","void","delete","--","++","!","~","-","+"]),Ub=t(["--","++"]),Vb=t(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Wb=function(a,b){for(var c=0;c","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Xb=d(["for","do","while","switch"]),Yb=d(["atom","num","string","regexp","name"]);P.prototype=new y,function(a){function b(b,c){b.DEFMETHOD("transform",function(b,d){var e,f;return b.push(this),b.before&&(e=b.before(this,c,d)),e===a&&(b.after?(b.stack[b.stack.length-1]=e=this,c(e,b),f=b.after(e,d),f!==a&&(e=f)):(e=this,c(e,b))),b.pop(this),e})}function c(a,b){return Z(a,function(a){return a.transform(b,!0)})}b(_,m),b(ia,function(a,b){a.label=a.label.transform(b),a.body=a.body.transform(b)}),b(da,function(a,b){a.body=a.body.transform(b)}),b(ea,function(a,b){a.body=c(a.body,b)}),b(ka,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b)}),b(na,function(a,b){a.init&&(a.init=a.init.transform(b)),a.condition&&(a.condition=a.condition.transform(b)),a.step&&(a.step=a.step.transform(b)),a.body=a.body.transform(b)}),b(oa,function(a,b){a.init=a.init.transform(b),a.object=a.object.transform(b),a.body=a.body.transform(b)}),b(pa,function(a,b){a.expression=a.expression.transform(b),a.body=a.body.transform(b)}),b(xa,function(a,b){a.value&&(a.value=a.value.transform(b))}),b(Aa,function(a,b){a.label&&(a.label=a.label.transform(b))}),b(Da,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b),a.alternative&&(a.alternative=a.alternative.transform(b))}),b(Ea,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ha,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ia,function(a,b){a.body=c(a.body,b),a.bcatch&&(a.bcatch=a.bcatch.transform(b)),a.bfinally&&(a.bfinally=a.bfinally.transform(b))}),b(Ja,function(a,b){a.argname=a.argname.transform(b),a.body=c(a.body,b)}),b(La,function(a,b){a.definitions=c(a.definitions,b)}),b(Oa,function(a,b){a.name=a.name.transform(b),a.value&&(a.value=a.value.transform(b))}),b(sa,function(a,b){a.name&&(a.name=a.name.transform(b)),a.argnames=c(a.argnames,b),a.body=c(a.body,b)}),b(Pa,function(a,b){a.expression=a.expression.transform(b),a.args=c(a.args,b)}),b(Ra,function(a,b){a.car=a.car.transform(b),a.cdr=a.cdr.transform(b)}),b(Ta,function(a,b){a.expression=a.expression.transform(b)}),b(Ua,function(a,b){a.expression=a.expression.transform(b),a.property=a.property.transform(b)}),b(Va,function(a,b){a.expression=a.expression.transform(b)}),b(Ya,function(a,b){a.left=a.left.transform(b),a.right=a.right.transform(b)}),b(Za,function(a,b){a.condition=a.condition.transform(b),a.consequent=a.consequent.transform(b),a.alternative=a.alternative.transform(b)}),b(_a,function(a,b){a.elements=c(a.elements,b)}),b(ab,function(a,b){a.properties=c(a.properties,b)}),b(bb,function(a,b){a.value=a.value.transform(b)})}(),Q.prototype={unmangleable:function(a){return a||(a={}),this.global&&!a.toplevel||this.undeclared||!a.eval&&(this.scope.uses_eval||this.scope.uses_with)||a.keep_fnames&&(this.orig[0]instanceof mb||this.orig[0]instanceof lb)},mangle:function(a){var b=a.cache&&a.cache.props;if(this.global&&b&&b.has(this.name))this.mangled_name=b.get(this.name);else if(!this.mangled_name&&!this.unmangleable(a)){var c=this.scope;!a.screw_ie8&&this.orig[0]instanceof mb&&(c=c.parent_scope),this.mangled_name=c.next_mangled(a,this),this.global&&b&&b.set(this.name,this.mangled_name)}}},ra.DEFMETHOD("figure_out_scope",function(a){a=k(a,{screw_ie8:!1,cache:null});var b=this,c=b.parent_scope=null,d=new v,e=null,f=!1,g=0,h=new y(function(b,i){if(a.screw_ie8&&b instanceof Ja){var j=c;return c=new qa(b),c.init_scope_vars(g),c.parent_scope=j,i(),c=j,!0}if(b instanceof qa){b.init_scope_vars(g);var j=b.parent_scope=c,k=e,l=d;return e=c=b,d=new v,++g,i(),--g,c=j,e=k,d=l,!0}if(b instanceof ia){var m=b.label;if(d.has(m.name))throw new Error(o("Label {name} defined twice",m));return d.set(m.name,m),i(),d.del(m.name),!0}if(b instanceof pa)for(var n=c;n;n=n.parent_scope)n.uses_with=!0;else if(b instanceof fb&&(b.scope=c),b instanceof ob&&(b.thedef=b,b.references=[]),b instanceof mb)e.def_function(b);else if(b instanceof lb)(b.scope=e.parent_scope).def_function(b);else if(b instanceof Ma)f=b.has_const_pragma();else if(b instanceof ib||b instanceof jb){var p=e.def_variable(b);p.constant=b instanceof jb||f,p.init=h.parent().value}else if(b instanceof nb)(a.screw_ie8?c:e).def_variable(b);else if(b instanceof qb){var q=d.get(b.name);if(!q)throw new Error(o("Undefined label {name} [{line},{col}]",{name:b.name,line:b.start.line,col:b.start.col}));b.thedef=q}});b.walk(h); -var i=null,j=b.globals=new v,h=new y(function(a,c){if(a instanceof sa){var d=i;return i=a,c(),i=d,!0}if(a instanceof Aa&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof pb){var e=a.name;if("eval"==e&&h.parent()instanceof Pa)for(var f=a.scope;f&&!f.uses_eval;f=f.parent_scope)f.uses_eval=!0;var g=a.scope.find_variable(e);if(g)a.thedef=g;else{var k;j.has(e)?k=j.get(e):(k=new Q(b,j.size(),a),k.undeclared=!0,k.global=!0,j.set(e,k)),a.thedef=k,i&&"arguments"==e&&(i.uses_arguments=!0)}return a.reference(),!0}});b.walk(h),a.cache&&(this.cname=a.cache.cname)}),qa.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),sa.DEFMETHOD("init_scope_vars",function(){qa.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var a=new Oa({name:"arguments",start:this.start,end:this.end}),b=new Q(this,this.variables.size(),a);this.variables.set(a.name,b)}),pb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),qa.DEFMETHOD("find_variable",function(a){return a instanceof fb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),qa.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),qa.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new Q(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),qa.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=Zb(++this.cname);if(F(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),ua.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof kb&&this.name&&this.name.definition();;){var d=sa.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),qa.DEFMETHOD("references",function(a){return a instanceof fb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),fb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),gb.DEFMETHOD("unmangleable",function(){return!0}),ob.DEFMETHOD("unmangleable",function(){return!1}),fb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),fb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),qb.DEFMETHOD("undeclared",function(){return!1}),ob.DEFMETHOD("undeclared",function(){return!1}),fb.DEFMETHOD("definition",function(){return this.thedef}),fb.DEFMETHOD("global",function(){return this.definition().global}),Ma.DEFMETHOD("has_const_pragma",function(){var a=this.start&&this.start.comments_before,b=a&&a[a.length-1];return b&&/@const\b/.test(b.value)}),ra.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),ra.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a),a.except.push("arguments");var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new y(function(e,f){if(e instanceof ia){var g=b;return f(),b=g,!0}if(e instanceof qa){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),a.sort&&h.sort(function(a,b){return b.references.length-a.references.length}),void c.push.apply(c,h)}if(e instanceof ob){var i;do i=Zb(++b);while(!F(i));return e.mangled_name=i,!0}return a.screw_ie8&&e instanceof nb?void c.push(e.definition()):void 0});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),ra.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new y(function(b){b instanceof sb?Zb.consider(b.print_to_string()):b instanceof ya?Zb.consider("return"):b instanceof za?Zb.consider("throw"):b instanceof Ca?Zb.consider("continue"):b instanceof Ba?Zb.consider("break"):b instanceof ba?Zb.consider("debugger"):b instanceof ca?Zb.consider(b.value):b instanceof ma?Zb.consider("while"):b instanceof la?Zb.consider("do while"):b instanceof Da?(Zb.consider("if"),b.alternative&&Zb.consider("else")):b instanceof Ma?Zb.consider("var"):b instanceof Na?Zb.consider("const"):b instanceof sa?Zb.consider("function"):b instanceof na?Zb.consider("for"):b instanceof oa?Zb.consider("for in"):b instanceof Ea?Zb.consider("switch"):b instanceof Ha?Zb.consider("case"):b instanceof Ga?Zb.consider("default"):b instanceof pa?Zb.consider("with"):b instanceof db?Zb.consider("set"+b.key):b instanceof eb?Zb.consider("get"+b.key):b instanceof cb?Zb.consider(b.key):b instanceof Qa?Zb.consider("new"):b instanceof rb?Zb.consider("this"):b instanceof Ia?Zb.consider("try"):b instanceof Ja?Zb.consider("catch"):b instanceof Ka?Zb.consider("finally"):b instanceof fb&&b.unmangleable(a)?Zb.consider(b.name):b instanceof Va||b instanceof Ya?Zb.consider(b.operator):b instanceof Ta&&Zb.consider(b.property)});this.walk(b),Zb.sort()});var Zb=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return A(a)&&!A(b)?1:A(b)&&!A(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();ra.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new y(function(c){if(a.undeclared&&c instanceof pb&&c.undeclared()&&_.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof $a&&c.left instanceof pb?d=c.left:c instanceof oa&&c.init instanceof pb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&_.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof pb&&c.undeclared()&&"eval"==c.name&&_.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof hb||c instanceof ob)&&!(c instanceof nb)&&c.unreferenced()&&_.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof ob?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof sa&&c.uses_arguments&&_.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof va&&!(b.parent()instanceof qa)&&_.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)}),function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c){var d=a.length-1;a.forEach(function(a,e){a instanceof ga||(c.indent(),a.print(c),e==d&&b||(c.newline(),b&&c.newline()))})}function d(a,b){a.length>0?b.with_block(function(){c(a,!1,b)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof la&&!b.option("screw_ie8"))return void n(a.body,b);for(var c=a.body;;)if(c instanceof Da){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ha))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ga?b.print("{}"):a instanceof fa?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ga?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof aa&&e.body===d)return!0;if(!(e instanceof Ra&&e.car===d||e instanceof Pa&&e.expression===d&&!(e instanceof Qa)||e instanceof Ta&&e.expression===d||e instanceof Ua&&e.expression===d||e instanceof Za&&e.condition===d||e instanceof Ya&&e.left===d||e instanceof Xa&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return 0==a.args.length&&!b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof fa?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1;_.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof ca&&"use asm"==d.value&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof sa&&(q=f)}),_.DEFMETHOD("print_to_string",function(a){var b=R(a);return this.print(b),b.get()}),_.DEFMETHOD("add_comments",function(a){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof xa&&c.value&&c.value.walk(new y(function(a){return a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof ua||a instanceof _a||a instanceof ab?!0:void 0})),b?b.test?e=e.filter(function(a){return"comment5"==a.type||b.test(a.value)}):"function"==typeof b&&(e=e.filter(function(a){return"comment5"==a.type||b(c,a)})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}),b(_,function(){return!1}),b(ua,function(a){return i(a)}),b(ab,function(a){return i(a)}),b([Va,zb],function(a){var b=a.parent();return b instanceof Sa&&b.expression===this}),b(Ra,function(a){var b=a.parent();return b instanceof Pa||b instanceof Va||b instanceof Ya||b instanceof Oa||b instanceof Sa||b instanceof _a||b instanceof bb||b instanceof Za}),b(Ya,function(a){var b=a.parent();if(b instanceof Pa&&b.expression===this)return!0;if(b instanceof Va)return!0;if(b instanceof Sa&&b.expression===this)return!0;if(b instanceof Ya){var c=b.operator,d=Wb[c],e=this.operator,f=Wb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Sa,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)try{this.walk(new y(function(a){if(a instanceof Pa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Pa,function(a){var b,c=a.parent();return c instanceof Qa&&c.expression===this?!0:this.expression instanceof ua&&c instanceof Sa&&c.expression===this&&(b=a.parent(1))instanceof $a&&b.left===c}),b(Qa,function(a){var b=a.parent();return j(this,a)&&(b instanceof Sa||b instanceof Pa&&b.expression===this)?!0:void 0}),b(ub,function(a){var b=a.parent();return this.getValue()<0&&b instanceof Sa&&b.expression===this?!0:void 0}),b([$a,Za],function(a){var b=a.parent();return b instanceof Va?!0:b instanceof Ya&&!(b instanceof $a)?!0:b instanceof Pa&&b.expression===this?!0:b instanceof Za&&b.condition===this?!0:b instanceof Sa&&b.expression===this?!0:void 0}),a(ca,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ba,function(a,b){b.print("debugger"),b.semicolon()}),ha.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(aa,function(a,b){a.body.print(b),b.semicolon()}),a(ra,function(a,b){c(a.body,!0,b),b.print("")}),a(ia,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(da,function(a,b){a.body.print(b),b.semicolon()}),a(fa,function(a,b){d(a.body,b)}),a(ga,function(a,b){b.semicolon()}),a(la,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(ma,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(na,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ga?b.print(";"):(a.init instanceof La?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(oa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(pa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),sa.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a)}),a(sa,function(a,b){a._do_print(b)}),xa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(ya,function(a,b){a._do_print(b,"return")}),a(za,function(a,b){a._do_print(b,"throw")}),Aa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ba,function(a,b){a._do_print(b,"break")}),a(Ca,function(a,b){a._do_print(b,"continue")}),a(Da,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Ea,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Fa.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(Ga,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ha,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ia,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Ja,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(Ka,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),La.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof na||c instanceof oa,e=d&&c.init===this;e||a.semicolon()}),a(Ma,function(a,b){a._do_print(b,"var")}),a(Na,function(a,b){a._do_print(b,"const")}),a(Oa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof na||c instanceof oa;f(a.value,b,d)}}),a(Pa,function(a,b){a.expression.print(b),a instanceof Qa&&j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Qa,function(a,b){b.print("new"),b.space(),Pa.prototype._codegen(a,b)}),Ra.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Ra,function(a,b){a._do_print(b)}),a(Ta,function(a,b){var c=a.expression;c.print(b),c instanceof ub&&c.getValue()>=0&&(/[xa-f.]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Ua,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Wa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Wa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Xa,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Ya,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Xa&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Wa&&"!"==a.right.operator&&a.right.expression instanceof Wa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a(Za,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(_a,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Ab&&b.comma()}),d>0&&b.space()})}),a(ab,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(cb,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Hb(c)?b.option("screw_ie8"):I(c))?b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(db,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(eb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(zb,function(a,b){b.print("void 0")}),a(Ab,m),a(Bb,function(a,b){b.print("Infinity")}),a(yb,function(a,b){b.print("NaN")}),a(rb,function(a,b){b.print("this")}),a(sb,function(a,b){b.print(a.getValue())}),a(tb,function(a,b){b.print_string(a.getValue(),a.quote)}),a(ub,function(a,b){q&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(vb,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof Ya&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(_,m),o(ca,p),o(ba,p),o(fb,p),o(wa,p),o(ha,p),o(ia,m),o(sa,p),o(Ea,p),o(Fa,p),o(fa,p),o(ra,m),o(Qa,p),o(Ia,p),o(Ja,p),o(Ka,p),o(La,p),o(sb,p),o(db,function(a,b){b.add_mapping(a.start,a.key.name)}),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(bb,function(a,b){b.add_mapping(a.start,a.key)})}(),S.prototype=new P,l(S.prototype,{option:function(a){return this.options[a]},warn:function(){this.options.warnings&&_.warn.apply(_,arguments)},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof qa&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof qa&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof _)return c.transform(a);switch(typeof c){case"string":return b(tb,d,{value:c}).optimize(a);case"number":return b(isNaN(c)?yb:ub,d,{value:c}).optimize(a);case"boolean":return b(c?Eb:Db,d).optimize(a);case"undefined":return b(zb,d).optimize(a);default:if(null===c)return b(xb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(vb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Pa&&a.expression===c&&(d instanceof Sa||d instanceof pb&&"eval"===d.name)?b(Ra,c,{car:b(ub,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof fa)return a.body;if(a instanceof ga)return[];if(a instanceof aa)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a?!0:a instanceof ga?!0:a instanceof fa?0==a.body.length:!1}function i(a){return a instanceof Ea?a:(a instanceof na||a instanceof oa||a instanceof ka)&&a.body instanceof fa?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof pb&&(b instanceof $a&&a===b.left||b instanceof Va&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,u.value);return u.value=null,n.splice(t,1),0===n.length&&(a[l]=b(ga,h),i=!0),k.walk(new y(function(a){delete a._squeezed,delete a._optimized})),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),s=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof La)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),0>=j)break;var l=j-1,m=a[l];if(m instanceof La){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},t=n.length;--t>=0;){var u=n[t];if(null==u.value)break;var v=u.name.name;if(!v||!v.length)break;if(v in o)break;o[v]=!0;var w=h.find_variable&&h.find_variable(v);if(w&&w.references&&1===w.references.length&&"arguments"!=v){var x=w.references[0];if(x.scope.uses_eval||x.scope.uses_with)break;if(u.value.is_constant(c)){var z=new P(function(a){return a===x?g(a,z.parent(),!0):void 0});k.transform(z)}else if(!(p|=q))if(x.scope===h){var A=new y(function(a){a instanceof pb&&e(a,A.parent())&&(r[a.name]=q=!0)});u.value.walk(A);var B=!1,C=new P(function(a){if(B)return a;var b=C.parent();return a instanceof sa||a instanceof Ia||a instanceof pa||a instanceof Ha||a instanceof ja||b instanceof Da&&a!==b.condition||b instanceof Za&&a!==b.condition||b instanceof Ya&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Ea&&a!==b.expression?(p=B=!0,a):void 0},function(a){return B?a:a===x?(B=!0,g(a,C.parent(),!1)):(p|=a.has_side_effects(c))?(B=!0,a):q&&a instanceof pb&&a.name in r?(p=!0,B=!0,a):void 0});k.transform(C)}else p|=u.value.has_side_effects(c)}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof ga&&a.splice(D,1);return a}function g(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(tb,a,{value:a.name})})}function f(a,c){return b(_a,a,{elements:c})}function g(a,c){return b(da,a,{body:b($a,a,{operator:"=",left:b(Ta,c,{expression:b(pb,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof sa&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof va?a.push(g(b,b.name)):b instanceof La?b.definitions.forEach(function(b){b.value&&b.value instanceof sa&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function h(a){var b=[];return a.reduce(function(a,c){return c instanceof fa?(s=!0,a.push.apply(a,h(c.body))):c instanceof ga?s=!0:c instanceof ca?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):s=!0:a.push(c),a},[])}function j(a,c){var d=c.self(),f=d instanceof sa,g=[];a:for(var h=a.length;--h>=0;){var j=a[h];switch(!0){case f&&j instanceof ya&&!j.value&&0==g.length:s=!0;continue a;case j instanceof Da:if(j.body instanceof ya){if((f&&0==g.length||g[0]instanceof ya&&!g[0].value)&&!j.body.value&&!j.alternative){s=!0;var k=b(da,j.condition,{body:j.condition});g.unshift(k);continue a}if(g[0]instanceof ya&&j.body.value&&g[0].value&&!j.alternative){s=!0,j=j.clone(),j.alternative=g[0],g[0]=j.transform(c);continue a}if((0==g.length||g[0]instanceof ya)&&j.body.value&&!j.alternative&&f){s=!0,j=j.clone(),j.alternative=g[0]||b(ya,j,{value:b(zb,j)}),g[0]=j.transform(c);continue a}if(!j.body.value&&f){s=!0,j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=null,g=[j.transform(c)];continue a}if(c.option("sequences")&&1==g.length&&f&&g[0]instanceof da&&(!j.alternative||j.alternative instanceof da)){s=!0,g.push(b(ya,g[0],{value:b(zb,g[0])}).transform(c)),g=e(j.alternative).concat(g),g.unshift(j);continue a}}var l=m(j.body),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0;var o=e(j.body).slice(0,-1);j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=b(fa,j,{body:o}),g=[j.transform(c)];continue a}var l=m(j.alternative),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0,j=j.clone(),j.body=b(fa,j.body,{body:e(j.body).concat(g)}),j.alternative=b(fa,j.alternative,{body:e(j.alternative).slice(0,-1)}),g=[j.transform(c)];continue a}g.unshift(j);break;default:g.unshift(j)}}return g}function l(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)k(b,d,a);else{if(d instanceof Aa){var f=b.loopcontrol_target(d.label);d instanceof Ba&&f instanceof fa&&i(f)===e||d instanceof Ca&&i(f)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);m(d)&&(c=!0)}return a},[]),s=a.length!=d,a}function n(a,c){function d(){e=Ra.from_array(e),e&&f.push(b(da,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof da&&e.length<2e3?e.push(a.body):(d(),f.push(a))}),d(),f=o(f,c),s=f.length!=a.length,f}function o(a,c){function d(a){e.pop();var b=f.body;return b instanceof Ra?b.add(a):b=Ra.cons(b,a),b.transform(c)}var e=[],f=null;return a.forEach(function(a){if(f)if(a instanceof na){var c={};try{f.body.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw c})),!a.init||a.init instanceof La?a.init||(a.init=f.body,e.pop()):a.init=d(a.init)}catch(g){if(g!==c)throw g}}else a instanceof Da?a.condition=d(a.condition):a instanceof pa?a.expression=d(a.expression):a instanceof xa&&a.value?a.value=d(a.value):a instanceof xa?a.value=d(b(zb,a)):a instanceof Ea&&(a.expression=d(a.expression));e.push(a),f=a instanceof da?a:null}),e}function q(a,b){var c=null;return a.reduce(function(a,b){return b instanceof La&&c&&c.TYPE==b.TYPE?(c.definitions=c.definitions.concat(b.definitions),s=!0):b instanceof na&&c instanceof La&&(!b.init||b.init.TYPE==c.TYPE)?(s=!0,a.pop(),b.init?b.init.definitions=c.definitions.concat(b.init.definitions):b.init=c,a.push(b),c=b):(c=b,a.push(b)),a},[])}function r(a,c){a.forEach(function(a){a instanceof da&&(a.body=function c(a){return a.transform(new P(function(a){if(a instanceof Pa&&a.expression instanceof ua)return b(Wa,a,{operator:"!",expression:a});if(a instanceof Pa)a.expression=c(a.expression);else if(a instanceof Ra)a.car=c(a.car);else if(a instanceof Za){var d=c(a.condition);if(d!==a.condition){a.condition=d;var e=a.consequent;a.consequent=a.alternative,a.alternative=e}}return a}))}(a.body))})}var s,t=10;do s=!1,c.option("angular")&&(a=g(a)),a=h(a),c.option("dead_code")&&(a=l(a,c)),c.option("if_return")&&(a=j(a,c)),c.option("sequences")&&(a=n(a,c)),c.option("join_vars")&&(a=q(a,c)),c.option("collapse_vars")&&(a=f(a,c));while(s&&t-- >0);return c.option("negate_iife")&&r(a,c),a}function k(a,b,c){a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new y(function(b){return b instanceof La?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof va?(c.push(b),!0):b instanceof qa?!0:void 0}))}function l(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function m(a){return a&&a.aborts()}function r(a,c){function d(d){d=e(d),a.body instanceof fa?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(fa,a.body,{body:d}).transform(c),r(a,c)}var f=a.body instanceof fa?a.body.body[0]:a.body;f instanceof Da&&(f.body instanceof Ba&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ba&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function s(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function w(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Eb,a):a}a(_,function(a,b){return a}),_.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(_,function(){return!1}),a(Wa,function(){return g(this.operator,b)}),a(Ya,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a(Za,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a($a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Ra,function(){return this.cdr.is_boolean()}),a(Eb,function(){return!0}),a(Db,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(_,function(){return!1}),a(tb,function(){return!0}),a(Wa,function(){return"typeof"==this.operator}),a(Ya,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a($a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Ra,function(a){return this.cdr.is_string(a)}),a(Za,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Pa,function(a){return a.option("unsafe")&&this.expression instanceof pb&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}_.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[l(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),_.DEFMETHOD("is_constant",function(a){return this instanceof sb||this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb||this.evaluate(a).length>1}),_.DEFMETHOD("constant_value",function(a){if(this instanceof sb)return this.value;if(this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(aa,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(ua,function(){throw a}),a(_,function(){throw a}),a(sb,function(){return this.getValue()}),a(Wa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof ua)return"function";if(d=b(d,c),d instanceof RegExp)throw a; -return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":if(d=b(d,c),0===d)throw a;return-d;case"+":return+b(d,c)}throw a}),a(Ya,function(c){var d=this.left,e=this.right;switch(this.operator){case"&&":return b(d,c)&&b(e,c);case"||":return b(d,c)||b(e,c);case"|":return b(d,c)|b(e,c);case"&":return b(d,c)&b(e,c);case"^":return b(d,c)^b(e,c);case"+":return b(d,c)+b(e,c);case"*":return b(d,c)*b(e,c);case"/":return b(d,c)/b(e,c);case"%":return b(d,c)%b(e,c);case"-":return b(d,c)-b(e,c);case"<<":return b(d,c)<>":return b(d,c)>>b(e,c);case">>>":return b(d,c)>>>b(e,c);case"==":return b(d,c)==b(e,c);case"===":return b(d,c)===b(e,c);case"!=":return b(d,c)!=b(e,c);case"!==":return b(d,c)!==b(e,c);case"<":return b(d,c)":return b(d,c)>b(e,c);case">=":return b(d,c)>=b(e,c);case"in":return b(d,c)in b(e,c);case"instanceof":return b(d,c)instanceof b(e,c)}throw a}),a(Za,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(pb,function(c){var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c);throw a}),a(Ta,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(Wa,a,{operator:"!",expression:a})}a(_,function(){return c(this)}),a(aa,function(){throw new Error("Cannot negate a statement")}),a(ua,function(){return c(this)}),a(Wa,function(){return"!"==this.operator?this.expression:c(this)}),a(Ra,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a(Za,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),l(c(this),b)}),a(Ya,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),l(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),l(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(_,function(a){return!0}),a(ga,function(a){return!1}),a(sb,function(a){return!1}),a(rb,function(a){return!1}),a(Pa,function(a){var b=a.option("pure_funcs");return b?"function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0:!0}),a(ea,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(da,function(a){return this.body.has_side_effects(a)}),a(va,function(a){return!0}),a(ua,function(a){return!1}),a(Ya,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a($a,function(a){return!0}),a(Za,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a(Va,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(pb,function(a){return this.global()&&this.undeclared()}),a(ab,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(bb,function(a){return this.value.has_side_effects(a)}),a(_a,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ta,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a):!0}),a(Ua,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a)||this.property.has_side_effects(a):!0}),a(Sa,function(a){return!a.option("pure_getters")}),a(Ra,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&m(this.body[a-1])}a(aa,function(){return null}),a(wa,function(){return this}),a(fa,b),a(Fa,b),a(Da,function(){return this.alternative&&m(this.body)&&m(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(ca,function(a,c){return"up"===c.has_directive(a.value)?b(ga,a):a}),a(ba,function(a,c){return c.option("drop_debugger")?b(ga,a):a}),a(ia,function(a,c){return a.body instanceof Ba&&c.loopcontrol_target(a.body.label)===a.body?b(ga,a):0==a.label.references.length?a.body:a}),a(ea,function(a,b){return a.body=j(a.body,b),a}),a(fa,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ga,a)}return a}),qa.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof ra)&&!c.uses_eval){var d=[],e=new v,f=this,h=new y(function(b,g){if(b!==c){if(b instanceof va)return e.add(b.name.name,b),!0;if(b instanceof La&&f===c)return b.definitions.forEach(function(b){b.value&&(e.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof pb)return n(d,b.definition()),!0;if(b instanceof qa){var i=f;return f=b,g(),f=i,!0}}});c.walk(h);for(var i=0;i=0;){var l=i[k];if(!l.unreferenced())break;i.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:l.name,file:l.start.file,line:l.start.line,col:l.start.col})}if(e instanceof va&&e!==c)return g(e.name.definition(),d)?e:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:e.name.name,file:e.name.start.file,line:e.name.start.line,col:e.name.start.col}),b(ga,e));if(e instanceof La&&!(j.parent()instanceof oa)){var m=e.definitions.filter(function(b){if(g(b.name.definition(),d))return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});m=q(m,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var n=[],k=0;k0&&(n.push(o.value),o.value=Ra.from_array(n),n=[]),++k)}return n=n.length>0?b(fa,e,{body:[b(da,e,{body:Ra.from_array(n)})]}):null,0!=m.length||n?0==m.length?h?Z.splice(n.body):n:(e.definitions=m,n?(n.body.unshift(e),h?Z.splice(n.body):n):e):b(ga,e)}if(e instanceof na&&(f(e,this),e.init instanceof fa)){var p=e.init.body.slice(0,-1);return e.init=e.init.body.slice(-1)[0].body,p.push(e),h?Z.splice(p):b(fa,e,{body:p})}return e instanceof qa&&e!==c?e:void 0});c.transform(j)}}),qa.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new y(function(a){return a instanceof qa&&a!==c?!0:a instanceof Ma?(++k,!0):void 0})),e=e&&k>1;var l=new P(function(a){if(a!==c){if(a instanceof ca)return f.push(a),b(ga,a);if(a instanceof va&&d)return g.push(a),b(ga,a);if(a instanceof Ma&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof oa&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(pb,m,m)}return h}return k instanceof na&&k.init===a?h:h?b(da,a,{body:h}):b(ga,a)}if(a instanceof qa)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof sa&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(na,a,{body:a.body});if(a instanceof ma&&c.option("dead_code")){var e=[];return k(c,a.body,e),b(fa,a,{body:e})}}return a}),a(ma,function(a,c){return c.option("loops")?(a=ka.prototype.optimize.call(a,c),a instanceof ma&&(r(a,c),a=b(na,a,a).transform(c)),a):a}),a(na,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof aa?e.push(a.init):a.init&&e.push(b(da,a.init,{body:a.init})),k(c,a.body,e),b(fa,a,{body:e})}return r(a,c),a}),a(Da,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return a.alternative&&k(c,a.alternative,e),e.push(a.body),b(fa,a,{body:e}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return k(c,a.body,e),a.alternative&&e.push(a.alternative),b(fa,a,{body:e}).transform(c)}f(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=a.condition.print_to_string().length,i=g.print_to_string().length,j=h>i;if(a.alternative&&j){j=!1,a.condition=g;var l=a.body;a.body=a.alternative||b(ga),a.alternative=l}if(f(a.body)&&f(a.alternative))return b(da,a.condition,{body:a.condition}).transform(c);if(a.body instanceof da&&a.alternative instanceof da)return b(da,a,{body:b(Za,a,{condition:a.condition,consequent:a.body.body,alternative:a.alternative.body})}).transform(c);if(f(a.alternative)&&a.body instanceof da)return h===i&&!j&&a.condition instanceof Ya&&"||"==a.condition.operator&&(j=!0),j?b(da,a,{body:b(Ya,a,{operator:"||",left:g,right:a.body.body})}).transform(c):b(da,a,{body:b(Ya,a,{operator:"&&",left:a.condition,right:a.body.body})}).transform(c);if(a.body instanceof ga&&a.alternative&&a.alternative instanceof da)return b(da,a,{body:b(Ya,a,{operator:"||",left:a.condition,right:a.alternative.body})}).transform(c);if(a.body instanceof xa&&a.alternative instanceof xa&&a.body.TYPE==a.alternative.TYPE)return b(a.body.CTOR,a,{value:b(Za,a,{condition:a.condition,consequent:a.body.value||b(zb,a.body).optimize(c),alternative:a.alternative.value||b(zb,a.alternative).optimize(c)})}).transform(c);if(a.body instanceof Da&&!a.body.alternative&&!a.alternative&&(a.condition=b(Ya,a.condition,{operator:"&&",left:a.condition,right:a.body.condition}).transform(c),a.body=a.body.body),m(a.body)&&a.alternative){var n=a.alternative;return a.alternative=null,b(fa,a,{body:[a,n]}).transform(c)}if(m(a.alternative)){var o=a.body;return a.body=a.alternative,a.condition=j?g:a.condition.negate(c),a.alternative=null,b(fa,a,{body:[a,o]}).transform(c)}return a}),a(Ea,function(a,c){if(0==a.body.length&&c.option("conditionals"))return b(da,a,{body:a.expression}).transform(c);for(;;){var d=a.body[a.body.length-1];if(d){var e=d.body[d.body.length-1];if(e instanceof Ba&&i(c.loopcontrol_target(e.label))===a&&d.body.pop(),d instanceof Ga&&0==d.body.length){a.body.pop();continue}}break}var f=a.expression.evaluate(c);a:if(2==f.length)try{if(a.expression=f[0],!c.option("dead_code"))break a;var g=f[1],h=!1,j=!1,k=!1,l=!1,n=!1,o=new P(function(d,e,f){if(d instanceof sa||d instanceof da)return d;if(d instanceof Ea&&d===a)return d=d.clone(),e(d,this),n?d:b(fa,d,{body:d.body.reduce(function(a,b){return a.concat(b.body)},[])}).transform(c);if(d instanceof Da||d instanceof Ia){var i=h;return h=!j,e(d,this),h=i,d}if(d instanceof ha||d instanceof Ea){var i=j;return j=!0,e(d,this),j=i,d}if(d instanceof Ba&&this.loopcontrol_target(d.label)===a)return h?(n=!0,d):j?d:(l=!0,f?Z.skip:b(ga,d));if(d instanceof Fa&&this.parent()===a){if(l)return Z.skip;if(d instanceof Ha){var o=d.expression.evaluate(c);if(o.length<2)throw a;return o[1]===g||k?(k=!0,m(d)&&(l=!0),e(d,this),d):Z.skip}return e(d,this),d}});o.stack=c.stack.slice(),a=a.transform(o)}catch(p){if(p!==a)throw p}return a}),a(Ha,function(a,b){return a.body=j(a.body,b),a}),a(Ia,function(a,b){return a.body=j(a.body,b),a}),La.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(a){a.value=null})}),La.DEFMETHOD("to_assignments",function(){var a=this.definitions.reduce(function(a,c){if(c.value){var d=b(pb,c.name,c.name);a.push(b($a,c,{operator:"=",left:d,right:c.value}))}return a},[]);return 0==a.length?null:Ra.from_array(a)}),a(La,function(a,c){return 0==a.definitions.length?b(ga,a):a}),a(ua,function(a,b){return a=sa.prototype.optimize.call(a,b),b.option("unused")&&!b.option("keep_fnames")&&a.name&&a.name.unreferenced()&&(a.name=null),a}),a(Pa,function(a,d){if(d.option("unsafe")){var e=a.expression;if(e instanceof pb&&e.undeclared())switch(e.name){case"Array":if(1!=a.args.length)return b(_a,a,{elements:a.args}).transform(d);break;case"Object":if(0==a.args.length)return b(ab,a,{properties:[]});break;case"String":if(0==a.args.length)return b(tb,a,{value:""});if(a.args.length<=1)return b(Ya,a,{left:a.args[0],operator:"+",right:b(tb,a,{value:""})}).transform(d);break;case"Number":if(0==a.args.length)return b(ub,a,{value:0});if(1==a.args.length)return b(Wa,a,{expression:a.args[0],operator:"+"}).transform(d);case"Boolean":if(0==a.args.length)return b(Db,a);if(1==a.args.length)return b(Wa,a,{expression:b(Wa,null,{expression:a.args[0],operator:"!"}),operator:"!"}).transform(d);break;case"Function":if(0==a.args.length)return b(ua,a,{argnames:[],body:[]});if(u(a.args,function(a){return a instanceof tb}))try{var f="(function("+a.args.slice(0,-1).map(function(a){return a.value}).join(",")+"){"+a.args[a.args.length-1].value+"})()",g=O(f);g.figure_out_scope({screw_ie8:d.option("screw_ie8")});var h=new S(d.options);g=g.transform(h),g.figure_out_scope({screw_ie8:d.option("screw_ie8")}),g.mangle_names();var i;try{g.walk(new y(function(a){if(a instanceof sa)throw i=a,g}))}catch(j){if(j!==g)throw j}if(!i)return a;var k=i.argnames.map(function(c,d){return b(tb,a.args[d],{value:c.print_to_string()})}),f=R();return fa.prototype._codegen.call(i,i,f),f=f.toString().replace(/^\{|\}$/g,""),k.push(b(tb,a.args[a.args.length-1],{value:f})),a.args=k,a}catch(j){if(!(j instanceof K))throw console.log(j),j;d.warn("Error parsing code passed to new Function [{file}:{line},{col}]",a.args[a.args.length-1].start),d.warn(j.toString())}}else{if(e instanceof Ta&&"toString"==e.property&&0==a.args.length)return b(Ya,a,{left:b(tb,a,{value:""}),operator:"+",right:e.expression}).transform(d);if(e instanceof Ta&&e.expression instanceof _a&&"join"==e.property){var m=0==a.args.length?",":a.args[0].evaluate(d)[1];if(null!=m){var n=e.expression.elements.reduce(function(a,b){if(b=b.evaluate(d),0==a.length||1==b.length)a.push(b);else{var e=a[a.length-1];if(2==e.length){var f=""+e[1]+m+b[1];a[a.length-1]=[c(d,f,e[0]),f]}else a.push(b)}return a},[]);if(0==n.length)return b(tb,a,{value:""});if(1==n.length)return n[0][0];if(""==m){var o;return o=n[0][0]instanceof tb||n[1][0]instanceof tb?n.shift()[0]:b(tb,a,{value:""}),n.reduce(function(a,c){return b(Ya,c[0],{operator:"+",left:a,right:c[0]})},o).transform(d)}var p=a.clone();return p.expression=p.expression.clone(),p.expression.expression=p.expression.expression.clone(),p.expression.expression.elements=n.map(function(a){return a[0]}),l(a,p)}}}}if(d.option("side_effects")&&a.expression instanceof ua&&0==a.args.length&&!ea.prototype.has_side_effects.call(a.expression,d))return b(zb,a).transform(d);if(d.option("drop_console")&&a.expression instanceof Sa){for(var q=a.expression.expression;q.expression;)q=q.expression;if(q instanceof pb&&"console"==q.name&&q.undeclared())return b(zb,a).transform(d)}return a.evaluate(d)[0]}),a(Qa,function(a,c){if(c.option("unsafe")){var d=a.expression;if(d instanceof pb&&d.undeclared())switch(d.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return b(Pa,a,a).transform(c)}}return a}),a(Ra,function(a,c){if(!c.option("side_effects"))return a;if(!a.car.has_side_effects(c))return d(c.parent(),a,a.cdr);if(c.option("cascade")){if(a.car instanceof $a&&!a.car.left.has_side_effects(c)){if(a.car.left.equivalent_to(a.cdr))return a.car;if(a.cdr instanceof Pa&&a.cdr.expression.equivalent_to(a.car.left))return a.cdr.expression=a.car,a.cdr}if(!a.car.has_side_effects(c)&&!a.cdr.has_side_effects(c)&&a.car.equivalent_to(a.cdr))return a.car}return a.cdr instanceof Wa&&"void"==a.cdr.operator&&!a.cdr.expression.has_side_effects(c)?(a.cdr.expression=a.car,a.cdr):a.cdr instanceof zb?b(Wa,a,{operator:"void",expression:a.car}):a}),Va.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")&&this.expression instanceof Ra){var b=this.expression,c=b.to_array();return this.expression=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}return this}),a(Xa,function(a,b){return a.lift_sequences(b)}),a(Wa,function(a,c){a=a.lift_sequences(c);var d=a.expression;if(c.option("booleans")&&c.in_boolean_context()){switch(a.operator){case"!":if(d instanceof Wa&&"!"==d.operator)return d.expression;break;case"typeof":return c.warn("Boolean expression always true [{file}:{line},{col}]",a.start),b(Eb,a)}d instanceof Ya&&"!"==a.operator&&(a=l(a,d.negate(c)))}return a.evaluate(c)[0]}),Ya.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")){if(this.left instanceof Ra){var b=this.left,c=b.to_array();return this.left=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}if(this.right instanceof Ra&&this instanceof $a&&!s(this.left,a)){var b=this.right,c=b.to_array();return this.right=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}}return this});var x=t("== === != !== * & | ^");a(Ya,function(a,c){function e(b,d){if(d||!a.left.has_side_effects(c)&&!a.right.has_side_effects(c)){b&&(a.operator=b);var e=a.left;a.left=a.right,a.right=e}}if(x(a.operator)&&(a.right instanceof sb&&!(a.left instanceof sb)&&(a.left instanceof Ya&&Wb[a.left.operator]>=Wb[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof pb&&a.right instanceof Za){if(a.right.consequent instanceof pb&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof pb&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof pb&&a.left instanceof Za){if(a.left.consequent instanceof pb&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof pb&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof tb&&"undefined"==a.left.value&&a.right instanceof Wa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof pb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(zb,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of && always true [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0])):(c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0]))}else if("||"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0])):(c.warn("Condition left of || always false [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0]))}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&!f[1]||g.length>1&&!g[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Db)}).optimize(c):b(Db,a);if(f.length>1&&f[1])return g[0];if(g.length>1&&g[1])return f[0];break;case"||":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[1]||g.length>1&&g[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof tb&&f[1]||g.length>1&&g[0]instanceof tb&&g[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Eb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Ya)||c.parent()instanceof $a){var h=b(Wa,a,{operator:"!",expression:a.negate(c)});a=l(a,h)}switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof tb&&""===a.right.getValue()&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(tb,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof sb&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.right instanceof sb&&a.left.is_string(c)&&(a=b(Ya,a,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(Ya,a.left,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof Ya&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Ya,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(pb,function(a,d){function e(a,b){return b instanceof Ya&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&f.hasOwnProperty(a.name))return c(d,f[a.name],a);switch(a.name){case"undefined":return b(zb,a);case"NaN":return b(yb,a).transform(d);case"Infinity":return b(Bb,a).transform(d)}}return a}),a(Bb,function(a,c){return b(Ya,a,{operator:"/",left:b(ub,a,{value:1}),right:b(ub,a,{value:0})})}),a(zb,function(a,c){if(c.option("unsafe")){var d=c.find_parent(qa),e=d.find_variable("undefined");if(e){var f=b(pb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var z=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a($a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof pb&&a.right instanceof Ya&&a.right.left instanceof pb&&a.right.left.name==a.left.name&&g(a.right.operator,z)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a(Za,function(a,e){function f(a){return a instanceof Eb||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!a.expression.value}function g(a){return a instanceof Db||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Ra){var h=a.condition.car;return a.condition=a.condition.cdr,Ra.cons(h,a)}var i=a.condition.evaluate(e);if(i.length>1)return i[1]?(e.warn("Condition always true [{file}:{line},{col}]",a.start),d(e.parent(),a,a.consequent)):(e.warn("Condition always false [{file}:{line},{col}]",a.start),d(e.parent(),a,a.alternative));var j=i[0].negate(e);l(i[0],j)===j&&(a=b(Za,a,{condition:j,consequent:a.alternative,alternative:a.consequent}));var k=a.consequent,m=a.alternative;if(k instanceof $a&&m instanceof $a&&k.operator==m.operator&&k.left.equivalent_to(m.left)&&!k.left.has_side_effects(e))return b($a,a,{operator:k.operator,left:k.left,right:b(Za,a,{condition:a.condition,consequent:k.right,alternative:m.right})});if(k instanceof Pa&&m.TYPE===k.TYPE&&k.args.length==m.args.length&&!k.expression.has_side_effects(e)&&k.expression.equivalent_to(m.expression)){if(0==k.args.length)return b(Ra,a,{car:a.condition,cdr:k});if(1==k.args.length)return k.args[0]=b(Za,a,{condition:a.condition,consequent:k.args[0],alternative:m.args[0]}),k}if(k instanceof Za&&k.alternative.equivalent_to(m))return b(Za,a,{condition:b(Ya,a,{left:a.condition,operator:"&&",right:k.condition}),consequent:k.consequent,alternative:m});if(k.is_constant(e)&&m.is_constant(e)&&k.equivalent_to(m)){var n=k.constant_value();return a.condition.has_side_effects(e)?Ra.from_array([a.condition,c(e,n,a)]):c(e,n,a)}return f(k)&&g(m)?a.condition.is_boolean()?a.condition:(a.condition=a.condition.negate(e),b(Wa,a.condition,{operator:"!",expression:a.condition})):g(k)&&f(m)?a.condition.negate(e):a}),a(Cb,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Ya&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(ub,a,{value:+a.value})):b(Wa,a,{operator:"!",expression:b(ub,a,{value:1-a.value})})}return a}),a(Ua,function(a,c){var d=a.property;if(d instanceof tb&&c.option("properties")){if(d=d.getValue(),Hb(d)?c.option("screw_ie8"):I(d))return b(Ta,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(ub,a.property,{value:e}))}return a}),a(Ta,function(a,c){var d=a.property;return Hb(d)&&!c.option("screw_ie8")?b(Ua,a,{expression:a.expression,property:b(tb,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(_a,w),a(ab,w),a(vb,w),a(ya,function(a,b){return a.value instanceof zb&&(a.value=null),a})}(),function(){function a(a){return"Literal"==a.type?null!=a.raw?a.raw:a.value+"":void 0}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var l="function From_Moz_"+a+"(M){\n";l+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(l+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":l+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":l+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":l+="M."+c,m+="M."+e;break;case"%":l+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),l+="\n})\n}",m+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),k[a]=l,h(e,m)}function f(a){l.push(a);var b=null!=a?k[a.type](a):null;return l.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k={ExpressionStatement:function(a){var c=a.expression;return"Literal"===c.type&&"string"==typeof c.value?new ca({start:b(a),end:d(a),value:c.value}):new da({start:b(a),end:d(a),body:f(c)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ia({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new Ka(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new cb(g);case"set":return g.value.name=f(c),new db(g);case"get":return g.value.name=f(c),new eb(g)}},ObjectExpression:function(a){return new ab({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Ra.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Ua:Ta)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ha:Ga)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Na:Ma)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new xb(e);switch(typeof c){case"string":return e.value=c,new tb(e);case"number":return e.value=c,new ub(e);case"boolean":return new(c?Eb:Db)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new vb(e)}},Identifier:function(a){var c=l[l.length-2];return new("LabeledStatement"==c.type?ob:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?jb:ib:"FunctionExpression"==c.type?c.id===a?mb:kb:"FunctionDeclaration"==c.type?c.id===a?lb:kb:"CatchClause"==c.type?nb:"BreakStatement"==c.type||"ContinueStatement"==c.type?qb:pb)({start:b(a),end:d(a),name:a.name})}};k.UpdateExpression=k.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Wa:Xa)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("Program",ra,"body@body"),e("EmptyStatement",ga),e("BlockStatement",fa,"body@body"),e("IfStatement",Da,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ia,"label>label, body>body"),e("BreakStatement",Ba,"label>label"),e("ContinueStatement",Ca,"label>label"),e("WithStatement",pa,"object>expression, body>body"),e("SwitchStatement",Ea,"discriminant>expression, cases@body"),e("ReturnStatement",ya,"argument>value"),e("ThrowStatement",za,"argument>value"),e("WhileStatement",ma,"test>condition, body>body"),e("DoWhileStatement",la,"test>condition, body>body"),e("ForStatement",na,"init>init, test>condition, update>step, body>body"), -e("ForInStatement",oa,"left>init, right>object, body>body"),e("DebuggerStatement",ba),e("FunctionDeclaration",va,"id>name, params@argnames, body%body"),e("VariableDeclarator",Oa,"id>name, init>value"),e("CatchClause",Ja,"param>argname, body%body"),e("ThisExpression",rb),e("ArrayExpression",_a,"elements@elements"),e("FunctionExpression",ua,"id>name, params@argnames, body%body"),e("BinaryExpression",Ya,"operator=operator, left>left, right>right"),e("LogicalExpression",Ya,"operator=operator, left>left, right>right"),e("AssignmentExpression",$a,"operator=operator, left>left, right>right"),e("ConditionalExpression",Za,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Qa,"callee>expression, arguments@args"),e("CallExpression",Pa,"callee>expression, arguments@args"),h(ca,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(da,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Fa,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ia,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ja,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(La,function(a){return{type:"VariableDeclaration",kind:a instanceof Na?"const":"var",declarations:a.definitions.map(i)}}),h(Ra,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Sa,function(a){var b=a instanceof Ua;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Va,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Wa,argument:i(a.expression)}}),h(Ya,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(ab,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(bb,function(a){var b,c=F(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof cb?b="init":a instanceof eb?b="get":a instanceof db&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(fb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(vb,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(sb,function(a){var b=a.value;return"number"==typeof b&&(0>b||0===b&&0>1/b)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(wb,function(a){return{type:"Identifier",name:String(a.value)}}),Cb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),xb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),Ab.DEFMETHOD("to_mozilla_ast",function(){return null}),ea.DEFMETHOD("to_mozilla_ast",fa.prototype.to_mozilla_ast),sa.DEFMETHOD("to_mozilla_ast",ua.prototype.to_mozilla_ast);var l=null;_.from_mozilla_ast=function(a){var b=l;l=[];var c=f(a);return l=b,c}}(),c.Compressor=S,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=K,c.MAP=Z,c.OutputStream=R,c.SourceMap=T,c.TreeTransformer=P,c.TreeWalker=y,c.base54=Zb,c.defaults=k,c.mangle_properties=V,c.merge=l,c.parse=O,c.push_uniq=n,c.string_template=o,c.is_identifier=F,c.SymbolDef=Q,c.sys=W,c.MOZ_SourceMap=X,c.UglifyJS=Y,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=Z,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.DEFNODE=w,c.AST_Token=$,c.AST_Node=_,c.AST_Statement=aa,c.AST_Debugger=ba,c.AST_Directive=ca,c.AST_SimpleStatement=da,c.walk_body=x,c.AST_Block=ea,c.AST_BlockStatement=fa,c.AST_EmptyStatement=ga,c.AST_StatementWithBody=ha,c.AST_LabeledStatement=ia,c.AST_IterationStatement=ja,c.AST_DWLoop=ka,c.AST_Do=la,c.AST_While=ma,c.AST_For=na,c.AST_ForIn=oa,c.AST_With=pa,c.AST_Scope=qa,c.AST_Toplevel=ra,c.AST_Lambda=sa,c.AST_Accessor=ta,c.AST_Function=ua,c.AST_Defun=va,c.AST_Jump=wa,c.AST_Exit=xa,c.AST_Return=ya,c.AST_Throw=za,c.AST_LoopControl=Aa,c.AST_Break=Ba,c.AST_Continue=Ca,c.AST_If=Da,c.AST_Switch=Ea,c.AST_SwitchBranch=Fa,c.AST_Default=Ga,c.AST_Case=Ha,c.AST_Try=Ia,c.AST_Catch=Ja,c.AST_Finally=Ka,c.AST_Definitions=La,c.AST_Var=Ma,c.AST_Const=Na,c.AST_VarDef=Oa,c.AST_Call=Pa,c.AST_New=Qa,c.AST_Seq=Ra,c.AST_PropAccess=Sa,c.AST_Dot=Ta,c.AST_Sub=Ua,c.AST_Unary=Va,c.AST_UnaryPrefix=Wa,c.AST_UnaryPostfix=Xa,c.AST_Binary=Ya,c.AST_Conditional=Za,c.AST_Assign=$a,c.AST_Array=_a,c.AST_Object=ab,c.AST_ObjectProperty=bb,c.AST_ObjectKeyVal=cb,c.AST_ObjectSetter=db,c.AST_ObjectGetter=eb,c.AST_Symbol=fb,c.AST_SymbolAccessor=gb,c.AST_SymbolDeclaration=hb,c.AST_SymbolVar=ib,c.AST_SymbolConst=jb,c.AST_SymbolFunarg=kb,c.AST_SymbolDefun=lb,c.AST_SymbolLambda=mb,c.AST_SymbolCatch=nb,c.AST_Label=ob,c.AST_SymbolRef=pb,c.AST_LabelRef=qb,c.AST_This=rb,c.AST_Constant=sb,c.AST_String=tb,c.AST_Number=ub,c.AST_RegExp=vb,c.AST_Atom=wb,c.AST_Null=xb,c.AST_NaN=yb,c.AST_Undefined=zb,c.AST_Hole=Ab,c.AST_Infinity=Bb,c.AST_Boolean=Cb,c.AST_False=Db,c.AST_True=Eb,c.TreeWalker=y,c.KEYWORDS=Fb,c.KEYWORDS_ATOM=Gb,c.RESERVED_WORDS=Hb,c.KEYWORDS_BEFORE_EXPRESSION=Ib,c.OPERATOR_CHARS=Jb,c.RE_HEX_NUMBER=Kb,c.RE_OCT_NUMBER=Lb,c.OPERATORS=Mb,c.WHITESPACE_CHARS=Nb,c.PUNC_BEFORE_EXPRESSION=Ob,c.PUNC_CHARS=Pb,c.REGEXP_MODIFIERS=Qb,c.UNICODE=Rb,c.is_letter=z,c.is_digit=A,c.is_alphanumeric_char=B,c.is_unicode_digit=C,c.is_unicode_combining_mark=D,c.is_unicode_connector_punctuation=E,c.is_identifier=F,c.is_identifier_start=G,c.is_identifier_char=H,c.is_identifier_string=I,c.parse_js_number=J,c.JS_Parse_Error=K,c.js_error=L,c.is_token=M,c.EX_EOF=Sb,c.tokenizer=N,c.UNARY_PREFIX=Tb,c.UNARY_POSTFIX=Ub,c.ASSIGNMENT=Vb,c.PRECEDENCE=Wb,c.STATEMENTS_WITH_LABELS=Xb,c.ATOMIC_START_TOKEN=Yb,c.parse=O,c.TreeTransformer=P,c.SymbolDef=Q,c.base54=Zb,c.OutputStream=R,c.Compressor=S,c.SourceMap=T,c.find_builtins=U,c.mangle_properties=V,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){b=Y.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),Y.base54.reset();var c=null,d={};if(b.spidermonkey?c=Y.AST_Node.from_mozilla_ast(a):("string"==typeof a&&(a=[a]),a.forEach(function(a,e){var f=b.fromString?a:fs.readFileSync(a,"utf8");d[a]=f,c=Y.parse(f,{filename:b.fromString?e:a,toplevel:c,bare_returns:b.parse?b.parse.bare_returns:void 0})})),b.wrap&&(c=c.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var e={warnings:b.warnings};Y.merge(e,b.compress),c.figure_out_scope();var f=Y.Compressor(e);c=c.transform(f)}(b.mangleProperties||b.nameCache)&&(b.mangleProperties.cache=Y.readNameCache(b.nameCache,"props"),c=Y.mangle_properties(c,b.mangleProperties),Y.writeNameCache(b.nameCache,"props",b.mangleProperties.cache)),b.mangle&&(c.figure_out_scope(b.mangle),c.compute_char_frequency(b.mangle),c.mangle_names(b.mangle));var g=b.inSourceMap,h={};if("string"==typeof b.inSourceMap&&(g=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(h.source_map=Y.SourceMap({file:b.outSourceMap,orig:g,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var i in d)d.hasOwnProperty(i)&&h.source_map.get().setSourceContent(i,d[i]);b.output&&Y.merge(h,b.output);var j=Y.OutputStream(h);c.print(j),b.outSourceMap&&"string"==typeof b.outSourceMap&&(j+="\n//# sourceMappingURL="+b.outSourceMap);var k=h.source_map;return k&&(k+=""),{code:j+"",map:k}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Y.OutputStream({beautify:!0});return a(Y.AST_Node),b+""}},{"source-map":138,util:144}],140:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n"," "],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=-1!==d&&dC)&&(A=C)}var D,E;E=-1===A?h.lastIndexOf("@"):h.lastIndexOf("@",A),-1!==E&&(D=h.slice(0,E),h=h.slice(E+1),this.auth=decodeURIComponent(D)),A=-1;for(var B=0;BC)&&(A=C)}-1===A&&(A=h.length),this.host=h.slice(0,A),h=h.slice(A),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var G=this.hostname.split(/\./),B=0,H=G.length;H>B;B++){var I=G[B];if(I&&!I.match(t)){for(var J="",K=0,L=I.length;L>K;K++)J+=I.charCodeAt(K)>127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;H>B;B++){var R=p[B];if(-1!==h.indexOf(R)){var S=encodeURIComponent(R);S===R&&(S=escape(R)),h=h.split(R).join(S)}}var T=h.indexOf("#");-1!==T&&(this.hash=h.substr(T),h=h.slice(0,T));var U=h.indexOf("?");if(-1!==U?(this.search=h.substr(U),this.query=h.substr(U+1),b&&(this.query=y.parse(this.query)),h=h.slice(0,U)):b&&(this.search="",this.query={}),h&&(this.pathname=h),x[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var P=this.pathname||"",V=this.search||"";this.path=P+V}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j.isObject(this.query)&&Object.keys(this.query).length&&(f=y.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||x[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(j.isString(a)){var b=new d;b.parse(a,!1,!0),a=b}for(var c=new d,e=Object.keys(this),f=0;f0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":141,punycode:79,querystring:82}],141:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],142:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],143:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],144:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":143,_process:78,inherits:71}],145:[function(a,b,c){c.baseChar=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/,c.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,c.letter=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3]/,c.combiningChar=/[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A]/,c.digit=/[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/,c.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],146:[function(a,b,c){function d(){for(var a={},b=0;bdeprecated <'+a+"> element"):d(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},j.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},j.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},j.prototype.testAttribute=function(a,b,c){f(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):h(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):g(b)?this.log.push('Found style attribute on <'+a+"> element."):i(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element)."); -},j.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},c.HTMLLint=j},{}],"html-minifier/src/htmlparser":[function(a,b,c){"use strict";function d(a){return h(a,!0)}function e(a){var b=i.source+"(?:\\s*("+f(a)+")\\s*(?:"+l.join("|")+"))?";if(a.customAttrSurround){for(var c=[],d=a.customAttrSurround.length-1;d>=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){var c,d,e,f,g,h,i,j=7;r&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;m>l;l++,k+=j)if(c=a[k+1],h=a[k+2],c){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!c&&(c=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=v(c)?c:e),{name:c,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(k.push({tag:c,attrs:h}),g=c,d=""),b.start&&b.start(c,h,e,d)}function f(a,c){var d;if(c){var e=c.toLowerCase();for(d=k.length-1;d>=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":147,ncname:74}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!_(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!Z(b.slice(1)):!$(b));var g=c&&!_(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!$(c.slice(1)):!Z(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?X(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&aa(X(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||aa(f)}}return!0}function p(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value).toLowerCase();return""===f||"text/css"===f}}return!0}function q(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===X(c.toLowerCase())}function r(a,b){return ba(a)||"draggable"===a&&!ca(b)}function s(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function t(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function u(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function v(a,b,c,d,f){if(c&&j(b,d)){if(c=X(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=M(da+c+ea,d.minifyJS);return g.slice(da.length,-ea.length)}return c}return"class"===b?e(X(c)):s(b,a)?(c=X(c),d.minifyURLs&&!u(a,f)?L(c,d.minifyURLs):c):t(b,a)?X(c):"style"===b?(c=X(c),c&&(c=c.replace(/\s*;\s*$/,"")),d.minifyCSS?N(c,d.minifyCSS,!0):c):(w(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=X(c.replace(/\s*;\s*/g,";"))),c)}function w(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function x(a){return"*{"+a+"}"}function y(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function z(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return P(a,b);return a}function B(a,b){switch(a){case"html":case"head":return!0;case"body":return!ha(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function C(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return pa(a)}return!1}function D(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ia(b);case"p":return ja(b);case"rb":case"rt":case"rp":return la(b);case"rtc":return ma(b);case"option":return na(b);case"thead":case"tbody":return oa(b);case"tfoot":return"tbody"===b;case"td":case"th":return qa(b)}return!1}function E(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||wa.test(b):!1}function F(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function G(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(F("src",b))return!1;break;case"iframe":if(F("src",b)||F("srcdoc",b))return!1;break;case"object":if(F("data",b))return!1;break;case"applet":if(F("code",b))return!1}return!0}function H(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function I(a){return!/^(?:pre|textarea)$/.test(a)}function J(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&q(c,j,l))return"";if(l=v(c,j,l,f,b),f.removeEmptyAttributes&&E(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var p=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>p?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&r(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function K(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function L(a,b){try{return U.relate(a,b)}catch(c){return R(c),a}}function M(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return V.minify(d,b).code}catch(e){return R(e),a}}function N(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new S(b);return c?y(f.minify(x(e)).styles):f.minify(e).styles}catch(g){return R(g),a}}function O(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function P(a,b,c){function d(a,c){return H(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return I(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=u.length-1;a>0&&!/^<[^\/!]/.test(u[a]);)a--;u.length=Math.max(0,a)}function l(){for(var a=u.length-1;a>0&&!/^<\//.test(u[a]);)a--;u.length=Math.max(0,a)}function m(a){var c;u.length>1&&/^(?:0&&/\s$/.test(u[u.length-1])&&(c=u.length-1),c>0&&(u[c]=u[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];K(b),a=b.collapseWhitespace?X(a):a;var q,r,s,t,u=[],v="",w="",x=[],y=[],E=[],F="",L="",P=b.lint,S=Date.now(),U=[],V=[];a=a.replace(/([\s\S]*?)/g,function(b,c){s||(s=O(a));var d="";return U.push(c),d});var W=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(W.length){var Y=new RegExp("\\s*(?:"+W.join("|")+")+\\s*","g");a=a.replace(Y,function(b){t||(t=O(a));var c=t+V.length;return V.push(b)," "+c+" "})}new T(a,{partialMarkup:c,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,w=a,q=a,$(a)||(v=""),r=!1,x=c;var p=b.removeOptionalTags;if(p){var s=va(a);s&&B(F,a)&&k(),F="",s&&D(L,a)&&(l(),p=!C(L,a)),L=""}b.collapseWhitespace&&(y.length||m(a),j(a,c)||y.push(a),d(a,c)||E.push(a));var t="<"+a,z=f&&b.keepClosingSlash;u.push(t),P&&P.testElement(a);for(var A,G=[],H=!0,I=c.length;--I>=0;)P&&P.testAttribute(a,c[I].name.toLowerCase(),c[I].value),A=J(c[I],c,a,z,I,b,H),A&&(H=!1,G.unshift(A));G.length>0?(u.push(" "),u.push.apply(u,G)):p&&fa(a)&&(F=a),u.push(u.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(y.length?a===y[y.length-1]&&y.pop():m("/"+a),E.length&&a===E[E.length-1]&&E.pop());var f=!1;a===w&&(w="",f=!r),b.removeOptionalTags&&(f&&ra(F)&&k(),F="",!va(a)||!L||ua(L)||"p"===L&&ka(a)||l(),L=ga(a)?a:""),b.removeEmptyElements&&f&&G(a,c)?(k(),F="",L=""):(!b.includeAutoGeneratedTags&&d||u.push(""),q="/"+a,Z(a)?f&&(v+="|"):v="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.collapseWhitespace){if(!y.length){if("comment"===c){var h=""===u[u.length-1];if(h&&(c=q),u.length>1&&(h||/ $/.test(v))){var i=u.length-2;u[i]=u[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&$("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(v))),a=c||d?g(a,c,d,b):X(a),!a&&/\s$/.test(v)&&c&&"/"===c.charAt(0))for(var m=u.length-2,n=c.slice(1);m>=0&&j(n);m--){var s=u[m],t=s.match(/^<\/([\w:-]+)>$/);if(t)n=t[1];else if(/>$/.test(s)||(u[m]=g(s,null,d,b)))break}}E.length||(a=c&&d||"html"===d?a:e(a))}!b.processScripts||"script"!==w&&"style"!==w||(a=A(a,b,x)),b.minifyJS&&o(w,x)&&(a=M(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),b.minifyCSS&&p(w,x)&&(a=N(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===F||"body"===F&&!/^\s/.test(a))&&k(),F="",(sa(L)||ta(L)&&!/^\s/.test(a))&&l(),L=""),q=/^\s*$/.test(a)?c:"comment",v+=a,a&&(r=!0),P&&P.testChars(a),u.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+z(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(F="",L=""),u.push(a)},doctype:function(a){u.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(ra(F)&&k(),L&&!ua(L)&&l());var _=Q(u,b);return t&&(_=_.replace(new RegExp("(\\s*)"+t+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=V[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),s&&(_=_.replace(new RegExp("","g"),function(a,b){return U[+b]})),R("minified in: "+(Date.now()-S)+"ms"),_}function Q(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length0&&(a.splice(b-1,2),b-=2)}}function g(a,b){var c;return a&&"."===a.charAt(0)&&b&&(c=b.split("/"),c=c.slice(0,c.length-1),c=c.concat(a.split("/")),f(c),a=c.join("/")),a}function h(a){return function(b){return g(b,a)}}function i(a){function b(b){o[a]=b}return b.fromText=function(a,b){throw new Error("amdefine does not implement load.fromText")},b}function j(a,c,f){var g,h,i,j;if(a)h=o[a]={},i={id:a,uri:d,exports:h},g=l(e,h,i,a);else{if(p)throw new Error("amdefine with no module ID cannot be called more than once per file.");p=!0,h=b.exports,i=b,g=l(e,h,i,b.id)}c&&(c=c.map(function(a){return g(a)})),j="function"==typeof f?f.apply(i.exports,c):f,void 0!==j&&(i.exports=j,a&&(o[a]=i.exports))}function k(a,b,c){Array.isArray(a)?(c=b,b=a,a=void 0):"string"!=typeof a&&(c=a,a=b=void 0),b&&!Array.isArray(b)&&(c=b,b=void 0),b||(b=["require","exports","module"]),a?n[a]=[a,b,c]:j(a,b,c)}var l,m,n={},o={},p=!1,q=a("path");return l=function(a,b,d,e){function f(f,g){return"string"==typeof f?m(a,b,d,f,e):(f=f.map(function(c){return m(a,b,d,c,e)}),void(g&&c.nextTick(function(){g.apply(null,f)})))}return f.toUrl=function(a){return 0===a.indexOf(".")?g(a,q.dirname(d.filename)):a},f},e=e||function(){return b.require.apply(b,arguments)},m=function(a,b,c,d,e){var f,k,p=d.indexOf("!"),q=d;if(-1===p){if(d=g(d,e),"require"===d)return l(a,b,c,e);if("exports"===d)return b;if("module"===d)return c;if(o.hasOwnProperty(d))return o[d];if(n[d])return j.apply(null,n[d]),o[d];if(a)return a(q);throw new Error("No module with ID: "+d)}return f=d.substring(0,p),d=d.substring(p+1,d.length),k=m(a,b,c,f,e),d=k.normalize?k.normalize(d,h(e)):g(d,e),o[d]?o[d]:(k.load(d,l(a,b,c,e),i(d),{}),o[d])},k.require=function(a){return o[a]?o[a]:n[a]?(j.apply(null,n[a]),o[a]):void 0},k.amd={},k}b.exports=e}).call(this,a("_process"),"/node_modules/amdefine/amdefine.js")},{_process:79,path:77}],2:[function(a,b,c){"use strict";function d(){var a,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=b.length;for(a=0;c>a;a++)i[a]=b[a];for(a=0;c>a;++a)j[b.charCodeAt(a)]=a;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63}function e(a){var b,c,d,e,f,g,h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f="="===a[h-2]?2:"="===a[h-1]?1:0,g=new k(3*h/4-f),d=f>0?h-4:h;var i=0;for(b=0,c=0;d>b;b+=4,c+=3)e=j[a.charCodeAt(b)]<<18|j[a.charCodeAt(b+1)]<<12|j[a.charCodeAt(b+2)]<<6|j[a.charCodeAt(b+3)],g[i++]=(16711680&e)>>16,g[i++]=(65280&e)>>8,g[i++]=255&e;return 2===f?(e=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,g[i++]=255&e):1===f&&(e=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,g[i++]=e>>8&255,g[i++]=255&e),g}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;c>g;g+=3)d=(a[g]<<16)+(a[g+1]<<8)+a[g+2],e.push(f(d));return e.join("")}function h(a){for(var b,c=a.length,d=c%3,e="",f=[],h=16383,j=0,k=c-d;k>j;j+=h)f.push(g(a,j,j+h>k?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}c.toByteArray=e,c.fromByteArray=h;var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array;d()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){arguments[4][3][0].apply(c,arguments)},{dup:3}],5:[function(a,b,c){(function(b){"use strict";function d(){try{var a=new Uint8Array(1);return a.foo=function(){return 42},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(b){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return b.byteLength,f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a.length=b;var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(_,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f._augment=function(a){return a.__proto__=f.prototype,a},f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=this.subarray(a,b),d.__proto__=f.prototype;else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bc&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else Uint8Array.prototype.set.call(a,this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}};var _=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:71,isarray:6}],6:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],7:[function(a,b,c){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],8:[function(a,b,c){b.exports=a("./lib/clean")},{"./lib/clean":9}],9:[function(a,b,c){(function(c){function d(a){return void 0===a?["all"]:a}function e(a){return!C.existsSync(a)&&!/\.css$/.test(a)}function f(a){return C.existsSync(a)&&C.statSync(a).isDirectory()}function g(a){return a?{hostname:E.parse(a).hostname,port:parseInt(E.parse(a).port)}:{}}function h(a,b){function c(c){return c=b.options.debug?j(b,c):l(b,c),c=i(b,c),a?a.call(null,b.errors.length>0?b.errors:null,c):c}return function(a){return b.options.sourceMap?b.inputSourceMapTracker.track(a,function(){return b.options.sourceMapInlineSources?b.inputSourceMapTracker.resolveSources(function(){return c(a)}):c(a)}):c(a)}}function i(a,b){return b.stats=a.stats,b.errors=a.errors,b.warnings=a.warnings,b}function j(a,b){var d=c.hrtime();a.stats.originalSize=a.sourceTracker.removeAll(b).length,b=l(a,b);var e=c.hrtime(d);return a.stats.timeSpent=~~(1e3*e[0]+e[1]/1e6),a.stats.efficiency=1-b.styles.length/a.stats.originalSize,a.stats.minifiedSize=b.styles.length,b}function k(a){return function(b,d){var e=b.constructor.name+"#"+d,f=c.hrtime();a(b,d);var g=c.hrtime(f);console.log("%d ms: "+e,1e3*g[0]+g[1]/1e6)}}function l(a,b){function c(b,c){return b=g.restore(b,c),b=h.restore(b),b=d.rebase?n(b,a):b,b=f.restore(b),e.restore(b)}var d=a.options,e=new t(a,d.keepSpecialComments,d.keepBreaks,d.sourceMap),f=new u(d.sourceMap),g=new v(d.sourceMap),h=new w(a,d.sourceMap,d.compatibility.properties.urlQuotes),i=d.sourceMap?s:r,j=function(a,c){b="function"==typeof a?a(b):a[c](b)};d.benchmark&&(j=k(j)),j(e,"escape"),j(f,"escape"),j(h,"escape"),j(g,"escape");var l=o(b,a);return p(l,d),d.advanced&&q(l,d,a.validator,!0),i(l,d,c,a.inputSourceMapTracker)}var m=a("./imports/inliner"),n=a("./urls/rebase"),o=a("./tokenizer/tokenize"),p=a("./selectors/simple"),q=a("./selectors/advanced"),r=a("./stringifier/simple"),s=a("./stringifier/source-maps"),t=a("./text/comments-processor"),u=a("./text/expressions-processor"),v=a("./text/free-text-processor"),w=a("./text/urls-processor"),x=a("./utils/compatibility"),y=a("./utils/input-source-map-tracker"),z=a("./utils/source-tracker"),A=a("./utils/source-reader"),B=a("./properties/validator"),C=a("fs"),D=a("path"),E=a("url"),F=a("./utils/object").override,G=5e3,H=b.exports=function(a){a=a||{},this.options={advanced:void 0===a.advanced?!0:!!a.advanced,aggressiveMerging:void 0===a.aggressiveMerging?!0:!!a.aggressiveMerging,benchmark:a.benchmark,compatibility:new x(a.compatibility).toOptions(),debug:a.debug,explicitRoot:!!a.root,explicitTarget:!!a.target,inliner:a.inliner||{},keepBreaks:a.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in a?a.keepSpecialComments:"*",mediaMerging:void 0===a.mediaMerging?!0:!!a.mediaMerging,processImport:void 0===a.processImport?!0:!!a.processImport,processImportFrom:d(a.processImportFrom),rebase:void 0===a.rebase?!0:!!a.rebase,relativeTo:a.relativeTo,restructuring:void 0===a.restructuring?!0:!!a.restructuring,root:a.root||c.cwd(),roundingPrecision:a.roundingPrecision,semanticMerging:void 0===a.semanticMerging?!1:!!a.semanticMerging,shorthandCompacting:void 0===a.shorthandCompacting?!0:!!a.shorthandCompacting,sourceMap:a.sourceMap,sourceMapInlineSources:!!a.sourceMapInlineSources,target:!a.target||e(a.target)||f(a.target)?a.target:D.dirname(a.target)},this.options.inliner.timeout=this.options.inliner.timeout||G,this.options.inliner.request=F(g(c.env.HTTP_PROXY||c.env.http_proxy),this.options.inliner.request||{})};H.prototype.minify=function(a,b){var d={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!b,sourceTracker:new z,validator:new B(this.options.compatibility)};if(d.options.sourceMap&&(d.inputSourceMapTracker=new y(d)),d.sourceReader=new A(d,a),a=d.sourceReader.toString(),d.options.processImport||a.indexOf("@shallow")>0){var e=b?c.nextTick:function(a){return a()};return e(function(){return new m(d).process(a,{localOnly:d.localOnly,imports:d.options.processImportFrom,whenDone:h(b,d)})})}return h(b,d)(a)}}).call(this,a("_process"))},{"./imports/inliner":13,"./properties/validator":27,"./selectors/advanced":30,"./selectors/simple":43,"./stringifier/simple":47,"./stringifier/source-maps":48,"./text/comments-processor":49,"./text/expressions-processor":51,"./text/free-text-processor":52,"./text/urls-processor":53,"./tokenizer/tokenize":56,"./urls/rebase":57,"./utils/compatibility":61,"./utils/input-source-map-tracker":62,"./utils/object":63,"./utils/source-reader":65,"./utils/source-tracker":66,_process:79,fs:4,path:77,url:141}],10:[function(a,b,c){function d(a,b,c,d){return b+h[c.toLowerCase()]+d}function e(a,b,c){return i[b.toLowerCase()]+c}var f={},g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},h={},i={};for(var j in g){var k=g[j];j.length-1,c=a.replace(l,d);return c!=a&&(c=c.replace(l,d)),b?c.replace(m,e):c},b.exports=f},{}],11:[function(a,b,c){function d(a,b,c){this.hue=a,this.saturation=b,this.lightness=c}function e(a,b,c){var d,e,g;if(a%=360,0>a&&(a+=360),a=~~a/360,0>b?b=0:b>100&&(b=100),b=~~b/100,0>c?c=0:c>100&&(c=100),c=~~c/100,0===b)d=e=g=c;else{var h=.5>c?c*(1+b):c+b-c*b,i=2*c-h;d=f(i,h,a+1/3),e=f(i,h,a),g=f(i,h,a-1/3)}return[~~(255*d),~~(255*e),~~(255*g)]}function f(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+(b-a)*(2/3-c)*6:a}d.prototype.toHex=function(){var a=e(this.hue,this.saturation,this.lightness),b=a[0].toString(16),c=a[1].toString(16),d=a[2].toString(16);return"#"+((1==b.length?"0":"")+b)+((1==c.length?"0":"")+c)+((1==d.length?"0":"")+d)},b.exports=d},{}],12:[function(a,b,c){function d(a,b,c){this.red=a,this.green=b,this.blue=c}d.prototype.toHex=function(){var a=Math.max(0,Math.min(~~this.red,255)),b=Math.max(0,Math.min(~~this.green,255)),c=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(a<<16|b<<8|c).toString(16)).slice(-6)},b.exports=d},{}],13:[function(a,b,c){(function(c){function d(a){this.outerContext=a}function e(a,b){if(b.shallow)return b.shallow=!1,b.done.push(a),h(b);for(var c=0,d=0,e=0,f=i(a);d-1&&-1==d?c:-1==c&&d>-1?d:Math.min(c,d)}function h(a){return a.left.length>0?e.apply(null,a.left.shift()):a.whenDone(a.done.join("")); +}function i(a){var b=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,c=0,d=0,e=!1;return function(f){var g,h=0,i=0,j=0,k=0;if(e)return!1;do{if(f>c&&d>f)return!0;if(g=a.match(b),!g)return e=!0,!1;c=h=g.index,i=h+g[0].length,k=i+d,j=k-g[0].length,a=a.substring(i),d=k}while(f>k);return k>f&&f>j}}function j(a){for(var b=i(a),c=-1;;)if(c=a.indexOf("{",c+1),-1==c||!b(c))break;return c>-1}function k(a,b,c,d){d.shallow=a.indexOf("@shallow")>0;var e=a.substring(g(a,b)+"@import".length+1,c).replace(/@shallow\)$/,")").trim(),f=0===e.indexOf("url("),i=f?4:0,k=/^['"]/.exec(e.substring(i,i+2)),p=k?e.indexOf(k[0],i+1):v(e," ")[0].length-(f?1:0),q=e.substring(i,p).replace(/['"]/g,"").replace(/\)$/,"").trim(),r=e.substring(p+1).replace(/^\)/,"").trim(),s=d.isRemote||y.test(q);if(s&&(d.localOnly||!l(q,!0,d.imports)))return d.afterContent||j(d.done.join(""))?d.warnings.push('Ignoring remote @import of "'+q+'" as no callback given.'):o(q,r,d),h(d);if(!s&&!l(q,!1,d.imports))return d.afterImport?d.warnings.push('Ignoring local @import of "'+q+'" as after other inlined content.'):o(q,r,d),h(d);if(!s&&d.afterContent)return d.warnings.push('Ignoring local @import of "'+q+'" as after other CSS content.'),h(d);var t=s?m:n;return t(q,r,d)}function l(a,b,c){if(0===c.length)return!1;b&&z.test(a)&&(a="http:"+a);for(var d=b?t.parse(a).host:a,e=!0,f=0;f-1)return h(d);d.debug&&console.error("Inlining remote stylesheet: "+i),d.visited.push(i);var k=0===i.indexOf("http://")?r.get:s.get,l=!1,n=w(t.parse(i),d.inliner.request);void 0!==d.inliner.request.hostname&&(n.path=n.href),k(n,function(a){if(a.statusCode<200||a.statusCode>399)return g("error "+a.statusCode);if(a.statusCode>299){var h=t.resolve(i,a.headers.location);return m(h,b,d)}var k=[],l=t.parse(i);a.on("data",function(a){k.push(a.toString())}),a.on("end",function(){var a=k.join("");d.rebase&&(a=u(a,{toBase:j},d)),d.sourceReader.trackSource(i,a),a=d.sourceTracker.store(i,a),a=f(a,i),b.length>0&&(a="@media "+b+"{"+a+"}"),d.afterImport=!0;var g=w(d,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});c.nextTick(function(){e(a,g)})})}).on("error",function(a){g(a.message)}).on("timeout",function(){g("timeout")}).setTimeout(d.inliner.timeout)}function n(a,b,c){var d="/"==a[0]?c.root:c.relativeTo,f=q.resolve(q.join(d,a));if(!p.existsSync(f)||!p.statSync(f).isFile())return c.errors.push('Broken @import declaration of "'+a+'"'),h(c);if(c.visited.indexOf(f)>-1)return h(c);c.debug&&console.error("Inlining local stylesheet: "+f),c.visited.push(f);var g=q.dirname(f),i=p.readFileSync(f,"utf8");if(c.rebase){var j={relative:!0,fromBase:g,toBase:c.baseRelativeTo};i=u(i,j,c)}var k=q.relative(c.root,f);c.sourceReader.trackSource(k,i),i=c.sourceTracker.store(k,i),b.length>0&&(i="@media "+b+"{"+i+"}"),c.afterImport=!0;var l=w(c,{relativeTo:g});return e(i,l)}function o(a,b,c){var d="@import url("+a+")"+(b.length>0?" "+b:"")+";";c.done.push(d)}var p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../urls/rewrite"),v=a("../utils/split"),w=a("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//,z=/^\/\//;d.prototype.process=function(a,b){var c=this.outerContext.options.root;return b=w(b,{baseRelativeTo:this.outerContext.options.relativeTo||c,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||c,root:c,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),e(a,b)},b.exports=d}).call(this,a("_process"))},{"../urls/rewrite":59,"../utils/object.js":63,"../utils/split":67,_process:79,fs:4,http:123,https:70,path:77,url:141}],14:[function(a,b,c){function d(a){return function(b){return"invert"==b[0]||a.isValidColor(b[0])}}function e(a){return function(b){return"inherit"!=b[0]&&a.isValidStyle(b[0])&&!a.isValidColorValue(b[0])}}function f(a,b,c){var d=c[a];return n(d.doubleValues&&2==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]],[d.defaultValue[1]]]:d.doubleValues&&1==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]]]:[[a,b.important],[d.defaultValue]])}function g(a){return function(b){return"inherit"!=b[0]&&a.isValidWidth(b[0])&&!a.isValidStyleKeyword(b[0])&&!a.isValidColorValue(b[0])}}function h(a,b,c){var d=f("background-image",a,b),e=f("background-position",a,b),g=f("background-size",a,b),h=f("background-repeat",a,b),i=f("background-attachment",a,b),j=f("background-origin",a,b),k=f("background-clip",a,b),l=f("background-color",a,b),m=[d,e,g,h,i,j,k,l],n=a.value,p=!1,q=!1,r=!1,s=!1;if(1==a.value.length&&"inherit"==a.value[0][0])return l.value=d.value=h.value=e.value=g.value=j.value=k.value=a.value,m;for(var t=n.length-1;t>=0;t--){var u=n[t];if(c.isValidBackgroundAttachment(u[0]))i.value=[u];else if(c.isValidBackgroundBox(u[0]))q?(j.value=[u],r=!0):(k.value=[u],q=!0);else if(c.isValidBackgroundRepeat(u[0]))s?h.value.unshift(u):(h.value=[u],s=!0);else if(c.isValidBackgroundPositionPart(u[0])||c.isValidBackgroundSizePart(u[0]))if(t>0){var v=n[t-1];if(v[0].indexOf("/")>0){var w=o(v[0],"/");g.value=[[w.pop()].concat(v.slice(1)),u],n[t-1]=[w.pop()].concat(v.slice(1))}else t>1&&"/"==n[t-2]?(g.value=[v,u],t-=2):"/"==v[0]?g.value=[u]:(p||(e.value=[]),e.value.unshift(u),p=!0)}else p||(e.value=[]),e.value.unshift(u),p=!0;else if(c.isValidBackgroundPositionAndSize(u[0])){var x=o(u[0],"/");g.value=[[x.pop()].concat(u.slice(1))],e.value=[[x.pop()].concat(u.slice(1))]}else l.value[0][0]!=b[l.name].defaultValue&&"none"!=l.value[0][0]||!c.isValidColor(u[0])?(c.isValidUrl(u[0])||c.isValidFunction(u[0]))&&(d.value=[u]):l.value=[u]}return q&&!r&&(j.value=k.value.slice(0)),m}function i(a,b){for(var c=a.value,d=-1,e=0,g=c.length;g>e;e++)if("/"==c[e][0]){d=e;break}if(-1==d)return j(a,b);var h=f(a.name,a,b);h.value=c.slice(0,d),h.components=j(h,b);var i=f(a.name,a,b);i.value=c.slice(d+1),i.components=j(i,b);for(var k=0;4>k;k++)h.components[k].multiplex=!0,h.components[k].value=h.components[k].value.concat([["/"]]).concat(i.components[k].value);return h.components}function j(a,b){var c=b[a.name].components,d=[],e=a.value;if(e.length<1)return[];e.length<2&&(e[1]=e[0].slice(0)),e.length<3&&(e[2]=e[0].slice(0)),e.length<4&&(e[3]=e[1].slice(0));for(var f=c.length-1;f>=0;f--){var g=n([[c[f],a.important]]);g.value=[e[f]],d.unshift(g)}return d}function k(a){return function(b,c,d){var e,g,h,i,j=[],k=b.value;for(e=0,h=k.length;h>e;e++)","==k[e][0]&&j.push(e);if(0===j.length)return a(b,c,d);var l=[];for(e=0,h=j.length;h>=e;e++){var m=0===e?0:j[e-1]+1,n=h>e?j[e]:k.length,o=f(b.name,b,c);o.value=k.slice(m,n),l.push(a(o,c,d))}var q=l[0];for(e=0,h=q.length;h>e;e++)for(q[e].multiplex=!0,g=1,i=l.length;i>g;g++)q[e].value.push([p]),Array.prototype.push.apply(q[e].value,l[g][e].value);return q}}function l(a,b,c){var d=f("list-style-type",a,b),e=f("list-style-position",a,b),g=f("list-style-image",a,b),h=[d,e,g];if(1==a.value.length&&"inherit"==a.value[0][0])return d.value=e.value=g.value=[a.value[0]],h;var i=a.value.slice(0),j=i.length,k=0;for(k=0,j=i.length;j>k;k++)if(c.isValidUrl(i[k][0])||"0"==i[k][0]){g.value=[i[k]],i.splice(k,1);break}for(k=0,j=i.length;j>k;k++)if(c.isValidListStyleType(i[k][0])){d.value=[i[k]],i.splice(k,1);break}return i.length>0&&c.isValidListStylePosition(i[0][0])&&(e.value=[i[0]]),h}function m(a,b,c){for(var h,i,j,k=b[a.name],l=[f(k.components[0],a,b),f(k.components[1],a,b),f(k.components[2],a,b)],m=0;3>m;m++){var n=l[m];n.name.indexOf("color")>0?h=n:n.name.indexOf("style")>0?i=n:j=n}if(1==a.value.length&&"inherit"==a.value[0][0]||3==a.value.length&&"inherit"==a.value[0][0]&&"inherit"==a.value[1][0]&&"inherit"==a.value[2][0])return h.value=i.value=j.value=[a.value[0]],l;var o,p,q=a.value.slice(0);return q.length>0&&(p=q.filter(g(c)),o=p.length>1&&("none"==p[0][0]||"auto"==p[0][0])?p[1]:p[0],o&&(j.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(e(c))[0],o&&(i.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(d(c))[0],o&&(h.value=[o],q.splice(q.indexOf(o),1))),l}var n=a("./wrap-for-optimizing").single,o=a("../utils/split"),p=",";b.exports={background:h,border:m,borderRadius:i,fourValues:j,listStyle:l,multiplex:k,outline:m}},{"../utils/split":67,"./wrap-for-optimizing":29}],15:[function(a,b,c){function d(){return!0}function e(a,b,c){var d=a.value[0][0],e=b.value[0][0];return"none"==e||"inherit"==e||c.isValidUrl(e)?!0:"none"==d||"inherit"==d||c.isValidUrl(d)?!1:j(a,b,c)}function f(a,b,c){return g(a.components[2],b.components[2],c)}function g(a,b,c){var d=a.value[0][0],e=b.value[0][0];return(c.colorOpacity||!c.isValidRgbaColor(d)&&!c.isValidHslaColor(d))&&(c.colorOpacity||!c.isValidRgbaColor(e)&&!c.isValidHslaColor(e))?c.isValidNamedColor(e)||c.isValidHexColor(e)?!0:c.isValidNamedColor(d)||c.isValidHexColor(d)?!1:c.isValidRgbaColor(e)||c.isValidHslaColor(e)?!0:c.isValidRgbaColor(d)||c.isValidHslaColor(d)?!1:j(a,b,c):!1}function h(a,b,c){var d=a.value[0][0],e=b.value[0][0];return!(c.isValidFunction(d)^c.isValidFunction(e))}function i(a,b){var c=a.value[0][0],d=b.value[0][0];return c===d}function j(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.areSameFunction(d,e)?!0:d===e}function k(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.isValidAndCompatibleUnitWithoutFunction(d)&&!c.isValidAndCompatibleUnitWithoutFunction(e)?!1:c.isValidUnitWithoutFunction(e)?!0:c.isValidUnitWithoutFunction(d)?!1:c.isValidFunctionWithoutVendorPrefix(e)&&c.isValidFunctionWithoutVendorPrefix(d)?!0:j(a,b,c)}b.exports={always:d,backgroundImage:e,border:f,color:g,sameValue:i,sameFunctionOrValue:j,twoOptionalFunctions:h,unit:k}},{}],16:[function(a,b,c){function d(a){for(var b=e(a),c=a.components.length-1;c>=0;c--){var d=e(a.components[c]);d.value=a.components[c].value.slice(0),b.components.unshift(d)}return b.dirty=!0,b.value=a.value.slice(0),b}function e(a){var b=f([[a.name,a.important,a.hack]]);return b.unused=!1,b}var f=a("./wrap-for-optimizing").single;b.exports={deep:d,shallow:e}},{"./wrap-for-optimizing":29}],17:[function(a,b,c){var d=a("./break-up"),e=a("./can-override"),f=a("./restore"),g={color:{canOverride:e.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:d.multiplex(d.background),defaultValue:"0 0",restore:f.multiplex(f.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:e.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:e.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:e.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:e.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:e.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:e.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:e.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:e.always,defaultValue:"scroll"},border:{breakUp:d.border,canOverride:e.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:f.withoutDefaults,shorthand:!0},"border-color":{canOverride:e.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:e.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:e.always,breakUp:d.listStyle,restore:f.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:e.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:e.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:e.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:d.outline,restore:f.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:e.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:e.always,defaultValue:"none"},"outline-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:e.sameFunctionOrValue},"-ms-transform":{canOverride:e.sameFunctionOrValue},"-webkit-transform":{canOverride:e.sameFunctionOrValue},transform:{canOverride:e.sameFunctionOrValue}},h=function(a,b,c){c=c||{},g[a]={canOverride:c.canOverride,components:b,breakUp:c.breakUp||d.fourValues,defaultValue:c.defaultValue||"0",restore:c.restore||f.fourValues,shortestValue:c.shortestValue,shorthand:!0};for(var h=0;hj;j++)g[g[i].components[j]].componentOf=i;b.exports=g},{"./break-up":14,"./can-override":15,"./restore":25}],18:[function(a,b,c){function d(a,b,c,d){for(var g=e(b),h=e(c),i=0,j=b.value.length;j>i;i++)for(var k=0,l=c.value.length;l>k;k++)if(b.value[i][0]!=f&&c.value[k][0]!=f&&(g.value=[b.value[i]],h.value=[c.value[k]],!a(g,h,d)))return!1;return!0}var e=a("./clone").shallow,f=",";b.exports=d},{"./clone":16}],19:[function(a,b,c){function d(a){for(var b=a.value.length-1;b>=0;b--)if("inherit"==a.value[b][0])return!0;return!1}b.exports=d},{}],20:[function(a,b,c){function d(a,b,c,d){function e(a){return b===!1||b===!0?b:b.indexOf(a)>-1}function g(b){var c=a[b-1],d=a[b];return m(c.all,c.position)==m(d.all,d.position)}var h,i,j={},k=null;a:for(var l=0,o=a.length;o>l;l++){var p=a[l],q=!("-ms-filter"!=p.name&&"filter"!=p.name||"background"!=k&&"background-image"!=k)?k:p.name,r=p.important,s=p.hack;if(!p.unused)if(l>0&&h&&q==k&&r==h.important&&s==h.hack&&g(l)&&!h.unused)p.unused=!0;else{if(q in j&&(c&&q!=k||e(l))){var t=j[q],u=f[q]&&f[q].canOverride,v=!1;for(i=t.length-1;i>=0;i--){var w=a[t[i]],x=w.name!=q,y=w.important,z=w.hack;if(!w.unused&&(!x||!y)&&(y||!(z&&!s||!z&&s))&&(!y||"star"!=s&&"underscore"!=s)&&(z||s||x||!u||u(w,p,d))){if(y&&!r||y&&s){p.unused=!0,h=p;continue a}v=!0,w.unused=!0}}if(v){l=-1,h=null,k=null,j={};continue}}else{j[q]=j[q]||[],j[q].push(l);var A=n[q];if(A)for(i=A.length-1;i>=0;i--){var B=A[i];j[B]=j[B]||[],j[B].push(l)}}k=q,h=p}}}function e(a,b,c,f,m,n){var o=g(b);h(o,n),d(o,c,m.aggressiveMerging,n);for(var p=0,q=o.length;q>p;p++){var r=o[p];r.variable&&r.block&&e(a,r.value[0],c,f,m,n)}f&&m.shorthandCompacting&&(i(o,m.compatibility,n),j(o,m.sourceMap,n)),l(o),k(o)}var f=a("./compactable"),g=a("./wrap-for-optimizing").all,h=a("./populate-components"),i=a("./override-compactor"),j=a("./shorthand-compactor"),k=a("./remove-unused"),l=a("./restore-from-optimizing"),m=a("../stringifier/one-time").property,n={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};b.exports=e},{"../stringifier/one-time":46,"./compactable":17,"./override-compactor":21,"./populate-components":22,"./remove-unused":23,"./restore-from-optimizing":24,"./shorthand-compactor":26,"./wrap-for-optimizing":29}],21:[function(a,b,c){function d(a){return function(b){return a.name===b.name}}function e(a,b){for(var c=0;c-1}function g(a,b){b.unused=!0,l(b,m(a)),a.value=b.value}function h(a,b){b.unused=!0,a.multiplex=!0,a.value=b.value}function i(a,b){b.unused=!0,a.value=b.value}function j(a,b){b.multiplex?h(a,b):a.multiplex?g(a,b):i(a,b)}function k(a,b){b.unused=!0;for(var c=0,d=a.components.length;d>c;c++)j(a.components[c],b.components[c],a.multiplex)}function l(a,b){a.multiplex=!0;for(var c=0,d=a.components.length;d>c;c++){var e=a.components[c];if(!e.multiplex)for(var f=e.value.slice(0),g=1;b>g;g++)e.value.push([G]),Array.prototype.push.apply(e.value,f)}}function m(a){for(var b=0,c=0,d=a.value.length;d>c;c++)a.value[c][0]==G&&b++;return b+1}function n(a){var b=[[a.name]].concat(a.value);return F([b],0).length}function o(a,b,c){for(var d=0,e=b;e>=0&&(a[e].name!=c||a[e].unused||d++,!(d>1));e--);return d>1}function p(a,b){for(var c=0,d=a.components.length;d>c;c++)if(q(b.isValidFunction,a.components[c]))return!0;return!1}function q(a,b){for(var c=0,d=b.value.length;d>c;c++)if(b.value[c][0]!=G&&a(b.value[c][0]))return!0;return!1}function r(a,b){if(!a.multiplex&&!b.multiplex||a.multiplex&&b.multiplex)return!1;var c,e=a.multiplex?a:b,f=a.multiplex?b:a,i=z(e);C([i]);var j=z(f);C([j]);var k=n(i)+1+n(j);a.multiplex?(c=i.components.filter(d(j))[0],g(c,j)):(c=j.components.filter(d(i))[0],l(j,m(i)),h(c,i)),C([j]);var o=n(j);return o>k}function s(a){return a.name in y}function t(a,b){return!a.multiplex&&("background"==a.name||"background-image"==a.name)&&b.multiplex&&("background"==b.name||"background-image"==b.name)&&u(b.value)}function u(a){for(var b=v(a),c=0,d=b.length;d>c;c++)if(1==b[c].length&&"none"==b[c][0][0])return!0;return!1}function v(a){for(var b=[],c=0,d=[],e=a.length;e>c;c++){var f=a[c];f[0]==G?(b.push(d),d=[]):d.push(f)}return b.push(d),b}function w(a,b,c){var g,h,i,n,u,v,w;a:for(u=a.length-1;u>=0;u--)if(h=a[u],s(h)&&!h.variable)for(g=y[h.name].canOverride||x.sameValue,v=u-1;v>=0;v--)if(i=a[v],s(i)&&!(i.variable||i.unused||h.unused||i.hack&&!h.hack||!i.hack&&h.hack||B(h)||t(i,h)))if(!i.shorthand&&h.shorthand&&f(h,i)){if(!h.important&&i.important)continue;if(!E([i],h.components))continue;if(!q(c.isValidFunction,i)&&p(h,c))continue;n=h.components.filter(d(i))[0],g=y[i.name]&&y[i.name].canOverride||x.sameValue,D(g,i,n,c)&&(i.unused=!0)}else if(i.shorthand&&!h.shorthand&&f(i,h)){if(h.important&&!i.important)continue;if(o(a,u-1,i.name))continue;if(p(i,c))continue;if(n=i.components.filter(d(h))[0],D(g,n,h,c)){var z=!b.properties.backgroundClipMerging&&n.name.indexOf("background-clip")>-1||!b.properties.backgroundOriginMerging&&n.name.indexOf("background-origin")>-1||!b.properties.backgroundSizeMerging&&n.name.indexOf("background-size")>-1,A=y[h.name].nonMergeableValue===h.value[0][0];if(z||A)continue;if(!b.properties.merging&&e(i,c))continue;if(n.value[0][0]!=h.value[0][0]&&(B(i)||B(h)))continue;if(r(i,h))continue;!i.multiplex&&h.multiplex&&l(i,m(h)),j(n,h),i.dirty=!0}}else if(i.shorthand&&h.shorthand&&i.name==h.name){if(!i.multiplex&&h.multiplex)continue;if(!h.important&&i.important){h.unused=!0;continue a}if(h.important&&!i.important){i.unused=!0;continue}for(w=i.components.length-1;w>=0;w--){var C=i.components[w],F=h.components[w];if(g=y[C.name].canOverride||x.sameValue,!D(g,C,F,c))continue a;if(!D(x.twoOptionalFunctions,C,F,c)&&c.isValidFunction(F))continue a}k(i,h),i.dirty=!0}else if(i.shorthand&&h.shorthand&&f(i,h)){if(!i.important&&h.important)continue;if(n=i.components.filter(d(h))[0],g=y[h.name].canOverride||x.sameValue,!D(g,n,h,c))continue;if(i.important&&!h.important){h.unused=!0;continue}var G=y[h.name].restore(h,y);if(G.length>1)continue;n=i.components.filter(d(h))[0],j(n,h),h.dirty=!0}else if(i.name==h.name){if(i.important&&!h.important){h.unused=!0;continue}if(g=y[h.name].canOverride||x.sameValue,!D(g,i,h,c))continue;i.unused=!0}}var x=a("./can-override"),y=a("./compactable"),z=a("./clone").deep,A=a("./clone").shallow,B=a("./has-inherit"),C=a("./restore-from-optimizing"),D=a("./every-combination"),E=a("./vendor-prefixes").same,F=a("../stringifier/one-time").property,G=",";b.exports=w},{"../stringifier/one-time":46,"./can-override":15,"./clone":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./restore-from-optimizing":24,"./vendor-prefixes":28}],22:[function(a,b,c){function d(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c],f=e[d.name];f&&f.shorthand&&(d.shorthand=!0,d.dirty=!0,d.components=f.breakUp(d,e,b),d.components.length>0?d.multiplex=d.components[0].multiplex:d.unused=!0)}}var e=a("./compactable");b.exports=d},{"./compactable":17}],23:[function(a,b,c){function d(a){for(var b=a.length-1;b>=0;b--){var c=a[b];c.unused&&c.all.splice(c.position,1)}}b.exports=d},{}],24:[function(a,b,c){function d(a){a.value[a.value.length-1][0]+=i}function e(a){"underscore"==a.hack?a.name=k+a.name:"star"==a.hack?a.name=j+a.name:"backslash"==a.hack?a.value[a.value.length-1][0]+=h:"bang"==a.hack&&(a.value[a.value.length-1][0]+=" "+l)}function f(a,b){for(var c=a.length-1;c>=0;c--){var f,h=a[c],i=g[h.name];if(!h.unused&&(h.dirty||h.important||h.hack)&&(!b&&i&&i.shorthand?(f=i.restore(h,g),h.value=f):f=h.value,h.important&&d(h),h.hack&&e(h),"all"in h)){var j=h.all[h.position];j[0][0]=h.name,j.splice(1,j.length-1),Array.prototype.push.apply(j,f)}}}var g=a("./compactable"),h="\\9",i="!important",j="*",k="_",l="!ie";b.exports=f},{"./compactable":17}],25:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var d=a[b][0];if("inherit"!=d&&d!=k&&d!=l)return!1}return!0}function e(a,b,c){function e(a){Array.prototype.unshift.apply(j,a.value)}function f(a){var c=b[a.name];return c.doubleValues?1==c.defaultValue.length?a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]==c.defaultValue[0]:!0):a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]:a.value[0][0])==c.defaultValue[1]:a.value[0][0]==c.defaultValue}for(var g,h,i=a.components,j=[],k=i.length-1;k>=0;k--){var m=i[k],n=f(m);if("background-clip"==m.name){var o=i[k-1],p=f(o);g=m.value[0][0]==o.value[0][0],h=!g&&(p&&!n||!p&&!n||!p&&n&&m.value[0][0]!=o.value[0][0]),g?e(o):h&&(e(m),e(o)),k--}else if("background-size"==m.name){var q=i[k-1],r=f(q);g=!r&&n,h=!g&&(r&&!n||!r&&!n),g?e(q):h?(e(m),j.unshift([l]),e(q)):1==q.value.length&&e(q),k--}else{if(n||b[m.name].multiplexLastOnly&&!c)continue;e(m)}}return 0===j.length&&1==a.value.length&&"0"==a.value[0][0]&&j.push(a.value[0]),0===j.length&&j.push([b[a.name].defaultValue]),d(j)?[j[0]]:j}function f(a,b){if(a.multiplex){for(var c=j(a),d=j(a),e=0;4>e;e++){var f=a.components[e],h=j(a);h.value=[f.value[0]],c.components.push(h);var i=j(a);i.value=[f.value[2]],d.components.push(i)}var k=g(c,b),l=g(d,b);return k.length!=l.length||k[0][0]!=l[0][0]||(k.length>1?k[1][0]!=l[1][0]:0)||(k.length>2?k[2][0]!=l[2][0]:0)||(k.length>3?k[3][0]!=l[3][0]:0)?k.concat([["/"]]).concat(l):k}return g(a,b)}function g(a){var b=a.components,c=b[0].value[0],d=b[1].value[0],e=b[2].value[0],f=b[3].value[0];return c[0]==d[0]&&c[0]==e[0]&&c[0]==f[0]?[c]:c[0]==e[0]&&d[0]==f[0]?[c,d]:d[0]==f[0]?[c,d,e]:[c,d,e,f]}function h(a){return function(b,c){if(!b.multiplex)return a(b,c,!0);var d,e,f=0,g=[],h={};for(d=0,e=b.components[0].value.length;e>d;d++)b.components[0].value[d][0]==k&&f++;for(d=0;f>=d;d++){for(var i=j(b),l=0,m=b.components.length;m>l;l++){var n=b.components[l],o=j(n);i.components.push(o);for(var p=h[o.name]||0,q=n.value.length;q>p;p++){if(n.value[p][0]==k){h[o.name]=p+1;break}o.value.push(n.value[p])}}var r=d==f,s=a(i,c,r);Array.prototype.push.apply(g,s),f>d&&g.push([","])}return g}}function i(a,b){for(var c=a.components,e=[],f=c.length-1;f>=0;f--){var g=c[f],h=b[g.name];g.value[0][0]!=h.defaultValue&&e.unshift(g.value[0])}return 0===e.length&&e.push([b[a.name].defaultValue]),d(e)?[e[0]]:e}var j=a("./clone").shallow,k=",",l="/";b.exports={background:e,borderRadius:f,fourValues:g,multiplex:h,withoutDefaults:i}},{"./clone":16}],26:[function(a,b,c){function d(a){var b;for(var c in a){if(void 0!==b&&a[c].important!=b)return!0;b=a[c].important}return!1}function e(a){var b=[];for(var c in a){var d=a[c],e=d.all[d.position],f=e[0][e[0].length-1];Array.isArray(f)&&Array.prototype.push.apply(b,f)}return b}function f(a,b,c,d,f){var g,h=i[c],o=[[c],[h.defaultValue]],p=m(o);p.shorthand=!0,p.dirty=!0,l([p],f);for(var q=0,r=h.components.length;r>q;q++){var s=b[h.components[q]],t=i[s.name].canOverride;if(k(s))return;if(!n(t,p.components[q],s,f))return;p.components[q]=j(s),p.important=s.important,g=s.all}for(var u in b)b[u].unused=!0;if(d){var v=e(b);v.length>0&&o[0].push(v)}p.position=g.length,p.all=g,p.all.push(o),a.push(p)}function g(a,b,c,e,g){var h=a[b];for(var j in c)if(void 0===h||j!=h.name){var k=i[j],l=c[j];k.components.length>Object.keys(l).length?delete c[j]:d(l)||f(a,l,j,e,g)}}function h(a,b,c){var d={};if(!(a.length<3)){for(var e=0,f=a.length;f>e;e++){var h=a[e];if(!h.unused&&!h.hack&&!h.variable){var j=i[h.name];if(j&&j.componentOf)if(h.shorthand)g(a,e,d,b,c);else{var k=j.componentOf;d[k]=d[k]||{},d[k][h.name]=h}}}g(a,e,d,b,c)}}var i=a("./compactable"),j=a("./clone").deep,k=a("./has-inherit"),l=a("./populate-components"),m=a("./wrap-for-optimizing").single,n=a("./every-combination");b.exports=h},{"./clone":16,"./compactable":17,"./every-combination":18,"./has-inherit":19,"./populate-components":22,"./wrap-for-optimizing":29}],27:[function(a,b,c){function d(a){var b=g.slice(0).filter(function(b){return!(b in a.units)||a.units[b]===!0}),c="(\\-?\\.?\\d+\\.?\\d*("+b.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+c+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+f.join("|")+"|"+c+"|"+l+"|"+j+"|"+k+")$","i"),this.colorOpacity=a.colors.opacity}var e=a("../utils/split"),f=["thin","thick","medium","inherit","initial"],g=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],h="(\\-?\\.?\\d+\\.?\\d*("+g.join("|")+"|)|auto|inherit)",i="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",j="[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)",k="\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)",l="var\\(\\-\\-[^\\)]+\\)",m="("+l+"|"+j+"|"+k+")",n="("+h+"|"+i+")",o="(none|"+f.join("|")+"|"+h+"|"+l+"|"+j+"|"+k+")",p=new RegExp("^"+j+"$","i"),q=new RegExp("^"+k+"$","i"),r=new RegExp("^"+l+"$","i"),s=new RegExp("^"+m+"$","i"),t=new RegExp("^"+h+"$","i"),u=new RegExp("^"+n+"$","i"),v=new RegExp("^"+o+"$","i"),w=["repeat","no-repeat","repeat-x","repeat-y","inherit"],x=["inherit","scroll","fixed","local"],y=["center","top","bottom","left","right"],z=["contain","cover"],A=["border-box","content-box","padding-box"],B=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],C=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],D=["inside","outside","inherit"];d.prototype.isValidHexColor=function(a){return(4===a.length||7===a.length)&&"#"===a[0]},d.prototype.isValidRgbaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("rgba(")&&a.indexOf(")")===a.length-1},d.prototype.isValidHslaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("hsla(")&&a.indexOf(")")===a.length-1},d.prototype.isValidNamedColor=function(a){return"auto"!==a&&("transparent"===a||"inherit"===a||/^[a-zA-Z]+$/.test(a))},d.prototype.isValidVariable=function(a){return r.test(a)},d.prototype.isValidColor=function(a){return this.isValidNamedColor(a)||this.isValidColorValue(a)||this.isValidVariable(a)||this.isValidVendorPrefixedValue(a)},d.prototype.isValidColorValue=function(a){return this.isValidHexColor(a)||this.isValidRgbaColor(a)||this.isValidHslaColor(a)},d.prototype.isValidUrl=function(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS")},d.prototype.isValidUnit=function(a){return v.test(a)},d.prototype.isValidUnitWithoutFunction=function(a){ +return t.test(a)},d.prototype.isValidAndCompatibleUnit=function(a){return this.compatibleCssUnitAnyRegex.test(a)},d.prototype.isValidAndCompatibleUnitWithoutFunction=function(a){return this.compatibleCssUnitRegex.test(a)},d.prototype.isValidFunctionWithoutVendorPrefix=function(a){return p.test(a)},d.prototype.isValidFunctionWithVendorPrefix=function(a){return q.test(a)},d.prototype.isValidFunction=function(a){return s.test(a)},d.prototype.isValidBackgroundRepeat=function(a){return w.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundAttachment=function(a){return x.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundBox=function(a){return A.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionPart=function(a){return y.indexOf(a)>=0||u.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPosition=function(a){if("inherit"===a)return!0;for(var b=a.split(" "),c=0,d=b.length;d>c;c++)if(""!==b[c]&&!this.isValidBackgroundPositionPart(b[c])&&!this.isValidVariable(b[c]))return!1;return!0},d.prototype.isValidBackgroundSizePart=function(a){return z.indexOf(a)>=0||t.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionAndSize=function(a){if(a.indexOf("/")<0)return!1;var b=e(a,"/");return this.isValidBackgroundSizePart(b.pop())&&this.isValidBackgroundPositionPart(b.pop())},d.prototype.isValidListStyleType=function(a){return C.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidListStylePosition=function(a){return D.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidStyle=function(a){return this.isValidStyleKeyword(a)||this.isValidVariable(a)},d.prototype.isValidStyleKeyword=function(a){return B.indexOf(a)>=0},d.prototype.isValidWidth=function(a){return this.isValidUnit(a)||this.isValidWidthKeyword(a)||this.isValidVariable(a)},d.prototype.isValidWidthKeyword=function(a){return f.indexOf(a)>=0},d.prototype.isValidVendorPrefixedValue=function(a){return/^-([A-Za-z0-9]|-)*$/gi.test(a)},d.prototype.areSameFunction=function(a,b){if(!this.isValidFunction(a)||!this.isValidFunction(b))return!1;var c=a.substring(0,a.indexOf("(")),d=b.substring(0,b.indexOf("("));return c===d},b.exports=d},{"../utils/split":67}],28:[function(a,b,c){function d(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=a[c],g=0,h=e.value.length;h>g;g++){var i=f.exec(e.value[g][0]);i&&-1==b.indexOf(i[0])&&b.push(i[0])}return b}function e(a,b){return d(a).sort().join(",")==d(b).sort().join(",")}var f=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;b.exports={same:e}},{}],29:[function(a,b,c){function d(a){for(var b=[],c=a.length-1;c>=0;c--)if("string"!=typeof a[c][0]){var d=k(a[c]);d.all=a,d.position=c,b.unshift(d)}return b}function e(a){for(var b=1,c=a.length;c>b;b++)if(","==a[b][0]||"/"==a[b][0])return!0;return!1}function f(a){var b=!1,c=a[0][0],d=a[a.length-1];return c[0]==o?b="underscore":c[0]==n?b="star":d[0][0]==p&&-1==d[0].indexOf("important")?b="bang":d[0].indexOf(p)>0&&-1==d[0].indexOf("important")?b="bang":d[0].indexOf(l)>0&&d[0].indexOf(l)==d[0].length-l.length-1?b="backslash":0===d[0].indexOf(l)&&2==d[0].length&&(b="backslash"),b}function g(a){return a.length>1?a[a.length-1][0].indexOf(m)>0:!1}function h(a){a.length>0&&(a[a.length-1][0]=a[a.length-1][0].replace(m,""))}function i(a){a[0][0]=a[0][0].substring(1)}function j(a,b){var c=a[a.length-1];c[0]=c[0].substring(0,c[0].indexOf("backslash"==b?l:p)).trim(),0===c[0].length&&a.pop()}function k(a){var b=g(a);b&&h(a);var c=f(a);"star"==c||"underscore"==c?i(a):"backslash"!=c&&"bang"!=c||j(a,c);var d=0===a[0][0].indexOf("--");return{block:d&&a[1]&&Array.isArray(a[1][0][0]),components:[],dirty:!1,hack:c,important:b,name:a[0][0],multiplex:a.length>2?e(a):!1,position:0,shorthand:!1,unused:a.length<2,value:a.slice(1),variable:d}}var l="\\",m="!important",n="*",o="_",p="!";b.exports={all:d,single:k}},{}],30:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var e=a[b],f=!1;switch(e[0]){case"selector":f=0===e[1].length||0===e[2].length;break;case"block":d(e[2]),f=0===e[2].length}f&&(a.splice(b,1),b--,c--)}}function e(a,b,c){for(var d=0,e=a.length;e>d;d++){var f=a[d];if("block"==f[0]){var h=/@(-moz-|-o-|-webkit-)?keyframes/.test(f[1][0]);g(f[2],b,c,!h)}}}function f(a,b,c){for(var d=0,e=a.length;e>d;d++){var g=a[d];switch(g[0]){case"selector":h(g[1],g[2],!1,!0,b,c);break;case"block":f(g[2],b,c)}}}function g(a,b,c,h){if(e(a,b,c),f(a,b,c),i(a),j(a,b,c),k(a,b,c),l(a,b,c),m(a,b),b.restructuring&&h&&(n(a,b),j(a,b,c)),b.mediaMerging){o(a);for(var q=p(a),r=q.length-1;r>=0;r--)g(q[r][2],b,c,!1)}d(a)}var h=a("../properties/optimizer"),i=a("./remove-duplicates"),j=a("./merge-adjacent"),k=a("./reduce-non-adjacent"),l=a("./merge-non-adjacent-by-selector"),m=a("./merge-non-adjacent-by-body"),n=a("./restructure"),o=a("./remove-duplicate-media-queries"),p=a("./merge-media-queries");b.exports=g},{"../properties/optimizer":20,"./merge-adjacent":34,"./merge-media-queries":35,"./merge-non-adjacent-by-body":36,"./merge-non-adjacent-by-selector":37,"./reduce-non-adjacent":38,"./remove-duplicate-media-queries":39,"./remove-duplicates":40,"./restructure":42}],31:[function(a,b,c){function d(a,b){return"["+b.replace(/ /g,"")+"]"}function e(a,b){return a[0]>b[0]?1:-1}var f={selectors:function(a,b,c){for(var f=[],g=[],h=0,i=a.length;i>h;h++){var j=a[h],k=j[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*([>\+\~])\s*/g,"$1").trim();c&&k.indexOf("nav")>0&&(k=k.replace(/\+nav(\S|$)/,"+ nav$1")),(!b||-1==k.indexOf("*+html ")&&-1==k.indexOf("*:first-child+html "))&&(k.indexOf("*")>-1&&(k=k.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),k.indexOf("[")>-1&&(k=k.replace(/\[([^\]]+)\]/g,d)),-1==g.indexOf(k)&&(j[0]=k,g.push(k),f.push(j)))}return f.sort(e)},selectorDuplicates:function(a){for(var b=[],c=[],d=0,f=a.length;f>d;d++){var g=a[d];-1==c.indexOf(g[0])&&(c.push(g[0]),b.push(g))}return b.sort(e)},block:function(a,b){a[0]=a[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),b||(a[0]=a[0].replace(/\) /g,")"))},atRule:function(a){a[0]=a[0].replace(/\s+/g," ").trim()}};b.exports=f},{}],32:[function(a,b,c){function d(a){var b=[];if("selector"==a[0])for(var c=!/[\.\+>~]/.test(f(a[1])),i=0,j=a[2].length;j>i;i++){var k=a[2][i];if(0!==k.indexOf("__ESCAPED")&&k[0]!=h){var l=a[2][i][0][0];if(0!==l.length&&0!==l.indexOf("--")){var m=g(a[2],i);b.push([l,m,e(l),a[2][i],l+":"+m,a[1],c])}}}else if("block"==a[0])for(var n=0,o=a[2].length;o>n;n++)b=b.concat(d(a[2][n]));return b}function e(a){return"list-style"==a?a:a.indexOf("-radius")>0?"border-radius":"border-collapse"==a||"border-spacing"==a||"border-image"==a?a:0===a.indexOf("border-")&&/^border\-\w+\-\w+$/.test(a)?a.match(/border\-\w+/)[0]:0===a.indexOf("border-")&&/^border\-\w+$/.test(a)?"border":0===a.indexOf("text-")?a:a.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var f=a("../stringifier/one-time").selectors,g=a("../stringifier/one-time").value,h="at-rule";b.exports=d},{"../stringifier/one-time":46}],33:[function(a,b,c){function d(a,b){return a.compatibility.selectors.special.test(b)}b.exports=d},{}],34:[function(a,b,c){function d(a,b,c){for(var d=[null,[],[]],j=b.compatibility.selectors.adjacentSpace,k=0,l=a.length;l>k;k++){var m=a[k];if("selector"==m[0])if("selector"==d[0]&&g(m[1])==g(d[1])){var n=[d[2].length];Array.prototype.push.apply(d[2],m[2]),e(m[1],d[2],n,!0,b,c),m[2]=[]}else"selector"!=d[0]||f(m[2])!=f(d[2])||i(b,g(m[1]))||i(b,g(d[1]))?d=m:(d[1]=h(d[1].concat(m[1]),!1,j),m[2]=[]);else d=[null,[],[]]}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").body,g=a("../stringifier/one-time").selectors,h=a("./clean-up").selectors,i=a("./is-special");b.exports=d},{"../properties/optimizer":20,"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],35:[function(a,b,c){function d(a){for(var b={},c=[],d=a.length-1;d>=0;d--){var g=a[d];if("block"==g[0]){var h=b[g[1][0]];h||(h=[],b[g[1][0]]=h),h.push(d)}}for(var i in b){var j=b[i];a:for(var k=j.length-1;k>0;k--){var l=j[k],m=a[l],n=j[k-1],o=a[n];b:for(var p=1;p>=-1;p-=2){for(var q=1==p,r=q?l+1:n-1,s=q?n:l,t=q?1:-1,u=q?m:o,v=q?o:m,w=f(u);r!=s;){var x=f(a[r]);if(r+=t,!e(w,x))continue b}v[2]=q?u[2].concat(v[2]):v[2].concat(u[2]),u[2]=[],c.push(v);continue a}}}return c}var e=a("./reorderable").canReorder,f=a("./extractor");b.exports=d},{"./extractor":32,"./reorderable":41}],36:[function(a,b,c){function d(a){return/\.|\*| :/.test(a)}function e(a){var b=j(a[1]);return b.indexOf("__")>-1||b.indexOf("--")>-1}function f(a){return a.replace(/--[^ ,>\+~:]+/g,"")}function g(a,b){var c=f(j(a[1]));for(var d in b){var e=b[d],g=f(j(e[1]));(g.indexOf(c)>-1||c.indexOf(g)>-1)&&delete b[d]}}function h(a,b){for(var c={},f=b.compatibility.selectors.adjacentSpace,h=a.length-1;h>=0;h--){var m=a[h];if("selector"==m[0]){m[2].length>0&&!b.semanticMerging&&d(j(m[1]))&&(c={}),m[2].length>0&&b.semanticMerging&&e(m)&&g(m,c);var n=i(m[2]),o=c[n];!o||l(b,j(m[1]))||l(b,j(o[1]))||(m[1]=m[2].length>0?k(o[1].concat(m[1]),!1,f):o[1].concat(m[1]),o[2]=[],c[n]=null),c[i(m[2])]=m}}}var i=a("../stringifier/one-time").body,j=a("../stringifier/one-time").selectors,k=a("./clean-up").selectors,l=a("./is-special");b.exports=h},{"../stringifier/one-time":46,"./clean-up":31,"./is-special":33}],37:[function(a,b,c){function d(a,b,c){var d,i={},j=[];for(d=a.length-1;d>=0;d--)if("selector"==a[d][0]&&0!==a[d][2].length){var k=f(a[d][1]);i[k]=[d].concat(i[k]||[]),2==i[k].length&&j.push(k)}for(d=j.length-1;d>=0;d--){var l=i[j[d]];a:for(var m=l.length-1;m>0;m--){var n=l[m-1],o=a[n],p=l[m],q=a[p];b:for(var r=1;r>=-1;r-=2){for(var s,t=1==r,u=t?n+1:p-1,v=t?p:n,w=t?1:-1,x=t?o:q,y=t?q:o,z=g(x);u!=v;){var A=g(a[u]);u+=w;var B=t?h(z,A):h(A,z);if(!B&&!t)continue a;if(!B&&t)continue b}t?(s=[x[2].length],Array.prototype.push.apply(x[2],y[2]),y[2]=x[2]):(s=[y[2].length],Array.prototype.push.apply(y[2],x[2])),e(y[1],y[2],s,!0,b,c),x[2]=[]}}}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").selectors,g=a("./extractor"),h=a("./reorderable").canReorder;b.exports=d},{"../properties/optimizer":20,"../stringifier/one-time":46,"./extractor":32,"./reorderable":41}],38:[function(a,b,c){function d(a,b,c){for(var d={},h=[],i=a.length-1;i>=0;i--){var j=a[i];if("selector"==j[0]&&0!==j[2].length)for(var m=k(j[1]),n=j[1].length>1&&!l(b,m),o=b.sourceMap?e(j[1]):j[1],p=n?[m].concat(o):[m],q=0,r=p.length;r>q;q++){var s=p[q];d[s]?h.push(s):d[s]=[],d[s].push({where:i,list:o,isPartial:n&&q>0,isComplex:n&&0===q})}}f(a,h,d,b,c),g(a,d,b,c)}function e(a){for(var b=[],c=0;ci;i++){var k=b[i],l=c[k];h(a,k,l,{filterOut:f,callback:g},d,e)}}function g(a,b,c,d){function e(a){return g.data[a].whereq;q++){var s=p[q],t=b[s];if(t.length<2)continue a;if(g.data=t,h(a,s,t,{filterOut:e,callback:f},c,d),j(o[o.length-1])!=j(o[0]))continue a}n[2]=o[0]}}}function h(a,b,c,d,e,f){for(var g=[],h=[],j=[],k=[],l=c.length-1,n=0;l>=0;l--)if(!d.filterOut(l,g)){var o=c[l].where,p=a[o],q=m(p[2]);g=g.concat(q),h.push(q),k.push(o)}for(l=0,n=h.length;n>l;l++)h[l].length>0&&j.push((j[l-1]||0)+h[l].length);i(b,g,j,!1,e,f);for(var r=k.length,s=g.length-1,t=r-1;t>=0;)if((0===t||g[s]&&h[t].indexOf(g[s])>-1)&&s>-1)s--;else{var u=g.splice(s+1);d.callback(a[k[t]],u,r,t),t--}}var i=a("../properties/optimizer"),j=a("../stringifier/one-time").body,k=a("../stringifier/one-time").selectors,l=a("./is-special"),m=a("../utils/clone-array");b.exports=d},{"../properties/optimizer":20,"../stringifier/one-time":46,"../utils/clone-array":60,"./is-special":33}],39:[function(a,b,c){function d(a){for(var b={},c=0,d=a.length;d>c;c++){var f=a[c];if("block"==f[0]){var g=f[1][0]+"%"+e(f[2]),h=b[g];h&&(h[2]=[]),b[g]=f}}}var e=a("../stringifier/one-time").all;b.exports=d},{"../stringifier/one-time":46}],40:[function(a,b,c){function d(a){for(var b,c,d,g,h={},i=[],j=0,k=a.length;k>j;j++)c=a[j],"selector"==c[0]&&(b=f(c[1]),h[b]&&1==h[b].length?i.push(b):h[b]=h[b]||[],h[b].push(j));for(j=0,k=i.length;k>j;j++){b=i[j],g=[];for(var l=h[b].length-1;l>=0;l--)c=a[h[b][l]],d=e(c[2]),g.indexOf(d)>-1?c[2]=[]:g.push(d)}}var e=a("../stringifier/one-time").body,f=a("../stringifier/one-time").selectors;b.exports=d},{"../stringifier/one-time":46}],41:[function(a,b,c){function d(a,b){for(var c=b.length-1;c>=0;c--)for(var d=a.length-1;d>=0;d--)if(!e(a[d],b[c]))return!1;return!0}function e(a,b){var c=a[0],d=a[1],e=a[2],o=a[5],p=a[6],q=b[0],r=b[1],s=b[2],t=b[5],u=b[6];return"font"==c&&"line-height"==q||"font"==q&&"line-height"==c?!1:m.test(c)&&m.test(q)?!1:e==s&&g(c)==g(q)&&f(c)^f(q)?!1:("border"!=e||!n.test(s)||"border"!=c&&c!=s)&&("border"!=s||!n.test(e)||"border"!=q&&q!=e)?"border"==e&&"border"==s&&c!=q&&(h(c)&&i(q)||i(c)&&h(q))?!1:e!=s?!0:c!=q||e!=s||d!=r&&!j(d,r)?c!=q&&e==s&&c!=e&&q!=s?!0:c!=q&&e==s&&d==r?!0:!(!u||!p||l(e)||l(s)||!k(t,o)):!0:!1}function f(a){return/^\-(?:moz|webkit|ms|o)\-/.test(a)}function g(a){return a.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function h(a){return"border-top"==a||"border-right"==a||"border-bottom"==a||"border-left"==a}function i(a){return"border-color"==a||"border-style"==a||"border-width"==a}function j(a,b){return f(a)&&f(b)&&a.split("-")[1]!=b.split("-")[2]}function k(a,b){for(var c=0,d=a.length;d>c;c++)for(var e=0,f=b.length;f>e;e++)if(a[c][0]==b[e][0])return!1;return!0}function l(a){return"font"==a||"line-height"==a||"list-style"==a}var m=/align\-items|box\-align|box\-pack|flex|justify/,n=/^border\-(top|right|bottom|left|color|style|width|radius)/;b.exports={canReorder:d,canReorderSingle:e}},{}],42:[function(a,b,c){function d(a,b){return a>b}function e(a,b){var c=m(a);return c[5]=c[5].concat(b[5]),c}function f(a,b){function c(a,b,c){for(var d=c.length-1;d>=0;d--){var e=c[d][0],g=f(b,e);if(B[g].length>1&&x(a,B[g])){m(g);break}}}function f(a,b){var c=n(b);return B[c]=B[c]||[],B[c].push([a,b]),c}function m(a){var b,c=a.split(E),d=[];for(var e in B){var f=e.split(E);for(b=f.length-1;b>=0;b--)if(c.indexOf(f[b])>-1){d.push(e);break}}for(b=d.length-1;b>=0;b--)delete B[d[b]]}function n(a){for(var b=[],c=0,d=a.length;d>c;c++)b.push(j(a[c][1]));return b.join(E)}function o(a){for(var c=[],d=[],e=a.length-1;e>=0;e--)l(b,j(a[e][1]))||(d.unshift(a[e]),a[e][2].length>0&&-1==c.indexOf(a[e])&&c.push(a[e]));return c.length>1?d:[]}function p(a,b){var d=b[0],e=b[1],f=b[4],g=d.length+e.length+1,h=[],i=[],j=o(z[f]);if(!(j.length<2)){var l=r(j,g,1),m=l[0];if(m[1]>0)return c(a,b,l);for(var n=m[0].length-1;n>=0;n--)h=m[0][n][1].concat(h),i.unshift(m[0][n]);h=k(h),u(a,[b],h,i)}}function q(a,b){return a[1]>b[1]}function r(a,b,c){var d=s(a,b,c,D-1);return d.sort(q)}function s(a,b,c,d){var e=[[a,t(a,b,c)]];if(a.length>2&&d>0)for(var f=a.length-1;f>=0;f--){var g=Array.prototype.slice.call(a,0);g.splice(f,1),e=e.concat(s(g,b,c,d-1))}return e}function t(a,b,c){for(var d=0,e=a.length-1;e>=0;e--)d+=a[e][2].length>c?j(a[e][1]).length:-1;return d-(a.length-1)*b+1}function u(b,c,d,e){var f,g,h,j,k=[];for(f=e.length-1;f>=0;f--){var l=e[f];for(g=l[2].length-1;g>=0;g--){var m=l[2][g];for(h=0,j=c.length;j>h;h++){var n=c[h],o=m[0][0],p=n[0],q=n[4];if(o==p&&i([m])==q){l[2].splice(g,1);break}}}}for(f=c.length-1;f>=0;f--)k.unshift(c[f][3]);var r=["selector",d,k];a.splice(b,0,r)}function v(a,b){var c=b[4],d=z[c];d&&d.length>1&&(w(a,b)||p(a,b))}function w(a,b){var c,d,e=[],f=[],g=b[4],h=o(z[g]);if(!(h.length<2)){a:for(var i in z){var j=z[i];for(c=h.length-1;c>=0;c--)if(-1==j.indexOf(h[c]))continue a;e.push(i)}if(e.length<2)return!1;for(c=e.length-1;c>=0;c--)for(d=A.length-1;d>=0;d--)if(A[d][4]==e[c]){f.unshift([A[d],h]);break}return x(a,f)}}function x(a,b){for(var c,d=0,e=[],f=b.length-1;f>=0;f--){c=b[f][0];var g=c[4];d+=g.length+(f>0?1:0),e.push(c)}var h=b[0][1],i=r(h,d,e.length)[0];if(i[1]>0)return!1;var j=[],l=[];for(f=i[0].length-1;f>=0;f--)j=i[0][f][1].concat(j),l.unshift(i[0][f]);for(j=k(j),u(a,e,j,l),f=e.length-1;f>=0;f--){c=e[f];var m=A.indexOf(c);delete z[c[4]],m>-1&&-1==C.indexOf(m)&&C.push(m)}return!0}function y(a,b,c){var d=a[0],e=b[0];if(d!=e)return!1;var f=b[4],g=z[f];return g&&g.indexOf(c)>-1}for(var z={},A=[],B={},C=[],D=2,E="%",F=a.length-1;F>=0;F--){var G,H,I,J,K,L=a[F];if("selector"==L[0])G=!0;else{if("block"!=L[0])continue;G=!1}var M=A.length,N=g(L);C=[];var O=[];for(H=N.length-1;H>=0;H--)for(I=H-1;I>=0;I--)if(!h(N[H],N[I])){O.push(H);break}for(H=N.length-1;H>=0;H--){var P=N[H],Q=!1;for(I=0;M>I;I++){var R=A[I];-1!=C.indexOf(I)||h(P,R)||y(P,R,L)||(v(F+1,R,L),-1==C.indexOf(I)&&(C.push(I),delete z[R[4]])),Q||(Q=P[0]==R[0]&&P[1]==R[1],Q&&(K=I))}if(G&&!(O.indexOf(H)>-1)){var S=P[4];z[S]=z[S]||[],z[S].push(L),Q?A[K]=e(A[K],P):A.push(P)}}for(C=C.sort(d),H=0,J=C.length;J>H;H++){var T=C[H]-H;A.splice(T,1)}}for(var U=a[0]&&"at-rule"==a[0][0]&&0===a[0][1][0].indexOf("@charset")?1:0;U-1&&(b=b.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),b.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(a,b,c){return(b.length>0?".":"")+b+c}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function f(a,b){return-1==b.indexOf("0deg")?b:b.replace(/\(0deg\)/g,"(0)")}function g(a,b){return a.indexOf("filter")>-1||-1==b.indexOf(" ")?b:(b=b.replace(/\s+/g," "),b.indexOf("calc")>-1&&(b=b.replace(/\) ?\/ ?/g,")/ ")),b.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function h(a,b,c){return-1===c.value||-1===b.indexOf(".")?b:b.replace(c.regexp,function(a,b){return Math.round(parseFloat(b)*c.multiplier)/c.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function i(a,b,c){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(b)?b:"flex"==a||"-ms-flex"==a||"-webkit-flex"==a||"flex-basis"==a||"-webkit-flex-basis"==a?b:b.indexOf("%")>0&&("height"==a||"max-height"==a)?b:b.replace(c,"$10$2").replace(c,"$10$2")}function j(a){var b,c=a.value;4==c.length&&"0"===c[0][0]&&"0"===c[1][0]&&"0"===c[2][0]&&"0"===c[3][0]&&(b=a.name.indexOf("box-shadow")>-1?2:1),b&&(a.value.splice(b),a.dirty=!0)}function k(a,b,c){return-1===b.indexOf("#")&&-1==b.indexOf("rgb")&&-1==b.indexOf("hsl")?B.shorten(b):(b=b.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(a,b,c,d){return new z(b,c,d).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(a,b,c,d){return new A(b,c,d).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(a,b,c){return c[0]==c[1]&&c[2]==c[3]&&c[4]==c[5]?b+"#"+c[0]+c[2]+c[4]:b+"#"+c}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(a,b,c){var d=c.split(","),e="hsl"==b&&3==d.length||"hsla"==b&&4==d.length||"rgb"==b&&3==d.length&&c.indexOf("%")>0||"rgba"==b&&4==d.length&&c.indexOf("%")>0;return e?(-1==d[1].indexOf("%")&&(d[1]+="%"),-1==d[2].indexOf("%")&&(d[2]+="%"),b+"("+d.join(",")+")"):a}),c.colors.opacity&&-1==a.indexOf("background")&&(b=b.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(a){return y(b,",").pop().indexOf("gradient(")>-1?a:"transparent"})),B.shorten(b))}function l(a,b,c){return L.test(b)?b.replace(L,function(a,b){var d,e=parseInt(b);return 0===e?a:(c.properties.shorterLengthUnits&&c.units.pt&&3*e%4===0&&(d=3*e/4+"pt"),c.properties.shorterLengthUnits&&c.units.pc&&e%16===0&&(d=e/16+"pc"),c.properties.shorterLengthUnits&&c.units["in"]&&e%96===0&&(d=e/96+"in"),d&&(d=a.substring(0,a.indexOf(b))+d),d&&d.length-1||b[1]&&I.indexOf(b[1][0])>-1||b[2]&&I.indexOf(b[2][0])>-1;if(!c&&"/"!=b[1]){var d=0;if("normal"==b[0][0]&&d++,b[1]&&"normal"==b[1][0]&&d++,b[2]&&"normal"==b[2][0]&&d++,!(d>1)){var e;K.indexOf(b[0][0])>-1?e=0:b[1]&&K.indexOf(b[1][0])>-1?e=1:b[2]&&K.indexOf(b[2][0])>-1?e=2:J.indexOf(b[0][0])>-1?e=0:b[1]&&J.indexOf(b[1][0])>-1?e=1:b[2]&&J.indexOf(b[2][0])>-1&&(e=2),void 0!==e&&(a.value[e][0]=N["font-weight"](b[e][0]),a.dirty=!0)}}}function q(a,b){for(var c,r,s,t=C(a),u=0,v=t.length;v>u;u++)if(c=t[u],r=c.name,c.hack&&(("star"==c.hack||"underscore"==c.hack)&&!b.compatibility.properties.iePrefixHack||"backslash"==c.hack&&!b.compatibility.properties.ieSuffixHack||"bang"==c.hack&&!b.compatibility.properties.ieBangHack)&&(c.unused=!0),0===r.indexOf("padding")&&(d(c,0)||d(c,1)||d(c,2)||d(c,3))&&(c.unused=!0),!c.unused)if(c.variable)c.block&&q(c.value[0],b);else{for(var w=0,x=c.value.length;x>w;w++)s=c.value[w][0],N[r]&&(s=N[r](s,w,x)),s=g(r,s),s=h(r,s,b.precision),s=l(r,s,b.compatibility),s=m(r,s),s=e(r,s),b.compatibility.properties.zeroUnits&&(s=f(r,s),s=i(r,s,b.unitsRegexp)),b.compatibility.properties.colors&&(s=k(r,s,b.compatibility)),c.value[w][0]=s;j(c),0===r.indexOf("border")&&r.indexOf("radius")>0?n(c):"filter"==r?o(c):"font"==r&&p(c)}D(t,!0),E(t)}function r(a){for(var b=!1,c=0,d=a.length;d>c;c++){var e=a[c];"at-rule"==e[0]&&H.test(e[1][0])&&(b||-1==e[1][0].indexOf(G)?(a.splice(c,1),c--,d--):(b=!0,a.splice(c,1),a.unshift(["at-rule",[e[1][0].replace(H,G)]])))}}function s(a){var b=["px","em","ex","cm","mm","in","pt","pc","%"],c=["ch","rem","vh","vm","vmax","vmin","vw"];return c.forEach(function(c){a.compatibility.units[c]&&b.push(c)}),new RegExp("(^|\\s|\\(|,)0(?:"+b.join("|")+")(\\W|$)","g")}function t(a){var b={};return b.value=void 0===a.roundingPrecision?F:a.roundingPrecision,b.multiplier=Math.pow(10,b.value),b.regexp=new RegExp("(\\d*\\.\\d{"+(b.value+1)+",})px","g"),b}function u(a,b){var c=b.compatibility.selectors.ie7Hack,d=b.compatibility.selectors.adjacentSpace,e=b.compatibility.properties.spaceAfterClosingBrace,f=!1;b.unitsRegexp=s(b),b.precision=t(b);for(var g=0,h=a.length;h>g;g++){var i=a[g];switch(i[0]){case"selector":i[1]=v(i[1],!c,d),q(i[2],b);break;case"block":w(i[1],e),u(i[2],b);break;case"flat-block":w(i[1],e),q(i[2],b);break;case"at-rule":x(i[1]),f=!0}(0===i[1].length||i[2]&&0===i[2].length)&&(a.splice(g,1),g--,h--)}f&&r(a)}var v=a("./clean-up").selectors,w=a("./clean-up").block,x=a("./clean-up").atRule,y=a("../utils/split"),z=a("../colors/rgb"),A=a("../colors/hsl"),B=a("../colors/hex-name-shortener"),C=a("../properties/wrap-for-optimizing").all,D=a("../properties/restore-from-optimizing"),E=a("../properties/remove-unused"),F=2,G="@charset",H=new RegExp("^"+G,"i"),I=["100","200","300","400","500","600","700","800","900"],J=["normal","bold","bolder","lighter"],K=["bold","bolder","lighter"],L=/(?:^|\s|\()(-?\d+)px/,M=/^(\-?[\d\.]+)(m?s)$/,N={background:function(a,b,c){return 0!==b||1!=c||"none"!=a&&"transparent"!=a?a:"0 0"},"font-weight":function(a){return"normal"==a?"400":"bold"==a?"700":a},outline:function(a,b,c){return 0===b&&1==c&&"none"==a?"0":a}};b.exports=u},{"../colors/hex-name-shortener":10,"../colors/hsl":11,"../colors/rgb":12,"../properties/remove-unused":23,"../properties/restore-from-optimizing":24,"../properties/wrap-for-optimizing":29,"../utils/split":67,"./clean-up":31}],44:[function(a,b,c){function d(a,b,c){if(!c&&-1==a.indexOf("\n"))return 0===a.indexOf(i)?a:void(b.column+=a.length);for(var d=0,e=a.split("\n"),f=e.length,g=0;;){if(d==f-1)break;var h=e[d];if(/\S/.test(h))break;g+=h.length+1,d++}return b.line+=d,b.column=d>0?0:b.column,b.column+=/^(\s)*/.exec(e[d])[0].length,a.substring(g).trimLeft()}function e(a,b,c){var d=a.source||b.source;return d&&c.resolvePath?c.resolvePath(b.source,d):d}function f(a,b,c){var d={line:b.line,column:b.column,source:b.source},f=null,g=b.sourceMapTracker.isTracking(d.source)?b.sourceMapTracker.originalPositionFor(d,a,c||0):{};if(d.line=g.line||d.line,d.column=g.column||d.column,d.source=g.sourceResolved?g.source:e(g,d,b),b.sourceMapInlineSources){var h=b.sourceMapTracker.sourcesContentFor(b.source);f=h&&h[d.source]?h:b.sourceReader.sourceAt(b.source)}return f?[d.line,d.column,d.source,f]:[d.line,d.column,d.source]}function g(a,b){for(var c=a.split("\n"),d=0,e=c.length;e>d;d++){var f=c[d],g=0;for(d>0&&(b.line++,b.column=0);;){var h=f.indexOf(i,g);if(-1==h){b.column+=f.substring(g).length;break}b.column+=h-g,g+=h-g;var j=f.substring(h,f.indexOf("__",h+1)+2),k=j.substring(j.indexOf("(")+1,j.indexOf(")")).split(",");b.line+=~~k[0],b.column=(0===~~k[0]?b.column:0)+~~k[1],g+=j.length}}}function h(a,b,c,e){var h=d(a,b,c),i=c?f(h,b,e):[];return h&&g(h,b),i}var i="__ESCAPED_";b.exports=h},{}],45:[function(a,b,c){function d(a,b){for(var c=b,d=a.length;d>c;c++)if("string"!=typeof a[c])return!0;return!1}function e(a){return"background"==a[0][0]||"transform"==a[0][0]||"src"==a[0][0]}function f(a,b){return 0===a[b][0].indexOf("var(")}function g(a,b){return")"==a[b][0][a[b][0].length-1]||0===a[b][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function h(a,b){return","==a[b][0]}function i(a,b){return"/"==a[b][0]}function j(a,b){return a[b+1]&&","==a[b+1][0]}function k(a,b){return a[b+1]&&"/"==a[b+1][0]}function l(a){return"filter"==a[0][0]||"-ms-filter"==a[0][0]}function m(a,b,c){return(!c.spaceAfterClosingBrace&&e(a)||f(a,b))&&g(a,b)||k(a,b)||i(a,b)||j(a,b)||h(a,b)}function n(a,b){for(var c=b.store,d=0,e=a.length;e>d;d++)c(a[d],b),e-1>d&&c(",",b)}function o(a,b){for(var c=0,d=a.length;d>c;c++)p(a,c,c==d-1,b)}function p(a,b,c,d){var e=d.store,f=a[b];"string"==typeof f?e(f,d):f[0]==v?q(f[1],c,d):(e(f[0],d),e(":",d),r(a,b,c,d))}function q(a,b,c){var d=c.store;d(a,c),b||d(w,c)}function r(a,b,c,e){var f=e.store,g=a[b],h=0===g[0][0].indexOf("--");if(h&&s(g[1]))return f("{",e),o(g[1],e),void f("};",e);for(var i=1,j=g.length;j>i;i++)f(g[i],e),j-1>i&&(l(g)||!m(g,i,e))?f(" ",e):i==j-1&&!c&&d(a,b+1)&&f(w,e)}function s(a){for(var b=0,c=a.length;c>b;b++)if(a[b][0]==v||Array.isArray(a[b][0]))return!0;return!1}function t(a,b){for(var c=b.keepBreaks?u:"",d=b.store,e=0,f=a.length;f>e;e++){var g=a[e];switch(g[0]){case"at-rule":case"text":d(g[1][0],b),d(c,b);break;case"block":n([g[1]],b),d("{",b),t(g[2],b),d("}",b),d(c,b);break;case"flat-block":n([g[1]],b),d("{",b),o(g[2],b),d("}",b),d(c,b);break;default:n(g[1],b),d("{",b),o(g[2],b),d("}",b),d(c,b)}}}var u=a("os").EOL,v="at-rule",w=";";b.exports={all:t,body:o,property:p,selectors:n,value:r}},{os:76}],46:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(){return{output:[],store:d}}function f(a){var b=e();return k.all(a,b),b.output.join("")}function g(a){var b=e();return k.body(a,b),b.output.join("")}function h(a,b){var c=e();return k.property(a,b,!0,c),c.output.join("")}function i(a){var b=e();return k.selectors(a,b),b.output.join("")}function j(a,b){var c=e();return k.value(a,b,!0,c),c.output.join("")}var k=a("./helpers");b.exports={all:f,body:g,property:h,selectors:i,value:j}},{"./helpers":45}],47:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(a,b,c){var e={keepBreaks:b.keepBreaks,output:[],spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return f(a,e,!1),{styles:c(e.output.join("")).trim()}}var f=a("./helpers").all;b.exports=e},{"./helpers":45}],48:[function(a,b,c){(function(c){function d(a,b){var c="string"==typeof a,d=c?a:a[0];d.indexOf("_")>-1&&(d=b.restore(d,e(b.output))),f(d,c?null:a,b),b.output.push(d)}function e(a){for(var b=[],c=a.length-1;c>=0;c--){var d=a[c];if(b.unshift(d),"{"==d||";"==d)break}return b.join("")}function f(a,b,c){b&&g(b,c);var d=a.split("\n");c.line+=d.length-1,c.column=d.length>1?0:c.column+d.pop().length}function g(a,b){var c=a[a.length-1];if(Array.isArray(c))for(var d=0,e=c.length;e>d;d++)h(c[d],b)}function h(a,b){var c=a[2]||m;l&&(c=c.replace(/\\/g,"/")),b.outputMap.addMapping({generated:{line:b.line,column:b.column},source:c,original:{line:a[0],column:a[1]}}),a[3]&&b.outputMap.setSourceContent(c,a[3][a[2]])}function i(a,b,c,e){var f={column:0,inputMapTracker:e,keepBreaks:b.keepBreaks,line:1,output:[],outputMap:new j,restore:c,sourceMapInlineSources:b.sourceMapInlineSources,spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return k(a,f,!1),{sourceMap:f.outputMap,styles:f.output.join("").trim()}}var j=a("source-map").SourceMapGenerator,k=a("./helpers").all,l="win32"==c.platform,m="$stdin";b.exports=i}).call(this,a("_process"))},{"./helpers":45,_process:79,"source-map":111}],49:[function(a,b,c){function d(a,b,c,d){this.comments=new g("COMMENT"),this.specialComments=new g("COMMENT_SPECIAL"),this.context=a,this.restored=0,this.keepAll="*"==b,this.keepOne="1"==b||1===b,this.keepBreaks=c,this.saveWaypoints=d}function e(a){var b=[];return new h(a).each(function(a,c,d){b.push([d,d+a.length])}),function(a){for(var c=0,d=b.length;d>c;c++)if(b[c][0]a)return!0;return!1}}function f(a,b,c,d){for(var e=[],f=0;f0?e.join("")+b.substring(f,b.length):b}var g=a("./escape-store"),h=a("../utils/quote-scanner"),i="/*!",j="/*",k="*/",l=a("os").EOL;d.prototype.escape=function(a){for(var b,c,d,f=[],g=0,h=0,m=0,n=0,o=e(a),p=this.saveWaypoints;h0?q.substring(c+l.length).length:n+q.length),p||r){var s=p?[b,d]:null,t=r?this.specialComments.store(q,s):this.comments.store(q,s);f.push(t)}p&&(n=d+1),m=h+k.length}return f.length>0?f.join("")+a.substring(m,a.length):a},d.prototype.restore=function(a){return a=f(this,a,this.comments,!1),a=f(this,a,this.specialComments,!0)},b.exports=d},{"../utils/quote-scanner":64,"./escape-store":50,os:76}],50:[function(a,b,c){function d(a){this.placeholderRoot="ESCAPED_"+a+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var e="__";d.prototype._nextPlaceholder=function(a){return{index:this.count,value:e+this.placeholderRoot+this.count++ +a+e}},d.prototype.store=function(a,b){var c=b?"("+b.join(",")+")":"",d=this.dataToPlaceholder[a];if(!d){var e=this._nextPlaceholder(c);d=e.value,this.placeholderToData[e.index]=a,this.dataToPlaceholder[a]=e.value; +}return b&&(d=d.replace(/\([^\)]+\)/,c)),d},d.prototype.nextMatch=function(a,b){var c={};return c.start=a.indexOf(this.placeholderRoot,b)-e.length,c.end=a.indexOf(e,c.start+e.length)+e.length,c.start>-1&&c.end>-1&&(c.match=a.substring(c.start,c.end)),c},d.prototype.restore=function(a){var b=this.restoreMatcher.exec(a)[1];return this.placeholderToData[b]},b.exports=d},{}],51:[function(a,b,c){function d(a,b){for(var c=b+g.length,d=0,e=!1,f=!1;;){var j=a[c++];if(e?e="'"!=j&&'"'!=j:(e="'"==j||'"'==j,j==h&&d++,j==i&&d--,j==k&&(f=!0),j!=l||f||1!=d||(c--,d--)),0===d&&j==i)break;if(!j){c=a.substring(0,c).lastIndexOf(l);break}}return c}function e(a){this.expressions=new f("EXPRESSION"),this.saveWaypoints=a}var f=a("./escape-store"),g="expression",h="(",i=")",j=g+h,k="{",l="}",m=a("os").EOL;e.prototype.escape=function(a){for(var b,c,e,f=0,g=0,h=0,i=[],k=0,l=this.saveWaypoints;g0?n.substring(c+m.length).length:k+n.length);var o=l?[b,e]:null,p=this.expressions.store(n,o);i.push(a.substring(h,f)),i.push(p),l&&(k=e+1),h=g}return i.length>0?i.join("")+a.substring(h,a.length):a},e.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=e},{"./escape-store":50,os:76}],52:[function(a,b,c){function d(a){this.matches=new f("FREE_TEXT"),this.saveWaypoints=a}function e(a,b,c,d){var e=b;c&&(e=c+b.substring(0,b.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),d=e.length);var f=e.lastIndexOf(";",d),g=e.lastIndexOf("{",d),h=0;h=f>-1&&g>-1?Math.max(f,g):-1==f?g:f;var i=e.substring(h+1,d);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i)&&(a=a.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(a)&&!/format\($/.test(i)){var j=/^(font|font\-family):/.test(i),k=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(i),m=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(i);(j||k||l||m)&&(a=a.substring(1,a.length-1))}return a}var f=a("./escape-store"),g=a("../utils/quote-scanner"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e,f=this,i=this.saveWaypoints;return new g(a).each(function(a,g){i&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length,e=[b,d]);var j=f.matches.store(a,e);g.push(j)})},d.prototype.restore=function(a,b){for(var c=[],d=0;d0?c.join("")+a.substring(d,a.length):a},b.exports=d},{"../utils/quote-scanner":64,"./escape-store":50,os:76}],53:[function(a,b,c){function d(a,b,c){this.urls=new f("URL"),this.context=a,this.saveWaypoints=b,this.keepUrlQuotes=c}function e(a,b){return a=a.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),b||/^['"].+['"]$/.test(a)||/url\(.*[\s\(\)].*\)/.test(a)||/url\(['"]data:[^;]+;charset/.test(a)||(a=a.replace(/["']/g,"")),a}var f=a("./escape-store"),g=a("../urls/reduce"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e=this.saveWaypoints,f=this;return g(a,this.context,function(a,g){e&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length);var i=f.urls.store(a,e?[b,d]:null);g.push(i)})},d.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=d},{"../urls/reduce":58,"./escape-store":50,os:76}],54:[function(a,b,c){function d(a){return a[0]}function e(){}function f(a,b,c,d){for(var f=c?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,g=c?d.track:e;f.test(a);){var h=a.indexOf("__"),i=a.indexOf("__",h+1)+2,j=a.substring(h,i);a=a.substring(0,h)+a.substring(i),g(j),b.push(j)}return a}function g(a,b,c){return f(a,b,!0,c)}function h(a,b,c){return f(a,b,!1,c)}function i(a,b,c){for(var d=0,e=a.length;e>d;d++)c.track(a[d]),b.push(a[d])}function j(a,b,c){var e=[],f=[],o=/[ ,\/]/;if("string"!=typeof a)return[];a.indexOf(")")>-1&&(a=a.replace(/\)([^\s_;:,\)])/g,c.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),a.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(a=a.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,c.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var p=k(a,";",!1,"{","}"),q=0,r=p.length;r>q;q++){var s=p[q],t=s.indexOf(":"),u="@"==s.trim()[0];if(u)c.track(s),e.push([n,s.trim()]);else if(-1!=t)if(s.indexOf("{")>0&&s.indexOf("{")-1&&(w=g(w,e,c)),w.indexOf("__ESCAPED_COMMENT")>-1&&(w=h(w,f,c)),v.push([w.trim()].concat(c.track(w,!0))),c.track(":"),i(f,e,c);var x=s.indexOf("{"),y=0===w.trim().indexOf("--");if(y&&x>0){var z=s.substring(t+1,x+1),A=s.substring(s.indexOf("}")),B=s.substring(x+1,s.length-A.length);c.track(z),v.push(j(B,b,c)),e.push(v),c.track(A),c.track(r-1>q?";":"")}else{var C=k(s.substring(t+1),o,!0);if(1!=C.length||""!==C[0]){for(var D=0,E=C.length;E>D;D++){var F=C[D],G=F.trim();if(0!==G.length){var H=G[G.length-1],I=G.length>1&&(H==l||H==m);if(I&&(G=G.substring(0,G.length-1)),G.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)c.track(G);else if(f=[],G.indexOf("__ESCAPED_COMMENT")>-1&&(G=g(G,e,c)),G.indexOf("__ESCAPED_COMMENT")>-1&&(G=h(G,f,c)),0!==G.length){var J=v.length-1;"important"!=G||"!"!=v[J][0]?"!important"==G||"important"==G&&"!"==v[J][0][v[J][0].length-1]?(c.track(G),v[J][0]+=G):(v.push([G].concat(c.track(F,!0))),i(f,e,c),I&&(v.push([H]),c.track(H))):(c.track(G),v[J-1][0]+="!important",v.pop())}else i(f,e,c)}}r-1>q&&c.track(";"),e.push(v)}else c.warnings.push("Empty property '"+w+"' inside '"+b.filter(d).join(",")+"' selector. Ignoring.")}}else c.track(s),s.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&e.push(s.trim())}return e}var k=a("../utils/split"),l=",",m="/",n="at-rule";b.exports=j},{"../utils/split":67}],55:[function(a,b,c){function d(a,b){for(var c,d=[],f=e(a,","),g=0,h=f.length;h>g;g++)c=b.track(f[g],!0,g),b.track(","),d.push([f[g].trim()].concat(c));return d}var e=a("../utils/split");b.exports=d},{"../utils/split":67}],56:[function(a,b,c){function d(a,b){var c=l(e(a),"}",!0,"{","}");if(0===c.length)return[];var d={chunk:c.shift(),chunks:c,column:0,cursor:0,line:1,mode:"top",resolvePath:b.options.explicitTarget?f(b.options.root,b.options.target):null,source:void 0,sourceMap:b.options.sourceMap,sourceMapInlineSources:b.options.sourceMapInlineSources,sourceMapTracker:b.inputSourceMapTracker,sourceReader:b.sourceReader,sourceTracker:b.sourceTracker,state:[],track:b.options.sourceMap?function(a,b,c){return[[k(a,d,b,c)]]}:function(){return[]},warnings:b.warnings};return h(d)}function e(a){return a.replace(/\r\n/g,"\n")}function f(a,b){var c=m.relative(a,b);return function(a,b){return a!=b?m.normalize(m.join(m.relative(c,m.dirname(a)),b)):b}}function g(a){var b,c=a.mode,d=a.chunk;if(d.length==a.cursor){if(0===a.chunks.length)return null;a.chunk=d=a.chunks.shift(),a.cursor=0}if("body"==c)return"}"==d[a.cursor]?[a.cursor,"bodyEnd"]:-1==d.indexOf("}",a.cursor)?null:(b=a.cursor+l(d.substring(a.cursor-1),"}",!0,"{","}")[0].length-2,[b,"bodyEnd"]);var e=d.indexOf("@",a.cursor),f=d.indexOf("__ESCAPED_",a.cursor),g=d.indexOf("{",a.cursor),h=d.indexOf("}",a.cursor);return f>-1&&/\S/.test(d.substring(a.cursor,f))&&(f=-1),b=e,(-1==b||f>-1&&b>f)&&(b=f),(-1==b||g>-1&&b>g)&&(b=g),(-1==b||h>-1&&b>h)&&(b=h),-1!=b?f===b?[b,"escape"]:g===b?[b,"bodyStart"]:h===b?[b,"bodyEnd"]:e===b?[b,"special"]:void 0:void 0}function h(a){for(var b,c,d=a.chunk,e=[];;){var f=g(a);if(!f){var k=a.chunk.substring(a.cursor);k.trim().length>0&&("body"==a.mode?a.warnings.push("Missing '}' after '"+k+"'. Ignoring."):e.push(["text",[k]]),a.cursor+=k.length);break}var l,m,o=f[0],p=f[1];if(d=a.chunk,a.cursor!=o&&"bodyEnd"!=p){var q=d.substring(a.cursor,o),r=/^\s+/.exec(q);r&&(a.cursor+=r[0].length,a.track(r[0]))}if("special"==p){var s=d.indexOf("{",o),t=d.indexOf(";",o),u=t>-1&&(-1==s||s>t),v=-1==s&&-1==t;if(v)a.warnings.push("Broken declaration: '"+d.substring(a.cursor)+"'."),a.cursor=d.length;else if(u)l=d.indexOf(";",o+1),c=d.substring(a.cursor,l+1),e.push(["at-rule",[c].concat(a.track(c,!0))]),a.track(";"),a.cursor=l+1;else{l=d.indexOf("{",o+1),c=d.substring(a.cursor,l);var w=c.trim(),x=n.test(w);m=a.mode,a.cursor=l+1,a.mode=x?"body":"block",b=[x?"flat-block":"block"],b.push([w].concat(a.track(c,!0))),a.track("{"),b.push(h(a)),"string"==typeof b[2]&&(b[2]=i(b[2],[[w]],a)),a.mode=m,a.track("}"),e.push(b)}}else if("escape"==p){l=d.indexOf("__",o+1);var y=d.substring(a.cursor,l+2),z=!!a.sourceTracker.nextStart(y),A=!!a.sourceTracker.nextEnd(y);if(z)a.track(y),a.state.push({source:a.source,line:a.line,column:a.column}),a.source=a.sourceTracker.nextStart(y).filename,a.line=1,a.column=0;else if(A){var B=a.state.pop();a.source=B.source,a.line=B.line,a.column=B.column,a.track(y)}else 0===y.indexOf("__ESCAPED_COMMENT_SPECIAL")&&e.push(["text",[y]]),a.track(y);a.cursor=l+2}else if("bodyStart"==p){var C=j(d.substring(a.cursor,o),a);m=a.mode,a.cursor=o+1,a.mode="body";var D=i(h(a),C,a);a.track("{"),a.mode=m,e.push(["selector",C,D])}else if("bodyEnd"==p){if("top"==a.mode){var E=a.cursor,F="}"==d[a.cursor]?"Unexpected '}' in '"+d.substring(E-20,E+20)+"'. Ignoring.":"Unexpected content: '"+d.substring(E,o+1)+"'. Ignoring.";a.warnings.push(F),a.cursor=o+1;continue}"block"==a.mode&&a.track(d.substring(a.cursor,o)),"block"!=a.mode&&(e=d.substring(a.cursor,o)),a.cursor=o+1;break}}return e}var i=a("./extract-properties"),j=a("./extract-selectors"),k=a("../source-maps/track"),l=a("../utils/split"),m=a("path"),n=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;b.exports=d},{"../source-maps/track":44,"../utils/split":67,"./extract-properties":54,"./extract-selectors":55,path:77}],57:[function(a,b,c){function d(a,b){var c={absolute:b.options.explicitRoot,relative:!b.options.explicitRoot&&b.options.explicitTarget,fromBase:b.options.relativeTo};return c.absolute||c.relative?(c.absolute&&b.options.explicitTarget&&b.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),c.absolute&&(c.toBase=e.resolve(b.options.root)),c.relative&&(c.toBase=e.resolve(b.options.target)),c.fromBase&&c.toBase?f(a,c,b):a):a}var e=a("path"),f=a("./rewrite");b.exports=d},{"./rewrite":59,path:77}],58:[function(a,b,c){function d(a,b,c){for(var d=0,e=0,f=0,k=0,l=!1,m=0,n=[],o=a.indexOf(h)>-1;f-1&&(d=e),'"'==a[d+g.length])f=a.indexOf('"',d+g.length+1);else if("'"==a[d+g.length])f=a.indexOf("'",d+g.length+1);else if(l=0===a.substring(d+g.length).trim().indexOf(j),f=a.indexOf(i,d),l)for(;;){if(k=a.indexOf(i,f+1),-1==k||/[\s\{\};]/.test(a.substring(f,k)))break;f=k}-1==f?(f=a.indexOf("}",d),-1==f?f=a.length:f--,b.warnings.push("Broken URL declaration: '"+a.substring(d,f+1)+"'.")):a[f]!=i&&(f=a.indexOf(i,f)),n.push(a.substring(m,d));var p=a.substring(d,f+1);c(p,n),m=f+1}return n.length>0?n.join("")+a.substring(m,a.length):a}function e(a,b,c){for(var d,e,f=0,g=0,h=0,i=0,j=0,n=[],o=0,p=0,q="'",r='"';i-1&&g>-1&&f>g&&(f=g),o=a.indexOf(q,f),p=a.indexOf(r,f),o>-1&&p>-1&&p>o)h=o,e=q;else if(o>-1&&p>-1&&o>p)h=p,e=r;else if(o>-1)h=o,e=q;else{if(!(p>-1))break;h=p,e=r}if(n.push(a.substring(j,h)),i=a.indexOf(e,h+1),d=a.substring(f,i),-1==i||/^@import\s+(url\(|__ESCAPED)/i.test(d)||m.test(d)){j=h;break}var s=a.substring(h,i+1);c(s,n),j=i+1}return n.length>0?n.join("")+a.substring(j,a.length):a}function f(a,b,c){return a=d(a,b,c),a=e(a,b,c)}var g="url(",h="URL(",i=")",j="data:",k="@import",l="@IMPORT",m=/\*\//;b.exports=f},{}],59:[function(a,b,c){(function(c){function d(a){return"/"==a[0]}function e(a){return"#"==a[0]}function f(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function g(a){return/^\w+:\w+/.test(a)}function h(a){return/^[^:]+?:\/\//.test(a)||0===a.indexOf("//")}function i(a,b){return s.parse(a).protocol==s.parse(b).protocol&&s.parse(a).host==s.parse(b).host}function j(a){return a.lastIndexOf(".css")===a.length-4}function k(a){return 0===a.indexOf("data:")}function l(a,b){return r.resolve(r.join(b.fromBase||"",a)).replace(b.toBase,"")}function m(a,b){return r.relative(b.toBase,r.join(b.fromBase||"",a))}function n(a){return u?a.replace(/\\/g,"/"):a}function o(a,b){return d(a)||e(a)||f(a)||g(a)?a:b.rebase!==!1||j(a)?!b.imports&&j(a)?a:k(a)?"'"+a+"'":h(a)&&!h(b.toBase)?a:h(a)&&!i(a,b.toBase)?a:!h(a)&&h(b.toBase)?s.resolve(b.toBase,a):n(b.absolute?l(a,b):m(a,b)):a}function p(a){return a.indexOf("'")>-1?'"':a.indexOf('"')>-1?"'":/\s/.test(a)||/[\(\)]/.test(a)?"'":""}function q(a,b,c){return t(a,c,function(a,c){var d,e=a.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),f=a.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);d=b.urlQuotes&&f&&f[2]===f[3]?f[2]:p(e),c.push("url("+d+o(e,b)+d+")")})}var r=a("path"),s=a("url"),t=a("./reduce"),u="win32"==c.platform;b.exports=q}).call(this,a("_process"))},{"./reduce":58,_process:79,path:77,url:141}],60:[function(a,b,c){function d(a){for(var b=a.slice(0),c=0,e=b.length;e>c;c++)Array.isArray(b[c])&&(b[c]=d(b[c]));return b}b.exports=d},{}],61:[function(a,b,c){function d(a){this.source=a||{}}function e(a,b){for(var c in a){var d=a[c];"object"!=typeof d||g.isRegExp(d)?b[c]=c in b?b[c]:d:b[c]=e(d,b[c]||{})}return b}function f(a){if("object"==typeof a)return a;if(!/[,\+\-]/.test(a))return h[a]||h["*"];var b=a.split(","),c=b[0]in h?h[b.shift()]:h["*"];return a={},b.forEach(function(b){var c="+"==b[0],d=b.substring(1).split("."),e=d[0],f=d[1];a[e]=a[e]||{},a[e][f]=c}),e(c,a)}var g=a("util"),h={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!0,"in":!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};d.prototype.toOptions=function(){return e(h["*"],f(this.source))},b.exports=d},{util:145}],62:[function(a,b,c){(function(c,d,e){function f(a){this.options=a.options,this.errors=a.errors,this.warnings=a.warnings,this.sourceTracker=a.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=a.localOnly,this.relativeTo=a.options.target||c.cwd(),this.maps={},this.sourcesContent={}}function g(a,b,c){return a.trackLoaded(void 0,void 0,a.options.sourceMap),c()}function h(a,b,c,d){function e(){d.cursor+=f+1,h(a,b,c,d)}for(var f=0;d.cursor-1&&(f=k.index),l.index>-1&&l.index-1&&m.index299)return d(a.statusCode);var b=[];a.on("data",function(a){b.push(a.toString())}),a.on("end",function(){c(b.join(""))})}).on("error",function(a){g||(d(a.message),g=!0)}).on("timeout",function(){g||(d("timeout"),g=!0)}).setTimeout(a.timeout)}function l(a,b,c,d,e){for(var f,g=d.length,h={line:b,column:c+g};g-- >0&&(h.column--,!(f=a.data.originalPositionFor(h))););return null===f.line&&b>1&&e>0?l(a,b-1,c,d,e-1):(a.path&&f.source&&(f.source=w.test(a.path)?t.resolve(a.path,f.source):q.join(a.path,f.source),f.sourceResolved=!0),f)}function m(a,b){var c=a.maps[b].data,d=w.test(b),e={};c.sources.forEach(function(f,g){var h=d?t.resolve(q.dirname(b),f):q.relative(a.relativeTo,q.resolve(q.dirname(b),f));e[h]=c.sourcesContent&&c.sourcesContent[g]}),a.sourcesContent[b]=e}function n(a,b,c){function d(){return n(a,b,c)}if(0===b.length)return c();var e=b.shift(),f=e[0],g=e[1],h=w.test(f);if(h&&a.localOnly)return a.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+g+'"'),d();if(!h){var i=q.join(a.options.root,g);return p.existsSync(i)?a.sourcesContent[f][g]=p.readFileSync(i,"utf-8"):a.warnings.push('Missing original source file at "'+i+'".'),d()}k(a,g,function(b){a.sourcesContent[f][g]=b,d()},function(b){a.warnings.push('Broken original source file at "'+g+'" - '+b),d()})}var o=a("source-map").SourceMapConsumer,p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../utils/object.js").override,v=/\/\*# sourceMappingURL=(\S+) \*\//,w=/^(https?:)?\/\//,x=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,y=d.unescape;f.prototype.track=function(a,b){return"string"==typeof this.options.sourceMap?g(this,a,b):h(this,a,b,{files:[],cursor:0,errors:this.errors})},f.prototype.trackLoaded=function(a,b,c){var d=this.options.explicitTarget?this.options.target:this.options.root,e=w.test(a);b&&(b=e?q.dirname(b):q.dirname(q.relative(d,b))),this.maps[a]={path:b,data:new o(c)},m(this,a)},f.prototype.isTracking=function(a){return!!this.maps[a]},f.prototype.originalPositionFor=function(a,b,c){return l(this.maps[a.source],a.line,a.column,b,c)},f.prototype.sourcesContentFor=function(a){return this.sourcesContent[a]},f.prototype.resolveSources=function(a){var b=[];for(var c in this.sourcesContent){var d=this.sourcesContent[c];for(var e in d)d[e]||b.push([c,e])}return n(this,b,a)},b.exports=f}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"../utils/object.js":63,_process:79,buffer:5,fs:4,http:123,https:70,path:77,"source-map":111,url:141}],63:[function(a,b,c){b.exports={override:function(a,b){var c={};for(var d in a)c[d]=a[d];for(var e in b)c[e]=b[e];return c}}},{}],64:[function(a,b,c){function d(a){this.data=a}function e(a,b,c){for(var d="\\",e=c;;){if(e=a.indexOf(b,e+1),-1==e)return-1;if(a[e-1]!=d)return e}}var f=function(a,b,c,d){var e="/*",f="*/",g="\\",h="}",i=a.substring(d,c),j=i.lastIndexOf(f,c),k=i.lastIndexOf(e,c),l=!1;if(j>=c&&k>-1&&(l=!0),c>k&&k>j&&(l=!0),l){var m=a.indexOf(f,c);return m>-1?m:(m=a.indexOf(h,c),m>-1?m-1:a.length)}for(;;){if(void 0===a[c])break;if(a[c]==b&&(a[c-1]!=g||a[c-2]==g))break;c++}return c};d.prototype.each=function(a){for(var b=this.data,c=[],d=0,g=0,h=0,i=null,j="'",k='"',l=b.length;gm?(d=m,i=j):(d=n,i=k),-1==d)break;if(g=f(b,i,d+1,h),-1==g)break;var o=b.substring(d,g+1);c.push(b.substring(h,d)),o.length>0&&a(o,c,d),h=g+1}return c.length>0?c.join("")+b.substring(h,b.length):b},b.exports=d},{}],65:[function(a,b,c){(function(c){function d(a,b){this.outerContext=a,this.data=b,this.sources={}}function e(a){var b=a.data;return a.trackSource(void 0,b),b}function f(a){var b=a.data.toString();return a.trackSource(void 0,b),b}function g(a){return a.data.map(function(b){return a.outerContext.options.processImport===!1?b+"@shallow":b}).map(function(b){return!a.outerContext.options.relativeTo||/^https?:\/\//.test(b)?b:i.relative(a.outerContext.options.relativeTo,b)}).map(function(a){return"@import url("+a+");"}).join("")}function h(a){var b=[],c=i.resolve(a.outerContext.options.target||a.outerContext.options.root);for(var d in a.data){var e=a.data[d].styles,f=a.data[d].sourceMap,g=k.test(d),h=g?d:i.resolve(d),l=i.dirname(h),m={absolute:a.outerContext.options.explicitRoot,relative:!a.outerContext.options.explicitRoot,imports:!0,rebase:a.outerContext.options.rebase,fromBase:l,toBase:g?l:c,urlQuotes:a.outerContext.options.compatibility.properties.urlQuotes};e=j(e,m,a.outerContext),a.trackSource(d,e),e=a.outerContext.sourceTracker.store(d,e),a.outerContext.options.sourceMap&&f&&a.outerContext.inputSourceMapTracker.trackLoaded(d,d,f),b.push(e)}return b.join("")}var i=a("path"),j=a("../urls/rewrite"),k=/^(https?:)?\/\//;d.prototype.sourceAt=function(a){return this.sources[a]},d.prototype.trackSource=function(a,b){this.sources[a]={},this.sources[a][a]=b},d.prototype.toString=function(){return"string"==typeof this.data?e(this):c.isBuffer(this.data)?f(this):Array.isArray(this.data)?g(this):h(this)},b.exports=d}).call(this,{isBuffer:a("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":73,"../urls/rewrite":59,path:77}],66:[function(a,b,c){function d(){this.sources=[]}d.prototype.store=function(a,b){return this.sources.push(a),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+b+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},d.prototype.nextStart=function(a){var b=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(a);return b?{index:b.index,filename:this.sources[~~b[1]]}:null},d.prototype.nextEnd=function(a){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(a)},d.prototype.removeAll=function(a){return a.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},b.exports=d},{}],67:[function(a,b,c){function d(a,b,c,d,e){var f="string"!=typeof b,g=f?b.test(a):a.indexOf(b);if(!g)return[a];if(d=d||"(",e=e||")",-1==a.indexOf(d)&&!c)return a.split(b);for(var h=0,i=0,j=0,k=a.length,l=[];k>i;)a[i]==d?h++:a[i]==e&&h--,0===h&&i>0&&k>i+1&&(f?b.test(a[i]):a[i]==b)&&(l.push(a.substring(j,i+(c?1:0))),j=i+1),i++;if(i+1>j){var m=a.substring(j),n=m[m.length-1];!c&&(f?b.test(n):n==b)&&(m=m.substring(0,m.length-1)),l.push(m)}return l}b.exports=d},{}],68:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":73}],69:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f);return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned&&(c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],70:[function(a,b,c){var d=a("http"),e=b.exports;for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f]);e.request=function(a,b){return a||(a={}),a.scheme="https",a.protocol="https:",d.request.call(this,a,b)}},{http:123}],71:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],72:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],73:[function(a,b,c){b.exports=function(a){return!(null==a||!(a._isBuffer||a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)))}},{}],74:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],75:[function(a,b,c){"use strict";function d(a){return a.source.slice(1,-1)}var e=a("xml-char-classes");b.exports=new RegExp("^["+d(e.letter)+"_]["+d(e.letter)+d(e.digit)+"\\.\\-_"+d(e.combiningChar)+d(e.extender)+"]*$")},{"xml-char-classes":146}],76:[function(a,b,c){c.endianness=function(){return"LE"},c.hostname=function(){return"undefined"!=typeof location?location.hostname:""},c.loadavg=function(){return[]},c.uptime=function(){return 0},c.freemem=function(){return Number.MAX_VALUE},c.totalmem=function(){return Number.MAX_VALUE},c.cpus=function(){return[]},c.type=function(){return"Browser"},c.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},c.networkInterfaces=c.getNetworkInterfaces=function(){return{}},c.arch=function(){return"javascript"},c.platform=function(){return"browser"},c.tmpdir=c.tmpDir=function(){return"/tmp"},c.EOL="\n"},{}],77:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){ +var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:79}],78:[function(a,b,c){(function(a){"use strict";function c(b){for(var c=new Array(arguments.length-1),d=0;d1)for(var c=1;c1&&(d=c[0]+"@",a=c[1]),a=a.replace(G,".");var e=a.split("."),g=f(e,b).join(".");return d+g}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c&&!c.nodeType&&c,r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof a&&a;s.global!==s&&s.window!==s&&s.self!==s||(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.3.2",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&r)if(b.exports==q)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],81:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],82:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else!b.decoder||e||d||(c=b.decoder.write(c)),e||(b.reading=!1),b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&l(a)),n(a,b);else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length=J?a=J:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return B.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,l(a)}}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(F("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?z(m,a):m(a))}function m(a){F("emit readable"),a.emit("readable"),t(a)}function n(a,b){b.readingMore||(b.readingMore=!0,z(o,a,b))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=e)c=f?d.join(""):1===d.length?d[0]:B.concat(d,e),d.length=0;else if(aj&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l0)throw new Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,z(w,b,a))}function w(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function x(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function y(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e;var z=a("process-nextick-args"),A=a("isarray"),B=a("buffer").Buffer;e.ReadableState=d;var C,D=(a("events"),function(a,b){return a.listeners(b).length});!function(){try{C=a("stream")}catch(b){}finally{C||(C=a("events").EventEmitter)}}();var B=a("buffer").Buffer,E=a("core-util-is");E.inherits=a("inherits");var F,G=a("util");F=G&&G.debuglog?G.debuglog("stream"):function(){};var H;E.inherits(e,C);var I,I;e.prototype.push=function(a,b){var c=this._readableState;return c.objectMode||"string"!=typeof a||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new B(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(b){return H||(H=a("string_decoder/").StringDecoder),this._readableState.decoder=new H(b),this._readableState.encoding=b,this};var J=8388608;e.prototype.read=function(a){F("read",a);var b=this._readableState,c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return F("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?v(this):l(this),null;if(a=i(a,b),0===a&&b.ended)return 0===b.length&&v(this),null;var d=b.needReadable;F("need readable",d),(0===b.length||b.length-a0?u(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&v(this),null!==e&&this.emit("data",e),e},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){F("onunpipe"),a===l&&f()}function e(){F("onend"),a.end()}function f(){F("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",q),a.removeListener("error",h),a.removeListener("unpipe",d),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),r=!0,!m.awaitDrain||a._writableState&&!a._writableState.needDrain||q()}function g(b){F("ondata");var c=a.write(b);!1===c&&(1!==m.pipesCount||m.pipes[0]!==a||1!==l.listenerCount("data")||r||(F("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++),l.pause())}function h(b){F("onerror",b),k(),a.removeListener("error",h),0===D(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){F("onfinish"),a.removeListener("close",i),k()}function k(){F("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,F("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,o=n?e:f;m.endEmitted?z(o):l.once("end",o),a.on("unpipe",d);var q=p(l);a.on("drain",q);var r=!1;return l.on("data",g),a._events&&a._events.error?A(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(F("pipe resume"),l.resume()),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=y(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&this.readable){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):z(q,this))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var a=this._readableState;return a.flowing||(F("resume"),a.flowing=!0,r(this,a)),this},e.prototype.pause=function(){return F("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(F("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(F("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(F("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return x(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){F("wrapped _read",b),c&&(c=!1,a.resume())},d},e._fromList=u}).call(this,a("_process"))},{"./_stream_duplex":85,_process:79,buffer:5,"core-util-is":68,events:69,inherits:72,isarray:74,"process-nextick-args":78,"string_decoder/":127,util:3}],88:[function(a,b,c){"use strict";function d(a){this.afterTransform=function(b,c){return e(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length-1))throw new TypeError("Unknown encoding: "+a);this._writableState.defaultEncoding=a},g.prototype._write=function(a,b,c){c(new Error("not implemented"))},g.prototype._writev=null,g.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||v(this,d,c)}},{"./_stream_duplex":85,buffer:5,"core-util-is":68,events:69,inherits:72,"process-nextick-args":78,"util-deprecate":143}],90:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":86}],91:[function(a,b,c){var d=function(){try{return a("stream")}catch(b){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=d||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":85,"./lib/_stream_passthrough.js":86,"./lib/_stream_readable.js":87,"./lib/_stream_transform.js":88,"./lib/_stream_writable.js":89}],92:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":88}],93:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":89}],94:[function(a,b,c){"use strict";b.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},{}],95:[function(a,b,c){"use strict";function d(a,b){return!a.auth||b.removeAuth||!a.extra.relation.maximumHost&&b.output!==p.ABSOLUTE?"":a.auth+"@"}function e(a,b){return a.hash?a.hash:""}function f(a,b){return a.host.full&&(a.extra.relation.maximumAuth||b.output===p.ABSOLUTE)?a.host.full:""}function g(a,b){var c="",d=a.path.absolute.string,e=a.path.relative.string,f=o(a,b);if(a.extra.relation.maximumHost||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE)c=d;else if(e.length<=d.length&&b.output===p.SHORTEST||b.output===p.PATH_RELATIVE){if(c=e,""===c){var g=n(a,b)&&!!m(a,b);a.extra.relation.maximumPath&&!f?c="./":!a.extra.relation.overridesQuery||f||g||(c="./")}}else c=d;return"/"!==c||f||!b.removeRootTrailingSlash||a.extra.relation.minimumPort&&b.output!==p.ABSOLUTE||(c=""),c}function h(a,b){return a.port&&!a.extra.portIsDefault&&a.extra.relation.maximumHost?":"+a.port:""}function i(a,b){return n(a,b)?m(a,b):""}function j(a,b){return o(a,b)?a.resource:""}function k(a,b){var c="";return(a.extra.relation.maximumHost||b.output===p.ABSOLUTE)&&(c+=a.extra.relation.minimumScheme&&b.schemeRelative&&b.output!==p.ABSOLUTE?"//":a.scheme+"://"),c}function l(a,b){var c="";return c+=k(a,b),c+=d(a,b),c+=f(a,b),c+=h(a,b),c+=g(a,b),c+=j(a,b),c+=i(a,b),c+=e(a,b)}function m(a,b){var c=b.removeEmptyQueries&&a.extra.relation.minimumPort;return a.query.string[c?"stripped":"full"]}function n(a,b){return!a.extra.relation.minimumQuery||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE}function o(a,b){var c=b.removeDirectoryIndexes&&a.extra.resourceIsIndex,d=a.extra.relation.minimumResource&&b.output!==p.ABSOLUTE&&b.output!==p.ROOT_RELATIVE;return!!a.resource&&!d&&!c}var p=a("./constants");b.exports=l},{"./constants":94}],96:[function(a,b,c){"use strict";function d(a,b){this.options=g(b,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:d.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=i.from(a,this.options,null)}var e=a("./constants"),f=a("./format"),g=a("./options"),h=a("./util/object"),i=a("./parse"),j=a("./relate");d.prototype.relate=function(a,b,c){if(h.isPlainObject(b)?(c=b,b=a,a=null):b||(b=a,a=null),c=g(c,this.options),a=a||c.site,a=i.from(a,c,this.from),!a||!a.href)throw new Error("from value not defined.");if(a.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+a.href);return b=i.to(b,c),b.valid===!1?b.href:(b=j(a,b,c),b=f(b,c))},d.relate=function(a,b,c){return(new d).relate(a,b,c)},h.shallowMerge(d,e),b.exports=d},{"./constants":94,"./format":95,"./options":97,"./parse":100,"./relate":107,"./util/object":109}],97:[function(a,b,c){"use strict";function d(a,b){if(f.isPlainObject(a)){var c={};for(var d in b)b.hasOwnProperty(d)&&(void 0!==a[d]?c[d]=e(a[d],b[d]):c[d]=b[d]);return c}return b}function e(a,b){return b instanceof Object&&a instanceof Object?b instanceof Array&&a instanceof Array?b.concat(a):f.shallowMerge(a,b):a}var f=a("./util/object");b.exports=d},{"./util/object":109}],98:[function(a,b,c){"use strict";function d(a,b){if(b.ignore_www){var c=a.host.full;if(c){var d=c;0===c.indexOf("www.")&&(d=c.substr(4)),a.host.stripped=d}}}b.exports=d},{}],99:[function(a,b,c){"use strict";function d(a){var b=!(a.scheme||a.auth||a.host.full||a.port),c=b&&!a.path.absolute.string,d=c&&!a.resource,e=d&&!a.query.string.full.length,f=e&&!a.hash;a.extra.hrefInfo.minimumPathOnly=b,a.extra.hrefInfo.minimumResourceOnly=c,a.extra.hrefInfo.minimumQueryOnly=d,a.extra.hrefInfo.minimumHashOnly=e,a.extra.hrefInfo.empty=f}b.exports=d},{}],100:[function(a,b,c){"use strict";function d(a,b,c){if(a){var d=e(a,b),f=l.resolveDotSegments(d.path.absolute.array);return d.path.absolute.array=f,d.path.absolute.string="/"+l.join(f),d}return c}function e(a,b){var c=k(a,b);return c.valid===!1?c:(g(c,b),i(c,b),h(c,b),j(c,b),f(c),c)}var f=a("./hrefInfo"),g=a("./host"),h=a("./path"),i=a("./port"),j=a("./query"),k=a("./urlstring"),l=a("../util/path");b.exports={from:d,to:e}},{"../util/path":110,"./host":98,"./hrefInfo":99,"./path":101,"./port":102,"./query":103,"./urlstring":104}],101:[function(a,b,c){"use strict";function d(a,b){var c=!1;return b.directoryIndexes.every(function(b){return b===a?(c=!0,!1):!0}),c}function e(a,b){var c=a.path.absolute.string;if(c){var e=c.lastIndexOf("/");if(e>-1){if(++e-1&&(c=c.toString(),null===a.port&&(a.port=c),a.extra.portIsDefault=a.port===c)}b.exports=d},{}],103:[function(a,b,c){"use strict";function d(a,b){a.query.string.full=e(a.query.object,!1),b.removeEmptyQueries&&(a.query.string.stripped=e(a.query.object,!0))}function e(a,b){var c=0,d="";for(var e in a)if(""!==e&&a.hasOwnProperty(e)){var f=a[e];""===f&&b||(d+=1===++c?"?":"&",e=encodeURIComponent(e),d+=""!==f?e+"="+encodeURIComponent(f).replace(/%20/g,"+"):e)}return d}b.exports=d},{}],104:[function(a,b,c){"use strict";function d(a){var b=a.protocol;return b&&b.indexOf(":")===b.length-1&&(b=b.substr(0,b.length-1)),a.host={full:a.hostname,stripped:null},a.path={absolute:{array:null,string:a.pathname},relative:{array:null,string:null}},a.query={object:a.query,string:{full:null,stripped:null}},a.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===a.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:a.slashes},a.resource=null,a.scheme=b,delete a.hostname, +delete a.pathname,delete a.protocol,delete a.search,delete a.slashes,a}function e(a,b){var c=!0;return b.rejectedSchemes.every(function(b){return c=!(0===a.indexOf(b+":"))}),c}function f(a,b){return e(a,b)?d(g(a,!0,b.slashesDenoteHost)):{href:a,valid:!1}}var g=a("url").parse;b.exports=f},{url:141}],105:[function(a,b,c){"use strict";function d(a,b,c){h.upToPath(a,b,c),a.extra.relation.minimumScheme&&(a.scheme=b.scheme),a.extra.relation.minimumAuth&&(a.auth=b.auth),a.extra.relation.minimumHost&&(a.host=i.clone(b.host)),a.extra.relation.minimumPort&&f(a,b),a.extra.relation.minimumScheme&&e(a,b),h.pathOn(a,b,c),a.extra.relation.minimumResource&&g(a,b),a.extra.relation.minimumQuery&&(a.query=i.clone(b.query)),a.extra.relation.minimumHash&&(a.hash=b.hash)}function e(a,b){if(a.extra.relation.maximumHost||!a.extra.hrefInfo.minimumResourceOnly){var c=a.path.absolute.array,d="/";c?(a.extra.hrefInfo.minimumPathOnly&&0!==a.path.absolute.string.indexOf("/")&&(c=b.path.absolute.array.concat(c)),c=j.resolveDotSegments(c),d+=j.join(c)):c=[],a.path.absolute.array=c,a.path.absolute.string=d}else a.path=i.clone(b.path)}function f(a,b){a.port=b.port,a.extra.portIsDefault=b.extra.portIsDefault}function g(a,b){a.resource=b.resource,a.extra.resourceIsIndex=b.extra.resourceIsIndex}var h=a("./findRelation"),i=a("../util/object"),j=a("../util/path");b.exports=d},{"../util/object":109,"../util/path":110,"./findRelation":106}],106:[function(a,b,c){"use strict";function d(a,b,c){var d=a.extra.hrefInfo.minimumPathOnly,e=a.scheme===b.scheme||!a.scheme,f=e&&(a.auth===b.auth||c.removeAuth||d),g=c.ignore_www?"stripped":"full",h=f&&(a.host[g]===b.host[g]||d),i=h&&(a.port===b.port||d);a.extra.relation.minimumScheme=e,a.extra.relation.minimumAuth=f,a.extra.relation.minimumHost=h,a.extra.relation.minimumPort=i,a.extra.relation.maximumScheme=!e||e&&!f,a.extra.relation.maximumAuth=!e||e&&!h,a.extra.relation.maximumHost=!e||e&&!i}function e(a,b,c){var d=a.extra.hrefInfo.minimumQueryOnly,e=a.extra.hrefInfo.minimumHashOnly,f=a.extra.hrefInfo.empty,g=a.extra.relation.minimumPort,h=a.extra.relation.minimumScheme,i=g&&a.path.absolute.string===b.path.absolute.string,j=a.resource===b.resource||!a.resource&&b.extra.resourceIsIndex||c.removeDirectoryIndexes&&a.extra.resourceIsIndex&&!b.resource,k=i&&(j||d||e||f),l=c.removeEmptyQueries?"stripped":"full",m=a.query.string[l],n=b.query.string[l],o=k&&!!m&&m===n||(e||f)&&!a.extra.hrefInfo.separatorOnlyQuery,p=o&&a.hash===b.hash;a.extra.relation.minimumPath=i,a.extra.relation.minimumResource=k,a.extra.relation.minimumQuery=o,a.extra.relation.minimumHash=p,a.extra.relation.maximumPort=!h||h&&!i,a.extra.relation.maximumPath=!h||h&&!k,a.extra.relation.maximumResource=!h||h&&!o,a.extra.relation.maximumQuery=!h||h&&!p,a.extra.relation.maximumHash=!h||h&&!p,a.extra.relation.overridesQuery=i&&a.extra.relation.maximumResource&&!o&&!!n}b.exports={pathOn:e,upToPath:d}},{}],107:[function(a,b,c){"use strict";function d(a,b,c){return e(b,a,c),f(b,a,c),b}var e=a("./absolutize"),f=a("./relativize");b.exports=d},{"./absolutize":105,"./relativize":108}],108:[function(a,b,c){"use strict";function d(a,b){var c=[],d=!0,e=-1;return b.forEach(function(b,f){d&&(a[f]!==b?d=!1:e=f),d||c.push("..")}),a.forEach(function(a,b){b>e&&c.push(a)}),c}function e(a,b,c){if(a.extra.relation.minimumScheme){var e=d(a.path.absolute.array,b.path.absolute.array);a.path.relative.array=e,a.path.relative.string=f.join(e)}}var f=a("../util/path");b.exports=e},{"../util/path":110}],109:[function(a,b,c){"use strict";function d(a){if(a instanceof Object){var b=a instanceof Array?[]:{};for(var c in a)a.hasOwnProperty(c)&&(b[c]=d(a[c]));return b}return a}function e(a){return!!a&&"object"==typeof a&&a.constructor===Object}function f(a,b){if(a instanceof Object&&b instanceof Object)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}b.exports={clone:d,isPlainObject:e,shallowMerge:f}},{}],110:[function(a,b,c){"use strict";function d(a){return a.length?a.join("/")+"/":""}function e(a){var b=[];return a.forEach(function(a){".."!==a?"."!==a&&b.push(a):b.length&&b.splice(b.length-1,1)}),b}b.exports={join:d,resolveDotSegments:e}},{}],111:[function(a,b,c){c.SourceMapGenerator=a("./source-map/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./source-map/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":118,"./source-map/source-map-generator":119,"./source-map/source-node":120}],112:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(){this._array=[],this._set={}}var e=a("./util");d.fromArray=function(a,b){for(var c=new d,e=0,f=a.length;f>e;e++)c.add(a[e],b);return c},d.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},d.prototype.add=function(a,b){var c=this.has(a),d=this._array.length;c&&!b||this._array.push(a),c||(this._set[e.toSetString(a)]=d)},d.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this._set,e.toSetString(a))},d.prototype.indexOf=function(a){if(this.has(a))return this._set[e.toSetString(a)];throw new Error('"'+a+'" is not in the set.')},d.prototype.at=function(a){if(a>=0&&aa?(-a<<1)+1:(a<<1)+0}function e(a){var b=1===(1&a),c=a>>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},b.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),-1===h)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<=0&&a=b&&c>=a?a-b:a>=d&&e>=a?a-d+j:a>=f&&g>=a?a-f+k:a==h?62:a==i?63:-1}})},{amdefine:1}],115:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,c,e,f,g,h){var i=Math.floor((c-a)/2)+a,j=g(e,f[i],!0);return 0===j?i:j>0?c-i>1?d(i,c,e,f,g,h):h==b.LEAST_UPPER_BOUND?c1?d(a,i,e,f,g,h):h==b.LEAST_UPPER_BOUND?i:0>a?-1:a}b.GREATEST_LOWER_BOUND=1,b.LEAST_UPPER_BOUND=2,b.search=function(a,c,e,f){if(0===c.length)return-1;var g=d(-1,c.length,a,c,e,f||b.GREATEST_LOWER_BOUND);if(0>g)return-1;for(;g-1>=0&&0===e(c[g],c[g-1],!0);)--g;return g}})},{amdefine:1}],116:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},b.MappingList=e})},{"./util":121,amdefine:1}],117:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(g>c){var h=e(c,g),i=c-1;d(a,h,g);for(var j=a[g],k=c;g>k;k++)b(a[k],j)<=0&&(i+=1,d(a,i,k));d(a,i+1,k);var l=i+1;f(a,b,c,l-1),f(a,b,l+1,g)}}b.quickSort=function(a,b){f(a,b,0,a.length-1)}})},{amdefine:1}],118:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a){var b=a;return"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,""))),null!=b.sections?new g(b):new e(b)}function e(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),d=h.getArg(b,"sources"),e=h.getArg(b,"names",[]),f=h.getArg(b,"sourceRoot",null),g=h.getArg(b,"sourcesContent",null),i=h.getArg(b,"mappings"),k=h.getArg(b,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);d=d.map(h.normalize),this._names=j.fromArray(e,!0),this._sources=j.fromArray(d,!0),this.sourceRoot=f,this.sourcesContent=g,this._mappings=i,this.file=k}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function g(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),e=h.getArg(b,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new j,this._names=new j;var f={line:-1,column:0};this._sections=e.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var b=h.getArg(a,"offset"),c=h.getArg(b,"line"),e=h.getArg(b,"column");if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},b.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;n>m;m++){var o=g[m],p=new f;p.generatedLine=o.generatedLine,p.generatedColumn=o.generatedColumn,o.source&&(p.source=d.indexOf(o.source),p.originalLine=o.originalLine,p.originalColumn=o.originalColumn,o.name&&(p.name=c.indexOf(o.name)),k.push(p)),i.push(p)}return l(b.__originalMappings,h.compareByOriginalPositions),b},e.prototype._version=3,Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=this.sourceRoot?h.join(this.sourceRoot,a):a},this)}}),e.prototype._parseMappings=function(a,b){for(var c,d,e,g,i,j=1,m=0,n=0,o=0,p=0,q=0,r=a.length,s=0,t={},u={},v=[],w=[];r>s;)if(";"===a.charAt(s))j++,s++,m=0;else if(","===a.charAt(s))s++;else{for(c=new f,c.generatedLine=j,g=s;r>g&&!this._charIsMappingSeparator(a,g);g++);if(d=a.slice(s,g),e=t[d])s+=d.length;else{for(e=[];g>s;)k.decode(a,s,u),i=u.value,s=u.rest,e.push(i);if(2===e.length)throw new Error("Found a source, but no line and column");if(3===e.length)throw new Error("Found a source and line, but no column");t[d]=e}c.generatedColumn=m+e[0],m=c.generatedColumn,e.length>1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},b.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b=0,c=1,d=0,g=0,h=0,i=0,j="",k=this._mappings.toArray(),l=0,m=k.length;m>l;l++){if(a=k[l],a.generatedLine!==c)for(b=0;a.generatedLine!==c;)j+=";",c++;else if(l>0){if(!f.compareByGeneratedPositionsInflated(a,k[l-1]))continue;j+=","}j+=e.encode(a.generatedColumn-b),b=a.generatedColumn,null!=a.source&&(j+=e.encode(this._sources.indexOf(a.source)-i),i=this._sources.indexOf(a.source),j+=e.encode(a.originalLine-1-g),g=a.originalLine-1,j+=e.encode(a.originalColumn-d),d=a.originalColumn,null!=a.name&&(j+=e.encode(this._names.indexOf(a.name)-h),h=this._names.indexOf(a.name)))}return j},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},b.SourceMapGenerator=d})},{"./array-set":112,"./base64-vlq":113,"./mapping-list":116,"./util":121,amdefine:1}],120:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){for(var b,c=0,d=this.children.length;d>c;c++)b=this.children[c],b[i]?b.walk(a):""!==b&&a(b,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(a){var b,c,d=this.children.length;if(d>0){for(b=[],c=0;d-1>c;c++)b.push(this.children[c]),b.push(a);b.push(this.children[c]),this.children=b}return this},d.prototype.replaceRight=function(a,b){var c=this.children[this.children.length-1];return c[i]?c.replaceRight(a,b):"string"==typeof c?this.children[this.children.length-1]=c.replace(a,b):this.children.push("".replace(a,b)),this},d.prototype.setSourceContent=function(a,b){this.sourceContents[f.toSetString(a)]=b},d.prototype.walkSourceContents=function(a){for(var b=0,c=this.children.length;c>b;b++)this.children[b][i]&&this.children[b].walkSourceContents(a);for(var d=Object.keys(this.sourceContents),b=0,c=d.length;c>b;b++)a(f.fromSetString(d[b]),this.sourceContents[d[b]])},d.prototype.toString=function(){var a="";return this.walk(function(b){a+=b}),a},d.prototype.toStringWithSourceMap=function(a){var b={code:"",line:1,column:0},c=new e(a),d=!1,f=null,g=null,i=null,j=null;return this.walk(function(a,e){b.code+=a,null!==e.source&&null!==e.line&&null!==e.column?(f===e.source&&g===e.line&&i===e.column&&j===e.name||c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name}),f=e.source,g=e.line,i=e.column,j=e.name,d=!0):d&&(c.addMapping({generated:{line:b.line,column:b.column}}),f=null,d=!1);for(var k=0,l=a.length;l>k;k++)a.charCodeAt(k)===h?(b.line++,b.column=0,k+1===l?(f=null,d=!1):d&&c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name})):b.column++}),this.walkSourceContents(function(a,b){c.setSourceContent(a,b)}),{code:b.code,map:c}},b.SourceNode=d})},{"./source-map-generator":119,"./util":121,amdefine:1}],121:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw new Error('"'+b+'" is a required argument.')}function e(a){var b=a.match(p);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}function f(a){var b="";return a.scheme&&(b+=a.scheme+":"),b+="//",a.auth&&(b+=a.auth+"@"),a.host&&(b+=a.host),a.port&&(b+=":"+a.port),a.path&&(b+=a.path),b}function g(a){var b=a,c=e(a);if(c){if(!c.path)return a;b=c.path}for(var d,g="/"===b.charAt(0),h=b.split(/\/+/),i=0,j=h.length-1;j>=0;j--)d=h[j],"."===d?h.splice(j,1):".."===d?i++:i>0&&(""===d?(h.splice(j+1,i),i=0):(h.splice(j,2),i--));return b=h.join("/"),""===b&&(b=g?"/":"."),c?(c.path=b,f(c)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(q))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return"$"+a}function k(a){return a.substr(1)}function l(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function m(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function n(a,b){return a===b?0:a>b?1:-1}function o(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=n(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:n(a.name,b.name)))))}b.getArg=d;var p=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;b.urlParse=e,b.urlGenerate=f,b.normalize=g,b.join=h,b.relative=i,b.toSetString=j,b.fromSetString=k,b.compareByOriginalPositions=l,b.compareByGeneratedPositionsDeflated=m,b.compareByGeneratedPositionsInflated=o})},{amdefine:1}],122:[function(a,b,c){function d(){e.call(this)}b.exports=d;var e=a("events").EventEmitter,f=a("inherits");f(d,e),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a}},{events:69,inherits:72,"readable-stream/duplex.js":84,"readable-stream/passthrough.js":90,"readable-stream/readable.js":91,"readable-stream/transform.js":92,"readable-stream/writable.js":93}],123:[function(a,b,c){(function(b){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,c){a="string"==typeof a?g.parse(a):e(a);var f=-1===b.location.protocol.search(/^https?:$/)?"http:":"",h=a.protocol||f,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),a.url=(i?h+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new d(a);return c&&l.on("response",c), +l},h.get=function(a,b){var c=h.request(a,b);return c.end(),c},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":125,"builtin-status-codes":7,url:141,xtend:147}],124:[function(a,b,c){(function(a){function b(a){try{return f.responseType=a,f.responseType===a}catch(b){}return!1}function d(a){return"function"==typeof a}c.fetch=d(a.fetch)&&d(a.ReadableByteStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var f=new a.XMLHttpRequest;f.open("GET",a.location.host?"/":"https://example.com");var g="undefined"!=typeof a.ArrayBuffer,h=g&&d(a.ArrayBuffer.prototype.slice);c.arraybuffer=g&&b("arraybuffer"),c.msstream=!c.fetch&&h&&b("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&g&&b("moz-chunked-arraybuffer"),c.overrideMimeType=d(f.overrideMimeType),c.vbArray=d(a.VBArray),f=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],125:[function(a,b,c){(function(c,d,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{var b=a.status;return null!==b&&0!==b}catch(c){return!1}}var h=a("./capability"),i=a("inherits"),j=a("./response"),k=a("stream"),l=a("to-arraybuffer"),m=j.IncomingMessage,n=j.readyStates,o=b.exports=function(a){var b=this;k.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(c){b.setHeader(c,a.headers[c])});var c;if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=f(c),b.on("finish",function(){b._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===p.indexOf(d)&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var b,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(b=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:b,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var j=a._xhr=new d.XMLHttpRequest;try{j.open(a._opts.method,a._opts.url,!0)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}"responseType"in j&&(j.responseType=a._mode.split(":")[0]),"withCredentials"in j&&(j.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){j.setRequestHeader(g[a].name,g[a].value)}),a._response=null,j.onreadystatechange=function(){switch(j.readyState){case n.LOADING:case n.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(j.onprogress=function(){a._onXHRProgress()}),j.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{j.send(b)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}}}},o.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},o.prototype._connect=function(){var a=this;a._destroyed||(a._response=new m(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},o.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},o.prototype.abort=o.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},o.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),k.Writable.prototype.end.call(d,a,b,c)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":124,"./response":126,_process:79,buffer:5,inherits:72,stream:122,"to-arraybuffer":128}],126:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("inherits"),h=a("stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=c.IncomingMessage=function(a,c,d){function g(){m.read().then(function(a){if(!i._destroyed){if(a.done)return void i.push(null);i.push(new e(a.value)),g()}})}var i=this;if(h.Readable.call(i),i._mode=d,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){b.nextTick(function(){i.emit("close")})}),"fetch"===d){i._fetchResponse=c,i.statusCode=c.status,i.statusMessage=c.statusText;for(var j,k,l=c.headers[Symbol.iterator]();j=(k=l.next()).value,!k.done;)i.headers[j[0].toLowerCase()]=j[1],i.rawHeaders.push(j[0],j[1]);var m=c.body.getReader();g()}else{i._xhr=a,i._pos=0,i.statusCode=a.status,i.statusMessage=a.statusText;var n=a.getAllResponseHeaders().split(/\r?\n/);if(n.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===i.headers[c]&&(i.headers[c]=[]),i.headers[c].push(b[2])):void 0!==i.headers[c]?i.headers[c]+=", "+b[2]:i.headers[c]=b[2],i.rawHeaders.push(b[1],b[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var o=i.rawHeaders["mime-type"];if(o){var p=o.match(/;\s*charset=([^;])(;|$)/);p&&(i._charset=p[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(f){a._mode="text:vbarray";break}if(c.length>a._pos){var g=c.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new e(g.length),j=0;ja._pos&&(a.push(new e(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(c)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":124,_process:79,buffer:5,inherits:72,stream:122}],127:[function(a,b,c){function d(a){if(a&&!i(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a("buffer").Buffer,i=h.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},j=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};j.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:5}],128:[function(a,b,c){var d=a("buffer").Buffer;b.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(d.isBuffer(a)){for(var b=new Uint8Array(a.length),c=a.length,e=0;c>e;e++)b[e]=a[e];return b.buffer}throw new Error("Argument must be a Buffer")}},{buffer:5}],129:[function(a,b,c){function d(){this._array=[],this._set={}}var e=a("./util");d.fromArray=function(a,b){for(var c=new d,e=0,f=a.length;f>e;e++)c.add(a[e],b);return c},d.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},d.prototype.add=function(a,b){var c=e.toSetString(a),d=this._set.hasOwnProperty(c),f=this._array.length;d&&!b||this._array.push(a),d||(this._set[c]=f)},d.prototype.has=function(a){var b=e.toSetString(a);return this._set.hasOwnProperty(b)},d.prototype.indexOf=function(a){var b=e.toSetString(a);if(this._set.hasOwnProperty(b))return this._set[b];throw new Error('"'+a+'" is not in the set.')},d.prototype.at=function(a){if(a>=0&&aa?(-a<<1)+1:(a<<1)+0}function e(a){var b=1===(1&a),c=a>>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},c.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),-1===h)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<=0&&a=b&&c>=a?a-b:a>=d&&e>=a?a-d+j:a>=f&&g>=a?a-f+k:a==h?62:a==i?63:-1}},{}],132:[function(a,b,c){function d(a,b,e,f,g,h){var i=Math.floor((b-a)/2)+a,j=g(e,f[i],!0);return 0===j?i:j>0?b-i>1?d(i,b,e,f,g,h):h==c.LEAST_UPPER_BOUND?b1?d(a,i,e,f,g,h):h==c.LEAST_UPPER_BOUND?i:0>a?-1:a}c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.search=function(a,b,e,f){if(0===b.length)return-1;var g=d(-1,b.length,a,b,e,f||c.GREATEST_LOWER_BOUND);if(0>g)return-1;for(;g-1>=0&&0===e(b[g],b[g-1],!0);)--g;return g}},{}],133:[function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},c.MappingList=e},{"./util":138}],134:[function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(g>c){var h=e(c,g),i=c-1;d(a,h,g);for(var j=a[g],k=c;g>k;k++)b(a[k],j)<=0&&(i+=1,d(a,i,k));d(a,i+1,k);var l=i+1;f(a,b,c,l-1),f(a,b,l+1,g)}}c.quickSort=function(a,b){f(a,b,0,a.length-1)}},{}],135:[function(a,b,c){function d(a){var b=a;return"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,""))),null!=b.sections?new g(b):new e(b)}function e(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),d=h.getArg(b,"sources"),e=h.getArg(b,"names",[]),f=h.getArg(b,"sourceRoot",null),g=h.getArg(b,"sourcesContent",null),i=h.getArg(b,"mappings"),k=h.getArg(b,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);d=d.map(h.normalize).map(function(a){return f&&h.isAbsolute(f)&&h.isAbsolute(a)?h.relative(f,a):a}),this._names=j.fromArray(e,!0),this._sources=j.fromArray(d,!0),this.sourceRoot=f,this.sourcesContent=g,this._mappings=i,this.file=k}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function g(a){var b=a;"string"==typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));var c=h.getArg(b,"version"),e=h.getArg(b,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new j,this._names=new j;var f={line:-1,column:0};this._sections=e.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var b=h.getArg(a,"offset"),c=h.getArg(b,"line"),e=h.getArg(b,"column");if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},c.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;n>m;m++){var o=g[m],p=new f;p.generatedLine=o.generatedLine,p.generatedColumn=o.generatedColumn,o.source&&(p.source=d.indexOf(o.source),p.originalLine=o.originalLine,p.originalColumn=o.originalColumn,o.name&&(p.name=c.indexOf(o.name)),k.push(p)),i.push(p)}return l(b.__originalMappings,h.compareByOriginalPositions),b},e.prototype._version=3,Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=this.sourceRoot?h.join(this.sourceRoot,a):a},this)}}),e.prototype._parseMappings=function(a,b){for(var c,d,e,g,i,j=1,m=0,n=0,o=0,p=0,q=0,r=a.length,s=0,t={},u={},v=[],w=[];r>s;)if(";"===a.charAt(s))j++,s++,m=0;else if(","===a.charAt(s))s++;else{for(c=new f,c.generatedLine=j,g=s;r>g&&!this._charIsMappingSeparator(a,g);g++);if(d=a.slice(s,g),e=t[d])s+=d.length;else{for(e=[];g>s;)k.decode(a,s,u),i=u.value,s=u.rest,e.push(i);if(2===e.length)throw new Error("Found a source, but no line and column");if(3===e.length)throw new Error("Found a source and line, but no column");t[d]=e}c.generatedColumn=m+e[0],m=c.generatedColumn,e.length>1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},c.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b,c,d=0,g=1,h=0,i=0,j=0,k=0,l="",m=this._mappings.toArray(),n=0,o=m.length;o>n;n++){if(a=m[n],a.generatedLine!==g)for(d=0;a.generatedLine!==g;)l+=";",g++;else if(n>0){if(!f.compareByGeneratedPositionsInflated(a,m[n-1]))continue;l+=","}l+=e.encode(a.generatedColumn-d),d=a.generatedColumn,null!=a.source&&(c=this._sources.indexOf(a.source),l+=e.encode(c-k),k=c,l+=e.encode(a.originalLine-1-i),i=a.originalLine-1,l+=e.encode(a.originalColumn-h),h=a.originalColumn,null!=a.name&&(b=this._names.indexOf(a.name),l+=e.encode(b-j),j=b))}return l},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},c.SourceMapGenerator=d},{"./array-set":129,"./base64-vlq":130,"./mapping-list":133,"./util":138}],137:[function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){for(var b,c=0,d=this.children.length;d>c;c++)b=this.children[c],b[i]?b.walk(a):""!==b&&a(b,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(a){var b,c,d=this.children.length;if(d>0){for(b=[],c=0;d-1>c;c++)b.push(this.children[c]),b.push(a);b.push(this.children[c]),this.children=b}return this},d.prototype.replaceRight=function(a,b){var c=this.children[this.children.length-1];return c[i]?c.replaceRight(a,b):"string"==typeof c?this.children[this.children.length-1]=c.replace(a,b):this.children.push("".replace(a,b)),this},d.prototype.setSourceContent=function(a,b){this.sourceContents[f.toSetString(a)]=b; +},d.prototype.walkSourceContents=function(a){for(var b=0,c=this.children.length;c>b;b++)this.children[b][i]&&this.children[b].walkSourceContents(a);for(var d=Object.keys(this.sourceContents),b=0,c=d.length;c>b;b++)a(f.fromSetString(d[b]),this.sourceContents[d[b]])},d.prototype.toString=function(){var a="";return this.walk(function(b){a+=b}),a},d.prototype.toStringWithSourceMap=function(a){var b={code:"",line:1,column:0},c=new e(a),d=!1,f=null,g=null,i=null,j=null;return this.walk(function(a,e){b.code+=a,null!==e.source&&null!==e.line&&null!==e.column?(f===e.source&&g===e.line&&i===e.column&&j===e.name||c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name}),f=e.source,g=e.line,i=e.column,j=e.name,d=!0):d&&(c.addMapping({generated:{line:b.line,column:b.column}}),f=null,d=!1);for(var k=0,l=a.length;l>k;k++)a.charCodeAt(k)===h?(b.line++,b.column=0,k+1===l?(f=null,d=!1):d&&c.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b.line,column:b.column},name:e.name})):b.column++}),this.walkSourceContents(function(a,b){c.setSourceContent(a,b)}),{code:b.code,map:c}},c.SourceNode=d},{"./source-map-generator":136,"./util":138}],138:[function(a,b,c){function d(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw new Error('"'+b+'" is a required argument.')}function e(a){var b=a.match(p);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}function f(a){var b="";return a.scheme&&(b+=a.scheme+":"),b+="//",a.auth&&(b+=a.auth+"@"),a.host&&(b+=a.host),a.port&&(b+=":"+a.port),a.path&&(b+=a.path),b}function g(a){var b=a,d=e(a);if(d){if(!d.path)return a;b=d.path}for(var g,h=c.isAbsolute(b),i=b.split(/\/+/),j=0,k=i.length-1;k>=0;k--)g=i[k],"."===g?i.splice(k,1):".."===g?j++:j>0&&(""===g?(i.splice(k+1,j),j=0):(i.splice(k,2),j--));return b=i.join("/"),""===b&&(b=h?"/":"."),d?(d.path=b,f(d)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(q))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return"$"+a}function k(a){return a.substr(1)}function l(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function m(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function n(a,b){return a===b?0:a>b?1:-1}function o(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=n(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:n(a.name,b.name)))))}c.getArg=d;var p=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;c.urlParse=e,c.urlGenerate=f,c.normalize=g,c.join=h,c.isAbsolute=function(a){return"/"===a.charAt(0)||!!a.match(p)},c.relative=i,c.toSetString=j,c.fromSetString=k,c.compareByOriginalPositions=l,c.compareByGeneratedPositionsDeflated=m,c.compareByGeneratedPositionsInflated=o},{}],139:[function(a,b,c){c.SourceMapGenerator=a("./lib/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./lib/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./lib/source-node").SourceNode},{"./lib/source-map-consumer":135,"./lib/source-map-generator":136,"./lib/source-node":137}],140:[function(a,b,c){function d(a){for(var b=Object.create(null),c=0;c=0;)if(b[c]==a)return!0;return!1}function h(a,b){for(var c=0,d=b.length;d>c;++c)if(a(b[c]))return b[c]}function i(a,b){if(0>=b)return"";if(1==b)return a;var c=i(a,b>>1);return c+=c,1&b&&(c+=a),c}function j(a,b){Error.call(this,a),this.msg=a,this.defs=b}function k(a,b,c){a===!0&&(a={});var d=a||{};if(c)for(var e in d)d.hasOwnProperty(e)&&!b.hasOwnProperty(e)&&j.croak("`"+e+"` is not a supported option",b);for(var e in b)b.hasOwnProperty(e)&&(d[e]=a&&a.hasOwnProperty(e)?a[e]:b[e]);return d}function l(a,b){var c=0;for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d],c++);return c}function m(){}function n(a,b){a.indexOf(b)<0&&a.push(b)}function o(a,b){return a.replace(/\{(.+?)\}/g,function(a,c){return b[c]})}function p(a,b){for(var c=a.length;--c>=0;)a[c]===b&&a.splice(c,1)}function q(a,b){function c(a,c){for(var d=[],e=0,f=0,g=0;e=0})}function t(a){function b(a){if(1==a.length)return c+="return str === "+JSON.stringify(a[0])+";";c+="switch(str){";for(var b=0;b3){d.sort(function(a,b){return b.length-a.length}),c+="switch(str.length){";for(var e=0;e=0;)if(!b(a[c]))return!1;return!0}function v(){this._values=Object.create(null),this._size=0}function w(a,b,d,e){arguments.length<4&&(e=_),b=b?b.split(/\s+/):[];var f=b;e&&e.PROPS&&(b=b.concat(e.PROPS));for(var g="return function AST_"+a+"(props){ if (props) { ",h=b.length;--h>=0;)g+="this."+b[h]+" = props."+b[h]+";";var i=e&&new e;(i&&i.initialize||d&&d.initialize)&&(g+="this.initialize();"),g+="}}";var j=new Function(g)();if(i&&(j.prototype=i,j.BASE=e),e&&e.SUBCLASSES.push(j),j.prototype.CTOR=j,j.PROPS=b||null,j.SELF_PROPS=f,j.SUBCLASSES=[],a&&(j.prototype.TYPE=j.TYPE=a),d)for(h in d)d.hasOwnProperty(h)&&(/^\$/.test(h)?j[h.substr(1)]=d[h]:j.prototype[h]=d[h]);return j.DEFMETHOD=function(a,b){this.prototype[a]=b},c["AST_"+a]=j,j}function x(a,b){a.body instanceof aa?a.body._walk(b):a.body.forEach(function(a){a._walk(b)})}function y(a){this.visit=a,this.stack=[],this.directives=Object.create(null)}function z(a){return a>=97&&122>=a||a>=65&&90>=a||a>=170&&Rb.letter.test(String.fromCharCode(a))}function A(a){return a>=48&&57>=a}function B(a){return A(a)||z(a)}function C(a){return Rb.digit.test(String.fromCharCode(a))}function D(a){return Rb.non_spacing_mark.test(a)||Rb.space_combining_mark.test(a)}function E(a){return Rb.connector_punctuation.test(a)}function F(a){return!Hb(a)&&/^[a-z_$][a-z0-9_$]*$/i.test(a)}function G(a){return 36==a||95==a||z(a)}function H(a){var b=a.charCodeAt(0);return G(b)||A(b)||8204==b||8205==b||D(a)||E(a)||C(b)}function I(a){return/^[a-z_$][a-z0-9_$]*$/i.test(a)}function J(a){if(Kb.test(a))return parseInt(a.substr(2),16);if(Lb.test(a))return parseInt(a.substr(1),8);var b=parseFloat(a);return b==a?b:void 0}function K(a,b,c,d,e){this.message=a,this.filename=b,this.line=c,this.col=d,this.pos=e,this.stack=(new Error).stack}function L(a,b,c,d,e){throw new K(a,b,c,d,e)}function M(a,b,c){return a.type==b&&(null==c||a.value==c)}function N(a,b,c,d){function e(){return z.text.charAt(z.pos)}function f(a,b){var c=z.text.charAt(z.pos++);if(a&&!c)throw Sb;return"\r\n\u2028\u2029".indexOf(c)>=0?(z.newline_before=z.newline_before||!b,++z.line,z.col=0,b||"\r"!=c||"\n"!=e()||(++z.pos,c="\n")):++z.col,c}function g(a){for(;a-- >0;)f()}function h(a){return z.text.substr(z.pos,a.length)==a}function i(a,b){var c=z.text.indexOf(a,z.pos);if(b&&-1==c)throw Sb;return c}function j(){z.tokline=z.line,z.tokcol=z.col,z.tokpos=z.pos}function k(c,d,e){z.regex_allowed="operator"==c&&!Ub(d)||"keyword"==c&&Ib(d)||"punc"==c&&Ob(d),C="punc"==c&&"."==d;var f={type:c,value:d,line:z.tokline,col:z.tokcol,pos:z.tokpos,endline:z.line,endcol:z.col,endpos:z.pos,nlb:z.newline_before,file:b};if(/^(?:num|string|regexp)$/i.test(c)&&(f.raw=a.substring(f.pos,f.endpos)),!e){f.comments_before=z.comments_before,z.comments_before=[];for(var g=0,h=f.comments_before.length;h>g;g++)f.nlb=f.nlb||f.comments_before[g].nlb}return z.newline_before=!1,new $(f)}function l(){for(var a;Nb(a=e())||"\u2028"==a||"\u2029"==a;)f()}function m(a){for(var b,c="",d=0;(b=e())&&a(b,d++);)c+=f();return c}function n(a){L(a,b,z.tokline,z.tokcol,z.tokpos)}function o(a){var b=!1,c=!1,d=!1,e="."==a,f=m(function(f,g){var h=f.charCodeAt(0);switch(h){case 120:case 88:return d?!1:d=!0;case 101:case 69:return d?!0:b?!1:b=c=!0;case 45:return c||0==g&&!a;case 43:return c;case c=!1,46:return e||d||b?!1:e=!0}return B(h)});a&&(f=a+f);var g=J(f);return isNaN(g)?void n("Invalid syntax: "+f):k("num",g)}function p(a){var b=f(!0,a);switch(b.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 120:return String.fromCharCode(q(2));case 117:return String.fromCharCode(q(4));case 10:return"";case 13:if("\n"==e())return f(!0,a),""}return b}function q(a){for(var b=0;a>0;--a){var c=parseInt(f(!0),16);isNaN(c)&&n("Invalid hex-character pattern in string"),b=b<<4|c}return b}function r(a){var b,c=z.regex_allowed,d=i("\n");return-1==d?(b=z.text.substr(z.pos),z.pos=z.text.length):(b=z.text.substring(z.pos,d),z.pos=d),z.col=z.tokcol+(z.pos-z.tokpos),z.comments_before.push(k(a,b,!0)),z.regex_allowed=c,y()}function s(){for(var a,b,c=!1,d="",g=!1;null!=(a=e());)if(c)"u"!=a&&n("Expecting UnicodeEscapeSequence -- uXXXX"),a=p(),H(a)||n("Unicode char: "+a.charCodeAt(0)+" is not valid in identifier"),d+=a,c=!1;else if("\\"==a)g=c=!0,f();else{if(!H(a))break;d+=f()}return Fb(d)&&g&&(b=d.charCodeAt(0).toString(16).toUpperCase(),d="\\u"+"0000".substr(b.length)+b+d.slice(1)),d}function t(a){function b(a){if(!e())return a;var c=a+e();return Mb(c)?(f(),b(c)):a}return k("operator",b(a||f()))}function u(){switch(f(),e()){case"/":return f(),r("comment1");case"*":return f(),E()}return z.regex_allowed?F(""):t("/")}function v(){return f(),A(e().charCodeAt(0))?o("."):k("punc",".")}function w(){var a=s();return C?k("name",a):Gb(a)?k("atom",a):Fb(a)?Mb(a)?k("operator",a):k("keyword",a):k("name",a)}function x(a,b){return function(c){try{return b(c)}catch(d){if(d!==Sb)throw d;n(a)}}}function y(a){if(null!=a)return F(a);if(l(),j(),c){if(h("")&&z.newline_before)return g(3),r("comment4")}var b=e();if(!b)return k("eof");var i=b.charCodeAt(0);switch(i){case 34:case 39:return D(b);case 46:return v();case 47:return u()}return A(i)?o():Pb(b)?k("punc",f()):Jb(b)?t():92==i||G(i)?w():d&&0==z.pos&&h("#!")?(g(2),r("comment5")):void n("Unexpected character '"+b+"'")}var z={text:a,filename:b,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[]},C=!1,D=x("Unterminated string constant",function(a){for(var b=f(),c="";;){var d=f(!0,!0);if("\\"==d){var e=0,g=null;d=m(function(a){if(a>="0"&&"7">=a){if(!g)return g=a,++e;if("3">=g&&2>=e)return++e;if(g>="4"&&1>=e)return++e}return!1}),d=e>0?String.fromCharCode(parseInt(d,8)):p(!0)}else if(d==b)break;c+=d}var h=k("string",c);return h.quote=a,h}),E=x("Unterminated multiline comment",function(){var a=z.regex_allowed,b=i("*/",!0),c=z.text.substring(z.pos,b),d=c.split("\n"),e=d.length;z.pos=b+2,z.line+=e-1,e>1?z.col=d[e-1].length:z.col+=d[e-1].length,z.col+=2;var f=z.newline_before=z.newline_before||c.indexOf("\n")>=0;return z.comments_before.push(k("comment2",c,!0)),z.regex_allowed=a,z.newline_before=f,y()}),F=x("Unterminated regular expression",function(a){for(var b,c=!1,d=!1;b=f(!0);)if(c)a+="\\"+b,c=!1;else if("["==b)d=!0,a+=b;else if("]"==b&&d)d=!1,a+=b;else{if("/"==b&&!d)break;"\\"==b?c=!0:a+=b}var e=s();try{return k("regexp",new RegExp(a,e))}catch(g){n(g.message)}});return y.context=function(a){return a&&(z=a),z},y}function O(a,b){function c(a,b){return M(Q.token,a,b)}function d(){return Q.peeked||(Q.peeked=Q.input())}function e(){return Q.prev=Q.token,Q.peeked?(Q.token=Q.peeked,Q.peeked=null):Q.token=Q.input(),Q.in_directives=Q.in_directives&&("string"==Q.token.type||c("punc",";")),Q.token}function f(){return Q.prev}function g(a,b,c,d){var e=Q.input.context();L(a,e.filename,null!=b?b:e.tokline,null!=c?c:e.tokcol,null!=d?d:e.tokpos)}function i(a,b){g(b,a.line,a.col)}function j(a){null==a&&(a=Q.token),i(a,"Unexpected token: "+a.type+" ("+a.value+")")}function l(a,b){return c(a,b)?e():void i(Q.token,"Unexpected token "+Q.token.type+" «"+Q.token.value+"», expected "+a+" «"+b+"»")}function m(a){return l("punc",a)}function n(){return!b.strict&&(Q.token.nlb||c("eof")||c("punc","}"))}function o(){c("punc",";")?e():n()||j()}function p(){m("(");var a=ha(!0);return m(")"),a}function q(a){return function(){var b=Q.token,c=a(),d=f();return c.start=b,c.end=d,c}}function r(){(c("operator","/")||c("operator","/="))&&(Q.peeked=null,Q.token=Q.input(Q.token.value.substr(1)))}function s(){var a=I(ob);h(function(b){return b.name==a.name},Q.labels)&&g("Label "+a.name+" defined twice"),m(":"),Q.labels.push(a);var b=R();return Q.labels.pop(),b instanceof ja||a.references.forEach(function(b){b instanceof Ca&&(b=b.label.start,g("Continue label `"+a.name+"` refers to non-IterationStatement.",b.line,b.col,b.pos))}),new ia({body:b,label:a})}function t(a){return new da({body:(a=ha(!0),o(),a)})}function u(a){var b,c=null;n()||(c=I(qb,!0)),null!=c?(b=h(function(a){return a.name==c.name},Q.labels),b||g("Undefined label "+c.name),c.thedef=b):0==Q.in_loop&&g(a.TYPE+" not inside a loop or switch"),o();var d=new a({label:c});return b&&b.references.push(d),d}function v(){m("(");var a=null;return!c("punc",";")&&(a=c("keyword","var")?(e(),T(!0)):ha(!0,!0),c("operator","in"))?(a instanceof Ma&&a.definitions.length>1&&g("Only one variable declaration allowed in for..in loop"),e(),x(a)):w(a)}function w(a){m(";");var b=c("punc",";")?null:ha(!0);m(";");var d=c("punc",")")?null:ha(!0);return m(")"),new na({init:a,condition:b,step:d,body:P(R)})}function x(a){var b=a instanceof Ma?a.definitions[0].name:null,c=ha(!0);return m(")"),new oa({init:a,name:b,object:c,body:P(R)})}function y(){var a=p(),b=R(),d=null;return c("keyword","else")&&(e(),d=R()),new Da({condition:a,body:b,alternative:d})}function z(){m("{");for(var a=[];!c("punc","}");)c("eof")&&j(),a.push(R());return e(),a}function A(){m("{");for(var a,b=[],d=null,g=null;!c("punc","}");)c("eof")&&j(),c("keyword","case")?(g&&(g.end=f()),d=[],g=new Ha({start:(a=Q.token,e(),a),expression:ha(!0),body:d}),b.push(g),m(":")):c("keyword","default")?(g&&(g.end=f()),d=[],g=new Ga({start:(a=Q.token,e(),m(":"),a),body:d}),b.push(g)):(d||j(),d.push(R()));return g&&(g.end=f()),e(),b}function B(){var a=z(),b=null,d=null;if(c("keyword","catch")){var h=Q.token;e(),m("(");var i=I(nb);m(")"),b=new Ja({start:h,argname:i,body:z(),end:f()})}if(c("keyword","finally")){var h=Q.token;e(),d=new Ka({start:h,body:z(),end:f()})}return b||d||g("Missing catch/finally blocks"),new Ia({body:a,bcatch:b,bfinally:d})}function C(a,b){for(var d=[];d.push(new Oa({start:Q.token,name:I(b?jb:ib),value:c("operator","=")?(e(),ha(!1,a)):null,end:f()})),c("punc",",");)e();return d}function D(){var a,b=Q.token;switch(b.type){case"name":case"keyword":a=H(pb);break;case"num":a=new ub({start:b,end:b,value:b.value});break;case"string":a=new tb({start:b,end:b,value:b.value,quote:b.quote});break;case"regexp":a=new vb({start:b,end:b,value:b.value});break;case"atom":switch(b.value){case"false":a=new Db({start:b,end:b});break;case"true":a=new Eb({start:b,end:b});break;case"null":a=new xb({start:b,end:b})}}return e(),a}function E(a,b,d){for(var f=!0,g=[];!c("punc",a)&&(f?f=!1:m(","),!b||!c("punc",a));)c("punc",",")&&d?g.push(new Ab({start:Q.token,end:Q.token})):g.push(ha(!1));return e(),g}function F(){var a=Q.token;switch(e(),a.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function G(){var a=Q.token;switch(e(),a.type){case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function H(a){var b=Q.token.value;return new("this"==b?rb:a)({name:String(b),start:Q.token,end:Q.token})}function I(a,b){if(!c("name"))return b||g("Name expected"),null;var d=H(a);return e(),d}function J(a,b,c){return"++"!=b&&"--"!=b||O(c)||g("Invalid use of "+b+" operator"),new a({operator:b,expression:c})}function K(a){return _($(!0),0,a)}function O(a){return b.strict?a instanceof rb?!1:a instanceof Sa||a instanceof fb:!0}function P(a){++Q.in_loop;var b=a();return--Q.in_loop,b}b=k(b,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var Q={input:"string"==typeof a?N(a,b.filename,b.html5_comments,b.shebang):a,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};Q.token=e();var R=q(function(){var a;switch(r(),Q.token.type){case"string":var h=Q.in_directives,i=t();return h&&i.body instanceof tb&&!c("punc",",")?new ca({start:i.body.start,end:i.body.end,quote:i.body.quote,value:i.body.value}):i;case"num":case"regexp":case"operator":case"atom":return t();case"name":return M(d(),"punc",":")?s():t();case"punc":switch(Q.token.value){case"{":return new fa({start:Q.token,body:z(),end:f()});case"[":case"(":return t();case";":return e(),new ga;default:j()}case"keyword":switch(a=Q.token.value,e(),a){case"break":return u(Ba);case"continue":return u(Ca);case"debugger":return o(),new ba;case"do":return new la({body:P(R),condition:(l("keyword","while"),a=p(),o(),a)});case"while":return new ma({condition:p(),body:P(R)});case"for":return v();case"function":return S(va);case"if":return y();case"return":return 0!=Q.in_function||b.bare_returns||g("'return' outside of function"),new ya({value:c("punc",";")?(e(),null):n()?null:(a=ha(!0),o(),a)});case"switch":return new Ea({expression:p(),body:P(A)});case"throw":return Q.token.nlb&&g("Illegal newline after 'throw'"),new za({value:(a=ha(!0),o(),a)});case"try":return B();case"var":return a=T(),o(),a;case"const":return a=U(),o(),a;case"with":return new pa({expression:p(),body:R()});default:j()}}}),S=function(a){var b=a===va,d=c("name")?I(b?lb:mb):null;return b&&!d&&j(),m("("),new a({name:d,argnames:function(a,b){for(;!c("punc",")");)a?a=!1:m(","),b.push(I(kb));return e(),b}(!0,[]),body:function(a,b){++Q.in_function,Q.in_directives=!0,Q.in_loop=0,Q.labels=[];var c=z();return--Q.in_function,Q.in_loop=a,Q.labels=b,c}(Q.in_loop,Q.labels)})},T=function(a){return new Ma({start:f(),definitions:C(a,!1),end:f()})},U=function(){return new Na({start:f(),definitions:C(!1,!0),end:f()})},V=function(a){var b=Q.token;l("operator","new");var d,g=W(!1);return c("punc","(")?(e(),d=E(")")):d=[],Z(new Qa({start:b,expression:g,args:d,end:f()}),a)},W=function(a){if(c("operator","new"))return V(a);var b=Q.token;if(c("punc")){switch(b.value){case"(":e();var d=ha(!0);return d.start=b,d.end=Q.token,m(")"),Z(d,a);case"[":return Z(X(),a);case"{":return Z(Y(),a)}j()}if(c("keyword","function")){e();var g=S(ua);return g.start=b,g.end=f(),Z(g,a)}return Yb[Q.token.type]?Z(D(),a):void j()},X=q(function(){return m("["),new _a({elements:E("]",!b.strict,!0)})}),Y=q(function(){m("{");for(var a=!0,d=[];!c("punc","}")&&(a?a=!1:m(","),b.strict||!c("punc","}"));){var g=Q.token,h=g.type,i=F();if("name"==h&&!c("punc",":")){if("get"==i){d.push(new eb({start:g,key:D(),value:S(ta),end:f()}));continue}if("set"==i){d.push(new db({start:g,key:D(),value:S(ta),end:f()}));continue}}m(":"),d.push(new cb({start:g,quote:g.quote,key:i,value:ha(!1),end:f()}))}return e(),new ab({properties:d})}),Z=function(a,b){var d=a.start;if(c("punc","."))return e(),Z(new Ta({start:d,expression:a,property:G(),end:f()}),b);if(c("punc","[")){e();var g=ha(!0);return m("]"),Z(new Ua({start:d,expression:a,property:g,end:f()}),b)}return b&&c("punc","(")?(e(),Z(new Pa({start:d,expression:a,args:E(")"),end:f()}),!0)):a},$=function(a){var b=Q.token;if(c("operator")&&Tb(b.value)){e(),r();var d=J(Wa,b.value,$(a));return d.start=b,d.end=f(),d}for(var g=W(a);c("operator")&&Ub(Q.token.value)&&!Q.token.nlb;)g=J(Xa,Q.token.value,g),g.start=b,g.end=Q.token,e();return g},_=function(a,b,d){var f=c("operator")?Q.token.value:null;"in"==f&&d&&(f=null);var g=null!=f?Wb[f]:null;if(null!=g&&g>b){e();var h=_($(!0),g,d);return _(new Ya({start:a.start,left:a,operator:f,right:h,end:h.end}),b,d)}return a},aa=function(a){var b=Q.token,d=K(a);if(c("operator","?")){e();var g=ha(!1);return m(":"),new Za({start:b,condition:d,consequent:g,alternative:ha(!1,a),end:f()})}return d},ea=function(a){var b=Q.token,d=aa(a),h=Q.token.value;if(c("operator")&&Vb(h)){if(O(d))return e(),new $a({start:b,left:d,operator:h,right:ea(a),end:f()});g("Invalid assignment")}return d},ha=function(a,b){var f=Q.token,g=ea(b);return a&&c("punc",",")?(e(),new Ra({start:f,car:g,cdr:ha(!0,b),end:d()})):g};return b.expression?ha(!0):function(){for(var a=Q.token,d=[];!c("eof");)d.push(R());var e=f(),g=b.toplevel;return g?(g.body=g.body.concat(d),g.end=e):g=new ra({start:a,body:d,end:e}),g}()}function P(a,b){y.call(this),this.before=a,this.after=b}function Q(a,b,c){this.name=c.name,this.orig=[c],this.scope=a,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=b}function R(a){function b(a,b){return a.replace(/[\u0080-\uffff]/g,function(a){var c=a.charCodeAt(0).toString(16);if(c.length<=2&&!b){for(;c.length<2;)c="0"+c;return"\\x"+c}for(;c.length<4;)c="0"+c;return"\\u"+c})}function c(c,d){function e(){return"'"+c.replace(/\x27/g,"\\'")+"'"}function f(){return'"'+c.replace(/\x22/g,'\\"')+'"'}var g=0,h=0;switch(c=c.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(b){switch(b){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\x0B":return a.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case'"':return++g,'"';case"'":return++h,"'";case"\x00":return"\\x00";case"\ufeff":return"\\ufeff"}return b}),a.ascii_only&&(c=b(c)),a.quote_style){case 1:return e();case 2:return f();case 3:return"'"==d?e():f();default:return g>h?e():f()}}function d(b,d){var e=c(b,d);return a.inline_script&&(e=e.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),e=e.replace(/\x3c!--/g,"\\x3c!--"),e=e.replace(/--\x3e/g,"--\\x3e")),e}function e(c){return c=c.toString(),a.ascii_only&&(c=b(c,!0)),c}function f(b){return i(" ",a.indent_start+v-b*a.indent_level)}function g(){return C.charAt(C.length-1)}function h(){a.max_line_len&&w>a.max_line_len&&j("\n")}function j(b){b=String(b);var c=b.charAt(0);if(B&&(B=!1,c&&!(";}".indexOf(c)<0)||/[;]$/.test(C)||(a.semicolons||D(c)?(z+=";",w++,y++):(z+="\n",y++,x++,w=0,/^\s+$/.test(b)&&(B=!0)),a.beautify||(A=!1))),!a.beautify&&a.preserve_line&&L[L.length-1])for(var d=L[L.length-1].start.line;d>x;)z+="\n",y++,x++,w=0,A=!1;if(A){var e=g();(H(e)&&(H(c)||"\\"==c)||/^[\+\-\/]$/.test(c)&&c==e)&&(z+=" ",w++,y++),A=!1}var f=b.split(/\r?\n/),h=f.length-1;x+=h,0==h?w+=f[h].length:w=f[h].length,y+=b.length,C=b,z+=b}function l(){B=!1,j(";")}function n(){return v+a.indent_level}function o(a){var b;return j("{"),I(),G(n(),function(){b=a()}),F(),j("}"),b}function p(a){j("(");var b=a();return j(")"),b}function q(a){j("[");var b=a();return j("]"),b}function r(){j(","),E()}function s(){j(":"),a.space_colon&&E()}function u(){return z}a=k(a,{indent_start:0,indent_level:4,quote_keys:!1,space_colon:!0,ascii_only:!1,unescape_regexps:!1,inline_script:!1,width:80,max_line_len:32e3,beautify:!1,source_map:null,bracketize:!1,semicolons:!0,comments:!1,shebang:!0,preserve_line:!1,screw_ie8:!1,preamble:null,quote_style:0},!0);var v=0,w=0,x=1,y=0,z="",A=!1,B=!1,C=null,D=t("( [ + * / - , ."),E=a.beautify?function(){j(" ")}:function(){A=!0},F=a.beautify?function(b){a.beautify&&j(f(b?.5:0))}:m,G=a.beautify?function(a,b){a===!0&&(a=n());var c=v;v=a;var d=b();return v=c,d}:function(a,b){return b()},I=a.beautify?function(){j("\n")}:h,J=a.beautify?function(){j(";")}:function(){B=!0},K=a.source_map?function(b,c){try{b&&a.source_map.add(b.file||"?",x,w,b.line,b.col,c||"name"!=b.type?c:b.value)}catch(d){_.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:b.file,line:b.line,col:b.col,cline:x,ccol:w,name:c||""})}}:m;a.preamble&&j(a.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"));var L=[];return{get:u,toString:u,indent:F,indentation:function(){return v},current_width:function(){return w-v},should_break:function(){return a.width&&this.current_width()>=a.width},newline:I,print:j,space:E,comma:r,colon:s,last:function(){return C},semicolon:J,force_semicolon:l,to_ascii:b,print_name:function(a){j(e(a))},print_string:function(a,b){j(d(a,b))},next_indent:n,with_indent:G,with_block:o,with_parens:p,with_square:q,add_mapping:K,option:function(b){return a[b]},line:function(){return x},col:function(){return w},pos:function(){return y},push_node:function(a){L.push(a)},pop_node:function(){return L.pop()},stack:function(){return L},parent:function(a){return L[L.length-2-(a||0)]}}}function S(a,b){return this instanceof S?(P.call(this,this.before,this.after),void(this.options=k(a,{sequences:!b,properties:!b,dead_code:!b,drop_debugger:!b,unsafe:!1,unsafe_comps:!1,conditionals:!b,comparisons:!b,evaluate:!b,booleans:!b,loops:!b,unused:!b,hoist_funs:!b,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!b,join_vars:!b,cascade:!b,side_effects:!b,pure_getters:!1,pure_funcs:null,negate_iife:!b,screw_ie8:!1,drop_console:!1,angular:!1,warnings:!0,global_defs:{}},!0))):new S(a,b)}function T(a){function b(b,e,f,g,h,i){if(d){var j=d.originalPositionFor({line:g,column:h});if(null===j.source)return;b=j.source,g=j.line,h=j.column,i=j.name||i}c.addMapping({generated:{line:e+a.dest_line_diff,column:f},original:{line:g+a.orig_line_diff,column:h},source:b,name:i})}a=k(a,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var c,d=a.orig&&new X.SourceMapConsumer(a.orig);return c=d?X.SourceMapGenerator.fromSourceMap(d):new X.SourceMapGenerator({file:a.file,sourceRoot:a.root}),{add:b,get:function(){return c},toString:function(){return JSON.stringify(c.toJSON())}}}function U(){function a(a){n(b,a)}var b=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(b){Object.getOwnPropertyNames(b).map(a),b.prototype&&Object.getOwnPropertyNames(b.prototype).map(a)}),b}function V(a,b){function c(a){return o.indexOf(a)>=0?!1:i.indexOf(a)>=0?!1:b.only_cache?j.props.has(a):!/^[0-9.]+$/.test(a)}function d(a){return l&&!l.test(a)?!1:i.indexOf(a)>=0?!1:j.props.has(a)||m.indexOf(a)>=0}function e(a){c(a)&&n(m,a),d(a)||n(o,a)}function f(a){if(!d(a))return a;var b=j.props.get(a);if(!b){do b=Zb(++j.cname);while(!c(b));j.props.set(a,b)}return b}function g(a){var b={};try{!function d(a){a.walk(new y(function(a){if(a instanceof Ra)return d(a.cdr),!0;if(a instanceof tb)return e(a.value),!0;if(a instanceof Za)return d(a.consequent),d(a.alternative),!0;throw b}))}(a)}catch(c){if(c!==b)throw c}}function h(a){return a.transform(new P(function(a){return a instanceof Ra?a.cdr=h(a.cdr):a instanceof tb?a.value=f(a.value):a instanceof Za&&(a.consequent=h(a.consequent),a.alternative=h(a.alternative)),a}))}b=k(b,{reserved:null,cache:null,only_cache:!1,regex:null});var i=b.reserved;null==i&&(i=U());var j=b.cache;null==j&&(j={cname:-1,props:new v});var l=b.regex,m=[],o=[];return a.walk(new y(function(a){a instanceof cb?e(a.key):a instanceof bb?e(a.key.name):a instanceof Ta?this.parent()instanceof $a&&e(a.property):a instanceof Ua&&this.parent()instanceof $a&&g(a.property)})),a.transform(new P(function(a){a instanceof cb?a.key=f(a.key):a instanceof bb?a.key.name=f(a.key.name):a instanceof Ta?a.property=f(a.property):a instanceof Ua&&(a.property=h(a.property))}))}var W=a("util"),X=a("source-map"),Y=c;j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.croak=function(a,b){throw new j(a,b)};var Z=function(){function a(a,f,g){function h(){var h=f(a[i],i),l=h instanceof d;return l&&(h=h.v),h instanceof b?(h=h.v,h instanceof c?k.push.apply(k,g?h.v.slice().reverse():h.v):k.push(h)):h!==e&&(h instanceof c?j.push.apply(j,g?h.v.slice().reverse():h.v):j.push(h)),l}var i,j=[],k=[];if(a instanceof Array)if(g){for(i=a.length;--i>=0&&!h(););j.reverse(),k.reverse()}else for(i=0;i SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},ea),ra=w("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(a){var b=this,c=[],d=[];a.forEach(function(a){var b=a.lastIndexOf(":");c.push(a.substr(0,b)),d.push(a.substr(b+1))});var e="(function("+d.join(",")+"){ '$ORIG'; })("+c.join(",")+")";return e=O(e),e=e.transform(new P(function(a){return a instanceof ca&&"$ORIG"==a.value?Z.splice(b.body):void 0}))},wrap_commonjs:function(a,b){var c=this,d=[];b&&(c.figure_out_scope(),c.walk(new y(function(a){a instanceof hb&&a.definition().global&&(h(function(b){return b.name==a.name},d)||d.push(a))})));var e="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+a+"'] = exports; }({}, (function(){return this}())))";return e=O(e),e=e.transform(new P(function(a){if(a instanceof ca)switch(a.value){case"$ORIG":return Z.splice(c.body);case"$EXPORTS":var b=[];return d.forEach(function(a){b.push(new da({body:new $a({left:new Ua({expression:new pb({name:"exports"}),property:new tb({value:a.name})}),operator:"=",right:new pb(a)})}))}),Z.splice(b)}}))}},qa),sa=w("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(a){return a._visit(this,function(){this.name&&this.name._walk(a),this.argnames.forEach(function(b){b._walk(a)}),x(this,a)})}},qa),ta=w("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},sa),ua=w("Function",null,{$documentation:"A function expression"},sa),va=w("Defun",null,{$documentation:"A function definition"},sa),wa=w("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},aa),xa=w("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(a){return a._visit(this,this.value&&function(){this.value._walk(a)})}},wa),ya=w("Return",null,{$documentation:"A `return` statement"},xa),za=w("Throw",null,{$documentation:"A `throw` statement"},xa),Aa=w("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(a){return a._visit(this,this.label&&function(){this.label._walk(a)})}},wa),Ba=w("Break",null,{$documentation:"A `break` statement"},Aa),Ca=w("Continue",null,{$documentation:"A `continue` statement"},Aa),Da=w("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.body._walk(a),this.alternative&&this.alternative._walk(a)})}},ha),Ea=w("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),x(this,a)})}},ea),Fa=w("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},ea),Ga=w("Default",null,{$documentation:"A `default` switch branch"},Fa),Ha=w("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),x(this,a)})}},Fa),Ia=w("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(a){return a._visit(this,function(){x(this,a),this.bcatch&&this.bcatch._walk(a),this.bfinally&&this.bfinally._walk(a)})}},ea),Ja=w("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(a){return a._visit(this,function(){this.argname._walk(a),x(this,a)})}},ea),Ka=w("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},ea),La=w("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(a){return a._visit(this,function(){this.definitions.forEach(function(b){b._walk(a)})})}},aa),Ma=w("Var",null,{$documentation:"A `var` statement"},La),Na=w("Const",null,{$documentation:"A `const` statement"},La),Oa=w("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(a){return a._visit(this,function(){this.name._walk(a),this.value&&this.value._walk(a)})}}),Pa=w("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.args.forEach(function(b){b._walk(a)})})}}),Qa=w("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Pa),Ra=w("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(a,b){var c=new Ra(a);return c.car=a,c.cdr=b,c},$from_array:function(a){if(0==a.length)return null;if(1==a.length)return a[0].clone();for(var b=null,c=a.length;--c>=0;)b=Ra.cons(a[c],b);for(var d=b;d;){if(d.cdr&&!d.cdr.cdr){d.cdr=d.cdr.car;break}d=d.cdr}return b},to_array:function(){for(var a=this,b=[];a;){if(b.push(a.car),a.cdr&&!(a.cdr instanceof Ra)){b.push(a.cdr);break}a=a.cdr}return b},add:function(a){for(var b=this;b;){if(!(b.cdr instanceof Ra)){var c=Ra.cons(b.cdr,a);return b.cdr=c}b=b.cdr}},_walk:function(a){return a._visit(this,function(){this.car._walk(a),this.cdr&&this.cdr._walk(a)})}}),Sa=w("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ta=w("Dot",null,{$documentation:"A dotted property access expression",_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}},Sa),Ua=w("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.property._walk(a)})}},Sa),Va=w("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}}),Wa=w("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Va),Xa=w("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Va),Ya=w("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(a){return a._visit(this,function(){this.left._walk(a),this.right._walk(a)})}}),Za=w("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.consequent._walk(a),this.alternative._walk(a)})}}),$a=w("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ya),_a=w("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(a){return a._visit(this,function(){this.elements.forEach(function(b){b._walk(a)})})}}),ab=w("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(a){return a._visit(this,function(){this.properties.forEach(function(b){b._walk(a)})})}}),bb=w("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(a){return a._visit(this,function(){this.value._walk(a)})}}),cb=w("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},bb),db=w("ObjectSetter",null,{$documentation:"An object setter property"},bb),eb=w("ObjectGetter",null,{$documentation:"An object getter property"},bb),fb=w("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),gb=w("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},fb),hb=w("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},fb),ib=w("SymbolVar",null,{$documentation:"Symbol defining a variable"},hb),jb=w("SymbolConst",null,{$documentation:"A constant declaration"},hb),kb=w("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ib),lb=w("SymbolDefun",null,{$documentation:"Symbol defining a function"},hb),mb=w("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},hb),nb=w("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},hb),ob=w("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},fb),pb=w("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},fb),qb=w("LabelRef",null,{$documentation:"Reference to a label symbol"},fb),rb=w("This",null,{$documentation:"The `this` symbol"},fb),sb=w("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),tb=w("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},sb),ub=w("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},sb),vb=w("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},sb),wb=w("Atom",null,{$documentation:"Base class for atoms"},sb),xb=w("Null",null,{$documentation:"The `null` atom",value:null},wb),yb=w("NaN",null,{$documentation:"The impossible value",value:NaN},wb),zb=w("Undefined",null,{$documentation:"The `undefined` value",value:void 0},wb),Ab=w("Hole",null,{$documentation:"A hole in an array",value:void 0},wb),Bb=w("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},wb),Cb=w("Boolean",null,{$documentation:"Base class for booleans"},wb),Db=w("False",null,{$documentation:"The `false` atom",value:!1},Cb),Eb=w("True",null,{$documentation:"The `true` atom",value:!0},Cb);y.prototype={_visit:function(a,b){this.push(a);var c=this.visit(a,b?function(){b.call(a)}:m);return!c&&b&&b.call(a),this.pop(a),c},parent:function(a){return this.stack[this.stack.length-2-(a||0)]},push:function(a){a instanceof sa?this.directives=Object.create(this.directives):a instanceof ca&&(this.directives[a.value]=this.directives[a.value]?"up":!0),this.stack.push(a)},pop:function(a){this.stack.pop(),a instanceof sa&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(a){for(var b=this.stack,c=b.length;--c>=0;){var d=b[c];if(d instanceof a)return d}},has_directive:function(a){var b=this.directives[a];if(b)return b;var c=this.stack[this.stack.length-1];if(c instanceof qa)for(var d=0;d0;){var d=a[--b];if(d instanceof Da&&d.condition===c||d instanceof Za&&d.condition===c||d instanceof ka&&d.condition===c||d instanceof na&&d.condition===c||d instanceof Wa&&"!"==d.operator&&d.expression===c)return!0;if(!(d instanceof Ya)||"&&"!=d.operator&&"||"!=d.operator)return!1;c=d}},loopcontrol_target:function(a){var b=this.stack;if(a)for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof ia&&d.label.name==a.name)return d.body}else for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof Ea||d instanceof ja)return d}}};var Fb="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Gb="false null true",Hb="abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield "+Gb+" "+Fb,Ib="return new delete throw else case";Fb=t(Fb),Hb=t(Hb),Ib=t(Ib),Gb=t(Gb);var Jb=t(f("+-*&%=<>!?|~^")),Kb=/^0x[0-9a-f]+$/i,Lb=/^0[0-7]+$/,Mb=t(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Nb=t(f("  \n\r \f\x0B​᠎              \ufeff")),Ob=t(f("[{(,.;:")),Pb=t(f("[]{}(),;:")),Qb=t(f("gmsiy")),Rb={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};K.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Sb={},Tb=t(["typeof","void","delete","--","++","!","~","-","+"]),Ub=t(["--","++"]),Vb=t(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Wb=function(a,b){for(var c=0;c","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Xb=d(["for","do","while","switch"]),Yb=d(["atom","num","string","regexp","name"]);P.prototype=new y,function(a){function b(b,c){b.DEFMETHOD("transform",function(b,d){var e,f;return b.push(this),b.before&&(e=b.before(this,c,d)),e===a&&(b.after?(b.stack[b.stack.length-1]=e=this.clone(),c(e,b),f=b.after(e,d),f!==a&&(e=f)):(e=this,c(e,b))),b.pop(this),e})}function c(a,b){return Z(a,function(a){return a.transform(b,!0)})}b(_,m),b(ia,function(a,b){a.label=a.label.transform(b),a.body=a.body.transform(b)}),b(da,function(a,b){a.body=a.body.transform(b)}),b(ea,function(a,b){a.body=c(a.body,b)}),b(ka,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b)}),b(na,function(a,b){a.init&&(a.init=a.init.transform(b)),a.condition&&(a.condition=a.condition.transform(b)),a.step&&(a.step=a.step.transform(b)),a.body=a.body.transform(b)}),b(oa,function(a,b){a.init=a.init.transform(b),a.object=a.object.transform(b),a.body=a.body.transform(b)}),b(pa,function(a,b){a.expression=a.expression.transform(b),a.body=a.body.transform(b)}),b(xa,function(a,b){a.value&&(a.value=a.value.transform(b))}),b(Aa,function(a,b){a.label&&(a.label=a.label.transform(b))}),b(Da,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b),a.alternative&&(a.alternative=a.alternative.transform(b))}),b(Ea,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ha,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ia,function(a,b){a.body=c(a.body,b),a.bcatch&&(a.bcatch=a.bcatch.transform(b)),a.bfinally&&(a.bfinally=a.bfinally.transform(b))}),b(Ja,function(a,b){a.argname=a.argname.transform(b),a.body=c(a.body,b)}),b(La,function(a,b){a.definitions=c(a.definitions,b)}),b(Oa,function(a,b){a.name=a.name.transform(b),a.value&&(a.value=a.value.transform(b))}),b(sa,function(a,b){a.name&&(a.name=a.name.transform(b)),a.argnames=c(a.argnames,b),a.body=c(a.body,b)}),b(Pa,function(a,b){a.expression=a.expression.transform(b),a.args=c(a.args,b)}),b(Ra,function(a,b){a.car=a.car.transform(b),a.cdr=a.cdr.transform(b)}),b(Ta,function(a,b){a.expression=a.expression.transform(b)}),b(Ua,function(a,b){a.expression=a.expression.transform(b),a.property=a.property.transform(b)}),b(Va,function(a,b){a.expression=a.expression.transform(b)}),b(Ya,function(a,b){a.left=a.left.transform(b),a.right=a.right.transform(b)}),b(Za,function(a,b){a.condition=a.condition.transform(b),a.consequent=a.consequent.transform(b),a.alternative=a.alternative.transform(b)}),b(_a,function(a,b){a.elements=c(a.elements,b)}),b(ab,function(a,b){a.properties=c(a.properties,b)}),b(bb,function(a,b){a.value=a.value.transform(b)})}(),Q.prototype={unmangleable:function(a){return a||(a={}),this.global&&!a.toplevel||this.undeclared||!a.eval&&(this.scope.uses_eval||this.scope.uses_with)||a.keep_fnames&&(this.orig[0]instanceof mb||this.orig[0]instanceof lb)},mangle:function(a){var b=a.cache&&a.cache.props;if(this.global&&b&&b.has(this.name))this.mangled_name=b.get(this.name);else if(!this.mangled_name&&!this.unmangleable(a)){var c=this.scope;!a.screw_ie8&&this.orig[0]instanceof mb&&(c=c.parent_scope),this.mangled_name=c.next_mangled(a,this),this.global&&b&&b.set(this.name,this.mangled_name)}}},ra.DEFMETHOD("figure_out_scope",function(a){a=k(a,{screw_ie8:!1,cache:null});var b=this,c=b.parent_scope=null,d=new v,e=null,f=0,g=new y(function(b,h){if(a.screw_ie8&&b instanceof Ja){var i=c;return c=new qa(b),c.init_scope_vars(f),c.parent_scope=i,h(),c=i,!0}if(b instanceof qa){b.init_scope_vars(f);var i=b.parent_scope=c,j=e,k=d;return e=c=b,d=new v,++f,h(),--f,c=i,e=j,d=k,!0}if(b instanceof ia){var l=b.label;if(d.has(l.name))throw new Error(o("Label {name} defined twice",l));return d.set(l.name,l),h(),d.del(l.name),!0}if(b instanceof pa)for(var m=c;m;m=m.parent_scope)m.uses_with=!0;else if(b instanceof fb&&(b.scope=c),b instanceof ob&&(b.thedef=b,b.references=[]),b instanceof mb)e.def_function(b);else if(b instanceof lb)(b.scope=e.parent_scope).def_function(b);else if(b instanceof ib||b instanceof jb){var n=e.def_variable(b);n.constant=b instanceof jb,n.init=g.parent().value}else if(b instanceof nb)(a.screw_ie8?c:e).def_variable(b);else if(b instanceof qb){var p=d.get(b.name);if(!p)throw new Error(o("Undefined label {name} [{line},{col}]",{name:b.name,line:b.start.line,col:b.start.col}));b.thedef=p}});b.walk(g);var h=null,i=b.globals=new v,g=new y(function(a,c){if(a instanceof sa){var d=h;return h=a,c(),h=d,!0}if(a instanceof Aa&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof pb){var e=a.name,f=a.scope.find_variable(e);if(f)a.thedef=f;else{var j;if(i.has(e)?j=i.get(e):(j=new Q(b,i.size(),a),j.undeclared=!0,j.global=!0,i.set(e,j)),a.thedef=j,"eval"==e&&g.parent()instanceof Pa)for(var k=a.scope;k&&!k.uses_eval;k=k.parent_scope)k.uses_eval=!0;h&&"arguments"==e&&(h.uses_arguments=!0)}return a.reference(),!0}});b.walk(g),a.cache&&(this.cname=a.cache.cname)}),qa.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),sa.DEFMETHOD("init_scope_vars",function(){qa.prototype.init_scope_vars.apply(this,arguments), +this.uses_arguments=!1}),pb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),qa.DEFMETHOD("find_variable",function(a){return a instanceof fb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),qa.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),qa.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new Q(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),qa.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=Zb(++this.cname);if(F(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),ua.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof kb&&this.name&&this.name.definition();;){var d=sa.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),qa.DEFMETHOD("references",function(a){return a instanceof fb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),fb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),gb.DEFMETHOD("unmangleable",function(){return!0}),ob.DEFMETHOD("unmangleable",function(){return!1}),fb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),fb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),qb.DEFMETHOD("undeclared",function(){return!1}),ob.DEFMETHOD("undeclared",function(){return!1}),fb.DEFMETHOD("definition",function(){return this.thedef}),fb.DEFMETHOD("global",function(){return this.definition().global}),ra.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),ra.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a);var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new y(function(e,f){if(e instanceof ia){var g=b;return f(),b=g,!0}if(e instanceof qa){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),a.sort&&h.sort(function(a,b){return b.references.length-a.references.length}),void c.push.apply(c,h)}if(e instanceof ob){var i;do i=Zb(++b);while(!F(i));return e.mangled_name=i,!0}return a.screw_ie8&&e instanceof nb?void c.push(e.definition()):void 0});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),ra.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new y(function(b){b instanceof sb?Zb.consider(b.print_to_string()):b instanceof ya?Zb.consider("return"):b instanceof za?Zb.consider("throw"):b instanceof Ca?Zb.consider("continue"):b instanceof Ba?Zb.consider("break"):b instanceof ba?Zb.consider("debugger"):b instanceof ca?Zb.consider(b.value):b instanceof ma?Zb.consider("while"):b instanceof la?Zb.consider("do while"):b instanceof Da?(Zb.consider("if"),b.alternative&&Zb.consider("else")):b instanceof Ma?Zb.consider("var"):b instanceof Na?Zb.consider("const"):b instanceof sa?Zb.consider("function"):b instanceof na?Zb.consider("for"):b instanceof oa?Zb.consider("for in"):b instanceof Ea?Zb.consider("switch"):b instanceof Ha?Zb.consider("case"):b instanceof Ga?Zb.consider("default"):b instanceof pa?Zb.consider("with"):b instanceof db?Zb.consider("set"+b.key):b instanceof eb?Zb.consider("get"+b.key):b instanceof cb?Zb.consider(b.key):b instanceof Qa?Zb.consider("new"):b instanceof rb?Zb.consider("this"):b instanceof Ia?Zb.consider("try"):b instanceof Ja?Zb.consider("catch"):b instanceof Ka?Zb.consider("finally"):b instanceof fb&&b.unmangleable(a)?Zb.consider(b.name):b instanceof Va||b instanceof Ya?Zb.consider(b.operator):b instanceof Ta&&Zb.consider(b.property)});this.walk(b),Zb.sort()});var Zb=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return A(a)&&!A(b)?1:A(b)&&!A(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();ra.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new y(function(c){if(a.undeclared&&c instanceof pb&&c.undeclared()&&_.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof $a&&c.left instanceof pb?d=c.left:c instanceof oa&&c.init instanceof pb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&_.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof pb&&c.undeclared()&&"eval"==c.name&&_.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof hb||c instanceof ob)&&!(c instanceof nb)&&c.unreferenced()&&_.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof ob?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof sa&&c.uses_arguments&&_.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof va&&!(b.parent()instanceof qa)&&_.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)}),function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c){var d=a.length-1;a.forEach(function(a,e){a instanceof ga||(c.indent(),a.print(c),e==d&&b||(c.newline(),b&&c.newline()))})}function d(a,b){a.length>0?b.with_block(function(){c(a,!1,b)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof la&&!b.option("screw_ie8"))return void n(a.body,b);for(var c=a.body;;)if(c instanceof Da){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ha))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ga?b.print("{}"):a instanceof fa?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ga?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof aa&&e.body===d)return!0;if(!(e instanceof Ra&&e.car===d||e instanceof Pa&&e.expression===d&&!(e instanceof Qa)||e instanceof Ta&&e.expression===d||e instanceof Ua&&e.expression===d||e instanceof Za&&e.condition===d||e instanceof Ya&&e.left===d||e instanceof Xa&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return 0==a.args.length&&!b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof fa?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1;_.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof ca&&"use asm"==d.value&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof sa&&(q=f)}),_.DEFMETHOD("print_to_string",function(a){var b=R(a);return this.print(b),b.get()}),_.DEFMETHOD("add_comments",function(a){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof xa&&c.value&&c.value.walk(new y(function(a){return a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof ua||a instanceof _a||a instanceof ab?!0:void 0})),b?b.test?e=e.filter(function(a){return b.test(a.value)||"comment5"==a.type}):"function"==typeof b&&(e=e.filter(function(a){return b(c,a)||"comment5"==a.type})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}),b(_,function(){return!1}),b(ua,function(a){return i(a)}),b(ab,function(a){return i(a)}),b([Va,zb],function(a){var b=a.parent();return b instanceof Sa&&b.expression===this}),b(Ra,function(a){var b=a.parent();return b instanceof Pa||b instanceof Va||b instanceof Ya||b instanceof Oa||b instanceof Sa||b instanceof _a||b instanceof bb||b instanceof Za}),b(Ya,function(a){var b=a.parent();if(b instanceof Pa&&b.expression===this)return!0;if(b instanceof Va)return!0;if(b instanceof Sa&&b.expression===this)return!0;if(b instanceof Ya){var c=b.operator,d=Wb[c],e=this.operator,f=Wb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Sa,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)try{this.walk(new y(function(a){if(a instanceof Pa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Pa,function(a){var b,c=a.parent();return c instanceof Qa&&c.expression===this?!0:this.expression instanceof ua&&c instanceof Sa&&c.expression===this&&(b=a.parent(1))instanceof $a&&b.left===c}),b(Qa,function(a){var b=a.parent();return j(this,a)&&(b instanceof Sa||b instanceof Pa&&b.expression===this)?!0:void 0}),b(ub,function(a){var b=a.parent();return this.getValue()<0&&b instanceof Sa&&b.expression===this?!0:void 0}),b([$a,Za],function(a){var b=a.parent();return b instanceof Va?!0:b instanceof Ya&&!(b instanceof $a)?!0:b instanceof Pa&&b.expression===this?!0:b instanceof Za&&b.condition===this?!0:b instanceof Sa&&b.expression===this?!0:void 0}),a(ca,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ba,function(a,b){b.print("debugger"),b.semicolon()}),ha.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(aa,function(a,b){a.body.print(b),b.semicolon()}),a(ra,function(a,b){c(a.body,!0,b),b.print("")}),a(ia,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(da,function(a,b){a.body.print(b),b.semicolon()}),a(fa,function(a,b){d(a.body,b)}),a(ga,function(a,b){b.semicolon()}),a(la,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(ma,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(na,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ga?b.print(";"):(a.init instanceof La?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(oa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(pa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),sa.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a)}),a(sa,function(a,b){a._do_print(b)}),xa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(ya,function(a,b){a._do_print(b,"return")}),a(za,function(a,b){a._do_print(b,"throw")}),Aa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ba,function(a,b){a._do_print(b,"break")}),a(Ca,function(a,b){a._do_print(b,"continue")}),a(Da,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Ea,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Fa.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(Ga,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ha,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ia,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Ja,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(Ka,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),La.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof na||c instanceof oa,e=d&&c.init===this;e||a.semicolon()}),a(Ma,function(a,b){a._do_print(b,"var")}),a(Na,function(a,b){a._do_print(b,"const")}),a(Oa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof na||c instanceof oa;f(a.value,b,d)}}),a(Pa,function(a,b){a.expression.print(b),a instanceof Qa&&j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Qa,function(a,b){b.print("new"),b.space(),Pa.prototype._codegen(a,b)}),Ra.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Ra,function(a,b){a._do_print(b)}),a(Ta,function(a,b){var c=a.expression;c.print(b),c instanceof ub&&c.getValue()>=0&&(/[xa-f.]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Ua,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Wa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Wa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Xa,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Ya,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Xa&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Wa&&"!"==a.right.operator&&a.right.expression instanceof Wa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a(Za,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(_a,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Ab&&b.comma()}),d>0&&b.space()})}),a(ab,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(cb,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Hb(c)?b.option("screw_ie8"):I(c))?b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(db,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(eb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(zb,function(a,b){b.print("void 0")}),a(Ab,m),a(Bb,function(a,b){b.print("Infinity")}),a(yb,function(a,b){b.print("NaN")}),a(rb,function(a,b){b.print("this")}),a(sb,function(a,b){b.print(a.getValue())}),a(tb,function(a,b){b.print_string(a.getValue(),a.quote)}),a(ub,function(a,b){q&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(vb,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof Ya&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(_,m),o(ca,p),o(ba,p),o(fb,p),o(wa,p),o(ha,p),o(ia,m),o(sa,p),o(Ea,p),o(Fa,p),o(fa,p),o(ra,m),o(Qa,p),o(Ia,p),o(Ja,p),o(Ka,p),o(La,p),o(sb,p),o(db,function(a,b){b.add_mapping(a.start,a.key.name)}),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(bb,function(a,b){b.add_mapping(a.start,a.key)})}(),S.prototype=new P,l(S.prototype,{option:function(a){return this.options[a]},warn:function(){this.options.warnings&&_.warn.apply(_,arguments)},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof qa&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof qa&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof _)return c.transform(a);switch(typeof c){case"string":return b(tb,d,{value:c}).optimize(a);case"number":return b(isNaN(c)?yb:ub,d,{value:c}).optimize(a);case"boolean":return b(c?Eb:Db,d).optimize(a);case"undefined":return b(zb,d).optimize(a);default:if(null===c)return b(xb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(vb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a){if(null===a)return[];if(a instanceof fa)return a.body;if(a instanceof ga)return[];if(a instanceof aa)return[a];throw new Error("Can't convert thing to statement array")}function e(a){return null===a?!0:a instanceof ga?!0:a instanceof fa?0==a.body.length:!1}function f(a){return a instanceof Ea?a:(a instanceof na||a instanceof oa||a instanceof ka)&&a.body instanceof fa?a.body:a}function i(a,c){function e(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(tb,a,{value:a.name})})}function f(a,c){return b(_a,a,{elements:c})}function g(a,c){return b(da,a,{body:b($a,a,{operator:"=",left:b(Ta,c,{expression:b(pb,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof sa&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof va?a.push(g(b,b.name)):b instanceof La?b.definitions.forEach(function(b){b.value&&b.value instanceof sa&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function g(a){var b=[];return a.reduce(function(a,c){return c instanceof fa?(q=!0,a.push.apply(a,g(c.body))):c instanceof ga?q=!0:c instanceof ca?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):q=!0:a.push(c),a},[])}function h(a,c){var e=c.self(),g=e instanceof sa,h=[];a:for(var i=a.length;--i>=0;){var j=a[i];switch(!0){case g&&j instanceof ya&&!j.value&&0==h.length:q=!0;continue a;case j instanceof Da:if(j.body instanceof ya){if((g&&0==h.length||h[0]instanceof ya&&!h[0].value)&&!j.body.value&&!j.alternative){q=!0;var k=b(da,j.condition,{body:j.condition});h.unshift(k);continue a}if(h[0]instanceof ya&&j.body.value&&h[0].value&&!j.alternative){q=!0,j=j.clone(),j.alternative=h[0],h[0]=j.transform(c);continue a}if((0==h.length||h[0]instanceof ya)&&j.body.value&&!j.alternative&&g){q=!0,j=j.clone(),j.alternative=h[0]||b(ya,j,{value:b(zb,j)}),h[0]=j.transform(c);continue a}if(!j.body.value&&g){q=!0,j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:d(j.alternative).concat(h)}),j.alternative=null,h=[j.transform(c)];continue a}if(c.option("sequences")&&1==h.length&&g&&h[0]instanceof da&&(!j.alternative||j.alternative instanceof da)){q=!0,h.push(b(ya,h[0],{value:b(zb,h[0])}).transform(c)),h=d(j.alternative).concat(h),h.unshift(j);continue a}}var m=l(j.body),n=m instanceof Aa?c.loopcontrol_target(m.label):null;if(m&&(m instanceof ya&&!m.value&&g||m instanceof Ca&&e===f(n)||m instanceof Ba&&n instanceof fa&&e===n)){m.label&&p(m.label.thedef.references,m),q=!0;var o=d(j.body).slice(0,-1);j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:d(j.alternative).concat(h)}),j.alternative=b(fa,j,{body:o}),h=[j.transform(c)];continue a}var m=l(j.alternative),n=m instanceof Aa?c.loopcontrol_target(m.label):null;if(m&&(m instanceof ya&&!m.value&&g||m instanceof Ca&&e===f(n)||m instanceof Ba&&n instanceof fa&&e===n)){m.label&&p(m.label.thedef.references,m),q=!0,j=j.clone(),j.body=b(fa,j.body,{body:d(j.body).concat(h)}),j.alternative=b(fa,j.alternative,{body:d(j.alternative).slice(0,-1)}),h=[j.transform(c)];continue a}h.unshift(j);break;default:h.unshift(j)}}return h}function i(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)j(b,d,a);else{if(d instanceof Aa){var g=b.loopcontrol_target(d.label);d instanceof Ba&&g instanceof fa&&f(g)===e||d instanceof Ca&&f(g)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);l(d)&&(c=!0)}return a},[]),q=a.length!=d,a}function k(a,c){function d(){e=Ra.from_array(e),e&&f.push(b(da,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof da&&e.length<2e3?e.push(a.body):(d(),f.push(a))}),d(),f=m(f,c),q=f.length!=a.length,f}function m(a,c){function d(a){e.pop();var b=f.body;return b instanceof Ra?b.add(a):b=Ra.cons(b,a),b.transform(c)}var e=[],f=null;return a.forEach(function(a){if(f)if(a instanceof na){var c={};try{f.body.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw c})),!a.init||a.init instanceof La?a.init||(a.init=f.body,e.pop()):a.init=d(a.init)}catch(g){if(g!==c)throw g}}else a instanceof Da?a.condition=d(a.condition):a instanceof pa?a.expression=d(a.expression):a instanceof xa&&a.value?a.value=d(a.value):a instanceof xa?a.value=d(b(zb,a)):a instanceof Ea&&(a.expression=d(a.expression));e.push(a),f=a instanceof da?a:null}),e}function n(a,b){var c=null;return a.reduce(function(a,b){return b instanceof La&&c&&c.TYPE==b.TYPE?(c.definitions=c.definitions.concat(b.definitions),q=!0):b instanceof na&&c instanceof La&&(!b.init||b.init.TYPE==c.TYPE)?(q=!0,a.pop(),b.init?b.init.definitions=c.definitions.concat(b.init.definitions):b.init=c,a.push(b),c=b):(c=b,a.push(b)),a},[])}function o(a,c){a.forEach(function(a){a instanceof da&&(a.body=function c(a){return a.transform(new P(function(a){if(a instanceof Pa&&a.expression instanceof ua)return b(Wa,a,{operator:"!",expression:a});if(a instanceof Pa)a.expression=c(a.expression);else if(a instanceof Ra)a.car=c(a.car);else if(a instanceof Za){var d=c(a.condition);if(d!==a.condition){a.condition=d;var e=a.consequent;a.consequent=a.alternative,a.alternative=e}}return a}))}(a.body))})}var q,r=10;do q=!1,c.option("angular")&&(a=e(a)),a=g(a),c.option("dead_code")&&(a=i(a,c)),c.option("if_return")&&(a=h(a,c)),c.option("sequences")&&(a=k(a,c)),c.option("join_vars")&&(a=n(a,c));while(q&&r-- >0);return c.option("negate_iife")&&o(a,c),a}function j(a,b,c){a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new y(function(b){return b instanceof La?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof va?(c.push(b),!0):b instanceof qa?!0:void 0}))}function k(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function l(a){return a&&a.aborts()}function m(a,c){function e(e){e=d(e),a.body instanceof fa?(a.body=a.body.clone(),a.body.body=e.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(fa,a.body,{body:e}).transform(c),m(a,c)}var f=a.body instanceof fa?a.body.body[0]:a.body;f instanceof Da&&(f.body instanceof Ba&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),e(f.alternative)):f.alternative instanceof Ba&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,e(f.body)))}function r(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function s(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Eb,a):a}a(_,function(a,b){return a}),_.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(_,function(){return!1}),a(Wa,function(){return g(this.operator,b)}),a(Ya,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a(Za,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a($a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Ra,function(){return this.cdr.is_boolean()}),a(Eb,function(){return!0}),a(Db,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(_,function(){return!1}),a(tb,function(){return!0}),a(Wa,function(){return"typeof"==this.operator}),a(Ya,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a($a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Ra,function(a){return this.cdr.is_string(a)}),a(Za,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Pa,function(a){return a.option("unsafe")&&this.expression instanceof pb&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}_.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[k(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),a(aa,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(ua,function(){throw a}),a(_,function(){throw a}),a(sb,function(){return this.getValue()}),a(Wa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof ua)return"function";if(d=b(d,c),d instanceof RegExp)throw a;return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":if(d=b(d,c),0===d)throw a;return-d;case"+":return+b(d,c)}throw a}),a(Ya,function(c){var d=this.left,e=this.right;switch(this.operator){case"&&":return b(d,c)&&b(e,c);case"||":return b(d,c)||b(e,c);case"|":return b(d,c)|b(e,c);case"&":return b(d,c)&b(e,c);case"^":return b(d,c)^b(e,c);case"+":return b(d,c)+b(e,c);case"*":return b(d,c)*b(e,c);case"/":return b(d,c)/b(e,c);case"%":return b(d,c)%b(e,c);case"-":return b(d,c)-b(e,c);case"<<":return b(d,c)<>":return b(d,c)>>b(e,c);case">>>":return b(d,c)>>>b(e,c);case"==":return b(d,c)==b(e,c);case"===":return b(d,c)===b(e,c);case"!=":return b(d,c)!=b(e,c);case"!==":return b(d,c)!==b(e,c);case"<":return b(d,c)":return b(d,c)>b(e,c);case">=":return b(d,c)>=b(e,c);case"in":return b(d,c)in b(e,c);case"instanceof":return b(d,c)instanceof b(e,c)}throw a}),a(Za,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(pb,function(c){var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c);throw a}),a(Ta,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(Wa,a,{operator:"!",expression:a})}a(_,function(){return c(this)}),a(aa,function(){throw new Error("Cannot negate a statement")}),a(ua,function(){return c(this)}),a(Wa,function(){return"!"==this.operator?this.expression:c(this)}),a(Ra,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a(Za,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),k(c(this),b)}),a(Ya,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),k(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),k(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(_,function(a){return!0}),a(ga,function(a){return!1}),a(sb,function(a){return!1}),a(rb,function(a){return!1}),a(Pa,function(a){var b=a.option("pure_funcs");return b?"function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0:!0}),a(ea,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(da,function(a){return this.body.has_side_effects(a)}),a(va,function(a){return!0}),a(ua,function(a){return!1}),a(Ya,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a($a,function(a){return!0}),a(Za,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a(Va,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(pb,function(a){return this.global()&&this.undeclared()}),a(ab,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(bb,function(a){return this.value.has_side_effects(a)}),a(_a,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0; +return!1}),a(Ta,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a):!0}),a(Ua,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a)||this.property.has_side_effects(a):!0}),a(Sa,function(a){return!a.option("pure_getters")}),a(Ra,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&l(this.body[a-1])}a(aa,function(){return null}),a(wa,function(){return this}),a(fa,b),a(Fa,b),a(Da,function(){return this.alternative&&l(this.body)&&l(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(ca,function(a,c){return"up"===c.has_directive(a.value)?b(ga,a):a}),a(ba,function(a,c){return c.option("drop_debugger")?b(ga,a):a}),a(ia,function(a,c){return a.body instanceof Ba&&c.loopcontrol_target(a.body.label)===a.body?b(ga,a):0==a.label.references.length?a.body:a}),a(ea,function(a,b){return a.body=i(a.body,b),a}),a(fa,function(a,c){switch(a.body=i(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ga,a)}return a}),qa.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof ra)&&!c.uses_eval){var d=[],e=new v,f=this,h=new y(function(b,g){if(b!==c){if(b instanceof va)return e.add(b.name.name,b),!0;if(b instanceof La&&f===c)return b.definitions.forEach(function(b){b.value&&(e.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof pb)return n(d,b.definition()),!0;if(b instanceof qa){var i=f;return f=b,g(),f=i,!0}}});c.walk(h);for(var i=0;i=0;){var l=i[k];if(!l.unreferenced())break;i.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:l.name,file:l.start.file,line:l.start.line,col:l.start.col})}if(e instanceof va&&e!==c)return g(e.name.definition(),d)?e:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:e.name.name,file:e.name.start.file,line:e.name.start.line,col:e.name.start.col}),b(ga,e));if(e instanceof La&&!(j.parent()instanceof oa)){var m=e.definitions.filter(function(b){if(g(b.name.definition(),d))return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});m=q(m,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var n=[],k=0;k0&&(n.push(o.value),o.value=Ra.from_array(n),n=[]),++k)}return n=n.length>0?b(fa,e,{body:[b(da,e,{body:Ra.from_array(n)})]}):null,0!=m.length||n?0==m.length?h?Z.splice(n.body):n:(e.definitions=m,n?(n.body.unshift(e),h?Z.splice(n.body):n):e):b(ga,e)}if(e instanceof na&&(f(e,this),e.init instanceof fa)){var p=e.init.body.slice(0,-1);return e.init=e.init.body.slice(-1)[0].body,p.push(e),h?Z.splice(p):b(fa,e,{body:p})}return e instanceof qa&&e!==c?e:void 0});c.transform(j)}}),qa.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new y(function(a){return a instanceof qa&&a!==c?!0:a instanceof Ma?(++k,!0):void 0})),e=e&&k>1;var l=new P(function(a){if(a!==c){if(a instanceof ca)return f.push(a),b(ga,a);if(a instanceof va&&d)return g.push(a),b(ga,a);if(a instanceof Ma&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();return k instanceof oa&&k.init===a?null==h?a.definitions[0].name:h:k instanceof na&&k.init===a?h:h?b(da,a,{body:h}):b(ga,a)}if(a instanceof qa)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof sa&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(na,a,{body:a.body});if(a instanceof ma&&c.option("dead_code")){var e=[];return j(c,a.body,e),b(fa,a,{body:e})}}return a}),a(ma,function(a,c){return c.option("loops")?(a=ka.prototype.optimize.call(a,c),a instanceof ma&&(m(a,c),a=b(na,a,a).transform(c)),a):a}),a(na,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof aa?e.push(a.init):a.init&&e.push(b(da,a.init,{body:a.init})),j(c,a.body,e),b(fa,a,{body:e})}return m(a,c),a}),a(Da,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var f=[];return a.alternative&&j(c,a.alternative,f),f.push(a.body),b(fa,a,{body:f}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var f=[];return j(c,a.body,f),a.alternative&&f.push(a.alternative),b(fa,a,{body:f}).transform(c)}e(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=k(a.condition,g)===g;if(a.alternative&&h){h=!1,a.condition=g;var i=a.body;a.body=a.alternative||b(ga),a.alternative=i}if(e(a.body)&&e(a.alternative))return b(da,a.condition,{body:a.condition}).transform(c);if(a.body instanceof da&&a.alternative instanceof da)return b(da,a,{body:b(Za,a,{condition:a.condition,consequent:a.body.body,alternative:a.alternative.body})}).transform(c);if(e(a.alternative)&&a.body instanceof da)return h?b(da,a,{body:b(Ya,a,{operator:"||",left:g,right:a.body.body})}).transform(c):b(da,a,{body:b(Ya,a,{operator:"&&",left:a.condition,right:a.body.body})}).transform(c);if(a.body instanceof ga&&a.alternative&&a.alternative instanceof da)return b(da,a,{body:b(Ya,a,{operator:"||",left:a.condition,right:a.alternative.body})}).transform(c);if(a.body instanceof xa&&a.alternative instanceof xa&&a.body.TYPE==a.alternative.TYPE)return b(a.body.CTOR,a,{value:b(Za,a,{condition:a.condition,consequent:a.body.value||b(zb,a.body).optimize(c),alternative:a.alternative.value||b(zb,a.alternative).optimize(c)})}).transform(c);if(a.body instanceof Da&&!a.body.alternative&&!a.alternative&&(a.condition=b(Ya,a.condition,{operator:"&&",left:a.condition,right:a.body.condition}).transform(c),a.body=a.body.body),l(a.body)&&a.alternative){var m=a.alternative;return a.alternative=null,b(fa,a,{body:[a,m]}).transform(c)}if(l(a.alternative)){var n=a.body;return a.body=a.alternative,a.condition=h?g:a.condition.negate(c),a.alternative=null,b(fa,a,{body:[a,n]}).transform(c)}return a}),a(Ea,function(a,c){if(0==a.body.length&&c.option("conditionals"))return b(da,a,{body:a.expression}).transform(c);for(;;){var d=a.body[a.body.length-1];if(d){var e=d.body[d.body.length-1];if(e instanceof Ba&&f(c.loopcontrol_target(e.label))===a&&d.body.pop(),d instanceof Ga&&0==d.body.length){a.body.pop();continue}}break}var g=a.expression.evaluate(c);a:if(2==g.length)try{if(a.expression=g[0],!c.option("dead_code"))break a;var h=g[1],i=!1,j=!1,k=!1,m=!1,n=!1,o=new P(function(d,e,f){if(d instanceof sa||d instanceof da)return d;if(d instanceof Ea&&d===a)return d=d.clone(),e(d,this),n?d:b(fa,d,{body:d.body.reduce(function(a,b){return a.concat(b.body)},[])}).transform(c);if(d instanceof Da||d instanceof Ia){var g=i;return i=!j,e(d,this),i=g,d}if(d instanceof ha||d instanceof Ea){var g=j;return j=!0,e(d,this),j=g,d}if(d instanceof Ba&&this.loopcontrol_target(d.label)===a)return i?(n=!0,d):j?d:(m=!0,f?Z.skip:b(ga,d));if(d instanceof Fa&&this.parent()===a){if(m)return Z.skip;if(d instanceof Ha){var o=d.expression.evaluate(c);if(o.length<2)throw a;return o[1]===h||k?(k=!0,l(d)&&(m=!0),e(d,this),d):Z.skip}return e(d,this),d}});o.stack=c.stack.slice(),a=a.transform(o)}catch(p){if(p!==a)throw p}return a}),a(Ha,function(a,b){return a.body=i(a.body,b),a}),a(Ia,function(a,b){return a.body=i(a.body,b),a}),La.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(a){a.value=null})}),La.DEFMETHOD("to_assignments",function(){var a=this.definitions.reduce(function(a,c){if(c.value){var d=b(pb,c.name,c.name);a.push(b($a,c,{operator:"=",left:d,right:c.value}))}return a},[]);return 0==a.length?null:Ra.from_array(a)}),a(La,function(a,c){return 0==a.definitions.length?b(ga,a):a}),a(ua,function(a,b){return a=sa.prototype.optimize.call(a,b),b.option("unused")&&!b.option("keep_fnames")&&a.name&&a.name.unreferenced()&&(a.name=null),a}),a(Pa,function(a,d){if(d.option("unsafe")){var e=a.expression;if(e instanceof pb&&e.undeclared())switch(e.name){case"Array":if(1!=a.args.length)return b(_a,a,{elements:a.args}).transform(d);break;case"Object":if(0==a.args.length)return b(ab,a,{properties:[]});break;case"String":if(0==a.args.length)return b(tb,a,{value:""});if(a.args.length<=1)return b(Ya,a,{left:a.args[0],operator:"+",right:b(tb,a,{value:""})}).transform(d);break;case"Number":if(0==a.args.length)return b(ub,a,{value:0});if(1==a.args.length)return b(Wa,a,{expression:a.args[0],operator:"+"}).transform(d);case"Boolean":if(0==a.args.length)return b(Db,a);if(1==a.args.length)return b(Wa,a,{expression:b(Wa,null,{expression:a.args[0],operator:"!"}),operator:"!"}).transform(d);break;case"Function":if(0==a.args.length)return b(ua,a,{argnames:[],body:[]});if(u(a.args,function(a){return a instanceof tb}))try{var f="(function("+a.args.slice(0,-1).map(function(a){return a.value}).join(",")+"){"+a.args[a.args.length-1].value+"})()",g=O(f);g.figure_out_scope({screw_ie8:d.option("screw_ie8")});var h=new S(d.options);g=g.transform(h),g.figure_out_scope({screw_ie8:d.option("screw_ie8")}),g.mangle_names();var i;try{g.walk(new y(function(a){if(a instanceof sa)throw i=a,g}))}catch(j){if(j!==g)throw j}if(!i)return a;var l=i.argnames.map(function(c,d){return b(tb,a.args[d],{value:c.print_to_string()})}),f=R();return fa.prototype._codegen.call(i,i,f),f=f.toString().replace(/^\{|\}$/g,""),l.push(b(tb,a.args[a.args.length-1],{value:f})),a.args=l,a}catch(j){if(!(j instanceof K))throw console.log(j),j;d.warn("Error parsing code passed to new Function [{file}:{line},{col}]",a.args[a.args.length-1].start),d.warn(j.toString())}}else{if(e instanceof Ta&&"toString"==e.property&&0==a.args.length)return b(Ya,a,{left:b(tb,a,{value:""}),operator:"+",right:e.expression}).transform(d);if(e instanceof Ta&&e.expression instanceof _a&&"join"==e.property){var m=0==a.args.length?",":a.args[0].evaluate(d)[1];if(null!=m){var n=e.expression.elements.reduce(function(a,b){if(b=b.evaluate(d),0==a.length||1==b.length)a.push(b);else{var e=a[a.length-1];if(2==e.length){var f=""+e[1]+m+b[1];a[a.length-1]=[c(d,f,e[0]),f]}else a.push(b)}return a},[]);if(0==n.length)return b(tb,a,{value:""});if(1==n.length)return n[0][0];if(""==m){var o;return o=n[0][0]instanceof tb||n[1][0]instanceof tb?n.shift()[0]:b(tb,a,{value:""}),n.reduce(function(a,c){return b(Ya,c[0],{operator:"+",left:a,right:c[0]})},o).transform(d)}var p=a.clone();return p.expression=p.expression.clone(),p.expression.expression=p.expression.expression.clone(),p.expression.expression.elements=n.map(function(a){return a[0]}),k(a,p)}}}}if(d.option("side_effects")&&a.expression instanceof ua&&0==a.args.length&&!ea.prototype.has_side_effects.call(a.expression,d))return b(zb,a).transform(d);if(d.option("drop_console")&&a.expression instanceof Sa){for(var q=a.expression.expression;q.expression;)q=q.expression;if(q instanceof pb&&"console"==q.name&&q.undeclared())return b(zb,a).transform(d)}return a.evaluate(d)[0]}),a(Qa,function(a,c){if(c.option("unsafe")){var d=a.expression;if(d instanceof pb&&d.undeclared())switch(d.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return b(Pa,a,a).transform(c)}}return a}),a(Ra,function(a,c){if(!c.option("side_effects"))return a;if(!a.car.has_side_effects(c)){var d=c.parent();if(!(d instanceof Pa&&d.expression===a))return a.cdr}if(c.option("cascade")){if(a.car instanceof $a&&!a.car.left.has_side_effects(c)){if(a.car.left.equivalent_to(a.cdr))return a.car;if(a.cdr instanceof Pa&&a.cdr.expression.equivalent_to(a.car.left))return a.cdr.expression=a.car,a.cdr}if(!a.car.has_side_effects(c)&&!a.cdr.has_side_effects(c)&&a.car.equivalent_to(a.cdr))return a.car}return a.cdr instanceof Wa&&"void"==a.cdr.operator&&!a.cdr.expression.has_side_effects(c)?(a.cdr.expression=a.car,a.cdr):a.cdr instanceof zb?b(Wa,a,{operator:"void",expression:a.car}):a}),Va.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")&&this.expression instanceof Ra){var b=this.expression,c=b.to_array();return this.expression=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}return this}),a(Xa,function(a,b){return a.lift_sequences(b)}),a(Wa,function(a,c){a=a.lift_sequences(c);var d=a.expression;if(c.option("booleans")&&c.in_boolean_context()){switch(a.operator){case"!":if(d instanceof Wa&&"!"==d.operator)return d.expression;break;case"typeof":return c.warn("Boolean expression always true [{file}:{line},{col}]",a.start),b(Eb,a)}d instanceof Ya&&"!"==a.operator&&(a=k(a,d.negate(c)))}return a.evaluate(c)[0]}),Ya.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")){if(this.left instanceof Ra){var b=this.left,c=b.to_array();return this.left=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}if(this.right instanceof Ra&&this instanceof $a&&!r(this.left,a)){var b=this.right,c=b.to_array();return this.right=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}}return this});var w=t("== === != !== * & | ^");a(Ya,function(a,c){function d(b,d){if(d||!a.left.has_side_effects(c)&&!a.right.has_side_effects(c)){b&&(a.operator=b);var e=a.left;a.left=a.right,a.right=e}}if(w(a.operator)&&(a.right instanceof sb&&!(a.left instanceof sb)&&(a.left instanceof Ya&&Wb[a.left.operator]>=Wb[a.operator]||d(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof pb&&a.right instanceof Za){if(a.right.consequent instanceof pb&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof pb&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof pb&&a.left instanceof Za){if(a.left.consequent instanceof pb&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof pb&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof tb&&"undefined"==a.left.value&&a.right instanceof Wa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof pb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(zb,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var e=a.left.evaluate(c);if(e.length>1){if(e[1]){c.warn("Condition left of && always true [{file}:{line},{col}]",a.start);var f=a.right.evaluate(c);return f[0]}return c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),e[0]}}else if("||"==a.operator){var e=a.left.evaluate(c);if(e.length>1){if(e[1])return c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),e[0];c.warn("Condition left of || always false [{file}:{line},{col}]",a.start);var f=a.right.evaluate(c);return f[0]}}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var e=a.left.evaluate(c),f=a.right.evaluate(c);if(e.length>1&&!e[1]||f.length>1&&!f[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Db)}).optimize(c):b(Db,a);if(e.length>1&&e[1])return f[0];if(f.length>1&&f[1])return e[0];break;case"||":var e=a.left.evaluate(c),f=a.right.evaluate(c);if(e.length>1&&e[1]||f.length>1&&f[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(e.length>1&&!e[1])return f[0];if(f.length>1&&!f[1])return e[0];break;case"+":var e=a.left.evaluate(c),f=a.right.evaluate(c);if(e.length>1&&e[0]instanceof tb&&e[1]||f.length>1&&f[0]instanceof tb&&f[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Eb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Ya)||c.parent()instanceof $a){var g=b(Wa,a,{operator:"!",expression:a.negate(c)});a=k(a,g)}switch(a.operator){case"<":d(">");break;case"<=":d(">=")}}return"+"==a.operator&&a.right instanceof tb&&""===a.right.getValue()&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(tb,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof sb&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.right instanceof sb&&a.left.is_string(c)&&(a=b(Ya,a,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(Ya,a.left,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof Ya&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Ya,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(pb,function(a,d){function e(a,b){return b instanceof Ya&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&f.hasOwnProperty(a.name))return c(d,f[a.name],a);switch(a.name){case"undefined":return b(zb,a);case"NaN":return b(yb,a).transform(d);case"Infinity":return b(Bb,a).transform(d)}}return a}),a(Bb,function(a,c){return b(Ya,a,{operator:"/",left:b(ub,a,{value:1}),right:b(ub,a,{value:0})})}),a(zb,function(a,c){if(c.option("unsafe")){var d=c.find_parent(qa),e=d.find_variable("undefined");if(e){var f=b(pb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var x=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a($a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof pb&&a.right instanceof Ya&&a.right.left instanceof pb&&a.right.left.name==a.left.name&&g(a.right.operator,x)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a(Za,function(a,d){if(!d.option("conditionals"))return a;if(a.condition instanceof Ra){var e=a.condition.car;return a.condition=a.condition.cdr,Ra.cons(e,a)}var f=a.condition.evaluate(d);if(f.length>1)return f[1]?(d.warn("Condition always true [{file}:{line},{col}]",a.start),a.consequent):(d.warn("Condition always false [{file}:{line},{col}]",a.start),a.alternative);var g=f[0].negate(d);k(f[0],g)===g&&(a=b(Za,a,{condition:g,consequent:a.alternative,alternative:a.consequent}));var h=a.consequent,i=a.alternative;if(h instanceof $a&&i instanceof $a&&h.operator==i.operator&&h.left.equivalent_to(i.left)&&!h.left.has_side_effects(d))return b($a,a,{operator:h.operator,left:h.left,right:b(Za,a,{condition:a.condition,consequent:h.right,alternative:i.right})});if(h instanceof Pa&&i.TYPE===h.TYPE&&h.args.length==i.args.length&&!h.expression.has_side_effects(d)&&h.expression.equivalent_to(i.expression)){if(0==h.args.length)return b(Ra,a,{car:a.condition,cdr:h});if(1==h.args.length)return h.args[0]=b(Za,a,{condition:a.condition,consequent:h.args[0],alternative:i.args[0]}),h}return h instanceof Za&&h.alternative.equivalent_to(i)?b(Za,a,{condition:b(Ya,a,{left:a.condition,operator:"&&",right:h.condition}),consequent:h.consequent,alternative:i}):h instanceof sb&&i instanceof sb&&h.equivalent_to(i)?a.condition.has_side_effects(d)?Ra.from_array([a.condition,c(d,h.value,a)]):c(d,h.value,a):h instanceof Eb&&i instanceof Db?(a.condition=a.condition.negate(d),b(Wa,a.condition,{operator:"!",expression:a.condition})):h instanceof Db&&i instanceof Eb?a.condition.negate(d):a}),a(Cb,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Ya&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(ub,a,{value:+a.value})):b(Wa,a,{operator:"!",expression:b(ub,a,{value:1-a.value})})}return a}),a(Ua,function(a,c){var d=a.property;if(d instanceof tb&&c.option("properties")){if(d=d.getValue(),Hb(d)?c.option("screw_ie8"):I(d))return b(Ta,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(ub,a.property,{value:e}))}return a}),a(Ta,function(a,c){var d=a.property;return Hb(d)&&!c.option("screw_ie8")?b(Ua,a,{expression:a.expression,property:b(tb,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(_a,s),a(ab,s),a(vb,s),a(ya,function(a,b){return a.value instanceof zb&&(a.value=null),a})}(),function(){function a(a){return"Literal"==a.type?null!=a.raw?a.raw:a.value+"":void 0}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var l="function From_Moz_"+a+"(M){\n";l+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(l+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":l+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":l+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":l+="M."+c,m+="M."+e;break;case"%":l+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),l+="\n})\n}",m+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),k[a]=l,h(e,m)}function f(a){l.push(a);var b=null!=a?k[a.type](a):null;return l.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k={ExpressionStatement:function(a){var c=a.expression;return"Literal"===c.type&&"string"==typeof c.value?new ca({start:b(a),end:d(a),value:c.value}):new da({start:b(a),end:d(a),body:f(c)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ia({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new Ka(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new cb(g);case"set":return g.value.name=f(c),new db(g);case"get":return g.value.name=f(c),new eb(g)}},ObjectExpression:function(a){return new ab({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Ra.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Ua:Ta)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ha:Ga)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Na:Ma)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new xb(e);switch(typeof c){case"string":return e.value=c,new tb(e);case"number":return e.value=c,new ub(e);case"boolean":return new(c?Eb:Db)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new vb(e)}},Identifier:function(a){var c=l[l.length-2];return new("LabeledStatement"==c.type?ob:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?jb:ib:"FunctionExpression"==c.type?c.id===a?mb:kb:"FunctionDeclaration"==c.type?c.id===a?lb:kb:"CatchClause"==c.type?nb:"BreakStatement"==c.type||"ContinueStatement"==c.type?qb:pb)({start:b(a),end:d(a),name:a.name})}};k.UpdateExpression=k.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Wa:Xa)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("Program",ra,"body@body"),e("EmptyStatement",ga),e("BlockStatement",fa,"body@body"),e("IfStatement",Da,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ia,"label>label, body>body"),e("BreakStatement",Ba,"label>label"),e("ContinueStatement",Ca,"label>label"),e("WithStatement",pa,"object>expression, body>body"),e("SwitchStatement",Ea,"discriminant>expression, cases@body"),e("ReturnStatement",ya,"argument>value"),e("ThrowStatement",za,"argument>value"),e("WhileStatement",ma,"test>condition, body>body"),e("DoWhileStatement",la,"test>condition, body>body"),e("ForStatement",na,"init>init, test>condition, update>step, body>body"),e("ForInStatement",oa,"left>init, right>object, body>body"),e("DebuggerStatement",ba),e("FunctionDeclaration",va,"id>name, params@argnames, body%body"),e("VariableDeclarator",Oa,"id>name, init>value"),e("CatchClause",Ja,"param>argname, body%body"),e("ThisExpression",rb),e("ArrayExpression",_a,"elements@elements"),e("FunctionExpression",ua,"id>name, params@argnames, body%body"),e("BinaryExpression",Ya,"operator=operator, left>left, right>right"),e("LogicalExpression",Ya,"operator=operator, left>left, right>right"),e("AssignmentExpression",$a,"operator=operator, left>left, right>right"),e("ConditionalExpression",Za,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Qa,"callee>expression, arguments@args"),e("CallExpression",Pa,"callee>expression, arguments@args"),h(ca,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(da,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Fa,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ia,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ja,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(La,function(a){return{type:"VariableDeclaration",kind:a instanceof Na?"const":"var",declarations:a.definitions.map(i)}}),h(Ra,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Sa,function(a){var b=a instanceof Ua;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Va,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Wa,argument:i(a.expression)}}),h(Ya,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(ab,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(bb,function(a){var b,c=F(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof cb?b="init":a instanceof eb?b="get":a instanceof db&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(fb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(vb,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(sb,function(a){var b=a.value;return"number"==typeof b&&(0>b||0===b&&0>1/b)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(wb,function(a){return{type:"Identifier",name:String(a.value)}}),Cb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),xb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),Ab.DEFMETHOD("to_mozilla_ast",function(){return null}),ea.DEFMETHOD("to_mozilla_ast",fa.prototype.to_mozilla_ast),sa.DEFMETHOD("to_mozilla_ast",ua.prototype.to_mozilla_ast);var l=null;_.from_mozilla_ast=function(a){var b=l;l=[];var c=f(a);return l=b,c}}(),c.Compressor=S,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=K,c.MAP=Z,c.OutputStream=R,c.SourceMap=T,c.TreeTransformer=P,c.TreeWalker=y,c.base54=Zb,c.defaults=k,c.mangle_properties=V,c.merge=l,c.parse=O,c.push_uniq=n,c.string_template=o,c.is_identifier=F,c.sys=W,c.MOZ_SourceMap=X,c.UglifyJS=Y,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=Z,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.DEFNODE=w,c.AST_Token=$,c.AST_Node=_,c.AST_Statement=aa,c.AST_Debugger=ba,c.AST_Directive=ca,c.AST_SimpleStatement=da,c.walk_body=x,c.AST_Block=ea,c.AST_BlockStatement=fa,c.AST_EmptyStatement=ga,c.AST_StatementWithBody=ha,c.AST_LabeledStatement=ia, +c.AST_IterationStatement=ja,c.AST_DWLoop=ka,c.AST_Do=la,c.AST_While=ma,c.AST_For=na,c.AST_ForIn=oa,c.AST_With=pa,c.AST_Scope=qa,c.AST_Toplevel=ra,c.AST_Lambda=sa,c.AST_Accessor=ta,c.AST_Function=ua,c.AST_Defun=va,c.AST_Jump=wa,c.AST_Exit=xa,c.AST_Return=ya,c.AST_Throw=za,c.AST_LoopControl=Aa,c.AST_Break=Ba,c.AST_Continue=Ca,c.AST_If=Da,c.AST_Switch=Ea,c.AST_SwitchBranch=Fa,c.AST_Default=Ga,c.AST_Case=Ha,c.AST_Try=Ia,c.AST_Catch=Ja,c.AST_Finally=Ka,c.AST_Definitions=La,c.AST_Var=Ma,c.AST_Const=Na,c.AST_VarDef=Oa,c.AST_Call=Pa,c.AST_New=Qa,c.AST_Seq=Ra,c.AST_PropAccess=Sa,c.AST_Dot=Ta,c.AST_Sub=Ua,c.AST_Unary=Va,c.AST_UnaryPrefix=Wa,c.AST_UnaryPostfix=Xa,c.AST_Binary=Ya,c.AST_Conditional=Za,c.AST_Assign=$a,c.AST_Array=_a,c.AST_Object=ab,c.AST_ObjectProperty=bb,c.AST_ObjectKeyVal=cb,c.AST_ObjectSetter=db,c.AST_ObjectGetter=eb,c.AST_Symbol=fb,c.AST_SymbolAccessor=gb,c.AST_SymbolDeclaration=hb,c.AST_SymbolVar=ib,c.AST_SymbolConst=jb,c.AST_SymbolFunarg=kb,c.AST_SymbolDefun=lb,c.AST_SymbolLambda=mb,c.AST_SymbolCatch=nb,c.AST_Label=ob,c.AST_SymbolRef=pb,c.AST_LabelRef=qb,c.AST_This=rb,c.AST_Constant=sb,c.AST_String=tb,c.AST_Number=ub,c.AST_RegExp=vb,c.AST_Atom=wb,c.AST_Null=xb,c.AST_NaN=yb,c.AST_Undefined=zb,c.AST_Hole=Ab,c.AST_Infinity=Bb,c.AST_Boolean=Cb,c.AST_False=Db,c.AST_True=Eb,c.TreeWalker=y,c.KEYWORDS=Fb,c.KEYWORDS_ATOM=Gb,c.RESERVED_WORDS=Hb,c.KEYWORDS_BEFORE_EXPRESSION=Ib,c.OPERATOR_CHARS=Jb,c.RE_HEX_NUMBER=Kb,c.RE_OCT_NUMBER=Lb,c.OPERATORS=Mb,c.WHITESPACE_CHARS=Nb,c.PUNC_BEFORE_EXPRESSION=Ob,c.PUNC_CHARS=Pb,c.REGEXP_MODIFIERS=Qb,c.UNICODE=Rb,c.is_letter=z,c.is_digit=A,c.is_alphanumeric_char=B,c.is_unicode_digit=C,c.is_unicode_combining_mark=D,c.is_unicode_connector_punctuation=E,c.is_identifier=F,c.is_identifier_start=G,c.is_identifier_char=H,c.is_identifier_string=I,c.parse_js_number=J,c.JS_Parse_Error=K,c.js_error=L,c.is_token=M,c.EX_EOF=Sb,c.tokenizer=N,c.UNARY_PREFIX=Tb,c.UNARY_POSTFIX=Ub,c.ASSIGNMENT=Vb,c.PRECEDENCE=Wb,c.STATEMENTS_WITH_LABELS=Xb,c.ATOMIC_START_TOKEN=Yb,c.parse=O,c.TreeTransformer=P,c.SymbolDef=Q,c.base54=Zb,c.OutputStream=R,c.Compressor=S,c.SourceMap=T,c.find_builtins=U,c.mangle_properties=V,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){b=Y.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},output:null,compress:{}}),Y.base54.reset();var c=null,d={};if(b.spidermonkey?c=Y.AST_Node.from_mozilla_ast(a):("string"==typeof a&&(a=[a]),a.forEach(function(a,e){var f=b.fromString?a:fs.readFileSync(a,"utf8");d[a]=f,c=Y.parse(f,{filename:b.fromString?e:a,toplevel:c})})),b.wrap&&(c=c.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var e={warnings:b.warnings};Y.merge(e,b.compress),c.figure_out_scope();var f=Y.Compressor(e);c=c.transform(f)}b.mangle&&(c.figure_out_scope(b.mangle),c.compute_char_frequency(b.mangle),c.mangle_names(b.mangle));var g=b.inSourceMap,h={};if("string"==typeof b.inSourceMap&&(g=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(h.source_map=Y.SourceMap({file:b.outSourceMap,orig:g,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var i in d)d.hasOwnProperty(i)&&h.source_map.get().setSourceContent(i,d[i]);b.output&&Y.merge(h,b.output);var j=Y.OutputStream(h);c.print(j),b.outSourceMap&&"string"==typeof b.outSourceMap&&(j+="\n//# sourceMappingURL="+b.outSourceMap);var k=h.source_map;return k&&(k+=""),{code:j+"",map:k}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Y.OutputStream({beautify:!0});return a(Y.AST_Node),b+""}},{"source-map":139,util:145}],141:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n"," "],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=-1!==d&&dC)&&(A=C)}var D,E;E=-1===A?h.lastIndexOf("@"):h.lastIndexOf("@",A),-1!==E&&(D=h.slice(0,E),h=h.slice(E+1),this.auth=decodeURIComponent(D)),A=-1;for(var B=0;BC)&&(A=C)}-1===A&&(A=h.length),this.host=h.slice(0,A),h=h.slice(A),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var G=this.hostname.split(/\./),B=0,H=G.length;H>B;B++){var I=G[B];if(I&&!I.match(t)){for(var J="",K=0,L=I.length;L>K;K++)J+=I.charCodeAt(K)>127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;H>B;B++){var R=p[B];if(-1!==h.indexOf(R)){var S=encodeURIComponent(R);S===R&&(S=escape(R)),h=h.split(R).join(S)}}var T=h.indexOf("#");-1!==T&&(this.hash=h.substr(T),h=h.slice(0,T));var U=h.indexOf("?");if(-1!==U?(this.search=h.substr(U),this.query=h.substr(U+1),b&&(this.query=y.parse(this.query)),h=h.slice(0,U)):b&&(this.search="",this.query={}),h&&(this.pathname=h),x[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var P=this.pathname||"",V=this.search||"";this.path=P+V}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j.isObject(this.query)&&Object.keys(this.query).length&&(f=y.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||x[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(j.isString(a)){var b=new d;b.parse(a,!1,!0),a=b}for(var c=new d,e=Object.keys(this),f=0;f0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":142,punycode:80,querystring:83}],142:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],143:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],144:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],145:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":144,_process:79,inherits:72}],146:[function(a,b,c){c.baseChar=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/,c.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,c.letter=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3]/,c.combiningChar=/[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A]/,c.digit=/[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/,c.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],147:[function(a,b,c){function d(){for(var a={},b=0;bdeprecated <'+a+"> element"):d(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},j.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},j.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},j.prototype.testAttribute=function(a,b,c){f(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):h(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):g(b)?this.log.push('Found style attribute on <'+a+"> element."):i(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element).")},j.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},c.HTMLLint=j},{}],"html-minifier/src/htmlparser":[function(a,b,c){"use strict";function d(a){return h(a,!0)}function e(a){var b=i.source+"(?:\\s*("+f(a)+")\\s*(?:"+l.join("|")+"))?";if(a.customAttrSurround){for(var c=[],d=a.customAttrSurround.length-1;d>=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){var c,d,e,f,g,h,i,j=7;r&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;m>l;l++,k+=j)if(c=a[k+1],h=a[k+2],c){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!c&&(c=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=v(c)?c:e),{name:c,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(k.push({tag:c,attrs:h}),g=c,d=""),b.start&&b.start(c,h,e,d)}function f(a,c){var d;if(c){var e=c.toLowerCase();for(d=k.length-1;d>=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={}; +c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":148,ncname:75}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!_(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!Z(b.slice(1)):!$(b));var g=c&&!_(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!$(c.slice(1)):!Z(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?X(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&aa(X(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||aa(f)}}return!0}function p(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value).toLowerCase();return""===f||"text/css"===f}}return!0}function q(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===X(c.toLowerCase())}function r(a,b){return ba(a)||"draggable"===a&&!ca(b)}function s(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function t(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function u(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function v(a,b,c,d,f){if(c&&j(b,d)){if(c=X(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=M(da+c+ea,d.minifyJS);return g.slice(da.length,-ea.length)}return c}return"class"===b?e(X(c)):s(b,a)?(c=X(c),d.minifyURLs&&!u(a,f)?L(c,d.minifyURLs):c):t(b,a)?X(c):"style"===b?(c=X(c),c&&(c=c.replace(/\s*;\s*$/,"")),d.minifyCSS?N(c,d.minifyCSS,!0):c):(w(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=X(c.replace(/\s*;\s*/g,";"))),c)}function w(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function x(a){return"*{"+a+"}"}function y(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function z(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return P(a,b);return a}function B(a,b){switch(a){case"html":case"head":return!0;case"body":return!ha(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function C(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return pa(a)}return!1}function D(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ia(b);case"p":return ja(b);case"rb":case"rt":case"rp":return la(b);case"rtc":return ma(b);case"option":return na(b);case"thead":case"tbody":return oa(b);case"tfoot":return"tbody"===b;case"td":case"th":return qa(b)}return!1}function E(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||wa.test(b):!1}function F(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function G(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(F("src",b))return!1;break;case"iframe":if(F("src",b)||F("srcdoc",b))return!1;break;case"object":if(F("data",b))return!1;break;case"applet":if(F("code",b))return!1}return!0}function H(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function I(a){return!/^(?:pre|textarea)$/.test(a)}function J(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&q(c,j,l))return"";if(l=v(c,j,l,f,b),f.removeEmptyAttributes&&E(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var p=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>p?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&r(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function K(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function L(a,b){try{return U.relate(a,b)}catch(c){return R(c),a}}function M(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return V.minify(d,b).code}catch(e){return R(e),a}}function N(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new S(b);return c?y(f.minify(x(e)).styles):f.minify(e).styles}catch(g){return R(g),a}}function O(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function P(a,b,c){function d(a,c){return H(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return I(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=u.length-1;a>0&&!/^<[^\/!]/.test(u[a]);)a--;u.length=Math.max(0,a)}function l(){for(var a=u.length-1;a>0&&!/^<\//.test(u[a]);)a--;u.length=Math.max(0,a)}function m(a){var c;u.length>1&&/^(?:0&&/\s$/.test(u[u.length-1])&&(c=u.length-1),c>0&&(u[c]=u[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];K(b),a=b.collapseWhitespace?X(a):a;var q,r,s,t,u=[],v="",w="",x=[],y=[],E=[],F="",L="",P=b.lint,S=Date.now(),U=[],V=[];a=a.replace(/([\s\S]*?)/g,function(b,c){s||(s=O(a));var d="";return U.push(c),d});var W=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(W.length){var Y=new RegExp("\\s*(?:"+W.join("|")+")+\\s*","g");a=a.replace(Y,function(b){t||(t=O(a));var c=t+V.length;return V.push(b)," "+c+" "})}new T(a,{partialMarkup:c,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,w=a,q=a,$(a)||(v=""),r=!1,x=c;var p=b.removeOptionalTags;if(p){var s=va(a);s&&B(F,a)&&k(),F="",s&&D(L,a)&&(l(),p=!C(L,a)),L=""}b.collapseWhitespace&&(y.length||m(a),j(a,c)||y.push(a),d(a,c)||E.push(a));var t="<"+a,z=f&&b.keepClosingSlash;u.push(t),P&&P.testElement(a);for(var A,G=[],H=!0,I=c.length;--I>=0;)P&&P.testAttribute(a,c[I].name.toLowerCase(),c[I].value),A=J(c[I],c,a,z,I,b,H),A&&(H=!1,G.unshift(A));G.length>0?(u.push(" "),u.push.apply(u,G)):p&&fa(a)&&(F=a),u.push(u.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(y.length?a===y[y.length-1]&&y.pop():m("/"+a),E.length&&a===E[E.length-1]&&E.pop());var f=!1;a===w&&(w="",f=!r),b.removeOptionalTags&&(f&&ra(F)&&k(),F="",!va(a)||!L||ua(L)||"p"===L&&ka(a)||l(),L=ga(a)?a:""),b.removeEmptyElements&&f&&G(a,c)?(k(),F="",L=""):(!b.includeAutoGeneratedTags&&d||u.push(""),q="/"+a,Z(a)?f&&(v+="|"):v="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.collapseWhitespace){if(!y.length){if("comment"===c){var h=""===u[u.length-1];if(h&&(c=q),u.length>1&&(h||/ $/.test(v))){var i=u.length-2;u[i]=u[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&$("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(v))),a=c||d?g(a,c,d,b):X(a),!a&&/\s$/.test(v)&&c&&"/"===c.charAt(0))for(var m=u.length-2,n=c.slice(1);m>=0&&j(n);m--){var s=u[m],t=s.match(/^<\/([\w:-]+)>$/);if(t)n=t[1];else if(/>$/.test(s)||(u[m]=g(s,null,d,b)))break}}E.length||(a=c&&d||"html"===d?a:e(a))}!b.processScripts||"script"!==w&&"style"!==w||(a=A(a,b,x)),b.minifyJS&&o(w,x)&&(a=M(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),b.minifyCSS&&p(w,x)&&(a=N(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===F||"body"===F&&!/^\s/.test(a))&&k(),F="",(sa(L)||ta(L)&&!/^\s/.test(a))&&l(),L=""),q=/^\s*$/.test(a)?c:"comment",v+=a,a&&(r=!0),P&&P.testChars(a),u.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+z(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(F="",L=""),u.push(a)},doctype:function(a){u.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(ra(F)&&k(),L&&!ua(L)&&l());var _=Q(u,b);return t&&(_=_.replace(new RegExp("(\\s*)"+t+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=V[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),s&&(_=_.replace(new RegExp("","g"),function(a,b){return U[+b]})),R("minified in: "+(Date.now()-S)+"ms"),_}function Q(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length