/**
Jazz - A simple Crockford-like class implementation for Javascript version: 0.1.1 Author: Alcides Queiroz (alcidesqueiroz@gmail.com) Available via the MIT license (http://www.opensource.org/licenses/mit-license.php) Date: 2013-10-23 **/
(function(e,t){function r(e,t){this.name=“JZException”;this.message=“ ”+t}function s(e){if(null==e||“object”!=typeof e)return e;var t=e.constructor();for(var n in e){if(e.hasOwnProperty(n))t=e}return t}function o(e){Object.defineProperty(e,“static”,{get: function(){return this}});Object.defineProperty(e,“abstract”,{get: function(){this._abstract=true;return this}});Object.defineProperty(e,“singleton”,{get:function(){if(!this._singleton){this._singleton=true;var e={};Object.defineProperty(this, “singleInstance”,{get:function(){if(!e.obj)this.build(e);return e.obj}})}return this}})}function u(e,t){e.prototype=new t;var n={},r=e.prototype;e.prototype.constructor=t;e.prototype.callSuper=function(e){if(!(e in n)){n=0}var i,s,o=n,u=t.prototype;if(o){while(o){u=u.constructor.prototype;o–}i=u}else{i=r;if(i==this)i=u}n++;s=i.apply(this,Array.prototype.slice.apply(arguments,));n–;return s};return e}if(t===undefined)throw new r(“1”,“jQuery is required for Sideshow to work.”);var n=“Jazz”;r.prototype=new Error;r.prototype.constructor=r;var i=function(){};Object.defineProperty(i, “VERSION”,{get:function(){return“0.1.1”}});i.Class=function(){var e=arguments;var t;var n=function(){};if(typeof e===“object”){n=e.constructor||n;if(e.initializer)t=e.initializer}else if(typeof e===“function”){t=e}u(n,i);n.extending=this.extending;n.method=this.method;n.field=this.field;n.build=this.build;n._fields={};n._initializers=t?:[];o(n);return n};i.extending=function(e){this.baseClass=e;this._inheritedFields=;var t=e;while(t!==undefined){if(t._fields!==undefined)this._inheritedFields.push(t._fields);this._initializers=t._initializers.concat(this._initializers);t=t.baseClass}return u(this,e)};i.method=function(e,t){this.prototype=t;return this};i.build=function(){function e(e,t){for(var n in t){var r=t;if(!e)e=s®}}if(this._abstract)throw new r(“2”,“Abstract classes cannot be instantiated.”);if(this._singleton&&arguments.length===0)return this.singleInstance;var t=new this;if(this._initializers)for(var n=0;ne
“’ already exists.”);this._fields=t!==undefined?t:null;return this};i.Enum=function(){var e={};for(var t=0;t<arguments.length;t++){e[arguments]=arguments}if(Object.freeze)Object.freeze(e);return e};if(e===undefined){e=i}else throw new r(“4”,‘The global object “’n
‘” is already being used.’)})(window,jQuery);