(function(){var o=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||this||{},dt=o._,l=Array.prototype,p=Object.prototype,it=typeof Symbol!="undefined"?Symbol.prototype:null,gt=l.push,s=l.slice,h=p.toString,rt=p.hasOwnProperty,ni=Array.isArray,ut=Object.keys,ft=Object.create,w=function(){},n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},e,et,t,k,c,ht,f,d,g,nt,a,vt,v,yt,pt,kt,y;typeof exports=="undefined"||exports.nodeType?o._=n:(typeof module!="undefined"&&!module.nodeType&&module.exports&&(exports=module.exports=n),exports._=n);n.VERSION="1.9.0";e=function(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};t=function(t,i,r){return n.iteratee!==et?n.iteratee(t,i):t==null?n.identity:n.isFunction(t)?e(t,i,r):n.isObject(t)&&!n.isArray(t)?n.matcher(t):n.property(t)};n.iteratee=et=function(n,i){return t(n,i,Infinity)};var r=function(n,t){return t=t==null?n.length-1:+t,function(){for(var f=Math.max(arguments.length-t,0),r=Array(f),i=0,u;i=0&&t<=ti};n.each=n.forEach=function(t,r,u){var f,o,s;if(r=e(r,u),i(t))for(f=0,o=t.length;f0?0:c-1,h;for(e||(f=r[s?s[o]:o],o+=t);o>=0&&o=3;return r(n,e(t,u,4),i,f)}};n.reduce=n.foldl=n.inject=k(1);n.reduceRight=n.foldr=k(-1);n.find=n.detect=function(t,r,u){var e=i(t)?n.findIndex:n.findKey,f=e(t,r,u);if(f!==void 0&&f!==-1)return t[f]};n.filter=n.select=function(i,r,u){var f=[];return r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f};n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)};n.every=n.all=function(r,u,f){var o,h,e,s;for(u=t(u,f),o=!i(r)&&n.keys(r),h=(o||r).length,e=0;e=0};n.invoke=r(function(t,i,r){var u,f;return n.isFunction(i)?f=i:n.isArray(i)&&(u=i.slice(0,-1),i=i[i.length-1]),n.map(t,function(n){var t=f;if(!t){if(u&&u.length&&(n=b(n,u)),n==null)return void 0;t=n[i]}return t==null?t:t.apply(n,r)})});n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matcher(i))};n.findWhere=function(t,i){return n.find(t,n.matcher(i))};n.max=function(r,u,f){var e=-Infinity,c=-Infinity,o,s,h,l;if(u==null||typeof u=="number"&&typeof r[0]!="object"&&r!=null)for(r=i(r)?r:n.values(r),h=0,l=r.length;he&&(e=o);else u=t(u,f),n.each(r,function(n,t,i){s=u(n,t,i);(s>c||s===-Infinity&&e===-Infinity)&&(e=n,c=s)});return e};n.min=function(r,u,f){var e=Infinity,c=Infinity,o,s,h,l;if(u==null||typeof u=="number"&&typeof r[0]!="object"&&r!=null)for(r=i(r)?r:n.values(r),h=0,l=r.length;hr||i===void 0)return 1;if(i0?0:o-1;e>=0&&e0?c=o>=0?o:Math.max(o+h,c):h=o>=0?Math.min(o+1,h):o+h+1;else if(r&&o&&h)return o=r(f,e),f[o]===e?o:-1;if(e!==e)return o=i(s.call(f,c,h),n.isNaN),o>=0?o+c:-1;for(o=t>0?c:h-1;o>=0&&oi?(u&&(clearTimeout(u),u=null),o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(c,h)),s},h.cancel=function(){clearTimeout(u);o=0;u=f=e=null},h};n.debounce=function(t,i,u){var f,e,o=function(n,i){f=null;i&&(e=t.apply(n,i))},s=r(function(r){if(f&&clearTimeout(f),u){var s=!f;f=setTimeout(o,i);s&&(e=t.apply(this,r))}else f=n.delay(o,i,this,r);return e});return s.cancel=function(){clearTimeout(f);f=null},s};n.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}};n.once=n.partial(n.before,2);n.restArguments=r;var ct=!{toString:null}.propertyIsEnumerable("toString"),lt=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],at=function(t,i){var u=lt.length,f=t.constructor,e=n.isFunction(f)&&f.prototype||p,r="constructor";for(n.has(t,r)&&!n.contains(i,r)&&i.push(r);u--;)r=lt[u],r in t&&t[r]!==e[r]&&!n.contains(i,r)&&i.push(r)};n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ut)return ut(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return ct&&at(t,i),i};n.allKeys=function(t){var i,r;if(!n.isObject(t))return[];i=[];for(r in t)i.push(r);return ct&&at(t,i),i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i1&&(r=e(r,i[1])),i=n.allKeys(t)):(r=vt,i=f(i,!1,!1),t=Object(t)),u=0,c=i.length;u1&&(u=i[1])):(i=n.map(f(i,!1,!1),String),r=function(t,r){return!n.contains(i,r)}),n.pick(t,r,u)});n.defaults=a(n.allKeys,!0);n.create=function(t,i){var r=ot(t);return i&&n.extendOwn(r,i),r};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};n.isMatch=function(t,i){var e=n.keys(i),o=e.length,f,r,u;if(t==null)return!o;for(f=Object(t),r=0;r":">",'"':""","'":"'","`":"`"},ii=n.invert(wt),bt=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=bt(wt);n.unescape=bt(ii);n.result=function(t,i,r){var e,f,u;if(n.isArray(i)||(i=[i]),e=i.length,!e)return n.isFunction(r)?r.call(t):r;for(f=0;f/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var tt=/(.)^/,ri={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ui=/\\|'|\r|\n|\u2028|\u2029/g,fi=function(n){return"\\"+ri[n]};n.template=function(t,i,r){var o,f,h;!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var c=RegExp([(i.escape||tt).source,(i.interpolate||tt).source,(i.evaluate||tt).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(c,function(n,i,r,f,o){return u+=t.slice(e,o).replace(ui,fi),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return f=function(t){return o.call(this,t,n)},h=i.variable||"obj",f.source="function("+h+"){\n"+u+"}",f};n.chain=function(t){var i=n(t);return i._chain=!0,i};y=function(t,i){return t._chain?n(i).chain():i};n.mixin=function(t){return n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return gt.apply(t,arguments),y(this,r.apply(n,t))}}),n};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=l[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0],y(this,n)}});n.each(["concat","join","slice"],function(t){var i=l[t];n.prototype[t]=function(){return y(this,i.apply(this._wrapped,arguments))}});n.prototype.value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return String(this._wrapped)};typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})})();