diff --git a/dist/hamjest-deps.js b/dist/hamjest-deps.js index 90a190e..283b2ff 100644 --- a/dist/hamjest-deps.js +++ b/dist/hamjest-deps.js @@ -267,7 +267,8 @@ var matchers = { var utils = { isMatcher: Matcher.isMatcher, asMatcher: IsEqual.asMatcher, - acceptingMatcher: IsEqual.acceptingMatcher + acceptingMatcher: IsEqual.acceptingMatcher, + Description: _dereq_('./Description') }; var hamjest = {}; @@ -275,7 +276,7 @@ _.extend(hamjest, asserts, matchers, utils); module.exports = hamjest; -},{"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47,"lodash":50}],7:[function(_dereq_,module,exports){ +},{"./Description":2,"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47,"lodash":50}],7:[function(_dereq_,module,exports){ 'use strict'; var _ = _dereq_('lodash'); diff --git a/dist/hamjest-deps.min.js b/dist/hamjest-deps.min.js index eac89bf..85a953b 100644 --- a/dist/hamjest-deps.min.js +++ b/dist/hamjest-deps.min.js @@ -1,3 +1,3 @@ -!function(a){if("object"==typeof exports)module.exports=a();else if("function"==typeof define&&define.amd)define(a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.hamjest=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g");else if(f.isArray(a))this.appendList("[",", ","]",a);else if(f.isFunction(a))this.append("Function"+(a.name?" "+a.name:""));else if(f.isRegExp(a))this.append(a.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(a))}catch(b){var c=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(a),this.useJsonForObjects=c}else this.append(a);return this},appendNonJson:function(a){this.append("{");var b=!0;f.forEach(a,function(a,c){b||this.append(", "),b=!1,this.append(c).append(": "),this.appendValue(a)},this),this.append("}")},appendList:function(a,b,d,e){return this.append(a),f.forEach(e,function(a,d){0!==d&&this.append(b),this.appendDescriptionOf(c(a))},this),this.append(d),this},get:function(){return a}})}var f=a("lodash");b.exports=e},{lodash:50}],3:[function(a,b){"use strict";function c(a,b,h){2===arguments.length&&(h=b,b=a,a="");var i=h.matches(b);if(d.isPromiseAlike(i))throw new f("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},c);if(!i){var j=new g;j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),h.describeMismatch(b,j);var k={};throw e.isFunction(h.getExpectedForDiff)&&e.isFunction(h.formatActualForDiff)&&(k={showDiff:!0,expected:h.getExpectedForDiff(),actual:h.formatActualForDiff(b)}),new f(j.get(),k,c)}}var d=a("q"),e=a("lodash"),f=a("assertion-error"),g=a("./Description");b.exports=c},{"./Description":2,"assertion-error":48,lodash:50,q:51}],4:[function(a,b){"use strict";function c(a){throw new d(a,{},c)}var d=a("assertion-error");b.exports=c},{"assertion-error":48}],5:[function(a,b){"use strict";b.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var a={};return Object.getOwnPropertyNames(this).forEach(function(b){a[b]=this[b]},this),a},configurable:!0})}},{}],6:[function(a,b){"use strict";var c=a("lodash"),d=a("./matchers/IsEqual"),e=a("./matchers/Matcher"),f=a("./matchers/SubstringMatcher"),g=a("./matchers/NumberComparisonMatcher"),h=a("./matchers/DateComparisonMatcher");a("./fixErrorJson")();var i={assertThat:a("./assertThat"),promiseThat:a("./promiseThat"),fail:a("./fail")},j={Matcher:e,TypeSafeMatcher:a("./matchers/TypeSafeMatcher"),FeatureMatcher:a("./matchers/FeatureMatcher"),anything:a("./matchers/IsAnything").anything,strictlyEqualTo:a("./matchers/IsSame").strictlyEqualTo,is:a("./matchers/Is").is,not:a("./matchers/IsNot").not,equalTo:d.equalTo,truthy:a("./matchers/truthy"),falsy:a("./matchers/falsy"),falsey:a("./matchers/falsy"),defined:a("./matchers/IsDefined").defined,undefined:a("./matchers/IsDefined").undefined,undef:a("./matchers/IsDefined").undefined,instanceOf:a("./matchers/IsInstanceOf").instanceOf,array:a("./matchers/IsArray").array,bool:a("./matchers/IsBoolean").bool,date:a("./matchers/IsDate").date,func:a("./matchers/IsFunction").func,number:a("./matchers/IsNumber").number,object:a("./matchers/IsObject").object,regExp:a("./matchers/IsRegExp").regExp,string:a("./matchers/IsString").string,containsString:f.containsString,startsWith:f.startsWith,endsWith:f.endsWith,matchesPattern:a("./matchers/IsStringMatching").matchesPattern,lessThan:g.lessThan,lessThanOrEqualTo:g.lessThanOrEqualTo,greaterThan:g.greaterThan,greaterThanOrEqualTo:g.greaterThanOrEqualTo,after:h.after,afterOrEqualTo:h.afterOrEqualTo,before:h.before,beforeOrEqualTo:h.beforeOrEqualTo,closeTo:a("./matchers/IsCloseTo").closeTo,allOf:a("./matchers/AllOf").allOf,anyOf:a("./matchers/AnyOf").anyOf,everyItem:a("./matchers/Every").everyItem,hasItem:a("./matchers/IsArrayWithItem").hasItem,hasItems:a("./matchers/IsArrayWithItems").hasItems,contains:a("./matchers/IsArrayContaining").contains,containsInAnyOrder:a("./matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,orderedBy:a("./matchers/IsArrayOrderedBy").orderedBy,hasSize:a("./matchers/IsCollectionWithSize").hasSize,hasProperties:a("./matchers/IsObjectWithProperties").hasProperties,hasProperty:a("./matchers/IsObjectWithProperties").hasProperty,"throws":a("./matchers/IsFunctionThrowing")["throws"],promise:a("./matchers/IsPromise").promise,fulfilled:a("./matchers/IsFulfilled").fulfilled,isFulfilledWith:a("./matchers/IsFulfilled").isFulfilledWith,willBe:a("./matchers/IsFulfilled").isFulfilledWith,rejected:a("./matchers/IsRejected").rejected,isRejectedWith:a("./matchers/IsRejected").isRejectedWith,promiseAllOf:a("./matchers/AllOf").allOf},k={isMatcher:e.isMatcher,asMatcher:d.asMatcher,acceptingMatcher:d.acceptingMatcher},l={};c.extend(l,i,j,k),b.exports=l},{"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47,lodash:50}],7:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.all)},describeTo:function(b){b.appendList("("," and ",")",a)},describeMismatch:function(b,c){var e=d.mapValues(a,function(a){return a.matches(b)}),g=!0;return f.describeMismatchAggregate(e,function(d,e){if(!d){var f=a[e];return g||c.append("\n"),g=!1,c.appendDescriptionOf(f).append(": "),f.describeMismatch(b,c)}})}})}var d=a("lodash"),e=a("./Matcher"),f=a("./promiseAgnostic");c.allOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45,lodash:50}],8:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.any)},describeTo:function(b){b.appendList("("," or ",")",a)}})}var d=a("lodash"),e=a("./Matcher"),f=a("./promiseAgnostic");c.anyOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45,lodash:50}],9:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a date ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)}})}var d=a("lodash"),e=a("./IsDate"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsDate").date;d.extend(c,{after:function(a){return new c(a,"after",function(b){return b>a})},afterOrEqualTo:function(a){return new c(a,"after or equal to",function(b){return b>=a})},before:function(a){return new c(a,"before",function(b){return a>b})},beforeOrEqualTo:function(a){return new c(a,"before or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsDate":23,lodash:50}],10:[function(a,b){"use strict";var c=a("lodash"),d=a("./TypeSafeMatcher"),e=a("./IsEqual").acceptingMatcher,f=a("./promiseAgnostic"),g=e(function(a){return c.create(new d,{isExpectedType:function(a){return c.isArray(a)||c.isObject(a)},matchesSafely:function(b){var d=c.map(b,function(b){return a.matches(b)});return f.matchesAggregate(d,c.all)},describeTo:function(b){b.append("every item is ").appendDescriptionOf(a)},describeMismatchSafely:function(b,d){var e;e=c.isArray(b)?c.map(b,function(b){return a.matches(b)}):c.mapValues(b,function(b){return a.matches(b)});var g=!0;return f.describeMismatchAggregate(e,function(c,e){c||(g||d.append(", "),g=!1,d.append("item ").appendValue(e).append(" "),a.describeMismatch(b[e],d))})}})});g.everyItem=function(a){return new g(a)},b.exports=g},{"./IsEqual":25,"./TypeSafeMatcher":43,"./promiseAgnostic":45,lodash:50}],11:[function(a,b){"use strict";function c(a,b,c,h){var i=f(a);return h=h||function(a){return a[c]},d.create(new e,{matches:function(a){var b=h(a);return i.matches(b)},describeTo:function(a){a.append(b).append(" ").appendDescriptionOf(i)},describeMismatch:function(a,b){var d=h(a);return g.describeMismatch(i.matches(d),function(){return b.append(c).append(" "),i.describeMismatch(d,b)},function(){b.append("\nfor ").appendValue(a)})}})}var d=a("lodash"),e=a("./Matcher"),f=a("./IsEqual").asMatcher,g=a("./promiseAgnostic");b.exports=c},{"./IsEqual":25,"./Matcher":40,"./promiseAgnostic":45,lodash:50}],12:[function(a,b){"use strict";var c=a("lodash"),d=a("./Matcher"),e=a("./IsEqual").acceptingMatcher,f=e(function(a){return c.create(new d,{matches:function(b){return a.matches(b)},describeTo:function(b){b.append("is ").appendDescriptionOf(a)},describeMismatch:function(b,c){return a.describeMismatch(b,c)},getExpectedForDiff:a.getExpectedForDiff,formatActualForDiff:a.formatActualForDiff})});f.is=function(a){return new f(a)},b.exports=f},{"./IsEqual":25,"./Matcher":40,lodash:50}],13:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(){return!0},describeTo:function(a){a.append("anything")}})}var d=a("lodash"),e=a("./Matcher");c.anything=function(){return new c},b.exports=c},{"./Matcher":40,lodash:50}],14:[function(a,b){"use strict";function c(){return d.create(new e,{isExpectedType:function(a){return d.isArray(a)},describeTo:function(a){a.append("an array")}})}var d=a("lodash"),e=a("./TypeSafeMatcher");c.array=function(){return new c},b.exports=c},{"./TypeSafeMatcher":43,lodash:50}],15:[function(a,b){"use strict";function c(a){var b=d.map(a,f);return d.create(new e,{matchesSafely:function(a){if(a.length!==b.length)return!1;var c=d.map(b,function(b,c){return b.matches(a[c])});return g.matchesAggregate(c,d.all)},describeTo:function(a){a.appendList("[",", ","]",b)},describeMismatchSafely:function(a,c){var e=d.map(a,function(a,c){return b.length>c?b[c].matches(a):void 0}),f=!0;return g.describeMismatchAggregate(e,function(d,e){return d||b.length<=e||a.length<=e?void 0:(f||c.append("\n"),f=!1,c.append("item ").append(e).append(": "),b[e].describeMismatch(a[e],c))},function(){f||c.append("\n"),a.length>b.length?c.appendList("not matched: ",", ","",a.slice(b.length)):a.lengtha})},greaterThanOrEqualTo:function(a){return new c(a,"greater than or equal to",function(b){return b>=a})},lessThan:function(a){return new c(a,"less than",function(b){return a>b})},lessThanOrEqualTo:function(a){return new c(a,"less than or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsNumber":31,lodash:50}],42:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a string ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)},getExpectedForDiff:function(){return a},formatActualForDiff:function(a){return a}})}var d=a("lodash"),e=a("./IsString"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsString").string;d.extend(c,{containsString:function(a){return new c(a,"containing",function(b){return-1!==b.indexOf(a)})},startsWith:function(a){return new c(a,"starting with",function(b){return 0===b.indexOf(a)})},endsWith:function(a){return new c(a,"ending with",function(b){return-1!==b.indexOf(a,b.length-a.length)})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsString":38,lodash:50}],43:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return this.isExpectedType(a)?this.matchesSafely(a):!1},describeMismatch:function(a,b){return this.isExpectedType(a)?this.describeMismatchSafely(a,b):d.isUndefined(a)?void b.append("was undefined"):void b.append("was a ").append(typeof a).append(" (").appendValue(a).append(")")},isExpectedType:function(){throw new Error("Not implemented")},matchesSafely:function(){return!0},describeMismatchSafely:function(){throw new Error("Not implemented")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],44:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!a},describeTo:function(a){a.append("falsy value")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],45:[function(a,b){"use strict";function c(a){if(d.isArray(a))return e.all(a);var b={};return d.forEach(a,function(a,c){b[c]=null,e(a).then(function(a){b[c]=a})}),e.all(d.toArray(a)).then(function(){return b})}var d=a("lodash"),e=a("q"),f={matches:function(a,b){return e.isPromiseAlike(a)?e(a).then(b):b(a)},matchesAggregate:function(a,b){return d.any(a,e.isPromiseAlike)?c(a).then(b):b(a)},describeMismatchAggregate:function(a,b,f){return d.any(a,e.isPromiseAlike)?c(a).then(function(a){var c=e();return d.forEach(a,function(a,d){c=c.then(function(){return b(a,d)})}),f&&(c=c.then(f)),c}):(d.forEach(a,function(a,c){return b(a,c)}),void(f&&f()))},describeMismatch:function(a,b,c){if(e.isPromiseAlike(a)){var d=e(a).then(b);return c&&(d=d.then(c)),d}b(a),c&&c()}};b.exports=f},{lodash:50,q:51}],46:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!!a},describeTo:function(a){a.append("truthy value")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],47:[function(a,b){"use strict";function c(a,b,h){return 2===arguments.length&&(h=b,b=a,a=""),d(h.matches(b)).then(function(i){if(!i){var j=new f;return j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),d(h.describeMismatch(b,j)).then(function(){return g.isFunction(h.getExpectedForDiff)&&g.isFunction(h.formatActualForDiff)?d.all([h.getExpectedForDiff(),h.formatActualForDiff(b)]).spread(function(a,b){return{showDiff:!0,expected:a,actual:b}}):{}}).then(function(a){throw new e(j.get(),a,c)})}})}var d=a("q"),e=a("assertion-error"),f=a("./Description"),g=a("lodash");b.exports=c},{"./Description":2,"assertion-error":48,lodash:50,q:51}],48:[function(a,b){function c(){function a(a,c){Object.keys(c).forEach(function(d){~b.indexOf(d)||(a[d]=c[d])})}var b=[].slice.call(arguments);return function(){for(var b=[].slice.call(arguments),c=0,d={};c0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")}},{}],50:[function(b,c,d){(function(b){(function(){function e(a,b,c){for(var d=(c||0)-1,e=a?a.length:0;++d-1?0:-1:a?0:-1}function g(a){var b=this.cache,c=typeof a;if("boolean"==c||null==a)b[a]=!0;else{"number"!=c&&"string"!=c&&(c="object");var d="number"==c?a:v+a,e=b[c]||(b[c]={});"object"==c?(e[d]||(e[d]=[])).push(a):e[d]=!0}}function h(a){return a.charCodeAt(0)}function i(a,b){for(var c=a.criteria,d=b.criteria,e=-1,f=c.length;++eh||"undefined"==typeof g)return 1;if(h>g||"undefined"==typeof h)return-1}}return a.index-b.index}function j(a){var b=-1,c=a.length,d=a[0],e=a[c/2|0],f=a[c-1];if(d&&"object"==typeof d&&e&&"object"==typeof e&&f&&"object"==typeof f)return!1;var h=m();h["false"]=h["null"]=h["true"]=h.undefined=!1;var i=m();for(i.array=a,i.cache=h,i.push=g;++be?0:e);++d=w&&d===e,i=[];if(h){var k=j(b);k?(d=f,b=k):h=!1}for(;++c-1:void 0});return e.pop(),f.pop(),s&&(n(e),n(f)),g}function bb(a,b,c,d,e){(Zd(b)?Yb:he)(b,function(b,f){var g,h,i=b,j=a[f];if(b&&((h=Zd(b))||ie(b))){for(var k=d.length;k--;)if(g=d[k]==b){j=e[k];break}if(!g){var l;c&&(i=c(j,b),(l="undefined"!=typeof i)&&(j=i)),l||(j=h?Zd(j)?j:[]:ie(j)?j:{}),d.push(b),e.push(j),l||bb(j,b,c,d,e)}}else c&&(i=c(j,b),"undefined"==typeof i&&(i=b)),"undefined"!=typeof i&&(j=i);a[f]=j})}function cb(a,b){return a+Ed(Vd()*(b-a+1))}function eb(a,b,c){var d=-1,g=ib(),h=a?a.length:0,i=[],k=!b&&h>=w&&g===e,m=c||k?l():i;if(k){var p=j(m);g=f,m=p}for(;++d3&&"function"==typeof b[c-2])var d=t(b[--c-1],b[c--],2);else c>2&&"function"==typeof b[c-1]&&(d=b[--c]);for(var e=p(arguments,1,c),f=-1,g=l(),h=l();++fc?Sd(0,f+c):c)||0,Zd(a)?g=e(a,b,c)>-1:"number"==typeof f?g=(Jb(a)?a.indexOf(b,c):e(a,b,c))>-1:he(a,function(a){return++d>=c?!(g=a===b):void 0}),g}function Ub(a,c,d){var e=!0;c=b.createCallback(c,d,3);var f=-1,g=a?a.length:0;if("number"==typeof g)for(;++ff&&(f=j)}else c=null==c&&Jb(a)?h:b.createCallback(c,d,3),Yb(a,function(a,b,d){var g=c(a,b,d);g>e&&(e=g,f=a)});return f}function bc(a,c,d){var e=1/0,f=e;if("function"!=typeof c&&d&&d[c]===a&&(c=null),null==c&&Zd(a))for(var g=-1,i=a.length;++gj&&(f=j)}else c=null==c&&Jb(a)?h:b.createCallback(c,d,3),Yb(a,function(a,b,d){var g=c(a,b,d);e>g&&(e=g,f=a)});return f}function cc(a,c,d,e){if(!a)return d;var f=arguments.length<3;c=b.createCallback(c,e,4);var g=-1,h=a.length;if("number"==typeof h)for(f&&(d=a[++g]);++gc?Sd(0,d+c):c||0}else if(c){var f=Ac(a,b);return a[f]===b?f:-1}return e(a,b,c)}function sc(a,c,d){var e=0,f=a?a.length:0;if("number"!=typeof c&&null!=c){var g=f;for(c=b.createCallback(c,d,3);g--&&c(a[g],g,a);)e++}else e=null==c||d?1:c||e;return p(a,0,Td(Sd(0,f-e),f))}function tc(){for(var a=[],b=-1,c=arguments.length,d=l(),g=ib(),h=g===e,i=l();++b=w&&j(b?a[b]:i)))}var m=a[0],p=-1,q=m?m.length:0,r=[];a:for(;++pc?Sd(0,d+c):Td(c,d-1))+1);d--;)if(a[d]===b)return d;return-1}function wc(a){for(var b=arguments,c=0,d=b.length,e=a?a.length:0;++cf;){var h=f+g>>>1;d(a[h])1?arguments:arguments[0],b=-1,c=a?ac(me(a,"length")):0,d=nd(0>c?0:c);++b2?gb(a,17,p(arguments,2),null,b):gb(a,1,null,null,b)}function Jc(a){for(var b=arguments.length>1?_(arguments,!0,!1,1):ub(a),c=-1,d=b.length;++c2?gb(b,19,p(arguments,2),null,a):gb(b,3,null,null,a)}function Lc(){for(var a=arguments,b=a.length;b--;)if(!Db(a[b]))throw new wd;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}}function Mc(a,b){return b="number"==typeof b?b:+b||a.length,gb(a,4,null,null,null,b)}function Nc(a,b,c){var d,e,f,g,h,i,j,k=0,l=!1,m=!0;if(!Db(a))throw new wd;if(b=Sd(0,b)||0,c===!0){var n=!0;m=!1}else Eb(c)&&(n=c.leading,l="maxWait"in c&&(Sd(b,c.maxWait)||0),m="trailing"in c?c.trailing:m);var o=function(){var c=b-(oe()-g);if(0>=c){e&&Dd(e);var l=j;e=i=j=r,l&&(k=oe(),f=a.apply(h,d),i||e||(d=h=null))}else i=Jd(o,c)},p=function(){i&&Dd(i),e=i=j=r,(m||l!==b)&&(k=oe(),f=a.apply(h,d),i||e||(d=h=null))};return function(){if(d=arguments,g=oe(),h=this,j=m&&(i||!n),l===!1)var c=n&&!i;else{e||n||(k=g);var q=l-(g-k),r=0>=q;r?(e&&(e=Dd(e)),k=g,f=a.apply(h,d)):e||(e=Jd(p,q))}return r&&i?i=Dd(i):i||b===l||(i=Jd(o,b)),c&&(r=!0,f=a.apply(h,d)),!r||i||e||(d=h=null),f}}function Oc(a){if(!Db(a))throw new wd;var b=p(arguments,1);return Jd(function(){a.apply(r,b)},1)}function Pc(a,b){if(!Db(a))throw new wd;var c=p(arguments,2);return Jd(function(){a.apply(r,c)},b)}function Qc(a,b){if(!Db(a))throw new wd;var c=function(){var d=c.cache,e=b?b.apply(this,arguments):v+arguments[0];return Hd.call(d,e)?d[e]:d[e]=a.apply(this,arguments)};return c.cache={},c}function Rc(a){var b,c;if(!Db(a))throw new wd;return function(){return b?c:(b=!0,c=a.apply(this,arguments),a=null,c)}}function Sc(a){return gb(a,16,p(arguments,1))}function Tc(a){return gb(a,32,null,p(arguments,1))}function Uc(a,b,c){var d=!0,e=!0;if(!Db(a))throw new wd;return c===!1?d=!1:Eb(c)&&(d="leading"in c?c.leading:d,e="trailing"in c?c.trailing:e),W.leading=d,W.maxWait=b,W.trailing=e,Nc(a,b,W)}function Vc(a,b){return gb(b,16,[a])}function Wc(a){return function(){return a}}function Xc(a,b,c){var d=typeof a;if(null==a||"function"==d)return t(a,b,c);if("object"!=d)return bd(a);var e=_d(a),f=e[0],g=a[f];return 1!=e.length||g!==g||Eb(g)?function(b){for(var c=e.length,d=!1;c--&&(d=ab(b[e[c]],a[e[c]],null,!0)););return d}:function(a){var b=a[f];return g===b&&(0!==g||1/g==1/b)}}function Yc(a){return null==a?"":vd(a).replace(de,hb)}function Zc(a){return a}function $c(a,d,e){var f=!0,g=d&&ub(d);d&&(e||g.length)||(null==e&&(e=d),h=c,d=a,a=b,g=ub(d)),e===!1?f=!1:Eb(e)&&"chain"in e&&(f=e.chain);var h=a,i=Db(h);Yb(g,function(b){var c=a[b]=d[b];i&&(h.prototype[b]=function(){var b=this.__chain__,d=this.__wrapped__,e=[d];Id.apply(e,arguments);var g=c.apply(a,e);if(f||b){if(d===g&&Eb(g))return this;g=new h(g),g.__chain__=b}return g})})}function _c(){return a._=zd,this}function ad(){}function bd(a){return function(b){return b[a]}}function cd(a,b,c){var d=null==a,e=null==b;if(null==c&&("boolean"==typeof a&&e?(c=a,a=1):e||"boolean"!=typeof b||(c=b,e=!0)),d&&e&&(b=1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=Vd();return Td(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return cb(a,b)}function dd(a,b){if(a){var c=a[b];return Db(c)?a[b]():c}}function ed(a,c,d){var e=b.templateSettings;a=vd(a||""),d=fe({},d,e);var f,g=fe({},d.imports,e.imports),h=_d(g),i=Rb(g),j=0,l=d.interpolate||H,m="__p += '",n=ud((d.escape||H).source+"|"+l.source+"|"+(l===F?C:H).source+"|"+(d.evaluate||H).source+"|$","g");a.replace(n,function(b,c,d,e,g,h){return d||(d=e),m+=a.slice(j,h).replace(J,k),c&&(m+="' +\n__e("+c+") +\n'"),g&&(f=!0,m+="';\n"+g+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),j=h+b.length,b}),m+="';\n";var o=d.variable,p=o;p||(o="obj",m="with ("+o+") {\n"+m+"\n}\n"),m=(f?m.replace(z,""):m).replace(A,"$1").replace(B,"$1;"),m="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var q="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+L++ +"]")+"\n*/";try{var s=qd(h,"return "+m+q).apply(r,i)}catch(t){throw t.source=m,t}return c?s(c):(s.source=m,s)}function fd(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=nd(a);for(b=t(b,c,1);++d/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:b}},Nd||(s=function(){function b(){}return function(c){if(Eb(c)){b.prototype=c;var d=new b;b.prototype=null}return d||a.Object()}}());var Yd=Md?function(a,b){X.value=b,Md(a,"__bindData__",X)}:ad,Zd=Od||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ad.call(a)==N||!1},$d=function(a){var b,c=a,d=[];if(!c)return d;if(!Y[typeof a])return d;for(b in c)Hd.call(c,b)&&d.push(b);return d},_d=Rd?function(a){return Eb(a)?Rd(a):[]}:$d,ae={"&":"&","<":"<",">":">",'"':""","'":"'"},be=wb(ae),ce=ud("("+_d(be).join("|")+")","g"),de=ud("["+_d(ae).join("")+"]","g"),ee=function(a,b,c){var d,e=a,f=e;if(!e)return f;var g=arguments,h=0,i="number"==typeof c?2:g.length;if(i>3&&"function"==typeof g[i-2])var j=t(g[--i-1],g[i--],2);else i>2&&"function"==typeof g[i-1]&&(j=g[--i]);for(;++h/g,G=RegExp("^["+y+"]*0+(?=.$)"),H=/($^)/,I=/\bthis\b/,J=/['\n\r\t\u2028\u2029\\]/g,K=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],L=0,M="[object Arguments]",N="[object Array]",O="[object Boolean]",P="[object Date]",Q="[object Function]",R="[object Number]",S="[object Object]",T="[object RegExp]",U="[object String]",V={};V[Q]=!1,V[M]=V[N]=V[O]=V[P]=V[R]=V[S]=V[T]=V[U]=!0;var W={leading:!1,maxWait:0,trailing:!1},X={configurable:!1,enumerable:!1,value:null,writable:!1},Y={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Z={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=Y[typeof window]&&window||this,_=Y[typeof d]&&d&&!d.nodeType&&d,ab=Y[typeof c]&&c&&!c.nodeType&&c,bb=ab&&ab.exports===_&&_,cb=Y[typeof b]&&b;!cb||cb.global!==cb&&cb.window!==cb||($=cb);var db=q();"function"==typeof a&&"object"==typeof a.amd&&a.amd?($._=db,a(function(){return db})):_&&ab?bb?(ab.exports=db)._=db:_._=db:$._=db}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(b,c,d){(function(b){!function(b){if("function"==typeof bootstrap)bootstrap("promise",b);else if("object"==typeof d)c.exports=b();else if("function"==typeof a&&a.amd)a(b);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=b}else Q=b()}(function(){"use strict";function a(a){return function(){return Y.apply(a,arguments)}}function c(a){return a===Object(a)}function d(a){return"[object StopIteration]"===eb(a)||a instanceof U}function e(a,b){if(R&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(gb)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+gb+"\n");a.stack=f(e)}}function f(a){for(var b=a.split("\n"),c=[],d=0;d=V&&lb>=d}function j(){if(R)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=h(c);if(!d)return;return T=d[0],d[1]}}function k(a,b,c){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(b+" is deprecated, use "+c+" instead.",new Error("").stack),a.apply(a,arguments)}}function l(a){return s(a)?a:t(a)?E(a):D(a)}function m(){function a(a){b=a,f.source=a,$(c,function(b,c){X(function(){a.promiseDispatch.apply(a,c)})},void 0),c=void 0,d=void 0}var b,c=[],d=[],e=bb(m.prototype),f=bb(p.prototype);if(f.promiseDispatch=function(a,e,f){var g=Z(arguments);c?(c.push(g),"when"===e&&f[1]&&d.push(f[1])):X(function(){b.promiseDispatch.apply(b,g)})},f.valueOf=k(function(){if(c)return f;var a=r(b);return s(a)&&(b=a),a},"valueOf","inspect"),f.inspect=function(){return b?b.inspect():{state:"pending"}},l.longStackSupport&&R)try{throw new Error}catch(g){f.stack=g.stack.substring(g.stack.indexOf("\n")+1)}return e.promise=f,e.resolve=function(c){b||a(l(c))},e.fulfill=function(c){b||a(D(c))},e.reject=function(c){b||a(C(c))},e.notify=function(a){b||$(d,function(b,c){X(function(){c(a)})},void 0)},e}function n(a){if("function"!=typeof a)throw new TypeError("resolver must be a function.");var b=m();try{a(b.resolve,b.reject,b.notify)}catch(c){b.reject(c)}return b.promise}function o(a){return n(function(b,c){for(var d=0,e=a.length;e>d;d++)l(a[d]).then(b,c)})}function p(a,b,c){void 0===b&&(b=function(a){return C(new Error("Promise does not support operation: "+a))}),void 0===c&&(c=function(){return{state:"unknown"}});var d=bb(p.prototype);if(d.promiseDispatch=function(c,e,f){var g;try{g=a[e]?a[e].apply(d,f):b.call(d,e,f)}catch(h){g=C(h)}c&&c(g)},d.inspect=c,c){var e=c();"rejected"===e.state&&(d.exception=e.reason),d.valueOf=k(function(){var a=c();return"pending"===a.state||"rejected"===a.state?d:a.value})}return d}function q(a,b,c,d){return l(a).then(b,c,d)}function r(a){if(s(a)){var b=a.inspect();if("fulfilled"===b.state)return b.value}return a}function s(a){return c(a)&&"function"==typeof a.promiseDispatch&&"function"==typeof a.inspect}function t(a){return c(a)&&"function"==typeof a.then}function u(a){return s(a)&&"pending"===a.inspect().state}function v(a){return!s(a)||"fulfilled"===a.inspect().state}function w(a){return s(a)&&"rejected"===a.inspect().state}function x(){jb||"undefined"==typeof window||window.Touch||!window.console||console.warn("[Q] Unhandled rejection reasons (should be empty):",hb),jb=!0}function y(){for(var a=0;a=d)throw new TypeError}for(;d>c;c++)c in this&&(b=a(b,this[c],c));return b}),_=a(Array.prototype.indexOf||function(a){for(var b=0;b2?Z(arguments,1):c)}},l.promise=n,l.passByCopy=function(a){return a},p.prototype.passByCopy=function(){return this},l.join=function(a,b){return l(a).join(b)},p.prototype.join=function(a){return l([this,a]).spread(function(a,b){if(a===b)return a;throw new Error("Can't join: not the same: "+a+" "+b)})},l.race=o,p.prototype.race=function(){return this.then(l.race)},l.makePromise=p,p.prototype.toString=function(){return"[object Promise]"},p.prototype.then=function(a,b,c){function d(b){try{return"function"==typeof a?a(b):b}catch(c){return C(c)}}function f(a){if("function"==typeof b){e(a,h);try{return b(a)}catch(c){return C(c)}}return C(a)}function g(a){return"function"==typeof c?c(a):a}var h=this,i=m(),j=!1;return X(function(){h.promiseDispatch(function(a){j||(j=!0,i.resolve(d(a)))},"when",[function(a){j||(j=!0,i.resolve(f(a)))}])}),h.promiseDispatch(void 0,"when",[void 0,function(a){var b,c=!1;try{b=g(a)}catch(d){if(c=!0,!l.onerror)throw d;l.onerror(d)}c||i.notify(b)}]),i.promise},l.when=q,p.prototype.thenResolve=function(a){return this.then(function(){return a})},l.thenResolve=function(a,b){return l(a).thenResolve(b)},p.prototype.thenReject=function(a){return this.then(function(){throw a})},l.thenReject=function(a,b){return l(a).thenReject(b)},l.nearer=r,l.isPromise=s,l.isPromiseAlike=t,l.isPending=u,p.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=v,p.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=w,p.prototype.isRejected=function(){return"rejected"===this.inspect().state};var hb=[],ib=[],jb=!1,kb=!0;l.resetUnhandledRejections=z,l.getUnhandledReasons=function(){return hb.slice()},l.stopUnhandledRejectionTracking=function(){z(),"undefined"!=typeof b&&b.on&&b.removeListener("exit",y),kb=!1},z(),l.reject=C,l.fulfill=D,l.master=F,l.spread=G,p.prototype.spread=function(a,b){return this.all().then(function(b){return a.apply(void 0,b)},b)},l.async=H,l.spawn=I,l["return"]=J,l.promised=K,l.dispatch=L,p.prototype.dispatch=function(a,b){var c=this,d=m();return X(function(){c.promiseDispatch(d.resolve,a,b)}),d.promise},l.get=function(a,b){return l(a).dispatch("get",[b])},p.prototype.get=function(a){return this.dispatch("get",[a])},l.set=function(a,b,c){return l(a).dispatch("set",[b,c])},p.prototype.set=function(a,b){return this.dispatch("set",[a,b])},l.del=l["delete"]=function(a,b){return l(a).dispatch("delete",[b])},p.prototype.del=p.prototype["delete"]=function(a){return this.dispatch("delete",[a])},l.mapply=l.post=function(a,b,c){return l(a).dispatch("post",[b,c])},p.prototype.mapply=p.prototype.post=function(a,b){return this.dispatch("post",[a,b])},l.send=l.mcall=l.invoke=function(a,b){return l(a).dispatch("post",[b,Z(arguments,2)])},p.prototype.send=p.prototype.mcall=p.prototype.invoke=function(a){return this.dispatch("post",[a,Z(arguments,1)])},l.fapply=function(a,b){return l(a).dispatch("apply",[void 0,b])},p.prototype.fapply=function(a){return this.dispatch("apply",[void 0,a])},l["try"]=l.fcall=function(a){return l(a).dispatch("apply",[void 0,Z(arguments,1)])},p.prototype.fcall=function(){return this.dispatch("apply",[void 0,Z(arguments)])},l.fbind=function(a){var b=l(a),c=Z(arguments,1);return function(){return b.dispatch("apply",[this,c.concat(Z(arguments))])}},p.prototype.fbind=function(){var a=this,b=Z(arguments);return function(){return a.dispatch("apply",[this,b.concat(Z(arguments))])}},l.keys=function(a){return l(a).dispatch("keys",[])},p.prototype.keys=function(){return this.dispatch("keys",[])},l.all=M,p.prototype.all=function(){return M(this)},l.allResolved=k(N,"allResolved","allSettled"),p.prototype.allResolved=function(){return N(this)},l.allSettled=O,p.prototype.allSettled=function(){return this.then(function(a){return M(ab(a,function(a){function b(){return a.inspect()}return a=l(a),a.then(b,b)}))})},l.fail=l["catch"]=function(a,b){return l(a).then(void 0,b)},p.prototype.fail=p.prototype["catch"]=function(a){return this.then(void 0,a)},l.progress=P,p.prototype.progress=function(a){return this.then(void 0,void 0,a)},l.fin=l["finally"]=function(a,b){return l(a)["finally"](b)},p.prototype.fin=p.prototype["finally"]=function(a){return a=l(a),this.then(function(b){return a.fcall().then(function(){return b})},function(b){return a.fcall().then(function(){throw b})})},l.done=function(a,b,c,d){return l(a).done(b,c,d)},p.prototype.done=function(a,c,d){var f=function(a){X(function(){if(e(a,g),!l.onerror)throw a;l.onerror(a)})},g=a||c||d?this.then(a,c,d):this;"object"==typeof b&&b&&b.domain&&(f=b.domain.bind(f)),g.then(void 0,f)},l.timeout=function(a,b,c){return l(a).timeout(b,c)},p.prototype.timeout=function(a,b){var c=m(),d=setTimeout(function(){c.reject(new Error(b||"Timed out after "+a+" ms"))},a);return this.then(function(a){clearTimeout(d),c.resolve(a)},function(a){clearTimeout(d),c.reject(a)},c.notify),c.promise},l.delay=function(a,b){return void 0===b&&(b=a,a=void 0),l(a).delay(b)},p.prototype.delay=function(a){return this.then(function(b){var c=m();return setTimeout(function(){c.resolve(b)},a),c.promise})},l.nfapply=function(a,b){return l(a).nfapply(b)},p.prototype.nfapply=function(a){var b=m(),c=Z(a);return c.push(b.makeNodeResolver()),this.fapply(c).fail(b.reject),b.promise},l.nfcall=function(a){var b=Z(arguments,1);return l(a).nfapply(b)},p.prototype.nfcall=function(){var a=Z(arguments),b=m();return a.push(b.makeNodeResolver()),this.fapply(a).fail(b.reject),b.promise},l.nfbind=l.denodeify=function(a){var b=Z(arguments,1);return function(){var c=b.concat(Z(arguments)),d=m();return c.push(d.makeNodeResolver()),l(a).fapply(c).fail(d.reject),d.promise}},p.prototype.nfbind=p.prototype.denodeify=function(){var a=Z(arguments);return a.unshift(this),l.denodeify.apply(void 0,a)},l.nbind=function(a,b){var c=Z(arguments,2);return function(){function d(){return a.apply(b,arguments)}var e=c.concat(Z(arguments)),f=m();return e.push(f.makeNodeResolver()),l(d).fapply(e).fail(f.reject),f.promise}},p.prototype.nbind=function(){var a=Z(arguments,0);return a.unshift(this),l.nbind.apply(void 0,a)},l.nmapply=l.npost=function(a,b,c){return l(a).npost(b,c)},p.prototype.nmapply=p.prototype.npost=function(a,b){var c=Z(b||[]),d=m();return c.push(d.makeNodeResolver()),this.dispatch("post",[a,c]).fail(d.reject),d.promise},l.nsend=l.nmcall=l.ninvoke=function(a,b){var c=Z(arguments,2),d=m();return c.push(d.makeNodeResolver()),l(a).dispatch("post",[b,c]).fail(d.reject),d.promise},p.prototype.nsend=p.prototype.nmcall=p.prototype.ninvoke=function(a){var b=Z(arguments,1),c=m();return b.push(c.makeNodeResolver()),this.dispatch("post",[a,b]).fail(c.reject),c.promise},l.nodeify=Q,p.prototype.nodeify=function(a){return a?void this.then(function(b){X(function(){a(null,b)})},function(b){X(function(){a(b)})}):this};var lb=j();return l})}).call(this,b("JkpR2F"))},{JkpR2F:49}]},{},[1])(1)}); \ No newline at end of file +!function(a){if("object"==typeof exports)module.exports=a();else if("function"==typeof define&&define.amd)define(a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.hamjest=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g");else if(f.isArray(a))this.appendList("[",", ","]",a);else if(f.isFunction(a))this.append("Function"+(a.name?" "+a.name:""));else if(f.isRegExp(a))this.append(a.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(a))}catch(b){var c=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(a),this.useJsonForObjects=c}else this.append(a);return this},appendNonJson:function(a){this.append("{");var b=!0;f.forEach(a,function(a,c){b||this.append(", "),b=!1,this.append(c).append(": "),this.appendValue(a)},this),this.append("}")},appendList:function(a,b,d,e){return this.append(a),f.forEach(e,function(a,d){0!==d&&this.append(b),this.appendDescriptionOf(c(a))},this),this.append(d),this},get:function(){return a}})}var f=a("lodash");b.exports=e},{lodash:50}],3:[function(a,b){"use strict";function c(a,b,h){2===arguments.length&&(h=b,b=a,a="");var i=h.matches(b);if(d.isPromiseAlike(i))throw new f("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},c);if(!i){var j=new g;j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),h.describeMismatch(b,j);var k={};throw e.isFunction(h.getExpectedForDiff)&&e.isFunction(h.formatActualForDiff)&&(k={showDiff:!0,expected:h.getExpectedForDiff(),actual:h.formatActualForDiff(b)}),new f(j.get(),k,c)}}var d=a("q"),e=a("lodash"),f=a("assertion-error"),g=a("./Description");b.exports=c},{"./Description":2,"assertion-error":48,lodash:50,q:51}],4:[function(a,b){"use strict";function c(a){throw new d(a,{},c)}var d=a("assertion-error");b.exports=c},{"assertion-error":48}],5:[function(a,b){"use strict";b.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var a={};return Object.getOwnPropertyNames(this).forEach(function(b){a[b]=this[b]},this),a},configurable:!0})}},{}],6:[function(a,b){"use strict";var c=a("lodash"),d=a("./matchers/IsEqual"),e=a("./matchers/Matcher"),f=a("./matchers/SubstringMatcher"),g=a("./matchers/NumberComparisonMatcher"),h=a("./matchers/DateComparisonMatcher");a("./fixErrorJson")();var i={assertThat:a("./assertThat"),promiseThat:a("./promiseThat"),fail:a("./fail")},j={Matcher:e,TypeSafeMatcher:a("./matchers/TypeSafeMatcher"),FeatureMatcher:a("./matchers/FeatureMatcher"),anything:a("./matchers/IsAnything").anything,strictlyEqualTo:a("./matchers/IsSame").strictlyEqualTo,is:a("./matchers/Is").is,not:a("./matchers/IsNot").not,equalTo:d.equalTo,truthy:a("./matchers/truthy"),falsy:a("./matchers/falsy"),falsey:a("./matchers/falsy"),defined:a("./matchers/IsDefined").defined,undefined:a("./matchers/IsDefined").undefined,undef:a("./matchers/IsDefined").undefined,instanceOf:a("./matchers/IsInstanceOf").instanceOf,array:a("./matchers/IsArray").array,bool:a("./matchers/IsBoolean").bool,date:a("./matchers/IsDate").date,func:a("./matchers/IsFunction").func,number:a("./matchers/IsNumber").number,object:a("./matchers/IsObject").object,regExp:a("./matchers/IsRegExp").regExp,string:a("./matchers/IsString").string,containsString:f.containsString,startsWith:f.startsWith,endsWith:f.endsWith,matchesPattern:a("./matchers/IsStringMatching").matchesPattern,lessThan:g.lessThan,lessThanOrEqualTo:g.lessThanOrEqualTo,greaterThan:g.greaterThan,greaterThanOrEqualTo:g.greaterThanOrEqualTo,after:h.after,afterOrEqualTo:h.afterOrEqualTo,before:h.before,beforeOrEqualTo:h.beforeOrEqualTo,closeTo:a("./matchers/IsCloseTo").closeTo,allOf:a("./matchers/AllOf").allOf,anyOf:a("./matchers/AnyOf").anyOf,everyItem:a("./matchers/Every").everyItem,hasItem:a("./matchers/IsArrayWithItem").hasItem,hasItems:a("./matchers/IsArrayWithItems").hasItems,contains:a("./matchers/IsArrayContaining").contains,containsInAnyOrder:a("./matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,orderedBy:a("./matchers/IsArrayOrderedBy").orderedBy,hasSize:a("./matchers/IsCollectionWithSize").hasSize,hasProperties:a("./matchers/IsObjectWithProperties").hasProperties,hasProperty:a("./matchers/IsObjectWithProperties").hasProperty,"throws":a("./matchers/IsFunctionThrowing")["throws"],promise:a("./matchers/IsPromise").promise,fulfilled:a("./matchers/IsFulfilled").fulfilled,isFulfilledWith:a("./matchers/IsFulfilled").isFulfilledWith,willBe:a("./matchers/IsFulfilled").isFulfilledWith,rejected:a("./matchers/IsRejected").rejected,isRejectedWith:a("./matchers/IsRejected").isRejectedWith,promiseAllOf:a("./matchers/AllOf").allOf},k={isMatcher:e.isMatcher,asMatcher:d.asMatcher,acceptingMatcher:d.acceptingMatcher,Description:a("./Description")},l={};c.extend(l,i,j,k),b.exports=l},{"./Description":2,"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47,lodash:50}],7:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.all)},describeTo:function(b){b.appendList("("," and ",")",a)},describeMismatch:function(b,c){var e=d.mapValues(a,function(a){return a.matches(b)}),g=!0;return f.describeMismatchAggregate(e,function(d,e){if(!d){var f=a[e];return g||c.append("\n"),g=!1,c.appendDescriptionOf(f).append(": "),f.describeMismatch(b,c)}})}})}var d=a("lodash"),e=a("./Matcher"),f=a("./promiseAgnostic");c.allOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45,lodash:50}],8:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.any)},describeTo:function(b){b.appendList("("," or ",")",a)}})}var d=a("lodash"),e=a("./Matcher"),f=a("./promiseAgnostic");c.anyOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45,lodash:50}],9:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a date ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)}})}var d=a("lodash"),e=a("./IsDate"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsDate").date;d.extend(c,{after:function(a){return new c(a,"after",function(b){return b>a})},afterOrEqualTo:function(a){return new c(a,"after or equal to",function(b){return b>=a})},before:function(a){return new c(a,"before",function(b){return a>b})},beforeOrEqualTo:function(a){return new c(a,"before or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsDate":23,lodash:50}],10:[function(a,b){"use strict";var c=a("lodash"),d=a("./TypeSafeMatcher"),e=a("./IsEqual").acceptingMatcher,f=a("./promiseAgnostic"),g=e(function(a){return c.create(new d,{isExpectedType:function(a){return c.isArray(a)||c.isObject(a)},matchesSafely:function(b){var d=c.map(b,function(b){return a.matches(b)});return f.matchesAggregate(d,c.all)},describeTo:function(b){b.append("every item is ").appendDescriptionOf(a)},describeMismatchSafely:function(b,d){var e;e=c.isArray(b)?c.map(b,function(b){return a.matches(b)}):c.mapValues(b,function(b){return a.matches(b)});var g=!0;return f.describeMismatchAggregate(e,function(c,e){c||(g||d.append(", "),g=!1,d.append("item ").appendValue(e).append(" "),a.describeMismatch(b[e],d))})}})});g.everyItem=function(a){return new g(a)},b.exports=g},{"./IsEqual":25,"./TypeSafeMatcher":43,"./promiseAgnostic":45,lodash:50}],11:[function(a,b){"use strict";function c(a,b,c,h){var i=f(a);return h=h||function(a){return a[c]},d.create(new e,{matches:function(a){var b=h(a);return i.matches(b)},describeTo:function(a){a.append(b).append(" ").appendDescriptionOf(i)},describeMismatch:function(a,b){var d=h(a);return g.describeMismatch(i.matches(d),function(){return b.append(c).append(" "),i.describeMismatch(d,b)},function(){b.append("\nfor ").appendValue(a)})}})}var d=a("lodash"),e=a("./Matcher"),f=a("./IsEqual").asMatcher,g=a("./promiseAgnostic");b.exports=c},{"./IsEqual":25,"./Matcher":40,"./promiseAgnostic":45,lodash:50}],12:[function(a,b){"use strict";var c=a("lodash"),d=a("./Matcher"),e=a("./IsEqual").acceptingMatcher,f=e(function(a){return c.create(new d,{matches:function(b){return a.matches(b)},describeTo:function(b){b.append("is ").appendDescriptionOf(a)},describeMismatch:function(b,c){return a.describeMismatch(b,c)},getExpectedForDiff:a.getExpectedForDiff,formatActualForDiff:a.formatActualForDiff})});f.is=function(a){return new f(a)},b.exports=f},{"./IsEqual":25,"./Matcher":40,lodash:50}],13:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(){return!0},describeTo:function(a){a.append("anything")}})}var d=a("lodash"),e=a("./Matcher");c.anything=function(){return new c},b.exports=c},{"./Matcher":40,lodash:50}],14:[function(a,b){"use strict";function c(){return d.create(new e,{isExpectedType:function(a){return d.isArray(a)},describeTo:function(a){a.append("an array")}})}var d=a("lodash"),e=a("./TypeSafeMatcher");c.array=function(){return new c},b.exports=c},{"./TypeSafeMatcher":43,lodash:50}],15:[function(a,b){"use strict";function c(a){var b=d.map(a,f);return d.create(new e,{matchesSafely:function(a){if(a.length!==b.length)return!1;var c=d.map(b,function(b,c){return b.matches(a[c])});return g.matchesAggregate(c,d.all)},describeTo:function(a){a.appendList("[",", ","]",b)},describeMismatchSafely:function(a,c){var e=d.map(a,function(a,c){return b.length>c?b[c].matches(a):void 0}),f=!0;return g.describeMismatchAggregate(e,function(d,e){return d||b.length<=e||a.length<=e?void 0:(f||c.append("\n"),f=!1,c.append("item ").append(e).append(": "),b[e].describeMismatch(a[e],c))},function(){f||c.append("\n"),a.length>b.length?c.appendList("not matched: ",", ","",a.slice(b.length)):a.lengtha})},greaterThanOrEqualTo:function(a){return new c(a,"greater than or equal to",function(b){return b>=a})},lessThan:function(a){return new c(a,"less than",function(b){return a>b})},lessThanOrEqualTo:function(a){return new c(a,"less than or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsNumber":31,lodash:50}],42:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a string ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)},getExpectedForDiff:function(){return a},formatActualForDiff:function(a){return a}})}var d=a("lodash"),e=a("./IsString"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsString").string;d.extend(c,{containsString:function(a){return new c(a,"containing",function(b){return-1!==b.indexOf(a)})},startsWith:function(a){return new c(a,"starting with",function(b){return 0===b.indexOf(a)})},endsWith:function(a){return new c(a,"ending with",function(b){return-1!==b.indexOf(a,b.length-a.length)})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsString":38,lodash:50}],43:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return this.isExpectedType(a)?this.matchesSafely(a):!1},describeMismatch:function(a,b){return this.isExpectedType(a)?this.describeMismatchSafely(a,b):d.isUndefined(a)?void b.append("was undefined"):void b.append("was a ").append(typeof a).append(" (").appendValue(a).append(")")},isExpectedType:function(){throw new Error("Not implemented")},matchesSafely:function(){return!0},describeMismatchSafely:function(){throw new Error("Not implemented")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],44:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!a},describeTo:function(a){a.append("falsy value")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],45:[function(a,b){"use strict";function c(a){if(d.isArray(a))return e.all(a);var b={};return d.forEach(a,function(a,c){b[c]=null,e(a).then(function(a){b[c]=a})}),e.all(d.toArray(a)).then(function(){return b})}var d=a("lodash"),e=a("q"),f={matches:function(a,b){return e.isPromiseAlike(a)?e(a).then(b):b(a)},matchesAggregate:function(a,b){return d.any(a,e.isPromiseAlike)?c(a).then(b):b(a)},describeMismatchAggregate:function(a,b,f){return d.any(a,e.isPromiseAlike)?c(a).then(function(a){var c=e();return d.forEach(a,function(a,d){c=c.then(function(){return b(a,d)})}),f&&(c=c.then(f)),c}):(d.forEach(a,function(a,c){return b(a,c)}),void(f&&f()))},describeMismatch:function(a,b,c){if(e.isPromiseAlike(a)){var d=e(a).then(b);return c&&(d=d.then(c)),d}b(a),c&&c()}};b.exports=f},{lodash:50,q:51}],46:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!!a},describeTo:function(a){a.append("truthy value")}})}var d=a("lodash"),e=a("./Matcher");b.exports=c},{"./Matcher":40,lodash:50}],47:[function(a,b){"use strict";function c(a,b,h){return 2===arguments.length&&(h=b,b=a,a=""),d(h.matches(b)).then(function(i){if(!i){var j=new f;return j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),d(h.describeMismatch(b,j)).then(function(){return g.isFunction(h.getExpectedForDiff)&&g.isFunction(h.formatActualForDiff)?d.all([h.getExpectedForDiff(),h.formatActualForDiff(b)]).spread(function(a,b){return{showDiff:!0,expected:a,actual:b}}):{}}).then(function(a){throw new e(j.get(),a,c)})}})}var d=a("q"),e=a("assertion-error"),f=a("./Description"),g=a("lodash");b.exports=c},{"./Description":2,"assertion-error":48,lodash:50,q:51}],48:[function(a,b){function c(){function a(a,c){Object.keys(c).forEach(function(d){~b.indexOf(d)||(a[d]=c[d])})}var b=[].slice.call(arguments);return function(){for(var b=[].slice.call(arguments),c=0,d={};c0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")}},{}],50:[function(b,c,d){(function(b){(function(){function e(a,b,c){for(var d=(c||0)-1,e=a?a.length:0;++d-1?0:-1:a?0:-1}function g(a){var b=this.cache,c=typeof a;if("boolean"==c||null==a)b[a]=!0;else{"number"!=c&&"string"!=c&&(c="object");var d="number"==c?a:v+a,e=b[c]||(b[c]={});"object"==c?(e[d]||(e[d]=[])).push(a):e[d]=!0}}function h(a){return a.charCodeAt(0) +}function i(a,b){for(var c=a.criteria,d=b.criteria,e=-1,f=c.length;++eh||"undefined"==typeof g)return 1;if(h>g||"undefined"==typeof h)return-1}}return a.index-b.index}function j(a){var b=-1,c=a.length,d=a[0],e=a[c/2|0],f=a[c-1];if(d&&"object"==typeof d&&e&&"object"==typeof e&&f&&"object"==typeof f)return!1;var h=m();h["false"]=h["null"]=h["true"]=h.undefined=!1;var i=m();for(i.array=a,i.cache=h,i.push=g;++be?0:e);++d=w&&d===e,i=[];if(h){var k=j(b);k?(d=f,b=k):h=!1}for(;++c-1:void 0});return e.pop(),f.pop(),s&&(n(e),n(f)),g}function bb(a,b,c,d,e){(Zd(b)?Yb:he)(b,function(b,f){var g,h,i=b,j=a[f];if(b&&((h=Zd(b))||ie(b))){for(var k=d.length;k--;)if(g=d[k]==b){j=e[k];break}if(!g){var l;c&&(i=c(j,b),(l="undefined"!=typeof i)&&(j=i)),l||(j=h?Zd(j)?j:[]:ie(j)?j:{}),d.push(b),e.push(j),l||bb(j,b,c,d,e)}}else c&&(i=c(j,b),"undefined"==typeof i&&(i=b)),"undefined"!=typeof i&&(j=i);a[f]=j})}function cb(a,b){return a+Ed(Vd()*(b-a+1))}function eb(a,b,c){var d=-1,g=ib(),h=a?a.length:0,i=[],k=!b&&h>=w&&g===e,m=c||k?l():i;if(k){var p=j(m);g=f,m=p}for(;++d3&&"function"==typeof b[c-2])var d=t(b[--c-1],b[c--],2);else c>2&&"function"==typeof b[c-1]&&(d=b[--c]);for(var e=p(arguments,1,c),f=-1,g=l(),h=l();++fc?Sd(0,f+c):c)||0,Zd(a)?g=e(a,b,c)>-1:"number"==typeof f?g=(Jb(a)?a.indexOf(b,c):e(a,b,c))>-1:he(a,function(a){return++d>=c?!(g=a===b):void 0}),g}function Ub(a,c,d){var e=!0;c=b.createCallback(c,d,3);var f=-1,g=a?a.length:0;if("number"==typeof g)for(;++ff&&(f=j)}else c=null==c&&Jb(a)?h:b.createCallback(c,d,3),Yb(a,function(a,b,d){var g=c(a,b,d);g>e&&(e=g,f=a)});return f}function bc(a,c,d){var e=1/0,f=e;if("function"!=typeof c&&d&&d[c]===a&&(c=null),null==c&&Zd(a))for(var g=-1,i=a.length;++gj&&(f=j)}else c=null==c&&Jb(a)?h:b.createCallback(c,d,3),Yb(a,function(a,b,d){var g=c(a,b,d);e>g&&(e=g,f=a)});return f}function cc(a,c,d,e){if(!a)return d;var f=arguments.length<3;c=b.createCallback(c,e,4);var g=-1,h=a.length;if("number"==typeof h)for(f&&(d=a[++g]);++gc?Sd(0,d+c):c||0}else if(c){var f=Ac(a,b);return a[f]===b?f:-1}return e(a,b,c)}function sc(a,c,d){var e=0,f=a?a.length:0;if("number"!=typeof c&&null!=c){var g=f;for(c=b.createCallback(c,d,3);g--&&c(a[g],g,a);)e++}else e=null==c||d?1:c||e;return p(a,0,Td(Sd(0,f-e),f))}function tc(){for(var a=[],b=-1,c=arguments.length,d=l(),g=ib(),h=g===e,i=l();++b=w&&j(b?a[b]:i)))}var m=a[0],p=-1,q=m?m.length:0,r=[];a:for(;++pc?Sd(0,d+c):Td(c,d-1))+1);d--;)if(a[d]===b)return d;return-1}function wc(a){for(var b=arguments,c=0,d=b.length,e=a?a.length:0;++cf;){var h=f+g>>>1;d(a[h])1?arguments:arguments[0],b=-1,c=a?ac(me(a,"length")):0,d=nd(0>c?0:c);++b2?gb(a,17,p(arguments,2),null,b):gb(a,1,null,null,b)}function Jc(a){for(var b=arguments.length>1?_(arguments,!0,!1,1):ub(a),c=-1,d=b.length;++c2?gb(b,19,p(arguments,2),null,a):gb(b,3,null,null,a)}function Lc(){for(var a=arguments,b=a.length;b--;)if(!Db(a[b]))throw new wd;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}}function Mc(a,b){return b="number"==typeof b?b:+b||a.length,gb(a,4,null,null,null,b)}function Nc(a,b,c){var d,e,f,g,h,i,j,k=0,l=!1,m=!0;if(!Db(a))throw new wd;if(b=Sd(0,b)||0,c===!0){var n=!0;m=!1}else Eb(c)&&(n=c.leading,l="maxWait"in c&&(Sd(b,c.maxWait)||0),m="trailing"in c?c.trailing:m);var o=function(){var c=b-(oe()-g);if(0>=c){e&&Dd(e);var l=j;e=i=j=r,l&&(k=oe(),f=a.apply(h,d),i||e||(d=h=null))}else i=Jd(o,c)},p=function(){i&&Dd(i),e=i=j=r,(m||l!==b)&&(k=oe(),f=a.apply(h,d),i||e||(d=h=null))};return function(){if(d=arguments,g=oe(),h=this,j=m&&(i||!n),l===!1)var c=n&&!i;else{e||n||(k=g);var q=l-(g-k),r=0>=q;r?(e&&(e=Dd(e)),k=g,f=a.apply(h,d)):e||(e=Jd(p,q))}return r&&i?i=Dd(i):i||b===l||(i=Jd(o,b)),c&&(r=!0,f=a.apply(h,d)),!r||i||e||(d=h=null),f}}function Oc(a){if(!Db(a))throw new wd;var b=p(arguments,1);return Jd(function(){a.apply(r,b)},1)}function Pc(a,b){if(!Db(a))throw new wd;var c=p(arguments,2);return Jd(function(){a.apply(r,c)},b)}function Qc(a,b){if(!Db(a))throw new wd;var c=function(){var d=c.cache,e=b?b.apply(this,arguments):v+arguments[0];return Hd.call(d,e)?d[e]:d[e]=a.apply(this,arguments)};return c.cache={},c}function Rc(a){var b,c;if(!Db(a))throw new wd;return function(){return b?c:(b=!0,c=a.apply(this,arguments),a=null,c)}}function Sc(a){return gb(a,16,p(arguments,1))}function Tc(a){return gb(a,32,null,p(arguments,1))}function Uc(a,b,c){var d=!0,e=!0;if(!Db(a))throw new wd;return c===!1?d=!1:Eb(c)&&(d="leading"in c?c.leading:d,e="trailing"in c?c.trailing:e),W.leading=d,W.maxWait=b,W.trailing=e,Nc(a,b,W)}function Vc(a,b){return gb(b,16,[a])}function Wc(a){return function(){return a}}function Xc(a,b,c){var d=typeof a;if(null==a||"function"==d)return t(a,b,c);if("object"!=d)return bd(a);var e=_d(a),f=e[0],g=a[f];return 1!=e.length||g!==g||Eb(g)?function(b){for(var c=e.length,d=!1;c--&&(d=ab(b[e[c]],a[e[c]],null,!0)););return d}:function(a){var b=a[f];return g===b&&(0!==g||1/g==1/b)}}function Yc(a){return null==a?"":vd(a).replace(de,hb)}function Zc(a){return a}function $c(a,d,e){var f=!0,g=d&&ub(d);d&&(e||g.length)||(null==e&&(e=d),h=c,d=a,a=b,g=ub(d)),e===!1?f=!1:Eb(e)&&"chain"in e&&(f=e.chain);var h=a,i=Db(h);Yb(g,function(b){var c=a[b]=d[b];i&&(h.prototype[b]=function(){var b=this.__chain__,d=this.__wrapped__,e=[d];Id.apply(e,arguments);var g=c.apply(a,e);if(f||b){if(d===g&&Eb(g))return this;g=new h(g),g.__chain__=b}return g})})}function _c(){return a._=zd,this}function ad(){}function bd(a){return function(b){return b[a]}}function cd(a,b,c){var d=null==a,e=null==b;if(null==c&&("boolean"==typeof a&&e?(c=a,a=1):e||"boolean"!=typeof b||(c=b,e=!0)),d&&e&&(b=1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=Vd();return Td(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return cb(a,b)}function dd(a,b){if(a){var c=a[b];return Db(c)?a[b]():c}}function ed(a,c,d){var e=b.templateSettings;a=vd(a||""),d=fe({},d,e);var f,g=fe({},d.imports,e.imports),h=_d(g),i=Rb(g),j=0,l=d.interpolate||H,m="__p += '",n=ud((d.escape||H).source+"|"+l.source+"|"+(l===F?C:H).source+"|"+(d.evaluate||H).source+"|$","g");a.replace(n,function(b,c,d,e,g,h){return d||(d=e),m+=a.slice(j,h).replace(J,k),c&&(m+="' +\n__e("+c+") +\n'"),g&&(f=!0,m+="';\n"+g+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),j=h+b.length,b}),m+="';\n";var o=d.variable,p=o;p||(o="obj",m="with ("+o+") {\n"+m+"\n}\n"),m=(f?m.replace(z,""):m).replace(A,"$1").replace(B,"$1;"),m="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var q="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+L++ +"]")+"\n*/";try{var s=qd(h,"return "+m+q).apply(r,i)}catch(t){throw t.source=m,t}return c?s(c):(s.source=m,s)}function fd(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=nd(a);for(b=t(b,c,1);++d/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:b}},Nd||(s=function(){function b(){}return function(c){if(Eb(c)){b.prototype=c;var d=new b;b.prototype=null}return d||a.Object()}}());var Yd=Md?function(a,b){X.value=b,Md(a,"__bindData__",X)}:ad,Zd=Od||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ad.call(a)==N||!1},$d=function(a){var b,c=a,d=[];if(!c)return d;if(!Y[typeof a])return d;for(b in c)Hd.call(c,b)&&d.push(b);return d},_d=Rd?function(a){return Eb(a)?Rd(a):[]}:$d,ae={"&":"&","<":"<",">":">",'"':""","'":"'"},be=wb(ae),ce=ud("("+_d(be).join("|")+")","g"),de=ud("["+_d(ae).join("")+"]","g"),ee=function(a,b,c){var d,e=a,f=e;if(!e)return f;var g=arguments,h=0,i="number"==typeof c?2:g.length;if(i>3&&"function"==typeof g[i-2])var j=t(g[--i-1],g[i--],2);else i>2&&"function"==typeof g[i-1]&&(j=g[--i]);for(;++h/g,G=RegExp("^["+y+"]*0+(?=.$)"),H=/($^)/,I=/\bthis\b/,J=/['\n\r\t\u2028\u2029\\]/g,K=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],L=0,M="[object Arguments]",N="[object Array]",O="[object Boolean]",P="[object Date]",Q="[object Function]",R="[object Number]",S="[object Object]",T="[object RegExp]",U="[object String]",V={};V[Q]=!1,V[M]=V[N]=V[O]=V[P]=V[R]=V[S]=V[T]=V[U]=!0;var W={leading:!1,maxWait:0,trailing:!1},X={configurable:!1,enumerable:!1,value:null,writable:!1},Y={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Z={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=Y[typeof window]&&window||this,_=Y[typeof d]&&d&&!d.nodeType&&d,ab=Y[typeof c]&&c&&!c.nodeType&&c,bb=ab&&ab.exports===_&&_,cb=Y[typeof b]&&b;!cb||cb.global!==cb&&cb.window!==cb||($=cb);var db=q();"function"==typeof a&&"object"==typeof a.amd&&a.amd?($._=db,a(function(){return db})):_&&ab?bb?(ab.exports=db)._=db:_._=db:$._=db}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(b,c,d){(function(b){!function(b){if("function"==typeof bootstrap)bootstrap("promise",b);else if("object"==typeof d)c.exports=b();else if("function"==typeof a&&a.amd)a(b);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=b}else Q=b()}(function(){"use strict";function a(a){return function(){return Y.apply(a,arguments)}}function c(a){return a===Object(a)}function d(a){return"[object StopIteration]"===eb(a)||a instanceof U}function e(a,b){if(R&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(gb)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+gb+"\n");a.stack=f(e)}}function f(a){for(var b=a.split("\n"),c=[],d=0;d=V&&lb>=d}function j(){if(R)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=h(c);if(!d)return;return T=d[0],d[1]}}function k(a,b,c){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(b+" is deprecated, use "+c+" instead.",new Error("").stack),a.apply(a,arguments)}}function l(a){return s(a)?a:t(a)?E(a):D(a)}function m(){function a(a){b=a,f.source=a,$(c,function(b,c){X(function(){a.promiseDispatch.apply(a,c)})},void 0),c=void 0,d=void 0}var b,c=[],d=[],e=bb(m.prototype),f=bb(p.prototype);if(f.promiseDispatch=function(a,e,f){var g=Z(arguments);c?(c.push(g),"when"===e&&f[1]&&d.push(f[1])):X(function(){b.promiseDispatch.apply(b,g)})},f.valueOf=k(function(){if(c)return f;var a=r(b);return s(a)&&(b=a),a},"valueOf","inspect"),f.inspect=function(){return b?b.inspect():{state:"pending"}},l.longStackSupport&&R)try{throw new Error}catch(g){f.stack=g.stack.substring(g.stack.indexOf("\n")+1)}return e.promise=f,e.resolve=function(c){b||a(l(c))},e.fulfill=function(c){b||a(D(c))},e.reject=function(c){b||a(C(c))},e.notify=function(a){b||$(d,function(b,c){X(function(){c(a)})},void 0)},e}function n(a){if("function"!=typeof a)throw new TypeError("resolver must be a function.");var b=m();try{a(b.resolve,b.reject,b.notify)}catch(c){b.reject(c)}return b.promise}function o(a){return n(function(b,c){for(var d=0,e=a.length;e>d;d++)l(a[d]).then(b,c)})}function p(a,b,c){void 0===b&&(b=function(a){return C(new Error("Promise does not support operation: "+a))}),void 0===c&&(c=function(){return{state:"unknown"}});var d=bb(p.prototype);if(d.promiseDispatch=function(c,e,f){var g;try{g=a[e]?a[e].apply(d,f):b.call(d,e,f)}catch(h){g=C(h)}c&&c(g)},d.inspect=c,c){var e=c();"rejected"===e.state&&(d.exception=e.reason),d.valueOf=k(function(){var a=c();return"pending"===a.state||"rejected"===a.state?d:a.value})}return d}function q(a,b,c,d){return l(a).then(b,c,d)}function r(a){if(s(a)){var b=a.inspect();if("fulfilled"===b.state)return b.value}return a}function s(a){return c(a)&&"function"==typeof a.promiseDispatch&&"function"==typeof a.inspect}function t(a){return c(a)&&"function"==typeof a.then}function u(a){return s(a)&&"pending"===a.inspect().state}function v(a){return!s(a)||"fulfilled"===a.inspect().state}function w(a){return s(a)&&"rejected"===a.inspect().state}function x(){jb||"undefined"==typeof window||window.Touch||!window.console||console.warn("[Q] Unhandled rejection reasons (should be empty):",hb),jb=!0}function y(){for(var a=0;a=d)throw new TypeError}for(;d>c;c++)c in this&&(b=a(b,this[c],c));return b}),_=a(Array.prototype.indexOf||function(a){for(var b=0;b2?Z(arguments,1):c)}},l.promise=n,l.passByCopy=function(a){return a},p.prototype.passByCopy=function(){return this},l.join=function(a,b){return l(a).join(b)},p.prototype.join=function(a){return l([this,a]).spread(function(a,b){if(a===b)return a;throw new Error("Can't join: not the same: "+a+" "+b)})},l.race=o,p.prototype.race=function(){return this.then(l.race)},l.makePromise=p,p.prototype.toString=function(){return"[object Promise]"},p.prototype.then=function(a,b,c){function d(b){try{return"function"==typeof a?a(b):b}catch(c){return C(c)}}function f(a){if("function"==typeof b){e(a,h);try{return b(a)}catch(c){return C(c)}}return C(a)}function g(a){return"function"==typeof c?c(a):a}var h=this,i=m(),j=!1;return X(function(){h.promiseDispatch(function(a){j||(j=!0,i.resolve(d(a)))},"when",[function(a){j||(j=!0,i.resolve(f(a)))}])}),h.promiseDispatch(void 0,"when",[void 0,function(a){var b,c=!1;try{b=g(a)}catch(d){if(c=!0,!l.onerror)throw d;l.onerror(d)}c||i.notify(b)}]),i.promise},l.when=q,p.prototype.thenResolve=function(a){return this.then(function(){return a})},l.thenResolve=function(a,b){return l(a).thenResolve(b)},p.prototype.thenReject=function(a){return this.then(function(){throw a})},l.thenReject=function(a,b){return l(a).thenReject(b)},l.nearer=r,l.isPromise=s,l.isPromiseAlike=t,l.isPending=u,p.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=v,p.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=w,p.prototype.isRejected=function(){return"rejected"===this.inspect().state};var hb=[],ib=[],jb=!1,kb=!0;l.resetUnhandledRejections=z,l.getUnhandledReasons=function(){return hb.slice()},l.stopUnhandledRejectionTracking=function(){z(),"undefined"!=typeof b&&b.on&&b.removeListener("exit",y),kb=!1},z(),l.reject=C,l.fulfill=D,l.master=F,l.spread=G,p.prototype.spread=function(a,b){return this.all().then(function(b){return a.apply(void 0,b)},b)},l.async=H,l.spawn=I,l["return"]=J,l.promised=K,l.dispatch=L,p.prototype.dispatch=function(a,b){var c=this,d=m();return X(function(){c.promiseDispatch(d.resolve,a,b)}),d.promise},l.get=function(a,b){return l(a).dispatch("get",[b])},p.prototype.get=function(a){return this.dispatch("get",[a])},l.set=function(a,b,c){return l(a).dispatch("set",[b,c])},p.prototype.set=function(a,b){return this.dispatch("set",[a,b])},l.del=l["delete"]=function(a,b){return l(a).dispatch("delete",[b])},p.prototype.del=p.prototype["delete"]=function(a){return this.dispatch("delete",[a])},l.mapply=l.post=function(a,b,c){return l(a).dispatch("post",[b,c])},p.prototype.mapply=p.prototype.post=function(a,b){return this.dispatch("post",[a,b])},l.send=l.mcall=l.invoke=function(a,b){return l(a).dispatch("post",[b,Z(arguments,2)])},p.prototype.send=p.prototype.mcall=p.prototype.invoke=function(a){return this.dispatch("post",[a,Z(arguments,1)])},l.fapply=function(a,b){return l(a).dispatch("apply",[void 0,b])},p.prototype.fapply=function(a){return this.dispatch("apply",[void 0,a])},l["try"]=l.fcall=function(a){return l(a).dispatch("apply",[void 0,Z(arguments,1)])},p.prototype.fcall=function(){return this.dispatch("apply",[void 0,Z(arguments)])},l.fbind=function(a){var b=l(a),c=Z(arguments,1);return function(){return b.dispatch("apply",[this,c.concat(Z(arguments))])}},p.prototype.fbind=function(){var a=this,b=Z(arguments);return function(){return a.dispatch("apply",[this,b.concat(Z(arguments))])}},l.keys=function(a){return l(a).dispatch("keys",[])},p.prototype.keys=function(){return this.dispatch("keys",[])},l.all=M,p.prototype.all=function(){return M(this)},l.allResolved=k(N,"allResolved","allSettled"),p.prototype.allResolved=function(){return N(this)},l.allSettled=O,p.prototype.allSettled=function(){return this.then(function(a){return M(ab(a,function(a){function b(){return a.inspect()}return a=l(a),a.then(b,b)}))})},l.fail=l["catch"]=function(a,b){return l(a).then(void 0,b)},p.prototype.fail=p.prototype["catch"]=function(a){return this.then(void 0,a)},l.progress=P,p.prototype.progress=function(a){return this.then(void 0,void 0,a)},l.fin=l["finally"]=function(a,b){return l(a)["finally"](b)},p.prototype.fin=p.prototype["finally"]=function(a){return a=l(a),this.then(function(b){return a.fcall().then(function(){return b})},function(b){return a.fcall().then(function(){throw b})})},l.done=function(a,b,c,d){return l(a).done(b,c,d)},p.prototype.done=function(a,c,d){var f=function(a){X(function(){if(e(a,g),!l.onerror)throw a;l.onerror(a)})},g=a||c||d?this.then(a,c,d):this;"object"==typeof b&&b&&b.domain&&(f=b.domain.bind(f)),g.then(void 0,f)},l.timeout=function(a,b,c){return l(a).timeout(b,c)},p.prototype.timeout=function(a,b){var c=m(),d=setTimeout(function(){c.reject(new Error(b||"Timed out after "+a+" ms"))},a);return this.then(function(a){clearTimeout(d),c.resolve(a)},function(a){clearTimeout(d),c.reject(a)},c.notify),c.promise},l.delay=function(a,b){return void 0===b&&(b=a,a=void 0),l(a).delay(b)},p.prototype.delay=function(a){return this.then(function(b){var c=m();return setTimeout(function(){c.resolve(b)},a),c.promise})},l.nfapply=function(a,b){return l(a).nfapply(b)},p.prototype.nfapply=function(a){var b=m(),c=Z(a);return c.push(b.makeNodeResolver()),this.fapply(c).fail(b.reject),b.promise},l.nfcall=function(a){var b=Z(arguments,1);return l(a).nfapply(b)},p.prototype.nfcall=function(){var a=Z(arguments),b=m();return a.push(b.makeNodeResolver()),this.fapply(a).fail(b.reject),b.promise},l.nfbind=l.denodeify=function(a){var b=Z(arguments,1);return function(){var c=b.concat(Z(arguments)),d=m();return c.push(d.makeNodeResolver()),l(a).fapply(c).fail(d.reject),d.promise}},p.prototype.nfbind=p.prototype.denodeify=function(){var a=Z(arguments);return a.unshift(this),l.denodeify.apply(void 0,a)},l.nbind=function(a,b){var c=Z(arguments,2);return function(){function d(){return a.apply(b,arguments)}var e=c.concat(Z(arguments)),f=m();return e.push(f.makeNodeResolver()),l(d).fapply(e).fail(f.reject),f.promise}},p.prototype.nbind=function(){var a=Z(arguments,0);return a.unshift(this),l.nbind.apply(void 0,a)},l.nmapply=l.npost=function(a,b,c){return l(a).npost(b,c)},p.prototype.nmapply=p.prototype.npost=function(a,b){var c=Z(b||[]),d=m();return c.push(d.makeNodeResolver()),this.dispatch("post",[a,c]).fail(d.reject),d.promise},l.nsend=l.nmcall=l.ninvoke=function(a,b){var c=Z(arguments,2),d=m();return c.push(d.makeNodeResolver()),l(a).dispatch("post",[b,c]).fail(d.reject),d.promise},p.prototype.nsend=p.prototype.nmcall=p.prototype.ninvoke=function(a){var b=Z(arguments,1),c=m();return b.push(c.makeNodeResolver()),this.dispatch("post",[a,b]).fail(c.reject),c.promise},l.nodeify=Q,p.prototype.nodeify=function(a){return a?void this.then(function(b){X(function(){a(null,b)})},function(b){X(function(){a(b)})}):this};var lb=j();return l})}).call(this,b("JkpR2F"))},{JkpR2F:49}]},{},[1])(1)}); \ No newline at end of file diff --git a/dist/hamjest.js b/dist/hamjest.js index 78a8b2b..031d3b3 100644 --- a/dist/hamjest.js +++ b/dist/hamjest.js @@ -267,7 +267,8 @@ var matchers = { var utils = { isMatcher: Matcher.isMatcher, asMatcher: IsEqual.asMatcher, - acceptingMatcher: IsEqual.acceptingMatcher + acceptingMatcher: IsEqual.acceptingMatcher, + Description: _dereq_('./Description') }; var hamjest = {}; @@ -275,7 +276,7 @@ _.extend(hamjest, asserts, matchers, utils); module.exports = hamjest; -},{"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47}],7:[function(_dereq_,module,exports){ +},{"./Description":2,"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47}],7:[function(_dereq_,module,exports){ 'use strict'; var _ = (window._); diff --git a/dist/hamjest.min.js b/dist/hamjest.min.js index 06cff0e..987f200 100644 --- a/dist/hamjest.min.js +++ b/dist/hamjest.min.js @@ -1 +1 @@ -!function(a){if("object"==typeof exports)module.exports=a();else if("function"==typeof define&&define.amd)define(a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.hamjest=a()}}(function(){return 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);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g");else if(f.isArray(a))this.appendList("[",", ","]",a);else if(f.isFunction(a))this.append("Function"+(a.name?" "+a.name:""));else if(f.isRegExp(a))this.append(a.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(a))}catch(b){var c=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(a),this.useJsonForObjects=c}else this.append(a);return this},appendNonJson:function(a){this.append("{");var b=!0;f.forEach(a,function(a,c){b||this.append(", "),b=!1,this.append(c).append(": "),this.appendValue(a)},this),this.append("}")},appendList:function(a,b,d,e){return this.append(a),f.forEach(e,function(a,d){0!==d&&this.append(b),this.appendDescriptionOf(c(a))},this),this.append(d),this},get:function(){return a}})}var f=window._;b.exports=e},{}],3:[function(a,b){"use strict";function c(a,b,h){2===arguments.length&&(h=b,b=a,a="");var i=h.matches(b);if(d.isPromiseAlike(i))throw new f("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},c);if(!i){var j=new g;j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),h.describeMismatch(b,j);var k={};throw e.isFunction(h.getExpectedForDiff)&&e.isFunction(h.formatActualForDiff)&&(k={showDiff:!0,expected:h.getExpectedForDiff(),actual:h.formatActualForDiff(b)}),new f(j.get(),k,c)}}var d=window.Q,e=window._,f=a("assertion-error"),g=a("./Description");b.exports=c},{"./Description":2,"assertion-error":48}],4:[function(a,b){"use strict";function c(a){throw new d(a,{},c)}var d=a("assertion-error");b.exports=c},{"assertion-error":48}],5:[function(a,b){"use strict";b.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var a={};return Object.getOwnPropertyNames(this).forEach(function(b){a[b]=this[b]},this),a},configurable:!0})}},{}],6:[function(a,b){"use strict";var c=window._,d=a("./matchers/IsEqual"),e=a("./matchers/Matcher"),f=a("./matchers/SubstringMatcher"),g=a("./matchers/NumberComparisonMatcher"),h=a("./matchers/DateComparisonMatcher");a("./fixErrorJson")();var i={assertThat:a("./assertThat"),promiseThat:a("./promiseThat"),fail:a("./fail")},j={Matcher:e,TypeSafeMatcher:a("./matchers/TypeSafeMatcher"),FeatureMatcher:a("./matchers/FeatureMatcher"),anything:a("./matchers/IsAnything").anything,strictlyEqualTo:a("./matchers/IsSame").strictlyEqualTo,is:a("./matchers/Is").is,not:a("./matchers/IsNot").not,equalTo:d.equalTo,truthy:a("./matchers/truthy"),falsy:a("./matchers/falsy"),falsey:a("./matchers/falsy"),defined:a("./matchers/IsDefined").defined,undefined:a("./matchers/IsDefined").undefined,undef:a("./matchers/IsDefined").undefined,instanceOf:a("./matchers/IsInstanceOf").instanceOf,array:a("./matchers/IsArray").array,bool:a("./matchers/IsBoolean").bool,date:a("./matchers/IsDate").date,func:a("./matchers/IsFunction").func,number:a("./matchers/IsNumber").number,object:a("./matchers/IsObject").object,regExp:a("./matchers/IsRegExp").regExp,string:a("./matchers/IsString").string,containsString:f.containsString,startsWith:f.startsWith,endsWith:f.endsWith,matchesPattern:a("./matchers/IsStringMatching").matchesPattern,lessThan:g.lessThan,lessThanOrEqualTo:g.lessThanOrEqualTo,greaterThan:g.greaterThan,greaterThanOrEqualTo:g.greaterThanOrEqualTo,after:h.after,afterOrEqualTo:h.afterOrEqualTo,before:h.before,beforeOrEqualTo:h.beforeOrEqualTo,closeTo:a("./matchers/IsCloseTo").closeTo,allOf:a("./matchers/AllOf").allOf,anyOf:a("./matchers/AnyOf").anyOf,everyItem:a("./matchers/Every").everyItem,hasItem:a("./matchers/IsArrayWithItem").hasItem,hasItems:a("./matchers/IsArrayWithItems").hasItems,contains:a("./matchers/IsArrayContaining").contains,containsInAnyOrder:a("./matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,orderedBy:a("./matchers/IsArrayOrderedBy").orderedBy,hasSize:a("./matchers/IsCollectionWithSize").hasSize,hasProperties:a("./matchers/IsObjectWithProperties").hasProperties,hasProperty:a("./matchers/IsObjectWithProperties").hasProperty,"throws":a("./matchers/IsFunctionThrowing")["throws"],promise:a("./matchers/IsPromise").promise,fulfilled:a("./matchers/IsFulfilled").fulfilled,isFulfilledWith:a("./matchers/IsFulfilled").isFulfilledWith,willBe:a("./matchers/IsFulfilled").isFulfilledWith,rejected:a("./matchers/IsRejected").rejected,isRejectedWith:a("./matchers/IsRejected").isRejectedWith,promiseAllOf:a("./matchers/AllOf").allOf},k={isMatcher:e.isMatcher,asMatcher:d.asMatcher,acceptingMatcher:d.acceptingMatcher},l={};c.extend(l,i,j,k),b.exports=l},{"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47}],7:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.all)},describeTo:function(b){b.appendList("("," and ",")",a)},describeMismatch:function(b,c){var e=d.mapValues(a,function(a){return a.matches(b)}),g=!0;return f.describeMismatchAggregate(e,function(d,e){if(!d){var f=a[e];return g||c.append("\n"),g=!1,c.appendDescriptionOf(f).append(": "),f.describeMismatch(b,c)}})}})}var d=window._,e=a("./Matcher"),f=a("./promiseAgnostic");c.allOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45}],8:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.any)},describeTo:function(b){b.appendList("("," or ",")",a)}})}var d=window._,e=a("./Matcher"),f=a("./promiseAgnostic");c.anyOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45}],9:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a date ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)}})}var d=window._,e=a("./IsDate"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsDate").date;d.extend(c,{after:function(a){return new c(a,"after",function(b){return b>a})},afterOrEqualTo:function(a){return new c(a,"after or equal to",function(b){return b>=a})},before:function(a){return new c(a,"before",function(b){return a>b})},beforeOrEqualTo:function(a){return new c(a,"before or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsDate":23}],10:[function(a,b){"use strict";var c=window._,d=a("./TypeSafeMatcher"),e=a("./IsEqual").acceptingMatcher,f=a("./promiseAgnostic"),g=e(function(a){return c.create(new d,{isExpectedType:function(a){return c.isArray(a)||c.isObject(a)},matchesSafely:function(b){var d=c.map(b,function(b){return a.matches(b)});return f.matchesAggregate(d,c.all)},describeTo:function(b){b.append("every item is ").appendDescriptionOf(a)},describeMismatchSafely:function(b,d){var e;e=c.isArray(b)?c.map(b,function(b){return a.matches(b)}):c.mapValues(b,function(b){return a.matches(b)});var g=!0;return f.describeMismatchAggregate(e,function(c,e){c||(g||d.append(", "),g=!1,d.append("item ").appendValue(e).append(" "),a.describeMismatch(b[e],d))})}})});g.everyItem=function(a){return new g(a)},b.exports=g},{"./IsEqual":25,"./TypeSafeMatcher":43,"./promiseAgnostic":45}],11:[function(a,b){"use strict";function c(a,b,c,h){var i=f(a);return h=h||function(a){return a[c]},d.create(new e,{matches:function(a){var b=h(a);return i.matches(b)},describeTo:function(a){a.append(b).append(" ").appendDescriptionOf(i)},describeMismatch:function(a,b){var d=h(a);return g.describeMismatch(i.matches(d),function(){return b.append(c).append(" "),i.describeMismatch(d,b)},function(){b.append("\nfor ").appendValue(a)})}})}var d=window._,e=a("./Matcher"),f=a("./IsEqual").asMatcher,g=a("./promiseAgnostic");b.exports=c},{"./IsEqual":25,"./Matcher":40,"./promiseAgnostic":45}],12:[function(a,b){"use strict";var c=window._,d=a("./Matcher"),e=a("./IsEqual").acceptingMatcher,f=e(function(a){return c.create(new d,{matches:function(b){return a.matches(b)},describeTo:function(b){b.append("is ").appendDescriptionOf(a)},describeMismatch:function(b,c){return a.describeMismatch(b,c)},getExpectedForDiff:a.getExpectedForDiff,formatActualForDiff:a.formatActualForDiff})});f.is=function(a){return new f(a)},b.exports=f},{"./IsEqual":25,"./Matcher":40}],13:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(){return!0},describeTo:function(a){a.append("anything")}})}var d=window._,e=a("./Matcher");c.anything=function(){return new c},b.exports=c},{"./Matcher":40}],14:[function(a,b){"use strict";function c(){return d.create(new e,{isExpectedType:function(a){return d.isArray(a)},describeTo:function(a){a.append("an array")}})}var d=window._,e=a("./TypeSafeMatcher");c.array=function(){return new c},b.exports=c},{"./TypeSafeMatcher":43}],15:[function(a,b){"use strict";function c(a){var b=d.map(a,f);return d.create(new e,{matchesSafely:function(a){if(a.length!==b.length)return!1;var c=d.map(b,function(b,c){return b.matches(a[c])});return g.matchesAggregate(c,d.all)},describeTo:function(a){a.appendList("[",", ","]",b)},describeMismatchSafely:function(a,c){var e=d.map(a,function(a,c){return b.length>c?b[c].matches(a):void 0}),f=!0;return g.describeMismatchAggregate(e,function(d,e){return d||b.length<=e||a.length<=e?void 0:(f||c.append("\n"),f=!1,c.append("item ").append(e).append(": "),b[e].describeMismatch(a[e],c))},function(){f||c.append("\n"),a.length>b.length?c.appendList("not matched: ",", ","",a.slice(b.length)):a.lengtha})},greaterThanOrEqualTo:function(a){return new c(a,"greater than or equal to",function(b){return b>=a})},lessThan:function(a){return new c(a,"less than",function(b){return a>b})},lessThanOrEqualTo:function(a){return new c(a,"less than or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsNumber":31}],42:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a string ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)},getExpectedForDiff:function(){return a},formatActualForDiff:function(a){return a}})}var d=window._,e=a("./IsString"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsString").string;d.extend(c,{containsString:function(a){return new c(a,"containing",function(b){return-1!==b.indexOf(a)})},startsWith:function(a){return new c(a,"starting with",function(b){return 0===b.indexOf(a)})},endsWith:function(a){return new c(a,"ending with",function(b){return-1!==b.indexOf(a,b.length-a.length)})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsString":38}],43:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return this.isExpectedType(a)?this.matchesSafely(a):!1},describeMismatch:function(a,b){return this.isExpectedType(a)?this.describeMismatchSafely(a,b):d.isUndefined(a)?void b.append("was undefined"):void b.append("was a ").append(typeof a).append(" (").appendValue(a).append(")")},isExpectedType:function(){throw new Error("Not implemented")},matchesSafely:function(){return!0},describeMismatchSafely:function(){throw new Error("Not implemented")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],44:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!a},describeTo:function(a){a.append("falsy value")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],45:[function(a,b){"use strict";function c(a){if(d.isArray(a))return e.all(a);var b={};return d.forEach(a,function(a,c){b[c]=null,e(a).then(function(a){b[c]=a})}),e.all(d.toArray(a)).then(function(){return b})}var d=window._,e=window.Q,f={matches:function(a,b){return e.isPromiseAlike(a)?e(a).then(b):b(a)},matchesAggregate:function(a,b){return d.any(a,e.isPromiseAlike)?c(a).then(b):b(a)},describeMismatchAggregate:function(a,b,f){return d.any(a,e.isPromiseAlike)?c(a).then(function(a){var c=e();return d.forEach(a,function(a,d){c=c.then(function(){return b(a,d)})}),f&&(c=c.then(f)),c}):(d.forEach(a,function(a,c){return b(a,c)}),void(f&&f()))},describeMismatch:function(a,b,c){if(e.isPromiseAlike(a)){var d=e(a).then(b);return c&&(d=d.then(c)),d}b(a),c&&c()}};b.exports=f},{}],46:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!!a},describeTo:function(a){a.append("truthy value")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],47:[function(a,b){"use strict";function c(a,b,h){return 2===arguments.length&&(h=b,b=a,a=""),d(h.matches(b)).then(function(i){if(!i){var j=new f;return j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),d(h.describeMismatch(b,j)).then(function(){return g.isFunction(h.getExpectedForDiff)&&g.isFunction(h.formatActualForDiff)?d.all([h.getExpectedForDiff(),h.formatActualForDiff(b)]).spread(function(a,b){return{showDiff:!0,expected:a,actual:b}}):{}}).then(function(a){throw new e(j.get(),a,c)})}})}var d=window.Q,e=a("assertion-error"),f=a("./Description"),g=window._;b.exports=c},{"./Description":2,"assertion-error":48}],48:[function(a,b){function c(){function a(a,c){Object.keys(c).forEach(function(d){~b.indexOf(d)||(a[d]=c[d])})}var b=[].slice.call(arguments);return function(){for(var b=[].slice.call(arguments),c=0,d={};c");else if(f.isArray(a))this.appendList("[",", ","]",a);else if(f.isFunction(a))this.append("Function"+(a.name?" "+a.name:""));else if(f.isRegExp(a))this.append(a.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(a))}catch(b){var c=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(a),this.useJsonForObjects=c}else this.append(a);return this},appendNonJson:function(a){this.append("{");var b=!0;f.forEach(a,function(a,c){b||this.append(", "),b=!1,this.append(c).append(": "),this.appendValue(a)},this),this.append("}")},appendList:function(a,b,d,e){return this.append(a),f.forEach(e,function(a,d){0!==d&&this.append(b),this.appendDescriptionOf(c(a))},this),this.append(d),this},get:function(){return a}})}var f=window._;b.exports=e},{}],3:[function(a,b){"use strict";function c(a,b,h){2===arguments.length&&(h=b,b=a,a="");var i=h.matches(b);if(d.isPromiseAlike(i))throw new f("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},c);if(!i){var j=new g;j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),h.describeMismatch(b,j);var k={};throw e.isFunction(h.getExpectedForDiff)&&e.isFunction(h.formatActualForDiff)&&(k={showDiff:!0,expected:h.getExpectedForDiff(),actual:h.formatActualForDiff(b)}),new f(j.get(),k,c)}}var d=window.Q,e=window._,f=a("assertion-error"),g=a("./Description");b.exports=c},{"./Description":2,"assertion-error":48}],4:[function(a,b){"use strict";function c(a){throw new d(a,{},c)}var d=a("assertion-error");b.exports=c},{"assertion-error":48}],5:[function(a,b){"use strict";b.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var a={};return Object.getOwnPropertyNames(this).forEach(function(b){a[b]=this[b]},this),a},configurable:!0})}},{}],6:[function(a,b){"use strict";var c=window._,d=a("./matchers/IsEqual"),e=a("./matchers/Matcher"),f=a("./matchers/SubstringMatcher"),g=a("./matchers/NumberComparisonMatcher"),h=a("./matchers/DateComparisonMatcher");a("./fixErrorJson")();var i={assertThat:a("./assertThat"),promiseThat:a("./promiseThat"),fail:a("./fail")},j={Matcher:e,TypeSafeMatcher:a("./matchers/TypeSafeMatcher"),FeatureMatcher:a("./matchers/FeatureMatcher"),anything:a("./matchers/IsAnything").anything,strictlyEqualTo:a("./matchers/IsSame").strictlyEqualTo,is:a("./matchers/Is").is,not:a("./matchers/IsNot").not,equalTo:d.equalTo,truthy:a("./matchers/truthy"),falsy:a("./matchers/falsy"),falsey:a("./matchers/falsy"),defined:a("./matchers/IsDefined").defined,undefined:a("./matchers/IsDefined").undefined,undef:a("./matchers/IsDefined").undefined,instanceOf:a("./matchers/IsInstanceOf").instanceOf,array:a("./matchers/IsArray").array,bool:a("./matchers/IsBoolean").bool,date:a("./matchers/IsDate").date,func:a("./matchers/IsFunction").func,number:a("./matchers/IsNumber").number,object:a("./matchers/IsObject").object,regExp:a("./matchers/IsRegExp").regExp,string:a("./matchers/IsString").string,containsString:f.containsString,startsWith:f.startsWith,endsWith:f.endsWith,matchesPattern:a("./matchers/IsStringMatching").matchesPattern,lessThan:g.lessThan,lessThanOrEqualTo:g.lessThanOrEqualTo,greaterThan:g.greaterThan,greaterThanOrEqualTo:g.greaterThanOrEqualTo,after:h.after,afterOrEqualTo:h.afterOrEqualTo,before:h.before,beforeOrEqualTo:h.beforeOrEqualTo,closeTo:a("./matchers/IsCloseTo").closeTo,allOf:a("./matchers/AllOf").allOf,anyOf:a("./matchers/AnyOf").anyOf,everyItem:a("./matchers/Every").everyItem,hasItem:a("./matchers/IsArrayWithItem").hasItem,hasItems:a("./matchers/IsArrayWithItems").hasItems,contains:a("./matchers/IsArrayContaining").contains,containsInAnyOrder:a("./matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,orderedBy:a("./matchers/IsArrayOrderedBy").orderedBy,hasSize:a("./matchers/IsCollectionWithSize").hasSize,hasProperties:a("./matchers/IsObjectWithProperties").hasProperties,hasProperty:a("./matchers/IsObjectWithProperties").hasProperty,"throws":a("./matchers/IsFunctionThrowing")["throws"],promise:a("./matchers/IsPromise").promise,fulfilled:a("./matchers/IsFulfilled").fulfilled,isFulfilledWith:a("./matchers/IsFulfilled").isFulfilledWith,willBe:a("./matchers/IsFulfilled").isFulfilledWith,rejected:a("./matchers/IsRejected").rejected,isRejectedWith:a("./matchers/IsRejected").isRejectedWith,promiseAllOf:a("./matchers/AllOf").allOf},k={isMatcher:e.isMatcher,asMatcher:d.asMatcher,acceptingMatcher:d.acceptingMatcher,Description:a("./Description")},l={};c.extend(l,i,j,k),b.exports=l},{"./Description":2,"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsCollectionWithSize":22,"./matchers/IsDate":23,"./matchers/IsDefined":24,"./matchers/IsEqual":25,"./matchers/IsFulfilled":26,"./matchers/IsFunction":27,"./matchers/IsFunctionThrowing":28,"./matchers/IsInstanceOf":29,"./matchers/IsNot":30,"./matchers/IsNumber":31,"./matchers/IsObject":32,"./matchers/IsObjectWithProperties":33,"./matchers/IsPromise":34,"./matchers/IsRegExp":35,"./matchers/IsRejected":36,"./matchers/IsSame":37,"./matchers/IsString":38,"./matchers/IsStringMatching":39,"./matchers/Matcher":40,"./matchers/NumberComparisonMatcher":41,"./matchers/SubstringMatcher":42,"./matchers/TypeSafeMatcher":43,"./matchers/falsy":44,"./matchers/truthy":46,"./promiseThat":47}],7:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.all)},describeTo:function(b){b.appendList("("," and ",")",a)},describeMismatch:function(b,c){var e=d.mapValues(a,function(a){return a.matches(b)}),g=!0;return f.describeMismatchAggregate(e,function(d,e){if(!d){var f=a[e];return g||c.append("\n"),g=!1,c.appendDescriptionOf(f).append(": "),f.describeMismatch(b,c)}})}})}var d=window._,e=a("./Matcher"),f=a("./promiseAgnostic");c.allOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45}],8:[function(a,b){"use strict";function c(a){return d.create(new e,{matches:function(b){var c=d.map(a,function(a){return a.matches(b)});return f.matchesAggregate(c,d.any)},describeTo:function(b){b.appendList("("," or ",")",a)}})}var d=window._,e=a("./Matcher"),f=a("./promiseAgnostic");c.anyOf=function(){return new c(arguments)},b.exports=c},{"./Matcher":40,"./promiseAgnostic":45}],9:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a date ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)}})}var d=window._,e=a("./IsDate"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsDate").date;d.extend(c,{after:function(a){return new c(a,"after",function(b){return b>a})},afterOrEqualTo:function(a){return new c(a,"after or equal to",function(b){return b>=a})},before:function(a){return new c(a,"before",function(b){return a>b})},beforeOrEqualTo:function(a){return new c(a,"before or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsDate":23}],10:[function(a,b){"use strict";var c=window._,d=a("./TypeSafeMatcher"),e=a("./IsEqual").acceptingMatcher,f=a("./promiseAgnostic"),g=e(function(a){return c.create(new d,{isExpectedType:function(a){return c.isArray(a)||c.isObject(a)},matchesSafely:function(b){var d=c.map(b,function(b){return a.matches(b)});return f.matchesAggregate(d,c.all)},describeTo:function(b){b.append("every item is ").appendDescriptionOf(a)},describeMismatchSafely:function(b,d){var e;e=c.isArray(b)?c.map(b,function(b){return a.matches(b)}):c.mapValues(b,function(b){return a.matches(b)});var g=!0;return f.describeMismatchAggregate(e,function(c,e){c||(g||d.append(", "),g=!1,d.append("item ").appendValue(e).append(" "),a.describeMismatch(b[e],d))})}})});g.everyItem=function(a){return new g(a)},b.exports=g},{"./IsEqual":25,"./TypeSafeMatcher":43,"./promiseAgnostic":45}],11:[function(a,b){"use strict";function c(a,b,c,h){var i=f(a);return h=h||function(a){return a[c]},d.create(new e,{matches:function(a){var b=h(a);return i.matches(b)},describeTo:function(a){a.append(b).append(" ").appendDescriptionOf(i)},describeMismatch:function(a,b){var d=h(a);return g.describeMismatch(i.matches(d),function(){return b.append(c).append(" "),i.describeMismatch(d,b)},function(){b.append("\nfor ").appendValue(a)})}})}var d=window._,e=a("./Matcher"),f=a("./IsEqual").asMatcher,g=a("./promiseAgnostic");b.exports=c},{"./IsEqual":25,"./Matcher":40,"./promiseAgnostic":45}],12:[function(a,b){"use strict";var c=window._,d=a("./Matcher"),e=a("./IsEqual").acceptingMatcher,f=e(function(a){return c.create(new d,{matches:function(b){return a.matches(b)},describeTo:function(b){b.append("is ").appendDescriptionOf(a)},describeMismatch:function(b,c){return a.describeMismatch(b,c)},getExpectedForDiff:a.getExpectedForDiff,formatActualForDiff:a.formatActualForDiff})});f.is=function(a){return new f(a)},b.exports=f},{"./IsEqual":25,"./Matcher":40}],13:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(){return!0},describeTo:function(a){a.append("anything")}})}var d=window._,e=a("./Matcher");c.anything=function(){return new c},b.exports=c},{"./Matcher":40}],14:[function(a,b){"use strict";function c(){return d.create(new e,{isExpectedType:function(a){return d.isArray(a)},describeTo:function(a){a.append("an array")}})}var d=window._,e=a("./TypeSafeMatcher");c.array=function(){return new c},b.exports=c},{"./TypeSafeMatcher":43}],15:[function(a,b){"use strict";function c(a){var b=d.map(a,f);return d.create(new e,{matchesSafely:function(a){if(a.length!==b.length)return!1;var c=d.map(b,function(b,c){return b.matches(a[c])});return g.matchesAggregate(c,d.all)},describeTo:function(a){a.appendList("[",", ","]",b)},describeMismatchSafely:function(a,c){var e=d.map(a,function(a,c){return b.length>c?b[c].matches(a):void 0}),f=!0;return g.describeMismatchAggregate(e,function(d,e){return d||b.length<=e||a.length<=e?void 0:(f||c.append("\n"),f=!1,c.append("item ").append(e).append(": "),b[e].describeMismatch(a[e],c))},function(){f||c.append("\n"),a.length>b.length?c.appendList("not matched: ",", ","",a.slice(b.length)):a.lengtha})},greaterThanOrEqualTo:function(a){return new c(a,"greater than or equal to",function(b){return b>=a})},lessThan:function(a){return new c(a,"less than",function(b){return a>b})},lessThanOrEqualTo:function(a){return new c(a,"less than or equal to",function(b){return a>=b})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsNumber":31}],42:[function(a,b){"use strict";function c(a,b,c){return f(a,g(h())),d.create(new e,{matchesSafely:function(a){return c.call(this,a)},describeTo:function(c){c.append("a string ").append(b).append(" ").appendValue(a)},describeMismatchSafely:function(a,b){b.append("was ").appendValue(a)},getExpectedForDiff:function(){return a},formatActualForDiff:function(a){return a}})}var d=window._,e=a("./IsString"),f=a("../assertThat"),g=a("./Is").is,h=a("./IsString").string;d.extend(c,{containsString:function(a){return new c(a,"containing",function(b){return-1!==b.indexOf(a)})},startsWith:function(a){return new c(a,"starting with",function(b){return 0===b.indexOf(a)})},endsWith:function(a){return new c(a,"ending with",function(b){return-1!==b.indexOf(a,b.length-a.length)})}}),b.exports=c},{"../assertThat":3,"./Is":12,"./IsString":38}],43:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return this.isExpectedType(a)?this.matchesSafely(a):!1},describeMismatch:function(a,b){return this.isExpectedType(a)?this.describeMismatchSafely(a,b):d.isUndefined(a)?void b.append("was undefined"):void b.append("was a ").append(typeof a).append(" (").appendValue(a).append(")")},isExpectedType:function(){throw new Error("Not implemented")},matchesSafely:function(){return!0},describeMismatchSafely:function(){throw new Error("Not implemented")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],44:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!a},describeTo:function(a){a.append("falsy value")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],45:[function(a,b){"use strict";function c(a){if(d.isArray(a))return e.all(a);var b={};return d.forEach(a,function(a,c){b[c]=null,e(a).then(function(a){b[c]=a})}),e.all(d.toArray(a)).then(function(){return b})}var d=window._,e=window.Q,f={matches:function(a,b){return e.isPromiseAlike(a)?e(a).then(b):b(a)},matchesAggregate:function(a,b){return d.any(a,e.isPromiseAlike)?c(a).then(b):b(a)},describeMismatchAggregate:function(a,b,f){return d.any(a,e.isPromiseAlike)?c(a).then(function(a){var c=e();return d.forEach(a,function(a,d){c=c.then(function(){return b(a,d)})}),f&&(c=c.then(f)),c}):(d.forEach(a,function(a,c){return b(a,c)}),void(f&&f()))},describeMismatch:function(a,b,c){if(e.isPromiseAlike(a)){var d=e(a).then(b);return c&&(d=d.then(c)),d}b(a),c&&c()}};b.exports=f},{}],46:[function(a,b){"use strict";function c(){return d.create(new e,{matches:function(a){return!!a},describeTo:function(a){a.append("truthy value")}})}var d=window._,e=a("./Matcher");b.exports=c},{"./Matcher":40}],47:[function(a,b){"use strict";function c(a,b,h){return 2===arguments.length&&(h=b,b=a,a=""),d(h.matches(b)).then(function(i){if(!i){var j=new f;return j.append(a).append("\nExpected: ").appendDescriptionOf(h).append("\n but: "),d(h.describeMismatch(b,j)).then(function(){return g.isFunction(h.getExpectedForDiff)&&g.isFunction(h.formatActualForDiff)?d.all([h.getExpectedForDiff(),h.formatActualForDiff(b)]).spread(function(a,b){return{showDiff:!0,expected:a,actual:b}}):{}}).then(function(a){throw new e(j.get(),a,c)})}})}var d=window.Q,e=a("assertion-error"),f=a("./Description"),g=window._;b.exports=c},{"./Description":2,"assertion-error":48}],48:[function(a,b){function c(){function a(a,c){Object.keys(c).forEach(function(d){~b.indexOf(d)||(a[d]=c[d])})}var b=[].slice.call(arguments);return function(){for(var b=[].slice.call(arguments),c=0,d={};c