{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/colors/lib/extendStringPrototype.js","dependencies":[{"path":"/data/node_modules/colors/lib/extendStringPrototype.js","mtime":1553611387044},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992}],"contextDependencies":[],"result":["'use strict';\n\nvar colors = require('./colors');\n\nmodule['exports'] = function () {\n\n  //\n  // Extends prototype of native string object to allow for \"foo\".red syntax\n  //\n  var addProperty = function addProperty(color, func) {\n    String.prototype.__defineGetter__(color, func);\n  };\n\n  var sequencer = function sequencer(map, str) {\n    return function () {\n      var exploded = this.split(\"\"),\n          i = 0;\n      exploded = exploded.map(map);\n      return exploded.join(\"\");\n    };\n  };\n\n  addProperty('strip', function () {\n    return colors.strip(this);\n  });\n\n  addProperty('stripColors', function () {\n    return colors.strip(this);\n  });\n\n  addProperty(\"trap\", function () {\n    return colors.trap(this);\n  });\n\n  addProperty(\"zalgo\", function () {\n    return colors.zalgo(this);\n  });\n\n  addProperty(\"zebra\", function () {\n    return colors.zebra(this);\n  });\n\n  addProperty(\"rainbow\", function () {\n    return colors.rainbow(this);\n  });\n\n  addProperty(\"random\", function () {\n    return colors.random(this);\n  });\n\n  addProperty(\"america\", function () {\n    return colors.america(this);\n  });\n\n  //\n  // Iterate through all default styles and colors\n  //\n  var x = Object.keys(colors.styles);\n  x.forEach(function (style) {\n    addProperty(style, function () {\n      return colors.stylize(this, style);\n    });\n  });\n\n  function applyTheme(theme) {\n    //\n    // Remark: This is a list of methods that exist\n    // on String that you should not overwrite.\n    //\n    var stringPrototypeBlacklist = ['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'];\n\n    Object.keys(theme).forEach(function (prop) {\n      if (stringPrototypeBlacklist.indexOf(prop) !== -1) {\n        console.log('warn: '.red + ('String.prototype' + prop).magenta + ' is probably something you don\\'t want to override. Ignoring style name');\n      } else {\n        if (typeof theme[prop] === 'string') {\n          colors[prop] = colors[theme[prop]];\n          addProperty(prop, function () {\n            return colors[theme[prop]](this);\n          });\n        } else {\n          addProperty(prop, function () {\n            var ret = this;\n            for (var t = 0; t < theme[prop].length; t++) {\n              ret = colors[theme[prop][t]](ret);\n            }\n            return ret;\n          });\n        }\n      }\n    });\n  }\n\n  colors.setTheme = function (theme) {\n    if (typeof theme === 'string') {\n      try {\n        colors.themes[theme] = require(theme);\n        applyTheme(colors.themes[theme]);\n        return colors.themes[theme];\n      } catch (err) {\n        console.log(err);\n        return err;\n      }\n    } else {\n      applyTheme(theme);\n    }\n  };\n};",{"version":3,"sources":["node_modules/colors/lib/extendStringPrototype.js"],"names":["colors","require","module","addProperty","color","func","String","prototype","__defineGetter__","sequencer","map","str","exploded","split","i","join","strip","trap","zalgo","zebra","rainbow","random","america","x","Object","keys","styles","forEach","style","stylize","applyTheme","theme","stringPrototypeBlacklist","prop","indexOf","console","log","red","magenta","ret","t","length","setTheme","themes","err"],"mappings":";;AAAA,IAAIA,SAASC,QAAQ,UAAR,CAAb;;AAEAC,OAAO,SAAP,IAAoB,YAAY;;AAE9B;AACA;AACA;AACA,MAAIC,cAAc,SAAdA,WAAc,CAAUC,KAAV,EAAiBC,IAAjB,EAAuB;AACvCC,WAAOC,SAAP,CAAiBC,gBAAjB,CAAkCJ,KAAlC,EAAyCC,IAAzC;AACD,GAFD;;AAIA,MAAII,YAAY,SAASA,SAAT,CAAoBC,GAApB,EAAyBC,GAAzB,EAA8B;AAC1C,WAAO,YAAY;AACjB,UAAIC,WAAW,KAAKC,KA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OD;AACF;AACF,KArBD;AAsBD;;AAEDvC,SAAO0C,QAAP,GAAkB,UAAUX,KAAV,EAAiB;AACjC,QAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B;AAC7B,UAAI;AACF/B,eAAO2C,MAAP,CAAcZ,KAAd,IAAuB9B,QAAQ8B,KAAR,CAAvB;AACAD,mBAAW9B,OAAO2C,MAAP,CAAcZ,KAAd,CAAX;AACA,eAAO/B,OAAO2C,MAAP,CAAcZ,KAAd,CAAP;AACD,OAJD,CAIE,OAAOa,GAAP,EAAY;AACZT,gBAAQC,GAAR,CAAYQ,GAAZ;AACA,eAAOA,GAAP;AACD;AACF,KATD,MASO;AACLd,iBAAWC,KAAX;AACD;AACF,GAbD;AAeD,CA9GD","file":"extendStringPrototype.js","sourceRoot":"/data","sourcesContent":["var colors = require('./colors');\n\nmodule['exports'] = function () {\n\n  //\n  // Extends prototype of native string object to allow for \"foo\".red syntax\n  //\n  var addProperty = function (color, func) {\n    String.prototype.__defineGetter__(color, func);\n  };\n\n  var sequencer = function sequencer (map, str) {\n      return function () {\n        var exploded = this.split(\"\"), i = 0;\n        exploded = exploded.map(map);\n        return exploded.join(\"\");\n      }\n  };\n\n  addProperty('strip', function () {\n    return colors.strip(this);\n  });\n\n  addProperty('stripColors', function () {\n    return colors.strip(this);\n  });\n\n  addProperty(\"trap\", function(){\n    return colors.trap(this);\n  });\n\n  addProperty(\"zalgo\", function(){\n    return colors.zalgo(this);\n  });\n\n  addProperty(\"zebra\", function(){\n    return colors.zebra(this);\n  });\n\n  addProperty(\"rainbow\", function(){\n    return colors.rainbow(this);\n  });\n\n  addProperty(\"random\", function(){\n    return colors.random(this);\n  });\n\n  addProperty(\"america\", function(){\n    return colors.america(this);\n  });\n\n  //\n  // Iterate through all default styles and colors\n  //\n  var x = Object.keys(colors.styles);\n  x.forEach(function (style) {\n    addProperty(style, function () {\n      return colors.stylize(this, style);\n    });\n  });\n\n  function applyTheme(theme) {\n    //\n    // Remark: This is a list of methods that exist\n    // on String that you should not overwrite.\n    //\n    var stringPrototypeBlacklist = [\n      '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor',\n      'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt',\n      'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring',\n      'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'\n    ];\n\n    Object.keys(theme).forEach(function (prop) {\n      if (stringPrototypeBlacklist.indexOf(prop) !== -1) {\n        console.log('warn: '.red + ('String.prototype' + prop).magenta + ' is probably something you don\\'t want to override. Ignoring style name');\n      }\n      else {\n        if (typeof(theme[prop]) === 'string') {\n          colors[prop] = colors[theme[prop]];\n          addProperty(prop, function () {\n            return colors[theme[prop]](this);\n          });\n        }\n        else {\n          addProperty(prop, function () {\n            var ret = this;\n            for (var t = 0; t < theme[prop].length; t++) {\n              ret = colors[theme[prop][t]](ret);\n            }\n            return ret;\n          });\n        }\n      }\n    });\n  }\n\n  colors.setTheme = function (theme) {\n    if (typeof theme === 'string') {\n      try {\n        colors.themes[theme] = require(theme);\n        applyTheme(colors.themes[theme]);\n        return colors.themes[theme];\n      } catch (err) {\n        console.log(err);\n        return err;\n      }\n    } else {\n      applyTheme(theme);\n    }\n  };\n\n};"]}]}