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.

133 lines 31.3 kB
!function(t){function e(t){var e=require("path").join(__dirname,""+t+"."+m+".hot-update.js");require("fs").readFile(e,"utf-8",function(t,r){if(t){if(f.onError)return f.onError(t);throw t}var n={};require("vm").runInThisContext("(function(exports) {"+r+"\n})",e)(n),a(n.id,n.modules)})}function r(t){var e=require("path").join(__dirname,""+m+".hot-update.json");require("fs").readFile(e,"utf-8",function(e,r){if(e)return t();try{var n=JSON.parse(r)}catch(o){return t(o)}t(null,n)})}function n(t){var e=A[t];if(!e)return f;var r=function(r){return e.hot.active?A[r]?(A[r].parents.indexOf(t)<0&&A[r].parents.push(t),e.children.indexOf(r)<0&&e.children.push(r)):y=[t]:(console.warn("[HMR] unexpected require("+r+") from disposed module "+t),y=[]),f(r)};for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(r[n]=f[n]);return r.e=function(t,e){"ready"===x&&i("prepare"),w++,f.e(t,function(){function n(){w--,"prepare"===x&&(O[t]||u(t),0===w&&0===j&&c())}try{e.call(null,r)}finally{n()}})},r}function o(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(t,r){if("undefined"==typeof t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("number"==typeof t)e._acceptedDependencies[t]=r;else for(var n=0;n<t.length;n++)e._acceptedDependencies[t[n]]=r},decline:function(t){if("undefined"==typeof t)e._selfDeclined=!0;else if("number"==typeof t)e._declinedDependencies[t]=!0;else for(var r=0;r<t.length;r++)e._declinedDependencies[t[r]]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var r=e._disposeHandlers.indexOf(t);r>=0&&e._disposeHandlers.splice(r,1)},check:s,apply:l,status:function(t){return t?void v.push(t):x},addStatusHandler:function(t){v.push(t)},removeStatusHandler:function(t){var e=v.indexOf(t);e>=0&&v.splice(e,1)},data:g[t]};return e}function i(t){x=t;for(var e=0;e<v.length;e++)v[e].call(null,t)}function s(t,e){if("idle"!==x)throw new Error("check() is only allowed in idle status");"function"==typeof t?(b=!1,e=t):(b=t,e=e||function(t){if(t)throw t}),i("check"),r(function(t,r){if(t)return e(t);if(!r)return i("idle"),void e(null,null);q={},E={},O={};for(var n=0;n<r.c.length;n++)E[r.c[n]]=!0;d=r.h,i("prepare"),p=e,h={};for(var o in k)u(o);0===w&&0===j&&c()})}function a(t,e){if(E[t]&&q[t]){q[t]=!1;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(h[r]=e[r]);0===--j&&0===w&&c()}}function u(t){E[t]?(q[t]=!0,j++,e(t)):O[t]=!0}function c(){i("ready");var t=p;if(p=null,t)if(b)l(b,t);else{var e=[];for(var r in h)Object.prototype.hasOwnProperty.call(h,r)&&e.push(+r);t(null,e)}}function l(e,r){function n(t){for(var e=[t],r=[],n=e.slice();n.length>0;){var i=n.pop(),t=A[i];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var s=0;s<t.parents.length;s++){var a=t.parents[s],u=A[a];if(u.hot._declinedDependencies[i])return new Error("Aborted because of declined dependency: "+i+" in "+a);e.indexOf(a)>=0||(u.hot._acceptedDependencies[i]?(r[a]||(r[a]=[]),o(r[a],[i])):(delete r[a],e.push(a),n.push(a)))}}}return[e,r]}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];t.indexOf(n)<0&&t.push(n)}}if("ready"!==x)throw new Error("apply() is only allowed in ready status");"function"==typeof e?(r=e,e={}):e&&"object"==typeof e?r=r||function(t){if(t)throw t}:(e={},r=r||function(t){if(t)throw t});var s={},a=[],u={};for(var c in h)if(Object.prototype.hasOwnProperty.call(h,c)){var l=+c,p=n(l);if(!p){if(e.ignoreUnaccepted)continue;return i("abort"),r(new Error("Aborted because "+l+" is not accepted"))}if(p instanceof Error)return i("abort"),r(p);u[l]=h[l],o(a,p[0]);for(var l in p[1])Object.prototype.hasOwnProperty.call(p[1],l)&&(s[l]||(s[l]=[]),o(s[l],p[1][l]))}for(var b=[],v=0;v<a.length;v++){var l=a[v];A[l]&&A[l].hot._selfAccepted&&b.push({module:l,errorHandler:A[l].hot._selfAccepted})}i("dispose");for(var j=a.slice();j.length>0;){var l=j.pop(),w=A[l];if(w){for(var O={},q=w.hot._disposeHandlers,E=0;E<q.length;E++){var k=q[E];k(O)}g[l]=O,w.hot.active=!1,delete A[l];for(var E=0;E<w.children.length;E++){var S=A[w.children[E]];if(S){var N=S.parents.indexOf(l);N>=0&&(S.parents.splice(N,1),0===S.parents.length&&S.hot&&S.hot._disposeHandlers&&S.hot._disposeHandlers.length>0&&j.push(S.id))}}}}for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l))for(var w=A[l],P=s[l],E=0;E<P.length;E++){var _=P[E],N=w.children.indexOf(_);N>=0&&w.children.splice(N,1)}i("apply"),m=d;for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(t[l]=u[l]);var z=null;for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){for(var w=A[l],P=s[l],D=[],v=0;v<P.length;v++){var _=P[v],k=w.hot._acceptedDependencies[_];D.indexOf(k)>=0||D.push(k)}for(var v=0;v<D.length;v++){var k=D[v];try{k(s)}catch(F){z||(z=F)}}}for(var v=0;v<b.length;v++){var I=b[v],l=I.module;y=[l];try{f(l)}catch(F){if("function"==typeof I.errorHandler)try{I.errorHandler(F)}catch(F){z||(z=F)}else z||(z=F)}}return z?(i("fail"),r(z)):(i("idle"),void r(null,a))}function f(e){if(A[e])return A[e].exports;var r=A[e]={exports:{},id:e,loaded:!1,hot:o(e),parents:y,children:[]};return t[e].call(r.exports,r,r.exports,n(e)),r.loaded=!0,r.exports}var p,h,d,b=!0,m="f5178d47949eeda0511f",g={},y=[],v=[],x="idle",j=0,w=0,O={},q={},E={},A={},k={0:1};return f.e=function(e,r){if(1===k[e])r.call(null,f);else if(k[e])k[e].push(r);else{k[e]=[r];var n=__dirname+"/"+e+".bundle.js";require("fs").readFile(n,"utf-8",function(e,r){if(e){if(f.onError)return f.onError(e);throw e}var o={};require("vm").runInThisContext("(function(exports, require, __dirname, __filename) {"+r+"\n})",n)(o,require,require("path").dirname(n),n);var i=o.modules,s=o.ids;for(var a in i){var u=i[a];switch(typeof u){case"number":t[a]=t[u];break;case"object":t[a]=function(e){var r=e.slice(1),n=e[0];return function(e,o,i){t[n].apply(this,[e,o,i].concat(r))}}(u);break;default:t[a]=u}}for(var c=[],l=0;l<s.length;l++)Array.isArray(k[s[l]])&&(c=c.concat(k[s[l]])),k[s[l]]=1;for(l=0;l<c.length;l++)c[l].call(null,f)})}},f.m=t,f.c=A,f.p="",f.h=function(){return m},n(0)(0)}(function(t){for(var e in t)switch(typeof t[e]){case"number":t[e]=t[t[e]];break;case"object":t[e]=function(e){var r=e.slice(1),n=t[e[0]];return function(t,e,o){n.apply(null,[t,e,o].concat(r))}}(t[e])}return t}([/*!*********************************!*\ !*** ./chunks/parsing/index.js ***! \*********************************/ function(t,e,r){var n=r(/*! should */17);it("should handle bound function expressions",function(t){r.e(1,function(){this.should.be.eql({test:!0}),r(/*! ./empty?test */19),process.nextTick.should.have.type("function"),!function(){this.should.be.eql({test:!0}),t()}.bind(this)(r)}.bind({test:!0}))}),it("should handle require.ensure without function expression",function(t){function e(){t()}!e(r)}),it("should parse expression in require.ensure, which isn't a function expression",function(t){!function(){/*! ./empty?require.ensure:test */ return r(18).should.be.eql({}),function(){t()}}()(r)}),it("should accept a require.include call",function(){var t=null;!function(){t=r(/*! ./require.include */3)}(r),n.strictEqual(t,"require.include"),t.should.be.eql("require.include")})},/*!**************************************!*\ !*** (webpack)/~/should/lib/util.js ***! \**************************************/ function(t,e,r){function n(t){return l(t)&&(t.__ArrayLike||Array.isArray(t))}function o(t){return"number"==typeof t||t instanceof Number}function i(t){return"string"==typeof t||t instanceof String}function s(t){return"boolean"==typeof t||t instanceof Boolean}function a(t){return"undefined"!=typeof Buffer&&t instanceof Buffer}function u(t){return l(t)&&"[object Date]"===c(t)}function c(t){return Object.prototype.toString.call(t)}function l(t){return"object"==typeof t&&null!==t}function f(t){return l(t)&&"[object RegExp]"===c(t)}function p(t){return null==t}function h(t){return null===t}function d(t){return"[object Arguments]"===c(t)}function b(t){return l(t)&&"[object Error]"===c(t)||t instanceof Error}function m(t){return void 0===t}/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ e.isWrapperType=function(t){return o(t)||i(t)||s(t)},e.merge=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t},e.isArray=n,e.isNumber=o,e.isBoolean=s,e.isString=i,e.isBuffer=a,e.isDate=u,e.isObject=l,e.isRegExp=f,e.isNullOrUndefined=p,e.isNull=h,e.isArguments=d,e.isFunction=function(t){return"function"==typeof t||t instanceof Function},e.isError=b,e.isUndefined=m,e.inspect=r(/*! ./inspect */16).inspect,e.AssertionError=r(/*! assert */4).AssertionError;var g=Object.prototype.hasOwnProperty;e.forOwn=function(t,e,r){for(var n in t)g.call(t,n)&&e.call(r,t[n],n)};var y=/^\s*function\s*(\S*)\s*\(/;e.functionName=function(t){if(t.name)return t.name;var e=t.toString().match(y)[1];return e},e.formatProp=function(t){return t=JSON.stringify(""+t),t=t.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?t.substr(1,t.length-2):t.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'").replace(/\\\\/g,"\\")}},/*!*************************************!*\ !*** (webpack)/~/should/lib/eql.js ***! \*************************************/ function(t,e,r){function n(t,e){if(t===e)return!0;if(i.isBuffer(t)&&i.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return i.isDate(t)&&i.isDate(e)?t.getTime()===e.getTime():i.isRegExp(t)&&i.isRegExp(e)?t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase:i.isObject(t)||i.isObject(e)?o(t,e):t==e}function o(t,e){if(i.isNullOrUndefined(t)||i.isNullOrUndefined(e))return!1;if(t.prototype!==e.prototype)return!1;if(i.isArguments(t))return i.isArguments(e)?(t=s.call(t),e=s.call(e),n(t,e)):!1;try{var r,o,a=Object.keys(t),u=Object.keys(e)}catch(c){return!1}if(a.length!=u.length)return!1;for(a.sort(),u.sort(),o=a.length-1;o>=0;o--)if(a[o]!=u[o])return!1;for(o=a.length-1;o>=0;o--)if(r=a[o],!n(t[r],e[r]))return!1;return!0}/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var i=r(/*! ./util */1);t.exports=n;var s=Array.prototype.slice},/*!*******************************************!*\ !*** ./chunks/parsing/require.include.js ***! \*******************************************/ function(t){t.exports="require.include"},/*!*************************!*\ !*** external "assert" ***! \*************************/ function(t){t.exports=require("assert")},/*!********************************************!*\ !*** (webpack)/~/should/lib/ext/assert.js ***! \********************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1),o=r(/*! assert */4),i=o.AssertionError;t.exports=function(t){var e=t.format;n.merge(t,o),t.exist=t.exists=function(r,n){if(null==r)throw new i({message:n||"expected "+e(r)+" to exist",stackStartFunction:t.exist})},t.not={},t.not.exist=t.not.exists=function(r,n){if(null!=r)throw new i({message:n||"expected "+e(r)+" to not exist",stackStartFunction:t.not.exist})}}},/*!******************************************!*\ !*** (webpack)/~/should/lib/ext/bool.js ***! \******************************************/ function(t){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ t.exports=function(t,e){e.add("true",function(){this.is.exactly(!0)},!0),e.alias("true","True"),e.add("false",function(){this.is.exactly(!1)},!0),e.alias("false","False"),e.add("ok",function(){this.params={operator:"to be truthy"},this.assert(this.obj)},!0)}},/*!*******************************************!*\ !*** (webpack)/~/should/lib/ext/chain.js ***! \*******************************************/ function(t){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ t.exports=function(t,e){function r(t){Object.defineProperty(e.prototype,t,{get:function(){return this},enumerable:!0})}["an","of","a","and","be","have","with","is","which","the"].forEach(r)}},/*!*********************************************!*\ !*** (webpack)/~/should/lib/ext/contain.js ***! \*********************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1),o=r(/*! ../eql */2);t.exports=function(t,e){var r=t.format;e.add("containEql",function(t){this.params={operator:"to contain "+r(t)};var e=this.obj;n.isArray(e)?this.assert(e.some(function(e){return o(e,t)})):n.isString(e)?this.assert(e.indexOf(String(t))>=0):n.isObject(e)?n.forOwn(t,function(t,r){e.should.have.property(r,t)}):this.assert(!1)}),e.add("containDeepOrdered",function(e){this.params={operator:"to contain "+r(e)};var o=this.obj;if(n.isArray(o))if(n.isArray(e)){var i=0;o.forEach(function(r){try{t(r).not.be.Null.and.containDeep(e[i]),i++}catch(n){if(n instanceof t.AssertionError)return;throw n}},this),this.assert(i==e.length)}else this.assert(!1);else n.isString(o)?this.assert(o.indexOf(String(e))>=0):n.isObject(o)?n.isObject(e)?n.forOwn(e,function(e,r){t(o[r]).not.be.Null.and.containDeep(e)}):this.assert(!1):this.eql(e)}),e.add("containDeep",function(e){this.params={operator:"to contain "+r(e)};var o=this.obj;if(n.isArray(o))if(n.isArray(e)){var i={};e.forEach(function(e){this.assert(o.some(function(r,n){if(n in i)return!1;try{return t(r).not.be.Null.and.containDeep(e),i[n]=!0,!0}catch(o){if(o instanceof t.AssertionError)return!1;throw o}}))},this)}else this.assert(!1);else n.isString(o)?this.assert(o.indexOf(String(e))>=0):n.isObject(o)?n.isObject(e)?n.forOwn(e,function(e,r){t(o[r]).not.be.Null.and.containDeep(e)}):this.assert(!1):this.eql(e)})}},/*!*****************************************!*\ !*** (webpack)/~/should/lib/ext/eql.js ***! \*****************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../eql */2);t.exports=function(t,e){e.add("eql",function(t,e){this.params={operator:"to equal",expected:t,showDiff:!0,message:e},this.assert(n(t,this.obj))}),e.add("equal",function(t,e){this.params={operator:"to be",expected:t,showDiff:!0,message:e},this.assert(t===this.obj)}),e.alias("equal","exactly")}},/*!*******************************************!*\ !*** (webpack)/~/should/lib/ext/error.js ***! \*******************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1);t.exports=function(t,e){var r=t.format;e.add("throw",function(e,o){var i=this.obj,s={},a="",u=!1,c=!0;try{i()}catch(l){u=!0,s=l}if(u)if(e){if("string"==typeof e)c=e==s.message;else if(e instanceof RegExp)c=e.test(s.message);else if("function"==typeof e)c=s instanceof e;else if(n.isObject(e))try{s.should.match(e)}catch(l){if(!(l instanceof t.AssertionError))throw l;a=": "+l.message,c=!1}if(c){if("function"==typeof e&&o)try{s.should.match(o)}catch(l){if(!(l instanceof t.AssertionError))throw l;a=": "+l.message,c=!1}}else"string"==typeof e||e instanceof RegExp?a=" with a message matching "+r(e)+", but got '"+s.message+"'":"function"==typeof e&&(a=" of type "+n.functionName(e)+", but got "+n.functionName(s.constructor))}else a=" (got "+r(s)+")";this.params={operator:"to throw exception"+a},this.assert(u),this.assert(c)}),e.alias("throw","throwError")}},/*!*******************************************!*\ !*** (webpack)/~/should/lib/ext/match.js ***! \*******************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1),o=r(/*! ../eql */2);t.exports=function(t,e){var r=t.format;e.add("match",function(i,s){if(this.params={operator:"to match "+r(i),message:s},!o(this.obj,i))if(n.isRegExp(i)){if(n.isString(this.obj))this.assert(i.exec(this.obj));else if(n.isArray(this.obj))this.obj.forEach(function(t){this.assert(i.exec(t))},this);else if(n.isObject(this.obj)){var a=[],u=[];n.forOwn(this.obj,function(t,e){i.exec(t)?u.push(n.formatProp(e)):a.push(n.formatProp(e)+" ("+r(t)+")")},this),a.length&&(this.params.operator+="\n not matched properties: "+a.join(", ")),u.length&&(this.params.operator+="\n matched properties: "+u.join(", ")),this.assert(0==a.length)}}else if(n.isFunction(i)){var c;try{c=i(this.obj)}catch(l){throw l instanceof t.AssertionError&&(this.params.operator+="\n "+l.message),l}c instanceof e&&(this.params.operator+="\n "+c.getMessage()),n.isBoolean(c)&&this.assert(c)}else n.isObject(i)?(a=[],u=[],n.forOwn(i,function(e,o){try{t(this.obj[o]).match(e),u.push(n.formatProp(o))}catch(i){if(!(i instanceof t.AssertionError))throw i;a.push(n.formatProp(o)+" ("+r(this.obj[o])+")")}},this),a.length&&(this.params.operator+="\n not matched properties: "+a.join(", ")),u.length&&(this.params.operator+="\n matched properties: "+u.join(", ")),this.assert(0==a.length)):this.assert(!1)}),e.add("matchEach",function(t,e){this.params={operator:"to match each "+r(t),message:e};var i=t;n.isRegExp(t)?i=function(e){return!!t.exec(e)}:n.isFunction(t)||(i=function(e){return o(e,t)}),n.forOwn(this.obj,function(t,e){var r=i(t,e);n.isBoolean(r)&&this.assert(r)},this)})}},/*!********************************************!*\ !*** (webpack)/~/should/lib/ext/number.js ***! \********************************************/ function(t){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ t.exports=function(t,e){e.add("NaN",function(){this.params={operator:"to be NaN"},this.assert(this.obj!==this.obj)},!0),e.add("Infinity",function(){this.params={operator:"to be Infinity"},this.is.a.Number.and.not.a.NaN.and.assert(!isFinite(this.obj))},!0),e.add("within",function(t,e,r){this.params={operator:"to be within "+t+".."+e,message:r},this.assert(this.obj>=t&&this.obj<=e)}),e.add("approximately",function(t,e,r){this.params={operator:"to be approximately "+t+" ±"+e,message:r},this.assert(Math.abs(this.obj-t)<=e)}),e.add("above",function(t,e){this.params={operator:"to be above "+t,message:e},this.assert(this.obj>t)}),e.add("below",function(t,e){this.params={operator:"to be below "+t,message:e},this.assert(this.obj<t)}),e.alias("above","greaterThan"),e.alias("below","lessThan")}},/*!**********************************************!*\ !*** (webpack)/~/should/lib/ext/property.js ***! \**********************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1),o=r(/*! ../eql */2),i=Array.prototype.slice;t.exports=function(t,e){var r=t.format;e.add("enumerable",function(t,e){t=String(t),this.params={operator:"to have enumerable property "+n.formatProp(t)},this.assert(this.obj.propertyIsEnumerable(t)),arguments.length>1&&(this.params.operator+=" equal to "+r(e),this.assert(o(e,this.obj[t])))}),e.add("property",function(t,e){if(t=String(t),arguments.length>1){var r={};r[t]=e,this.have.properties(r)}else this.have.properties(t);this.obj=this.obj[t]}),e.add("properties",function(t){var e={};arguments.length>1?t=i.call(arguments):n.isArray(t)||(n.isString(t)?t=[t]:(e=t,t=Object.keys(t)));var s=Object(this.obj),a=[];t.forEach(function(t){t in s||a.push(n.formatProp(t))});var u=a;0===u.length?u=t.map(n.formatProp):this.anyOne&&(u=t.filter(function(t){return a.indexOf(n.formatProp(t))<0}).map(n.formatProp));var c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", ");this.params={operator:c},this.assert(0===a.length||this.anyOne&&a.length!=t.length);var l=Object.keys(e);if(l.length){var f=[];u=[],l.forEach(function(t){var i=e[t];o(s[t],i)?u.push(n.formatProp(t)+" of "+r(i)):f.push(n.formatProp(t)+" of "+r(i)+" (got "+r(s[t])+")")}),(0!==f.length&&!this.anyOne||this.anyOne&&0===u.length)&&(u=f),c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", "),this.params={operator:c},this.assert(0===f.length||this.anyOne&&f.length!=l.length)}}),e.add("length",function(t,e){this.have.property("length",t,e)}),e.alias("length","lengthOf");var s=Object.prototype.hasOwnProperty;e.add("ownProperty",function(t,e){t=String(t),this.params={operator:"to have own property "+n.formatProp(t),message:e},this.assert(s.call(this.obj,t)),this.obj=this.obj[t]}),e.alias("ownProperty","hasOwnProperty"),e.add("empty",function(){if(this.params={operator:"to be empty"},n.isString(this.obj)||n.isArray(this.obj)||n.isArguments(this.obj))this.have.property("length",0);else{var t=Object(this.obj);for(var e in t)this.have.not.ownProperty(e)}},!0),e.add("keys",function(t){arguments.length>1?t=i.call(arguments):1===arguments.length&&n.isString(t)?t=[t]:0===arguments.length&&(t=[]),t=t.map(String);var e=Object(this.obj),r=[];t.forEach(function(t){s.call(this.obj,t)||r.push(n.formatProp(t))},this);var o=[];Object.keys(e).forEach(function(e){t.indexOf(e)<0&&o.push(n.formatProp(e))});var a=0===t.length?"to be empty":"to have "+(1===t.length?"key ":"keys ");this.params={operator:a+t.map(n.formatProp).join(", ")},r.length>0&&(this.params.operator+="\n missing keys: "+r.join(", ")),o.length>0&&(this.params.operator+="\n extra keys: "+o.join(", ")),this.assert(0===r.length&&0===o.length)}),e.alias("keys","key"),e.add("propertyByPath",function(e){arguments.length>1?e=i.call(arguments):1===arguments.length&&n.isString(e)?e=[e]:0===arguments.length&&(e=[]);var r=e.map(n.formatProp);e=e.map(String);for(var o,s=t(Object(this.obj)),a=[];o=e.shift();)this.params={operator:"to have property by path "+r.join(", ")+" - failed on "+n.formatProp(o)},s=s.have.property(o),a.push(o);this.params={operator:"to have property by path "+r.join(", ")},this.obj=s.obj})}},/*!********************************************!*\ !*** (webpack)/~/should/lib/ext/string.js ***! \********************************************/ function(t){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ t.exports=function(t,e){e.add("startWith",function(e,r){this.params={operator:"to start with "+t.format(e),message:r},this.assert(0===this.obj.indexOf(e))}),e.add("endWith",function(e,r){this.params={operator:"to end with "+t.format(e),message:r},this.assert(this.obj.indexOf(e,this.obj.length-e.length)>=0)})}},/*!******************************************!*\ !*** (webpack)/~/should/lib/ext/type.js ***! \******************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ../util */1);t.exports=function(t,e){e.add("Number",function(){this.params={operator:"to be a number"},this.assert(n.isNumber(this.obj))},!0),e.add("arguments",function(){this.params={operator:"to be arguments"},this.assert(n.isArguments(this.obj))},!0),e.add("type",function(t,e){this.params={operator:"to have type "+t,message:e},(typeof this.obj).should.be.exactly(t,e)}),e.add("instanceof",function(t,e){this.params={operator:"to be an instance of "+n.functionName(t),message:e},this.assert(Object(this.obj)instanceof t)}),e.add("Function",function(){this.params={operator:"to be a function"},this.assert(n.isFunction(this.obj))},!0),e.add("Object",function(){this.params={operator:"to be an object"},this.assert(n.isObject(this.obj))},!0),e.add("String",function(){this.params={operator:"to be a string"},this.assert(n.isString(this.obj))},!0),e.add("Array",function(){this.params={operator:"to be an array"},this.assert(n.isArray(this.obj))},!0),e.add("Boolean",function(){this.params={operator:"to be a boolean"},this.assert(n.isBoolean(this.obj))},!0),e.add("Error",function(){this.params={operator:"to be an error"},this.assert(n.isError(this.obj))},!0),e.add("null",function(){this.params={operator:"to be null"},this.assert(null===this.obj)},!0),e.alias("null","Null"),e.alias("instanceof","instanceOf")}},/*!*****************************************!*\ !*** (webpack)/~/should/lib/inspect.js ***! \*****************************************/ function(t,e,r){function n(t,r){var n={seen:[],stylize:i};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),a(n,t,n.depth)}function o(t,e){var r=n.styles[e];return r?"["+n.colors[r][0]+"m"+t+"["+n.colors[r][1]+"m":t}function i(t){return t}function s(t){var e={};return t.forEach(function(t){e[t]=!0}),e}function a(t,r,n){if(t.customInspect&&r&&v(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return x(o)||(o=a(t,o,n)),o}var i=u(t,r);if(i)return i;var d=Object.keys(r),b=s(d);t.showHidden&&(d=Object.getOwnPropertyNames(r));var g,y=r;try{q(r)||(y=r.valueOf())}catch(w){}if(x(y)&&(d=d.filter(function(t){return!(t>=0&&t<y.length)})),E(r))return l(r);if(0===d.length){if(v(r)){var k=r.name?": "+r.name:"";return t.stylize("[Function"+k+"]","special")}if(O(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(q(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(y))return g=c(t,y),t.stylize("[String: "+g+"]","string");if(j(y))return g=c(t,y),t.stylize("[Number: "+g+"]","number");if(m(y))return g=c(t,y),t.stylize("[Boolean: "+g+"]","boolean")}var S="",N=!1,P=["{","}"];if(A(r)&&(N=!0,P=["[","]"]),v(r)){var _=r.name?": "+r.name:"";S=" [Function"+_+"]"}if(O(r)&&(S=" "+RegExp.prototype.toString.call(r)),q(r)&&(S=" "+Date.prototype.toUTCString.call(r)),E(r)&&(S=" "+l(r)),x(y)&&(g=c(t,y),S=" [String: "+g+"]"),j(y)&&(g=c(t,y),S=" [Number: "+g+"]"),m(y)&&(g=c(t,y),S=" [Boolean: "+g+"]"),0===d.length&&(!N||0===r.length))return P[0]+S+P[1];if(0>n)return O(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var z;return z=N?f(t,r,n,b,d):d.map(function(e){return p(t,r,n,b,e,N)}),t.seen.pop(),h(z,S,P)}function u(t,e){if(y(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return j(e)?0===e&&0>1/e?t.stylize("-0","number"):t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):w(e)?t.stylize("null","null"):void 0}function c(t,e){var r=t.stylize;t.stylize=i;var n=u(t,e);return t.stylize=r,n}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,o){for(var i=[],s=0,a=e.length;a>s;++s)i.push(d(e,String(s))?p(t,e,r,n,String(s),!0):"");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(t,e,r,n,o,!0))}),i}function p(t,e,r,n,o,i){var s,u,c;if(c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},c.get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),d(n,o)||(s="["+o+"]"),u||(t.seen.indexOf(c.value)<0?(u=w(r)?a(t,c.value,null):a(t,c.value,r-1),u.indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n"))):u=t.stylize("[Circular]","special")),y(s)){if(i&&o.match(/^\d+$/))return u;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'").replace(/\\\\/g,"\\"),s=t.stylize(s,"string"))}return s+": "+u}function h(t,e,r){var n=t.reduce(function(t,e){return t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var b=r(/*! ./util */1),m=b.isBoolean,g=b.isObject,y=b.isUndefined,v=b.isFunction,x=b.isString,j=b.isNumber,w=b.isNull,O=b.isRegExp,q=b.isDate,E=b.isError,A=b.isArray;e.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e._extend=function(t,e){if(!e||!g(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},/*!****************************************!*\ !*** (webpack)/~/should/lib/should.js ***! \****************************************/ function(t,e,r){/*! * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var n=r(/*! ./util */1),o=n.AssertionError,i=n.inspect,s=function(t){return new a(n.isWrapperType(t)?t.valueOf():t)},a=s.Assertion=function(t){this.obj=t};a.add=function(t,e,r){var n={enumerable:!0};n[r?"get":"value"]=function(){var t=new a(this.obj);t.copy=t.copyIfMissing,t.anyOne=this.anyOne;try{e.apply(t,arguments)}catch(r){if(this.copy(t),r instanceof s.AssertionError){if(this.negate)return this.obj=t.obj,this.negate=!1,this;this.assert(!1)}throw r}return this.copy(t),this.negate&&this.assert(!1),this.obj=t.obj,this.negate=!1,this},Object.defineProperty(a.prototype,t,n)},a.alias=function(t,e){var r=Object.getOwnPropertyDescriptor(a.prototype,t);if(!r)throw new Error("Alias "+t+" -> "+e+" could not be created as "+t+" not defined");Object.defineProperty(a.prototype,e,r)},s.AssertionError=o,s.format=function(t){return n.isDate(t)&&"function"!=typeof t.inspect?t.toISOString():i(t,{depth:null})},s.use=function(t){return t(this,a),this},e=t.exports=s,Object.defineProperty(Object.prototype,"should",{set:function(){},get:function(){return s(this)},configurable:!0}),a.prototype={constructor:a,assert:function(t){if(t)return this;var e=this.params,r=e.message,n=!1;r||(r=this.getMessage(),n=!0);var i=new o({message:r,actual:this.obj,expected:e.expected,stackStartFunction:this.assert});throw i.showDiff=e.showDiff,i.operator=e.operator,i.generatedMessage=n,i},getMessage:function(){return"expected "+("obj"in this.params?this.params.obj:s.format(this.obj))+(this.negate?" not ":" ")+this.params.operator+("expected"in this.params?" "+s.format(this.params.expected):"")},copy:function(t){this.params=t.params},copyIfMissing:function(t){this.params||(this.params=t.params)},get not(){return this.negate=!this.negate,this},get any(){return this.anyOne=!0,this}},s.use(r(/*! ./ext/assert */5)).use(r(/*! ./ext/chain */7)).use(r(/*! ./ext/bool */6)).use(r(/*! ./ext/number */12)).use(r(/*! ./ext/eql */9)).use(r(/*! ./ext/type */15)).use(r(/*! ./ext/string */14)).use(r(/*! ./ext/property */13)).use(r(/*! ./ext/error */10)).use(r(/*! ./ext/match */11)).use(r(/*! ./ext/contain */8))},/*!*****************************************************!*\ !*** ./chunks/parsing/empty.js?require.ensure:test ***! \*****************************************************/ function(){}])); /* //@ sourceMappingURL=bundle.js.map //# sourceMappingURL=bundle.js.map */