define(["exports","./when-4bbc8319"],function(t,n){"use strict";function o(t){var e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}n.defined(Object.create)&&((o.prototype=Object.create(Error.prototype)).constructor=o),o.prototype.toString=function(){var t=this.name+": "+this.message;return n.defined(this.stack)&&(t+="\n"+this.stack.toString()),t},o.throwInstantiationError=function(){throw new o("This function defines an interface and should not be called directly.")};var a={};function r(t,e,n){return"Expected "+n+" to be typeof "+e+", actual typeof was "+t}function e(t){var e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}a.typeOf={},a.defined=function(t,e){if(!n.defined(e))throw new o(t+" is required, actual value was undefined")},a.typeOf.func=function(t,e){if("function"!=typeof e)throw new o(r(typeof e,"function",t))},a.typeOf.string=function(t,e){if("string"!=typeof e)throw new o(r(typeof e,"string",t))},a.typeOf.number=function(t,e){if("number"!=typeof e)throw new o(r(typeof e,"number",t))},a.typeOf.number.lessThan=function(t,e,n){if(a.typeOf.number(t,e),n<=e)throw new o("Expected "+t+" to be less than "+n+", actual value was "+e)},a.typeOf.number.lessThanOrEquals=function(t,e,n){if(a.typeOf.number(t,e),n