!function(){var t=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function n(e){var i=this.prototype;t=!0;var s=new this;for(var a in t=!1,e)s[a]="function"==typeof e[a]&&"function"==typeof i[a]?function(t,n){return function(){var e=this._super;this._super=function(n){return i[t].apply(this,n||[])};var s=n.apply(this,arguments);return this._super=e,s}}(a,e[a]):e[a];function r(){!t&&this._init&&this._init.apply(this,arguments)}return r.prototype=s,r.prototype.constructor=r,r.extend=n,r}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,n){return n.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var t=camelCase(this.name);$[t]=this,$.fn[t]=function(n){var e=Array.prototype.slice.call(arguments,1);return $[t]._isNotChained(n,e)?$[t][n].apply($[t],[this[0]].concat(e)):this.each(function(){if("string"==typeof n){if("_"===n[0]||!$[t][n])throw"Unknown method: "+n;$[t][n].apply($[t],[this].concat(e))}else $[t]._attach(this,n)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,n){return"option"===t&&(0===n.length||1===n.length&&"string"==typeof n[0])||$.inArray(t,this._getters)>-1},_attach:function(t,n){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),n=$.extend({},this.defaultOptions,this._getMetadata(t),n||{});var e=$.extend({name:this.name,elem:t,options:n},this._instSettings(t,n));t.data(this.name,e),this._postAttach(t,e),this.option(t,n)}},_instSettings:function(t,n){return{}},_postAttach:function(t,n){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";for(var name in data=(data=data.replace(/'/g,'"')).replace(/([a-zA-Z0-9]+):/g,function(t,n,e){var i=data.substring(0,e).match(/"/g);return i&&i.length%2!=0?n+":":'"'+n+'":'}),data=$.parseJSON("{"+data+"}")){var value=data[name];"string"==typeof value&&value.match(/^new Date\((.*)\)$/)&&(data[name]=eval(value))}return data}catch(e){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,n,e){var i=(t=$(t)).data(this.name);if(!n||"string"==typeof n&&null==e){var s=(i||{}).options;return s&&n?s[n]:s}if(t.hasClass(this._getMarker())){var s=n||{};"string"==typeof n&&((s={})[n]=e),this._optionsChanged(t,i,s),$.extend(i.options,s)}},_optionsChanged:function(t,n,e){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,n){}}),$.JQPlugin={createPlugin:function(t,n){"object"==typeof t&&(n=t,t="JQPlugin"),t=camelCase(t);var e=camelCase(n.name);JQClass.classes[e]=JQClass.classes[t].extend(n),new JQClass.classes[e]}}}(jQuery);