{"action":"created","issue":{"url":"https://api.github.com/repos/gitterHQ/gitter/issues/827","labels_url":"https://api.github.com/repos/gitterHQ/gitter/issues/827/labels{/name}","comments_url":"https://api.github.com/repos/gitterHQ/gitter/issues/827/comments","events_url":"https://api.github.com/repos/gitterHQ/gitter/issues/827/events","html_url":"https://github.com/gitterHQ/gitter/issues/827","id":102766337,"number":827,"title":"gitter freezing on firefox","user":{"login":"AnbuKakashi","id":10999416,"avatar_url":"https://avatars.githubusercontent.com/u/10999416?v=3","gravatar_id":"","url":"https://api.github.com/users/AnbuKakashi","html_url":"https://github.com/AnbuKakashi","followers_url":"https://api.github.com/users/AnbuKakashi/followers","following_url":"https://api.github.com/users/AnbuKakashi/following{/other_user}","gists_url":"https://api.github.com/users/AnbuKakashi/gists{/gist_id}","starred_url":"https://api.github.com/users/AnbuKakashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnbuKakashi/subscriptions","organizations_url":"https://api.github.com/users/AnbuKakashi/orgs","repos_url":"https://api.github.com/users/AnbuKakashi/repos","events_url":"https://api.github.com/users/AnbuKakashi/events{/privacy}","received_events_url":"https://api.github.com/users/AnbuKakashi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-24T10:56:12Z","updated_at":"2015-08-24T17:16:01Z","closed_at":null,"body":"\r\nSo i have this issue with scripts, where as soon as i join Gitter it will just freeze and say unresponsive script.  I dont know what to do, i've had pretty much same on slack with ff on win 7.\r\nIt does not seem to happen on chrome so it sucks to use both ff and chrome for one thing. \r\nWhile i could only use chrome, i love ff and use chrome only as back up.\r\n![f75bf2d35b2125de199adbda9c9021bc](https://cloud.githubusercontent.com/assets/10999416/9438565/11f84cb4-4a5f-11e5-846b-718b138f7602.png)\r\n![4a37d808d0a48e09671de10817cb67dd](https://cloud.githubusercontent.com/assets/10999416/9438564/11f4c35a-4a5f-11e5-8dde-34bd0a6148f0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/gitterHQ/gitter/issues/comments/134305444","html_url":"https://github.com/gitterHQ/gitter/issues/827#issuecomment-134305444","issue_url":"https://api.github.com/repos/gitterHQ/gitter/issues/827","id":134305444,"user":{"login":"AnbuKakashi","id":10999416,"avatar_url":"https://avatars.githubusercontent.com/u/10999416?v=3","gravatar_id":"","url":"https://api.github.com/users/AnbuKakashi","html_url":"https://github.com/AnbuKakashi","followers_url":"https://api.github.com/users/AnbuKakashi/followers","following_url":"https://api.github.com/users/AnbuKakashi/following{/other_user}","gists_url":"https://api.github.com/users/AnbuKakashi/gists{/gist_id}","starred_url":"https://api.github.com/users/AnbuKakashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnbuKakashi/subscriptions","organizations_url":"https://api.github.com/users/AnbuKakashi/orgs","repos_url":"https://api.github.com/users/AnbuKakashi/repos","events_url":"https://api.github.com/users/AnbuKakashi/events{/privacy}","received_events_url":"https://api.github.com/users/AnbuKakashi/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T17:16:01Z","updated_at":"2015-08-24T17:16:01Z","body":"Here is what i got from debugger for error on pic 1:\r\n\r\nThe second line is the one flagged in debugger.\r\n\r\n```\r\n!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,a){for(var s,l,c=0,u=[];c<o.length;c++)l=o[c],r[l]&&u.push.apply(u,r[l]),r[l]=0;for(s in a)t[s]=a[s];for(n&&n(o,a);u.length;)u.shift().call(null,e);return a[0]?(i[0]=0,e(0)):void 0};var i={},r={34:0};return e.e=function(t,n){if(0===r[t])return n.call(null,e);if(void 0!==r[t])r[t].push(n);else{r[t]=[n];var i=document.getElementsByTagName(\"head\")[0],o=document.createElement(\"script\");o.type=\"text/javascript\",o.charset=\"utf-8\",o.async=!0,o.src=e.p+\"\"+t+\".chunk.js\",i.appendChild(o)}},e.m=t,e.c=i,e.p=\"/_s/l/js/\",e(0)}({0:function(t,e,n){n(378),n(2),n(4),n(6),n(3),n(107),n(16),n(15),n(18),n(62),n(256),n(133),t.exports=n(35)},2:function(t,e,n){\"use strict\";var i=n(3),r=n(9);t.exports=function(){function t(){var t;if(a.troupe)t=a.troupe;else if(a.troupeId)t={id:a.troupeId};else if(window.cordova&&0===window.location.pathname.indexOf(\"/mobile/chat\")){var e=window.location.hash.split(\"#\")[1]||window.localStorage.lastTroupeId;if(!e)return void(window.location.pathname=\"/mobile/home\");window.localStorage.lastTroupeId=e,t={id:e}}else r.troupeId&&(t={id:r.troupeId});return new s(t)}function e(){var t;return a.user?t=a.user:a.userId&&(t={id:a.userId}),new s(t)}function n(t,e){return Object.keys(e.attributes).forEach(function(e){t.hasOwnProperty(e)||(t[e]=null)}),t}function o(){var t=window.troupeEnv||{};if(r.env){var e;try{e=JSON.parse(r.env)}catch(n){}e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}return t}var a=window.troupeContext||{},s=i.Model.extend({watch:function(t,e,n){this.on(t,e,n),e.call(n,this)}}),l=t(),c=e(),u=function(){return a};u.troupe=function(){return l},u.getTroupeId=function(){return l.id},u.setTroupeId=function(t){l.set(n({id:t},l))},u.setTroupe=function(t){l.set(n(t,l))},u.getUserId=function(){return c.id},u.setUser=function(t){c.set(n(t,c))},u.isAuthed=function(){return!!c.id},u.getHomeUser=function(){return u().homeUser},u.inTroupeContext=function(){return!!l.id},u.inOneToOneTroupeContext=function(){return u.inTroupeContext()?!!l.get(\"oneToOne\"):!1},u.getUser=function(){return c.toJSON()},u.user=function(){return c},u.getTroupe=function(){return l.toJSON()},u.popEvent=function(t){var e=a.events;if(e){var n=e.indexOf(t);if(n>=0)return e.splice(n,1),!0}};var h=o();return u.env=function(t){return h[t]},u.getAccessToken=function(t){function e(){var i=window.bearerToken||r.bearerToken||a.accessToken;if(i)return t(i);if(n++,n>50){if(window.sessionStorage){var o=parseInt(window.sessionStorage.getItem(\"forced_reload\"),10);if(o&&Date.now()<o)return;window.sessionStorage.setItem(\"forced_reload\",Date.now()+6e4)}return window.location.reload(!0)}setTimeout(e,100)}var n=0;return h.anonymous?t():void e()},u.isLoggedIn=function(){return u.env(\"loggedIn\")?!0:!!c.id},u.onUserId=function(t,e){c.id?t.call(e,c.id):c.once(\"change:id\",function(){t.call(e,c.id)})},u.lang=function(){if(a.lang)return a.lang;var t=u.env(\"lang\");return t?t:[window.navigator.language]},u.testOnly={resetTroupeContext:function(n){a=n,l=t(),c=e()}},u}()},3:function(t,e,n){var i,r;(function(o){!function(a){var s=\"object\"==typeof self&&self.self==self&&self||\"object\"==typeof o&&o.global==o&&o;i=[n(4),n(6),e],r=function(t,e,n){s.Backbone=a(s,n,t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(function(t,e,n,i){var r=t.Backbone,o=[].slice;e.VERSION=\"1.2.1\",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],t,r)};case 4:return function(t,r,o){return n[e](this[i],t,r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}},s=function(t,e,i){n.each(e,function(e,r){n[r]&&(t.prototype[r]=a(e,r,i))})},l=e.Events={},c=/\\s+/,u=function(t,e,i,r,o){var a,s=0;if(i&&\"object\"==typeof i){void 0!==r&&\"context\"in o&&void 0===o.context&&(o.context=r);for(a=n.keys(i);s<a.length;s++)e=t(e,a[s],i[a[s]],o)}else if(i&&c.test(i))for(a=i.split(c);s<a.length;s++)e=t(e,a[s],r,o);else e=t(e,i,r,o);return e};l.on=function(t,e,n){return h(this,t,e,n)};var h=function(t,e,n,i,r){if(t._events=u(d,t._events||{},e,n,{context:i,ctx:t,listening:r}),r){var o=t._listeners||(t._listeners={});o[r.id]=r}return t};l.listenTo=function(t,e,i){if(!t)return this;var r=t._listenId||(t._listenId=n.uniqueId(\"l\")),o=this._listeningTo||(this._listeningTo={}),a=o[r];if(!a){var s=this._listenId||(this._listenId=n.uniqueId(\"l\"));a=o[r]={obj:t,objId:r,id:s,listeningTo:o,count:0}}return h(t,e,i,this,a),this};var d=function(t,e,n,i){if(n){var r=t[e]||(t[e]=[]),o=i.context,a=i.ctx,s=i.listening;s&&s.count++,r.push({callback:n,context:o,ctx:o||a,listening:s})}return t};l.off=function(t,e,n){return this._events?(this._events=u(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(t,e,i){var r=this._listeningTo;if(!r)return this;for(var o=t?[t._listenId]:n.keys(r),a=0;a<o.length;a++){var s=r[o[a]];if(!s)break;s.obj.off(e,i,this)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var f=function(t,e,i,r){if(t){var o,a=0,s=r.context,l=r.listeners;if(e||i||s){for(var c=e?[e]:n.keys(t);a<c.length;a++){e=c[a];var u=t[e];if(!u)break;for(var h=[],d=0;d<u.length;d++){var f=u[d];i&&i!==f.callback&&i!==f.callback._callback||s&&s!==f.context?h.push(f):(o=f.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}h.length?t[e]=h:delete t[e]}return n.size(t)?t:void 0}for(var p=n.keys(l);a<p.length;a++)o=l[p[a]],delete l[o.id],delete o.listeningTo[o.objId]}};l.once=function(t,e,i){var r=u(p,{},t,e,n.bind(this.off,this));return this.on(r,void 0,i)},l.listenToOnce=function(t,e,i){var r=u(p,{},e,i,n.bind(this.stopListening,this,t));return this.listenTo(t,r)};var p=function(t,e,i,r){if(i){var o=t[e]=n.once(function(){r(e,o),i.apply(this,arguments)});o._callback=i}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;e>i;i++)n[i]=arguments[i+1];return u(m,this._events,t,void 0,n),this};var m=function(t,e,n,i){if(t){var r=t[e],o=t.all;r&&o&&(o=o.slice()),r&&g(r,i),o&&g(o,[e].concat(i))}return t},g=function(t,e){var n,i=-1,r=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};l.bind=l.on,l.unbind=l.off,n.extend(e,l);var v=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,\"defaults\")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,l,{changed:null,validationError:null,idAttribute:\"id\",cidPrefix:\"c\",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null==t)return this;var r;if(\"object\"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,a=i.silent,s=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,h=this._previousAttributes;this.idAttribute in r&&(this.id=r[this.idAttribute]);for(var d in r)e=r[d],n.isEqual(c[d],e)||s.push(d),n.isEqual(h[d],e)?delete u[d]:u[d]=e,o?delete c[d]:c[d]=e;if(!a){s.length&&(this._pending=i);for(var f=0;f<s.length;f++)this.trigger(\"change:\"+s[f],this,c[s[f]],i)}if(l)return this;if(!a)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger(\"change\",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e=this._changing?this._previousAttributes:this.attributes,i={};for(var r in t){var o=t[r];n.isEqual(e[r],o)||(i[r]=o)}return n.size(i)?i:!1},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,i=t.success;return t.success=function(n){var r=t.parse?e.parse(n,t):n;return e.set(r,t)?(i&&i.call(t.context,e,n,t),void e.trigger(\"sync\",e,n,t)):!1},V(this,t),this.sync(\"read\",this,t)},save:function(t,e,i){var r;null==t||\"object\"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0,parse:!0},i);var o=i.wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var a=this,s=i.success,l=this.attributes;i.success=function(t){a.attributes=l;var e=i.parse?a.parse(t,i):t;return o&&(e=n.extend({},r,e)),e&&!a.set(e,i)?!1:(s&&s.call(i.context,a,t,i),void a.trigger(\"sync\",a,t,i))},V(this,i),r&&o&&(this.attributes=n.extend({},l,r));var c=this.isNew()?\"create\":i.patch?\"patch\":\"update\";\"patch\"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=t.wait,o=function(){e.stopListening(),e.trigger(\"destroy\",e,e.collection,t)};t.success=function(n){r&&o(),i&&i.call(t.context,e,n,t),e.isNew()||e.trigger(\"sync\",e,n,t)};var a=!1;return this.isNew()?n.defer(t.success):(V(this,t),a=this.sync(\"delete\",this,t)),r||o(),a},url:function(){var t=n.result(this,\"urlRoot\")||n.result(this.collection,\"url\")||H();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\\/]$/,\"$&/\")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return i?(this.trigger(\"invalid\",this,i,n.extend(e,{validationError:i})),!1):!0}});var y={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};s(v,y,\"attributes\");var w=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},_={add:!0,remove:!0,merge:!0},b={add:!0,remove:!1};n.extend(w.prototype,l,{model:v,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,b))},remove:function(t,e){e=n.extend({},e);var i=!n.isArray(t);t=i?[t]:n.clone(t);var r=this._removeModels(t,e);return!e.silent&&r&&this.trigger(\"update\",this,e),i?r[0]:r},set:function(t,e){e=n.defaults({},e,_),e.parse&&!this._isModel(t)&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:t.slice();var r,o,a,s,l,c=e.at;null!=c&&(c=+c),0>c&&(c+=this.length+1);for(var u=this.comparator&&null==c&&e.sort!==!1,h=n.isString(this.comparator)?this.comparator:null,d=[],f=[],p={},m=e.add,g=e.merge,v=e.remove,y=!u&&m&&v?[]:!1,w=!1,b=0;b<t.length;b++){if(a=t[b],s=this.get(a))v&&(p[s.cid]=!0),g&&a!==s&&(a=this._isModel(a)?a.attributes:a,e.parse&&(a=s.parse(a,e)),s.set(a,e),u&&!l&&s.hasChanged(h)&&(l=!0)),t[b]=s;else if(m){if(o=t[b]=this._prepareModel(a,e),!o)continue;d.push(o),this._addReference(o,e)}o=s||o,o&&(r=this.modelId(o.attributes),!y||!o.isNew()&&p[r]||(y.push(o),w=w||!this.models[b]||o.cid!==this.models[b].cid),p[r]=!0)}if(v){for(var b=0;b<this.length;b++)p[(o=this.models[b]).cid]||f.push(o);f.length&&this._removeModels(f,e)}if(d.length||w)if(u&&(l=!0),this.length+=d.length,null!=c)for(var b=0;b<d.length;b++)this.models.splice(c+b,0,d[b]);else{y&&(this.models.length=0);for(var x=y||d,b=0;b<x.length;b++)this.models.push(x[b])}if(l&&this.sort({silent:!0}),!e.silent){for(var k=null!=c?n.clone(e):e,b=0;b<d.length;b++)null!=c&&(k.index=c+b),(o=d[b]).trigger(\"add\",o,this,k);(l||w)&&this.trigger(\"sort\",this,e),(d.length||f.length)&&this.trigger(\"update\",this,e)}return i?t[0]:t},reset:function(t,e){e=e?n.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger(\"reset\",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null==t)return void 0;var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]},at:function(t){return 0>t&&(t+=this.length),this.models[t]},where:function(t,e){var i=n.matches(t);return this[e?\"find\":\"filter\"](function(t){return i(t.attributes)})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error(\"Cannot sort a set without a comparator\");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger(\"sort\",this,t),this},pluck:function(t){return n.invoke(this.models,\"get\",t)},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,i=this;return t.success=function(n){var r=t.reset?\"reset\":\"set\";i[r](n,t),e&&e.call(t.context,i,n,t),i.trigger(\"sync\",i,n,t)},V(this,t),this.sync(\"read\",this,t)},create:function(t,e){e=e?n.clone(e):{};var i=e.wait;if(t=this._prepareModel(t,e),!t)return!1;i||this.add(t,e);var r=this,o=e.success;return e.success=function(t,e,n){i&&r.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||\"id\"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger(\"invalid\",this,i.validationError,e),!1):i},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=this.get(t[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,e.silent||(e.index=o,r.trigger(\"remove\",r,this,e)),n.push(r),this._removeReference(r,e)}}return n.length?n:!1},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on(\"all\",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){if(\"add\"!==t&&\"remove\"!==t||n===this){if(\"destroy\"===t&&this.remove(e,i),\"change\"===t){var r=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}});var x={forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:2,contains:2,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3};s(w,x,\"models\");var k=[\"groupBy\",\"countBy\",\"sortBy\",\"indexBy\"];n.each(k,function(t){n[t]&&(w.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)})});var T=e.View=function(t){this.cid=n.uniqueId(\"view\"),n.extend(this,n.pick(t,M)),this._ensureElement(),this.initialize.apply(this,arguments)},C=/^(\\S+)\\s*(.*)$/,M=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];n.extend(T.prototype,l,{tagName:\"div\",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,\"events\")),!t)return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[i]),i){var r=e.match(C);this.delegate(r[1],r[2],n.bind(i,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+\".delegateEvents\"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(\".delegateEvents\"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+\".delegateEvents\"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,\"el\"));else{var t=n.extend({},n.result(this,\"attributes\"));this.id&&(t.id=n.result(this,\"id\")),this.className&&(t[\"class\"]=n.result(this,\"className\")),this.setElement(this._createElement(n.result(this,\"tagName\"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,i,r){var o=E[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:o,dataType:\"json\"};if(r.url||(a.url=n.result(i,\"url\")||H()),null!=r.data||!i||\"create\"!==t&&\"update\"!==t&&\"patch\"!==t||(a.contentType=\"application/json\",a.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(a.contentType=\"application/x-www-form-urlencoded\",a.data=a.data?{model:a.data}:{}),r.emulateHTTP&&(\"PUT\"===o||\"DELETE\"===o||\"PATCH\"===o)){a.type=\"POST\",r.emulateJSON&&(a.data._method=o);var s=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader(\"X-HTTP-Method-Override\",o),s?s.apply(this,arguments):void 0}}\"GET\"===a.type||r.emulateJSON||(a.processData=!1);var l=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,l&&l.call(r.context,t,e,n)};var c=r.xhr=e.ajax(n.extend(a,r));return i.trigger(\"request\",i,c,r),c};var E={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var S=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},D=/\\((.*?)\\)/g,I=/(\\(\\?)?:\\w+/g,L=/\\*\\w+/g,N=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;n.extend(S.prototype,l,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=\"\"),r||(r=this[i]);var o=this;return e.history.route(t,function(n){var a=o._extractParameters(t,n);o.execute(r,a,i)!==!1&&(o.trigger.apply(o,[\"route:\"+i].concat(a)),o.trigger(\"route\",i,a),e.history.trigger(\"route\",o,i,a))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,\"routes\");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(N,\"\\\\$&\").replace(D,\"(?:$1)?\").replace(I,function(t,e){return e?t:\"([^/?]+)\"}).replace(L,\"([^?]*?)\"),new RegExp(\"^\"+t+\"(?:\\\\?([\\\\s\\\\S]*))?$\")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],n.bindAll(this,\"checkUrl\"),\"undefined\"!=typeof window&&(this.location=window.location,this.history=window.history)},R=/^[#\\/]|\\s+$/g,O=/^\\/+|\\/+$/g,P=/#.*$/;A.started=!1,n.extend(A.prototype,l,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\\/]$/,\"$&/\");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+\"/\";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,\"%2525\"))},getSearch:function(){var t=this.location.href.replace(/#.*/,\"\").match(/\\?.+/);return t?t[0]:\"\"},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:\"\"},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return\"/\"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(R,\"\")},start:function(t){if(A.started)throw new Error(\"Backbone.history has already been started\");if(A.started=!0,this.options=n.extend({root:\"/\"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange=\"onhashchange\"in window,this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=(\"/\"+this.root+\"/\").replace(O,\"/\"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||\"/\";return this.location.replace(e+\"#\"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement(\"iframe\"),this.iframe.src=\"javascript:0\",this.iframe.style.display=\"none\",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash=\"#\"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent(\"on\"+t,e)};return this._usePushState?o(\"popstate\",this.checkUrl,!1):this._useHashChange&&!this.iframe?o(\"hashchange\",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.options.silent?void 0:this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent(\"on\"+t,e)};this._usePushState?t(\"popstate\",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t(\"hashchange\",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment?!1:(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return this.matchRoot()?(t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})):!1},navigate:function(t,e){if(!A.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||\"\");var n=this.root;(\"\"===t||\"?\"===t.charAt(0))&&(n=n.slice(0,-1)||\"/\");var i=n+t;if(t=this.decodeFragment(t.replace(P,\"\")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(i+\"#\"+e)}else t.hash=\"#\"+e}}),e.history=new A;var B=function(t,e){var i,r=this;i=t&&n.has(t,\"constructor\")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};v.extend=w.extend=S.extend=T.extend=A.extend=B;var H=function(){throw new Error('A \"url\" property or function must be specified')},V=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger(\"error\",t,i,e)}};return e})}).call(e,function(){return this}())},4:function(t,e,n){\"use strict\";function i(t,e,n,o){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof r&&(t=t._wrapped),e instanceof r&&(e=e._wrapped);var s=a.call(t);if(s!==a.call(e))return!1;switch(s){case\"[object RegExp]\":case\"[object String]\":return\"\"+t==\"\"+e;case\"[object Number]\":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case\"[object Date]\":case\"[object Boolean]\":return+t===+e}if(\"object\"!=typeof t||\"object\"!=typeof e)return!1;for(var l=n.length;l--;)if(n[l]===t)return o[l]===e;var c=t.constructor,u=e.constructor;if(c!==u&&\"constructor\"in t&&\"constructor\"in e&&!(r.isFunction(c)&&c instanceof c&&r.isFunction(u)&&u instanceof u))return!1;n.push(t),o.push(e);var h=0,d=!0;if(\"[object Array]\"===s){if(h=t.length,d=h===e.length)for(;h--&&(d=i(t[h],e[h],n,o)););}else if(r.isFunction(t.valueOf)&&r.isFunction(e.valueOf)){var f=t.valueOf(),p=e.valueOf();d=i(f,p,n,o)}else{for(var m in t)if(r.has(t,m)&&(h++,!(d=r.has(e,m)&&i(t[m],e[m],n,o))))break;if(d){for(m in e)if(r.has(e,m)&&!h--)break;d=!h}}return n.pop(),o.pop(),d}var r=n(5),o=Object.prototype,a=o.toString;r.isEqual=function(t,e){return i(t,e,[],[])},t.exports=r},5:function(t,e,n){var i,r;(function(){var n=this,o=n._,a={},s=Array.prototype,l=Object.prototype,c=Function.prototype,u=s.push,h=s.slice,d=s.concat,f=l.toString,p=l.hasOwnProperty,m=s.forEach,g=s.map,v=s.reduce,y=s.reduceRight,w=s.filter,_=s.every,b=s.some,x=s.indexOf,k=s.lastIndexOf,T=Array.isArray,C=Object.keys,M=c.bind,E=function(t){return t instanceof E?t:this instanceof E?void(this._wrapped=t):new E(t)};\"undefined\"!=typeof t&&t.exports&&(e=t.exports=E),e._=E,E.VERSION=\"1.6.0\";var S=E.each=E.forEach=function(t,e,n){if(null==t)return t;if(m&&t.forEach===m)t.forEach(e,n);else if(t.length===+t.length){for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t)===a)return}else for(var o=E.keys(t),i=0,r=o.length;r>i;i++)if(e.call(n,t[o[i]],o[i],t)===a)return;return t};E.map=E.collect=function(t,e,n){var i=[];return null==t?i:g&&t.map===g?t.map(e,n):(S(t,function(t,r,o){i.push(e.call(n,t,r,o))}),i)};var D=\"Reduce of empty array with no initial value\";E.reduce=E.foldl=E.inject=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),v&&t.reduce===v)return i&&(e=E.bind(e,i)),r?t.reduce(e,n):t.reduce(e);if(S(t,function(t,o,a){r?n=e.call(i,n,t,o,a):(n=t,r=!0)}),!r)throw new TypeError(D);return n},E.reduceRight=E.foldr=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),y&&t.reduceRight===y)return i&&(e=E.bind(e,i)),r?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var a=E.keys(t);o=a.length}if(S(t,function(s,l,c){l=a?a[--o]:--o,r?n=e.call(i,n,t[l],l,c):(n=t[l],r=!0)}),!r)throw new TypeError(D);return n},E.find=E.detect=function(t,e,n){var i;return I(t,function(t,r,o){return e.call(n,t,r,o)?(i=t,!0):void 0}),i},E.filter=E.select=function(t,e,n){var i=[];return null==t?i:w&&t.filter===w?t.filter(e,n):(S(t,function(t,r,o){e.call(n,t,r,o)&&i.push(t)}),i)},E.reject=function(t,e,n){return E.filter(t,function(t,i,r){return!e.call(n,t,i,r)},n)},E.every=E.all=function(t,e,n){e||(e=E.identity);var i=!0;return null==t?i:_&&t.every===_?t.every(e,n):(S(t,function(t,r,o){return(i=i&&e.call(n,t,r,o))?void 0:a}),!!i)};var I=E.some=E.any=function(t,e,n){e||(e=E.identity);var i=!1;return null==t?i:b&&t.some===b?t.some(e,n):(S(t,function(t,r,o){return i||(i=e.call(n,t,r,o))?a:void 0}),!!i)};E.contains=E.include=function(t,e){return null==t?!1:x&&t.indexOf===x?-1!=t.indexOf(e):I(t,function(t){return t===e})},E.invoke=function(t,e){var n=h.call(arguments,2),i=E.isFunction(e);return E.map(t,function(t){return(i?e:t[e]).apply(t,n)})},E.pluck=function(t,e){return E.map(t,E.property(e))},E.where=function(t,e){return E.filter(t,E.matches(e))},E.findWhere=function(t,e){return E.find(t,E.matches(e))},E.max=function(t,e,n){if(!e&&E.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var i=-(1/0),r=-(1/0);return S(t,function(t,o,a){var s=e?e.call(n,t,o,a):t;s>r&&(i=t,r=s)}),i},E.min=function(t,e,n){if(!e&&E.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);var i=1/0,r=1/0;return S(t,function(t,o,a){var s=e?e.call(n,t,o,a):t;r>s&&(i=t,r=s)}),i},E.shuffle=function(t){var e,n=0,i=[];return S(t,function(t){e=E.random(n++),i[n-1]=i[e],i[e]=t}),i},E.sample=function(t,e,n){return null==e||n?(t.length!==+t.length&&(t=E.values(t)),t[E.random(t.length-1)]):E.shuffle(t).slice(0,Math.max(0,e))};var L=function(t){return null==t?E.identity:E.isFunction(t)?t:E.property(t)};E.sortBy=function(t,e,n){return e=L(e),E.pluck(E.map(t,function(t,i,r){return{value:t,index:i,criteria:e.call(n,t,i,r)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),\"value\")};var N=function(t){return function(e,n,i){var r={};return n=L(n),S(e,function(o,a){var s=n.call(i,o,a,e);t(r,s,o)}),r}};E.groupBy=N(function(t,e,n){E.has(t,e)?t[e].push(n):t[e]=[n]}),E.indexBy=N(function(t,e,n){t[e]=n}),E.countBy=N(function(t,e){E.has(t,e)?t[e]++:t[e]=1}),E.sortedIndex=function(t,e,n,i){n=L(n);for(var r=n.call(i,e),o=0,a=t.length;a>o;){var s=o+a>>>1;n.call(i,t[s])<r?o=s+1:a=s}return o},E.toArray=function(t){return t?E.isArray(t)?h.call(t):t.length===+t.length?E.map(t,E.identity):E.values(t):[]},E.size=function(t){return null==t?0:t.length===+t.length?t.length:E.keys(t).length},E.first=E.head=E.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:0>e?[]:h.call(t,0,e)},E.initial=function(t,e,n){return h.call(t,0,t.length-(null==e||n?1:e))},E.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:h.call(t,Math.max(t.length-e,0))},E.rest=E.tail=E.drop=function(t,e,n){return h.call(t,null==e||n?1:e)},E.compact=function(t){return E.filter(t,E.identity)};var A=function(t,e,n){return e&&E.every(t,E.isArray)?d.apply(n,t):(S(t,function(t){E.isArray(t)||E.isArguments(t)?e?u.apply(n,t):A(t,e,n):n.push(t)}),n)};E.flatten=function(t,e){return A(t,e,[])},E.without=function(t){return E.difference(t,h.call(arguments,1))},E.partition=function(t,e){var n=[],i=[];return S(t,function(t){(e(t)?n:i).push(t)}),[n,i]},E.uniq=E.unique=function(t,e,n,i){E.isFunction(e)&&(i=n,n=e,e=!1);var r=n?E.map(t,n,i):t,o=[],a=[];return S(r,function(n,i){(e?i&&a[a.length-1]===n:E.contains(a,n))||(a.push(n),o.push(t[i]))}),o},E.union=function(){return E.uniq(E.flatten(arguments,!0))},E.intersection=function(t){var e=h.call(arguments,1);return E.filter(E.uniq(t),function(t){return E.every(e,function(e){return E.contains(e,t)})})},E.difference=function(t){var e=d.apply(s,h.call(arguments,1));return E.filter(t,function(t){return!E.contains(e,t)})},E.zip=function(){for(var t=E.max(E.pluck(arguments,\"length\").concat(0)),e=new Array(t),n=0;t>n;n++)e[n]=E.pluck(arguments,\"\"+n);return e},E.object=function(t,e){if(null==t)return{};for(var n={},i=0,r=t.length;r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},E.indexOf=function(t,e,n){\r\nif(null==t)return-1;var i=0,r=t.length;if(n){if(\"number\"!=typeof n)return i=E.sortedIndex(t,e),t[i]===e?i:-1;i=0>n?Math.max(0,r+n):n}if(x&&t.indexOf===x)return t.indexOf(e,n);for(;r>i;i++)if(t[i]===e)return i;return-1},E.lastIndexOf=function(t,e,n){if(null==t)return-1;var i=null!=n;if(k&&t.lastIndexOf===k)return i?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var r=i?n:t.length;r--;)if(t[r]===e)return r;return-1},E.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=0,o=new Array(i);i>r;)o[r++]=t,t+=n;return o};var R=function(){};E.bind=function(t,e){var n,i;if(M&&t.bind===M)return M.apply(t,h.call(arguments,1));if(!E.isFunction(t))throw new TypeError;return n=h.call(arguments,2),i=function(){if(!(this instanceof i))return t.apply(e,n.concat(h.call(arguments)));R.prototype=t.prototype;var r=new R;R.prototype=null;var o=t.apply(r,n.concat(h.call(arguments)));return Object(o)===o?o:r}},E.partial=function(t){var e=h.call(arguments,1);return function(){for(var n=0,i=e.slice(),r=0,o=i.length;o>r;r++)i[r]===E&&(i[r]=arguments[n++]);for(;n<arguments.length;)i.push(arguments[n++]);return t.apply(this,i)}},E.bindAll=function(t){var e=h.call(arguments,1);if(0===e.length)throw new Error(\"bindAll must be passed function names\");return S(e,function(e){t[e]=E.bind(t[e],t)}),t},E.memoize=function(t,e){var n={};return e||(e=E.identity),function(){var i=e.apply(this,arguments);return E.has(n,i)?n[i]:n[i]=t.apply(this,arguments)}},E.delay=function(t,e){var n=h.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},E.defer=function(t){return E.delay.apply(E,[t,1].concat(h.call(arguments,1)))},E.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=n.leading===!1?0:E.now(),a=null,o=t.apply(i,r),i=r=null};return function(){var c=E.now();s||n.leading!==!1||(s=c);var u=e-(c-s);return i=this,r=arguments,0>=u?(clearTimeout(a),a=null,s=c,o=t.apply(i,r),i=r=null):a||n.trailing===!1||(a=setTimeout(l,u)),o}},E.debounce=function(t,e,n){var i,r,o,a,s,l=function(){var c=E.now()-a;e>c?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),o=r=null))};return function(){o=this,r=arguments,a=E.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s}},E.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},E.wrap=function(t,e){return E.partial(e,t)},E.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},E.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},E.keys=function(t){if(!E.isObject(t))return[];if(C)return C(t);var e=[];for(var n in t)E.has(t,n)&&e.push(n);return e},E.values=function(t){for(var e=E.keys(t),n=e.length,i=new Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},E.pairs=function(t){for(var e=E.keys(t),n=e.length,i=new Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},E.invert=function(t){for(var e={},n=E.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},E.functions=E.methods=function(t){var e=[];for(var n in t)E.isFunction(t[n])&&e.push(n);return e.sort()},E.extend=function(t){return S(h.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},E.pick=function(t){var e={},n=d.apply(s,h.call(arguments,1));return S(n,function(n){n in t&&(e[n]=t[n])}),e},E.omit=function(t){var e={},n=d.apply(s,h.call(arguments,1));for(var i in t)E.contains(n,i)||(e[i]=t[i]);return e},E.defaults=function(t){return S(h.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},E.clone=function(t){return E.isObject(t)?E.isArray(t)?t.slice():E.extend({},t):t},E.tap=function(t,e){return e(t),t};var O=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof E&&(t=t._wrapped),e instanceof E&&(e=e._wrapped);var r=f.call(t);if(r!=f.call(e))return!1;switch(r){case\"[object String]\":return t==String(e);case\"[object Number]\":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case\"[object Date]\":case\"[object Boolean]\":return+t==+e;case\"[object RegExp]\":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if(\"object\"!=typeof t||\"object\"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return i[o]==e;var a=t.constructor,s=e.constructor;if(a!==s&&!(E.isFunction(a)&&a instanceof a&&E.isFunction(s)&&s instanceof s)&&\"constructor\"in t&&\"constructor\"in e)return!1;n.push(t),i.push(e);var l=0,c=!0;if(\"[object Array]\"==r){if(l=t.length,c=l==e.length)for(;l--&&(c=O(t[l],e[l],n,i)););}else{for(var u in t)if(E.has(t,u)&&(l++,!(c=E.has(e,u)&&O(t[u],e[u],n,i))))break;if(c){for(u in e)if(E.has(e,u)&&!l--)break;c=!l}}return n.pop(),i.pop(),c};E.isEqual=function(t,e){return O(t,e,[],[])},E.isEmpty=function(t){if(null==t)return!0;if(E.isArray(t)||E.isString(t))return 0===t.length;for(var e in t)if(E.has(t,e))return!1;return!0},E.isElement=function(t){return!(!t||1!==t.nodeType)},E.isArray=T||function(t){return\"[object Array]\"==f.call(t)},E.isObject=function(t){return t===Object(t)},S([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\"],function(t){E[\"is\"+t]=function(e){return f.call(e)==\"[object \"+t+\"]\"}}),E.isArguments(arguments)||(E.isArguments=function(t){return!(!t||!E.has(t,\"callee\"))}),E.isFunction=function(t){return\"function\"==typeof t},E.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},E.isNaN=function(t){return E.isNumber(t)&&t!=+t},E.isBoolean=function(t){return t===!0||t===!1||\"[object Boolean]\"==f.call(t)},E.isNull=function(t){return null===t},E.isUndefined=function(t){return void 0===t},E.has=function(t,e){return p.call(t,e)},E.noConflict=function(){return n._=o,this},E.identity=function(t){return t},E.constant=function(t){return function(){return t}},E.property=function(t){return function(e){return e[t]}},E.matches=function(t){return function(e){if(e===t)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0}},E.times=function(t,e,n){for(var i=Array(Math.max(0,t)),r=0;t>r;r++)i[r]=e.call(n,r);return i},E.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},E.now=Date.now||function(){return(new Date).getTime()};var P={escape:{\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"}};P.unescape=E.invert(P.escape);var B={escape:new RegExp(\"[\"+E.keys(P.escape).join(\"\")+\"]\",\"g\"),unescape:new RegExp(\"(\"+E.keys(P.unescape).join(\"|\")+\")\",\"g\")};E.each([\"escape\",\"unescape\"],function(t){E[t]=function(e){return null==e?\"\":(\"\"+e).replace(B[t],function(e){return P[t][e]})}}),E.result=function(t,e){if(null==t)return void 0;var n=t[e];return E.isFunction(n)?n.call(t):n},E.mixin=function(t){S(E.functions(t),function(e){var n=E[e]=t[e];E.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),j.call(this,n.apply(E,t))}})};var H=0;E.uniqueId=function(t){var e=++H+\"\";return t?t+e:e},E.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var V=/(.)^/,$={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},F=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;E.template=function(t,e,n){var i;n=E.defaults({},n,E.templateSettings);var r=new RegExp([(n.escape||V).source,(n.interpolate||V).source,(n.evaluate||V).source].join(\"|\")+\"|$\",\"g\"),o=0,a=\"__p+='\";t.replace(r,function(e,n,i,r,s){return a+=t.slice(o,s).replace(F,function(t){return\"\\\\\"+$[t]}),n&&(a+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),i&&(a+=\"'+\\n((__t=(\"+i+\"))==null?'':__t)+\\n'\"),r&&(a+=\"';\\n\"+r+\"\\n__p+='\"),o=s+e.length,e}),a+=\"';\\n\",n.variable||(a=\"with(obj||{}){\\n\"+a+\"}\\n\"),a=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+a+\"return __p;\\n\";try{i=new Function(n.variable||\"obj\",\"_\",a)}catch(s){throw s.source=a,s}if(e)return i(e,E);var l=function(t){return i.call(this,t,E)};return l.source=\"function(\"+(n.variable||\"obj\")+\"){\\n\"+a+\"}\",l},E.chain=function(t){return E(t).chain()};var j=function(t){return this._chain?E(t).chain():t};E.mixin(E),S([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=s[t];E.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),\"shift\"!=t&&\"splice\"!=t||0!==n.length||delete n[0],j.call(this,n)}}),S([\"concat\",\"join\",\"slice\"],function(t){var e=s[t];E.prototype[t]=function(){return j.call(this,e.apply(this._wrapped,arguments))}}),E.extend(E.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),i=[],r=function(){return E}.apply(e,i),!(void 0!==r&&(t.exports=r))}).call(this)},6:function(t,e,n){var i,r;(function(t){/*! jQuery v2.0.3 -deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license\r\n\t*/"}}