UNPKG

webpack

Version:

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.

241 lines (206 loc) 76.8 kB
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded chunks /******/ // "1" means "already loaded" /******/ var installedChunks = { /******/ 0:1 /******/ }; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId, callback) { /******/ if(installedChunks[chunkId] === 1) callback.call(null, __webpack_require__); /******/ else if(!installedChunks[chunkId]) { /******/ installedChunks[chunkId] = [callback]; /******/ var filename = __dirname + "/" + chunkId + ".bundle.js"; /******/ require('fs').readFile(filename, 'utf-8', function(err, content) { /******/ if(err) { if(__webpack_require__.onError) return __webpack_require__.onError(err); else throw err; } /******/ var chunk = {}; /******/ require('vm').runInThisContext('(function(exports, require, __dirname, __filename) {' + content + '\n})', filename)(chunk, require, require('path').dirname(filename), filename); /******/ var moreModules = chunk.modules, chunkIds = chunk.ids; /******/ for(var moduleId in moreModules) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ var callbacks = []; /******/ for(var i = 0; i < chunkIds.length; i++) { /******/ if(Array.isArray(installedChunks[chunkIds[i]])) /******/ callbacks = callbacks.concat(installedChunks[chunkIds[i]]); /******/ installedChunks[chunkIds[i]] = 1; /******/ } /******/ for(i = 0; i < callbacks.length; i++) /******/ callbacks[i].call(null, __webpack_require__); /******/ }); /******/ } else installedChunks[chunkId].push(callback); /******/ }; /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /*!**************************************!*\ !*** ./parsing/extract-amd/index.js ***! \**************************************/ /***/ function(module, exports, __webpack_require__) { eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) {var should = __webpack_require__(/*! should */ 13);\r\n\r\nit(\"should parse fancy function calls\", function() {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./constructor */ 1)], __WEBPACK_AMD_DEFINE_RESULT__ = function(c) {\r\n\t\treturn new c(1324);\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\tmodule.exports.should.have.property(\"value\").be.eql(1324);\r\n\t(!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./constructor */ 1)], __WEBPACK_AMD_DEFINE_RESULT__ = function(c) {\r\n\t\treturn new c(4231);\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)));\r\n\tmodule.exports.should.have.property(\"value\").be.eql(4231);\r\n});\r\n\r\nit(\"should parse fancy AMD calls\", function() {\r\n\t!/* require */(/* empty */[__webpack_require__(/*! ./constructor */ 1), __webpack_require__(/*! ./a */ 2)]);\r\n\t!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__, module, exports, __webpack_require__(/*! ./constructor */ 1), __webpack_require__(/*! ./a */ 2)]; (function(require, module, exports, constructor, a) {\r\n\t\t(\"function\").should.be.eql(\"function\");\r\n\t\t(typeof module).should.be.eql(\"object\");\r\n\t\t(typeof exports).should.be.eql(\"object\");\r\n\t\t(typeof __webpack_require__(/*! ./constructor */ 1)).should.be.eql(\"function\");\r\n\t\t(typeof constructor).should.be.eql(\"function\");\r\n\t\ta.should.be.eql(\"a\");\r\n\t}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, module, exports, __webpack_require__(/*! ./constructor */ 1), __webpack_require__(/*! ./a */ 2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(require, module, exports, constructor, a) {\r\n\t\t(\"function\").should.be.eql(\"function\");\r\n\t\t(typeof module).should.be.eql(\"object\");\r\n\t\t(typeof exports).should.be.eql(\"object\");\r\n\t\t(typeof __webpack_require__(/*! ./constructor */ 1)).should.be.eql(\"function\");\r\n\t\t(typeof constructor).should.be.eql(\"function\");\r\n\t\ta.should.be.eql(\"a\");\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use AMD-style require\", function(done) {\r\n\tvar template = \"b\";\r\n\t__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./circular */ 3), __webpack_require__(/*! ./templates */ 5)(\"./\" + template), __webpack_require__(/*! ./circular */ 3)]; (function(circular, testTemplate, circular2) {\r\n\t\tcircular.should.be.eql(1);\r\n\t\tcircular2.should.be.eql(1);\r\n\t\ttestTemplate.should.be.eql(\"b\");\r\n\t\tdone();\r\n\t}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});\r\n});\r\n\r\nit(\"should be able to use require.js-style define\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./circular */ 3)], __WEBPACK_AMD_DEFINE_RESULT__ = function(circular) {\r\n\t\tcircular.should.be.eql(1);\r\n\t\tdone();\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, optional dependancies, not exist\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./optional */ 4)], __WEBPACK_AMD_DEFINE_RESULT__ = function(optional) {\r\n\t\tshould(optional.b).not.exist;\r\n\t\tdone();\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, special string\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__], __WEBPACK_AMD_DEFINE_RESULT__ = function(require) {\r\n\t\t__webpack_require__(/*! ./circular */ 3).should.be.eql(1);\r\n\t\tdone();\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, without name\", function(done) {\r\n\ttrue && !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./circular */ 3)], __WEBPACK_AMD_DEFINE_RESULT__ = function(circular) {\r\n\t\tcircular.should.be.eql(1);\r\n\t\tdone();\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, with empty dependencies\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {\r\n\t\tdone();\r\n\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, with empty dependencies, with a expression\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (ok), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\tfunction ok() { done() };\r\n});\r\n\r\nit(\"should be able to use require.js-style define, with empty dependencies, with a expression and name\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (done), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, without dependencies\", function(done) {\r\n\ttrue && !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {\r\n\t\tdone();\r\n\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should be able to use require.js-style define, without dependencies, with a expression\", function(done) {\r\n\ttrue && !(__WEBPACK_AMD_DEFINE_FACTORY__ = (ok), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\tfunction ok() { done() };\r\n});\r\n\r\nvar obj = {};\r\nit(\"should be able to use require.js-style define, with an object\", function() {\r\n\tmodule.exports = null;\r\n\r\n\ttrue && !(__WEBPACK_AMD_DEFINE_FACTORY__ = (obj), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\r\n\tmodule.exports.should.be.equal(obj);\r\n\tmodule.exports = null;\r\n\r\n\t!(__WEBPACK_AMD_DEFINE_FACTORY__ = (obj), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\r\n\tmodule.exports.should.be.equal(obj);\r\n\tmodule.exports = null;\r\n});\r\n\r\nit(\"should offer AMD-style define for CommonJs\", function(done) {\r\n\tvar _test_exports = exports;\r\n\tvar _test_module = module;\r\n\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function(require, exports, module) {\r\n\t\t(\"function\").should.be.eql(\"function\");\r\n\t\texports.should.be.equal(_test_exports);\r\n\t\tmodule.should.be.equal(_test_module);\r\n\t\t__webpack_require__(/*! ./circular */ 3).should.be.eql(1);\r\n\t\tdone();\r\n\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should not crash on require.js require only with array\", function() {\r\n\t!/* require */(/* empty */[__webpack_require__(/*! ./circular */ 3)]);\r\n});\r\n\r\nit(\"should be able to use AMD require without function expression (empty array)\", function(done) {\r\n\t!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = []; (ok.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());\r\n\tfunction ok() { done() };\r\n});\r\n\r\nit(\"should be able to use AMD require without function expression\", function(done) {\r\n\t!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./circular */ 3)]; (fn.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());\r\n\tfunction fn(c) {\r\n\t\tc.should.be.eql(1);\r\n\t\tdone();\r\n\t}\r\n});\r\n\r\nit(\"should create a chunk for require.js require\", function(done) {\r\n\tvar sameTick = true;\r\n\t__webpack_require__.e/* require */(2, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./c */ 6)]; (function(c) {\r\n\t\tsameTick.should.be.eql(false);\r\n\t\tc.should.be.eql(\"c\");\r\n\t\t__webpack_require__(/*! ./d */ 7).should.be.eql(\"d\");\r\n\t\tdone();\r\n\t}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});\r\n\tsameTick = false;\r\n});\r\n\r\nit(\"should not fail #138\", function(done) {\r\n\t(function (factory) {\r\n\t\tif (true) {\r\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // AMD\r\n\t\t} else if (typeof exports === 'object') {\r\n\t\t\tmodule.exports = factory(); // Node\r\n\t\t} else {\r\n\t\t\tfactory(); // Browser global\r\n\t\t}\r\n\t}(function () { done() }));\r\n});\r\n\r\nit(\"should parse a bound function expression 1\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function(a, require, exports, module) {\r\n\t\ta.should.be.eql(123);\r\n\t\t(\"function\").should.be.eql(\"function\");\r\n\t\t__webpack_require__(/*! ./a */ 2).should.be.eql(\"a\");\r\n\t\tdone();\r\n\t}.bind(null, 123).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should parse a bound function expression 2\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function(a, require, exports, module) {\r\n\t\ta.should.be.eql(123);\r\n\t\t(\"function\").should.be.eql(\"function\");\r\n\t\t__webpack_require__(/*! ./a */ 2).should.be.eql(\"a\");\r\n\t\tdone();\r\n\t}.bind(null, 123).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should parse a bound function expression 3\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./a */ 2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(number, a) {\r\n\t\tnumber.should.be.eql(123);\r\n\t\ta.should.be.eql(\"a\");\r\n\t\tdone();\r\n\t}.bind(null, 123).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should parse a bound function expression 4\", function(done) {\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./a */ 2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(number, a) {\r\n\t\tnumber.should.be.eql(123);\r\n\t\ta.should.be.eql(\"a\");\r\n\t\tdone();\r\n\t}.bind(null, 123).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n});\r\n\r\nit(\"should not fail issue #138 second\", function() {\r\n\t(function(define, global) { 'use strict';\r\n\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function (require) {\r\n\t\t\t(\"function\").should.be.eql(\"function\");\r\n\t\t\t__webpack_require__(/*! ./a */ 2).should.be.eql(\"a\");\r\n\t\t\treturn \"#138 2.\";\r\n\t\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\t})(__webpack_require__(/*! !webpack amd define */ 8), this);\r\n\tmodule.exports.should.be.eql(\"#138 2.\");\r\n});\r\n\r\nit(\"should parse an define with empty array and object\", function() {\r\n\tvar obj = {ok: 95476};\r\n\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (obj), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\tmodule.exports.should.be.eql(obj);\r\n});\r\nit(\"should parse an define with object\", function() {\r\n\tvar obj = {ok: 76243};\r\n\t!(__WEBPACK_AMD_DEFINE_FACTORY__ = (obj), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\tmodule.exports.should.be.eql(obj);\r\n});\r\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! (webpack)/buildin/module.js */ 9)(module)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./parsing/extract-amd/index.js\n ** module id = 0\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./parsing/extract-amd/index.js?"); /***/ }, /* 1 */ /*!********************************************!*\ !*** ./parsing/extract-amd/constructor.js ***! \********************************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = function(value) {\r\n\tthis.value = value;\r\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./parsing/extract-amd/constructor.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./parsing/extract-amd/constructor.js?"); /***/ }, /* 2 */ /*!**********************************!*\ !*** ./parsing/extract-amd/a.js ***! \**********************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = \"a\";\n\n/*****************\n ** WEBPACK FOOTER\n ** ./parsing/extract-amd/a.js\n ** module id = 2\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./parsing/extract-amd/a.js?"); /***/ }, /* 3 */ /*!*****************************************!*\ !*** ./parsing/extract-amd/circular.js ***! \*****************************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = 1;\r\nmodule.exports = __webpack_require__(/*! ./circular */ 3);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./parsing/extract-amd/circular.js\n ** module id = 3\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./parsing/extract-amd/circular.js?"); /***/ }, /* 4 */ /*!*****************************************!*\ !*** ./parsing/extract-amd/optional.js ***! \*****************************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = 2;\r\ntry { module.exports.a = __webpack_require__(/*! ./a */ 2); } catch (e) {};\r\ntry { module.exports.b = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module \\\"./b\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())); } catch (e) {};\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./parsing/extract-amd/optional.js\n ** module id = 4\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./parsing/extract-amd/optional.js?"); /***/ }, /* 5 */, /* 6 */, /* 7 */, /* 8 */ /*!***************************************!*\ !*** (webpack)/buildin/amd-define.js ***! \***************************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = function() { throw new Error(\"define cannot be used indirect\"); };\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/amd-define.js\n ** module id = 8\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/buildin/amd-define.js?"); /***/ }, /* 9 */ /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /***/ function(module, exports, __webpack_require__) { eval("module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 9\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/buildin/module.js?"); /***/ }, /* 10 */, /* 11 */, /* 12 */, /* 13 */ /*!****************************************!*\ !*** (webpack)/~/should/lib/should.js ***! \****************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\n\nvar util = __webpack_require__(/*! ./util */ 14),\n AssertionError = util.AssertionError,\n inspect = util.inspect;\n\n/**\n * Our function should\n * @param obj\n * @returns {Assertion}\n */\nvar should = function(obj) {\n return new Assertion(util.isWrapperType(obj) ? obj.valueOf() : obj);\n};\n\n/**\n * Initialize a new `Assertion` with the given _obj_.\n *\n * @param {*} obj\n * @api private\n */\n\nvar Assertion = should.Assertion = function Assertion(obj) {\n this.obj = obj;\n};\n\n\n/**\n Way to extend Assertion function. It uses some logic\n to define only positive assertions and itself rule with negative assertion.\n\n All actions happen in subcontext and this method take care about negation.\n Potentially we can add some more modifiers that does not depends from state of assertion.\n */\nAssertion.add = function(name, f, isGetter) {\n var prop = { enumerable: true };\n prop[isGetter ? 'get' : 'value'] = function() {\n var context = new Assertion(this.obj);\n context.copy = context.copyIfMissing;\n context.anyOne = this.anyOne;\n\n try {\n f.apply(context, arguments);\n } catch(e) {\n //copy data from sub context to this\n this.copy(context);\n\n //check for fail\n if(e instanceof should.AssertionError) {\n //negative fail\n if(this.negate) {\n this.obj = context.obj;\n this.negate = false;\n return this;\n }\n this.assert(false);\n }\n // throw if it is another exception\n throw e;\n }\n //copy data from sub context to this\n this.copy(context);\n if(this.negate) {\n this.assert(false);\n }\n\n this.obj = context.obj;\n this.negate = false;\n return this;\n };\n\n Object.defineProperty(Assertion.prototype, name, prop);\n};\n\nAssertion.alias = function(from, to) {\n var desc = Object.getOwnPropertyDescriptor(Assertion.prototype, from);\n if(!desc) throw new Error('Alias ' + from + ' -> ' + to + ' could not be created as ' + from + ' not defined');\n Object.defineProperty(Assertion.prototype, to, desc);\n};\n\nshould.AssertionError = AssertionError;\nshould.format = function (value) {\n if(util.isDate(value) && typeof value.inspect !== 'function') return value.toISOString(); //show millis in dates\n return inspect(value, { depth: null });\n};\n\nshould.use = function(f) {\n f(this, Assertion);\n return this;\n};\n\n\n/**\n * Expose should to external world.\n */\nexports = module.exports = should;\n\n\n/**\n * Expose api via `Object#should`.\n *\n * @api public\n */\n\nObject.defineProperty(Object.prototype, 'should', {\n set: function() {\n },\n get: function() {\n return should(this);\n },\n configurable: true\n});\n\n\nAssertion.prototype = {\n constructor: Assertion,\n\n assert: function(expr) {\n if(expr) return this;\n\n var params = this.params;\n\n var msg = params.message, generatedMessage = false;\n if(!msg) {\n msg = this.getMessage();\n generatedMessage = true;\n }\n\n var err = new AssertionError({\n message: msg, actual: this.obj, expected: params.expected, stackStartFunction: this.assert\n });\n\n err.showDiff = params.showDiff;\n err.operator = params.operator;\n err.generatedMessage = generatedMessage;\n\n throw err;\n },\n\n getMessage: function() {\n return 'expected ' + ('obj' in this.params ? this.params.obj: should.format(this.obj)) + (this.negate ? ' not ': ' ') +\n this.params.operator + ('expected' in this.params ? ' ' + should.format(this.params.expected) : '');\n },\n\n copy: function(other) {\n this.params = other.params;\n },\n\n copyIfMissing: function(other) {\n if(!this.params) this.params = other.params;\n },\n\n\n /**\n * Negation modifier.\n *\n * @api public\n */\n\n get not() {\n this.negate = !this.negate;\n return this;\n },\n\n /**\n * Any modifier - it affect on execution of sequenced assertion to do not check all, but any of\n *\n * @api public\n */\n get any() {\n this.anyOne = true;\n return this;\n }\n};\n\nshould\n .use(__webpack_require__(/*! ./ext/assert */ 15))\n .use(__webpack_require__(/*! ./ext/chain */ 16))\n .use(__webpack_require__(/*! ./ext/bool */ 17))\n .use(__webpack_require__(/*! ./ext/number */ 18))\n .use(__webpack_require__(/*! ./ext/eql */ 19))\n .use(__webpack_require__(/*! ./ext/type */ 20))\n .use(__webpack_require__(/*! ./ext/string */ 21))\n .use(__webpack_require__(/*! ./ext/property */ 22))\n .use(__webpack_require__(/*! ./ext/error */ 23))\n .use(__webpack_require__(/*! ./ext/match */ 24))\n .use(__webpack_require__(/*! ./ext/contain */ 25));\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/should.js\n ** module id = 13\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/should.js?"); /***/ }, /* 14 */ /*!**************************************!*\ !*** (webpack)/~/should/lib/util.js ***! \**************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\n/**\n * Check if given obj just a primitive type wrapper\n * @param {Object} obj\n * @returns {boolean}\n * @api private\n */\nexports.isWrapperType = function(obj) {\n return isNumber(obj) || isString(obj) || isBoolean(obj);\n};\n\n/**\n * Merge object b with object a.\n *\n * var a = { foo: 'bar' }\n * , b = { bar: 'baz' };\n *\n * utils.merge(a, b);\n * // => { foo: 'bar', bar: 'baz' }\n *\n * @param {Object} a\n * @param {Object} b\n * @return {Object}\n * @api private\n */\n\nexports.merge = function(a, b){\n if (a && b) {\n for (var key in b) {\n a[key] = b[key];\n }\n }\n return a;\n};\n\nfunction isArray(arr) {\n return isObject(arr) && (arr.__ArrayLike || Array.isArray(arr));\n}\n\nexports.isArray = isArray;\n\nfunction isNumber(arg) {\n return typeof arg === 'number' || arg instanceof Number;\n}\n\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string' || arg instanceof String;\n}\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean' || arg instanceof Boolean;\n}\nexports.isBoolean = isBoolean;\n\nexports.isString = isString;\n\nfunction isBuffer(arg) {\n return typeof Buffer !== 'undefined' && arg instanceof Buffer;\n}\n\nexports.isBuffer = isBuffer;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\n\nexports.isDate = isDate;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nexports.isObject = isObject;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\n\nexports.isRegExp = isRegExp;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\n\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isArguments(object) {\n return objectToString(object) === '[object Arguments]';\n}\n\nexports.isArguments = isArguments;\n\nexports.isFunction = function(arg) {\n return typeof arg === 'function' || arg instanceof Function;\n};\n\nfunction isError(e) {\n return (isObject(e) && objectToString(e) === '[object Error]') || (e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\nexports.isUndefined = isUndefined;\n\nexports.inspect = __webpack_require__(/*! ./inspect */ 27).inspect;\n\nexports.AssertionError = __webpack_require__(/*! assert */ 26).AssertionError;\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nexports.forOwn = function(obj, f, context) {\n for(var prop in obj) {\n if(hasOwnProperty.call(obj, prop)) {\n f.call(context, obj[prop], prop);\n }\n }\n};\n\nvar functionNameRE = /^\\s*function\\s*(\\S*)\\s*\\(/;\n\nexports.functionName = function(f) {\n if(f.name) {\n return f.name;\n }\n var name = f.toString().match(functionNameRE)[1];\n return name;\n};\n\nexports.formatProp = function(name) {\n name = JSON.stringify('' + name);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\")\n .replace(/\\\\\\\\/g, '\\\\');\n }\n return name;\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/util.js\n ** module id = 14\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/util.js?"); /***/ }, /* 15 */ /*!********************************************!*\ !*** (webpack)/~/should/lib/ext/assert.js ***! \********************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nvar util = __webpack_require__(/*! ../util */ 14)\n , assert = __webpack_require__(/*! assert */ 26)\n , AssertionError = assert.AssertionError;\n\nmodule.exports = function(should) {\n var i = should.format;\n\n /**\n * Expose assert to should\n *\n * This allows you to do things like below\n * without require()ing the assert module.\n *\n * should.equal(foo.bar, undefined);\n *\n */\n util.merge(should, assert);\n\n /**\n * Assert _obj_ exists, with optional message.\n *\n * @param {*} obj\n * @param {String} [msg]\n * @api public\n */\n should.exist = should.exists = function(obj, msg) {\n if(null == obj) {\n throw new AssertionError({\n message: msg || ('expected ' + i(obj) + ' to exist'), stackStartFunction: should.exist\n });\n }\n };\n\n /**\n * Asserts _obj_ does not exist, with optional message.\n *\n * @param {*} obj\n * @param {String} [msg]\n * @api public\n */\n\n should.not = {};\n should.not.exist = should.not.exists = function(obj, msg) {\n if(null != obj) {\n throw new AssertionError({\n message: msg || ('expected ' + i(obj) + ' to not exist'), stackStartFunction: should.not.exist\n });\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/assert.js\n ** module id = 15\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/assert.js?"); /***/ }, /* 16 */ /*!*******************************************!*\ !*** (webpack)/~/should/lib/ext/chain.js ***! \*******************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nmodule.exports = function(should, Assertion) {\n\n function addLink(name) {\n Object.defineProperty(Assertion.prototype, name, {\n get: function() {\n return this;\n },\n enumerable: true\n });\n }\n\n ['an', 'of', 'a', 'and', 'be', 'have', 'with', 'is', 'which', 'the'].forEach(addLink);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/chain.js\n ** module id = 16\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/chain.js?"); /***/ }, /* 17 */ /*!******************************************!*\ !*** (webpack)/~/should/lib/ext/bool.js ***! \******************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nmodule.exports = function(should, Assertion) {\n Assertion.add('true', function() {\n this.is.exactly(true);\n }, true);\n\n Assertion.alias('true', 'True');\n\n Assertion.add('false', function() {\n this.is.exactly(false);\n }, true);\n\n Assertion.alias('false', 'False');\n\n Assertion.add('ok', function() {\n this.params = { operator: 'to be truthy' };\n\n this.assert(this.obj);\n }, true);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/bool.js\n ** module id = 17\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/bool.js?"); /***/ }, /* 18 */ /*!********************************************!*\ !*** (webpack)/~/should/lib/ext/number.js ***! \********************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nmodule.exports = function(should, Assertion) {\n Assertion.add('NaN', function() {\n this.params = { operator: 'to be NaN' };\n\n this.assert(this.obj !== this.obj);\n }, true);\n\n Assertion.add('Infinity', function() {\n this.params = { operator: 'to be Infinity' };\n\n this.is.a.Number\n .and.not.a.NaN\n .and.assert(!isFinite(this.obj));\n }, true);\n\n Assertion.add('within', function(start, finish, description) {\n this.params = { operator: 'to be within ' + start + '..' + finish, message: description };\n\n this.assert(this.obj >= start && this.obj <= finish);\n });\n\n Assertion.add('approximately', function(value, delta, description) {\n this.params = { operator: 'to be approximately ' + value + \" ±\" + delta, message: description };\n\n this.assert(Math.abs(this.obj - value) <= delta);\n });\n\n Assertion.add('above', function(n, description) {\n this.params = { operator: 'to be above ' + n, message: description };\n\n this.assert(this.obj > n);\n });\n\n Assertion.add('below', function(n, description) {\n this.params = { operator: 'to be below ' + n, message: description };\n\n this.assert(this.obj < n);\n });\n\n Assertion.alias('above', 'greaterThan');\n Assertion.alias('below', 'lessThan');\n\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/number.js\n ** module id = 18\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/number.js?"); /***/ }, /* 19 */ /*!*****************************************!*\ !*** (webpack)/~/should/lib/ext/eql.js ***! \*****************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nvar eql = __webpack_require__(/*! ../eql */ 28);\n\nmodule.exports = function(should, Assertion) {\n Assertion.add('eql', function(val, description) {\n this.params = { operator: 'to equal', expected: val, showDiff: true, message: description };\n\n this.assert(eql(val, this.obj));\n });\n\n Assertion.add('equal', function(val, description) {\n this.params = { operator: 'to be', expected: val, showDiff: true, message: description };\n\n this.assert(val === this.obj);\n });\n\n Assertion.alias('equal', 'exactly');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/eql.js\n ** module id = 19\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/eql.js?"); /***/ }, /* 20 */ /*!******************************************!*\ !*** (webpack)/~/should/lib/ext/type.js ***! \******************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nvar util = __webpack_require__(/*! ../util */ 14);\n\nmodule.exports = function(should, Assertion) {\n Assertion.add('Number', function() {\n this.params = { operator: 'to be a number' };\n\n this.assert(util.isNumber(this.obj));\n }, true);\n\n Assertion.add('arguments', function() {\n this.params = { operator: 'to be arguments' };\n\n this.assert(util.isArguments(this.obj));\n }, true);\n\n Assertion.add('type', function(type, description) {\n this.params = { operator: 'to have type ' + type, message: description };\n\n (typeof this.obj).should.be.exactly(type, description);\n });\n\n Assertion.add('instanceof', function(constructor, description) {\n this.params = { operator: 'to be an instance of ' + util.functionName(constructor), message: description };\n\n this.assert(Object(this.obj) instanceof constructor);\n });\n\n Assertion.add('Function', function() {\n this.params = { operator: 'to be a function' };\n\n this.assert(util.isFunction(this.obj));\n }, true);\n\n Assertion.add('Object', function() {\n this.params = { operator: 'to be an object' };\n\n this.assert(util.isObject(this.obj));\n }, true);\n\n Assertion.add('String', function() {\n this.params = { operator: 'to be a string' };\n\n this.assert(util.isString(this.obj));\n }, true);\n\n Assertion.add('Array', function() {\n this.params = { operator: 'to be an array' };\n\n this.assert(util.isArray(this.obj));\n }, true);\n\n Assertion.add('Boolean', function() {\n this.params = { operator: 'to be a boolean' };\n\n this.assert(util.isBoolean(this.obj));\n }, true);\n\n Assertion.add('Error', function() {\n this.params = { operator: 'to be an error' };\n\n this.assert(util.isError(this.obj));\n }, true);\n\n Assertion.add('null', function() {\n this.params = { operator: 'to be null' };\n\n this.assert(this.obj === null);\n }, true);\n\n Assertion.alias('null', 'Null');\n\n Assertion.alias('instanceof', 'instanceOf');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/type.js\n ** module id = 20\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/type.js?"); /***/ }, /* 21 */ /*!********************************************!*\ !*** (webpack)/~/should/lib/ext/string.js ***! \********************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nmodule.exports = function(should, Assertion) {\n Assertion.add('startWith', function(str, description) {\n this.params = { operator: 'to start with ' + should.format(str), message: description };\n\n this.assert(0 === this.obj.indexOf(str));\n });\n\n Assertion.add('endWith', function(str, description) {\n this.params = { operator: 'to end with ' + should.format(str), message: description };\n\n this.assert(this.obj.indexOf(str, this.obj.length - str.length) >= 0);\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/string.js\n ** module id = 21\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/string.js?"); /***/ }, /* 22 */ /*!**********************************************!*\ !*** (webpack)/~/should/lib/ext/property.js ***! \**********************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\nvar util = __webpack_require__(/*! ../util */ 14),\n eql = __webpack_require__(/*! ../eql */ 28);\n\nvar aSlice = Array.prototype.slice;\n\nmodule.exports = function(should, Assertion) {\n var i = should.format;\n\n Assertion.add('enumerable', function(name, val) {\n name = String(name);\n\n this.params = {\n operator:\"to have enumerable property \" + util.formatProp(name)\n };\n\n this.assert(this.obj.propertyIsEnumerable(name));\n\n if(arguments.length > 1){\n this.params.operator += \" equal to \"+i(val);\n this.assert(eql(val, this.obj[name]));\n }\n });\n\n Assertion.add('property', function(name, val) {\n name = String(name);\n if(arguments.length > 1) {\n var p = {};\n p[name] = val;\n this.have.properties(p);\n } else {\n this.have.properties(name);\n }\n this.obj = this.obj[name];\n });\n\n Assertion.add('properties', function(names) {\n var values = {};\n if(arguments.length > 1) {\n names = aSlice.call(arguments);\n } else if(!util.isArray(names)) {\n if(util.isString(names)) {\n names = [names];\n } else {\n values = names;\n names = Object.keys(names);\n }\n }\n\n var obj = Object(this.obj), missingProperties = [];\n\n //just enumerate properties and check if they all present\n names.forEach(function(name) {\n if(!(name in obj)) missingProperties.push(util.formatProp(name));\n });\n\n var props = missingProperties;\n if(props.length === 0) {\n props = names.map(util.formatProp);\n } else if(this.anyOne) {\n props = names.filter(function(name) {\n return missingProperties.indexOf(util.formatProp(name)) < 0;\n }).map(util.formatProp);\n }\n\n var operator = (props.length === 1 ?\n 'to have property ' : 'to have '+(this.anyOne? 'any of ' : '')+'properties ') + props.join(', ');\n\n this.params = { operator: operator };\n\n //check that all properties presented\n //or if we request one of them that at least one them presented\n this.assert(missingProperties.length === 0 || (this.anyOne && missingProperties.length != names.length));\n\n // check if values in object matched expected\n var valueCheckNames = Object.keys(values);\n if(valueCheckNames.length) {\n var wrongValues = [];\n props = [];\n\n // now check values, as there we have all properties\n valueCheckNames.forEach(function(name) {\n var value = values[name];\n if(!eql(obj[name], value)) {\n wrongValues.push(util.formatProp(name) + ' of ' + i(value) + ' (got ' + i(obj[name]) + ')');\n } else {\n props.push(util.formatProp(name) + ' of ' + i(value));\n }\n });\n\n if((wrongValues.length !== 0 && !this.anyOne) || (this.anyOne && props.length === 0)) {\n props = wrongValues;\n }\n\n operator = (props.length === 1 ?\n 'to have property ' : 'to have '+(this.anyOne? 'any of ' : '')+'properties ') + props.join(', ');\n\n this.params = { operator: operator };\n\n //if there is no not matched values\n //or there is at least one matched\n this.assert(wrongValues.length === 0 || (this.anyOne && wrongValues.length != valueCheckNames.length));\n }\n });\n\n Assertion.add('length', function(n, description) {\n this.have.property('length', n, description);\n });\n\n Assertion.alias('length', 'lengthOf');\n\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n\n Assertion.add('ownProperty', function(name, description) {\n name = String(name);\n this.params = { operator: 'to have own property ' + util.formatProp(name), message: description };\n\n this.assert(hasOwnProperty.call(this.obj, name));\n\n this.obj = this.obj[name];\n });\n\n Assertion.alias('ownProperty', 'hasOwnProperty');\n\n Assertion.add('empty', function() {\n this.params = { operator: 'to be empty' };\n\n if(util.isString(this.obj) || util.isArray(this.obj) || util.isArguments(this.obj)) {\n this.have.property('length', 0);\n } else {\n var obj = Object(this.obj); // wrap to reference for booleans and numbers\n for(var prop in obj) {\n this.have.not.ownProperty(prop);\n }\n }\n }, true);\n\n Assertion.add('keys', function(keys) {\n if(arguments.length > 1) keys = aSlice.call(arguments);\n else if(arguments.length === 1 && util.isString(keys)) keys = [ keys ];\n else if(arguments.length === 0) keys = [];\n\n keys = keys.map(String);\n\n var obj = Object(this.obj);\n\n // first check if some keys are missing\n var missingKeys = [];\n keys.forEach(function(key) {\n if(!hasOwnProperty.call(this.obj, key))\n missingKeys.push(util.formatProp(key));\n }, this);\n\n // second check for extra keys\n var extraKeys = [];\n Object.keys(obj).forEach(function(key) {\n if(keys.indexOf(key) < 0) {\n extraKeys.push(util.formatProp(key));\n }\n });\n\n var verb = keys.length === 0 ? 'to be empty' :\n 'to have ' + (keys.length === 1 ? 'key ' : 'keys ');\n\n this.params = { operator: verb + keys.map(util.formatProp).join(', ')};\n\n if(missingKeys.length > 0)\n this.params.operator += '\\n\\tmissing keys: ' + missingKeys.join(', ');\n\n if(extraKeys.length > 0)\n this.params.operator += '\\n\\textra keys: ' + extraKeys.join(', ');\n\n this.assert(missingKeys.length === 0 && extraKeys.length === 0);\n });\n\n Assertion.alias(\"keys\", \"key\");\n\n Assertion.add('propertyByPath', function(properties) {\n if(arguments.length > 1) properties = aSlice.call(arguments);\n else if(arguments.length === 1 && util.isString(properties)) properties = [ properties ];\n else if(arguments.length === 0) properties = [];\n\n var allProps = properties.map(util.formatProp);\n\n properties = properties.map(String);\n\n var obj = should(Object(this.obj));\n\n var foundProperties = [];\n\n var currentProperty;\n while(currentProperty = properties.shift()) {\n this.params = { operator: 'to have property by path ' + allProps.join(', ') + ' - failed on ' + util.formatProp(currentProperty) };\n obj = obj.have.property(currentProperty);\n foundProperties.push(currentProperty);\n }\n\n this.params = { operator: 'to have property by path ' + allProps.join(', ') };\n\n this.obj = obj.obj;\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/should/lib/ext/property.js\n ** module id = 22\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/should/lib/ext/property.js?"); /***/ }, /* 23 */ /*!*******************************************!*\ !*** (webpack)/~/should/lib/ext/error.js ***! \*******************************************/ /***/ function(module, exports, __webpack_require__) { eval("/*!\n * Should\n * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\nvar util = __webpack_require__(/*! ../util */ 14);\n\nmodule.exports = function(should, Assertion) {\n var i = should.format;\n\n Assertion.add('throw', function(message, properties) {\n var fn = this.obj\n , err = {}\n , errorInfo = ''\n , thrown = false;\n\n var errorMatched = true;\n\n try {\n fn();\n } catch(e) {\n thrown = true;\n err = e;\n }\n\n if(thrown) {\n if(message) {\n if('string' == typeof message) {\n errorMatched = message == err.message;\n } else if(message instanceof RegExp) {\n errorMatched = message.test(err.message);\n } else if('function' == typeof message) {\n errorMatched = err instanceof message;\n } else if(util.isObject(message)) {\n try {\n err.should.match(message);\n } catch(e) {\n if(e instanceof should.AssertionError) {\n errorInfo = \": \" + e.message;\n errorMatched = false;\n