!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,a,b,e){var i=t.Backbone,r=Array.prototype.slice;a.VERSION="1.3.3",a.$=e,a.noConflict=function(){return t.Backbone=i,this},a.emulateHTTP=!1,a.emulateJSON=!1;var n=function(i,t,n){b.each(t,function(t,e){b[e]&&(i.prototype[e]=function(t,n,s){switch(t){case 1:return function(){return b[n](this[s])};case 2:return function(t){return b[n](this[s],t)};case 3:return function(t,e){return b[n](this[s],o(t,this),e)};case 4:return function(t,e,i){return b[n](this[s],o(t,this),e,i)};default:return function(){var t=r.call(arguments);return t.unshift(this[s]),b[n].apply(b,t)}}}(t,e,n))})},o=function(e,t){return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?s(e):b.isString(e)?function(t){return t.get(e)}:e},s=function(t){var e=b.matches(t);return function(t){return e(t.attributes)}},h=a.Events={},u=/\s+/,c=function(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);othis.length?this.length:n)<0&&(n+=this.length+1);for(var s=[],r=[],o=[],a=[],h={},u=e.add,c=e.merge,l=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,g=b.isString(this.comparator)?this.comparator:null,p=0;p