var mod,saveAs;(function(){var y=this,at=y._,e={},r=Array.prototype,g=Object.prototype,vt=Function.prototype,nt=r.push,i=r.slice,o=r.concat,f=g.toString,yt=g.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,s=r.indexOf,st=r.lastIndexOf,pt=Array.isArray,ht=Object.keys,p=vt.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},t,w,b,h,c,k,l,a,u,ct,lt,v;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):y._=n;n.VERSION="1.6.0";t=n.each=n.forEach=function(t,i,r){var o,u,f;if(t==null)return t;if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;u<f;u++)if(i.call(r,t[u],u,t)===e)return}else for(o=n.keys(t),u=0,f=o.length;u<f;u++)if(i.call(r,t[o[u]],o[u],t)===e)return;return t};n.map=n.collect=function(n,i,r){var u=[];return n==null?u:it&&n.map===it?n.map(i,r):(t(n,function(n,t,f){u.push(i.call(r,n,t,f))}),u)};w="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(i,r,u,f){var e=arguments.length>2;if(i==null&&(i=[]),rt&&i.reduce===rt)return f&&(r=n.bind(r,f)),e?i.reduce(r,u):i.reduce(r);if(t(i,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(w);return u};n.reduceRight=n.foldr=function(i,r,u,f){var o=arguments.length>2,e,s;if(i==null&&(i=[]),ut&&i.reduceRight===ut)return f&&(r=n.bind(r,f)),o?i.reduceRight(r,u):i.reduceRight(r);if(e=i.length,e!==+e&&(s=n.keys(i),e=s.length),t(i,function(n,t,h){t=s?s[--e]:--e;o?u=r.call(f,u,i[t],t,h):(u=i[t],o=!0)}),!o)throw new TypeError(w);return u};n.find=n.detect=function(n,t,i){var r;return b(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r};n.filter=n.select=function(n,i,r){var u=[];return n==null?u:ft&&n.filter===ft?n.filter(i,r):(t(n,function(n,t,f){i.call(r,n,t,f)&&u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(i,r,u){r||(r=n.identity);var f=!0;return i==null?f:et&&i.every===et?i.every(r,u):(t(i,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return e}),!!f)};b=n.some=n.any=function(i,r,u){r||(r=n.identity);var f=!1;return i==null?f:ot&&i.some===ot?i.some(r,u):(t(i,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return e}),!!f)};n.contains=n.include=function(n,t){return n==null?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:b(n,function(n){return n===t})};n.invoke=function(t,r){var u=i.call(arguments,2),f=n.isFunction(r);return n.map(t,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.max.apply(Math,i);var f=-Infinity,e=-Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o>e&&(f=n,e=o)}),f};n.min=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.min.apply(Math,i);var f=Infinity,e=Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o<e&&(f=n,e=o)}),f};n.shuffle=function(i){var u,f=0,r=[];return t(i,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};h=function(t){return t==null?n.identity:n.isFunction(t)?t:n.property(t)};n.sortBy=function(t,i,r){return i=h(i),n.pluck(n.map(t,function(n,t,u){return{value:n,index:t,criteria:i.call(r,n,t,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};c=function(n){return function(i,r,u){var f={};return r=h(r),t(i,function(t,e){var o=r.call(u,t,e,i);n(f,o,t)}),f}};n.groupBy=c(function(t,i,r){n.has(t,i)?t[i].push(r):t[i]=[r]});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(n,t,i,r){var f;i=h(i);for(var o=i.call(r,t),u=0,e=n.length;u<e;)f=u+e>>>1,i.call(r,n[f])<o?u=f+1:e=f;return u};n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,t,r){if(n!=null)return t==null||r?n[0]:t<0?[]:i.call(n,0,t)};n.initial=function(n,t,r){return i.call(n,0,n.length-(t==null||r?1:t))};n.last=function(n,t,r){if(n!=null)return t==null||r?n[n.length-1]:i.call(n,Math.max(n.length-t,0))};n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,t==null||r?1:t)};n.compact=function(t){return n.filter(t,n.identity)};k=function(i,r,u){return r&&n.every(i,n.isArray)?o.apply(u,i):(t(i,function(t){n.isArray(t)||n.isArguments(t)?r?nt.apply(u,t):k(t,r,u):u.push(t)}),u)};n.flatten=function(n,t){return k(n,t,[])};n.without=function(t){return n.difference(t,i.call(arguments,1))};n.partition=function(n,i){var r=[],u=[];return t(n,function(n){(i(n)?r:u).push(n)}),[r,u]};n.uniq=n.unique=function(i,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(i,u,f):i,o=[],e=[];return t(s,function(t,u){(r?u&&e[e.length-1]===t:n.contains(e,t))||(e.push(t),o.push(i[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(t){var r=i.call(arguments,1);return n.filter(n.uniq(t),function(t){return n.every(r,function(i){return n.contains(i,t)})})};n.difference=function(t){var u=o.apply(r,i.call(arguments,1));return n.filter(t,function(t){return!n.contains(u,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;t<i;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(t==null)return-1;var u=0,f=t.length;if(r)if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else return u=n.sortedIndex(t,i),t[u]===i?u:-1;if(s&&t.indexOf===s)return t.indexOf(i,r);for(;u<f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(n==null)return-1;if(u=i!=null,st&&n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);u<r;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(t,r){var u,f;if(p&&t.bind===p)return p.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError;return u=i.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=t.prototype,e=new l,l.prototype=null,n=t.apply(e,u.concat(i.call(arguments))),Object(n)===n)?n:e:t.apply(r,u.concat(i.call(arguments)))}};n.partial=function(t){var r=i.call(arguments,1);return function(){for(var f=0,i=r.slice(),u=0,e=i.length;u<e;u++)i[u]===n&&(i[u]=arguments[f++]);while(f<arguments.length)i.push(arguments[f++]);return t.apply(this,i)}};n.bindAll=function(r){var u=i.call(arguments,1);if(u.length===0)throw new Error("bindAll must be passed function names");return t(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)};n.defer=function(t){return n.delay.apply(n,[t,1].concat(i.call(arguments,1)))};n.throttle=function(t,i,r){var u,f,s,e=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();e=null;s=t.apply(u,f);u=f=null},function(){var c=n.now(),l;return o||r.leading!==!1||(o=c),l=i-(c-o),u=this,f=arguments,l<=0?(clearTimeout(e),e=null,o=c,s=t.apply(u,f),u=f=null):e||r.trailing===!1||(e=setTimeout(h,l)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c<i?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),e=f=null))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(t,i){return n.partial(i,t)};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i>=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ht)return ht(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n};n.pick=function(n){var u={},f=o.apply(r,i.call(arguments,1));return t(f,function(t){t in n&&(u[t]=n[t])}),u};n.omit=function(t){var f={},e=o.apply(r,i.call(arguments,1));for(var u in t)n.contains(e,u)||(f[u]=t[u]);return f};n.defaults=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n};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};a=function(t,i,r,u){var l,v,h,c,e,o,s;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!=f.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:t==0?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if(typeof t!="object"||typeof i!="object")return!1;for(v=r.length;v--;)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in i)return!1;if(r.push(t),u.push(i),e=0,o=!0,l=="[object Array]"){if(e=t.length,o=e==i.length,o)while(e--)if(!(o=a(t[e],i[e],r,u)))break}else{for(s in t)if(n.has(t,s)&&(e++,!(o=n.has(i,s)&&a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!e--)break;o=!e}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=pt||function(n){return f.call(n)=="[object Array]"};n.isObject=function(n){return n===Object(n)};t(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return f.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!!(t&&n.has(t,"callee"))});typeof/./!="function"&&(n.isFunction=function(n){return typeof n=="function"});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!=+t};n.isBoolean=function(n){return n===!0||n===!1||f.call(n)=="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return yt.call(n,t)};n.noConflict=function(){return y._=at,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.property=function(n){return function(t){return t[n]}};n.matches=function(n){return function(t){if(t===n)return!0;for(var i in n)if(n[i]!==t[i])return!1;return!0}};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;r<n;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};u.unescape=n.invert(u.escape);ct={escape:new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return n==null?"":(""+n).replace(ct[t],function(n){return u[t][n]})}});n.result=function(t,i){if(t==null)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(i){t(n.functions(i),function(t){var r=n[t]=i[t];n.prototype[t]=function(){var t=[this._wrapped];return nt.apply(t,arguments),v.call(this,r.apply(n,t))}})};lt=0;n.uniqueId=function(n){var t=++lt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var d=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||d).source,(r.interpolate||d).source,(r.evaluate||d).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.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{f=new Function(r.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};v=function(t){return this._chain?n(t).chain():t};n.mixin(n);t(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t=="shift"||t=="splice")&&n.length===0&&delete n[0],v.call(this,n)}});t(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this._wrapped,arguments))}});n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}});typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}).call(this);!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ui(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ef.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return et.call(t,n)>=0!==r})}function ur(n,t){while((n=n[t])&&1!==n.nodeType);return n}function of(n){var t=ei[n]={};return i.each(n.match(c)||[],function(n,i){t[i]=!0}),t}function ct(){u.removeEventListener("DOMContentLoaded",ct,!1);n.removeEventListener("load",ct,!1);i.ready()}function p(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=i.expando+Math.random()}function fr(n,t,r){var u;if(void 0===r&&1===n.nodeType)if(u="data-"+t.replace(hf,"-$1").toLowerCase(),r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:sf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=void 0;return r}function at(){return!0}function g(){return!1}function hr(){try{return u.activeElement}catch(n){}}function vr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function bf(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function kf(n){var t=pf.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function oi(n,t){for(var i=0,u=n.length;u>i;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yr(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;c>u;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function o(n,t){var r=n.getElementsByTagName?n.getElementsByTagName(t||"*"):n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function df(n,t){var i=t.nodeName.toLowerCase();"input"===i&&er.test(n.type)?t.checked=n.checked:("input"===i||"textarea"===i)&&(t.defaultValue=n.defaultValue)}function pr(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function hi(n){var r=u,t=si[n];return t||(t=pr(n,r),"none"!==t&&t||(vt=(vt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=vt[0].contentDocument,r.write(),r.close(),t=pr(n,r),vt.detach()),si[n]=t),t}function rt(n,t,r){var e,o,s,u,f=n.style;return r=r||yt(n),r&&(u=r.getPropertyValue(t)||r[t]),r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),ci.test(u)&&wr.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0!==u?u+"":u}function br(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function gr(n,t){if(t in n)return t;for(var r=t[0].toUpperCase()+t.slice(1),u=t,i=dr.length;i--;)if(t=dr[i]+r,t in n)return t;return u}function nu(n,t,i){var r=ne.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function tu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+w[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+w[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function iu(n,t,r){var o=!0,u="width"===t?n.offsetWidth:n.offsetHeight,e=yt(n),s="border-box"===i.css(n,"boxSizing",!1,e);if(0>=u||null==u){if(u=rt(n,t,e),(0>u||null==u)&&(u=n.style[t]),ci.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]);u=parseFloat(u)||0}return u+tu(n,t,r||(s?"border":"content"),o,e)+"px"}function ru(n,t){for(var e,u,s,o=[],f=0,h=n.length;h>f;f++)u=n[f],u.style&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||"none"!==e||(u.style.display=""),""===u.style.display&&it(u)&&(o[f]=r.access(u,"olddisplay",hi(u.nodeName)))):(s=it(u),"none"===e&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;h>f;f++)u=n[f],u.style&&(t&&"none"!==u.style.display&&""!==u.style.display||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function fu(){return setTimeout(function(){nt=void 0}),nt=i.now()}function bt(n,t){var r,u=0,i={height:n};for(t=t?1:0;4>u;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function eu(n,t,i){for(var u,f=(ut[t]||[]).concat(ut["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function fe(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&it(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),null==o.unqueued&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b="none"===h?r.get(n,"olddisplay")||hi(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],re.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?hi(n.nodeName):h)&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=eu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function ee(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ou(n,t,r){var h,e,o=0,l=wt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=nt||fu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:nt||fu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(ee(s,u.opts.specialEasing);l>o;o++)if(h=wt[o].call(u,n,s,u.opts))return h;return i.map(s,eu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function pu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(c)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function wu(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===li;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ai(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ae(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return(f!==r[0]&&r.unshift(f),i[f])}function ve(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function vi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||pe.test(n)?u(n,i):vi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)vi(n+"["+f+"]",t[f],r,u)}function ku(n){return i.isWindow(n)?n:9===n.nodeType&&n.defaultView}var k=[],a=k.slice,bi=k.concat,ii=k.push,et=k.indexOf,ot={},nf=ot.toString,ri=ot.hasOwnProperty,f={},u=n.document,ki="2.1.1",i=function(n,t){return new i.fn.init(n,t)},tf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rf=/^-ms-/,uf=/-([\da-z])/gi,ff=function(n,t){return t.toUpperCase()},y,st,nr,tr,ir,rr,c,ei,ht,l,d,vt,si,oe,su,tt,hu,kt,cu,dt,gt,yi,ti,pi,wi,du,gu;i.fn=i.prototype={jquery:ki,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ii,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ki+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray,isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)>=0},isPlainObject:function(n){return"object"!==i.type(n)||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ri.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[nf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(1===n.indexOf("use strict")?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(rf,"ms-").replace(uf,ff)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ui(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(tf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ui(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ii.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:et.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;u>i;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ui(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return"string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n)?(f=a.call(arguments,2),r=function(){return n.apply(t||this,f.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:Date.now,support:f});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});y=function(n){function r(n,t,i,r){var w,h,c,v,k,y,d,l,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(w=sr.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&ot(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=et(n),(d=t.getAttribute("id"))?l=d.replace(hr,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",k=y.length;k--;)y[k]=l+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,i,r)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||ai)-(~n.sourceIndex||ai);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ct)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function vr(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,a="0",g=o&&[],p=[],nt=ct,tt=o||f&&t.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ct=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=a,u&&a!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(a--)g[a]||p[a]||(p[a]=gi.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(v=it,ct=nt),g};return u?h(o):o}var it,u,t,ht,oi,et,wt,si,ct,y,rt,p,e,l,a,o,g,lt,ot,f="sizzle"+-new Date,s=n.document,v=0,ki=0,hi=ni(),ci=ni(),li=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",ai=-2147483648,di={}.hasOwnProperty,w=[],gi=w.pop,nr=w.push,b=w.push,vi=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=ft.replace("w","w#"),pi="\\["+i+"*("+ft+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yi+"))|)"+i+"*\\]",dt=":("+ft+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",at=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),tr=new RegExp("^"+i+"*,"+i+"*"),ir=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),rr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),ur=new RegExp(dt),fr=new RegExp("^"+yi+"$"),vt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=vi.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){nr.apply(n,vi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};oi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var v,r=n?n.ownerDocument||n:s,h=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!oi(r),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&a)return t.getElementsByClassName(n)},g=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowclip=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowclip^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(lt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=lt.call(n,"div");lt.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=st.test(l.compareDocumentPosition),ot=v||st.test(l.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===s&&ot(s,n)?-1:t===r||t.ownerDocument===s&&ot(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===r?-1:t===r?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===s?-1:e[u]===s?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(rr,"='$1']"),!(!u.matchesSelector||!a||g&&g.test(t)||o&&o.test(t)))try{var i=lt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),ot(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!a):void 0;return void 0!==r?r:u.attributes||!a?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(bt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};ht=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ht(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=ht(r);return i};t=r.selectors={cacheLength:50,createPseudo:h,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[3]||n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&ur.test(t)&&(i=et(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(at,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return r(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||ht(t)).indexOf(n)>-1}}),lang:h(function(n){return fr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=cr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=lr(it);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,et=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=tr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=ir.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),u=u.slice(e.length));for(o in t.filter)(f=vt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):ci(n,h).slice(0)},wt=r.compile=function(n,t){var r,u=[],e=[],i=li[n+" "];if(!i){for(t||(t=et(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=li(n,vr(e,u));i.selector=n}return i},si=r.select=function(n,i,r,f){var s,e,o,l,v,c="function"==typeof n&&n,h=!f&&et(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[l=o.type])break;if((v=t.find[l])&&(f=v(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(r,f),r;break}}}return(c||wt(n,h))(f,i,!a,r,gt.test(n)&&ii(i.parentNode)||i),r},u.sortStable=f.split("").sort(bt).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;var di=i.expr.match.needsContext,gi=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ef=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;u>t;t++)if(i.contains(f[t],this))return!0}));for(t=0;u>t;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(fi(this,n||[],!1))},not:function(n){return this.pushStack(fi(this,n||[],!0))},is:function(n){return!!fi(this,"string"==typeof n&&di.test(n)?i(n):n||[],!1).length}});nr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;tr=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:nr.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||st).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),gi.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return f=u.getElementById(r[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof st.ready?st.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};tr.prototype=i.fn;st=i(u);ir=/^(?:parents|prev(?:Until|All))/;rr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;r>n;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=di.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?et.call(i(n),this[0]):et.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ur(n,"nextSibling")},prev:function(n){return ur(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(rr[n]||i.unique(f),ir.test(n)&&f.reverse()),this.pushStack(f)}});c=/\S+/g;ei={};i.Callbacks=function(n){n="string"==typeof n?ei[n]||of(n):i.extend({},n);var u,h,o,c,f,e,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(ht.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){return ht||(ht=i.Deferred(),"complete"===u.readyState?setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",ct,!1),n.addEventListener("load",ct,!1))),ht.promise(t)};i.ready.promise();l=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};i.acceptData=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};p.uid=1;p.accepts=i.acceptData;p.prototype={key:function(n){if(!p.accepts(n))return 0;var r={},t=n[this.expando];if(!t){t=p.uid++;try{r[this.expando]={value:t};Object.defineProperties(n,r)}catch(u){r[this.expando]=t;i.extend(n,r)}}return this.cache[t]||(this.cache[t]={}),t},set:function(n,t,r){var f,e=this.key(n),u=this.cache[e];if("string"==typeof t)u[t]=r;else if(i.isEmptyObject(u))i.extend(this.cache[e],t);else for(f in t)u[f]=t[f];return u},get:function(n,t){var i=this.cache[this.key(n)];return void 0===t?i:i[t]},access:function(n,t,r){var u;return void 0===t||t&&"string"==typeof t&&void 0===r?(u=this.get(n,t),void 0!==u?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),void 0!==r?r:t)},remove:function(n,t){var u,r,f,o=this.key(n),e=this.cache[o];if(void 0===t)this.cache[o]={};else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(f=i.camelCase(t),(t in e)?r=[t,f]:(r=f,r=(r in e)?[r]:r.match(c)||[])),u=r.length;u--;)delete e[r[u]]},hasData:function(n){return!i.isEmptyObject(this.cache[n[this.expando]]||{})},discard:function(n){n[this.expando]&&delete this.cache[n[this.expando]]}};var r=new p,e=new p,sf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,hf=/([A-Z])/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),fr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):l(this,function(t){var r,f=i.camelCase(n);if(u&&void 0===t){if((r=e.get(u,n),void 0!==r)||(r=e.get(u,f),void 0!==r)||(r=fr(u,f,void 0),void 0!==r))return r}else this.each(function(){var i=e.get(this,f);e.set(this,f,t);-1!==n.indexOf("-")&&void 0!==i&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return(t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],it=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},er=/^(?:checkbox|radio)$/i;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();d="undefined";f.focusinBubbles="onfocusin"in n;var cf=/^key/,lf=/^(?:mouse|pointer|contextmenu)|click/,or=/^(?:focusinfocus|focusoutblur)$/,sr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,h,s,l,o,k,g,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if(typeof i!==d&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(c)||[""],b=t.length;b--;)w=sr.exec(t[b])||[],o=g=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y,!1)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,h):l.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var p,k,h,v,w,s,l,a,o,b,d,y=r.hasData(n)&&r.get(n);if(y&&(v=y.events)){for(t=(t||"").match(c)||[""],w=t.length;w--;)if(h=sr.exec(t[w])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=p=a.length;p--;)s=a[p],!e&&d!==s.origType||u&&u.guid!==s.guid||h&&!h.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(p,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,y.handle)!==!1||i.removeEvent(n,o,y.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[w],u,f,!0);i.isEmptyObject(v)&&(delete y.handle,r.remove(n,"events"))}},trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ri.call(t,"type")?t.type:t,y=ri.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!or.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,or.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&i.acceptData(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!i.acceptData(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=a.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),void 0!==e&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!==this;r=r.parentNode||this)if(r.disabled!==!0||"click"!==n.type){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=lf.test(r)?this.mouseHooks:cf.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),3===n.target.nodeType&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==hr()&&this.focus)return(this.focus(),!1)},delegateType:"focusin"},blur:{trigger:function(){if(this===hr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i.nodeName(this,"input"))return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?at:g):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=at;n&&n.preventDefault&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=at;n&&n.stopPropagation&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=at;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});f.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});i.fn.extend({on:function(n,t,r,u,f){var e,o;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=g;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=g),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var cr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lr=/<([\w:]+)/,af=/<|&#?\w+;/,vf=/<(?:script|style|link)/i,yf=/checked\s*(?:[^=]|=\s*.checked.)/i,ar=/^$|\/(?:java|ecma)script/i,pf=/^true\/(.*)/,wf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,h={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;i.extend({clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;c>u;u++)df(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;c>u;u++)yr(s[u],e[u]);else yr(n,h);return e=o(h,"script"),e.length>0&&oi(e,!l&&o(n,"script")),h},buildFragment:function(n,t,r,u){for(var f,e,y,l,p,a,s=t.createDocumentFragment(),v=[],c=0,w=n.length;w>c;c++)if(f=n[c],f||0===f)if("object"===i.type(f))i.merge(v,f.nodeType?[f]:f);else if(af.test(f)){for(e=e||s.appendChild(t.createElement("div")),y=(lr.exec(f)||["",""])[1].toLowerCase(),l=h[y]||h._default,e.innerHTML=l[1]+f.replace(cr,"<$1><\/$2>")+l[2],a=l[0];a--;)e=e.lastChild;i.merge(v,e.childNodes);e=s.firstChild;e.textContent=""}else v.push(t.createTextNode(f));for(s.textContent="",c=0;f=v[c++];)if((!u||-1===i.inArray(f,u))&&(p=i.contains(f.ownerDocument,f),e=o(s.appendChild(f),"script"),p&&oi(e),r))for(a=0;f=e[a++];)ar.test(f.type||"")&&r.push(f);return s},cleanData:function(n){for(var f,t,o,u,h=i.event.special,s=0;void 0!==(t=n[s]);s++){if(i.acceptData(t)&&(u=t[r.expando],u&&(f=r.cache[u]))){if(f.events)for(o in f.events)h[o]?i.event.remove(t,o):i.removeEvent(t,o,f.handle);r.cache[u]&&delete r.cache[u]}delete e.cache[t[e.expando]]}}});i.fn.extend({text:function(n){return l(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=n?i.filter(n,this):this,u=0;null!=(r=f[u]);u++)t||1!==r.nodeType||i.cleanData(o(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&oi(o(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return l(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!vf.test(n)&&!h[(lr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(cr,"<$1><\/$2>");try{for(;u>r;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(o(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=bi.apply([],n);var h,v,s,c,u,y,e=0,l=this.length,w=this,b=l-1,a=n[0],p=i.isFunction(a);if(p||l>1&&"string"==typeof a&&!f.checkClone&&yf.test(a))return this.each(function(i){var r=w.eq(i);p&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),v=h.firstChild,1===h.childNodes.length&&(h=v),v)){for(s=i.map(o(h,"script"),bf),c=s.length;l>e;e++)u=h,e!==b&&(u=i.clone(u,!0,!0),c&&i.merge(s,o(u,"script"))),t.call(this[e],u,e);if(c)for(y=s[s.length-1].ownerDocument,i.map(s,kf),e=0;c>e;e++)u=s[e],ar.test(u.type||"")&&!r.access(u,"globalEval")&&i.contains(y,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval(u.textContent.replace(wf,"")))}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ii.apply(f,u.get());return this.pushStack(f)}});si={};var wr=/^margin/,ci=new RegExp("^("+lt+")(?!px)[a-z%]+$","i"),yt=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)};!function(){var s,o,e=u.documentElement,r=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";f.clearCloneStyle="content-box"===t.style.backgroundClip;r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute";r.appendChild(t);function h(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute";t.innerHTML="";e.appendChild(r);var i=n.getComputedStyle(t,null);s="1%"!==i.top;o="4px"===i.width;e.removeChild(r)}n.getComputedStyle&&i.extend(f,{pixelPosition:function(){return h(),s},boxSizingReliable:function(){return null==o&&h(),o},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",e.appendChild(r),f=!parseFloat(n.getComputedStyle(i,null).marginRight),e.removeChild(r),f}})}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var gf=/^(none|table(?!-c[ea]).+)/,ne=new RegExp("^("+lt+")(.*)$","i"),te=new RegExp("^([+-])=("+lt+")","i"),ie={position:"absolute",visibility:"hidden",display:"block"},kr={letterSpacing:"0",fontWeight:"400"},dr=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=rt(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;return t=i.cssProps[s]||(i.cssProps[s]=gr(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===r?e&&"get"in e&&void 0!==(o=e.get(n,!1,u))?o:c[t]:(h=typeof r,"string"===h&&(o=te.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=r&&r===r&&("number"!==h||i.cssNumber[s]||(r+="px"),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),e&&"set"in e&&void 0===(r=e.set(n,r,u))||(c[t]=r)),void 0)}},css:function(n,t,r,u){var f,s,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=gr(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=rt(n,t,u)),"normal"===f&&t in kr&&(f=kr[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return gf.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ie,function(){return iu(n,t,u)}):iu(n,t,u)},set:function(n,r,u){var f=u&&yt(n);return nu(n,r,u?tu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.cssHooks.marginRight=br(f.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},rt,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};wr.test(n)||(i.cssHooks[n+t].set=nu)});i.fn.extend({css:function(n,t){return l(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=yt(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return ru(this,!0)},hide:function(){return ru(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){it(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var r,t=s.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=s.prototype.init;i.fx.step={};var nt,pt,re=/^(?:toggle|show|hide)$/,uu=new RegExp("^(?:([+-])=|)("+lt+")([a-z%]*)$","i"),ue=/queueHooks$/,wt=[fe],ut={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uu.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uu.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(ou,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ut[r]=ut[r]||[],ut[r].unshift(t)},prefilter:function(n,t){t?wt.unshift(n):wt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(it).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=ou(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&ue.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;s>t;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(nt=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();nt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){pt||(pt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(pt);pt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();tt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return l(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===d?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?su:oe)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(c);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}}});su={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=tt[t]||i.find.attr;tt[t]=function(n,t,i){var u,f;return i||(f=tt[t],tt[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,tt[t]=f),u}});hu=/^(?:input|select|textarea|button)$/i;i.fn.extend({prop:function(n,t){return l(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){return n.hasAttribute("tabindex")||hu.test(n.nodeName)||n.href?n.tabIndex:-1}}}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});kt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,h="string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(kt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,h=0===arguments.length||"string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(kt," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===u)for(var t,e=0,f=i(this),o=n.match(c)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(u===d||"boolean"===u)&&(this.className&&r.set(this,"__className__",this.className),this.className=this.className||n===!1?"":r.get(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(kt," ").indexOf(i)>=0)return!0;return!1}});cu=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(cu,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,h=u?null:[],c=u?r+1:s.length,e=0>r?c:u?r:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==r||(f.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(r.value,e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});dt=i.now();gt=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(n){var t,r;if(!n||"string"!=typeof n)return null;try{r=new DOMParser;t=r.parseFromString(n,"text/xml")}catch(u){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+n),t};var b,v,se=/#.*$/,lu=/([?&])_=[^&]*/,he=/^(.*?):[ \t]*([^\r\n]*)$/gm,ce=/^(?:GET|HEAD)$/,le=/^\/\//,au=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,vu={},li={},yu="*/".concat("*");try{v=location.href}catch(ge){v=u.createElement("a");v.href="";v=v.href}b=au.exec(v.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:v,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(b[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ai(ai(n,i.ajaxSettings),t):ai(i.ajaxSettings,n)},ajaxPrefilter:pu(vu),ajaxTransport:pu(li),ajax:function(n,t){function w(n,t,s,h){var v,it,b,y,w,c=t;2!==e&&(e=2,d&&clearTimeout(d),l=void 0,k=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=ae(r,u,s)),y=ve(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,b=y.error,v=!b)):(b=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?nt.resolveWith(o,[it,c,u]):nt.rejectWith(o,[u,c,b]),u.statusCode(p),p=void 0,a&&g.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:b]),tt.fireWith(o,[u,c]),a&&(g.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var l,f,k,y,d,s,a,h,r=i.ajaxSetup({},t),o=r.context||r,g=r.context&&(o.nodeType||o.jquery)?i(o):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!y)for(y={};t=he.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?k:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),w(0,t),this}};if(nt.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||v)+"").replace(se,"").replace(le,b[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(c)||[""],null==r.crossDomain&&(s=au.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===b[1]&&s[2]===b[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(b[3]||("http:"===b[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),wu(vu,r,t,u),2===e)return u;a=r.global;a&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!ce.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(gt.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=lu.test(f)?f.replace(lu,"$1_="+dt++):f+(gt.test(f)?"&":"?")+"_="+dt++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+yu+"; q=0.01":""):r.accepts["*"]);for(h in r.headers)u.setRequestHeader(h,r.headers[h]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(h in{success:1,error:1,complete:1})u[h](r[h]);if(l=wu(li,r,t,u)){u.readyState=1;a&&g.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(d=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;l.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(this[0]&&(t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this)},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ye=/%20/g,pe=/\[\]$/,bu=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,be=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)vi(r,n[r],t,f);return u.join("&").replace(ye,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&be.test(this.nodeName)&&!we.test(n)&&(this.checked||!er.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bu,"\r\n")}}):{name:t.name,value:r.replace(bu,"\r\n")}}).get()}});i.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(n){}};var ke=0,ni={},de={0:200,1223:204},ft=i.ajaxSettings.xhr();return n.ActiveXObject&&i(n).on("unload",function(){for(var n in ni)ni[n]()}),f.cors=!!ft&&"withCredentials"in ft,f.ajax=ft=!!ft,i.ajaxTransport(function(n){var t;if(f.cors||ft&&!n.crossDomain)return{send:function(i,r){var f,u=n.xhr(),e=++ke;if(u.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(f in n.xhrFields)u[f]=n.xhrFields[f];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType);n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(f in i)u.setRequestHeader(f,i[f]);t=function(n){return function(){t&&(delete ni[e],t=u.onload=u.onerror=null,"abort"===n?u.abort():"error"===n?r(u.status,u.statusText):r(de[u.status]||u.status,u.statusText,"string"==typeof u.responseText?{text:u.responseText}:void 0,u.getAllResponseHeaders()))}};u.onload=t();u.onerror=t("error");t=ni[e]=t("abort");try{u.send(n.hasContent&&n.data||null)}catch(o){if(t)throw o;}},abort:function(){t&&t()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),yi=[],ti=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=yi.pop()||i.expando+"_"+dt++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ti.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ti.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ti,"$1"+f):t.jsonp!==!1&&(t.url+=(gt.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,yi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=gi.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},pi=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&pi)return pi.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o,dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,s||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},wi=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,f,t=this[0],u={top:0,left:0},e=t&&t.ownerDocument;if(e)return r=e.documentElement,i.contains(r,t)?(typeof t.getBoundingClientRect!==d&&(u=t.getBoundingClientRect()),f=ku(e),{top:u.top+f.pageYOffset-r.clientTop,left:u.left+f.pageXOffset-r.clientLeft}):u},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||wi;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||wi})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var u="pageYOffset"===r;i.fn[t]=function(i){return l(this,function(t,i,f){var e=ku(t);return void 0===f?e?e[r]:t[i]:void(e?e.scrollTo(u?n.pageXOffset:f,u?f:n.pageYOffset):t[i]=f)},t,i,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=br(f.pixelPosition,function(n,r){if(r)return(r=rt(n,t),ci.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return l(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),du=n.jQuery,gu=n.$,i.noConflict=function(t){return n.$===i&&(n.$=gu),t&&n.jQuery===i&&(n.jQuery=du),i},typeof t===d&&(n.jQuery=n.$=i),i}),function(n,t,i){"use strict";function y(n){return function(){for(var i=arguments[0],i="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.2.23/"+(n?n+"/":"")+i,t=1;t<arguments.length;t++)i=i+(1==t?"?":"&")+"p"+(t-1)+"="+encodeURIComponent("function"==typeof arguments[t]?arguments[t].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[t]?"undefined":"string"!=typeof arguments[t]?JSON.stringify(arguments[t]):arguments[t]);return Error(i)}}function lr(n){if(null==n||ei(n))return!1;var t=n.length;return 1===n.nodeType&&t?!0:e(n)||o(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u;if(n)if(h(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u);else if(o(n)||lr(n))for(u=0;u<n.length;u++)t.call(i,n[u],u);else if(n.forEach&&n.forEach!==r)n.forEach(t,i);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u);return n}function af(n){var t=[];for(var i in n)n.hasOwnProperty(i)&&t.push(i);return t.sort()}function ko(n,t,i){for(var r=af(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function vf(n){return function(t,i){n(i,t)}}function ar(){for(var n=at.length,t;n;){if(n--,t=at[n].charCodeAt(0),57==t)return at[n]="A",at.join("");if(90==t)at[n]="0";else return at[n]=String.fromCharCode(t+1),at.join("")}return at.unshift("0"),at.join("")}function yf(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function c(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),yf(n,t),n}function b(n){return parseInt(n,10)}function pf(n,t){return c(new(c(function(){},{prototype:n})),t)}function s(){}function fi(n){return n}function nt(n){return function(){return n}}function l(n){return"undefined"==typeof n}function f(n){return"undefined"!=typeof n}function a(n){return null!=n&&"object"==typeof n}function e(n){return"string"==typeof n}function su(n){return"number"==typeof n}function vt(n){return"[object Date]"===ri.call(n)}function h(n){return"function"==typeof n}function vr(n){return"[object RegExp]"===ri.call(n)}function ei(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function go(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function ns(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function pi(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1}function wi(n,t){var i=pi(n,t);return 0<=i&&n.splice(i,1),t}function oi(n,t,i,u){var e,f,s;if(ei(n)||n&&n.$evalAsync&&n.$watch)throw tr("cpws");if(t){if(n===t)throw tr("cpi");if(i=i||[],u=u||[],a(n)){if(e=pi(i,n),-1!==e)return u[e];i.push(n);u.push(t)}if(o(n))for(f=t.length=0;f<n.length;f++)e=oi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t.push(e);else{s=t.$$hashKey;o(t)?t.length=0:r(t,function(n,i){delete t[i]});for(f in n)e=oi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t[f]=e;yf(t,s)}}else(t=n)&&(o(n)?t=oi(n,[],i,u):vt(n)?t=new Date(n.getTime()):vr(n)?(t=RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):a(n)&&(t=oi(n,{},i,u)));return t}function rt(n,t){if(o(n)){t=t||[];for(var i=0;i<n.length;i++)t[i]=n[i]}else if(a(n))for(i in t=t||{},n)iu.call(n,i)&&("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function dt(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(o(n)){if(!o(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!dt(n[r],t[r]))return!1;return!0}}else{if(vt(n))return vt(t)?isNaN(n.getTime())&&isNaN(t.getTime())||n.getTime()===t.getTime():!1;if(vr(n)&&vr(t))return n.toString()==t.toString();if(n&&n.$evalAsync&&n.$watch||t&&t.$evalAsync&&t.$watch||ei(n)||ei(t)||o(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!h(n[r])){if(!dt(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!h(t[r]))return!1;return!0}return!1}function hu(n,t){var i=2<arguments.length?ii.call(arguments,2):[];return!h(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(ii.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ts(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)?u=i:ei(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":r&&r.$evalAsync&&r.$watch&&(u="$SCOPE"),u}function yt(n,t){return"undefined"==typeof n?i:JSON.stringify(n,ts,t?"  ":null)}function wf(n){return e(n)?JSON.parse(n):n}function bi(n){return"function"==typeof n?n=!0:n&&0!==n.length?(n=v(""+n),n=!("f"==n||"0"==n||"false"==n||"no"==n||"n"==n||"[]"==n)):n=!1,n}function ut(n){n=u(n).clone();try{n.empty()}catch(i){}var t=u("<div>").append(n).html();try{return 3===n[0].nodeType?v(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+v(t)})}catch(r){return v(t)}}function bf(n){try{return decodeURIComponent(n)}catch(t){}}function kf(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.replace(/\+/g,"%20").split("="),t=bf(u[0]),f(t)&&(n=f(u[1])?bf(u[1]):!0,iu.call(i,t)?o(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function cu(n){var t=[];return r(n,function(n,i){o(n)?r(n,function(n){t.push(gt(i,!0)+(!0===n?"":"="+gt(n,!0)))}):t.push(gt(i,!0)+(!0===n?"":"="+gt(n,!0)))}),t.length?t.join("&"):""}function yr(n){return gt(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function gt(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function is(n,i){function f(n){n&&s.push(n)}var s=[n],u,e,o=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(o,function(i){o[i]=!0;f(t.getElementById(i));i=i.replace(":","\\:");n.querySelectorAll&&(r(n.querySelectorAll("."+i),f),r(n.querySelectorAll("."+i+"\\:"),f),r(n.querySelectorAll("["+i+"]"),f))});r(s,function(n){if(!u){var t=h.exec(" "+n.className+" ");t?(u=n,e=(t[2]||"").replace(/\s+/g,",")):r(n.attributes,function(t){!u&&o[t.name]&&(u=n,e=t.value)})}});u&&i(u,e?[e]:[])}function df(i,f){var e=function(){if(i=u(i),i.injector()){var n=i[0]===t?"document":ut(i);throw tr("btstrpd",n.replace(/</,"&lt;").replace(/>/,"&gt;"));}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=fe(f),n.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},o=/^NG_DEFER_BOOTSTRAP!/;if(n&&!o.test(n.name))return e();n.name=n.name.replace(o,"");ir.resumeBootstrap=function(n){r(n,function(n){f.push(n)});e()}}function pr(n,t){return t=t||"_",n.replace(nc,function(n,i){return(i?t:"")+n.toLowerCase()})}function lu(n,t,i){if(!n)throw tr("areq",t||"?",i||"required");return n}function ki(n,t,i){return i&&o(n)&&(n=n[n.length-1]),lu(h(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function ni(n,t){if("hasOwnProperty"===n)throw tr("badname",t);}function gf(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&h(n)?hu(f,n):n}function au(n){var t=n[0],i;if(n=n[n.length-1],t===n)return u(t);i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return u(i)}function rs(n){var t=y("$injector"),i=y("ng");return n=n.angular||(n.angular={}),n.$$minErr=n.$$minErr||y,n.module||(n.module=function(){var n={};return function(r,u,f){if("hasOwnProperty"===r)throw i("badname","module");return u&&n.hasOwnProperty(r)&&(n[r]=null),n[r]||(n[r]=function(){function n(n,t,r){return function(){return i[r||"push"]([n,t,arguments]),s}}if(!u)throw t("nomod",r);var i=[],e=[],o=n("$injector","invoke"),s={_invokeQueue:i,_runBlocks:e,requires:u,name:r,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:o,run:function(n){return e.push(n),this}};return f&&o(f),s}())}}())}function us(t){c(t,{bootstrap:df,copy:oi,extend:c,equals:dt,element:u,forEach:r,injector:fe,noop:s,bind:hu,toJson:yt,fromJson:wf,identity:fi,isUndefined:l,isDefined:f,isString:e,isFunction:h,isObject:a,isNumber:su,isElement:go,isArray:o,version:tc,isDate:vt,lowercase:v,uppercase:li,callbacks:{counter:0},$$minErr:y,$$csp:ur});rr=rs(n);try{rr("ngLocale")}catch(i){rr("ngLocale",[]).provider("$locale",nh)}rr("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:sh});n.provider("$compile",ee).directive({a:ao,input:po,textarea:po,form:rl,script:wa,select:da,style:nv,option:ga,ngBind:pl,ngBindHtml:bl,ngBindTemplate:wl,ngClass:kl,ngClassEven:gl,ngClassOdd:dl,ngCloak:na,ngController:ta,ngForm:ul,ngHide:ca,ngIf:ia,ngInclude:ra,ngInit:fa,ngNonBindable:ea,ngPluralize:oa,ngRepeat:sa,ngShow:ha,ngStyle:la,ngSwitch:aa,ngSwitchWhen:va,ngSwitchDefault:ya,ngOptions:ka,ngTransclude:pa,ngModel:cl,ngList:al,ngChange:ll,required:wo,ngRequired:wo,ngValue:yl}).directive({ngInclude:ua}).directive(uu).directive(bo);n.provider({$anchorScroll:es,$animate:yc,$browser:hs,$cacheFactory:cs,$controller:as,$document:vs,$exceptionHandler:ys,$filter:ke,$interpolate:ds,$interval:gs,$http:ps,$httpBackend:bs,$location:th,$log:ih,$parse:rh,$rootScope:oh,$q:uh,$sce:lh,$sceDelegate:ch,$sniffer:ah,$templateCache:ls,$timeout:vh,$window:yh,$$rAF:eh,$$asyncCallback:os})}])}function di(n){return n.replace(rc,function(n,t,i,r){return r?i.toUpperCase():i}).replace(uc,"Moz$1")}function vu(n,t,i,r){function e(n){var h=i&&n?[this.filter(n)]:[this],c=t,l,o,a,e,s,v;if(!r||null!=n)for(;h.length;)for(l=h.shift(),o=0,a=l.length;o<a;o++)for(e=u(l[o]),c?e.triggerHandler("$destroy"):c=!c,s=0,e=(v=e.children()).length;s<e;s++)h.push(ti(v[s]));return f.apply(this,arguments)}var f=ti.fn[n],f=f.$original||f;e.$original=f;ti.fn[n]=e}function w(n){var r,o,i,f;if(n instanceof w)return n;if(e(n)&&(n=g(n)),!(this instanceof w)){if(e(n)&&"<"!=n.charAt(0))throw ef("nosel");return new w(n)}if(e(n)){if(r=n,n=t,o=fc.exec(r))n=[n.createElement(o[1])];else{if(i=n,n=i.createDocumentFragment(),o=[],of.test(r)){for(i=n.appendChild(i.createElement("div")),f=(ec.exec(r)||["",""])[1].toLowerCase(),f=tt[f]||tt._default,i.innerHTML="<div>&#160;<\/div>"+f[1]+r.replace(oc,"<$1><\/$2>")+f[2],i.removeChild(i.firstChild),r=f[0];r--;)i=i.lastChild;for(r=0,f=i.childNodes.length;r<f;++r)o.push(i.childNodes[r]);i=n.firstChild;i.textContent=""}else o.push(i.createTextNode(r));n.textContent="";n.innerHTML="";n=o}ku(this,n);u(t.createDocumentFragment()).append(this)}else ku(this,n)}function yu(n){return n.cloneNode(!0)}function si(n){pu(n);var t=0;for(n=n.childNodes||[];t<n.length;t++)si(n[t])}function ne(n,t,i,u){if(f(u))throw ef("offargs");var e=st(n,"events");st(n,"handle")&&(l(t)?r(e,function(t,i){er(n,i,t);delete e[i]}):r(t.split(" "),function(t){l(i)?(er(n,t,e[t]),delete e[t]):wi(e[t]||[],i)}))}function pu(n,t){var u=n.ng339,r=fr[u];r&&(t?delete fr[u].data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ne(n)),delete fr[u],n.ng339=i))}function st(n,t,i){var r=n.ng339,r=fr[r||-1];if(f(i))r||(n.ng339=r=++ic,r=fr[r]={}),r[t]=i;else return r&&r[t]}function wu(n,t,i){var r=st(n,"data"),u=f(i),e=!u&&f(t),o=e&&!a(t);if(r||o||st(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];c(r,t)}else return r}function bu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function wr(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",g((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+g(t)+" "," ")))})}function br(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=g(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",g(i))}}function ku(n,t){if(t){t=t.nodeName||!f(t.length)||ei(t)?[t]:t;for(var i=0;i<t.length;i++)n.push(t[i])}}function te(n,t){return kr(n,"$"+(t||"ngController")+"Controller")}function kr(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=o(t)?t:[t];n;){for(var f=0,e=t.length;f<e;f++)if((r=u.data(n,t[f]))!==i)return r;n=n.parentNode||11===n.nodeType&&n.host}}function ie(n){for(var t=0,i=n.childNodes;t<i.length;t++)si(i[t]);for(;n.firstChild;)n.removeChild(n.firstChild)}function re(n,t){var i=or[t.toLowerCase()];return i&&sf[n.nodeName]&&i}function fs(n,i){var u=function(u,f){var e,o;u.preventDefault||(u.preventDefault=function(){u.returnValue=!1});u.stopPropagation||(u.stopPropagation=function(){u.cancelBubble=!0});u.target||(u.target=u.srcElement||t);l(u.defaultPrevented)&&(e=u.preventDefault,u.preventDefault=function(){u.defaultPrevented=!0;e.call(u)},u.defaultPrevented=!1);u.isDefaultPrevented=function(){return u.defaultPrevented||!1===u.returnValue};o=rt(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});8>=p?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function hi(n,t){var u=typeof n,r;return"function"==u||"object"==u&&null!==n?"function"==typeof(r=n.$$hashKey)?r=n.$$hashKey():r===i&&(r=n.$$hashKey=(t||ar)()):r=n,u+":"+r}function gi(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function ue(n){var i,t;return"function"==typeof n?(i=n.$inject)||(i=[],n.length&&(t=n.toString().replace(ac,""),t=t.match(hc),r(t[1].split(cc),function(n){n.replace(lc,function(n,t,r){i.push(r)})})),n.$inject=i):o(n)?(t=n.length-1,ki(n[t],"fn"),i=n.slice(0,t)):ki(n,"fn",!0),i}function fe(n){function i(n){return function(t,i){if(a(t))r(t,vf(n));else return n(t,i)}}function w(n,i){if(ni(n,"service"),(h(i)||o(i))&&(i=t.instantiate(i)),!i.$get)throw sr("pget",n);return u[n+c]=i}function v(n,t){return w(n,{$get:t})}function b(n){var i=[],u,s,f,c;return r(n,function(n){if(!d.get(n)){d.put(n,!0);try{if(e(n))for(u=rr(n),i=i.concat(b(u.requires)).concat(u._runBlocks),s=u._invokeQueue,f=0,c=s.length;f<c;f++){var l=s[f],a=t.get(l[0]);a[l[1]].apply(a,l[2])}else h(n)?i.push(t.invoke(n)):o(n)?i.push(t.invoke(n)):ki(n,"module")}catch(r){throw o(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),sr("modulerr",n,r.stack||r.message||r);}}}),i}function k(n,t){function i(i){if(n.hasOwnProperty(i)){if(n[i]===y)throw sr("cdep",i+" <- "+l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=y,n[i]=t(i)}catch(r){throw n[i]===y&&delete n[i],r;}finally{l.shift()}}function r(n,t,r){for(var s=[],h=ue(n),u,f=0,e=h.length;f<e;f++){if(u=h[f],"string"!=typeof u)throw sr("itkn",u);s.push(r&&r.hasOwnProperty(u)?r[u]:i(u))}return o(n)&&(n=n[e]),n.apply(t,s)}return{invoke:r,instantiate:function(n,t){var i=function(){},u;return i.prototype=(o(n)?n[n.length-1]:n).prototype,i=new i,u=r(n,i,t),a(u)||h(u)?u:i},get:i,annotate:ue,has:function(t){return u.hasOwnProperty(t+c)||n.hasOwnProperty(t)}}}var y={},c="Provider",l=[],d=new gi([],!0),u={$provide:{provider:i(w),factory:i(v),service:i(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:i(function(n,t){return v(n,nt(t))}),constant:i(function(n,t){ni(n,"constant");u[n]=t;p[n]=t}),decorator:function(n,i){var r=t.get(n+c),u=r.$get;r.$get=function(){var n=f.invoke(u,r);return f.invoke(i,null,{$delegate:n})}}}},t=u.$injector=k(u,function(){throw sr("unpr",l.join(" <- "));}),p={},f=p.$injector=k(p,function(n){return n=t.get(n+c),f.invoke(n.$get,n)});return r(b(n),function(n){f.invoke(n||s)}),f}function es(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,u){function o(n){var t=null;return r(n,function(n){t||"a"!==v(n.nodeName)||(t=n)}),t}function f(){var n=i.hash(),r;n?(r=e.getElementById(n))?r.scrollIntoView():(r=o(e.getElementsByName(n)))?r.scrollIntoView():"top"===n&&t.scrollTo(0,0):t.scrollTo(0,0)}var e=t.document;return n&&u.$watch(function(){return i.hash()},function(){u.$evalAsync(f)}),f}]}function os(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function ss(n,t,f,o){function g(n){try{n.apply(null,ii.call(arguments,1))}finally{if(a--,0===a)for(;w.length;)try{w.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(b,function(n){n()});ot=t(i,n)})()}function nt(){it=null;k!=h.url()&&(k=h.url(),r(rt,function(n){n(h.url())}))}var h=this,v=t[0],c=n.location,y=n.history,et=n.setTimeout,ct=n.clearTimeout,p={},a,w,b,ot,rt,ut;h.isMock=!1;a=0;w=[];h.$$completeOutstandingRequest=g;h.$$incOutstandingRequestCount=function(){a++};h.notifyWhenNoOutstandingRequests=function(n){r(b,function(n){n()});0===a?n():w.push(n)};b=[];h.addPollFn=function(n){return l(ot)&&ht(100,et),b.push(n),n};var k=c.href,tt=t.find("base"),it=null;h.url=function(t,i){if(c!==n.location&&(c=n.location),y!==n.history&&(y=n.history),t){if(k!=t)return k=t,o.history?i?y.replaceState(null,"",t):(y.pushState(null,"",t),tt.attr("href",tt.attr("href"))):(it=t,i?c.replace(t):c.href=t),h}else return it||c.href.replace(/%27/g,"'")};rt=[];ut=!1;h.onUrlChange=function(t){if(!ut){if(o.history)u(n).on("popstate",nt);if(o.hashchange)u(n).on("hashchange",nt);else h.addPollFn(nt);ut=!0}return rt.push(t),t};h.baseHref=function(){var n=tt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var d={},ft="",st=h.baseHref();h.cookies=function(n,t){var r,u,o,s;if(n)t===i?v.cookie=escape(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":e(t)&&(r=(v.cookie=escape(n)+"="+escape(t)+";path="+st).length+1,4096<r&&f.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"));else{if(v.cookie!==ft)for(ft=v.cookie,r=ft.split("; "),d={},o=0;o<r.length;o++)u=r[o],s=u.indexOf("="),0<s&&(n=unescape(u.substring(0,s)),d[n]===i&&(d[n]=unescape(u.substring(s+1))));return d}};h.defer=function(n,t){var i;return a++,i=et(function(){delete p[i];g(n)},t||0),p[i]=!0,i};h.defer.cancel=function(n){return p[n]?(delete p[n],ct(n),g(s),!0):!1}}function hs(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new ss(n,r,t,i)}]}function cs(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,h(n.n,n.p),h(n,f),f=n,f.n=null)}function h(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw y("$cacheFactory")("iid",t);var o=0,v=c({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!l(t))return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);h(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){u=v=e=null;delete n[t]},info:function(){return c({},v,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function ls(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ee(n,s){var l={},v="Directive",y=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,w=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,b=/^(on[a-z]+|formaction)$/;this.directive=function k(t,i){return ni(t,"directive"),e(t)?(lu(i,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],n.factory(t+v,["$injector","$exceptionHandler",function(n,i){var u=[];return r(l[t],function(r,f){try{var e=n.invoke(r);h(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"A";u.push(e)}catch(o){i(o)}}),u}])),l[t].push(i)):r(t,vf(k)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(s.aHrefSanitizationWhitelist(n),this):s.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(s.imgSrcSanitizationWhitelist(n),this):s.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,s,k,d,nt,tt,it,ft,ot,st,ct){function wt(n,t,i,f,e){n instanceof u||(n=u(n));r(n,function(t,i){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(n[i]=u(t).wrap("<span><\/span>").parent()[0])});var o=bt(n,t,n,i,f,e);return lt(n,"ng-scope"),function(t,i,u,f){var e,h,s;for(lu(t,"scope"),e=i?ui.clone.call(n):n,r(u,function(n,t){e.data("$"+t+"Controller",n)}),u=0,h=e.length;u<h;u++)s=e[u].nodeType,1!==s&&9!==s||e.eq(u).data("$scope",t);return i&&i(e,t),o&&o(t,e,e,f),e}}function lt(n,t){try{n.addClass(t)}catch(i){}}function bt(n,t,r,f,e,o){function y(n,r,f,e){var s,h,l,o,y,a,p,v;for(s=r.length,v=Array(s),o=0;o<s;o++)v[o]=r[o];for(a=o=0,y=c.length;o<y;a++)h=v[a],r=c[o++],s=c[o++],r?(r.scope?(l=n.$new(),u.data(h,"$scope",l)):l=n,p=r.transcludeOnThisElement?vt(n,r.transclude,e):!r.templateOnThisElement&&e?e:!e&&t?vt(n,t):null,r(s,l,h,f,p)):s&&s(n,h.childNodes,i,e)}for(var c=[],s,l,a,v,h=0;h<n.length;h++)s=new gt,l=kt(n[h],[],s,0===h?f:i,e),(o=l.length?ri(l,n[h],s,t,r,null,[],[],o):null)&&o.scope&&lt(s.$$element,"ng-scope"),s=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:bt(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),c.push(o,s),v=v||o||s,o=null;return v?y:null}function vt(n,t,i){return function(r,u,f){var e=!1;if(r||(r=n.$new(),e=r.$$transcluded=!0),u=t(r,u,f,i),e)u.on("$destroy",function(){r.$destroy()});return u}}function kt(n,t,i,r,u){var k=i.$attr,o,l,a,b;switch(n.nodeType){case 1:yt(t,ht(ai(n).toLowerCase()),"E",r,u);for(var f,s,v,h=n.attributes,c=0,d=h&&h.length;c<d;c++)l=!1,a=!1,f=h[c],(!p||8<=p||f.specified)&&(o=f.name,s=g(f.value),f=ht(o),(v=ki.test(f))&&(o=pr(f.substr(6),"-")),b=f.replace(/(Start|End)$/,""),f===b+"Start"&&(l=o,a=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),f=ht(o.toLowerCase()),k[f]=o,(v||!i.hasOwnProperty(f))&&(i[f]=s,re(n,f)&&(i[f]=!0)),bi(n,t,s,f),yt(t,f,"A",r,u,l,a));if(n=n.className,e(n)&&""!==n)for(;o=w.exec(n);)f=ht(o[2]),yt(t,f,"C",r,u)&&(i[f]=g(o[3])),n=n.substr(o.index+o[0].length);break;case 3:pi(t,n.nodeValue);break;case 8:try{(o=y.exec(n.nodeValue))&&(f=ht(o[1]),yt(t,f,"M",r,u)&&(i[f]=g(o[2])))}catch(nt){}}return t.sort(yi),t}function ni(n,t,i){var r=[],f=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw et("uterdir",t,i);1==n.nodeType&&(n.hasAttribute(t)&&f++,n.hasAttribute(i)&&f--);r.push(n);n=n.nextSibling}while(0<f)}else r.push(n);return u(r)}function ti(n,t,i){return function(r,u,f,e,o){return u=ni(u[0],t,i),n(r,u,f,e,o)}}function ri(n,c,l,v,y,p,w,b,k){function di(n,t,i,r){n&&(i&&(n=ti(n,i,r)),n.require=d.require,n.directiveName=st,(ft===d||d.$$isolateScope)&&(n=si(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ti(t,i,r)),t.require=d.require,t.directiveName=st,(ft===d||d.$$isolateScope)&&(t=si(t,{isolateScope:!0})),b.push(t))}function wi(n,t,i,u){var f,s="data",h=!1;if(e(t)){for(;"^"==(f=t.charAt(0))||"?"==f;)t=t.substr(1),"^"==f&&(s="inheritedData"),h=h||"?"==f;if(f=null,u&&"data"===s&&(f=u[t]),f=f||i[s]("$"+t+"Controller"),!f&&!h)throw et("ctreq",t,n);}else o(t)&&(f=[],r(t,function(t){f.push(wi(n,t,i,u))}));return f}function ct(n,t,e,o,h){function st(n,t){var r;return 2>arguments.length&&(t=n,n=i),yi&&(r=d),h(n,t,r)}var v,y,it,p,k,a,d={},g,ot;for(v=c===e?l:rt(l,new gt(u(e),l.$attr)),y=v.$$element,ft&&(ot=/^\s*([@=&])(\??)\s*(\w*)\s*$/,a=t.$new(!0),!ht||ht!==ft&&ht!==ft.$$originalDirective?y.data("$isolateScopeNoTemplate",a):y.data("$isolateScope",a),lt(y,"ng-isolate-scope"),r(ft.scope,function(n,i){var e=n.match(ot)||[],r=e[3]||i,c="?"==e[2],e=e[1],o,u,h,s;a.$$isolateBindings[i]=e+r;switch(e){case"@":v.$observe(r,function(n){a[i]=n});v.$$observers[r].$$scope=t;v[r]&&(a[i]=f(v[r])(t));break;case"=":if(c&&!v[r])break;u=nt(v[r]);s=u.literal?dt:function(n,t){return n===t||n!==n&&t!==t};h=u.assign||function(){o=a[i]=u(t);throw et("nonassign",v[r],ft.name);};o=a[i]=u(t);a.$watch(function(){var n=u(t);return s(n,a[i])||(s(n,o)?h(t,n=a[i]):a[i]=n),o=n},null,u.literal);break;case"&":u=nt(v[r]);a[i]=function(n){return u(t,n)};break;default:throw et("iscp",ft.name,i,n);}})),g=h&&st,vt&&r(vt,function(n){var r={$scope:n===ft||n.$$isolateScope?a:t,$element:y,$attrs:v,$transclude:g},i;k=n.controller;"@"==k&&(k=v[n.name]);i=tt(k,r);d[n.name]=i;yi||y.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),o=0,it=w.length;o<it;o++)try{p=w[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(ct){s(ct,ut(y))}for(o=t,ft&&(ft.template||null===ft.templateUrl)&&(o=a),n&&n(o,e.childNodes,i,h),o=b.length-1;0<=o;o--)try{p=b[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(at){s(at,ut(y))}}var hi,pi,gi;k=k||{};for(var ui=-Number.MAX_VALUE,ci,vt=k.controllerDirectives,ft=k.newIsolateScopeDirective,ht=k.templateDirective,ai=k.nonTlbTranscludeDirective,bi=!1,ki=!1,yi=k.hasElementTranscludeDirective,ot=l.$$element=u(c),d,st,it,fi=v,bt,yt=0,ri=n.length;yt<ri;yt++){if(d=n[yt],hi=d.$$start,pi=d.$$end,hi&&(ot=ni(c,hi,pi)),it=i,ui>d.priority)break;if((it=d.scope)&&(ci=ci||d,d.templateUrl||(at("new/isolated scope",ft,d,ot),a(it)&&(ft=d))),st=d.name,!d.templateUrl&&d.controller&&(it=d.controller,vt=vt||{},at("'"+st+"' controller",vt[st],d,ot),vt[st]=d),(it=d.transclude)&&(bi=!0,d.$$tlb||(at("transclusion",ai,d,ot),ai=d),"element"==it?(yi=!0,ui=d.priority,it=ot,ot=l.$$element=u(t.createComment(" "+st+": "+l[st]+" ")),c=ot[0],pt(y,ii.call(it,0),c),fi=wt(it,v,ui,p&&p.name,{nonTlbTranscludeDirective:ai})):(it=u(yu(c)).contents(),ot.empty(),fi=wt(it,v))),d.template)if(ki=!0,at("template",ht,d,ot),ht=d,it=h(d.template)?d.template(ot,l):d.template,it=li(it),d.replace){if(p=d,it=of.test(it)?u(g(it)):[],c=it[0],1!=it.length||1!==c.nodeType)throw et("tplrt",st,"");pt(y,ot,c);ri={$attr:{}};it=kt(c,[],ri);gi=n.splice(yt+1,n.length-(yt+1));ft&&ei(it);n=n.concat(it).concat(gi);oi(l,ri);ri=n.length}else ot.html(it);if(d.templateUrl)ki=!0,at("template",ht,d,ot),ht=d,d.replace&&(p=d),ct=vi(n.splice(yt,n.length-yt),ot,l,y,bi&&fi,w,b,{controllerDirectives:vt,newIsolateScopeDirective:ft,templateDirective:ht,nonTlbTranscludeDirective:ai}),ri=n.length;else if(d.compile)try{bt=d.compile(ot,l,fi);h(bt)?di(null,bt,hi,pi):bt&&di(bt.pre,bt.post,hi,pi)}catch(nr){s(nr,ut(ot))}d.terminal&&(ct.terminal=!0,ui=Math.max(ui,d.priority))}return ct.scope=ci&&!0===ci.scope,ct.transcludeOnThisElement=bi,ct.templateOnThisElement=ki,ct.transclude=fi,k.hasElementTranscludeDirective=yi,ct}function ei(n){for(var t=0,i=n.length;t<i;t++)n[t]=pf(n[t],{$$isolateScope:!0})}function yt(t,r,u,f,e,o,h){var c,a,y;if(r===e)return null;if(e=null,l.hasOwnProperty(r))for(r=n.get(r+v),a=0,y=r.length;a<y;a++)try{c=r[a];(f===i||f>c.priority)&&-1!=c.restrict.indexOf(u)&&(o&&(c=pf(c,{$$start:o,$$end:h})),t.push(c),e=c)}catch(p){s(p)}return e}function oi(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(lt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function vi(n,t,i,f,e,o,s,l){var v=[],p,w,b=t[0],y=n.shift(),tt=c({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),nt=h(y.templateUrl)?y.templateUrl(t,i):y.templateUrl;return t.empty(),k.get(ot.getTrustedResourceUrl(nt),{cache:d}).success(function(h){var c,d,k,rt;if(h=li(h),y.replace){if(h=of.test(h)?u(g(h)):[],c=h[0],1!=h.length||1!==c.nodeType)throw et("tplrt",y.name,nt);h={$attr:{}};pt(f,t,c);k=kt(c,[],h);a(y.scope)&&ei(k);n=k.concat(n);oi(i,h)}else c=b,t.html(h);for(n.unshift(tt),p=ri(n,c,i,e,t,y,o,s,l),r(f,function(n,i){n==c&&(f[i]=t[0])}),w=bt(t[0].childNodes,e);v.length;){h=v.shift();d=v.shift();var ut=v.shift(),it=v.shift(),k=t[0];d!==b&&(rt=d.className,l.hasElementTranscludeDirective&&y.replace||(k=yu(c)),pt(ut,u(d),k),lt(u(k),rt));d=p.transcludeOnThisElement?vt(h,p.transclude,it):it;p(w,h,k,f,d)}v=null}).error(function(n,t,i,r){throw et("tpload",r.url);}),function(n,t,i,r,u){n=u;v?(v.push(t),v.push(i),v.push(r),v.push(n)):(p.transcludeOnThisElement&&(n=vt(t,p.transclude,u)),p(w,t,i,r,n))}}function yi(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function at(n,t,i,r){if(t)throw et("multidir",t.name,i.name,n,ut(r));}function pi(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent().length;return t&&lt(n.parent(),"ng-binding"),function(n,r){var u=r.parent(),f=u.data("$binding")||[];f.push(i);u.data("$binding",f);t||lt(u,"ng-binding");n.$watch(i,function(n){r[0].nodeValue=n})}}})}function wi(n,t){if("srcdoc"==t)return ot.HTML;var i=ai(n);if("xlinkHref"==t||"FORM"==i&&"action"==t||"IMG"!=i&&("src"==t||"ngSrc"==t))return ot.RESOURCE_URL}function bi(n,t,i,r){var u=f(i,!0);if(u){if("multiple"===r&&"SELECT"===ai(n))throw et("selmulti",ut(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){if(i=e.$$observers||(e.$$observers={}),b.test(r))throw et("nodomevents");(u=f(e[r],!0,wi(n,r)))&&(e[r]=u(t),(i[r]||(i[r]=[])).$$inter=!0,(e.$$observers&&e.$$observers[r].$$scope||t).$watch(u,function(n,t){"class"===r&&n!=t?e.$updateClass(n,t):e.$set(r,n)}))}}}})}}function pt(n,i,r){var f=i[0],h=i.length,s=f.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==f){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;break}for(s&&s.replaceChild(r,f),n=t.createDocumentFragment(),n.appendChild(f),r[u.expando]=f[u.expando],f=1,h=i.length;f<h;f++)s=i[f],u(s).remove(),n.appendChild(s),delete i[f];i[0]=r;i.length=1}function si(n,t){return c(function(){return n.apply(null,arguments)},n,t)}var gt=function(n,t){this.$$element=n;this.$attr=t||{}};gt.prototype={$normalize:ht,$addClass:function(n){n&&0<n.length&&st.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&st.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=oe(n,t),r=oe(t,n);0===i.length?st.removeClass(this.$$element,r):0===r.length?st.addClass(this.$$element,i):st.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var e=re(this.$$element[0],n);e&&(this.$$element.prop(n,t),f=e);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=pr(n,"-"));e=ai(this.$$element);("A"===e&&"href"===n||"IMG"===e&&"src"===n)&&(this[n]=t=ct(t,"src"===n));!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(u=this.$$observers)&&r(u[n],function(n){try{n(t)}catch(i){s(i)}})},$observe:function(n,t){var i=this,r=i.$$observers||(i.$$observers={}),u=r[n]||(r[n]=[]);return u.push(t),it.$evalAsync(function(){u.$$inter||t(i[n])}),t}};var hi=f.startSymbol(),ci=f.endSymbol(),li="{{"==hi||"}}"==ci?fi:function(n){return n.replace(/\{\{/g,hi).replace(/}}/g,ci)},ki=/^ngAttr[A-Z]/;return wt}]}function ht(n){return di(n.replace(pc,""))}function oe(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function as(){var n={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){ni(t,"controller");a(t)?c(n,t):n[t]=i};this.$get=["$injector","$window",function(i,r){return function(u,f){var s,o,h;if(e(u)&&(s=u.match(t),o=s[1],h=s[3],u=n.hasOwnProperty(o)?n[o]:gf(f.$scope,o,!0)||gf(r,o,!0),ki(u,o,!0)),s=i.instantiate(u,f),h){if(!f||"object"!=typeof f.$scope)throw y("$controller")("noscp",o||u.name,h);f.$scope[h]=s}return s}}]}function vs(){this.$get=["$window",function(n){return u(n.document)}]}function ys(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function se(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=v(g(n.substr(0,f)));u=g(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function he(n){var t=a(n)?n:i;return function(i){return t||(t=se(n)),i?t[v(i)]||null:t}}function ce(n,t,i){return h(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function ps(){var u=/^\s*(\[|\{[^\{])/,s=/[\}\]]\s*$/,y=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return e(n)&&(n=n.replace(y,""),u.test(n)&&s.test(n)&&(n=wf(n))),n}],transformRequest:[function(n){return a(n)&&"[object File]"!==ri.call(n)&&"[object Blob]"!==ri.call(n)?yt(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:rt(t),put:rt(t),patch:rt(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[],w=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,s,y,b,k){function d(t){function s(n){var t=c({},n,{data:ce(n.data,n.headers,f.transformResponse)});return 200<=n.status&&300>n.status?t:b.reject(t)}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},e=function(t){var i=n.headers,u=c({},t.headers),f,e,i=c({},i.common,i[v(t.method)]);n:for(f in i){t=v(f);for(e in u)if(v(e)===t)continue n;u[f]=i[f]}return function(n){var t;r(n,function(i,r){h(i)&&(t=i(),null!=t?n[r]=t:delete n[r])})}(u),u}(t),o,a,u;for(c(f,t),f.headers=e,f.method=li(f.method),o=[function(t){e=t.headers;var i=ce(t.data,he(e),t.transformRequest);return l(i)&&r(e,function(n,t){"content-type"===v(t)&&delete e[t]}),l(t.withCredentials)&&!l(n.withCredentials)&&(t.withCredentials=n.withCredentials),nt(t,i,e).then(s,s)},i],u=b.when(f),r(g,function(n){(n.request||n.requestError)&&o.unshift(n.request,n.requestError);(n.response||n.responseError)&&o.push(n.response,n.responseError)});o.length;)t=o.shift(),a=o.shift(),u=u.then(t,a);return u.success=function(n){return u.then(function(t){n(t.data,t.status,t.headers,f)}),u},u.error=function(n){return u.then(null,function(t){n(t.data,t.status,t.headers,f)}),u},u}function nt(r,e,s){function ut(n,t,i,r){v&&(200<=n&&300>n?v.put(p,[n,t,se(i),r]):v.remove(p));k(t,n,i,r);y.$$phase||y.$apply()}function k(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?g.resolve:g.reject)({data:n,status:t,headers:he(i),config:r,statusText:u})}function w(){var n=pi(d.pendingRequests,r);-1!==n&&d.pendingRequests.splice(n,1)}var g=b.defer(),nt=g.promise,v,c,p=tt(r.url,r.params);if(d.pendingRequests.push(r),nt.then(w,w),(r.cache||n.cache)&&!1!==r.cache&&("GET"===r.method||"JSONP"===r.method)&&(v=a(r.cache)?r.cache:a(n.cache)?n.cache:it),v)if(c=v.get(p),f(c)){if(c&&h(c.then))return c.then(w,w),c;o(c)?k(c[1],c[0],rt(c[2]),c[3]):k(c,200,{},"OK")}else v.put(p,nt);return l(c)&&((c=rf(r.url)?u.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(s[r.xsrfHeaderName||n.xsrfHeaderName]=c),t(r.method,p,e,ut,s,r.timeout,r.withCredentials,r.responseType)),nt}function tt(n,t){if(!t)return n;var i=[];return ko(t,function(n,t){null===n||l(n)||(o(n)||(n=[n]),r(n,function(n){a(n)&&(vt(n)?n=n.toISOString():a(n)&&(n=yt(n)));i.push(gt(t)+"="+gt(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var it=s("$http"),g=[];return r(p,function(n){g.unshift(e(n)?k.get(n):k.invoke(n))}),r(w,function(n,t){var i=e(n)?k.get(n):k.invoke(n);g.splice(t,0,{response:function(n){return i(b.when(n))},responseError:function(n){return i(b.reject(n))}})}),d.pendingRequests=[],function(){r(arguments,function(n){d[n]=function(t,i){return d(c(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){d[n]=function(t,i,r){return d(c(r||{},{method:n,url:t,data:i}))}})}("post","put"),d.defaults=n,d}]}function ws(t){if(8>=p&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!n.XMLHttpRequest))return new n.ActiveXObject("Microsoft.XMLHTTP");if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw y("$httpBackend")("noxhr");}function bs(){this.$get=["$browser","$window","$document",function(n,t,i){return ks(n,ws,n.defer,t.angular.callbacks,i[0])}]}function ks(n,t,i,u,o){function l(n,t,i){var r=o.createElement("script"),f=null;return r.type="text/javascript",r.src=n,r.async=!0,f=function(n){er(r,"load",f);er(r,"error",f);o.body.removeChild(r);r=null;var e=-1,s="unknown";n&&("load"!==n.type||u[t].called||(n={type:"error"}),s=n.type,e="error"===n.type?404:200);i&&i(e,s)},ru(r,"load",f),ru(r,"error",f),8>=p&&(r.onreadystatechange=function(){e(r.readyState)&&/loaded|complete/.test(r.readyState)&&(r.onreadystatechange=null,f({type:"load"}))}),o.body.appendChild(r),f}var c=-1;return function(e,o,a,y,w,b,k,d){function ut(){tt=c;it&&it();g&&g.abort()}function ft(t,r,u,f,e){rt&&i.cancel(rt);it=g=null;0===r&&(r=u?200:"file"==pt(o).protocol?404:0);t(1223===r?204:r,u,f,e||"");n.$$completeOutstandingRequest(s)}var tt,nt,it,g,rt;if(n.$$incOutstandingRequestCount(),o=o||n.url(),"jsonp"==v(e))nt="_"+(u.counter++).toString(36),u[nt]=function(n){u[nt].data=n;u[nt].called=!0},it=l(o.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ft(y,n,u[nt].data,"",t);u[nt]=s});else{if(g=t(e),g.open(e,o,!0),r(w,function(n,t){f(n)&&g.setRequestHeader(t,n)}),g.onreadystatechange=function(){if(g&&4==g.readyState){var n=null,t=null,i="";tt!==c&&(n=g.getAllResponseHeaders(),t="response"in g?g.response:g.responseText);tt===c&&10>p||(i=g.statusText);ft(y,tt||g.status,t,n,i)}},k&&(g.withCredentials=!0),d)try{g.responseType=d}catch(et){if("json"!==d)throw et;}g.send(a||null)}0<b?rt=i(ut,b):b&&h(b.then)&&b.then(ut)}}function ds(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function f(f,s,h){for(var v,p,c=0,l=[],a=f.length,y=!1,w=[];c<a;)-1!=(v=f.indexOf(n,c))&&-1!=(p=f.indexOf(t,v+e))?(c!=v&&l.push(f.substring(c,v)),l.push(c=i(y=f.substring(v+e,p))),c.exp=y,c=p+o,y=!0):(c!=a&&l.push(f.substring(c)),c=a);if((a=l.length)||(l.push(""),a=1),h&&1<l.length)throw fo("noconcat",f);if(!s||y)return w.length=a,c=function(n){try{for(var i=0,e=a,t;i<e;i++){if("function"==typeof(t=l[i]))if(t=t(n),t=h?u.getTrusted(h,t):u.valueOf(t),null==t)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=yt(t)}w[i]=t}return w.join("")}catch(o){n=fo("interr",f,o.toString());r(n)}},c.exp=f,c.parts=l,c}var e=n.length,o=t.length;return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function gs(){this.$get=["$rootScope","$window","$q",function(n,t,i){function u(u,e,o,s){var a=t.setInterval,v=t.clearInterval,c=i.defer(),h=c.promise,l=0,y=f(s)&&!s;return o=f(o)?o:0,h.then(null,null,u),h.$$intervalId=a(function(){c.notify(l++);0<o&&l>=o&&(c.resolve(l),v(h.$$intervalId),delete r[h.$$intervalId]);y||n.$apply()},e),r[h.$$intervalId]=c,h}var r={};return u.cancel=function(n){return n&&n.$$intervalId in r?(r[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete r[n.$$intervalId],!0):!1},u}]}function nh(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return 1===n?"one":"other"}}}}function du(n){n=n.split("/");for(var t=n.length;t--;)n[t]=yr(n[t]);return n.join("/")}function le(n,t,i){n=pt(n,i);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=b(n.port)||bc[n.protocol]||null}function ae(n,t,i){var r="/"!==n.charAt(0);r&&(n="/"+n);n=pt(n,i);t.$$path=decodeURIComponent(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname);t.$$search=kf(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ct(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function nr(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function gu(n){return n.substr(0,nr(n).lastIndexOf("/")+1)}function ve(n,t){this.$$html5=!0;t=t||"";var r=gu(n);le(n,this,n);this.$$parse=function(t){var i=ct(r,t);if(!e(i))throw hf("ipthprfx",t,r);ae(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=cu(this.$$search),t=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=du(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$rewrite=function(u){var f;return(f=ct(n,u))!==i?(u=f,(f=ct(t,f))!==i?r+(ct("/",f)||f):n+u):(f=ct(r,u))!==i?r+f:r==u+"/"?r:void 0}}function nf(n,t){var i=gu(n);le(n,this,n);this.$$parse=function(r){var u=ct(n,r)||ct(i,r),u="#"==u.charAt(0)?ct(t,u):this.$$html5?u:"",f;if(!e(u))throw hf("ihshprfx",r,t);ae(u,this,n);r=this.$$path;f=/^\/[A-Z]:(\/.*)/;0===u.indexOf(n)&&(u=u.replace(n,""));f.exec(u)||(r=(u=f.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=cu(this.$$search),r=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=du(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$rewrite=function(t){if(nr(n)==nr(t))return t}}function tf(n,t){this.$$html5=!0;nf.apply(this,arguments);var i=gu(n);this.$$rewrite=function(r){var u;return n==nr(r)?r:(u=ct(i,r))?n+t+u:i===r+"/"?i:void 0};this.$$compose=function(){var i=cu(this.$$search),r=this.$$hash?"#"+yr(this.$$hash):"";this.$$url=du(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function dr(n){return function(){return this[n]}}function ye(n,t){return function(i){return l(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function th(){var t="",i=!1;this.hashPrefix=function(n){return f(n)?(t=n,this):t};this.html5Mode=function(n){return f(n)?(i=n,this):i};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,f,e,o){function p(n){r.$broadcast("$locationChangeSuccess",s.absUrl(),n)}var s,l,b=f.baseHref(),h=f.url(),c,w,y;i?(c=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(b||"/"),l=e.history?ve:tf):(c=nr(h),l=nf);s=new l(c,"#"+t);s.$$parse(s.$$rewrite(h));w=/^\s*(javascript|mailto):/i;o.on("click",function(i){var p,e,y,h,b;if(!i.ctrlKey&&!i.metaKey&&2!=i.which){for(p=u(i.target);"a"!==v(p[0].nodeName);)if(p[0]===o[0]||!(p=p.parent())[0])return;if(e=p.prop("href"),a(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=pt(e.animVal).href),!w.test(e)){if(l===tf&&(h=p.attr("href")||p.attr("xlink:href"),h&&0>h.indexOf("://")))if(e="#"+t,"/"==h[0])e=c+e+h;else if("#"==h[0])e=c+e+(s.path()||"/")+h;else{for(y=s.path().split("/"),h=h.split("/"),2!==y.length||y[1]||(y.length=1),b=0;b<h.length;b++)"."!=h[b]&&(".."==h[b]?y.pop():h[b].length&&y.push(h[b]));e=c+e+y.join("/")}y=s.$$rewrite(e);e&&!p.attr("target")&&y&&!i.isDefaultPrevented()&&(i.preventDefault(),y!=f.url()&&(s.$$parse(y),r.$apply(),n.angular["ff-684208-preventDefault"]=!0))}}});s.absUrl()!=h&&f.url(s.absUrl(),!0);f.onUrlChange(function(n){s.absUrl()!=n&&(r.$evalAsync(function(){var t=s.absUrl();s.$$parse(n);r.$broadcast("$locationChangeStart",n,t).defaultPrevented?(s.$$parse(t),f.url(t)):p(t)}),r.$$phase||r.$digest())});return y=0,r.$watch(function(){var n=f.url(),t=s.$$replace;return y&&n==s.absUrl()||(y++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),t),p(n))})),s.$$replace=!1,y}),s}]}function ih(){var n=!0,t=this;this.debugEnabled=function(t){return f(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||s;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ft(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw ot("isecfld",t);return n}function ci(n,t){if(n){if(n.constructor===n)throw ot("isecfn",t);if(n.document&&n.location&&n.alert&&n.setInterval)throw ot("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw ot("isecdom",t);if(n===Object)throw ot("isecobj",t);}return n}function gr(n,t,r,u,f){var e,s,o;for(f=f||{},t=t.split("."),s=0;1<t.length;s++)e=ft(t.shift(),u),o=n[e],o||(o={},n[e]=o),n=o,n.then&&f.unwrapPromises&&(bt(u),"$$v"in n||function(n){n.then(function(t){n.$$v=t})}(n),n.$$v===i&&(n.$$v={}),n=n.$$v);return e=ft(t.shift(),u),ci(n,u),ci(n[e],u),n[e]=r}function pe(n,t,r,u,f,e,o){return ft(n,e),ft(t,e),ft(r,e),ft(u,e),ft(f,e),o.unwrapPromises?function(o,s){var h=s&&s.hasOwnProperty(n)?s:o,c;return null==h?h:((h=h[n])&&h.then&&(bt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!t)?h:null==h?i:((h=h[t])&&h.then&&(bt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!r)?h:null==h?i:((h=h[r])&&h.then&&(bt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!u)?h:null==h?i:((h=h[u])&&h.then&&(bt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!f)?h:null==h?i:((h=h[f])&&h.then&&(bt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),h)}:function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=s[n],!t)?s:null==s?i:(s=s[t],!r)?s:null==s?i:(s=s[r],!u)?s:null==s?i:(s=s[u],f?null==s?i:s=s[f]:s)}}function we(n,t,u){var f,h,o,e,s;return lf.hasOwnProperty(n)?lf[n]:(f=n.split("."),h=f.length,t.csp?o=6>h?pe(f[0],f[1],f[2],f[3],f[4],u,t):function(n,r){var e=0,o;do o=pe(f[e++],f[e++],f[e++],f[e++],f[e++],u,t)(n,r),r=i,n=o;while(e<h);return o}:(e="var p;\n",r(f,function(n,i){ft(n,u);e+="if(s == null) return undefined;\ns="+(i?"s":'((k&&k.hasOwnProperty("'+n+'"))?k:s)')+'["'+n+'"];\n'+(t.unwrapPromises?'if (s && s.then) {\n pw("'+u.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),e=e+"return s;",s=new Function("s","k","pw",e),s.toString=nt(e),o=t.unwrapPromises?function(n,t){return s(n,t,bt)}:s),"hasOwnProperty"!==n&&(lf[n]=o),o)}function rh(){var t={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(t){return f(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises};this.logPromiseWarnings=function(t){return f(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(i,r,u){return n.csp=r.csp,bt=function(t){n.logPromiseWarnings&&!eo.hasOwnProperty(t)&&(eo[t]=!0,u.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var u;switch(typeof r){case"string":return t.hasOwnProperty(r)?t[r]:(u=new cf(n),u=new vi(u,i,n).parse(r),"hasOwnProperty"!==r&&(t[r]=u),u);case"function":return r;default:return s}}}]}function uh(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return fh(function(t){n.$evalAsync(t)},t)}]}function fh(n,t){function f(n){return n}function c(n){return s(n)}var u=function(){var r=[],o,s;return s={resolve:function(t){if(r){var u=r;r=i;o=e(t);u.length&&n(function(){for(var n,t=0,i=u.length;t<i;t++)n=u[t],o.then(n[0],n[1],n[2])})}},reject:function(n){s.resolve(l(n))},notify:function(t){if(r){var i=r;r.length&&n(function(){for(var r,n=0,u=i.length;n<u;n++)r=i[n],r[2](t)})}},promise:{then:function(n,i,e){var s=u(),l=function(i){try{s.resolve((h(n)?n:f)(i))}catch(r){s.reject(r);t(r)}},a=function(n){try{s.resolve((h(i)?i:c)(n))}catch(r){s.reject(r);t(r)}},v=function(n){try{s.notify((h(e)?e:f)(n))}catch(i){t(i)}};return r?r.push([l,a,v]):o.then(l,a,v),s.promise},"catch":function(n){return this.then(null,n)},"finally":function(n){function t(n,t){var i=u();return t?i.resolve(n):i.reject(n),i.promise}function i(i,r){var u=null;try{u=(n||f)()}catch(e){return t(e,!1)}return u&&h(u.then)?u.then(function(){return t(i,r)},function(n){return t(n,!1)}):t(i,r)}return this.then(function(n){return i(n,!0)},function(n){return i(n,!1)})}}}},e=function(t){return t&&h(t.then)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},s=function(n){var t=u();return t.reject(n),t.promise},l=function(i){return{then:function(r,f){var e=u();return n(function(){try{e.resolve((h(f)?f:c)(i))}catch(n){e.reject(n);t(n)}}),e.promise}}};return{defer:u,reject:s,when:function(i,r,o,l){var v=u(),a,w=function(n){try{return(h(r)?r:f)(n)}catch(i){return t(i),s(i)}},y=function(n){try{return(h(o)?o:c)(n)}catch(i){return t(i),s(i)}},p=function(n){try{return(h(l)?l:f)(n)}catch(i){t(i)}};return n(function(){e(i).then(function(n){a||(a=!0,v.resolve(e(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise},all:function(n){var i=u(),f=0,t=o(n)?[]:{};return r(n,function(n,r){f++;e(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise}}}function eh(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function oh(){var t=10,i=y("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,e,o){function l(){this.$id=ar();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function v(n){if(c.$$phase)throw i("inprog",c.$$phase);c.$$phase=n}function y(n,t){var i=e(n);return ki(i,t),i}function p(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function w(){}l.prototype={constructor:l,$new:function(n){return n?(n=new l,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=ar();this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),n=new this.$$childScopeClass),n["this"]=n,n.$parent=this,n.$$prevSibling=this.$$childTail,this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=n:this.$$childHead=this.$$childTail=n,n},$watch:function(t,i,r){var e=y(t,"watch"),f=this.$$watchers,u={fn:i,last:w,get:e,exp:t,eq:!!r},o,c;return n=null,h(i)||(o=y(i||s,"listener"),u.fn=function(n,t,i){o(i)}),"string"==typeof t&&e.constant&&(c=u.fn,u.fn=function(n,t,i){c.call(this,n,t,i);wi(f,u)}),f||(f=this.$$watchers=[]),f.unshift(u),function(){wi(f,u);n=null}},$watchCollection:function(n,t){var s=this,i,r,o,v=1<t.length,u=0,y=e(n),h=[],c={},l=!0,f=0;return this.$watch(function(){i=y(s);var t,n,e;if(a(i))if(lr(i))for(r!==h&&(r=h,f=r.length=0,u++),t=i.length,f!==t&&(u++,r.length=f=t),n=0;n<t;n++)e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n]);else{r!==c&&(r=c={},f=0,u++);t=0;for(n in i)i.hasOwnProperty(n)&&(t++,r.hasOwnProperty(n)?(e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n])):(f++,r[n]=i[n],u++));if(f>t)for(n in u++,r)r.hasOwnProperty(n)&&!i.hasOwnProperty(n)&&(f--,delete r[n])}else r!==i&&(r=i,u++);return u},function(){if(l?(l=!1,t(i,i,s)):t(i,o,s),v)if(a(i))if(lr(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)iu.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var r,e,o,s,a=this.$$asyncQueue,nt=this.$$postDigestQueue,b,l,k=t,u,y=[],p,d,g;v("$digest");n=null;do{for(l=!1,u=this;a.length;){try{g=a.shift();g.scope.$eval(g.expression)}catch(tt){c.$$phase=null;f(tt)}n=null}n:do{if(s=u.$$watchers)for(b=s.length;b--;)try{if(r=s[b])if((e=r.get(u))===(o=r.last)||(r.eq?dt(e,o):"number"==typeof e&&"number"==typeof o&&isNaN(e)&&isNaN(o))){if(r===n){l=!1;break n}}else l=!0,n=r,r.last=r.eq?oi(e,null):e,r.fn(e,o===w?e:o,u),5>k&&(p=4-k,y[p]||(y[p]=[]),d=h(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,d+="; newVal: "+yt(e)+"; oldVal: "+yt(o),y[p].push(d))}catch(it){c.$$phase=null;f(it)}if(!(s=u.$$childHead||u!==this&&u.$$nextSibling))for(;u!==this&&!(s=u.$$nextSibling);)u=u.$parent}while(u=s);if((l||a.length)&&!k--)throw c.$$phase=null,i("infdig",t,yt(y));}while(l||a.length);for(c.$$phase=null;nt.length;)try{nt.shift()()}catch(rt){f(rt)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==c&&(r(this.$$listenerCount,hu(null,p,this)),n.$$childHead==this&&(n.$$childHead=this.$$nextSibling),n.$$childTail==this&&(n.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=s,this.$on=this.$watch=function(){return s})}},$eval:function(n,t){return e(n)(this,t)},$evalAsync:function(n){c.$$phase||c.$$asyncQueue.length||o.defer(function(){c.$$asyncQueue.length&&c.$digest()});this.$$asyncQueue.push({scope:this,expression:n})},$$postDigest:function(n){this.$$postDigestQueue.push(n)},$apply:function(n){try{return v("$apply"),this.$eval(n)}catch(i){f(i)}finally{c.$$phase=null;try{c.$digest()}catch(t){throw f(t),t;}}},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){r[pi(r,t)]=null;p(u,1,n)}},$emit:function(n){var s=[],r,i=this,o=!1,u={name:n,targetScope:i,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},h=[u].concat(ii.call(arguments,1)),t,e;do{for(r=i.$$listeners[n]||s,u.currentScope=i,t=0,e=r.length;t<e;t++)if(r[t])try{r[t].apply(null,h)}catch(c){f(c)}else r.splice(t,1),t--,e--;if(o)break;i=i.$parent}while(i);return u},$broadcast:function(n){for(var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},o=[u].concat(ii.call(arguments,1)),r,e;t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,e=i.length;r<e;r++)if(i[r])try{i[r].apply(null,o)}catch(s){f(s)}else i.splice(r,1),r--,e--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u}};var c=new l;return c}]}function sh(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return f(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(!p||8<=p)&&(u=pt(i).href,""!==u&&!u.match(f))?"unsafe:"+u:i}}}function hh(n){if("self"===n)return n;if(e(n)){if(-1<n.indexOf("***"))throw kt("iwcard",n);return n=n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+n+"$")}if(vr(n))return RegExp("^"+n.source+"$");throw kt("imatcher");}function be(n){var t=[];return f(n)&&r(n,function(n){t.push(hh(n))}),t}function ch(){this.SCE_CONTEXTS=it;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=be(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=be(n)),t};this.$get=["$injector",function(r){function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(){throw kt("unsafe");},e,u;return r.has("$sanitize")&&(o=r.get("$sanitize")),e=f(),u={},u[it.HTML]=f(e),u[it.CSS]=f(e),u[it.URL]=f(e),u[it.JS]=f(e),u[it.RESOURCE_URL]=f(u[it.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw kt("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw kt("itype",n);return new r(t)},getTrusted:function(r,f){var s,e,c,h;if(null===f||f===i||""===f)return f;if(s=u.hasOwnProperty(r)?u[r]:null,s&&f instanceof s)return f.$$unwrapTrustedValue();if(r===it.RESOURCE_URL){for(s=pt(f.toString()),h=!1,e=0,c=n.length;e<c;e++)if("self"===n[e]?rf(s):n[e].exec(s.href)){h=!0;break}if(h)for(e=0,c=t.length;e<c;e++)if("self"===t[e]?rf(s):t[e].exec(s.href)){h=!1;break}if(h)return f;throw kt("insecurl",f.toString());}if(r===it.HTML)return o(f);throw kt("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function lh(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sniffer","$sceDelegate",function(t,i,u){var f;if(n&&i.msie&&8>i.msieDocumentMode)throw kt("iequirks");f=rt(it);f.isEnabled=function(){return n};f.trustAs=u.trustAs;f.getTrusted=u.getTrusted;f.valueOf=u.valueOf;n||(f.trustAs=f.getTrusted=function(n,t){return t},f.valueOf=fi);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:function(t,i){return f.getTrusted(n,r(t,i))}};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(it,function(n,t){var i=v(t);f[di("parse_as_"+i)]=function(t){return e(n,t)};f[di("get_trusted_"+i)]=function(t){return o(n,t)};f[di("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function ah(){this.$get=["$window","$document",function(n,t){var s={},h=b((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),y=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},c=u.documentMode,i,r=u.body&&u.body.style,f=!1,o=!1,a;if(r){for(a in r)if(f=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(a)){i=f[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");f=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!h||f&&o||(f=e(u.body.style.webkitTransition),o=e(u.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>h||y),hashchange:"onhashchange"in n&&(!c||7<c),hasEvent:function(n){if("input"==n&&9==p)return!1;if(l(s[n])){var t=u.createElement("div");s[n]="on"+n in t}return s[n]},csp:ur(),vendorPrefix:i,transitions:f,animations:o,android:h,msie:p,msieDocumentMode:c}}]}function vh(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(n,t,i,r){function e(e,o,s){var h=i.defer(),c=h.promise,l=f(s)&&!s;return o=t.defer(function(){try{h.resolve(e())}catch(t){h.reject(t);r(t)}finally{delete u[c.$$timeoutId]}l||n.$apply()},o),c.$$timeoutId=o,u[o]=h,c}var u={};return e.cancel=function(n){return n&&n.$$timeoutId in u?(u[n.$$timeoutId].reject("canceled"),delete u[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},e}]}function pt(n){var t=n;return p&&(d.setAttribute("href",t),t=d.href),d.setAttribute("href",t),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname}}function rf(n){return n=e(n)?pt(n):n,n.protocol===so.protocol&&n.host===so.host}function yh(){this.$get=nt(n)}function ke(n){function t(u,f){if(a(u)){var e={};return r(u,function(n,i){e[i]=t(i,n)}),e}return n.factory(u+i,f)}var i="Filter";this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+i)}}];t("currency",de);t("date",to);t("filter",ph);t("json",wh);t("limitTo",bh);t("lowercase",co);t("number",ge);t("orderBy",io);t("uppercase",lo)}function ph(){return function(n,t,i){var u,r,e,f,s;if(!o(n))return n;u=typeof i;r=[];r.check=function(n){for(var t=0;t<r.length;t++)if(!r[t](n))return!1;return!0};"function"!==u&&(i="boolean"===u&&i?function(n,t){return ir.equals(n,t)}:function(n,t){if(n&&t&&"object"==typeof n&&"object"==typeof t){for(var r in n)if("$"!==r.charAt(0)&&iu.call(n,r)&&i(n[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),-1<(""+n).toLowerCase().indexOf(t)});e=function(n,t){if("string"==typeof t&&"!"===t.charAt(0))return!e(n,t.substr(1));switch(typeof n){case"boolean":case"number":case"string":return i(n,t);case"object":switch(typeof t){case"object":return i(n,t);default:for(var r in n)if("$"!==r.charAt(0)&&e(n[r],t))return!0}return!1;case"array":for(r=0;r<n.length;r++)if(e(n[r],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(f in t)(function(n){"undefined"!=typeof t[n]&&r.push(function(i){return e("$"==n?i:i&&i[n],t[n])})})(f);break;case"function":r.push(t);break;default:return n}for(u=[],f=0;f<n.length;f++)s=n[f],r.check(s)&&u.push(s);return u}}function de(n){var t=n.NUMBER_FORMATS;return function(n,i){return l(i)&&(i=t.CURRENCY_SYM),no(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function ge(n){var t=n.NUMBER_FORMATS;return function(n,i){return no(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function no(n,t,i,r,u){var c,s;if(null==n||!isFinite(n)||a(n))return"";c=0>n;n=Math.abs(n);var f=n+"",o="",h=[],e=!1;if(-1!==f.indexOf("e")&&(s=f.match(/([\d\.]+)e(-?)(\d+)/),s&&"-"==s[2]&&s[3]>u+1?(f="0",n=0):(o=f,e=!0)),e)0<u&&-1<n&&1>n&&(o=n.toFixed(u));else{f=(f.split(ho)[1]||"").length;l(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);n=(""+n).split(ho);f=n[0];n=n[1]||"";var s=0,v=t.lgSize,y=t.gSize;if(f.length>=v+y)for(s=f.length-v,e=0;e<s;e++)0==(s-e)%y&&0!==e&&(o+=i),o+=f.charAt(e);for(e=s;e<f.length;e++)0==(f.length-e)%v&&0!==e&&(o+=i),o+=f.charAt(e);for(;n.length<u;)n+="0";u&&"0"!==u&&(o+=r+n.substr(0,u))}return h.push(c?t.negPre:t.posPre),h.push(o),h.push(c?t.negSuf:t.posSuf),h.join("")}function uf(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function k(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),uf(u,t,r)}}function nu(n,t){return function(i,r){var u=i["get"+n](),f=li(t?"SHORT"+n:n);return r[f][u]}}function to(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=b(t[9]+t[10]),u=b(t[9]+t[11]));f.call(n,b(t[1]),b(t[2])-1,b(t[3]));r=b(t[4]||0)-r;u=b(t[5]||0)-u;f=b(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u){var s="",f=[],o,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,e(i)&&(i=il.test(i)?b(i):t(i)),su(i)&&(i=new Date(i)),!vt(i))return i;for(;u;)(h=tl.exec(u))?(f=f.concat(ii.call(h,1)),u=f.pop()):(f.push(u),u=null);return r(f,function(t){o=nl[t];s+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function wh(){return function(n){return yt(n,!0)}}function bh(){return function(n,t){if(!o(n)&&!e(n))return n;if(t=Infinity===Math.abs(Number(t))?Number(t):b(t),e(n))return t?0<=t?n.slice(0,t):n.slice(t,n.length):"";var u=[],i,r;for(t>n.length?t=n.length:t<-n.length&&(t=-n.length),0<t?(i=0,r=t):(i=n.length+t,r=n.length);i<r;i++)u.push(n[i]);return u}}function io(n){return function(t,i,r){function u(n,t){return bi(t)?function(t,i){return n(i,t)}:n}function s(n,t){var i=typeof n,r=typeof t;return i==r?(vt(n)&&vt(t)&&(n=n.valueOf(),t=t.valueOf()),"string"==i&&(n=n.toLowerCase(),t=t.toLowerCase()),n===t?0:n<t?-1:1):i<r?-1:1}if(!o(t)||!i)return t;i=o(i)?i:[i];i=ns(i,function(t){var r=!1,i=t||fi,f;return e(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),i=n(t),i.constant)?(f=i(),u(function(n,t){return s(n[f],t[f])},r)):u(function(n,t){return s(i(n),i(t))},r)});for(var h=[],f=0;f<t.length;f++)h.push(t[f]);return h.sort(u(function(n,t){for(var u,r=0;r<i.length;r++)if(u=i[r](n,t),0!==u)return u;return 0},r))}}function wt(n){return h(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function ro(n,t,i,u){function e(t,i){i=i?"-"+pr(i,"-"):"";u.removeClass(n,(t?eu:fu)+i);u.addClass(n,(t?fu:eu)+i)}var f=this,o=n.parent().controller("form")||cr,s=0,h=f.$error={},c=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;o.$addControl(f);n.addClass(yi);e(!0);f.$addControl=function(n){ni(n.$name,"input");c.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(h,function(t,i){f.$setValidity(i,!0,n)});wi(c,n)};f.$setValidity=function(n,t,i){var r=h[n];if(t)r&&(wi(r,i),r.length||(s--,s||(e(t),f.$valid=!0,f.$invalid=!1),h[n]=!1,e(!0,n),o.$setValidity(n,!0,f)));else{if(s||e(t),r){if(-1!=pi(r,i))return}else h[n]=r=[],s++,e(!1,n),o.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,yi);u.addClass(n,ou);f.$dirty=!0;f.$pristine=!1;o.$setDirty()};f.$setPristine=function(){u.removeClass(n,ou);u.addClass(n,yi);f.$dirty=!1;f.$pristine=!0;r(c,function(n){n.$setPristine()})}}function lt(n,t,r,u){return n.$setValidity(t,r),r?u:i}function uo(n,t){var i,r;if(t)for(i=0;i<t.length;++i)if(r=t[i],n[r])return!0;return!1}function kh(n,t,i,r,u){a(u)&&(n.$$hasNativeValidators=!0,n.$parsers.push(function(f){if(n.$error[t]||uo(u,r)||!uo(u,i))return f;n.$setValidity(t,!1)}))}function tu(n,t,i,r,u,f){var l=t.prop(dh),a=t[0].placeholder,d={},nt=v(t[0].type),s,o,h,c,e,w,k;if(r.$$validityState=l,!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(u){if(!s){var f=t.val();p&&"input"===(u||d).type&&t[0].placeholder!==a?a=t[0].placeholder:("password"!==nt&&bi(i.ngTrim||"T")&&(f=g(f)),u=l&&r.$$hasNativeValidators,r.$viewValue!==f||""===f&&u)&&(n.$$phase?r.$setViewValue(f):n.$apply(function(){r.$setViewValue(f)}))}},u.hasEvent("input"))t.on("input",o);else{c=function(){h||(h=f.defer(function(){o();h=null}))};t.on("keydown",function(n){n=n.keyCode;91===n||15<n&&19>n||37<=n&&40>=n||c()});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};e=i.ngPattern;e&&((u=e.match(/^\/(.*)\/([gim]*)$/))?(e=RegExp(u[1],u[2]),u=function(n){return lt(r,"pattern",r.$isEmpty(n)||e.test(n),n)}):u=function(i){var u=n.$eval(e);if(!u||!u.test)throw y("ngPattern")("noregexp",e,u,ut(t));return lt(r,"pattern",r.$isEmpty(i)||u.test(i),i)},r.$formatters.push(u),r.$parsers.push(u));i.ngMinlength&&(w=b(i.ngMinlength),u=function(n){return lt(r,"minlength",r.$isEmpty(n)||n.length>=w,n)},r.$parsers.push(u),r.$formatters.push(u));i.ngMaxlength&&(k=b(i.ngMaxlength),u=function(n){return lt(r,"maxlength",r.$isEmpty(n)||n.length<=k,n)},r.$parsers.push(u),r.$formatters.push(u))}function ff(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){if(!o(n)){if(e(n))return n.split(" ");if(a(n)){var t=[];return r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t}}return n}return{restrict:"AC",link:function(e,o,s){function h(n,t){var i=o.data("$classCounts")||{},u=[];return r(n,function(n){(0<t||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(0<t)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function l(n){var r,l;if(!0===t||e.$index%2===t)if(r=u(n||[]),c){if(!dt(n,c)){var a=u(c),l=f(r,a),r=f(a,r),r=h(r,-1),l=h(l,1);0===l.length?i.removeClass(o,r):0===r.length?i.addClass(o,l):i.setClass(o,l,r)}}else l=h(r,1),s.$addClass(l);c=rt(n)}var c;e.$watch(s[n],l,!0);s.$observe("class",function(){l(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(i,r){var f=i&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===t?(f=h(o,1),s.$addClass(f)):(f=h(o,-1),s.$removeClass(f)))})}}}]}var dh="validity",v=function(n){return e(n)?n.toLowerCase():n},iu=Object.prototype.hasOwnProperty,li=function(n){return e(n)?n.toUpperCase():n},p,u,ti,ii=[].slice,gh=[].push,ri=Object.prototype.toString,tr=y("ng"),ir=n.angular||(n.angular={}),rr,ai,at=["0","0","0"],o,g,ui,or,sf,vi,co,lo,ao,uu,cr;p=b((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]);isNaN(p)&&(p=b((/trident\/.*; rv:(\d+)/.exec(v(navigator.userAgent))||[])[1]));s.$inject=[];fi.$inject=[];o=function(){return h(Array.isArray)?Array.isArray:function(n){return"[object Array]"===ri.call(n)}}();g=function(){return String.prototype.trim?function(n){return e(n)?n.trim():n}:function(n){return e(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();ai=9>p?function(n){return n=n.nodeName?n:n[0],n.scopeName&&"HTML"!=n.scopeName?li(n.scopeName+":"+n.nodeName):n.nodeName}:function(n){return n.nodeName?n.nodeName:n[0].nodeName};var ur=function(){if(f(ur.isActive_))return ur.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return ur.isActive_=n},nc=/[A-Z]/g,tc={full:"1.2.23",major:1,minor:2,dot:23,codeName:"superficial-malady"};w.expando="ng339";var fr=w.cache={},ic=1,ru=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},er=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)};w._data=function(n){return this.cache[n[this.expando]]||{}};var rc=/([\:\-\_]+(.))/g,uc=/^moz([A-Z])/,ef=y("jqLite"),fc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,of=/<|&#?\w+;/,ec=/<([\w:]+)/,oc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tt={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};tt.optgroup=tt.option;tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead;tt.th=tt.td;ui=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),w(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?u(this[n]):u(this[this.length+n])},length:0,push:gh,sort:[].sort,splice:[].splice};or={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){or[v(n)]=n});sf={};r("input select option textarea button form details".split(" "),function(n){sf[li(n)]=!0});r({data:wu,removeData:pu},function(n,t){w[t]=n});r({data:wu,inheritedData:kr,scope:function(n){return u.data(n,"$scope")||kr(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u.data(n,"$isolateScope")||u.data(n,"$isolateScopeNoTemplate")},controller:te,injector:function(n){return kr(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:bu,css:function(n,t,r){if(t=di(t),f(r))n.style[t]=r;else{var u;return 8>=p&&(u=n.currentStyle&&n.currentStyle[t],""===u&&(u="auto")),u=u||n.style[t],8>=p&&(u=""===u?i:u),u}},attr:function(n,t,r){var u=v(t);if(or[u])if(f(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||s).specified?u:i;else if(f(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(f(i))n[t]=i;else return n[t]},text:function(){function t(t,i){var r=n[t.nodeType];if(l(i))return r?t[r]:"";t[r]=i}var n=[];return 9>p?(n[1]="innerText",n[3]="nodeValue"):n[1]=n[3]="textContent",t.$dv="",t}(),val:function(n,t){if(l(t)){if("SELECT"===ai(n)&&n.multiple){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(l(t))return n.innerHTML;for(var i=0,r=n.childNodes;i<r.length;i++)si(r[i]);n.innerHTML=t},empty:ie},function(n,t){w.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==ie&&(2==n.length&&n!==bu&&n!==te?t:r)===i){if(a(t)){for(u=0;u<e;u++)if(n===wu)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=u===i?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,r),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:pu,dealoc:si,on:function sc(n,i,u,e){if(f(e))throw ef("onargs");var o=st(n,"events"),s=st(n,"handle");o||st(n,"events",o={});s||st(n,"handle",s=fs(n,o));r(i.split(" "),function(i){var r=o[i],f;r||("mouseenter"==i||"mouseleave"==i?(f=t.body.contains||t.body.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&1===i.nodeType&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},o[i]=[],sc(n,{mouseleave:"mouseout",mouseenter:"mouseover"}[i],function(n){var t=n.relatedTarget;t&&(t===this||f(this,t))||s(n,i)})):(ru(n,i,s),o[i]=[]),r=o[i]);r.push(u)})},off:ne,one:function(n,t,i){n=u(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;si(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){1===n.nodeType&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){r(new w(t),function(t){1!==n.nodeType&&11!==n.nodeType||n.appendChild(t)})},prepend:function(n,t){if(1===n.nodeType){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=u(t)[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:function(n){si(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new w(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:br,removeClass:wr,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;l(r)&&(r=!bu(n,t));(r?br:wr)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){if(n.nextElementSibling)return n.nextElementSibling;for(n=n.nextSibling;null!=n&&1!==n.nodeType;)n=n.nextSibling;return n},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:yu,triggerHandler:function(n,t,i){var u,e,f;u=t.type||t;f=(st(n,"events")||{})[u];f&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:s,type:u,target:n},t.type&&(u=c(u,t)),t=rt(f),e=i?[u].concat(i):[u],r(t,function(t){t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)l(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):ku(e,n(this[o],t,i,r));return f(e)?e:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});gi.prototype={put:function(n,t){this[hi(n,this.nextUid)]=t},get:function(n){return this[hi(n,this.nextUid)]},remove:function(n){var t=this[n=hi(n,this.nextUid)];return delete this[n],t}};var hc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,cc=/,/,lc=/^\s*(_?)(\S+?)\1\s*$/,ac=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,sr=y("$injector"),vc=y("$animate"),yc=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw vc("notcsel",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return 1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(n,t){return{enter:function(n,i,r,u){r?r.after(n):(i&&i[0]||(i=r.parent()),i.append(n));u&&t(u)},leave:function(n,i){n.remove();i&&t(i)},move:function(n,t,i,r){this.enter(n,t,i,r)},addClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){br(n,i)});u&&t(u)},removeClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){wr(n,i)});u&&t(u)},setClass:function(n,i,u,f){r(n,function(n){br(n,i);wr(n,u)});f&&t(f)},enabled:s}}]}],et=y("$compile");ee.$inject=["$provide","$$sanitizeUriProvider"];var pc=/^(x[\:\-_]|data[\:\-_])/i,fo=y("$interpolate"),wc=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,bc={http:80,https:443,ftp:21},hf=y("$location");tf.prototype=nf.prototype=ve.prototype={$$html5:!1,$$replace:!1,absUrl:dr("$$absUrl"),url:function(n,t){if(l(n))return this.$$url;var i=wc.exec(n);return i[1]&&this.path(decodeURIComponent(i[1])),(i[2]||i[1])&&this.search(i[3]||""),this.hash(i[5]||"",t),this},protocol:dr("$$protocol"),host:dr("$$host"),port:dr("$$port"),path:ye("$$path",function(n){return"/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(e(n))this.$$search=kf(n);else if(a(n))r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw hf("isrcharg");break;default:l(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:ye("$$hash",fi),replace:function(){return this.$$replace=!0,this}};var ot=y("$parse"),eo={},bt,kc=Function.prototype.call,dc=Function.prototype.apply,oo=Function.prototype.bind,hr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:s,"+":function(n,t,r,u){return r=r(n,t),u=u(n,t),f(r)?f(u)?r+u:r:f(u)?u:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(f(i)?i:0)-(f(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"^":function(n,t,i,r){return i(n,t)^r(n,t)},"=":s,"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"&":function(n,t,i,r){return i(n,t)&r(n,t)},"|":function(n,t,i,r){return r(n,t)(n,t,i(n,t))},"!":function(n,t,i){return!i(n,t)}},gc={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},cf=function(n){this.options=n};cf.prototype={constructor:cf,lex:function(n){for(this.text=n,this.index=0,this.ch=i,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{n=this.ch+this.peek();var t=n+this.peek(2),r=hr[this.ch],u=hr[n],f=hr[t];f?(this.tokens.push({index:this.index,text:t,fn:f}),this.index+=3):u?(this.tokens.push({index:this.index,text:n,fn:u}),this.index+=2):r?(this.tokens.push({index:this.index,text:this.ch,fn:r}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(n){return-1!==n.indexOf(this.ch)},was:function(n){return-1!==n.indexOf(this.lastCh)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=f(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw ot("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=v(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}n*=1;this.tokens.push({index:r,text:n,literal:!0,constant:!0,fn:function(){return n}})},readIdent:function(){for(var o,e=this,n="",t=this.index,r,u,f,i;this.index<this.text.length;){if(i=this.text.charAt(this.index),"."===i||this.isIdent(i)||this.isNumber(i))"."===i&&(r=this.index),n+=i;else break;this.index++}if(r)for(u=this.index;u<this.text.length;){if(i=this.text.charAt(u),"("===i){f=n.substr(r-t+1);n=n.substr(0,r-t);this.index=u;break}if(this.isWhitespace(i))u++;else break}t={index:t,text:n};hr.hasOwnProperty(n)?(t.fn=hr[n],t.literal=!0,t.constant=!0):(o=we(n,this.options,this.text),t.fn=c(function(n,t){return o(n,t)},{assign:function(t,i){return gr(t,n,i,e.text,e.options)}}));this.tokens.push(t);f&&(this.tokens.push({index:r,text:"."}),this.tokens.push({index:r+1,text:f}))},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=gc[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,string:r,literal:!0,constant:!0,fn:function(){return r}});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};vi=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};vi.ZERO=c(function(){return 0},{constant:!0});vi.prototype={constructor:vi,parse:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.statements(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var n,t,i;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():(t=this.expect(),(n=t.fn)||this.throwError("not a primary expression",t),n.literal=!!t.literal,n.constant=!!t.constant);t=this.expect("(","[",".");)"("===t.text?(n=this.functionCall(n,i),i=null):"["===t.text?(i=n,n=this.objectIndex(n)):"."===t.text?(i=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw ot("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw ot("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){if(0<this.tokens.length){var f=this.tokens[0],u=f.text;if(u===n||u===t||u===i||u===r||!(n||t||i||r))return f}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},consume:function(n){this.expect(n)||this.throwError("is unexpected, expecting ["+n+"]",this.peek())},unaryFn:function(n,t){return c(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return c(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})},binaryFn:function(n,t,i){return c(function(r,u){return t(r,u,n,i)},{constant:n.constant&&i.constant})},statements:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return 1===n.length?n[0]:function(t,i){for(var f,u,r=0;r<n.length;r++)u=n[r],u&&(f=u(t,i));return f}},filterChain:function(){for(var n=this.expression(),t;;)if(t=this.expect("|"))n=this.binaryFn(n,t.fn,this.filter());else return n},filter:function(){for(var i,t=this.expect(),r=this.$filter(t.text),n=[];;)if(t=this.expect(":"))n.push(this.expression());else return i=function(t,i,u){u=[u];for(var f=0;f<n.length;f++)u.push(n[f](t,i));return r.apply(t,u)},function(){return i}},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),i,t;return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),i=this.ternary(),function(t,r){return n.assign(t,i(t,r),r)}):n},ternary:function(){var n=this.logicalOR(),t,i;if(this.expect("?")){if(t=this.assignment(),i=this.expect(":"))return this.ternaryFn(n,t,this.assignment());this.throwError("expected :",i)}else return n},logicalOR:function(){for(var n=this.logicalAND(),t;;)if(t=this.expect("||"))n=this.binaryFn(n,t.fn,this.logicalAND());else return n},logicalAND:function(){var n=this.equality(),t;return(t=this.expect("&&"))&&(n=this.binaryFn(n,t.fn,this.logicalAND())),n},equality:function(){var n=this.relational(),t;return(t=this.expect("==","!=","===","!=="))&&(n=this.binaryFn(n,t.fn,this.equality())),n},relational:function(){var n=this.additive(),t;return(t=this.expect("<",">","<=",">="))&&(n=this.binaryFn(n,t.fn,this.relational())),n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.fn,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.fn,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(vi.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var t=this,i=this.expect().text,r=we(i,this.options,this.text);return c(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){return(f=n(r,f))||n.assign(r,f={}),gr(f,i,u,t.text,t.options)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),c(function(u,f){var e=n(u,f),s=r(u,f),o;return(ft(s,t.text),!e)?i:((e=ci(e[s],t.text))&&e.then&&t.options.unwrapPromises&&(o=e,"$$v"in e||(o.$$v=i,o.then(function(n){o.$$v=n})),e=e.$$v),e)},{assign:function(i,u,f){var e=ft(r(i,f),t.text);return(f=ci(n(i,f),t.text))||n.assign(i,f={}),f[e]=u}})},functionCall:function(n,t){var r=[],i;if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));return this.consume(")"),i=this,function(u,f){for(var c,o=[],h=t?t(u,f):u,e=0;e<r.length;e++)o.push(r[e](u,f));if(e=n(u,f,h)||s,ci(h,i.text),c=i.text,e){if(e.constructor===e)throw ot("isecfn",c);if(e===kc||e===dc||oo&&e===oo)throw ot("isecff",c);}return o=e.apply?e.apply(h,o):e(o[0],o[1],o[2],o[3],o[4]),ci(o,i.text)}},arrayDeclaration:function(){var n=[],i=!0,t;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t=this.expression();n.push(t);t.constant||(i=!1)}while(this.expect(","));return this.consume("]"),c(function(t,i){for(var u=[],r=0;r<n.length;r++)u.push(n[r](t,i));return u},{literal:!0,constant:i})},object:function(){var t=[],r=!0,n,i;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n=this.expect();n=n.string||n.text;this.consume(":");i=this.expression();t.push({key:n,value:i});i.constant||(r=!1)}while(this.expect(","));return this.consume("}"),c(function(n,i){for(var f,u={},r=0;r<t.length;r++)f=t[r],u[f.key]=f.value(n,i);return u},{literal:!0,constant:r})}};var lf={},kt=y("$sce"),it={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},d=t.createElement("a"),so=pt(n.location.href,!0);ke.$inject=["$provide"];de.$inject=["$locale"];ge.$inject=["$locale"];var ho=".",nl={yyyy:k("FullYear",4),yy:k("FullYear",2,0,!0),y:k("FullYear",1),MMMM:nu("Month"),MMM:nu("Month",!0),MM:k("Month",2,1),M:k("Month",1,1),dd:k("Date",2),d:k("Date",1),HH:k("Hours",2),H:k("Hours",1),hh:k("Hours",2,-12),h:k("Hours",1,-12),mm:k("Minutes",2),m:k("Minutes",1),ss:k("Seconds",2),s:k("Seconds",1),sss:k("Milliseconds",3),EEEE:nu("Day"),EEE:nu("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n){return n=-1*n.getTimezoneOffset(),(0<=n?"+":"")+(uf(Math[0<n?"floor":"ceil"](n/60),2)+uf(Math.abs(n%60),2))}},tl=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,il=/^\-?\d+$/;to.$inject=["$locale"];co=nt(v);lo=nt(li);io.$inject=["$parse"];ao=nt({restrict:"E",compile:function(n,i){return 8>=p&&(i.href||i.name||i.$set("href",""),n.append(t.createComment("IE fix"))),!i.href&&!i.xlinkHref&&!i.name?function(n,t){var i="[object SVGAnimatedString]"===ri.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});uu={};r(or,function(n,t){if("multiple"!=n){var i=ht("ng-"+t);uu[i]=function(){return{priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(["src","srcset","href"],function(n){var t=ht("ng-"+n);uu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ri.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),p&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});cr={$addControl:s,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s};ro.$inject=["$element","$attrs","$scope","$animate"];var vo=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:ro,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};ru(r[0],"submit",o);r.on("$destroy",function(){t(function(){er(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&gr(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&gr(n,e,i,e);c(f,cr)})}}}}}]},rl=vo(),ul=vo(!0),fl=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,el=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,ol=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,yo={text:tu,number:function(n,t,r,u,f,e){tu(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||ol.test(n)?(u.$setValidity("number",!0),""===n?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});kh(u,"number",sl,null,u.$$validityState);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(n=function(n){var t=parseFloat(r.min);return lt(u,"min",u.$isEmpty(n)||n>=t,n)},u.$parsers.push(n),u.$formatters.push(n));r.max&&(n=function(n){var t=parseFloat(r.max);return lt(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(n),u.$formatters.push(n));u.$formatters.push(function(n){return lt(u,"number",u.$isEmpty(n)||su(n),n)})},url:function(n,t,i,r,u,f){tu(n,t,i,r,u,f);n=function(n){return lt(r,"url",r.$isEmpty(n)||fl.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},email:function(n,t,i,r,u,f){tu(n,t,i,r,u,f);n=function(n){return lt(r,"email",r.$isEmpty(n)||el.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},radio:function(n,t,i,r){l(i.name)&&t.attr("name",ar());t.on("click",function(){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value)})});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r){var u=i.ngTrueValue,f=i.ngFalseValue;e(u)||(u=!0);e(f)||(f=!1);t.on("click",function(){n.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==u};r.$formatters.push(function(n){return n===u});r.$parsers.push(function(n){return n?u:f})},hidden:s,button:s,submit:s,reset:s,file:s},sl=["badInput"],po=["$browser","$sniffer",function(n,t){return{restrict:"E",require:"?ngModel",link:function(i,r,u,f){f&&(yo[v(u.type)]||yo.text)(i,r,u,f,t,n)}}}],fu="ng-valid",eu="ng-invalid",yi="ng-pristine",ou="ng-dirty",hl=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(n,t,i,u,f,e){function h(n,t){t=t?"-"+pr(t,"-"):"";e.removeClass(u,(n?eu:fu)+t);e.addClass(u,(n?fu:eu)+t)}var c,a,o;if(this.$modelValue=this.$viewValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=i.name,c=f(i.ngModel),a=c.assign,!a)throw y("ngModel")("nonassign",i.ngModel,ut(u));this.$render=s;this.$isEmpty=function(n){return l(n)||""===n||null===n||n!==n};var w=u.inheritedData("$formController")||cr,v=0,p=this.$error={};u.addClass(yi);h(!0);this.$setValidity=function(n,t){p[n]!==!t&&(t?(p[n]&&v--,v||(h(!0),this.$valid=!0,this.$invalid=!1)):(h(!1),this.$invalid=!0,this.$valid=!1,v++),p[n]=!t,h(t,n),w.$setValidity(n,t,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(u,ou);e.addClass(u,yi)};this.$setViewValue=function(i){this.$viewValue=i;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(u,yi),e.addClass(u,ou),w.$setDirty());r(this.$parsers,function(n){i=n(i)});this.$modelValue!==i&&(this.$modelValue=i,a(n,i),r(this.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}}))};o=this;n.$watch(function(){var t=c(n),i,r;if(o.$modelValue!==t){for(i=o.$formatters,r=i.length,o.$modelValue=t;r--;)t=i[r](t);o.$viewValue!==t&&(o.$viewValue=t,o.$render())}return t})}],cl=function(){return{require:["ngModel","^?form"],controller:hl,link:function(n,t,i,r){var u=r[0],f=r[1]||cr;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})}}},ll=nt({require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),wo=function(){return{require:"?ngModel",link:function(n,t,i,r){if(r){i.required=!0;var u=function(n){if(i.required&&r.$isEmpty(n))r.$setValidity("required",!1);else return r.$setValidity("required",!0),n};r.$formatters.push(u);r.$parsers.unshift(u);i.$observe("required",function(){u(r.$viewValue)})}}}},al=function(){return{require:"ngModel",link:function(n,t,u,f){var e=(n=/\/(.*)\//.exec(u.ngList))&&RegExp(n[1])||u.ngList||",";f.$parsers.push(function(n){if(!l(n)){var t=[];return n&&r(n.split(e),function(n){n&&t.push(g(n))}),t}});f.$formatters.push(function(n){return o(n)?n.join(", "):i});f.$isEmpty=function(n){return!n||!n.length}}}},vl=/^(true|false|\d+)$/,yl=function(){return{priority:100,compile:function(n,t){return vl.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},pl=wt({compile:function(n){return n.addClass("ng-binding"),function(n,t,r){t.data("$binding",r.ngBind);n.$watch(r.ngBind,function(n){t.text(n==i?"":n)})}}}),wl=["$interpolate",function(n){return function(t,i,r){t=n(i.attr(r.$attr.ngBindTemplate));i.addClass("ng-binding").data("$binding",t);r.$observe("ngBindTemplate",function(n){i.text(n)})}}],bl=["$sce","$parse",function(n,t){return{compile:function(i){return i.addClass("ng-binding"),function(i,r,u){r.data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);i.$watch(function(){return(f(i)||"").toString()},function(){r.html(n.getTrustedHtml(f(i))||"")})}}}}],kl=ff("",!0),dl=ff("Odd",0),gl=ff("Even",1),na=wt({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),ta=[function(){return{scope:!0,controller:"@",priority:500}}],bo={};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=ht("ng-"+n);bo[t]=["$parse",function(i){return{compile:function(r,u){var f=i(u[t]);return function(t,i){i.on(v(n),function(n){t.$apply(function(){f(t,{$event:n})})})}}}}]});var ia=["$animate",function(n){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,o,s;i.$watch(u.ngIf,function(f){bi(f)?o||(o=i.$new(),e(o,function(i){i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)})):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),h&&(s=au(h.clone),n.leave(s,function(){s=null}),h=null))})}}}],ra=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ir.noop,compile:function(e,o){var h=o.ngInclude||o.src,c=o.onload||"",s=o.autoscroll;return function(e,o,l,a,v){var b=0,y,p,w,k=function(){p&&(p.remove(),p=null);y&&(y.$destroy(),y=null);w&&(r.leave(w,function(){p=null}),p=w,w=null)};e.$watch(u.parseAsResourceUrl(h),function(u){var l=function(){f(s)&&(!s||e.$eval(s))&&i()},h=++b;u?(n.get(u,{cache:t}).success(function(n){if(h===b){var t=e.$new();a.template=n;n=v(t,function(n){k();r.enter(n,null,o,l)});y=t;w=n;y.$emit("$includeContentLoaded");e.$eval(c)}}).error(function(){h===b&&k()}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],ua=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],fa=wt({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),ea=wt({terminal:!0,priority:1e3}),oa=["$locale","$interpolate",function(n,t){var i=/{}/g;return{restrict:"EA",link:function(u,f,e){var s=e.count,l=e.$attr.when&&f.attr(e.$attr.when),h=e.offset||0,o=u.$eval(l)||{},c={},a=t.startSymbol(),y=t.endSymbol(),p=/^when(Minus)?(.+)$/;r(e,function(n,t){p.test(t)&&(o[v(t.replace("when","").replace("Minus","-"))]=f.attr(e.$attr[t]))});r(o,function(n,r){c[r]=t(n.replace(i,a+s+"-"+h+y))});u.$watch(function(){var t=parseFloat(u.$eval(s));return isNaN(t)?"":(t in o||(t=n.pluralCat(t-h)),c[t](u,f,!0))},function(n){f.text(n)})}}}],sa=["$parse","$animate",function(n,i){var f=y("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(e,o,s,h,c){var y=s.ngRepeat,l=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k,w,d,g,b,v,p={$id:hi},a;if(!l)throw f("iexp",y);if(s=l[1],h=l[2],(l=l[3])?(k=n(l),w=function(n,t,i){return v&&(p[v]=n),p[b]=t,p.$index=i,k(e,p)}):(d=function(n,t){return hi(t)},g=function(n){return n}),l=s.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!l)throw f("iidexp",s);b=l[3]||l[1];v=l[2];a={};e.$watchCollection(h,function(n){var s,ft,rt=o[0],tt,ut={},et,l,k,p,nt,h,it=[];if(lr(n))nt=n,tt=w||d;else{tt=w||g;nt=[];for(k in n)n.hasOwnProperty(k)&&"$"!=k.charAt(0)&&nt.push(k);nt.sort()}for(et=nt.length,ft=it.length=nt.length,s=0;s<ft;s++)if(k=n===nt?s:nt[s],p=n[k],p=tt(k,p,s),ni(p,"`track by` id"),a.hasOwnProperty(p))h=a[p],delete a[p],ut[p]=h,it[s]=h;else{if(ut.hasOwnProperty(p))throw r(it,function(n){n&&n.scope&&(a[n.id]=n)}),f("dupes",y,p);it[s]={id:p};ut[p]=!1}for(k in a)a.hasOwnProperty(k)&&(h=a[k],s=au(h.clone),i.leave(s),r(s,function(n){n.$$NG_REMOVED=!0}),h.scope.$destroy());for(s=0,ft=nt.length;s<ft;s++){if(k=n===nt?s:nt[s],p=n[k],h=it[s],it[s-1]&&(rt=it[s-1].clone[it[s-1].clone.length-1]),h.scope){l=h.scope;tt=rt;do tt=tt.nextSibling;while(tt&&tt.$$NG_REMOVED);h.clone[0]!=tt&&i.move(au(h.clone),null,u(rt));rt=h.clone[h.clone.length-1]}else l=e.$new();l[b]=p;v&&(l[v]=k);l.$index=s;l.$first=0===s;l.$last=s===et-1;l.$middle=!(l.$first||l.$last);l.$odd=!(l.$even=0==(s&1));h.scope||c(l,function(n){n[n.length++]=t.createComment(" end ngRepeat: "+y+" ");i.enter(n,null,u(rt));rt=n;h.scope=l;h.clone=n;ut[h.id]=h})}a=ut})}}}],ha=["$animate",function(n){return function(t,i,r){t.$watch(r.ngShow,function(t){n[bi(t)?"removeClass":"addClass"](i,"ng-hide")})}}],ca=["$animate",function(n){return function(t,i,r){t.$watch(r.ngHide,function(t){n[bi(t)?"addClass":"removeClass"](i,"ng-hide")})}}],la=wt(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),aa=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,i,u,f){var h=[],s=[],e=[],o=[];t.$watch(u.ngSwitch||u.on,function(i){for(var a,c=0,l=e.length;c<l;++c)e[c].remove();for(c=e.length=0,l=o.length;c<l;++c)a=s[c],o[c].$destroy(),e[c]=a,n.leave(a,function(){e.splice(c,1)});s.length=0;o.length=0;(h=f.cases["!"+i]||f.cases["?"])&&(t.$eval(u.change),r(h,function(i){var r=t.$new();o.push(r);i.transclude(r,function(t){var r=i.element;s.push(t);n.enter(t,r.parent(),r)})}))})}}}],va=wt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),ya=wt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),pa=wt({link:function(n,t,i,r,u){if(!u)throw y("ngTransclude")("orphan",ut(t));u(function(n){t.empty();t.append(n)})}}),wa=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],ba=y("ngOptions"),ka=nt({terminal:!0}),da=["$compile","$parse",function(n,e){var h=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,c={$setViewValue:s};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=c,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t){ni(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove())};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+hi(t)+" ?";u.val(t);n.prepend(u);n.val(t);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=s})}],link:function(s,c,a,v){function ft(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(b.parent()&&b.remove(),t.val(n),""===n&&nt.prop("selected",!0)):l(n)&&nt?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){b.parent()&&b.remove();i.$setViewValue(t.val())})})}function et(n,t,i){var u;i.$render=function(){var n=new gi(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){dt(u,i.$viewValue)||(u=rt(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function ot(t,r,u){function k(){var et={"":[]},ht=[""],n,h,g,rt,i,ut,ot,c,e,k,ft;if(g=u.$modelValue,rt=d(t)||[],ut=a?af(rt):rt,c={},e=!1,w)if(h=u.$modelValue,s&&o(h))for(e=new gi([]),n={},i=0;i<h.length;i++)n[l]=h[i],e.put(s(t,n),h[i]);else e=new gi(h);for(i=e,e=0;ot=ut.length,e<ot;e++){if(h=e,a){if(h=ut[e],"$"===h.charAt(0))continue;c[a]=h}c[l]=rt[h];n=it(t,c)||"";(h=et[n])||(h=et[n]=[],ht.push(n));w?n=f(i.remove(s?s(t,c):b(t,c))):(s?(n={},n[l]=g,n=s(t,n)===s(t,c)):n=g===b(t,c),i=i||n);k=nt(t,c);k=f(k)?k:"";h.push({id:s?s(t,c):a?ut[e]:e,label:k,selected:n})}for(w||(y||null===g?et[""].unshift({id:"",label:"",selected:!i}):i||et[""].unshift({id:"?",label:"",selected:!0})),c=0,ut=ht.length;c<ut;c++){for(n=ht[c],h=et[n],v.length<=c?(g={element:st.clone().attr("label",n),label:h.label},rt=[g],v.push(rt),r.append(g.element)):(rt=v[c],g=rt[0],g.label!=n&&g.element.attr("label",g.label=n)),k=null,e=0,ot=h.length;e<ot;e++)n=h[e],(i=rt[e+1])?(k=i.element,i.label!==n.label&&k.text(i.label=n.label),i.id!==n.id&&k.val(i.id=n.id),k[0].selected!==n.selected&&(k.prop("selected",i.selected=n.selected),p&&k.prop("selected",i.selected))):(""===n.id&&y?ft=y:(ft=tt.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).text(n.label),rt.push({element:ft,label:n.label,id:n.id,selected:n.selected}),k?k.after(ft):g.element.append(ft),k=ft);for(e++;rt.length>e;)rt.pop().element.remove()}for(;v.length>c;)v.pop()[0].element.remove()}var c;if(!(c=g.match(h)))throw ba("iexp",g,ut(r));var nt=e(c[2]||c[1]),l=c[4]||c[6],a=c[5],it=e(c[3]||""),b=e(c[2]?c[1]:l),d=e(c[7]),s=c[8]?e(c[8]):null,v=[[{element:r,label:""}]];y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());r.empty();r.on("change",function(){t.$apply(function(){var p,h=d(t)||[],f={},n,o,c,y,g,nt,e;if(w){for(o=[],y=0,nt=v.length;y<nt;y++)for(p=v[y],c=1,g=p.length;c<g;c++)if((n=p[c].element)[0].selected){if(n=n.val(),a&&(f[a]=n),s)for(e=0;e<h.length&&(f[l]=h[e],s(t,f)!=n);e++);else f[l]=h[n];o.push(b(t,f))}}else if(n=r.val(),"?"==n)o=i;else if(""===n)o=null;else if(s){for(e=0;e<h.length;e++)if(f[l]=h[e],s(t,f)==n){o=b(t,f);break}}else f[l]=h[n],a&&(f[a]=n),o=b(t,f);u.$setViewValue(o);k()})});u.$render=k;t.$watchCollection(d,k);w&&t.$watchCollection(function(){return u.$modelValue},k)}var d,k,it;if(v[1]){d=v[0];v=v[1];var w=a.multiple,g=a.ngOptions,y=!1,nt,tt=u(t.createElement("option")),st=u(t.createElement("optgroup")),b=tt.clone();for(a=0,k=c.children(),it=k.length;a<it;a++)if(""===k[a].value){nt=y=k.eq(a);break}d.init(v,y,b);w&&(v.$isEmpty=function(n){return!n||0===n.length});g?ot(s,c,v):w?et(s,c,v):ft(s,c,v,d)}}}}],ga=["$interpolate",function(n){var t={addOption:s,removeOption:s};return{restrict:"E",priority:100,compile:function(i,r){if(l(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.databound?i.prop("selected",!1):f=t;u?n.$watch(u,function(n,t){r.$set("value",n);n!==t&&f.removeOption(t);f.addOption(n)}):f.addOption(r.value);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],nv=nt({restrict:"E",terminal:!0});n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((ti=n.jQuery)&&ti.fn.on?(u=ti,c(ti.fn,{scope:ui.scope,isolateScope:ui.isolateScope,controller:ui.controller,injector:ui.injector,inheritedData:ui.inheritedData}),vu("remove",!0,!0,!1),vu("empty",!1,!1,!1),vu("html",!1,!1,!0)):u=w,ir.element=u,us(ir),u(t).ready(function(){is(t,df)}))}(window,document);window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}<\/style>'),function(n,t,i){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(n,r){function c(){var n,e,o,s;for(n in f)h(u[n])&&r.cookies(n,i);for(n in u)e=u[n],t.isString(e)||(e=""+e,u[n]=e),e!==f[n]&&(r.cookies(n,e),s=!0);if(s){s=!1;o=r.cookies();for(n in u)u[n]!==o[n]&&(h(o[n])?delete u[n]:u[n]=o[n],s=!0)}}var u={},f={},e,o=!1,s=t.copy,h=t.isUndefined;return r.addPollFn(function(){var t=r.cookies();e!=t&&(e=t,s(t,f),s(t,u),o&&n.$apply())})(),o=!0,n.$watch(c),u}]).factory("$cookieStore",["$cookies",function(n){return{get:function(i){var r=n[i];return r?t.fromJson(r):r},put:function(i,r){n[i]=t.toJson(r)},remove:function(t){delete n[t]}}}])}(window,window.angular);angular.module("ui.bootstrap",["ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(void 0!==f.style[t])return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=void 0)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){f?(f=!1,s(),i.css({height:0})):(i.css({height:i[0].scrollHeight+"px"}),i[0].offsetWidth,i.removeClass("collapse in").addClass("collapsing"),e({height:0}).then(s))}function s(){i.removeClass("collapsing");i.addClass("collapse")}var u,f=!0;t.$watch(r.collapse,function(n){n?c():h()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.$watch("isOpen",function(t){t&&r.closeOthers(n)});n.toggleOpen=function(){n.isDisabled||(n.isOpen=!n.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(n,t){n.closeable="close"in t}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}});angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,n.$eval(i.btnRadio)))};t.bind(f.toggleEvent,function(){var r=t.hasClass(f.activeClass);(!r||angular.isDefined(i.uncheckable))&&n.$apply(function(){u.$setViewValue(r?null:n.$eval(i.btnRadio));u.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){var r=n.$eval(t);return angular.isDefined(r)?r:i}var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.bind(f.toggleEvent,function(){n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$transition",function(n,t,i){function e(){h();var i=+n.interval;!isNaN(i)&&i>=0&&(o=t(l,i))}function h(){o&&(t.cancel(o),o=null)}function l(){s?(n.next(),e()):n.pause()}var o,s,u=this,r=u.slides=n.slides=[],f=-1,c;u.currentSlide=null;c=!1;u.select=n.select=function(o,s){function l(){c||(u.currentSlide&&angular.isString(s)&&!n.noTransition&&o.$element?(o.$element.addClass(s),o.$element[0].offsetWidth,angular.forEach(r,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(o,{direction:s,active:!0,entering:!0}),angular.extend(u.currentSlide||{},{direction:s,leaving:!0}),n.$currentTransition=i(o.$element,{}),function(t,i){n.$currentTransition.then(function(){h(t,i)},function(){h(t,i)})}(o,u.currentSlide)):h(o,u.currentSlide),u.currentSlide=o,f=a,e())}function h(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var a=r.indexOf(o);void 0===s&&(s=a>f?"next":"prev");o&&o!==u.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(l)):l())};n.$on("$destroy",function(){c=!0});u.indexOfSlide=function(n){return r.indexOf(n)};n.next=function(){var t=(f+1)%r.length;if(!n.$currentTransition)return u.select(r[t],"next")};n.prev=function(){var t=0>f-1?r.length-1:f-1;if(!n.$currentTransition)return u.select(r[t],"prev")};n.isActive=function(n){return u.currentSlide===n};n.$watch("interval",e);n.$on("$destroy",h);n.play=function(){s||(s=!0,e())};n.pause=function(){n.noPause||(s=!1,h())};u.addSlide=function(t,i){t.$element=i;r.push(t);1===r.length||t.active?(u.select(r[r.length-1]),1==r.length&&n.play()):t.active=!1};u.removeSlide=function(n){var t=r.indexOf(n);r.splice(t,1);r.length>0&&n.active?u.select(t>=r.length?r[t-1]:r[t]):f>t&&f--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)});n.$watch("active",function(t){t&&r.select(n)})}}});angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(n,t){function i(n,t,i){return 1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}this.parsers={};var r={yyyy:{regex:"\\d{4}",apply:function(n){this.year=+n}},yy:{regex:"\\d{2}",apply:function(n){this.year=+n+2e3}},y:{regex:"\\d{1,4}",apply:function(n){this.year=+n}},MMMM:{regex:n.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:n.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1}},M:{regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},EEEE:{regex:n.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:n.DATETIME_FORMATS.SHORTDAY.join("|")}};this.createParser=function(n){var u=[],i=n.split("");return angular.forEach(r,function(t,r){var f=n.indexOf(r),e,o;if(f>-1){for(n=n.split(""),i[f]="("+t.regex+")",n[f]="$",e=f+1,o=f+r.length;o>e;e++)i[e]="",n[e]="$";n=n.join("");u.push({index:f,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(u,"index")}};this.parse=function(t,r){var o;if(!angular.isString(t))return t;r=n.DATETIME_FORMATS[r]||r;this.parsers[r]||(this.parsers[r]=this.createParser(r));var s=this.parsers[r],c=s.regex,l=s.map,f=t.match(c);if(f&&f.length){for(var h,u={year:1900,month:0,date:1,hours:0},e=1,a=f.length;a>e;e++)o=l[e-1],o.apply&&o.apply.call(u,f[e]);return i(u.year,u.month,u.date)&&(h=new Date(u.year,u.month,u.date,u.hours)),h}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return"static"===(i(n,"position")||"static")}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var u,h,c,f,a=i.split("-"),l=a[0],e=a[1]||"center",o,s;u=r?this.offset(n):this.position(n);h=t.prop("offsetWidth");c=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-h/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-c/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(l){case"right":f={top:s[e](),left:o[l]()};break;case"left":f={top:s[e](),left:u.left-h};break;case"bottom":f={top:s[l](),left:o[e]()};break;default:f={top:u.top-c,left:o[e]()}}return f}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(n,t,i,r,u,f,e,o){var s=this,h={$setViewValue:angular.noop},c;this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(i,u){s[i]=angular.isDefined(t[i])?8>u?r(t[i])(n.$parent):n.$parent.$eval(t[i]):o[i]});angular.forEach(["minDate","maxDate"],function(r){t[r]?n.$parent.$watch(i(t[r]),function(n){s[r]=n?new Date(n):null;s.refreshView()}):s[r]=o[r]?new Date(o[r]):null});n.datepickerMode=n.datepickerMode||o.datepickerMode;n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());this.activeDate=angular.isDefined(t.initDate)?n.$parent.$eval(t.initDate):new Date;n.isActive=function(t){return 0===s.compare(t.date,s.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(n){h=n;h.$render=function(){s.render()}};this.render=function(){if(h.$modelValue){var n=new Date(h.$modelValue),t=!isNaN(n);t?this.activeDate=n:f.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');h.$setValidity("date",t)}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var n=h.$modelValue?new Date(h.$modelValue):null;h.$setValidity("date-disabled",!n||this.element&&!this.isDisabled(n))}};this.createDateObject=function(n,t){var i=h.$modelValue?new Date(h.$modelValue):null;return{date:n,label:e(n,t),selected:i&&0===this.compare(n,i),disabled:this.isDisabled(n),current:0===this.compare(n,new Date)}};this.isDisabled=function(i){return this.minDate&&this.compare(i,this.minDate)<0||this.maxDate&&this.compare(i,this.maxDate)>0||t.dateDisabled&&n.dateDisabled({date:i,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===s.minMode){var i=h.$modelValue?new Date(h.$modelValue):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());h.$setViewValue(i);h.$render()}else s.activeDate=t,n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)-1]};n.move=function(n){var t=s.activeDate.getFullYear()+n*(s.step.years||0),i=s.activeDate.getMonth()+n*(s.step.months||0);s.activeDate.setFullYear(t,i,1);s.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===s.maxMode&&1===t||n.datepickerMode===s.minMode&&-1===t||(n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)+t])};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};c=function(){u(function(){s.element[0].focus()},0,!1)};n.$on("datepicker.focus",c);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),"enter"===i||"space"===i){if(s.isDisabled(s.activeDate))return;n.select(s.activeDate);c()}else!t.ctrlKey||"up"!==i&&"down"!==i?(s.handleKeyDown(i,t),s.refreshView()):(n.toggleMode("up"===i?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}}).directive("daypicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,i,r,u){function f(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?s[t]:29}function e(n,t){var r=new Array(t),i=new Date(n),u=0;for(i.setHours(12);t>u;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}t.showWeeks=u.showWeeks;u.step={months:1};u.element=i;var s=[31,28,31,30,31,30,31,31,30,31,30,31];u._refreshView=function(){var p=u.activeDate.getFullYear(),h=u.activeDate.getMonth(),c=new Date(p,h,1),s=u.startingDay-c.getDay(),l=s>0?7-s:-s,a=new Date(c),i,r,f,v,y;for(l>0&&a.setDate(-l+1),i=e(a,42),r=0;42>r;r++)i[r]=angular.extend(u.createDateObject(i[r],u.formatDay),{secondary:i[r].getMonth()!==h,uid:t.uniqueId+"-"+r});for(t.labels=new Array(7),f=0;7>f;f++)t.labels[f]={abbr:n(i[f].date,u.formatDayHeader),full:n(i[f].date,"EEEE")};if(t.title=n(u.activeDate,u.formatDayTitle),t.rows=u.split(i,7),t.showWeeks)for(t.weekNumbers=[],v=o(t.rows[0][0].date),y=t.rows.length;t.weekNumbers.push(v++)<y;);};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};u.handleKeyDown=function(n){var t=u.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=u.activeDate.getMonth()+("pageup"===n?-1:1),u.activeDate.setMonth(i,1),t=Math.min(f(u.activeDate.getFullYear(),u.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=f(u.activeDate.getFullYear(),u.activeDate.getMonth()));u.activeDate.setDate(t)};u.refreshView()}}}]).directive("monthpicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,i,r,u){u.step={years:1};u.element=i;u._refreshView=function(){for(var r=new Array(12),f=u.activeDate.getFullYear(),i=0;12>i;i++)r[i]=angular.extend(u.createDateObject(new Date(f,i,1),u.formatMonth),{uid:t.uniqueId+"-"+i});t.title=n(u.activeDate,u.formatMonthTitle);t.rows=u.split(r,3)};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())};u.handleKeyDown=function(n){var t=u.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=3:"right"===n?t+=1:"down"===n?t+=3:"pageup"===n||"pagedown"===n?(i=u.activeDate.getFullYear()+("pageup"===n?-1:1),u.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);u.activeDate.setMonth(t)};u.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(n,t,i,r){function f(n){return parseInt((n-1)/u,10)*u+1}var u=r.yearRange;r.step={years:u};r.element=t;r._refreshView=function(){for(var i=new Array(u),t=0,e=f(r.activeDate.getFullYear());u>t;t++)i[t]=angular.extend(r.createDateObject(new Date(e+t,0,1),r.formatYear),{uid:n.uniqueId+"-"+t});n.title=[i[0].label,i[u-1].label].join(" - ");n.rows=r.split(i,5)};r.compare=function(n,t){return n.getFullYear()-t.getFullYear()};r.handleKeyDown=function(n){var t=r.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=5:"right"===n?t+=1:"down"===n?t+=5:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*r.step.years:"home"===n?t=f(r.activeDate.getFullYear()):"end"===n&&(t=f(r.activeDate.getFullYear())+u-1);r.activeDate.setFullYear(t)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(n,t,i,r,u,f,e){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(o,s,h,c){function b(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function k(n){if(n){if(angular.isDate(n)&&!isNaN(n))return c.$setValidity("date",!0),n;if(angular.isString(n)){var t=f.parse(n,p)||new Date(n);return isNaN(t)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),t)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,g=angular.isDefined(h.closeOnDateSelection)?o.$parent.$eval(h.closeOnDateSelection):e.closeOnDateSelection,d=angular.isDefined(h.datepickerAppendToBody)?o.$parent.$eval(h.datepickerAppendToBody):e.appendToBody,l,a,v,w,y;o.showButtonBar=angular.isDefined(h.showButtonBar)?o.$parent.$eval(h.showButtonBar):e.showButtonBar;o.getText=function(n){return o[n+"Text"]||e[n+"Text"]};h.$observe("datepickerPopup",function(n){p=n||e.datepickerPopup;c.$render()});l=angular.element("<div datepicker-popup-wrap><div datepicker><\/div><\/div>");l.attr({"ng-model":"date","ng-change":"dateSelection()"});a=angular.element(l.children()[0]);h.datepickerOptions&&angular.forEach(o.$parent.$eval(h.datepickerOptions),function(n,t){a.attr(b(t),n)});angular.forEach(["minDate","maxDate"],function(n){h[n]&&(o.$parent.$watch(t(h[n]),function(t){o[n]=t}),a.attr(b(n),n))});h.dateDisabled&&a.attr("date-disabled","dateDisabled({ date: date, mode: mode })");c.$parsers.unshift(k);o.dateSelection=function(n){angular.isDefined(n)&&(o.date=n);c.$setViewValue(o.date);c.$render();g&&(o.isOpen=!1,s[0].focus())};s.bind("input change keyup",function(){o.$apply(function(){o.date=c.$modelValue})});c.$render=function(){var n=c.$viewValue?u(c.$viewValue,p):"";s.val(n);o.date=k(c.$modelValue)};v=function(n){o.isOpen&&n.target!==s[0]&&o.$apply(function(){o.isOpen=!1})};w=function(n){o.keydown(n)};s.bind("keydown",w);o.keydown=function(n){27===n.which?(n.preventDefault(),n.stopPropagation(),o.close()):40!==n.which||o.isOpen||(o.isOpen=!0)};o.$watch("isOpen",function(n){n?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(s):r.position(s),o.position.top=o.position.top+s.prop("offsetHeight"),i.bind("click",v)):i.unbind("click",v)});o.select=function(n){if("today"===n){var t=new Date;angular.isDate(c.$modelValue)?(n=new Date(c.$modelValue),n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):n=new Date(t.setHours(0,0,0,0))}o.dateSelection(n)};o.close=function(){o.isOpen=!1;s[0].focus()};y=n(l)(o);d?i.find("body").append(y):s.after(y);o.$on("$destroy",function(){y.remove();s.unbind("keydown",w);i.unbind("click",v)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}});angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(n){var t=null,i,r;this.open=function(u){t||(n.bind("click",i),n.bind("keydown",r));t&&t!==u&&(t.isOpen=!1);t=u};this.close=function(u){t===u&&(t=null,n.unbind("click",i),n.unbind("keydown",r))};i=function(n){n&&n.isDefaultPrevented()||t.$apply(function(){t.isOpen=!1})};r=function(n){27===n.which&&(t.focusToggleElement(),i())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(n,t,i,r,u,f){var s,o=this,e=n.$new(),c=r.openClass,h=angular.noop,l=t.onToggle?i(t.onToggle):angular.noop;this.init=function(r){o.$element=r;t.isOpen&&(s=i(t.isOpen),h=s.assign,n.$watch(s,function(n){e.isOpen=!!n}))};this.toggle=function(n){return e.isOpen=arguments.length?!!n:!e.isOpen};this.isOpen=function(){return e.isOpen};e.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()};e.$watch("isOpen",function(t,i){f[t?"addClass":"removeClass"](o.$element,c);t?(e.focusToggleElement(),u.open(e)):u.close(e);h(n,t);angular.isDefined(t)&&t!==i&&l(n,{open:!!t})});n.$on("$locationChangeSuccess",function(){e.isOpen=!1});n.$on("$destroy",function(){e.$destroy()})}]).directive("dropdown",function(){return{restrict:"CA",controller:"DropdownController",link:function(n,t,i,r){r.init(t)}}}).directive("dropdownToggle",function(){return{restrict:"CA",require:"?^dropdown",link:function(n,t,i,r){if(r){r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t){t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!=i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);a(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(v,e.length()>0);y()})}function y(){if(h&&-1==c()){var n=o;a(h,o,150,function(){n.$destroy();n=null});h=void 0;o=void 0}}function a(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e,0)}var h,o,v="modal-open",e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;27===n.which&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,l,a;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,h=r("<div modal-backdrop><\/div>")(o),f.append(h));l=angular.element("<div modal-window><\/div>");l.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);a=r(l)(t.scope);e.top().value.modalDomEl=a;f.append(a);f.addClass(v)},s.close=function(n,t){var i=e.get(n).value;i&&(i.deferred.resolve(t),l(n))},s.dismiss=function(n,t){var i=e.get(n).value;i&&(i.deferred.reject(t),l(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var s=(t.scope||i).$new(),c,r,h;s.$close=u.close;s.$dismiss=u.dismiss;r={};h=1;t.controller&&(r.$scope=s,r.$modalInstance=u,angular.forEach(t.resolve,function(t,i){r[i]=n[h++]}),c=e(t.controller,r));o.open(u,{scope:s,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(n,t,i){var u=this,r={$setViewValue:angular.noop},f=t.numPages?i(t.numPages).assign:angular.noop;this.init=function(f,e){r=f;this.config=e;r.$render=function(){u.render()};t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){n.page=parseInt(r.$viewValue,10)||1};n.selectPage=function(t){n.page!==t&&t>0&&t<=n.totalPages&&(r.$setViewValue(t),r.$render())};n.getText=function(t){return n[t+"Text"]||u.config[t+"Text"]};n.noPrevious=function(){return 1===n.page};n.noNext=function(){return n.page===n.totalPages};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(t){f(n.$parent,t);n.page>t?n.selectPage(t):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function s(n,t,i){return{number:n,text:t,active:i}}function a(n,t){var f=[],i=1,r=t,o=angular.isDefined(e)&&t>e,u,c,l,a;for(o&&(h?(i=Math.max(n-Math.floor(e/2),1),r=i+e-1,r>t&&(r=t,i=r-e+1)):(i=(Math.ceil(n/e)-1)*e+1,r=Math.min(i+e-1,t))),u=i;r>=u;u++)c=s(u,u,u===n),f.push(c);return o&&!h&&(i>1&&(l=s(i-1,"...",!1),f.unshift(l)),t>r&&(a=s(r+1,"...",!1),f.push(a))),f}var o=f[0],c=f[1],e,h,l;c&&(e=angular.isDefined(u.maxSize)?i.$parent.$eval(u.maxSize):t.maxSize,h=angular.isDefined(u.rotate)?i.$parent.$eval(u.rotate):t.rotate,i.boundaryLinks=angular.isDefined(u.boundaryLinks)?i.$parent.$eval(u.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(u.directionLinks)?i.$parent.$eval(u.directionLinks):t.directionLinks,o.init(c,t),u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);o.render()}),l=o.render,o.render=function(){l();i.page>0&&i.page<=i.totalPages&&(i.pages=a(i.page,i.totalPages))})}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):n.align,e.init(f,n))}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(u,f,e,o,s,h,c){return function(u,l,a){function w(t){var i=t||v.trigger||a,r=n[i]||i;return{show:i,hide:r}}var v=angular.extend({},r,t),b=i(u),y=c.startSymbol(),p=c.endSymbol(),k="<div "+b+'-popup title="'+y+"tt_title"+p+'" content="'+y+"tt_content"+p+'" placement="'+y+"tt_placement"+p+'" animation="tt_animation" is-open="tt_isOpen"><\/div>';return{restrict:"EA",scope:!0,compile:function(){var n=f(k);return function(t,i,r){function ut(){t.tt_isOpen?d():k()}function k(){(!et||t.$eval(r[l+"Enable"]))&&(t.tt_popupDelay?y||(y=e(it,t.tt_popupDelay,!1),y.then(function(n){n()})):it()())}function d(){t.$apply(function(){g()})}function it(){return y=null,a&&(e.cancel(a),a=null),t.tt_content?(ft(),f.css({top:0,left:0,display:"block"}),p?s.find("body").append(f):i.after(f),rt(),t.tt_isOpen=!0,t.$digest(),rt):angular.noop}function g(){t.tt_isOpen=!1;e.cancel(y);y=null;t.tt_animation?a||(a=e(b,500)):b()}function ft(){f&&b();f=n(t,function(){});t.$digest()}function b(){a=null;f&&(f.remove(),f=null)}var f,a,y,p=angular.isDefined(v.appendToBody)?v.appendToBody:!1,c=w(void 0),et=angular.isDefined(r[l+"Enable"]),rt=function(){var n=h.positionElements(i,f,t.tt_placement,p);n.top+="px";n.left+="px";f.css(n)},nt,tt;t.tt_isOpen=!1;r.$observe(u,function(n){t.tt_content=n;!n&&t.tt_isOpen&&g()});r.$observe(l+"Title",function(n){t.tt_title=n});r.$observe(l+"Placement",function(n){t.tt_placement=angular.isDefined(n)?n:v.placement});r.$observe(l+"PopupDelay",function(n){var i=parseInt(n,10);t.tt_popupDelay=isNaN(i)?v.popupDelay:i});nt=function(){i.unbind(c.show,k);i.unbind(c.hide,d)};r.$observe(l+"Trigger",function(n){nt();c=w(n);c.show===c.hide?i.bind(c.show,ut):(i.bind(c.show,k),i.bind(c.hide,d))});tt=t.$eval(r[l+"Animation"]);t.tt_animation=angular.isDefined(tt)?!!tt:v.animation;r.$observe(l+"AppendToBody",function(n){p=angular.isDefined(n)?o(n)(t):p});p&&t.$on("$locationChangeSuccess",function(){t.tt_isOpen&&g()});t.$on("$destroy",function(){e.cancel(a);e.cancel(y);nt();b()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(n,t,i){var r=this,u=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max;this.addBar=function(t,i){u||i.css({transition:"none"});this.bars.push(t);t.$watch("value",function(i){t.percent=+(100*i/n.max).toFixed(2)});t.$on("$destroy",function(){i=null;r.removeBar(t)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(n,t,i){var r={$setViewValue:angular.noop};this.init=function(u){r=u;r.$render=this.render;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;var f=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(f)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},n[t]);return n};n.rate=function(t){!n.readonly&&t>=0&&t<=n.range.length&&(r.$setViewValue(t),r.$render())};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[];i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);1===t.length?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var r=t.indexOf(n),u;n.active&&t.length>1&&(u=r==t.length-1?r-1:r+1,i.select(t[u]));t.splice(r,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||"tab-heading"===n.tagName.toLowerCase()||"data-tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(n,t,i,r,u,f){function p(){var t=parseInt(n.hours,10),i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i)return(n.showMeridian&&(12===t&&(t=0),n.meridian===y[1]&&(t+=12)),t)}function w(){var t=parseInt(n.minutes,10);if(t>=0&&60>t)return t}function h(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function c(n){b();o.$setViewValue(new Date(e));v(n)}function b(){o.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1}function v(t){var i=e.getHours(),r=e.getMinutes();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:h(i);n.minutes="m"===t?r:h(r);n.meridian=e.getHours()<12?y[0]:y[1]}function s(n){var t=new Date(e.getTime()+6e4*n);e.setHours(t.getHours(),t.getMinutes());c()}var e=new Date,o={$setViewValue:angular.noop},y=angular.isDefined(t.meridians)?n.$parent.$eval(t.meridians):f.meridians||u.DATETIME_FORMATS.AMPMS,l,a;this.init=function(i,r){o=i;o.$render=this.render;var u=r.eq(0),e=r.eq(1),s=angular.isDefined(t.mousewheel)?n.$parent.$eval(t.mousewheel):f.mousewheel;s&&this.setupMousewheelEvents(u,e);n.readonlyInput=angular.isDefined(t.readonlyInput)?n.$parent.$eval(t.readonlyInput):f.readonlyInput;this.setupInputEvents(u,e)};l=f.hourStep;t.hourStep&&n.$parent.$watch(i(t.hourStep),function(n){l=parseInt(n,10)});a=f.minuteStep;t.minuteStep&&n.$parent.$watch(i(t.minuteStep),function(n){a=parseInt(n,10)});n.showMeridian=f.showMeridian;t.showMeridian&&n.$parent.$watch(i(t.showMeridian),function(t){if(n.showMeridian=!!t,o.$error.time){var i=p(),r=w();angular.isDefined(i)&&angular.isDefined(r)&&(e.setHours(i),c())}else v()});this.setupMousewheelEvents=function(t,i){var r=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()})};this.setupInputEvents=function(t,i){if(n.readonlyInput)return n.updateHours=angular.noop,void(n.updateMinutes=angular.noop);var r=function(t,i){o.$setViewValue(null);o.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i)};n.updateHours=function(){var n=p();angular.isDefined(n)?(e.setHours(n),c("h")):r(!0)};t.bind("blur",function(){!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=h(n.hours)})});n.updateMinutes=function(){var n=w();angular.isDefined(n)?(e.setMinutes(n),c("m")):r(void 0,!0)};i.bind("blur",function(){!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=h(n.minutes)})})};this.render=function(){var n=o.$modelValue?new Date(o.$modelValue):null;isNaN(n)?(o.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(n&&(e=n),b(),v())};n.incrementHours=function(){s(60*l)};n.decrementHours=function(){s(60*-l)};n.incrementMinutes=function(){s(a)};n.decrementMinutes=function(){s(-a)};n.toggleMeridian=function(){s(720*(e.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}});angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var k,et=s.$eval(c.typeaheadMinLength)||1,rt=s.$eval(c.typeaheadWaitMs)||0,ot=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,st=t(c.typeaheadOnSelect),ut=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):void 0,ft=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,ht=t(c.ngModel).assign,v=e.parse(c.typeahead),a=s.$new(),w,b,y,d,g,nt,tt,it;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(1e4*Math.random());h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};d=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){0>n?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",d(n))});g=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&k)if(i.length>0){for(a.activeIdx=0,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:d(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=ft?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=void 0;l.$parsers.unshift(function(n){return k=!0,n&&n.length>=et?rt>0?(nt&&r.cancel(nt),nt=r(function(){g(n)},rt)):g(n):(p(s,!1),y()),ot?n:n?void l.$setValidity("editable",!1):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return ut?(t.$model=n,ut(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=void 0,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t,u,i={};i[v.itemName]=u=a.matches[n].model;t=v.modelMapper(s,i);ht(s,t);l.$setValidity("editable",!0);st(s,{$item:u,$model:t,$label:v.viewMapper(s,i)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){0!==a.matches.length&&-1!==o.indexOf(n.which)&&(n.preventDefault(),40===n.which?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):38===n.which?(a.activeIdx=(a.activeIdx?a.activeIdx:a.matches.length)-1,a.$digest()):13===n.which||9===n.which?a.$apply(function(){a.select(a.activeIdx)}):27===n.which&&(n.stopPropagation(),y(),a.$digest()))});h.bind("blur",function(){k=!1});tt=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",tt);s.$on("$destroy",function(){u.unbind("click",tt)});it=n(b)(a);ft?u.find("body").append(it):h.after(it)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(void 0!==f.style[t])return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=void 0)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){f?(f=!1,s(),i.css({height:0})):(i.css({height:i[0].scrollHeight+"px"}),i[0].offsetWidth,i.removeClass("collapse in").addClass("collapsing"),e({height:0}).then(s))}function s(){i.removeClass("collapsing");i.addClass("collapse")}var u,f=!0;t.$watch(r.collapse,function(n){n?c():h()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.$watch("isOpen",function(t){t&&r.closeOthers(n)});n.toggleOpen=function(){n.isDisabled||(n.isOpen=!n.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(n,t){n.closeable="close"in t}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}});angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,n.$eval(i.btnRadio)))};t.bind(f.toggleEvent,function(){var r=t.hasClass(f.activeClass);(!r||angular.isDefined(i.uncheckable))&&n.$apply(function(){u.$setViewValue(r?null:n.$eval(i.btnRadio));u.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){var r=n.$eval(t);return angular.isDefined(r)?r:i}var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.bind(f.toggleEvent,function(){n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$transition",function(n,t,i){function e(){h();var i=+n.interval;!isNaN(i)&&i>=0&&(o=t(l,i))}function h(){o&&(t.cancel(o),o=null)}function l(){s?(n.next(),e()):n.pause()}var o,s,u=this,r=u.slides=n.slides=[],f=-1,c;u.currentSlide=null;c=!1;u.select=n.select=function(o,s){function l(){c||(u.currentSlide&&angular.isString(s)&&!n.noTransition&&o.$element?(o.$element.addClass(s),o.$element[0].offsetWidth,angular.forEach(r,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(o,{direction:s,active:!0,entering:!0}),angular.extend(u.currentSlide||{},{direction:s,leaving:!0}),n.$currentTransition=i(o.$element,{}),function(t,i){n.$currentTransition.then(function(){h(t,i)},function(){h(t,i)})}(o,u.currentSlide)):h(o,u.currentSlide),u.currentSlide=o,f=a,e())}function h(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var a=r.indexOf(o);void 0===s&&(s=a>f?"next":"prev");o&&o!==u.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(l)):l())};n.$on("$destroy",function(){c=!0});u.indexOfSlide=function(n){return r.indexOf(n)};n.next=function(){var t=(f+1)%r.length;if(!n.$currentTransition)return u.select(r[t],"next")};n.prev=function(){var t=0>f-1?r.length-1:f-1;if(!n.$currentTransition)return u.select(r[t],"prev")};n.isActive=function(n){return u.currentSlide===n};n.$watch("interval",e);n.$on("$destroy",h);n.play=function(){s||(s=!0,e())};n.pause=function(){n.noPause||(s=!1,h())};u.addSlide=function(t,i){t.$element=i;r.push(t);1===r.length||t.active?(u.select(r[r.length-1]),1==r.length&&n.play()):t.active=!1};u.removeSlide=function(n){var t=r.indexOf(n);r.splice(t,1);r.length>0&&n.active?u.select(t>=r.length?r[t-1]:r[t]):f>t&&f--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)});n.$watch("active",function(t){t&&r.select(n)})}}});angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(n,t){function i(n,t,i){return 1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}this.parsers={};var r={yyyy:{regex:"\\d{4}",apply:function(n){this.year=+n}},yy:{regex:"\\d{2}",apply:function(n){this.year=+n+2e3}},y:{regex:"\\d{1,4}",apply:function(n){this.year=+n}},MMMM:{regex:n.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:n.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1}},M:{regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},EEEE:{regex:n.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:n.DATETIME_FORMATS.SHORTDAY.join("|")}};this.createParser=function(n){var u=[],i=n.split("");return angular.forEach(r,function(t,r){var f=n.indexOf(r),e,o;if(f>-1){for(n=n.split(""),i[f]="("+t.regex+")",n[f]="$",e=f+1,o=f+r.length;o>e;e++)i[e]="",n[e]="$";n=n.join("");u.push({index:f,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(u,"index")}};this.parse=function(t,r){var o;if(!angular.isString(t))return t;r=n.DATETIME_FORMATS[r]||r;this.parsers[r]||(this.parsers[r]=this.createParser(r));var s=this.parsers[r],c=s.regex,l=s.map,f=t.match(c);if(f&&f.length){for(var h,u={year:1900,month:0,date:1,hours:0},e=1,a=f.length;a>e;e++)o=l[e-1],o.apply&&o.apply.call(u,f[e]);return i(u.year,u.month,u.date)&&(h=new Date(u.year,u.month,u.date,u.hours)),h}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return"static"===(i(n,"position")||"static")}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var u,h,c,f,a=i.split("-"),l=a[0],e=a[1]||"center",o,s;u=r?this.offset(n):this.position(n);h=t.prop("offsetWidth");c=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-h/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-c/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(l){case"right":f={top:s[e](),left:o[l]()};break;case"left":f={top:s[e](),left:u.left-h};break;case"bottom":f={top:s[l](),left:o[e]()};break;default:f={top:u.top-c,left:o[e]()}}return f}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(n,t,i,r,u,f,e,o){var s=this,h={$setViewValue:angular.noop},c;this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(i,u){s[i]=angular.isDefined(t[i])?8>u?r(t[i])(n.$parent):n.$parent.$eval(t[i]):o[i]});angular.forEach(["minDate","maxDate"],function(r){t[r]?n.$parent.$watch(i(t[r]),function(n){s[r]=n?new Date(n):null;s.refreshView()}):s[r]=o[r]?new Date(o[r]):null});n.datepickerMode=n.datepickerMode||o.datepickerMode;n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());this.activeDate=angular.isDefined(t.initDate)?n.$parent.$eval(t.initDate):new Date;n.isActive=function(t){return 0===s.compare(t.date,s.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(n){h=n;h.$render=function(){s.render()}};this.render=function(){if(h.$modelValue){var n=new Date(h.$modelValue),t=!isNaN(n);t?this.activeDate=n:f.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');h.$setValidity("date",t)}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var n=h.$modelValue?new Date(h.$modelValue):null;h.$setValidity("date-disabled",!n||this.element&&!this.isDisabled(n))}};this.createDateObject=function(n,t){var i=h.$modelValue?new Date(h.$modelValue):null;return{date:n,label:e(n,t),selected:i&&0===this.compare(n,i),disabled:this.isDisabled(n),current:0===this.compare(n,new Date)}};this.isDisabled=function(i){return this.minDate&&this.compare(i,this.minDate)<0||this.maxDate&&this.compare(i,this.maxDate)>0||t.dateDisabled&&n.dateDisabled({date:i,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===s.minMode){var i=h.$modelValue?new Date(h.$modelValue):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());h.$setViewValue(i);h.$render()}else s.activeDate=t,n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)-1]};n.move=function(n){var t=s.activeDate.getFullYear()+n*(s.step.years||0),i=s.activeDate.getMonth()+n*(s.step.months||0);s.activeDate.setFullYear(t,i,1);s.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===s.maxMode&&1===t||n.datepickerMode===s.minMode&&-1===t||(n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)+t])};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};c=function(){u(function(){s.element[0].focus()},0,!1)};n.$on("datepicker.focus",c);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),"enter"===i||"space"===i){if(s.isDisabled(s.activeDate))return;n.select(s.activeDate);c()}else!t.ctrlKey||"up"!==i&&"down"!==i?(s.handleKeyDown(i,t),s.refreshView()):(n.toggleMode("up"===i?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}}).directive("daypicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,i,r,u){function f(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?s[t]:29}function e(n,t){var r=new Array(t),i=new Date(n),u=0;for(i.setHours(12);t>u;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}t.showWeeks=u.showWeeks;u.step={months:1};u.element=i;var s=[31,28,31,30,31,30,31,31,30,31,30,31];u._refreshView=function(){var p=u.activeDate.getFullYear(),h=u.activeDate.getMonth(),c=new Date(p,h,1),s=u.startingDay-c.getDay(),l=s>0?7-s:-s,a=new Date(c),i,r,f,v,y;for(l>0&&a.setDate(-l+1),i=e(a,42),r=0;42>r;r++)i[r]=angular.extend(u.createDateObject(i[r],u.formatDay),{secondary:i[r].getMonth()!==h,uid:t.uniqueId+"-"+r});for(t.labels=new Array(7),f=0;7>f;f++)t.labels[f]={abbr:n(i[f].date,u.formatDayHeader),full:n(i[f].date,"EEEE")};if(t.title=n(u.activeDate,u.formatDayTitle),t.rows=u.split(i,7),t.showWeeks)for(t.weekNumbers=[],v=o(t.rows[0][0].date),y=t.rows.length;t.weekNumbers.push(v++)<y;);};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};u.handleKeyDown=function(n){var t=u.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=u.activeDate.getMonth()+("pageup"===n?-1:1),u.activeDate.setMonth(i,1),t=Math.min(f(u.activeDate.getFullYear(),u.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=f(u.activeDate.getFullYear(),u.activeDate.getMonth()));u.activeDate.setDate(t)};u.refreshView()}}}]).directive("monthpicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,i,r,u){u.step={years:1};u.element=i;u._refreshView=function(){for(var r=new Array(12),f=u.activeDate.getFullYear(),i=0;12>i;i++)r[i]=angular.extend(u.createDateObject(new Date(f,i,1),u.formatMonth),{uid:t.uniqueId+"-"+i});t.title=n(u.activeDate,u.formatMonthTitle);t.rows=u.split(r,3)};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())};u.handleKeyDown=function(n){var t=u.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=3:"right"===n?t+=1:"down"===n?t+=3:"pageup"===n||"pagedown"===n?(i=u.activeDate.getFullYear()+("pageup"===n?-1:1),u.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);u.activeDate.setMonth(t)};u.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(n,t,i,r){function f(n){return parseInt((n-1)/u,10)*u+1}var u=r.yearRange;r.step={years:u};r.element=t;r._refreshView=function(){for(var i=new Array(u),t=0,e=f(r.activeDate.getFullYear());u>t;t++)i[t]=angular.extend(r.createDateObject(new Date(e+t,0,1),r.formatYear),{uid:n.uniqueId+"-"+t});n.title=[i[0].label,i[u-1].label].join(" - ");n.rows=r.split(i,5)};r.compare=function(n,t){return n.getFullYear()-t.getFullYear()};r.handleKeyDown=function(n){var t=r.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=5:"right"===n?t+=1:"down"===n?t+=5:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*r.step.years:"home"===n?t=f(r.activeDate.getFullYear()):"end"===n&&(t=f(r.activeDate.getFullYear())+u-1);r.activeDate.setFullYear(t)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(n,t,i,r,u,f,e){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(o,s,h,c){function b(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function k(n){if(n){if(angular.isDate(n)&&!isNaN(n))return c.$setValidity("date",!0),n;if(angular.isString(n)){var t=f.parse(n,p)||new Date(n);return isNaN(t)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),t)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,g=angular.isDefined(h.closeOnDateSelection)?o.$parent.$eval(h.closeOnDateSelection):e.closeOnDateSelection,d=angular.isDefined(h.datepickerAppendToBody)?o.$parent.$eval(h.datepickerAppendToBody):e.appendToBody,l,a,v,w,y;o.showButtonBar=angular.isDefined(h.showButtonBar)?o.$parent.$eval(h.showButtonBar):e.showButtonBar;o.getText=function(n){return o[n+"Text"]||e[n+"Text"]};h.$observe("datepickerPopup",function(n){p=n||e.datepickerPopup;c.$render()});l=angular.element("<div datepicker-popup-wrap><div datepicker><\/div><\/div>");l.attr({"ng-model":"date","ng-change":"dateSelection()"});a=angular.element(l.children()[0]);h.datepickerOptions&&angular.forEach(o.$parent.$eval(h.datepickerOptions),function(n,t){a.attr(b(t),n)});angular.forEach(["minDate","maxDate"],function(n){h[n]&&(o.$parent.$watch(t(h[n]),function(t){o[n]=t}),a.attr(b(n),n))});h.dateDisabled&&a.attr("date-disabled","dateDisabled({ date: date, mode: mode })");c.$parsers.unshift(k);o.dateSelection=function(n){angular.isDefined(n)&&(o.date=n);c.$setViewValue(o.date);c.$render();g&&(o.isOpen=!1,s[0].focus())};s.bind("input change keyup",function(){o.$apply(function(){o.date=c.$modelValue})});c.$render=function(){var n=c.$viewValue?u(c.$viewValue,p):"";s.val(n);o.date=k(c.$modelValue)};v=function(n){o.isOpen&&n.target!==s[0]&&o.$apply(function(){o.isOpen=!1})};w=function(n){o.keydown(n)};s.bind("keydown",w);o.keydown=function(n){27===n.which?(n.preventDefault(),n.stopPropagation(),o.close()):40!==n.which||o.isOpen||(o.isOpen=!0)};o.$watch("isOpen",function(n){n?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(s):r.position(s),o.position.top=o.position.top+s.prop("offsetHeight"),i.bind("click",v)):i.unbind("click",v)});o.select=function(n){if("today"===n){var t=new Date;angular.isDate(c.$modelValue)?(n=new Date(c.$modelValue),n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):n=new Date(t.setHours(0,0,0,0))}o.dateSelection(n)};o.close=function(){o.isOpen=!1;s[0].focus()};y=n(l)(o);d?i.find("body").append(y):s.after(y);o.$on("$destroy",function(){y.remove();s.unbind("keydown",w);i.unbind("click",v)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}});angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(n){var t=null,i,r;this.open=function(u){t||(n.bind("click",i),n.bind("keydown",r));t&&t!==u&&(t.isOpen=!1);t=u};this.close=function(u){t===u&&(t=null,n.unbind("click",i),n.unbind("keydown",r))};i=function(n){n&&n.isDefaultPrevented()||t.$apply(function(){t.isOpen=!1})};r=function(n){27===n.which&&(t.focusToggleElement(),i())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(n,t,i,r,u,f){var s,o=this,e=n.$new(),c=r.openClass,h=angular.noop,l=t.onToggle?i(t.onToggle):angular.noop;this.init=function(r){o.$element=r;t.isOpen&&(s=i(t.isOpen),h=s.assign,n.$watch(s,function(n){e.isOpen=!!n}))};this.toggle=function(n){return e.isOpen=arguments.length?!!n:!e.isOpen};this.isOpen=function(){return e.isOpen};e.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()};e.$watch("isOpen",function(t,i){f[t?"addClass":"removeClass"](o.$element,c);t?(e.focusToggleElement(),u.open(e)):u.close(e);h(n,t);angular.isDefined(t)&&t!==i&&l(n,{open:!!t})});n.$on("$locationChangeSuccess",function(){e.isOpen=!1});n.$on("$destroy",function(){e.$destroy()})}]).directive("dropdown",function(){return{restrict:"CA",controller:"DropdownController",link:function(n,t,i,r){r.init(t)}}}).directive("dropdownToggle",function(){return{restrict:"CA",require:"?^dropdown",link:function(n,t,i,r){if(r){r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t){t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!=i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);a(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(v,e.length()>0);y()})}function y(){if(h&&-1==c()){var n=o;a(h,o,150,function(){n.$destroy();n=null});h=void 0;o=void 0}}function a(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e,0)}var h,o,v="modal-open",e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;27===n.which&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,l,a;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,h=r("<div modal-backdrop><\/div>")(o),f.append(h));l=angular.element("<div modal-window><\/div>");l.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);a=r(l)(t.scope);e.top().value.modalDomEl=a;f.append(a);f.addClass(v)},s.close=function(n,t){var i=e.get(n).value;i&&(i.deferred.resolve(t),l(n))},s.dismiss=function(n,t){var i=e.get(n).value;i&&(i.deferred.reject(t),l(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var s=(t.scope||i).$new(),c,r,h;s.$close=u.close;s.$dismiss=u.dismiss;r={};h=1;t.controller&&(r.$scope=s,r.$modalInstance=u,angular.forEach(t.resolve,function(t,i){r[i]=n[h++]}),c=e(t.controller,r));o.open(u,{scope:s,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(n,t,i){var u=this,r={$setViewValue:angular.noop},f=t.numPages?i(t.numPages).assign:angular.noop;this.init=function(f,e){r=f;this.config=e;r.$render=function(){u.render()};t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){n.page=parseInt(r.$viewValue,10)||1};n.selectPage=function(t){n.page!==t&&t>0&&t<=n.totalPages&&(r.$setViewValue(t),r.$render())};n.getText=function(t){return n[t+"Text"]||u.config[t+"Text"]};n.noPrevious=function(){return 1===n.page};n.noNext=function(){return n.page===n.totalPages};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(t){f(n.$parent,t);n.page>t?n.selectPage(t):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function s(n,t,i){return{number:n,text:t,active:i}}function a(n,t){var f=[],i=1,r=t,o=angular.isDefined(e)&&t>e,u,c,l,a;for(o&&(h?(i=Math.max(n-Math.floor(e/2),1),r=i+e-1,r>t&&(r=t,i=r-e+1)):(i=(Math.ceil(n/e)-1)*e+1,r=Math.min(i+e-1,t))),u=i;r>=u;u++)c=s(u,u,u===n),f.push(c);return o&&!h&&(i>1&&(l=s(i-1,"...",!1),f.unshift(l)),t>r&&(a=s(r+1,"...",!1),f.push(a))),f}var o=f[0],c=f[1],e,h,l;c&&(e=angular.isDefined(u.maxSize)?i.$parent.$eval(u.maxSize):t.maxSize,h=angular.isDefined(u.rotate)?i.$parent.$eval(u.rotate):t.rotate,i.boundaryLinks=angular.isDefined(u.boundaryLinks)?i.$parent.$eval(u.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(u.directionLinks)?i.$parent.$eval(u.directionLinks):t.directionLinks,o.init(c,t),u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);o.render()}),l=o.render,o.render=function(){l();i.page>0&&i.page<=i.totalPages&&(i.pages=a(i.page,i.totalPages))})}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):n.align,e.init(f,n))}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(u,f,e,o,s,h,c){return function(u,l,a){function w(t){var i=t||v.trigger||a,r=n[i]||i;return{show:i,hide:r}}var v=angular.extend({},r,t),b=i(u),y=c.startSymbol(),p=c.endSymbol(),k="<div "+b+'-popup title="'+y+"tt_title"+p+'" content="'+y+"tt_content"+p+'" placement="'+y+"tt_placement"+p+'" animation="tt_animation" is-open="tt_isOpen"><\/div>';return{restrict:"EA",scope:!0,compile:function(){var n=f(k);return function(t,i,r){function ut(){t.tt_isOpen?d():k()}function k(){(!et||t.$eval(r[l+"Enable"]))&&(t.tt_popupDelay?y||(y=e(it,t.tt_popupDelay,!1),y.then(function(n){n()})):it()())}function d(){t.$apply(function(){g()})}function it(){return y=null,a&&(e.cancel(a),a=null),t.tt_content?(ft(),f.css({top:0,left:0,display:"block"}),p?s.find("body").append(f):i.after(f),rt(),t.tt_isOpen=!0,t.$digest(),rt):angular.noop}function g(){t.tt_isOpen=!1;e.cancel(y);y=null;t.tt_animation?a||(a=e(b,500)):b()}function ft(){f&&b();f=n(t,function(){});t.$digest()}function b(){a=null;f&&(f.remove(),f=null)}var f,a,y,p=angular.isDefined(v.appendToBody)?v.appendToBody:!1,c=w(void 0),et=angular.isDefined(r[l+"Enable"]),rt=function(){var n=h.positionElements(i,f,t.tt_placement,p);n.top+="px";n.left+="px";f.css(n)},nt,tt;t.tt_isOpen=!1;r.$observe(u,function(n){t.tt_content=n;!n&&t.tt_isOpen&&g()});r.$observe(l+"Title",function(n){t.tt_title=n});r.$observe(l+"Placement",function(n){t.tt_placement=angular.isDefined(n)?n:v.placement});r.$observe(l+"PopupDelay",function(n){var i=parseInt(n,10);t.tt_popupDelay=isNaN(i)?v.popupDelay:i});nt=function(){i.unbind(c.show,k);i.unbind(c.hide,d)};r.$observe(l+"Trigger",function(n){nt();c=w(n);c.show===c.hide?i.bind(c.show,ut):(i.bind(c.show,k),i.bind(c.hide,d))});tt=t.$eval(r[l+"Animation"]);t.tt_animation=angular.isDefined(tt)?!!tt:v.animation;r.$observe(l+"AppendToBody",function(n){p=angular.isDefined(n)?o(n)(t):p});p&&t.$on("$locationChangeSuccess",function(){t.tt_isOpen&&g()});t.$on("$destroy",function(){e.cancel(a);e.cancel(y);nt();b()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(n,t,i){var r=this,u=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max;this.addBar=function(t,i){u||i.css({transition:"none"});this.bars.push(t);t.$watch("value",function(i){t.percent=+(100*i/n.max).toFixed(2)});t.$on("$destroy",function(){i=null;r.removeBar(t)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(n,t,i){var r={$setViewValue:angular.noop};this.init=function(u){r=u;r.$render=this.render;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;var f=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(f)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},n[t]);return n};n.rate=function(t){!n.readonly&&t>=0&&t<=n.range.length&&(r.$setViewValue(t),r.$render())};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[];i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);1===t.length?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var r=t.indexOf(n),u;n.active&&t.length>1&&(u=r==t.length-1?r-1:r+1,i.select(t[u]));t.splice(r,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||"tab-heading"===n.tagName.toLowerCase()||"data-tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(n,t,i,r,u,f){function p(){var t=parseInt(n.hours,10),i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i)return(n.showMeridian&&(12===t&&(t=0),n.meridian===y[1]&&(t+=12)),t)}function w(){var t=parseInt(n.minutes,10);if(t>=0&&60>t)return t}function h(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function c(n){b();o.$setViewValue(new Date(e));v(n)}function b(){o.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1}function v(t){var i=e.getHours(),r=e.getMinutes();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:h(i);n.minutes="m"===t?r:h(r);n.meridian=e.getHours()<12?y[0]:y[1]}function s(n){var t=new Date(e.getTime()+6e4*n);e.setHours(t.getHours(),t.getMinutes());c()}var e=new Date,o={$setViewValue:angular.noop},y=angular.isDefined(t.meridians)?n.$parent.$eval(t.meridians):f.meridians||u.DATETIME_FORMATS.AMPMS,l,a;this.init=function(i,r){o=i;o.$render=this.render;var u=r.eq(0),e=r.eq(1),s=angular.isDefined(t.mousewheel)?n.$parent.$eval(t.mousewheel):f.mousewheel;s&&this.setupMousewheelEvents(u,e);n.readonlyInput=angular.isDefined(t.readonlyInput)?n.$parent.$eval(t.readonlyInput):f.readonlyInput;this.setupInputEvents(u,e)};l=f.hourStep;t.hourStep&&n.$parent.$watch(i(t.hourStep),function(n){l=parseInt(n,10)});a=f.minuteStep;t.minuteStep&&n.$parent.$watch(i(t.minuteStep),function(n){a=parseInt(n,10)});n.showMeridian=f.showMeridian;t.showMeridian&&n.$parent.$watch(i(t.showMeridian),function(t){if(n.showMeridian=!!t,o.$error.time){var i=p(),r=w();angular.isDefined(i)&&angular.isDefined(r)&&(e.setHours(i),c())}else v()});this.setupMousewheelEvents=function(t,i){var r=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()})};this.setupInputEvents=function(t,i){if(n.readonlyInput)return n.updateHours=angular.noop,void(n.updateMinutes=angular.noop);var r=function(t,i){o.$setViewValue(null);o.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i)};n.updateHours=function(){var n=p();angular.isDefined(n)?(e.setHours(n),c("h")):r(!0)};t.bind("blur",function(){!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=h(n.hours)})});n.updateMinutes=function(){var n=w();angular.isDefined(n)?(e.setMinutes(n),c("m")):r(void 0,!0)};i.bind("blur",function(){!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=h(n.minutes)})})};this.render=function(){var n=o.$modelValue?new Date(o.$modelValue):null;isNaN(n)?(o.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(n&&(e=n),b(),v())};n.incrementHours=function(){s(60*l)};n.decrementHours=function(){s(60*-l)};n.incrementMinutes=function(){s(a)};n.decrementMinutes=function(){s(-a)};n.toggleMeridian=function(){s(720*(e.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}});angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var k,et=s.$eval(c.typeaheadMinLength)||1,rt=s.$eval(c.typeaheadWaitMs)||0,ot=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,st=t(c.typeaheadOnSelect),ut=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):void 0,ft=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,ht=t(c.ngModel).assign,v=e.parse(c.typeahead),a=s.$new(),w,b,y,d,g,nt,tt,it;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(1e4*Math.random());h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};d=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){0>n?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",d(n))});g=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&k)if(i.length>0){for(a.activeIdx=0,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:d(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=ft?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=void 0;l.$parsers.unshift(function(n){return k=!0,n&&n.length>=et?rt>0?(nt&&r.cancel(nt),nt=r(function(){g(n)},rt)):g(n):(p(s,!1),y()),ot?n:n?void l.$setValidity("editable",!1):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return ut?(t.$model=n,ut(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=void 0,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t,u,i={};i[v.itemName]=u=a.matches[n].model;t=v.modelMapper(s,i);ht(s,t);l.$setValidity("editable",!0);st(s,{$item:u,$model:t,$label:v.viewMapper(s,i)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){0!==a.matches.length&&-1!==o.indexOf(n.which)&&(n.preventDefault(),40===n.which?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):38===n.which?(a.activeIdx=(a.activeIdx?a.activeIdx:a.matches.length)-1,a.$digest()):13===n.which||9===n.which?a.$apply(function(){a.select(a.activeIdx)}):27===n.which&&(n.stopPropagation(),y(),a.$digest()))});h.bind("blur",function(){k=!1});tt=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",tt);s.$on("$destroy",function(){u.unbind("click",tt)});it=n(b)(a);ft?u.find("body").append(it):h.after(it)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n    <\/h4>\n  <\/div>\n  <div class="panel-collapse" collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude><\/div>\n  <\/div>\n<\/div>')}]);angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude><\/div>')}]);angular.module("template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("template/alert/alert.html",'<div class="alert" ng-class="{\'alert-{{type || \'warning\'}}\': true, \'alert-dismissable\': closeable}" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;<\/span>\n        <span class="sr-only">Close<\/span>\n    <\/button>\n    <div ng-transclude><\/div>\n<\/div>\n')}]);angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"><\/li>\n    <\/ol>\n    <div class="carousel-inner" ng-transclude><\/div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"><\/span><\/a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"><\/span><\/a>\n<\/div>\n')}]);angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude><\/div>\n")}]);angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"><\/daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"><\/monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"><\/yearpicker>\n<\/div>')}]);angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"><\/th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}<\/small><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}<\/em><\/td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude><\/li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}<\/button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}<\/button>\n\t\t<\/span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}<\/button>\n\t<\/li>\n<\/ul>\n')}]);angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(n){n.put("template/modal/backdrop.html",'<div class="modal-backdrop fade"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n><\/div>\n')}]);angular.module("template/modal/window.html",[]).run(["$templateCache",function(n){n.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" ng-transclude><\/div><\/div>\n<\/div>')}]);angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" bind-html-unsafe="content"><\/div>\n<\/div>\n')}]);angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3>\n      <div class="popover-content" ng-bind="content"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>')}]);angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progress.html",'<div class="progress" ng-transclude><\/div>')}]);angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>\n<\/div>')}]);angular.module("template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <\/i>\n<\/span>')}]);angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a ng-click="select()" tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("template/tabs/tabset-titles.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset-titles.html","<ul class=\"nav {{type && 'nav-' + type}}\" ng-class=\"{'nav-stacked': vertical}\">\n<\/ul>\n")}]);angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'\n<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td>:<\/td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}<\/button><\/td>\n\t\t<\/tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t<\/tbody>\n<\/table>\n')}]);angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>')}]);angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-if="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>')}]),function(n,t){"use strict";function r(n,t,r){i.directive(n,["$parse","$swipe",function(i,u){var f=75,e=.3,o=30;return function(s,h,c){function v(n){if(!l)return!1;var i=Math.abs(n.y-l.y);return n=(n.x-l.x)*t,a&&i<f&&0<n&&n>o&&i/n<e}var y=i(c[n]),l,a;u.bind(h,{start:function(n){l=n;a=!0},cancel:function(){a=!1},end:function(n,t){v(n)&&s.$apply(function(){h.triggerHandler(r);y(s,{$event:t})})}})}}])}var i=t.module("ngTouch",[]);i.factory("$swipe",[function(){function n(n){var t=n.touches&&n.touches.length?n.touches:[n];return n=n.changedTouches&&n.changedTouches[0]||n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]||t[0].originalEvent||t[0],{x:n.clientX,y:n.clientY}}return{bind:function(t,i){var u,f,e,o,r=!1;t.on("touchstart mousedown",function(t){e=n(t);r=!0;f=u=0;o=e;i.start&&i.start(e,t)});t.on("touchcancel",function(n){r=!1;i.cancel&&i.cancel(n)});t.on("touchmove mousemove",function(t){if(r&&e){var s=n(t);u+=Math.abs(s.x-o.x);f+=Math.abs(s.y-o.y);o=s;10>u&&10>f||(f>u?(r=!1,i.cancel&&i.cancel(t)):(t.preventDefault(),i.move&&i.move(s,t)))}});t.on("touchend mouseup",function(t){r&&(r=!1,i.end&&i.end(n(t),t))})}}}]);i.config(["$provide",function(n){n.decorator("ngClickDirective",["$delegate",function(n){return n.shift(),n}])}]);i.directive("ngClick",["$parse","$timeout","$rootElement",function(n,i,r){function o(n,t,i){for(var r=0;r<n.length;r+=2)if(Math.abs(n[r]-t)<h&&Math.abs(n[r+1]-i)<h)return n.splice(r,r+2),!0;return!1}function l(n){if(!(Date.now()-c>s)){var t=n.touches&&n.touches.length?n.touches:[n],i=t[0].clientX,t=t[0].clientY;1>i&&1>t||f&&f[0]===i&&f[1]===t||(f&&(f=null),"label"===n.target.tagName.toLowerCase()&&(f=[i,t]),o(u,i,t)||(n.stopPropagation(),n.preventDefault(),n.target&&n.target.blur()))}}function a(n){n=n.touches&&n.touches.length?n.touches:[n];var t=n[0].clientX,r=n[0].clientY;u.push(t,r);i(function(){for(var n=0;n<u.length;n+=2)if(u[n]==t&&u[n+1]==r){u.splice(n,n+2);break}},s,!1)}var s=2500,h=25,e="ng-click-active",c,u,f;return function(i,f,s){function v(){y=!1;f.removeClass(e)}var k=n(s.ngClick),y=!1,h,p,w,b;f.on("touchstart",function(n){y=!0;h=n.target?n.target:n.srcElement;3==h.nodeType&&(h=h.parentNode);f.addClass(e);p=Date.now();n=n.touches&&n.touches.length?n.touches:[n];n=n[0].originalEvent||n[0];w=n.clientX;b=n.clientY});f.on("touchmove",function(){v()});f.on("touchcancel",function(){v()});f.on("touchend",function(n){var k=Date.now()-p,i=n.changedTouches&&n.changedTouches.length?n.changedTouches:n.touches&&n.touches.length?n.touches:[n],e=i[0].originalEvent||i[0],i=e.clientX,e=e.clientY,d=Math.sqrt(Math.pow(i-w,2)+Math.pow(e-b,2));y&&750>k&&12>d&&(u||(r[0].addEventListener("click",l,!0),r[0].addEventListener("touchstart",a,!0),u=[]),c=Date.now(),o(u,i,e),h&&h.blur(),t.isDefined(s.disabled)&&!1!==s.disabled||f.triggerHandler("click",[n]));v()});f.onclick=function(){};f.on("click",function(n,t){i.$apply(function(){k(i,{$event:t||n})})});f.on("mousedown",function(){f.addClass(e)});f.on("mousemove mouseup",function(){f.removeClass(e)})}}]);r("ngSwipeLeft",-1,"swipeleft");r("ngSwipeRight",1,"swiperight")}(window,window.angular),function(n){var o="0.4.2",e="hasOwnProperty",f=/[\.\/]/,s=/\s*,\s*/,h="*",v=function(){},c=function(n,t){return n-t},r,i,u={n:{}},l=function(){for(var n=0,t=this.length;n<t;n++)if(typeof this[n]!="undefined")return this[n]},a=function(){for(var n=this.length;--n;)if(typeof this[n]!="undefined")return this[n]},t=function(n,f){var o,b;n=String(n);var g=u,k=i,p=Array.prototype.slice.call(arguments,2),h=t.listeners(n),y=0,e,v=[],w={},s=[],d=r;for(s.firstDefined=l,s.lastDefined=a,r=n,i=0,o=0,b=h.length;o<b;o++)"zIndex"in h[o]&&(v.push(h[o].zIndex),h[o].zIndex<0&&(w[h[o].zIndex]=h[o]));for(v.sort(c);v[y]<0;)if(e=w[v[y++]],s.push(e.apply(f,p)),i)return i=k,s;for(o=0;o<b;o++)if(e=h[o],"zIndex"in e)if(e.zIndex==v[y]){if(s.push(e.apply(f,p)),i)break;do if(y++,e=w[v[y]],e&&s.push(e.apply(f,p)),i)break;while(e)}else w[e.zIndex]=e;else if(s.push(e.apply(f,p)),i)break;return i=k,r=d,s};t._events=u;t.listeners=function(n){for(var a=n.split(f),t=u,i,v,o,e,p,s,c=[t],l=[],r=0,y=a.length;r<y;r++){for(s=[],e=0,p=c.length;e<p;e++)for(t=c[e].n,v=[t[a[r]],t[h]],o=2;o--;)i=v[o],i&&(s.push(i),l=l.concat(i.f||[]));c=s}return l};t.on=function(n,t){var r,i,e;if(n=String(n),typeof t!="function")return function(){};for(r=n.split(s),i=0,e=r.length;i<e;i++)(function(n){for(var e=n.split(f),i=u,s,r=0,o=e.length;r<o;r++)i=i.n,i=i.hasOwnProperty(e[r])&&i[e[r]]||(i[e[r]]={n:{}});for(i.f=i.f||[],r=0,o=i.f.length;r<o;r++)if(i.f[r]==t){s=!0;break}s||i.f.push(t)})(r[i]);return function(n){+n==+n&&(t.zIndex=+n)}};t.f=function(n){var i=[].slice.call(arguments,1);return function(){t.apply(null,[n,null].concat(i).concat([].slice.call(arguments,0)))}};t.stop=function(){i=1};t.nt=function(n){return n?new RegExp("(?:\\.|\\/|^)"+n+"(?:\\.|\\/|$)").test(r):r};t.nts=function(){return r.split(f)};t.off=t.unbind=function(n,i){var a,r,l,p,c,y,o,b,v,w;if(!n){t._events=u={n:{}};return}if(a=n.split(s),a.length>1){for(c=0,y=a.length;c<y;c++)t.off(a[c],i);return}for(a=n.split(f),v=[u],c=0,y=a.length;c<y;c++)for(o=0;o<v.length;o+=p.length-2){if(p=[o,1],r=v[o].n,a[c]!=h)r[a[c]]&&p.push(r[a[c]]);else for(l in r)r[e](l)&&p.push(r[l]);v.splice.apply(v,p)}for(c=0,y=v.length;c<y;c++)for(r=v[c];r.n;){if(i){if(r.f){for(o=0,b=r.f.length;o<b;o++)if(r.f[o]==i){r.f.splice(o,1);break}r.f.length||delete r.f}for(l in r.n)if(r.n[e](l)&&r.n[l].f){for(w=r.n[l].f,o=0,b=w.length;o<b;o++)if(w[o]==i){w.splice(o,1);break}w.length||delete r.n[l].f}}else{delete r.f;for(l in r.n)r.n[e](l)&&r.n[l].f&&delete r.n[l].f}r=r.n}};t.once=function(n,i){var r=function(){return t.unbind(n,r),i.apply(this,arguments)};return t.on(n,r)};t.version=o;t.toString=function(){return"You are running Eve "+o};typeof module!="undefined"&&module.exports?module.exports=t:typeof define=="function"&&define.amd?define("eve",[],function(){return t}):n.eve=t}(this),function(n,t){typeof define=="function"&&define.amd?define(["eve"],function(i){return t(n,i)}):t(n,n.eve)}(this,function(n,t){var i=function(t){var r={},u=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(n){setTimeout(n,16)},f=Array.isArray||function(n){return n instanceof Array||Object.prototype.toString.call(n)=="[object Array]"},o=0,s="M"+(+new Date).toString(36),h=function(){return s+(o++).toString(36)},c=function(n,t,i,r){var u,e,o;if(f(n)){for(res=[],u=0,e=n.length;u<e;u++)res[u]=c(n[u],t,i[u],r);return res}return o=(i-n)/(r-t),function(i){return n+o*(i-t)}},l=Date.now||function(){return+new Date},a=function(n){var t=this,i;if(n==null)return t.s;i=t.s-n;t.b+=t.dur*i;t.B+=t.dur*i;t.s=n},v=function(n){var t=this;if(n==null)return t.spd;t.spd=n},y=function(n){var t=this;if(n==null)return t.dur;t.s=t.s*n/t.dur;t.dur=n},p=function(){var n=this;delete r[n.id];n.update();t("mina.stop."+n.id,n)},w=function(){var n=this;n.pdif||(delete r[n.id],n.update(),n.pdif=n.get()-n.b)},b=function(){var n=this;n.pdif&&(n.b=n.get()-n.pdif,delete n.pdif,r[n.id]=n)},k=function(){var n=this,i,t,r;if(f(n.start))for(i=[],t=0,r=n.start.length;t<r;t++)i[t]=+n.start[t]+(n.end[t]-n.start[t])*n.easing(n.s);else i=+n.start+(n.end-n.start)*n.easing(n.s);n.set(i)},e=function(){var f=0,i,n,o;for(i in r)r.hasOwnProperty(i)&&(n=r[i],o=n.get(),f++,n.s=(o-n.b)/(n.dur/n.spd),n.s>=1&&(delete r[i],n.s=1,f--,function(n){setTimeout(function(){t("mina.finish."+n.id,n)})}(n)),n.update());f&&u(e)},i=function(n,t,f,o,s,c,l){var g={id:h(),start:n,end:t,b:f,s:0,dur:o-f,spd:1,get:s,set:c,easing:l||i.linear,status:a,speed:v,duration:y,stop:p,pause:w,resume:b,update:k},d,nt;r[g.id]=g;d=0;for(nt in r)if(r.hasOwnProperty(nt)&&(d++,d==2))break;return d==1&&u(e),g};return i.time=l,i.getById=function(n){return r[n]||null},i.linear=function(n){return n},i.easeout=function(n){return Math.pow(n,1.7)},i.easein=function(n){return Math.pow(n,.48)},i.easeinout=function(n){if(n==1)return 1;if(n==0)return 0;var i=.48-n/1.04,r=Math.sqrt(.1734+i*i),u=r-i,e=Math.pow(Math.abs(u),1/3)*(u<0?-1:1),f=-r-i,o=Math.pow(Math.abs(f),1/3)*(f<0?-1:1),t=e+o+.5;return(1-t)*3*t*t+t*t*t},i.backin=function(n){if(n==1)return 1;var t=1.70158;return n*n*((t+1)*n-t)},i.backout=function(n){if(n==0)return 0;n=n-1;var t=1.70158;return n*n*((t+1)*n+t)+1},i.elastic=function(n){return n==!!n?n:Math.pow(2,-10*n)*Math.sin((n-.075)*2*Math.PI/.3)+1},i.bounce=function(n){var r=7.5625,t=2.75,i;return n<1/t?i=r*n*n:n<2/t?(n-=1.5/t,i=r*n*n+.75):n<2.5/t?(n-=2.25/t,i=r*n*n+.9375):(n-=2.625/t,i=r*n*n+.984375),i},n.mina=i,i}(typeof t=="undefined"?function(){}:t),r=function(){function r(n,t){if(n){if(n.tagName)return e(n);if(u(n,"array")&&r.set)return r.set.apply(r,n);if(n instanceof p)return n;if(t==null)return n=o.doc.querySelector(n),e(n)}return n=n==null?"100%":n,t=t==null?"100%":t,new v(n,t)}function f(n,t){var i,r;if(t){if(n=="#text"&&(n=o.doc.createTextNode(t.text||"")),typeof n=="string"&&(n=f(n)),typeof t=="string")return t.substring(0,6)=="xlink:"?n.getAttributeNS(lt,t.substring(6)):t.substring(0,4)=="xml:"?n.getAttributeNS(ut,t.substring(4)):n.getAttribute(t);for(i in t)t[h](i)&&(r=c(t[i]),r?i.substring(0,6)=="xlink:"?n.setAttributeNS(lt,i.substring(6),r):i.substring(0,4)=="xml:"?n.setAttributeNS(ut,i.substring(4),r):n.setAttribute(i,r):n.removeAttribute(i))}else n=o.doc.createElementNS(ut,n);return n}function u(n,t){return(t=c.prototype.toLowerCase.call(t),t=="finite")?isFinite(n):t=="array"&&(n instanceof Array||Array.isArray&&Array.isArray(n))?!0:t=="null"&&n===null||t==typeof n&&n!==null||t=="object"&&n===Object(n)||ei.call(n).slice(8,-1).toLowerCase()==t}function dt(n){var i,t;if(typeof n=="function"||Object(n)!==n)return n;i=new n.constructor;for(t in n)n[h](t)&&(i[t]=dt(n[t]));return i}function yi(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return n.push(n.splice(i,1)[0])}function tt(n,t,i){function r(){var o=Array.prototype.slice.call(arguments,0),u=o.join("␀"),f=r.cache=r.cache||{},e=r.count=r.count||[];return f[h](u)?(yi(e,u),i?i(f[u]):f[u]):(e.length>=1e3&&delete f[e.shift()],e.push(u),f[u]=n.apply(t,o),i?i(f[u]):f[u])}return r}function at(n,t,i,r,u,f){if(u==null){var e=n-i,o=t-r;return!e&&!o?0:(180+s.atan2(-o,-e)*180/st+360)%360}return at(n,t,u,f)-at(i,r,u,f)}function vt(n){return n%360*st/180}function pi(n){return n*180/st%360}function pt(n){var t=[];return n=n.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(n,i,r){return r=r.split(/\s*,\s*|\s+/),i=="rotate"&&r.length==1&&r.push(0,0),i=="scale"&&(r.length>2?r=r.slice(0,2):r.length==2&&r.push(0,0),r.length==1&&r.push(r[0],0,0)),i=="skewX"?t.push(["m",1,0,s.tan(vt(r[0])),1,0,0]):i=="skewY"?t.push(["m",1,s.tan(vt(r[0])),0,1,0,0]):t.push([i.charAt(0)].concat(r)),n}),t}function ii(n,t){var y=ti(n),u=new r.Matrix,v,p;if(y)for(v=0,p=y.length;v<p;v++){var i=y[v],e=i.length,l=c(i[0]).toLowerCase(),a=i[0]!=l,o=a?u.invert():0,w,b,s,h,f;l=="t"&&e==2?u.translate(i[1],0):l=="t"&&e==3?a?(w=o.x(0,0),b=o.y(0,0),s=o.x(i[1],i[2]),h=o.y(i[1],i[2]),u.translate(s-w,h-b)):u.translate(i[1],i[2]):l=="r"?e==2?(f=f||t,u.rotate(i[1],f.x+f.width/2,f.y+f.height/2)):e==4&&(a?(s=o.x(i[2],i[3]),h=o.y(i[2],i[3]),u.rotate(i[1],s,h)):u.rotate(i[1],i[2],i[3])):l=="s"?e==2||e==3?(f=f||t,u.scale(i[1],i[e-1],f.x+f.width/2,f.y+f.height/2)):e==4?a?(s=o.x(i[2],i[3]),h=o.y(i[2],i[3]),u.scale(i[1],i[1],s,h)):u.scale(i[1],i[1],i[2],i[3]):e==5&&(a?(s=o.x(i[3],i[4]),h=o.y(i[3],i[4]),u.scale(i[1],i[2],s,h)):u.scale(i[1],i[2],i[3],i[4])):l=="m"&&e==7&&u.add(i[1],i[2],i[3],i[4],i[5],i[6])}return u}function wt(n,t){var f,i;if(t==null){if(f=!0,t=n.type=="linearGradient"||n.type=="radialGradient"?n.node.getAttribute("gradientTransform"):n.type=="pattern"?n.node.getAttribute("patternTransform"):n.node.getAttribute("transform"),!t)return new r.Matrix;t=pt(t)}else t=r._.rgTransform.test(t)?c(t).replace(/\.{3}|\u2026/g,n._.transform||nt):pt(t),u(t,"array")&&(t=r.path?r.path.toString.call(t):c(t)),n._.transform=t;if(i=ii(t,n.getBBox(1)),f)return i;n.matrix=i}function ft(n){var i=n.node.ownerSVGElement&&e(n.node.ownerSVGElement)||n.node.parentNode&&e(n.node.parentNode)||r.select("svg")||r(0,0),u=i.select("defs"),t=u==null?!1:u.node;return t||(t=w("defs",i.node).node),t}function ri(n){return n.node.ownerSVGElement&&e(n.node.ownerSVGElement)||r.select("svg")}function ui(n,t,i){function u(n){if(n==null)return nt;if(n==+n)return n;f(o,{width:n});try{return o.getBBox().width}catch(t){return 0}}function e(n){if(n==null)return nt;if(n==+n)return n;f(o,{height:n});try{return o.getBBox().height}catch(t){return 0}}function r(r,u){t==null?h[r]=u(n.attr(r)||0):r==t&&(h=u(i==null?n.attr(r)||0:i))}var s=ri(n).node,h={},o=s.querySelector(".svg---mgr");o||(o=f("rect"),f(o,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),s.appendChild(o));switch(n.type){case"rect":r("rx",u);r("ry",e);case"image":r("width",u);r("height",e);case"text":r("x",u);r("y",e);break;case"circle":r("cx",u);r("cy",e);r("r",u);break;case"ellipse":r("cx",u);r("cy",e);r("rx",u);r("ry",e);break;case"line":r("x1",u);r("x2",u);r("y1",e);r("y2",e);break;case"marker":r("refX",u);r("markerWidth",u);r("refY",e);r("markerHeight",e);break;case"radialGradient":r("fx",u);r("fy",e);break;case"tspan":r("dx",u);r("dy",e);break;default:r(t,u)}return s.removeChild(o),h}function di(n){var r;u(n,"array")||(n=Array.prototype.slice.call(arguments,0));for(var t=0,f=0,i=this.node;this[t];)delete this[t++];for(t=0;t<n.length;t++)n[t].type=="set"?n[t].forEach(function(n){i.appendChild(n.node)}):i.appendChild(n[t].node);for(r=i.childNodes,t=0;t<r.length;t++)this[f++]=e(r[t]);return this}function p(n){var i,r,t;if(n.snap in y)return y[n.snap];i=this.id=ct();try{r=n.ownerSVGElement}catch(u){}if(this.node=n,r&&(this.paper=new v(r)),this.type=n.tagName,this.anims={},this._={transform:[]},n.snap=i,y[i]=this,this.type=="g"&&(this.add=di),this.type in{g:1,mask:1,pattern:1})for(t in v.prototype)v.prototype[h](t)&&(this[t]=v.prototype[t])}function it(n){this.node=n}function w(n,t){var i=f(n);return t.appendChild(i),e(i)}function v(n,t){var i,r,u,s=v.prototype,c,e;if(n&&n.tagName=="svg"){if(n.snap in y)return y[n.snap];c=n.ownerDocument;i=new p(n);r=n.getElementsByTagName("desc")[0];u=n.getElementsByTagName("defs")[0];r||(r=f("desc"),r.appendChild(c.createTextNode("Created with Snap")),i.node.appendChild(r));u||(u=f("defs"),i.node.appendChild(u));i.defs=u;for(e in s)s[h](e)&&(i[e]=s[e]);i.paper=i.root=i}else i=w("svg",o.doc.body),f(i.node,{height:t,version:1.1,width:n,xmlns:ut});return i}function e(n){return n?n instanceof p||n instanceof it?n:n.tagName&&n.tagName.toLowerCase()=="svg"?new v(n):n.tagName&&n.tagName.toLowerCase()=="object"&&n.type=="image/svg+xml"?new v(n.contentDocument.getElementsByTagName("svg")[0]):new p(n):n}var o,ti,ki,bt,fi;r.version="0.3.0";r.toString=function(){return"Snap v"+this.version};r._={};o={win:n,doc:n.document};r._.glob=o;var h="hasOwnProperty",c=String,a=parseFloat,k=parseInt,s=Math,et=s.max,d=s.min,ot=s.abs,gi=s.pow,st=s.PI,nr=s.round,nt="",rt=" ",ei=Object.prototype.toString,oi=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,l="\t\n\x0b\f\r   ᠎             　\u2028\u2029",tr=r._.separator=new RegExp("[,"+l+"]+"),ir=new RegExp("["+l+"]","g"),ht=new RegExp("["+l+"]*,["+l+"]*"),si={hs:1,rg:1},hi=new RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),ci=new RegExp("([rstm])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),kt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig"),li=0,ai="S"+(+new Date).toString(36),ct=function(){return ai+(li++).toString(36)},lt="http://www.w3.org/1999/xlink",ut="http://www.w3.org/2000/svg",y={},vi=r.url=function(n){return"url('#"+n+"')"};r._.$=f;r._.id=ct;r.format=function(){var n=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(n,i,r){var u=r;return i.replace(t,function(n,t,i,r,f){t=t||r;u&&(t in u&&(u=u[t]),typeof u=="function"&&f&&(u=u()))}),u=(u==null||u==r?n:u)+""};return function(t,r){return c(t).replace(n,function(n,t){return i(n,t,r)})}}();r._.clone=dt;r._.cacher=tt;r.rad=vt;r.deg=pi;r.angle=at;r.is=u;r.snapTo=function(n,t,i){var f,r;if(i=u(i,"finite")?i:10,u(n,"array")){for(f=n.length;f--;)if(ot(n[f]-t)<=i)return n[f]}else{if(n=+n,r=t%n,r<i)return t-r;if(r>n-i)return t-r+n}return t};r.getRGB=tt(function(n){if(!n||!!((n=c(n)).indexOf("-")+1))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:b};if(n=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:b};if(si[h](n.toLowerCase().substring(0,2))||n.charAt()=="#"||(n=yt(n)),!n)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:b};var f,e,o,l,v,t,i=n.match(oi);return i?(i[2]&&(o=k(i[2].substring(5),16),e=k(i[2].substring(3,5),16),f=k(i[2].substring(1,3),16)),i[3]&&(o=k((v=i[3].charAt(3))+v,16),e=k((v=i[3].charAt(2))+v,16),f=k((v=i[3].charAt(1))+v,16)),i[4]&&(t=i[4].split(ht),f=a(t[0]),t[0].slice(-1)=="%"&&(f*=2.55),e=a(t[1]),t[1].slice(-1)=="%"&&(e*=2.55),o=a(t[2]),t[2].slice(-1)=="%"&&(o*=2.55),i[1].toLowerCase().slice(0,4)=="rgba"&&(l=a(t[3])),t[3]&&t[3].slice(-1)=="%"&&(l/=100)),i[5])?(t=i[5].split(ht),f=a(t[0]),t[0].slice(-1)=="%"&&(f/=100),e=a(t[1]),t[1].slice(-1)=="%"&&(e/=100),o=a(t[2]),t[2].slice(-1)=="%"&&(o/=100),(t[0].slice(-3)=="deg"||t[0].slice(-1)=="°")&&(f/=360),i[1].toLowerCase().slice(0,4)=="hsba"&&(l=a(t[3])),t[3]&&t[3].slice(-1)=="%"&&(l/=100),r.hsb2rgb(f,e,o,l)):i[6]?(t=i[6].split(ht),f=a(t[0]),t[0].slice(-1)=="%"&&(f/=100),e=a(t[1]),t[1].slice(-1)=="%"&&(e/=100),o=a(t[2]),t[2].slice(-1)=="%"&&(o/=100),(t[0].slice(-3)=="deg"||t[0].slice(-1)=="°")&&(f/=360),i[1].toLowerCase().slice(0,4)=="hsla"&&(l=a(t[3])),t[3]&&t[3].slice(-1)=="%"&&(l/=100),r.hsl2rgb(f,e,o,l)):(f=d(s.round(f),255),e=d(s.round(e),255),o=d(s.round(o),255),l=d(et(l,0),1),i={r:f,g:e,b:o,toString:b},i.hex="#"+(16777216|o|e<<8|f<<16).toString(16).slice(1),i.opacity=u(l,"finite")?l:1,i):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:b}},r);r.hsb=tt(function(n,t,i){return r.hsb2rgb(n,t,i).hex});r.hsl=tt(function(n,t,i){return r.hsl2rgb(n,t,i).hex});r.rgb=tt(function(n,t,i,r){if(u(r,"finite")){var f=s.round;return"rgba("+[f(n),f(t),f(i),+r.toFixed(2)]+")"}return"#"+(16777216|i|t<<8|n<<16).toString(16).slice(1)});var yt=function(n){var t=o.doc.getElementsByTagName("head")[0]||o.doc.getElementsByTagName("svg")[0],i="rgb(255, 0, 0)";return yt=tt(function(n){if(n.toLowerCase()=="red")return i;t.style.color=i;t.style.color=n;var r=o.doc.defaultView.getComputedStyle(t,nt).getPropertyValue("color");return r==i?null:r}),yt(n)},wi=function(){return"hsb("+[this.h,this.s,this.b]+")"},bi=function(){return"hsl("+[this.h,this.s,this.l]+")"},b=function(){return this.opacity==1||this.opacity==null?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},gt=function(n,t,i){if(t==null&&u(n,"object")&&"r"in n&&"g"in n&&"b"in n&&(i=n.b,t=n.g,n=n.r),t==null&&u(n,string)){var f=r.getRGB(n);n=f.r;t=f.g;i=f.b}return(n>1||t>1||i>1)&&(n/=255,t/=255,i/=255),[n,t,i]},ni=function(n,t,i,f){n=s.round(n*255);t=s.round(t*255);i=s.round(i*255);var e={r:n,g:t,b:i,opacity:u(f,"finite")?f:1,hex:r.rgb(n,t,i),toString:b};return u(f,"finite")&&(e.opacity=f),e};r.color=function(n){var t;return u(n,"object")&&"h"in n&&"s"in n&&"b"in n?(t=r.hsb2rgb(n),n.r=t.r,n.g=t.g,n.b=t.b,n.opacity=1,n.hex=t.hex):u(n,"object")&&"h"in n&&"s"in n&&"l"in n?(t=r.hsl2rgb(n),n.r=t.r,n.g=t.g,n.b=t.b,n.opacity=1,n.hex=t.hex):(u(n,"string")&&(n=r.getRGB(n)),u(n,"object")&&"r"in n&&"g"in n&&"b"in n&&!("error"in n)?(t=r.rgb2hsl(n),n.h=t.h,n.s=t.s,n.l=t.l,t=r.rgb2hsb(n),n.v=t.b):(n={hex:"none"},n.r=n.g=n.b=n.h=n.s=n.v=n.l=-1,n.error=1)),n.toString=b,n};r.hsb2rgb=function(n,t,i,r){u(n,"object")&&"h"in n&&"s"in n&&"b"in n&&(i=n.b,t=n.s,n=n.h,r=n.o);n*=360;var o,s,h,e,f;return n=n%360/60,f=i*t,e=f*(1-ot(n%2-1)),o=s=h=i-f,n=~~n,o+=[f,e,0,0,e,f][n],s+=[e,f,f,e,0,0][n],h+=[0,0,e,f,f,e][n],ni(o,s,h,r)};r.hsl2rgb=function(n,t,i,r){u(n,"object")&&"h"in n&&"s"in n&&"l"in n&&(i=n.l,t=n.s,n=n.h);(n>1||t>1||i>1)&&(n/=360,t/=100,i/=100);n*=360;var o,s,h,e,f;return n=n%360/60,f=2*t*(i<.5?i:1-i),e=f*(1-ot(n%2-1)),o=s=h=i-f/2,n=~~n,o+=[f,e,0,0,e,f][n],s+=[e,f,f,e,0,0][n],h+=[0,0,e,f,f,e][n],ni(o,s,h,r)};r.rgb2hsb=function(n,t,i){i=gt(n,t,i);n=i[0];t=i[1];i=i[2];var f,e,u,r;return u=et(n,t,i),r=u-d(n,t,i),f=r==0?null:u==n?(t-i)/r:u==t?(i-n)/r+2:(n-t)/r+4,f=(f+360)%6/6,e=r==0?0:r/u,{h:f,s:e,b:u,toString:wi}};r.rgb2hsl=function(n,t,i){i=gt(n,t,i);n=i[0];t=i[1];i=i[2];var e,s,u,f,o,r;return f=et(n,t,i),o=d(n,t,i),r=f-o,e=r==0?null:f==n?(t-i)/r:f==t?(i-n)/r+2:(n-t)/r+4,e=(e+360)%6/6,u=(f+o)/2,s=r==0?0:u<.5?r/(2*u):r/(2-2*u),{h:e,s:s,l:u,toString:bi}};r.parsePathString=function(n){var i,f,t;return n?(i=r.path(n),i.arr)?r.path.clone(i.arr):(f={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[],u(n,"array")&&u(n[0],"array")&&(t=r.path.clone(n)),t.length||c(n).replace(hi,function(n,i,r){var u=[],e=i.toLowerCase();if(r.replace(kt,function(n,t){t&&u.push(+t)}),e=="m"&&u.length>2&&(t.push([i].concat(u.splice(0,2))),e="l",i=i=="m"?"l":"L"),e=="o"&&u.length==1&&t.push([i,u[0]]),e=="r")t.push([i].concat(u));else while(u.length>=f[e])if(t.push([i].concat(u.splice(0,f[e]))),!f[e])break}),t.toString=r.path.toString,i.arr=r.path.clone(t),t):null};ti=r.parseTransformString=function(n){if(!n)return null;var t=[];return u(n,"array")&&u(n[0],"array")&&(t=r.path.clone(n)),t.length||c(n).replace(ci,function(n,i,r){var u=[],f=i.toLowerCase();r.replace(kt,function(n,t){t&&u.push(+t)});t.push([i].concat(u))}),t.toString=r.path.toString,t};r._.svgTransform2string=pt;r._.rgTransform=new RegExp("^[a-z]["+l+"]*-?\\.?\\d","i");r._.transform2matrix=ii;r._unit2px=ui;ki=o.doc.contains||o.doc.compareDocumentPosition?function(n,t){var r=n.nodeType==9?n.documentElement:n,i=t&&t.parentNode;return n==i||!!(i&&i.nodeType==1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t)if(t=t.parentNode,t==n)return!0;return!1};r._.getSomeDefs=ft;r._.getSomeSVG=ri;r.select=function(n){return e(o.doc.querySelector(n))};r.selectAll=function(n){for(var i=o.doc.querySelectorAll(n),u=(r.set||Array)(),t=0;t<i.length;t++)u.push(e(i[t]));return u};setInterval(function(){var t,i,n;for(t in y)y[h](t)&&(i=y[t],n=i.node,(i.type!="svg"&&!n.ownerSVGElement||i.type=="svg"&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete y[t])},1e4),function(n){function y(n){function u(n,t){var i=f(n.node,t);if(i=i&&i.match(v),i=i&&i[2],i&&i.charAt()=="#")i=i.substring(1);else return;i&&(r[i]=(r[i]||[]).concat(function(i){var r={};r[t]=vi(i);f(n.node,r)}))}function y(n){var t=f(n.node,"xlink:href");if(t&&t.charAt()=="#")t=t.substring(1);else return;t&&(r[t]=(r[t]||[]).concat(function(t){n.attr("xlink:href","#"+t)}))}for(var c,o,s,a,l=n.selectAll("*"),t,v=/^\s*url\(("|'|)(.*)\1\)\s*$/,e=[],r={},i=0,h=l.length;i<h;i++)t=l[i],u(t,"fill"),u(t,"stroke"),u(t,"filter"),u(t,"mask"),u(t,"clip-path"),y(t),c=f(t.node,"id"),c&&(f(t.node,{id:t.id}),e.push({old:c,id:t.id}));for(i=0,h=e.length;i<h;i++)if(o=r[e[i].old],o)for(s=0,a=o.length;s<a;s++)o[s](e[i].id)}function p(n,t,i){return function(r){var u=r.slice(n,t);return u.length==1&&(u=u[0]),i?i(u):u}}function v(n){return function(){var i=n?"<"+this.type:"",f=this.node.attributes,r=this.node.childNodes,t,u;if(n)for(t=0,u=f.length;t<u;t++)i+=" "+f[t].name+'="'+f[t].value.replace(/"/g,'\\"')+'"';if(r.length){for(n&&(i+=">"),t=0,u=r.length;t<u;t++)r[t].nodeType==3?i+=r[t].nodeValue:r[t].nodeType==1&&(i+=e(r[t]).toString());n&&(i+="<\/"+this.type+">")}else n&&(i+="/>");return i}}var a,l,s;n.attr=function(n,i){var r=this,o=r.node,e,f;if(!n)return r;if(u(n,"string"))if(arguments.length>1)e={},e[n]=i,n=e;else return t("snap.util.getattr."+n,r).firstDefined();for(f in n)n[h](f)&&t("snap.util.attr."+f,r,n[f]);return r};n.getBBox=function(n){var t,u,e,i,f;if(!r.Matrix||!r.path)return this.node.getBBox();if(t=this,u=new r.Matrix,t.removed)return r._.box();while(t.type=="use")n||(u=u.add(t.transform().localMatrix.translate(t.attr("x")||0,t.attr("y")||0))),t.original?t=t.original:(e=t.attr("xlink:href"),t=t.original=t.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1)));i=t._;f=r.path.get[t.type]||r.path.get.deflt;try{return n?(i.bboxwt=f?r.path.getBBox(t.realPath=f(t)):r._.box(t.node.getBBox()),r._.box(i.bboxwt)):(t.realPath=f(t),t.matrix=t.transform().localMatrix,i.bbox=r.path.getBBox(r.path.map(t.realPath,u.add(t.matrix))),r._.box(i.bbox))}catch(o){return r._.box()}};a=function(){return this.string};n.transform=function(n){var l=this._;if(n==null){for(var i=this,u=new r.Matrix(this.node.getCTM()),t=wt(this),e=[t],o=new r.Matrix,s,h=t.toTransformString(),v=c(t)==c(this.matrix)?c(l.transform):h;i.type!="svg"&&(i=i.parent());)e.push(wt(i));for(s=e.length;s--;)o.add(e[s]);return{string:v,globalMatrix:u,totalMatrix:o,localMatrix:t,diffMatrix:u.clone().add(t.invert()),global:u.toTransformString(),total:o.toTransformString(),local:h,toString:a}}return n instanceof r.Matrix?this.matrix=n:wt(this,n),this.node&&(this.type=="linearGradient"||this.type=="radialGradient"?f(this.node,{gradientTransform:this.matrix}):this.type=="pattern"?f(this.node,{patternTransform:this.matrix}):f(this.node,{transform:this.matrix})),this};n.parent=function(){return e(this.node.parentNode)};n.append=n.add=function(n){if(n){if(n.type=="set"){var t=this;return n.forEach(function(n){t.add(n)}),this}n=e(n);this.node.appendChild(n.node);n.paper=this.paper}return this};n.appendTo=function(n){return n&&(n=e(n),n.append(this)),this};n.prepend=function(n){var r,t,i;if(n){if(n.type=="set")return r=this,n.forEach(function(n){t?t.after(n):r.prepend(n);t=n}),this;n=e(n);i=n.parent();this.node.insertBefore(n.node,this.node.firstChild);this.add&&this.add();n.paper=this.paper;this.parent()&&this.parent().add();i&&i.add()}return this};n.prependTo=function(n){return n=e(n),n.prepend(this),this};n.before=function(n){var t,i;return n.type=="set"?(t=this,n.forEach(function(n){var i=n.parent();t.node.parentNode.insertBefore(n.node,t.node);i&&i.add()}),this.parent().add(),this):(n=e(n),i=n.parent(),this.node.parentNode.insertBefore(n.node,this.node),this.parent()&&this.parent().add(),i&&i.add(),n.paper=this.paper,this)};n.after=function(n){n=e(n);var t=n.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(n.node,this.node.nextSibling):this.node.parentNode.appendChild(n.node),this.parent()&&this.parent().add(),t&&t.add(),n.paper=this.paper,this};n.insertBefore=function(n){n=e(n);var t=this.parent();return n.node.parentNode.insertBefore(this.node,n.node),this.paper=n.paper,t&&t.add(),n.parent()&&n.parent().add(),this};n.insertAfter=function(n){n=e(n);var t=this.parent();return n.node.parentNode.insertBefore(this.node,n.node.nextSibling),this.paper=n.paper,t&&t.add(),n.parent()&&n.parent().add(),this};n.remove=function(){var n=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,n&&n.add(),this};n.select=function(n){return e(this.node.querySelector(n))};n.selectAll=function(n){for(var i=this.node.querySelectorAll(n),u=(r.set||Array)(),t=0;t<i.length;t++)u.push(e(i[t]));return u};n.asPX=function(n,t){return t==null&&(t=this.attr(n)),+ui(this,n,t)};n.use=function(){var n,t=this.node.id;return t||(t=this.id,f(this.node,{id:t})),n=this.type=="linearGradient"||this.type=="radialGradient"||this.type=="pattern"?w(this.type,this.node.parentNode):w("use",this.node.parentNode),f(n.node,{"xlink:href":"#"+t}),n.original=this,n};var o=/\S+/g;n.addClass=function(n){var u=(n||"").match(o)||[],f=this.node,e=f.className.baseVal,t=e.match(o)||[],s,h,i,r;if(u.length){for(s=0;i=u[s++];)h=t.indexOf(i),~h||t.push(i);r=t.join(" ");e!=r&&(f.className.baseVal=r)}return this};n.removeClass=function(n){var h=(n||"").match(o)||[],u=this.node,f=u.className.baseVal,t=f.match(o)||[],e,i,s,r;if(t.length){for(e=0;s=h[e++];)i=t.indexOf(s),~i&&t.splice(i,1);r=t.join(" ");f!=r&&(u.className.baseVal=r)}return this};n.hasClass=function(n){var t=this.node,i=t.className.baseVal,r=i.match(o)||[];return!!~r.indexOf(n)};n.toggleClass=function(n,t){if(t!=null)return t?this.addClass(n):this.removeClass(n);for(var c=(n||"").match(o)||[],e=this.node,s=e.className.baseVal,i=s.match(o)||[],r,u,f,h=0;u=c[h++];)r=i.indexOf(u),~r?i.splice(r,1):i.push(u);return f=i.join(" "),s!=f&&(e.className.baseVal=f),this};n.clone=function(){var n=e(this.node.cloneNode(!0));return f(n.node,"id")&&f(n.node,{id:n.id}),y(n),n.insertAfter(this),n};n.toDefs=function(){var n=ft(this);return n.appendChild(this.node),this};n.pattern=n.toPattern=function(n,t,i,r){var e=w("pattern",ft(this));return n==null&&(n=this.getBBox()),u(n,"object")&&"x"in n&&(t=n.y,i=n.width,r=n.height,n=n.x),f(e.node,{x:n,y:t,width:i,height:r,patternUnits:"userSpaceOnUse",id:e.id,viewBox:[n,t,i,r].join(" ")}),e.node.appendChild(this.node),e};n.marker=function(n,t,i,r,e,o){var s=w("marker",ft(this));return n==null&&(n=this.getBBox()),u(n,"object")&&"x"in n&&(t=n.y,i=n.width,r=n.height,e=n.refX||n.cx,o=n.refY||n.cy,n=n.x),f(s.node,{viewBox:[n,t,i,r].join(rt),markerWidth:i,markerHeight:r,orient:"auto",refX:e||0,refY:o||0,id:s.id}),s.node.appendChild(this.node),s};l=function(n,t,r,u){typeof r!="function"||r.length||(u=r,r=i.linear);this.attr=n;this.dur=t;r&&(this.easing=r);u&&(this.callback=u)};r._.Animation=l;r.animation=function(n,t,i,r){return new l(n,t,i,r)};n.inAnim=function(){var n=this,t=[];for(var i in n.anims)n.anims[h](i)&&function(n){t.push({anim:new l(n._attrs,n.dur,n.easing,n._callback),mina:n,curStatus:n.status(),status:function(t){return n.status(t)},stop:function(){n.stop()}})}(n.anims[i]);return t};r.animate=function(n,r,u,f,e,o){typeof e!="function"||e.length||(o=e,e=i.linear);var s=i.time(),h=i(n,r,s,s+f,i.time,u,e);return o&&t.once("mina.finish."+h.id,o),h};n.stop=function(){for(var t=this.inAnim(),n=0,i=t.length;n<i;n++)t[n].stop();return this};n.animate=function(n,r,f,e){var a,tt,g,s;typeof f!="function"||f.length||(e=f,f=i.linear);n instanceof l&&(e=n.callback,f=n.easing,r=f.dur,n=n.attr);var v=[],k=[],w={},y,d,nt,b,o=this;for(a in n)n[h](a)&&(o.equal?(b=o.equal(a,c(n[a])),y=b.from,d=b.to,nt=b.f):(y=+o.attr(a),d=+n[a]),tt=u(y,"array")?y.length:1,w[a]=p(v.length,v.length+tt,nt),v=v.concat(y),k=k.concat(d));g=i.time();s=i(v,k,g,g+r,i.time,function(n){var i={};for(var t in w)w[h](t)&&(i[t]=w[t](n));o.attr(i)},f);o.anims[s.id]=s;s._attrs=n;s._callback=e;t("snap.animcreated."+o.id,s);t.once("mina.finish."+s.id,function(){delete o.anims[s.id];e&&e.call(o)});t.once("mina.stop."+s.id,function(){delete o.anims[s.id]});return o};s={};n.data=function(n,i){var u=s[this.id]=s[this.id]||{},f;if(arguments.length==0)return t("snap.data.get."+this.id,this,u,null),u;if(arguments.length==1){if(r.is(n,"object")){for(f in n)n[h](f)&&this.data(f,n[f]);return this}return t("snap.data.get."+this.id,this,u[n],n),u[n]}return u[n]=i,t("snap.data.set."+this.id,this,i,n),this};n.removeData=function(n){return n==null?s[this.id]={}:s[this.id]&&delete s[this.id][n],this};n.outerSVG=n.toString=v(1);n.innerSVG=v()}(p.prototype);r.parse=function(n){var t=o.doc.createDocumentFragment(),r=!0,i=o.doc.createElement("div");if(n=c(n),n.match(/^\s*<\s*svg(?:\s|>)/)||(n="<svg>"+n+"<\/svg>",r=!1),i.innerHTML=n,n=i.getElementsByTagName("svg")[0],n)if(r)t=n;else while(n.firstChild)t.appendChild(n.firstChild);return i.innerHTML=nt,new it(t)};it.prototype.select=p.prototype.select;it.prototype.selectAll=p.prototype.selectAll;r.fragment=function(){for(var n,u=Array.prototype.slice.call(arguments,0),t=o.doc.createDocumentFragment(),i=0,f=u.length;i<f;i++)n=u[i],n.node&&n.node.nodeType&&t.appendChild(n.node),n.nodeType&&t.appendChild(n),typeof n=="string"&&t.appendChild(r.parse(n).node);return new it(t)};r._.make=w;r._.wrap=e;v.prototype.el=function(n,t){var i=w(n,this.node);return t&&i.attr(t),i};t.on("snap.util.getattr",function(){var n=t.nt(),i;return n=n.substring(n.lastIndexOf(".")+1),i=n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()}),bt[h](i)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(i):f(this.node,n)});bt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};t.on("snap.util.attr",function(n){var i=t.nt(),r={},u,e;i=i.substring(i.lastIndexOf(".")+1);r[i]=n;u=i.replace(/-(\w)/gi,function(n,t){return t.toUpperCase()});e=i.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()});bt[h](e)?this.node.style[u]=n==null?nt:n:f(this.node,r)});return function(){}(v.prototype),r.ajax=function(n,i,r,f){var e=new XMLHttpRequest,o=ct(),h,s;if(e){if(u(i,"function"))f=r,r=i,i=null;else if(u(i,"object")){h=[];for(s in i)i.hasOwnProperty(s)&&h.push(encodeURIComponent(s)+"="+encodeURIComponent(i[s]));i=h.join("&")}if(e.open(i?"POST":"GET",n,!0),i&&(e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r){t.once("snap.ajax."+o+".0",r);t.once("snap.ajax."+o+".200",r);t.once("snap.ajax."+o+".304",r)}return(e.onreadystatechange=function(){e.readyState==4&&t("snap.ajax."+o+"."+e.status,f,e)},e.readyState==4)?e:(e.send(i),e)}},r.load=function(n,t,i){r.ajax(n,function(n){var u=r.parse(n.responseText);i?t.call(i,u):t(u)})},fi=function(n){var r=n.getBoundingClientRect(),u=n.ownerDocument,t=u.body,i=u.documentElement,f=i.clientTop||t.clientTop||0,e=i.clientLeft||t.clientLeft||0,o=r.top+(g.win.pageYOffset||i.scrollTop||t.scrollTop)-f,s=r.left+(g.win.pageXOffset||i.scrollLeft||t.scrollLeft)-e;return{y:o,x:s}},r.getElementByPoint=function(n,t){var s=this,h=s.canvas,i=o.doc.elementFromPoint(n,t),f,r,u;return(o.win.opera&&i.tagName=="svg"&&(f=fi(i),r=i.createSVGRect(),r.x=n-f.x,r.y=t-f.y,r.width=r.height=1,u=i.getIntersectionList(r,null),u.length&&(i=u[u.length-1])),!i)?null:e(i)},r.plugin=function(n){n(r,p,v,o,it)},o.win.Snap=r,r}();return r.plugin(function(n){function i(n,t,i,r,f,e){if(t==null&&u.call(n)=="[object SVGMatrix]"){this.a=n.a;this.b=n.b;this.c=n.c;this.d=n.d;this.e=n.e;this.f=n.f;return}n!=null?(this.a=+n,this.b=+t,this.c=+i,this.d=+r,this.e=+f,this.f=+e):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}var u=Object.prototype.toString,f=String,t=Math,r="";(function(u){function e(n){return n[0]*n[0]+n[1]*n[1]}function o(n){var i=t.sqrt(e(n));n[0]&&(n[0]/=i);n[1]&&(n[1]/=i)}u.add=function(n,t,r,u,f,e){var o=[[],[],[]],v=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],a=[[n,r,f],[t,u,e],[0,0,1]],s,h,c,l;for(n&&n instanceof i&&(a=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),s=0;s<3;s++)for(h=0;h<3;h++){for(l=0,c=0;c<3;c++)l+=v[s][c]*a[c][h];o[s][h]=l}return this.a=o[0][0],this.b=o[1][0],this.c=o[0][1],this.d=o[1][1],this.e=o[0][2],this.f=o[1][2],this};u.invert=function(){var n=this,t=n.a*n.d-n.b*n.c;return new i(n.d/t,-n.b/t,-n.c/t,n.a/t,(n.c*n.f-n.d*n.e)/t,(n.b*n.e-n.a*n.f)/t)};u.clone=function(){return new i(this.a,this.b,this.c,this.d,this.e,this.f)};u.translate=function(n,t){return this.add(1,0,0,1,n,t)};u.scale=function(n,t,i,r){return t==null&&(t=n),(i||r)&&this.add(1,0,0,1,i,r),this.add(n,0,0,t,0,0),(i||r)&&this.add(1,0,0,1,-i,-r),this};u.rotate=function(i,r,u){i=n.rad(i);r=r||0;u=u||0;var f=+t.cos(i).toFixed(9),e=+t.sin(i).toFixed(9);return this.add(f,e,-e,f,r,u),this.add(1,0,0,1,-r,-u)};u.x=function(n,t){return n*this.a+t*this.c+this.e};u.y=function(n,t){return n*this.b+t*this.d+this.f};u.get=function(n){return+this[f.fromCharCode(97+n)].toFixed(4)};u.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};u.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};u.determinant=function(){return this.a*this.d-this.b*this.c};u.split=function(){var i={},r,u,f;return i.dx=this.e,i.dy=this.f,r=[[this.a,this.c],[this.b,this.d]],i.scalex=t.sqrt(e(r[0])),o(r[0]),i.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*i.shear,r[1][1]-r[0][1]*i.shear],i.scaley=t.sqrt(e(r[1])),o(r[1]),i.shear/=i.scaley,this.determinant()<0&&(i.scalex=-i.scalex),u=-r[0][1],f=r[1][1],f<0?(i.rotate=n.deg(t.acos(f)),u<0&&(i.rotate=360-i.rotate)):i.rotate=n.deg(t.asin(u)),i.isSimple=!+i.shear.toFixed(9)&&(i.scalex.toFixed(9)==i.scaley.toFixed(9)||!i.rotate),i.isSuperSimple=!+i.shear.toFixed(9)&&i.scalex.toFixed(9)==i.scaley.toFixed(9)&&!i.rotate,i.noRotation=!+i.shear.toFixed(9)&&!i.rotate,i};u.toTransformString=function(n){var t=n||this.split();return+t.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:r)+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:r)+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:r))}})(i.prototype);n.Matrix=i;n.matrix=function(n,t,r,u,f,e){return new i(n,t,r,u,f,e)}}),r.plugin(function(n,i,r,u,f){function y(r){return function(u){var o,a,v;t.stop();u instanceof f&&u.node.childNodes.length==1&&(u.node.firstChild.tagName=="radialGradient"||u.node.firstChild.tagName=="linearGradient"||u.node.firstChild.tagName=="pattern")&&(u=u.node.firstChild,s(this).appendChild(u),u=h(u));u instanceof i?u.type=="radialGradient"||u.type=="linearGradient"||u.type=="pattern"?(u.node.id||e(u.node,{id:u.id}),o=c(u.node.id)):o=u.attr(r):(o=n.color(u),o.error?(a=n(s(this).ownerSVGElement).gradient(u),a?(a.node.id||e(a.node,{id:a.id}),o=c(a.node.id)):o=u):o=l(o));v={};v[r]=o;e(this.node,v);this.node.style[r]=g}}function w(n){t.stop();n==+n&&(n+="px");this.node.style.fontSize=n}function b(n){for(var t,i=[],u=n.childNodes,r=0,f=u.length;r<f;r++)t=u[r],t.nodeType==3&&i.push(t.nodeValue),t.tagName=="tspan"&&(t.childNodes.length==1&&t.firstChild.nodeType==3?i.push(t.firstChild.nodeValue):i.push(b(t)));return i}function k(){return t.stop(),this.node.style.fontSize}var a=n._.make,h=n._.wrap,o=n.is,s=n._.getSomeDefs,d=/^url\(#?([^)]+)\)$/,e=n._.$,c=n.url,l=String,v=n._.separator,g="",p;t.on("snap.util.attr.mask",function(n){if(n instanceof i||n instanceof f){if(t.stop(),n instanceof f&&n.node.childNodes.length==1&&(n=n.node.firstChild,s(this).appendChild(n),n=h(n)),n.type=="mask")var r=n;else r=a("mask",s(this)),r.node.appendChild(n.node);r.node.id||e(r.node,{id:r.id});e(this.node,{mask:c(r.id)})}});(function(n){t.on("snap.util.attr.clip",n);t.on("snap.util.attr.clip-path",n);t.on("snap.util.attr.clipPath",n)})(function(n){if(n instanceof i||n instanceof f){if(t.stop(),n.type=="clipPath")var r=n;else r=a("clipPath",s(this)),r.node.appendChild(n.node),r.node.id||e(r.node,{id:r.id});e(this.node,{"clip-path":c(r.id)})}});t.on("snap.util.attr.fill",y("fill"));t.on("snap.util.attr.stroke",y("stroke"));p=/^([lr])(?:\(([^)]*)\))?(.*)$/i;t.on("snap.util.grad.parse",function(n){var i;if(n=l(n),i=n.match(p),!i)return null;var u=i[1],t=i[2],r=i[3];return t=t.split(/\s*,\s*/).map(function(n){return+n==n?+n:n}),t.length==1&&t[0]==0&&(t=[]),r=r.split("-"),r=r.map(function(n){n=n.split(":");var t={color:n[0]};return n[1]&&(t.offset=parseFloat(n[1])),t}),{type:u,params:t,stops:r}});t.on("snap.util.attr.d",function(i){t.stop();o(i,"array")&&o(i[0],"array")&&(i=n.path.toString.call(i));i=l(i);i.match(/[ruo]/i)&&(i=n.path.toAbsolute(i));e(this.node,{d:i})})(-1);t.on("snap.util.attr.#text",function(n){t.stop();n=l(n);for(var i=u.doc.createTextNode(n);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(i)})(-1);t.on("snap.util.attr.path",function(n){t.stop();this.attr({d:n})})(-1);t.on("snap.util.attr.class",function(n){t.stop();this.node.className.baseVal=n})(-1);t.on("snap.util.attr.viewBox",function(n){var i;i=o(n,"object")&&"x"in n?[n.x,n.y,n.width,n.height].join(" "):o(n,"array")?n.join(" "):n;e(this.node,{viewBox:i});t.stop()})(-1);t.on("snap.util.attr.transform",function(n){this.transform(n);t.stop()})(-1);t.on("snap.util.attr.r",function(n){this.type=="rect"&&(t.stop(),e(this.node,{rx:n,ry:n}))})(-1);t.on("snap.util.attr.textpath",function(n){var u,r,f,l,c;if(t.stop(),this.type=="text"){if(!n&&this.textPath){for(r=this.textPath;r.node.firstChild;)this.node.appendChild(r.node.firstChild);r.remove();delete this.textPath;return}if(o(n,"string")?(l=s(this),c=h(l.parentNode).path(n),l.appendChild(c.node),u=c.id,c.attr({id:u})):(n=h(n),n instanceof i&&(u=n.attr("id"),u||(u=n.id,n.attr({id:u})))),u)if(r=this.textPath,f=this.node,r)r.attr({"xlink:href":"#"+u});else{for(r=e("textPath",{"xlink:href":"#"+u});f.firstChild;)r.appendChild(f.firstChild);f.appendChild(r);this.textPath=h(r)}}})(-1);t.on("snap.util.attr.text",function(n){var r;if(this.type=="text"){for(var i=this.node,f=function(n){var t=e("tspan"),i;if(o(n,"array"))for(i=0;i<n.length;i++)t.appendChild(f(n[i]));else t.appendChild(u.doc.createTextNode(n));return t.normalize&&t.normalize(),t};i.firstChild;)i.removeChild(i.firstChild);for(r=f(n);r.firstChild;)i.appendChild(r.firstChild)}t.stop()})(-1);t.on("snap.util.attr.fontSize",w)(-1);t.on("snap.util.attr.font-size",w)(-1);t.on("snap.util.getattr.transform",function(){return t.stop(),this.transform()})(-1);t.on("snap.util.getattr.textpath",function(){return t.stop(),this.textPath})(-1),function(){function i(i){return function(){t.stop();var r=u.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+i);return r=="none"?r:n(u.doc.getElementById(r.match(d)[1]))}}function r(n){return function(i){var r,u;if(t.stop(),r="marker"+n.charAt(0).toUpperCase()+n.substring(1),i==""||!i){this.node.style[r]="none";return}if(i.type=="marker"){u=i.node.id;u||e(i.node,{id:i.id});this.node.style[r]=c(u);return}}}t.on("snap.util.getattr.marker-end",i("end"))(-1);t.on("snap.util.getattr.markerEnd",i("end"))(-1);t.on("snap.util.getattr.marker-start",i("start"))(-1);t.on("snap.util.getattr.markerStart",i("start"))(-1);t.on("snap.util.getattr.marker-mid",i("mid"))(-1);t.on("snap.util.getattr.markerMid",i("mid"))(-1);t.on("snap.util.attr.marker-end",r("end"))(-1);t.on("snap.util.attr.markerEnd",r("end"))(-1);t.on("snap.util.attr.marker-start",r("start"))(-1);t.on("snap.util.attr.markerStart",r("start"))(-1);t.on("snap.util.attr.marker-mid",r("mid"))(-1);t.on("snap.util.attr.markerMid",r("mid"))(-1)}();t.on("snap.util.getattr.r",function(){if(this.type=="rect"&&e(this.node,"rx")==e(this.node,"ry"))return t.stop(),e(this.node,"rx")})(-1);t.on("snap.util.getattr.text",function(){if(this.type=="text"||this.type=="tspan"){t.stop();var n=b(this.node);return n.length==1?n[0]:n}})(-1);t.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1);t.on("snap.util.getattr.viewBox",function(){t.stop();var i=e(this.node,"viewBox");if(i)return i=i.split(v),n._.box(+i[0],+i[1],+i[2],+i[3])})(-1);t.on("snap.util.getattr.points",function(){var n=e(this.node,"points");if(t.stop(),n)return n.split(v)})(-1);t.on("snap.util.getattr.path",function(){var n=e(this.node,"d");return t.stop(),n})(-1);t.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1);t.on("snap.util.getattr.fontSize",k)(-1);t.on("snap.util.getattr.font-size",k)(-1)}),r.plugin(function(){function f(n){return n}function e(n){return function(t){return+t.toFixed(3)+n}}var i={"+":function(n,t){return n+t},"-":function(n,t){return n-t},"/":function(n,t){return n/t},"*":function(n,t){return n*t}},n=String,r=/[a-z]+$/i,u=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;t.on("snap.util.attr",function(f){var e=n(f).match(u);if(e){var h=t.nt(),o=h.substring(h.lastIndexOf(".")+1),s=this.attr(o),c={};t.stop();var l=e[3]||"",a=s.match(r),v=i[e[1]];if(a&&a==l?f=v(parseFloat(s),+e[2]):(s=this.asPX(o),f=v(this.asPX(o),this.asPX(o,e[2]+l))),isNaN(s)||isNaN(f))return;c[o]=f;this.attr(c)}})(-10);t.on("snap.util.equal",function(o,s){var h=n(this.attr(o)||""),y=this,c=n(s).match(u);if(c){t.stop();var a=c[3]||"",l=h.match(r),v=i[c[1]];return l&&l==a?{from:parseFloat(h),to:v(parseFloat(h),+c[2]),f:e(l)}:(h=this.asPX(o),{from:h,to:v(h,this.asPX(o,c[2]+a)),f:f})}})(-10)}),r.plugin(function(n,i,r,u){var f=r.prototype,e=n.is,o;f.rect=function(n,t,i,r,u,f){var o;return f==null&&(f=u),e(n,"object")&&n=="[object Object]"?o=n:n!=null&&(o={x:n,y:t,width:i,height:r},u!=null&&(o.rx=u,o.ry=f)),this.el("rect",o)};f.circle=function(n,t,i){var r;return e(n,"object")&&n=="[object Object]"?r=n:n!=null&&(r={cx:n,cy:t,r:i}),this.el("circle",r)};o=function(){function n(){this.parentNode.removeChild(this)}return function(t,i){var r=u.doc.createElement("img"),f=u.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em";r.onload=function(){i.call(r);r.onload=r.onerror=null;f.removeChild(r)};r.onerror=n;f.appendChild(r);r.src=t}}();f.image=function(t,i,r,u,f){var h=this.el("image"),s;return e(t,"object")&&"src"in t?h.attr(t):t!=null&&(s={"xlink:href":t,preserveAspectRatio:"none"},i!=null&&r!=null&&(s.x=i,s.y=r),u!=null&&f!=null?(s.width=u,s.height=f):o(t,function(){n._.$(h.node,{width:this.offsetWidth,height:this.offsetHeight})}),n._.$(h.node,s)),h};f.ellipse=function(n,t,i,r){var u;return e(n,"object")&&n=="[object Object]"?u=n:n!=null&&(u={cx:n,cy:t,rx:i,ry:r}),this.el("ellipse",u)};f.path=function(n){var t;return e(n,"object")&&!e(n,"array")?t=n:n&&(t={d:n}),this.el("path",t)};f.group=f.g=function(n){var t=this.el("g");return arguments.length==1&&n&&!n.type?t.attr(n):arguments.length&&t.add(Array.prototype.slice.call(arguments,0)),t};f.svg=function(n,t,i,r,u,f,o,s){var h={};return e(n,"object")&&t==null?h=n:(n!=null&&(h.x=n),t!=null&&(h.y=t),i!=null&&(h.width=i),r!=null&&(h.height=r),u!=null&&f!=null&&o!=null&&s!=null&&(h.viewBox=[u,f,o,s])),this.el("svg",h)};f.mask=function(n){var t=this.el("mask");return arguments.length==1&&n&&!n.type?t.attr(n):arguments.length&&t.add(Array.prototype.slice.call(arguments,0)),t};f.ptrn=function(n,t,i,r,u,f,o,s){if(e(n,"object"))var h=n;else arguments.length?(h={},n!=null&&(h.x=n),t!=null&&(h.y=t),i!=null&&(h.width=i),r!=null&&(h.height=r),u!=null&&f!=null&&o!=null&&s!=null&&(h.viewBox=[u,f,o,s])):h={patternUnits:"userSpaceOnUse"};return this.el("pattern",h)};f.use=function(n){if(n!=null){var t=make("use",this.node);return n instanceof i&&(n.attr("id")||n.attr({id:ID()}),n=n.attr("id")),this.el("use",{"xlink:href":n})}return i.prototype.use.call(this)};f.text=function(n,t,i){var r={};return e(n,"object")?r=n:n!=null&&(r={x:n,y:t,text:i||""}),this.el("text",r)};f.line=function(n,t,i,r){var u={};return e(n,"object")?u=n:n!=null&&(u={x1:n,x2:i,y1:t,y2:r}),this.el("line",u)};f.polyline=function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments,0));var t={};return e(n,"object")&&!e(n,"array")?t=n:n!=null&&(t={points:n}),this.el("polyline",t)};f.polygon=function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments,0));var t={};return e(n,"object")&&!e(n,"array")?t=n:n!=null&&(t={points:n}),this.el("polygon",t)},function(){function r(){return this.selectAll("stop")}function u(t,r){var f=i("stop"),u={offset:+r+"%"};return t=n.color(t),u["stop-color"]=t.hex,t.opacity<1&&(u["stop-opacity"]=t.opacity),i(f,u),this.node.appendChild(f),this}function e(){if(this.type=="linearGradient"){var r=i(this.node,"x1")||0,f=i(this.node,"x2")||1,u=i(this.node,"y1")||0,e=i(this.node,"y2")||0;return n._.box(r,u,math.abs(f-r),math.abs(e-u))}var o=this.node.cx||.5,s=this.node.cy||.5,t=this.node.r||0;return n._.box(o-t,s-t,t*2,t*2)}function h(n,r){function y(n,t){for(var r=(t-a)/(n-l),i=l;i<n;i++)e[i].offset=+(+a+r*(i-l)).toFixed(2);l=n;a=t}var f=t("snap.util.grad.parse",null,r).firstDefined(),c,u,v;if(!f)return null;f.params.unshift(n);c=f.type.toLowerCase()=="l"?o.apply(0,f.params):s.apply(0,f.params);f.type!=f.type.toLowerCase()&&i(c.node,{gradientUnits:"userSpaceOnUse"});var e=f.stops,h=e.length,a=0,l=0;for(h--,u=0;u<h;u++)"offset"in e[u]&&y(u,e[u].offset);for(e[h].offset=e[h].offset||100,y(h,e[h].offset),u=0;u<=h;u++)v=e[u],c.addStop(v.color,v.offset);return c}function o(t,f,o,s,h){var c=n._.make("linearGradient",t);return c.stops=r,c.addStop=u,c.getBBox=e,f!=null&&i(c.node,{x1:f,y1:o,x2:s,y2:h}),c}function s(t,f,o,s,h,c){var l=n._.make("radialGradient",t);return l.stops=r,l.addStop=u,l.getBBox=e,f!=null&&i(l.node,{cx:f,cy:o,r:s}),h!=null&&c!=null&&i(l.node,{fx:h,fy:c}),l}var i=n._.$;f.gradient=function(n){return h(this.defs,n)};f.gradientLinear=function(n,t,i,r){return o(this.defs,n,t,i,r)};f.gradientRadial=function(n,t,i,r,u){return s(this.defs,n,t,i,r,u)};f.toString=function(){var r=this.node.ownerDocument,t=r.createDocumentFragment(),i=r.createElement("div"),u=this.node.cloneNode(!0),f;return t.appendChild(i),i.appendChild(u),n._.$(u,{xmlns:"http://www.w3.org/2000/svg"}),f=i.innerHTML,t.removeChild(t.firstChild),f};f.clear=function(){for(var n=this.node.firstChild,t;n;)t=n.nextSibling,n.tagName!="defs"?n.parentNode.removeChild(n):f.clear.call({node:n}),n=t}}()}),r.plugin(function(n,t){function h(n){var t=h.ps=h.ps||{};return t[n]?t[n].sleep=100:t[n]={sleep:100},setTimeout(function(){for(var i in t)t[kt](i)&&i!=n&&(t[i].sleep--,t[i].sleep||delete t[i])}),t[n]}function l(n,t,r,u){return n==null&&(n=t=r=u=0),t==null&&(t=n.y,r=n.width,u=n.height,n=n.x),{x:n,y:t,width:r,w:r,height:u,h:u,x2:n+r,y2:t+u,cx:n+r/2,cy:t+u/2,r1:i.min(r,u)/2,r2:i.max(r,u)/2,r0:i.sqrt(r*r+u*u)/2,path:k(n,t,r,u),vb:[n,t,r,u].join(" ")}}function a(){return this.join(",").replace(dt,"$1")}function c(n){var t=tt(n);return t.toString=a,t}function it(n,t,i,r,u,f,e,o,s){return s==null?v(n,t,i,r,u,f,e,o):w(n,t,i,r,u,f,e,o,ni(n,t,i,r,u,f,e,o,s))}function rt(i,r){function u(n){return+(+n).toFixed(3)}return n._.cacher(function(n,f,e){var b,k;n instanceof t&&(n=n.attr("d"));n=p(n);var h,c,o,v,l="",y={},s,a=0;for(b=0,k=n.length;b<k;b++){if(o=n[b],o[0]=="M")h=+o[1],c=+o[2];else{if(v=it(h,c,o[1],o[2],o[3],o[4],o[5],o[6]),a+v>f){if(r&&!y.start){if(s=it(h,c,o[1],o[2],o[3],o[4],o[5],o[6],f-a),l+=["C"+u(s.start.x),u(s.start.y),u(s.m.x),u(s.m.y),u(s.x),u(s.y)],e)return l;y.start=l;l=["M"+u(s.x),u(s.y)+"C"+u(s.n.x),u(s.n.y),u(s.end.x),u(s.end.y),u(o[5]),u(o[6])].join();a+=v;h=+o[5];c=+o[6];continue}if(!i&&!r)return it(h,c,o[1],o[2],o[3],o[4],o[5],o[6],f-a)}a+=v;h=+o[5];c=+o[6]}l+=o.shift()+o}return y.end=l,i?a:r?y:w(h,c,o[0],o[1],o[2],o[3],o[4],o[5],1)},null,n._.clone)}function w(n,t,r,u,e,o,h,c,l){var a=1-l,y=s(a,3),p=s(a,2),v=l*l,w=v*l,nt=y*n+p*3*l*r+a*3*l*l*e+w*h,tt=y*t+p*3*l*u+a*3*l*l*o+w*c,b=n+2*l*(r-n)+v*(e-2*r+n),k=t+2*l*(u-t)+v*(o-2*u+t),d=r+2*l*(e-r)+v*(h-2*e+r),g=u+2*l*(o-u)+v*(c-2*o+u),it=a*n+l*r,rt=a*t+l*u,ut=a*e+l*h,ft=a*o+l*c,et=90-i.atan2(b-d,k-g)*180/f;return{x:nt,y:tt,m:{x:b,y:k},n:{x:d,y:g},start:{x:it,y:rt},end:{x:ut,y:ft},alpha:et}}function ft(t,i,r,u,f,e,o,s){n.is(t,"array")||(t=[t,i,r,u,f,e,o,s]);var h=wt.apply(null,t);return l(h.min.x,h.min.y,h.max.x-h.min.x,h.max.y-h.min.y)}function e(n,t,i){return t>=n.x&&t<=n.x+n.width&&i>=n.y&&i<=n.y+n.height}function lt(n,t){return n=l(n),t=l(t),e(t,n.x,n.y)||e(t,n.x2,n.y)||e(t,n.x,n.y2)||e(t,n.x2,n.y2)||e(n,t.x,t.y)||e(n,t.x2,t.y)||e(n,t.x,t.y2)||e(n,t.x2,t.y2)||(n.x<t.x2&&n.x>t.x||t.x<n.x2&&t.x>n.x)&&(n.y<t.y2&&n.y>t.y||t.y<n.y2&&t.y>n.y)}function at(n,t,i,r,u){var f=-3*t+9*i-9*r+3*u,e=n*f+6*t-12*i+6*r;return n*e-3*t+3*i}function v(n,t,r,u,f,e,o,s,h){var c;h==null&&(h=1);h=h>1?1:h<0?0:h;var l=h/2,w=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],a=0;for(c=0;c<12;c++){var v=l*w[c]+l,y=at(v,n,r,f,o),p=at(v,t,u,e,s),k=y*y+p*p;a+=b[c]*i.sqrt(k)}return l*a}function ni(n,t,i,r,u,f,e,s,h){if(!(h<0)&&!(v(n,t,i,r,u,f,e,s)<h)){for(var y=1,a=y/2,c=y-a,l=v(n,t,i,r,u,f,e,s,c);o(l-h)>.01;)a/=2,c+=(l<h?1:-1)*a,l=v(n,t,i,r,u,f,e,s,c);return c}}function ti(n,t,i,f,e,o,s,h){if(!(r(n,i)<u(e,s))&&!(u(n,i)>r(e,s))&&!(r(t,f)<u(o,h))&&!(u(t,f)>r(o,h))){var p=(n*f-t*i)*(e-s)-(n-i)*(e*h-o*s),w=(n*f-t*i)*(o-h)-(t-f)*(e*h-o*s),a=(n-i)*(o-h)-(t-f)*(e-s);if(a){var v=p/a,y=w/a,c=+v.toFixed(2),l=+y.toFixed(2);if(!(c<+u(n,i).toFixed(2))&&!(c>+r(n,i).toFixed(2))&&!(c<+u(e,s).toFixed(2))&&!(c>+r(e,s).toFixed(2))&&!(l<+u(t,f).toFixed(2))&&!(l>+r(t,f).toFixed(2))&&!(l<+u(o,h).toFixed(2))&&!(l>+r(o,h).toFixed(2)))return{x:v,y:y}}}}function et(n,t,i){var rt=ft(n),ut=ft(t),r,s,h,k,d;if(!lt(rt,ut))return i?0:[];var et=v.apply(0,n),ot=v.apply(0,t),a=~~(et/8),y=~~(ot/8),g=[],nt=[],it={},tt=i?0:[];for(r=0;r<a+1;r++)s=w.apply(0,n.concat(r/a)),g.push({x:s.x,y:s.y,t:r/a});for(r=0;r<y+1;r++)s=w.apply(0,t.concat(r/y)),nt.push({x:s.x,y:s.y,t:r/y});for(r=0;r<a;r++)for(h=0;h<y;h++){var f=g[r],c=g[r+1],e=nt[h],l=nt[h+1],p=o(c.x-f.x)<.001?"y":"x",b=o(l.x-e.x)<.001?"y":"x",u=ti(f.x,f.y,c.x,c.y,e.x,e.y,l.x,l.y);if(u){if(it[u.x.toFixed(4)]==u.y.toFixed(4))continue;it[u.x.toFixed(4)]=u.y.toFixed(4);k=f.t+o((u[p]-f[p])/(c[p]-f[p]))*(c.t-f.t);d=e.t+o((u[b]-e[b])/(l[b]-e[b]))*(l.t-e.t);k>=0&&k<=1&&d>=0&&d<=1&&(i?tt++:tt.push({x:u.x,y:u.y,t1:k,t2:d}))}}return tt}function ii(n,t){return ot(n,t)}function ri(n,t){return ot(n,t,1)}function ot(n,t,i){var f,e,o,s,b,k,d,g,h,c,v,y,nt,l,w,tt,a,r,u,it;for(n=p(n),t=p(t),v=i?0:[],y=0,nt=n.length;y<nt;y++)if(l=n[y],l[0]=="M")f=b=l[1],e=k=l[2];else for(l[0]=="C"?(h=[f,e].concat(l.slice(1)),f=h[6],e=h[7]):(h=[f,e,f,e,b,k,b,k],f=b,e=k),w=0,tt=t.length;w<tt;w++)if(a=t[w],a[0]=="M")o=d=a[1],s=g=a[2];else if(a[0]=="C"?(c=[o,s].concat(a.slice(1)),o=c[6],s=c[7]):(c=[o,s,o,s,d,g,d,g],o=d,s=g),r=et(h,c,i),i)v+=r;else{for(u=0,it=r.length;u<it;u++)r[u].segment1=y,r[u].segment2=w,r[u].bez1=h,r[u].bez2=c;v=v.concat(r)}return v}function ui(n,t,i){var r=vt(n);return e(r,t,i)&&ot(n,[["M",t,i],["H",r.x2+10]],1)%2==1}function vt(n){var a=h(n),c,v,e;if(a.bbox)return tt(a.bbox);if(!n)return l();n=p(n);var o=0,s=0,i=[],f=[],t;for(c=0,v=n.length;c<v;c++)t=n[c],t[0]=="M"?(o=t[1],s=t[2],i.push(o),f.push(s)):(e=wt(o,s,t[1],t[2],t[3],t[4],t[5],t[6]),i=i.concat(e.min.x,e.max.x),f=f.concat(e.min.y,e.max.y),o=t[5],s=t[6]);var y=u.apply(0,i),w=u.apply(0,f),k=r.apply(0,i),d=r.apply(0,f),b=l(y,w,k-y,d-w);return a.bbox=tt(b),b}function k(n,t,i,r,u){if(u)return[["M",+n+ +u,t],["l",i-u*2,0],["a",u,u,0,0,1,u,u],["l",0,r-u*2],["a",u,u,0,0,1,-u,u],["l",u*2-i,0],["a",u,u,0,0,1,-u,-u],["l",0,u*2-r],["a",u,u,0,0,1,u,-u],["z"]];var f=[["M",n,t],["l",i,0],["l",0,r],["l",-i,0],["z"]];return f.toString=a,f}function y(n,t,i,r,u){if(u==null&&r==null&&(r=i),n=+n,t=+t,i=+i,r=+r,u!=null)var f=Math.PI/180,o=n+i*Math.cos(-r*f),s=n+i*Math.cos(-u*f),h=t+i*Math.sin(-r*f),c=t+i*Math.sin(-u*f),e=[["M",o,h],["A",i,i,0,+(u-r>180),0,s,c]];else e=[["M",n,t],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];return e.toString=a,e}function ei(t){var w=h(t),b=String.prototype.toLowerCase,u,d,f,i,s,g,l,nt,v;if(w.rel)return c(w.rel);n.is(t,"array")&&n.is(t&&t[0],"array")||(t=n.parsePathString(t));var r=[],o=0,e=0,y=0,p=0,k=0;for(t[0][0]=="M"&&(o=t[0][1],e=t[0][2],y=o,p=e,k++,r.push(["M",o,e])),u=k,d=t.length;u<d;u++){if(f=r[u]=[],i=t[u],i[0]!=b.call(i[0])){f[0]=b.call(i[0]);switch(f[0]){case"a":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=+(i[6]-o).toFixed(3);f[7]=+(i[7]-e).toFixed(3);break;case"v":f[1]=+(i[1]-e).toFixed(3);break;case"m":y=i[1];p=i[2];default:for(s=1,g=i.length;s<g;s++)f[s]=+(i[s]-(s%2?o:e)).toFixed(3)}}else for(f=r[u]=[],i[0]=="m"&&(y=i[1]+o,p=i[2]+e),l=0,nt=i.length;l<nt;l++)r[u][l]=i[l];v=r[u].length;switch(r[u][0]){case"z":o=y;e=p;break;case"h":o+=+r[u][v-1];break;case"v":e+=+r[u][v-1];break;default:o+=+r[u][v-2];e+=+r[u][v-1]}}return r.toString=a,w.rel=c(r),r}function st(t){var d=h(t),g,r,i,b,tt,o,s,k,v,it;if(d.abs)return c(d.abs);if(ht(t,"array")&&ht(t&&t[0],"array")||(t=n.parsePathString(t)),!t||!t.length)return[["M",0,0]];var u=[],f=0,e=0,p=0,w=0,nt=0,l;for(t[0][0]=="M"&&(f=+t[0][1],e=+t[0][2],p=f,w=e,nt++,u[0]=["M",f,e]),g=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",b=nt,tt=t.length;b<tt;b++){if(u.push(r=[]),i=t[b],l=i[0],l!=l.toUpperCase()){r[0]=l.toUpperCase();switch(r[0]){case"A":r[1]=i[1];r[2]=i[2];r[3]=i[3];r[4]=i[4];r[5]=i[5];r[6]=+i[6]+f;r[7]=+i[7]+e;break;case"V":r[1]=+i[1]+e;break;case"H":r[1]=+i[1]+f;break;case"R":for(o=[f,e].concat(i.slice(1)),s=2,k=o.length;s<k;s++)o[s]=+o[s]+f,o[++s]=+o[s]+e;u.pop();u=u.concat(bt(o,g));break;case"O":u.pop();o=y(f,e,i[1],i[2]);o.push(o[0]);u=u.concat(o);break;case"U":u.pop();u=u.concat(y(f,e,i[1],i[2],i[3]));r=["U"].concat(u[u.length-1].slice(-2));break;case"M":p=+i[1]+f;w=+i[2]+e;default:for(s=1,k=i.length;s<k;s++)r[s]=+i[s]+(s%2?f:e)}}else if(l=="R")o=[f,e].concat(i.slice(1)),u.pop(),u=u.concat(bt(o,g)),r=["R"].concat(i.slice(-2));else if(l=="O")u.pop(),o=y(f,e,i[1],i[2]),o.push(o[0]),u=u.concat(o);else if(l=="U")u.pop(),u=u.concat(y(f,e,i[1],i[2],i[3])),r=["U"].concat(u[u.length-1].slice(-2));else for(v=0,it=i.length;v<it;v++)r[v]=i[v];if(l=l.toUpperCase(),l!="O")switch(r[0]){case"Z":f=+p;e=+w;break;case"H":f=r[1];break;case"V":e=r[1];break;case"M":p=r[r.length-2];w=r[r.length-1];default:f=r[r.length-2];e=r[r.length-1]}}return u.toString=a,d.abs=c(u),u}function g(n,t,i,r){return[n,t,i,r,i,r]}function yt(n,t,i,r,u,f){var e=1/3,o=2/3;return[e*n+o*i,e*t+o*r,e*u+o*i,e*f+o*r,u,f]}function pt(t,r,u,e,s,h,c,l,a,v){var ct=f*120/180,ut=f/180*(+s||0),w=[],g,ft=n._.cacher(function(n,t,r){var u=n*i.cos(r)-t*i.sin(r),f=n*i.sin(r)+t*i.cos(r);return{x:u,y:f}}),et,ht,b,dt;if(v)p=v[0],y=v[1],it=v[2],rt=v[3];else{g=ft(t,r,-ut);t=g.x;r=g.y;g=ft(l,a,-ut);l=g.x;a=g.y;var ei=i.cos(f/180*s),oi=i.sin(f/180*s),k=(t-l)/2,d=(r-a)/2,tt=k*k/(u*u)+d*d/(e*e);tt>1&&(tt=i.sqrt(tt),u=tt*u,e=tt*e);var ot=u*u,st=e*e,lt=(h==c?-1:1)*i.sqrt(o((ot*st-ot*d*d-st*k*k)/(ot*d*d+st*k*k))),it=lt*u*d/e+(t+l)/2,rt=lt*-e*k/u+(r+a)/2,p=i.asin(((r-rt)/e).toFixed(9)),y=i.asin(((a-rt)/e).toFixed(9));p=t<it?f-p:p;y=l<it?f-y:y;p<0&&(p=f*2+p);y<0&&(y=f*2+y);c&&p>y&&(p=p-f*2);!c&&y>p&&(y=y-f*2)}if(et=y-p,o(et)>ct){var gt=y,ni=l,ti=a;y=p+ct*(c&&y>p?1:-1);l=it+u*i.cos(y);a=rt+e*i.sin(y);w=pt(l,a,u,e,s,0,c,ni,ti,[y,gt,it,rt])}et=y-p;var ii=i.cos(p),ri=i.sin(p),ui=i.cos(y),fi=i.sin(y),at=i.tan(et/4),vt=4/3*u*at,yt=4/3*e*at,wt=[t,r],nt=[t+vt*ri,r-yt*ii],bt=[l+vt*fi,a-yt*ui],kt=[l,a];if(nt[0]=2*wt[0]-nt[0],nt[1]=2*wt[1]-nt[1],v)return[nt,bt,kt].concat(w);for(w=[nt,bt,kt].concat(w).join().split(","),ht=[],b=0,dt=w.length;b<dt;b++)ht[b]=b%2?ft(w[b-1],w[b],ut).y:ft(w[b],w[b+1],ut).x;return ht}function wt(n,t,f,e,s,h,c,l){for(var b,k,v,d=[],y=[[],[]],w,p,g,a,nt,tt,it,rt,ut=0;ut<2;++ut){if(ut==0?(p=6*n-12*f+6*s,w=-3*n+9*f-9*s+3*c,g=3*f-3*n):(p=6*t-12*e+6*h,w=-3*t+9*e-9*h+3*l,g=3*e-3*t),o(w)<1e-12){if(o(p)<1e-12)continue;a=-g/p;0<a&&a<1&&d.push(a);continue}(it=p*p-4*g*w,rt=i.sqrt(it),it<0)||(nt=(-p+rt)/(2*w),0<nt&&nt<1&&d.push(nt),tt=(-p-rt)/(2*w),0<tt&&tt<1&&d.push(tt))}for(b=d.length,k=b;b--;)a=d[b],v=1-a,y[0][b]=v*v*v*n+3*v*v*a*f+3*v*a*a*s+a*a*a*c,y[1][b]=v*v*v*t+3*v*v*a*e+3*v*a*a*h+a*a*a*l;return y[0][k]=n,y[1][k]=t,y[0][k+1]=c,y[1][k+1]=l,y[0].length=y[1].length=k+2,{min:{x:u.apply(0,y[0]),y:u.apply(0,y[1])},max:{x:r.apply(0,y[0]),y:r.apply(0,y[1])}}}function p(n,t){var nt=!t&&h(n),i,w;if(!t&&nt.curve)return c(nt.curve);var f=st(n),u=t&&st(t),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},tt=function(n,t,i){var r,u;if(!n)return["C",t.x,t.y,t.x,t.y,t.x,t.y];n[0]in{T:1,Q:1}||(t.qx=t.qy=null);switch(n[0]){case"M":t.X=n[1];t.Y=n[2];break;case"A":n=["C"].concat(pt.apply(0,[t.x,t.y].concat(n.slice(1))));break;case"S":i=="C"||i=="S"?(r=t.x*2-t.bx,u=t.y*2-t.by):(r=t.x,u=t.y);n=["C",r,u].concat(n.slice(1));break;case"T":i=="Q"||i=="T"?(t.qx=t.x*2-t.qx,t.qy=t.y*2-t.qy):(t.qx=t.x,t.qy=t.y);n=["C"].concat(yt(t.x,t.y,t.qx,t.qy,n[1],n[2]));break;case"Q":t.qx=n[1];t.qy=n[2];n=["C"].concat(yt(t.x,t.y,n[1],n[2],n[3],n[4]));break;case"L":n=["C"].concat(g(t.x,t.y,n[1],n[2]));break;case"H":n=["C"].concat(g(t.x,t.y,n[1],t.y));break;case"V":n=["C"].concat(g(t.x,t.y,t.x,n[1]));break;case"Z":n=["C"].concat(g(t.x,t.y,t.X,t.Y))}return n},it=function(n,t){if(n[t].length>7){n[t].shift();for(var i=n[t];i.length;)l[t]="A",u&&(a[t]="A"),n.splice(t++,0,["C"].concat(i.splice(0,6)));n.splice(t,1);w=r(f.length,u&&u.length||0)}},rt=function(n,t,i,e,o){n&&t&&n[o][0]=="M"&&t[o][0]!="M"&&(t.splice(o,0,["M",e.x,e.y]),i.bx=0,i.by=0,i.x=n[o][1],i.y=n[o][2],w=r(f.length,u&&u.length||0))},l=[],a=[],s="",p="";for(i=0,w=r(f.length,u&&u.length||0);i<w;i++){f[i]&&(s=f[i][0]);s!="C"&&(l[i]=s,i&&(p=l[i-1]));f[i]=tt(f[i],e,p);l[i]!="A"&&s=="C"&&(l[i]="C");it(f,i);u&&(u[i]&&(s=u[i][0]),s!="C"&&(a[i]=s,i&&(p=a[i-1])),u[i]=tt(u[i],o,p),a[i]!="A"&&s=="C"&&(a[i]="C"),it(u,i));rt(f,u,e,o,i);rt(u,f,o,e,i);var v=f[i],y=u&&u[i],k=v.length,d=u&&y.length;e.x=v[k-2];e.y=v[k-1];e.bx=b(v[k-4])||e.x;e.by=b(v[k-3])||e.y;o.bx=u&&(b(y[d-4])||o.x);o.by=u&&(b(y[d-3])||o.y);o.x=u&&y[d-2];o.y=u&&y[d-1]}return u||(nt.curve=c(f)),u?[f,u]:f}function oi(n,t){if(!t)return n;var f,e,u,i,o,s,r;for(n=p(n),u=0,o=n.length;u<o;u++)for(r=n[u],i=1,s=r.length;i<s;i+=2)f=t.x(r[i],r[i+1]),e=t.y(r[i],r[i+1]),r[i]=f,r[i+1]=e;return n}function bt(n,t){for(var i,f=[],r=0,u=n.length;u-2*!t>r;r+=2)i=[{x:+n[r-2],y:+n[r-1]},{x:+n[r],y:+n[r+1]},{x:+n[r+2],y:+n[r+3]},{x:+n[r+4],y:+n[r+5]}],t?r?u-4==r?i[3]={x:+n[0],y:+n[1]}:u-2==r&&(i[2]={x:+n[0],y:+n[1]},i[3]={x:+n[2],y:+n[3]}):i[0]={x:+n[u-2],y:+n[u-1]}:u-4==r?i[3]=i[2]:r||(i[0]={x:+n[r],y:+n[r+1]}),f.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y]);return f}var nt=t.prototype,ht=n.is,tt=n._.clone,kt="hasOwnProperty",dt=/,?([a-z]),?/gi,b=parseFloat,i=Math,f=i.PI,u=i.min,r=i.max,s=i.pow,o=i.abs,gt=rt(1),ct=rt(),ut=rt(0,1),d=n._unit2px,fi={path:function(n){return n.attr("path")},circle:function(n){var t=d(n);return y(t.cx,t.cy,t.r)},ellipse:function(n){var t=d(n);return y(t.cx||0,t.cy||0,t.rx,t.ry)},rect:function(n){var t=d(n);return k(t.x||0,t.y||0,t.width,t.height,t.rx,t.ry)},image:function(n){var t=d(n);return k(t.x||0,t.y||0,t.width,t.height)},line:function(n){return"M"+[n.attr("x1")||0,n.attr("y1")||0,n.attr("x2"),n.attr("y2")]},polyline:function(n){return"M"+n.attr("points")},polygon:function(n){return"M"+n.attr("points")+"z"},deflt:function(n){var t=n.node.getBBox();return k(t.x,t.y,t.width,t.height)}};n.path=h;n.path.getTotalLength=gt;n.path.getPointAtLength=ct;n.path.getSubpath=function(n,t,i){if(this.getTotalLength(n)-i<1e-6)return ut(n,t).end;var r=ut(n,i,1);return t?ut(r,t).end:r};nt.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()};nt.getPointAtLength=function(n){return ct(this.attr("d"),n)};nt.getSubpath=function(t,i){return n.path.getSubpath(this.attr("d"),t,i)};n._.box=l;n.path.findDotsAtSegment=w;n.path.bezierBBox=ft;n.path.isPointInsideBBox=e;n.path.isBBoxIntersect=lt;n.path.intersection=ii;n.path.intersectionNumber=ri;n.path.isPointInside=ui;n.path.getBBox=vt;n.path.get=fi;n.path.toRelative=ei;n.path.toAbsolute=st;n.path.toCubic=p;n.path.map=oi;n.path.toString=a;n.path.clone=c}),r.plugin(function(n){var u=Math.max,e=Math.min,f=function(n){if(this.items=[],this.bindings={},this.length=0,this.type="set",n)for(var t=0,i=n.length;t<i;t++)n[t]&&(this[this.items.length]=this.items[this.items.length]=n[t],this.length++)},r=f.prototype;r.push=function(){for(var n,t,i=0,r=arguments.length;i<r;i++)n=arguments[i],n&&(t=this.items.length,this[t]=this.items[t]=n,this.length++);return this};r.pop=function(){return this.length&&delete this[this.length--],this.items.pop()};r.forEach=function(n,t){for(var i=0,r=this.items.length;i<r;i++)if(n.call(t,this.items[i],i)===!1)return this;return this};r.animate=function(r,u,f,e){var o,h;typeof f!="function"||f.length||(e=f,f=i.linear);r instanceof n._.Animation&&(e=r.callback,f=r.easing,u=f.dur,r=r.attr);o=arguments;n.is(r,"array")&&n.is(o[o.length-1],"array")&&(h=!0);var s,c=function(){s?this.b=s:s=this.b},l=0,a=e&&function(){l++==this.length&&e.call(this)};return this.forEach(function(n,i){t.once("snap.animcreated."+n.id,c);h?o[i]&&n.animate.apply(n,o[i]):n.animate(r,u,f,a)})};r.remove=function(){while(this.length)this.pop().remove();return this};r.bind=function(n,t,i){var r={},u;return typeof t=="function"?this.bindings[n]=t:(u=i||n,this.bindings[n]=function(n){r[u]=n;t.attr(r)}),this};r.attr=function(n){var r={},t,i,u;for(t in n)this.bindings[t]?this.bindings[t](n[t]):r[t]=n[t];for(i=0,u=this.items.length;i<u;i++)this.items[i].attr(r);return this};r.clear=function(){while(this.length)this.pop()};r.splice=function(n,t){var r;n=n<0?u(this.length+n,0):n;t=u(0,e(this.length-n,t));for(var o=[],h=[],s=[],i=2;i<arguments.length;i++)s.push(arguments[i]);for(i=0;i<t;i++)h.push(this[n+i]);for(;i<this.length-n;i++)o.push(this[n+i]);for(r=s.length,i=0;i<r+o.length;i++)this.items[n+i]=this[n+i]=i<r?s[i]:o[i-r];for(i=this.items.length=this.length-=t-r;this[i];)delete this[i++];return new f(h)};r.exclude=function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]==n)return this.splice(t,1),!0;return!1};r.insertAfter=function(n){for(var t=this.items.length;t--;)this.items[t].insertAfter(n);return this};r.getBBox=function(){for(var i,n=[],t=[],r=[],f=[],o=this.items.length;o--;)this.items[o].removed||(i=this.items[o].getBBox(),n.push(i.x),t.push(i.y),r.push(i.x+i.width),f.push(i.y+i.height));return n=e.apply(0,n),t=e.apply(0,t),r=u.apply(0,r),f=u.apply(0,f),{x:n,y:t,x2:r,y2:f,width:r-n,height:f-t,cx:n+(r-n)/2,cy:t+(f-t)/2}};r.clone=function(n){n=new f;for(var t=0,i=this.items.length;t<i;t++)n.push(this.items[t].clone());return n};r.toString=function(){return"Snap‘s set"};r.type="set";n.set=function(){var n=new f;return arguments.length&&n.push.apply(n,Array.prototype.slice.call(arguments,0)),n}}),r.plugin(function(n,i){function o(n){var t=n[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return n.length==4?[t,0,n[2],n[3]]:[t,0];case"s":return n.length==5?[t,1,1,n[3],n[4]]:n.length==3?[t,1,1]:[t,1]}}function c(t,i,f){i=r(i).replace(/\.{3}|\u2026/g,t);t=n.parseTransformString(t)||[];i=n.parseTransformString(i)||[];for(var p=Math.max(t.length,i.length),a=[],v=[],s=0,c,y,e,l;s<p;s++){if(e=t[s]||o(i[s]),l=i[s]||o(e),e[0]!=l[0]||e[0].toLowerCase()=="r"&&(e[2]!=l[2]||e[3]!=l[3])||e[0].toLowerCase()=="s"&&(e[3]!=l[3]||e[4]!=l[4])){t=n._.transform2matrix(t,f());i=n._.transform2matrix(i,f());a=[["m",t.a,t.b,t.c,t.d,t.e,t.f]];v=[["m",i.a,i.b,i.c,i.d,i.e,i.f]];break}for(a[s]=[],v[s]=[],c=0,y=Math.max(e.length,l.length);c<y;c++)c in e&&(a[s][c]=e[c]),c in l&&(v[s][c]=l[c])}return{from:u(a),to:u(v),f:h(a)}}function s(n){return n}function l(n){return function(t){return+t.toFixed(3)+n}}function a(t){return n.rgb(t[0],t[1],t[2])}function h(n){for(var s=0,i,e,r,u,o=[],t=0,f=n.length;t<f;t++){for(r="[",u=['"'+n[t][0]+'"'],i=1,e=n[t].length;i<e;i++)u[i]="val["+s+++"]";r+=u+"]";o[t]=r}return Function("val","return Snap.path.toString.call(["+o+"])")}function u(n){for(var i,u,r=[],t=0,f=n.length;t<f;t++)for(i=1,u=n[t].length;i<u;i++)r.push(n[t][i]);return r}var f={},e=/[a-z]+$/i,r=String;f.stroke=f.fill="colour";i.prototype.equal=function(n,i){return t("snap.util.equal",this,n,i).firstDefined()};t.on("snap.util.equal",function(t,i){var o,y,v=r(this.attr(t)||""),w=this,p;return v==+v&&i==+i?{from:+v,to:+i,f:s}:f[t]=="colour"?(o=n.color(v),y=n.color(i),{from:[o.r,o.g,o.b,o.opacity],to:[y.r,y.g,y.b,y.opacity],f:a}):t=="transform"||t=="gradientTransform"||t=="patternTransform"?(i instanceof n.Matrix&&(i=i.toTransformString()),n._.rgTransform.test(i)||(i=n._.svgTransform2string(i)),c(v,i,function(){return w.getBBox(1)})):t=="d"||t=="path"?(o=n.path.toCubic(v,i),{from:u(o[0]),to:u(o[1]),f:h(o[0])}):t=="points"?(o=r(v).split(n._.separator),y=r(i).split(n._.separator),{from:o,to:y,f:function(n){return n}}):(aUnit=v.match(e),p=r(i).match(e),aUnit&&aUnit==p?{from:parseFloat(v),to:parseFloat(i),f:l(aUnit)}:{from:this.asPX(t),to:this.asPX(t,i),f:s})})}),r.plugin(function(n,i,r,u){for(var e,o=i.prototype,p="hasOwnProperty",h=("createTouch"in u.doc),v=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},s=function(n,t){var i=n=="y"?"scrollTop":"scrollLeft",r=t&&t.node?t.node.ownerDocument:u.doc;return r[i in r.documentElement?"documentElement":"body"][i]},w=function(){this.returnValue=!1},b=function(){return this.originalEvent.preventDefault()},k=function(){this.cancelBubble=!0},d=function(){return this.originalEvent.stopPropagation()},g=function(){return u.doc.addEventListener?function(n,t,i,r){var u=h&&c[t]?c[t]:t,f=function(u){var v=s("y",r),y=s("x",r),f,e,o,l,a;if(h&&c[p](t))for(f=0,e=u.targetTouches&&u.targetTouches.length;f<e;f++)if(u.targetTouches[f].target==n||n.contains(u.targetTouches[f].target)){o=u;u=u.targetTouches[f];u.originalEvent=o;u.preventDefault=b;u.stopPropagation=d;break}return l=u.clientX+y,a=u.clientY+v,i.call(r,u,l,a)};return t!==u&&n.addEventListener(t,f,!1),n.addEventListener(u,f,!1),function(){return t!==u&&n.removeEventListener(t,f,!1),n.removeEventListener(u,f,!1),!0}}:u.doc.attachEvent?function(n,t,i,r){var u=function(n){n=n||r.node.ownerDocument.window.event;var t=s("y",r),u=s("x",r),f=n.clientX+u,e=n.clientY+t;return n.preventDefault=n.preventDefault||w,n.stopPropagation=n.stopPropagation||k,i.call(r,n,f,e)};return n.attachEvent("on"+t,u),function(){return n.detachEvent("on"+t,u),!0}}:void 0}(),f=[],l=function(n){for(var u=n.clientX,e=n.clientY,a=s("y"),v=s("x"),i,l=f.length,o,r;l--;){if(i=f[l],h){for(o=n.touches&&n.touches.length;o--;)if(r=n.touches[o],r.identifier==i.el._drag.id||i.el.node.contains(r.target)){u=r.clientX;e=r.clientY;(n.originalEvent?n.originalEvent:n).preventDefault();break}}else n.preventDefault();var c=i.el.node,y=c.nextSibling,p=c.parentNode,w=c.style.display;u+=v;e+=a;t("snap.drag.move."+i.el.id,i.move_scope||i.el,u-i.el._drag.x,e-i.el._drag.y,u,e,n)}},a=function(i){n.unmousemove(l).unmouseup(a);for(var u=f.length,r;u--;)r=f[u],r.el._drag={},t("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,i);f=[]},y=v.length;y--;)(function(t){n[t]=o[t]=function(i,r){return n.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:g(this.node||document,t,i,r||this)})),this};n["un"+t]=o["un"+t]=function(n){for(var i=this.events||[],r=i.length;r--;)if(i[r].name==t&&(i[r].f==n||!n))return i[r].unbind(),i.splice(r,1),i.length||delete this.events,this;return this}})(v[y]);o.hover=function(n,t,i,r){return this.mouseover(n,i).mouseout(t,r||i)};o.unhover=function(n,t){return this.unmouseover(n).unmouseout(t)};e=[];o.drag=function(i,r,u,o,s,h){function v(e,c,v){(e.originalEvent||e).preventDefault();this._drag.x=c;this._drag.y=v;this._drag.id=e.identifier;f.length||n.mousemove(l).mouseup(a);f.push({el:this,move_scope:o,start_scope:s,end_scope:h});r&&t.on("snap.drag.start."+this.id,r);i&&t.on("snap.drag.move."+this.id,i);u&&t.on("snap.drag.end."+this.id,u);t("snap.drag.start."+this.id,s||o||this,c,v,e)}if(!arguments.length){var c;return this.drag(function(n,t){this.attr({transform:c+(c?"T":"t")+[n,t]})},function(){c=this.transform().local})}return this._drag={},e.push({el:this,start:v}),this.mousedown(v),this};o.undrag=function(){for(var i=e.length;i--;)e[i].el==this&&(this.unmousedown(e[i].start),e.splice(i,1),t.unbind("snap.drag.*."+this.id));return e.length||n.unmousemove(l).unmouseup(a),this}}),r.plugin(function(n,i,r){var s=i.prototype,e=r.prototype,o=/^\s*url\((.+)\)/,f=String,u=n._.$;n.filter={};e.filter=function(t){var r=this;r.type!="svg"&&(r=r.paper);var o=n.parse(f(t)),s=n._.id(),h=r.node.offsetWidth,c=r.node.offsetHeight,e=u("filter");return u(e,{id:s,filterUnits:"userSpaceOnUse"}),e.appendChild(o.node),r.defs.appendChild(e),new i(e)};t.on("snap.util.getattr.filter",function(){var i,r;return t.stop(),i=u(this.node,"filter"),i?(r=f(i).match(o),r&&n.select(r[1])):void 0});t.on("snap.util.attr.filter",function(r){if(r instanceof i&&r.type=="filter"){t.stop();var f=r.node.id;f||(u(r.node,{id:r.id}),f=r.id);u(this.node,{filter:n.url(f)})}r&&r!="none"||(t.stop(),this.node.removeAttribute("filter"))});n.filter.blur=function(t,i){t==null&&(t=2);var r=i==null?t:[t,i];return n.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})};n.filter.blur.toString=function(){return this()};n.filter.shadow=function(t,i,r,u,f){return typeof r=="string"&&(u=r,f=u,r=4),typeof u!="string"&&(f=u,u="#000"),u=u||"#000",r==null&&(r=4),f==null&&(f=1),t==null&&(t=0,i=2),i==null&&(i=t),u=n.color(u),n.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/><\/feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/><\/feMerge>',{color:u,dx:t,dy:i,blur:r,opacity:f})};n.filter.shadow.toString=function(){return this()};n.filter.grayscale=function(t){return t==null&&(t=1),n.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})};n.filter.grayscale.toString=function(){return this()};n.filter.sepia=function(t){return t==null&&(t=1),n.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})};n.filter.sepia.toString=function(){return this()};n.filter.saturate=function(t){return t==null&&(t=1),n.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-t})};n.filter.saturate.toString=function(){return this()};n.filter.hueRotate=function(t){return t=t||0,n.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t})};n.filter.hueRotate.toString=function(){return this()};n.filter.invert=function(t){return t==null&&(t=1),n.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/><\/feComponentTransfer>',{amount:t,amount2:1-t})};n.filter.invert.toString=function(){return this()};n.filter.brightness=function(t){return t==null&&(t=1),n.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/><\/feComponentTransfer>',{amount:t})};n.filter.brightness.toString=function(){return this()};n.filter.contrast=function(t){return t==null&&(t=1),n.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/><\/feComponentTransfer>',{amount:t,amount2:.5-t/2})};n.filter.contrast.toString=function(){return this()}}),r});mod=angular.module("infinite-scroll",[]);mod.value("THROTTLE_MILLISECONDS",null);mod.directive("infiniteScroll",["$rootScope","$window","$timeout","THROTTLE_MILLISECONDS",function(n,t,i,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"="},link:function(u,f,e){var c,h,o,a,v,y,p,s,w,b,l,d,k;return t=angular.element(t),b=null,l=null,h=null,o=null,w=!0,k=!1,s=function(){var r,e,i,s,c;return o===t?(r=o.height()+o.scrollTop(),i=f.offset().top+f.height()):(r=o.height(),e=0,void 0!==o.offset()&&(e=o.offset().top),i=f.offset().top-e+f.height()),k&&(i=$(document).height()),s=i-r,c=o.height()*b+1>=s,c?(h=!0,l?u.$$phase||n.$$phase?u.infiniteScroll():u.$apply(u.infiniteScroll):void 0):h=!1},d=function(n,t){var f,u,r;return r=null,u=0,f=function(){var t;return u=(new Date).getTime(),i.cancel(r),r=null,n.call(),t=null},function(){var e,o;return e=(new Date).getTime(),o=t-(e-u),0>=o?(clearTimeout(r),i.cancel(r),r=null,u=e,n.call()):r?void 0:r=i(f,o)}},null!=r&&(s=d(s,r)),u.$on("$destroy",function(){return o.off("scroll",s)}),y=function(n){return b=parseInt(n,10)||0},u.$watch("infiniteScrollDistance",y),y(u.infiniteScrollDistance),v=function(n){return l=!n,l&&h?(h=!1,s()):void 0},u.$watch("infiniteScrollDisabled",v),v(u.infiniteScrollDisabled),p=function(n){return k=n},u.$watch("infiniteScrollUseDocumentBottom",p),p(u.infiniteScrollUseDocumentBottom),c=function(n){return null!=o&&o.off("scroll",s),o="function"==typeof n.last&&n!==t?n.last():n,null!=n?o.on("scroll",s):void 0},c(t),a=function(n){if(null!=n&&0!==n.length){if(n=angular.element(n),null!=n)return c(n);throw new Exception("invalid infinite-scroll-container attribute.");}},u.$watch("infiniteScrollContainer",a),a(u.infiniteScrollContainer||[]),null!=e.infiniteScrollParent&&c(angular.element(f.parent())),null!=e.infiniteScrollImmediateCheck&&(w=u.$eval(e.infiniteScrollImmediateCheck)),i(function(){if(w)return s()},0)}}}]);saveAs=saveAs||function(n){"use strict";if(typeof navigator=="undefined"||!/MSIE [1-9]\./.test(navigator.userAgent)){var v=n.document,r=function(){return n.URL||n.webkitURL||n},i=v.createElementNS("http://www.w3.org/1999/xhtml","a"),y="download"in i,p=function(n){var t=new MouseEvent("click");n.dispatchEvent(t)},s=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),u=n.webkitRequestFileSystem,h=n.requestFileSystem||u||n.mozRequestFileSystem,w=function(t){(n.setImmediate||n.setTimeout)(function(){throw t;},0)},f="application/octet-stream",c=0,b=500,e=function(t){var i=function(){typeof t=="string"?r().revokeObjectURL(t):t.remove()};n.chrome?i():setTimeout(i,b)},o=function(n,t,i){var r,u;for(t=[].concat(t),r=t.length;r--;)if(u=n["on"+t[r]],typeof u=="function")try{u.call(n,i||n)}catch(f){w(f)}},l=function(n){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["﻿",n],{type:n.type}):n},a=function(t,a,v){v||(t=l(t));var w=this,nt=t.type,it=!1,b,d,tt=function(){o(w,"writestart progress write writeend".split(" "))},k=function(){var i,u;if(d&&s&&typeof FileReader!="undefined"){i=new FileReader;i.onloadend=function(){var n=i.result;d.location.href="data:attachment/file"+n.slice(n.search(/[,;]/));w.readyState=w.DONE;tt()};i.readAsDataURL(t);w.readyState=w.INIT;return}(it||!b)&&(b=r().createObjectURL(t));d?d.location.href=b:(u=n.open(b,"_blank"),u==undefined&&s&&(n.location.href=b));w.readyState=w.DONE;tt();e(b)},g=function(n){return function(){if(w.readyState!==w.DONE)return n.apply(this,arguments)}},rt={create:!0,exclusive:!1},ut;if(w.readyState=w.INIT,a||(a="download"),y){b=r().createObjectURL(t);setTimeout(function(){i.href=b;i.download=a;p(i);tt();e(b);w.readyState=w.DONE});return}if(n.chrome&&nt&&nt!==f&&(ut=t.slice||t.webkitSlice,t=ut.call(t,0,t.size,f),it=!0),u&&a!=="download"&&(a+=".download"),(nt===f||u)&&(d=n),!h){k();return}c+=t.size;h(n.TEMPORARY,c,g(function(n){n.root.getDirectory("saved",rt,g(function(n){var i=function(){n.getFile(a,rt,g(function(n){n.createWriter(g(function(i){i.onwriteend=function(t){d.location.href=n.toURL();w.readyState=w.DONE;o(w,"writeend",t);e(n)};i.onerror=function(){var n=i.error;n.code!==n.ABORT_ERR&&k()};"writestart progress write abort".split(" ").forEach(function(n){i["on"+n]=w["on"+n]});i.write(t);w.abort=function(){i.abort();w.readyState=w.DONE};w.readyState=w.WRITING}),k)}),k)};n.getFile(a,{create:!1},g(function(n){n.remove();i()}),g(function(n){n.code===n.NOT_FOUND_ERR?i():k()}))}),k)}),k)},t=a.prototype,k=function(n,t,i){return new a(n,t,i)};return typeof navigator!="undefined"&&navigator.msSaveOrOpenBlob?function(n,t,i){return i||(n=l(n)),navigator.msSaveOrOpenBlob(n,t||"download")}:(t.abort=function(){var n=this;n.readyState=n.DONE;o(n,"abort")},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,k)}}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||this.content);typeof module!="undefined"&&module.exports?module.exports.saveAs=saveAs:typeof define!="undefined"&&define!==null&&define.amd!=null&&define([],function(){return saveAs}),function(n){"use strict";if(n.URL=n.URL||n.webkitURL,n.Blob&&n.URL)try{new Blob;return}catch(i){}var t=n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||function(n){var s=function(n){return Object.prototype.toString.call(n).match(/^\[object\s(.*)\]$/)[1]},h=function(){this.data=[]},t=function(n,t,i){this.data=n;this.size=n.length;this.type=t;this.encoding=i},u=h.prototype,r=t.prototype,c=n.FileReaderSync,l=function(n){this.code=this[this.name=n]},a="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),f=a.length,i=n.URL||n.webkitURL||n,v=i.createObjectURL,y=i.revokeObjectURL,e=i,p=n.btoa,w=n.atob,b=n.ArrayBuffer,o=n.Uint8Array,k=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(t.fake=r.fake=!0;f--;)l.prototype[a[f]]=f+1;return i.createObjectURL||(e=n.URL=function(n){var t=document.createElementNS("http://www.w3.org/1999/xhtml","a"),i;return t.href=n,"origin"in t||(t.protocol.toLowerCase()==="data:"?t.origin=null:(i=n.match(k),t.origin=i&&i[1])),t}),e.createObjectURL=function(n){var u=n.type,r;return(u===null&&(u="application/octet-stream"),n instanceof t)?(r="data:"+u,n.encoding==="base64")?r+";base64,"+n.data:n.encoding==="URI"?r+","+decodeURIComponent(n.data):p?r+";base64,"+p(n.data):r+","+encodeURIComponent(n.data):v?v.call(i,n):void 0},e.revokeObjectURL=function(n){n.substring(0,5)!=="data:"&&y&&y.call(i,n)},u.append=function(n){var i=this.data,e;if(o&&(n instanceof b||n instanceof o)){for(var u="",f=new o(n),r=0,h=f.length;r<h;r++)u+=String.fromCharCode(f[r]);i.push(u)}else if(s(n)==="Blob"||s(n)==="File")if(c)e=new c,i.push(e.readAsBinaryString(n));else throw new l("NOT_READABLE_ERR");else n instanceof t?n.encoding==="base64"&&w?i.push(w(n.data)):n.encoding==="URI"?i.push(decodeURIComponent(n.data)):n.encoding==="raw"&&i.push(n.data):(typeof n!="string"&&(n+=""),i.push(unescape(encodeURIComponent(n))))},u.getBlob=function(n){return arguments.length||(n=null),new t(this.data.join(""),n,"raw")},u.toString=function(){return"[object BlobBuilder]"},r.slice=function(n,i,r){var u=arguments.length;return u<3&&(r=null),new t(this.data.slice(n,u>1?i:this.data.length),r,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=0;delete this.data},h}(n);n.Blob=function(n,i){var e=i?i.type||"":"",u=new t,r,f;if(n)for(r=0,f=n.length;r<f;r++)u.append(n[r]);return u.getBlob(e)}}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||this.content||this),function(n,t){"use strict";typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?module.exports=t():n.viewportUnitsBuggyfill=t()}(this,function(){"use strict";function y(n,t){var i;return function(){var r=this,u=arguments,f=function(){n.apply(r,u)};clearTimeout(i);i=setTimeout(f,t)}}function p(){try{return window.self!==window.top}catch(n){return!0}}function w(t){e||(t===!0&&(t={force:!0}),n=t||{},n.isMobileSafari=s,n.force||s||o||n.hacks&&n.hacks.required(n))&&(n.hacks&&n.hacks.initialize(n),e=!0,u=document.createElement("style"),u.id="patched-viewport",document.head.appendChild(u),nt(function(){var t=y(f,n.refreshDebounceWait||100);window.addEventListener("orientationchange",t,!0);window.addEventListener("pageshow",t,!0);(n.force||o||p())&&(window.addEventListener("resize",t,!0),n._listeningToResize=!0);n.hacks&&n.hacks.initializeEvents(n,f,t);f()}))}function b(){u.textContent=a()}function f(){e&&(c(),setTimeout(function(){b()},1))}function c(){return t=[],r.call(document.styleSheets,function(n){n.ownerNode.id!=="patched-viewport"&&n.cssRules&&(n.media&&n.media.mediaText&&window.matchMedia&&!window.matchMedia(n.media.mediaText).matches||r.call(n.cssRules,l))}),t}function l(u){if(u.type===7){var f="";try{f=u.cssText}catch(e){}i.lastIndex=0;i.test(f)&&(t.push([u,null,f]),n.hacks&&n.hacks.findDeclarations(t,u,null,f));return}if(!u.style){if(!u.cssRules)return;r.call(u.cssRules,function(n){l(n)});return}r.call(u.style,function(r){var f=u.style.getPropertyValue(r);i.lastIndex=0;i.test(f)&&(t.push([u,r,f]),n.hacks&&n.hacks.findDeclarations(t,u,r,f))})}function a(){h=g();var u=[],n=[],i,r;return t.forEach(function(t){var f=k.apply(null,t),e=f.selector.length?f.selector.join(" {\n")+" {\n":"",o=new Array(f.selector.length+1).join("\n}");if(!e||e!==i){n.length&&(u.push(i+n.join("\n")+r),n.length=0);e?(i=e,r=o,n.push(f.content)):(u.push(f.content),i=null,r=null);return}e&&!i&&(i=e,r=o);n.push(f.content)}),n.length&&u.push(i+n.join("\n")+r),u.join("\n\n")}function k(t,r,u){var f=u.replace(i,d),o=[],e;for(n.hacks&&(f=n.hacks.overwriteDeclaration(t,r,f)),r&&(o.push(t.selectorText),f=r+": "+f+";"),e=t.parentRule;e;)o.unshift("@media "+e.media.mediaText),e=e.parentRule;return{selector:o,content:f}}function d(n,t,i){var r=h[i],u=parseFloat(t)/100;return u*r+"px"}function g(){var n=window.innerHeight,t=window.innerWidth;return{vh:n,vw:t,vmax:Math.max(t,n),vmin:Math.min(t,n)}}function nt(n){var t=0,i=function(){t--;t||n()};r.call(document.styleSheets,function(n){n.href&&v(n.href)!==v(location.href)&&(t++,tt(n.ownerNode,i))});t||n()}function v(n){return n.slice(0,n.indexOf("/",n.indexOf("://")+3))}function tt(n,t){it(n.href,function(){var i=document.createElement("style");i.media=n.media;i.setAttribute("data-href",n.href);i.textContent=this.responseText;n.parentNode.replaceChild(i,n);t()},t)}function it(n,t,i){var r=new XMLHttpRequest;if("withCredentials"in r)r.open("GET",n,!0);else if(typeof XDomainRequest!="undefined")r=new XDomainRequest,r.open("GET",n);else throw new Error("cross-domain XHR not supported");return r.onload=t,r.onerror=i,r.send(),r}var e=!1,n,s=/(iPhone|iPod|iPad).+AppleWebKit/i.test(window.navigator.userAgent),i=/([+-]?[0-9.]+)(vh|vw|vmin|vmax)/g,r=[].forEach,h,t,u,o=!1;return{version:"0.4.1",findProperties:c,getCss:a,init:w,refresh:f}}),function(){var n,t;n=function(){function n(n,t){var i,r;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},typeof n=="object")for(i in n)r=n[i],this.options[i]=r;this.context=t!=null?t:this;this.unique=this._genKey()}return n.prototype.hasNext=function(){return typeof this.context.nextUrl=="string"&&this.context.nextUrl.length>0},n.prototype.next=function(){return this.hasNext()?this.run(this.context.nextUrl):!1},n.prototype.run=function(t){var u,r,i;if(typeof this.options.clientId!="string"&&typeof this.options.accessToken!="string")throw new Error("Missing clientId or accessToken.");if(typeof this.options.accessToken!="string"&&typeof this.options.clientId!="string")throw new Error("Missing clientId or accessToken.");return this.options.before!=null&&typeof this.options.before=="function"&&this.options.before.call(this),typeof document!="undefined"&&document!==null&&(i=document.createElement("script"),i.id="instafeed-fetcher",i.src=t||this._buildUrl(),u=document.getElementsByTagName("head"),u[0].appendChild(i),r="instafeedCache"+this.unique,window[r]=new n(this.options,this),window[r].unique=this.unique),!0},n.prototype.parse=function(n){var f,u,b,l,t,a,r,i,e,tt,v,k,o,y,p,s,h,c,d,g,nt,w;if(typeof n!="object"){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response");}if(n.meta.code!==200){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,n.meta.error_message),!1;throw new Error("Error from Instagram: "+n.meta.error_message);}if(n.data.length===0){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram");}if(this.options.success!=null&&typeof this.options.success=="function"&&this.options.success.call(this,n),this.context.nextUrl="",n.pagination!=null&&(this.context.nextUrl=n.pagination.next_url),this.options.sortBy!=="none"){y=this.options.sortBy==="random"?["","random"]:this.options.sortBy.split("-");o=y[0]==="least"?!0:!1;switch(y[1]){case"random":n.data.sort(function(){return.5-Math.random()});break;case"recent":n.data=this._sortBy(n.data,"created_time",o);break;case"liked":n.data=this._sortBy(n.data,"likes.count",o);break;case"commented":n.data=this._sortBy(n.data,"comments.count",o);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.");}}if(typeof document!="undefined"&&document!==null&&this.options.mock===!1){if(i=n.data,this.options.limit!=null&&i.length>this.options.limit&&(i=i.slice(0,this.options.limit+1||9e9)),u=document.createDocumentFragment(),this.options.filter!=null&&typeof this.options.filter=="function"&&(i=this._filter(i,this.options.filter)),this.options.template!=null&&typeof this.options.template=="string"){for(l="",a="",tt="",p=document.createElement("div"),s=0,d=i.length;s<d;s++)t=i[s],r=t.images[this.options.resolution].url,this.options.useHttp||(r=r.replace("http://","//")),a=this._makeTemplate(this.options.template,{model:t,id:t.id,link:t.link,image:r,caption:this._getObjectProperty(t,"caption.text"),likes:t.likes.count,comments:t.comments.count,location:this._getObjectProperty(t,"location.name")}),l+=a;for(p.innerHTML=l,w=[].slice.call(p.childNodes),h=0,g=w.length;h<g;h++)k=w[h],u.appendChild(k)}else for(c=0,nt=i.length;c<nt;c++)t=i[c],e=document.createElement("img"),r=t.images[this.options.resolution].url,this.options.useHttp||(r=r.replace("http://","//")),e.src=r,this.options.links===!0?(f=document.createElement("a"),f.href=t.link,f.appendChild(e),u.appendChild(f)):u.appendChild(e);document.getElementById(this.options.target).appendChild(u);b=document.getElementsByTagName("head")[0];b.removeChild(document.getElementById("instafeed-fetcher"));v="instafeedCache"+this.unique;window[v]=void 0;try{delete window[v]}catch(it){}}return this.options.after!=null&&typeof this.options.after=="function"&&this.options.after.call(this),!0},n.prototype._buildUrl=function(){var i,n,t;i="https://api.instagram.com/v1";switch(this.options.get){case"popular":n="media/popular";break;case"tagged":if(typeof this.options.tagName!="string")throw new Error("No tag name specified. Use the 'tagName' option.");n="tags/"+this.options.tagName+"/media/recent";break;case"location":if(typeof this.options.locationId!="number")throw new Error("No location specified. Use the 'locationId' option.");n="locations/"+this.options.locationId+"/media/recent";break;case"user":if(typeof this.options.userId!="string")throw new Error("No user specified. Use the 'userId' option.");if(typeof this.options.accessToken!="string")throw new Error("No access token. Use the 'accessToken' option.");n="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.");}return t=""+i+"/"+n,t+=this.options.accessToken!=null?"?access_token="+this.options.accessToken:"?client_id="+this.options.clientId,this.options.limit!=null&&(t+="&count="+this.options.limit),t+="&callback=instafeedCache"+this.unique+".parse",t},n.prototype._genKey=function(){var n;return n=function(){return((1+Math.random())*65536|0).toString(16).substring(1)},""+n()+n()+n()+n()},n.prototype._makeTemplate=function(n,t){for(var u,f,e,r=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=n;r.test(i);)u=i.match(r)[1],f=(e=this._getObjectProperty(t,u))!=null?e:"",i=i.replace(r,""+f);return i},n.prototype._getObjectProperty=function(n,t){var i,r;for(t=t.replace(/\[(\w+)\]/g,".$1"),r=t.split(".");r.length;){if(i=r.shift(),!(n!=null&&i in n))return null;n=n[i]}return n},n.prototype._sortBy=function(n,t,i){var r;return r=function(n,r){var u,f;return u=this._getObjectProperty(n,t),f=this._getObjectProperty(r,t),i?u>f?1:-1:u<f?1:-1},n.sort(r.bind(this)),n},n.prototype._filter=function(n,t){var r,u,f,i,e;for(r=[],f=function(n){if(t(n))return r.push(n)},i=0,e=n.length;i<e;i++)u=n[i],f(u);return r},n}();t=typeof exports!="undefined"&&exports!==null?exports:window;t.Instafeed=n}.call(this);!function(){"use strict";var n=angular.module("pasvaz.bindonce",[]);n.directive("bindonce",function(){var t=function(n){if(n&&0!==n.length){var t=angular.lowercase(""+n);n=!("f"===t||"0"===t||"false"===t||"no"===t||"n"===t||"[]"===t)}else n=!1;return n},n=parseInt((/msie (\d+)/.exec(angular.lowercase(navigator.userAgent))||[])[1],10);return isNaN(n)&&(n=parseInt((/trident\/.*; rv:(\d+)/.exec(angular.lowercase(navigator.userAgent))||[])[1],10)),{restrict:"AM",controller:["$scope","$element","$attrs","$interpolate",function(i,r,u,f){var o=function(n,i,r){var u="show"===i?"":"none",f="hide"===i?"":"none";n.css("display",t(r)?u:f)},s=function(n,t){if(angular.isObject(t)&&!angular.isArray(t)){var i=[];angular.forEach(t,function(n,t){n&&i.push(t)});t=i}t&&n.addClass(angular.isArray(t)?t.join(" "):t)},e=function(n,t){n.transclude(t,function(t){var r=n.element.parent(),i=n.element&&n.element[n.element.length-1],u=r&&r[0]||i&&i.parentNode,f=i&&i.nextSibling||null;angular.forEach(t,function(n){u.insertBefore(n,f)})})},h={watcherRemover:void 0,binders:[],group:u.boName,element:r,ran:!1,addBinder:function(n){this.binders.push(n);this.ran&&this.runBinders()},setupWatcher:function(n){var t=this;this.watcherRemover=i.$watch(n,function(n){void 0!==n&&(t.removeWatcher(),t.checkBindonce(n))},!0)},checkBindonce:function(n){var t=this,i=n.$promise?n.$promise.then:n.then;"function"==typeof i?i(function(){t.runBinders()}):t.runBinders()},removeWatcher:function(){void 0!==this.watcherRemover&&(this.watcherRemover(),this.watcherRemover=void 0)},runBinders:function(){for(var i,r,c,h,u;this.binders.length>0;)if(i=this.binders.shift(),!this.group||this.group==i.group){r=i.scope.$eval(i.interpolate?f(i.value):i.value);switch(i.attr){case"boIf":t(r)&&e(i,i.scope.$new());break;case"boSwitch":h=i.controller[0];(c=h.cases["!"+r]||h.cases["?"])&&(i.scope.$eval(i.attrs.change),angular.forEach(c,function(n){e(n,i.scope.$new())}));break;case"boSwitchWhen":u=i.controller[0];u.cases["!"+i.attrs.boSwitchWhen]=u.cases["!"+i.attrs.boSwitchWhen]||[];u.cases["!"+i.attrs.boSwitchWhen].push({transclude:i.transclude,element:i.element});break;case"boSwitchDefault":u=i.controller[0];u.cases["?"]=u.cases["?"]||[];u.cases["?"].push({transclude:i.transclude,element:i.element});break;case"hide":case"show":o(i.element,i.attr,r);break;case"class":s(i.element,r);break;case"text":i.element.text(r);break;case"html":i.element.html(r);break;case"style":i.element.css(r);break;case"disabled":i.element.prop("disabled",r);break;case"src":i.element.attr(i.attr,r);n&&i.element.prop("src",r);break;case"attr":angular.forEach(i.attrs,function(n,t){var r,u;t.match(/^boAttr./)&&i.attrs[t]&&(r=t.replace(/^boAttr/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=i.scope.$eval(i.attrs[t]),i.element.attr(r,u))});break;case"href":case"alt":case"title":case"id":case"value":i.element.attr(i.attr,r)}}this.ran=!0}};angular.extend(this,h)}],link:function(n,t,i,r){var u=i.bindonce&&n.$eval(i.bindonce);void 0!==u?r.checkBindonce(u):(r.setupWatcher(i.bindonce),t.bind("$destroy",r.removeWatcher))}}});angular.forEach([{directiveName:"boShow",attribute:"show"},{directiveName:"boHide",attribute:"hide"},{directiveName:"boClass",attribute:"class"},{directiveName:"boText",attribute:"text"},{directiveName:"boBind",attribute:"text"},{directiveName:"boHtml",attribute:"html"},{directiveName:"boSrcI",attribute:"src",interpolate:!0},{directiveName:"boSrc",attribute:"src"},{directiveName:"boHrefI",attribute:"href",interpolate:!0},{directiveName:"boHref",attribute:"href"},{directiveName:"boAlt",attribute:"alt"},{directiveName:"boTitle",attribute:"title"},{directiveName:"boId",attribute:"id"},{directiveName:"boStyle",attribute:"style"},{directiveName:"boDisabled",attribute:"disabled"},{directiveName:"boValue",attribute:"value"},{directiveName:"boAttr",attribute:"attr"},{directiveName:"boIf",transclude:"element",terminal:!0,priority:1e3},{directiveName:"boSwitch",require:"boSwitch",controller:function(){this.cases={}}},{directiveName:"boSwitchWhen",transclude:"element",priority:800,require:"^boSwitch"},{directiveName:"boSwitchDefault",transclude:"element",priority:800,require:"^boSwitch"}],function(t){var i=200;return n.directive(t.directiveName,function(){return{priority:t.priority||i,transclude:t.transclude||!1,terminal:t.terminal||!1,require:["^bindonce"].concat(t.require||[]),controller:t.controller,compile:function(n,i,r){return function(n,i,u,f){var e=f[0],s=u.boParent,o,h;if(s&&e.group!==s){for(o=e.element.parent(),e=void 0;9!==o[0].nodeType&&o.length;){if((h=o.data("$bindonceController"))&&h.group===s){e=h;break}o=o.parent()}if(!e)throw new Error("No bindonce controller: "+s);}e.addBinder({element:i,attr:t.attribute||t.directiveName,attrs:u,value:u[t.directiveName],interpolate:t.interpolate,group:s,transclude:r,controller:f.slice(1),scope:n})}}}})})}();!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,r){var f,e,u=this;if(u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(t),appendDots:n(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(n,t){return'<button type="button" data-role="none">'+(t+1)+"<\/button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},n.extend(u,u.initials),u.activeBreakpoint=null,u.animType=null,u.animProp=null,u.breakpoints=[],u.breakpointSettings=[],u.cssTransitions=!1,u.paused=!1,u.positionProp=null,u.respondTo=null,u.shouldClick=!0,u.$slider=n(t),u.$slidesCache=null,u.transformType=null,u.transitionType=null,u.windowWidth=0,u.windowTimer=null,u.options=n.extend({},u.defaults,r),u.currentSlide=u.options.initialSlide,u.originalSettings=u.options,f=u.options.responsive||null,f&&f.length>-1){u.respondTo=u.options.respondTo||"window";for(e in f)f.hasOwnProperty(e)&&(u.breakpoints.push(f[e].breakpoint),u.breakpointSettings[f[e].breakpoint]=f[e].settings);u.breakpoints.sort(function(n,t){return t-n})}u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.instanceUid=i++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.init();u.checkResponsive()}var i=0;return t}();t.prototype.addSlide=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(0>i||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateSlide=function(t,i){var u={},r=this,f;1===r.options.slidesToShow&&r.options.adaptiveHeight===!0&&r.options.vertical===!1&&(f=r.$slides.eq(r.currentSlide).outerHeight(!0),r.$list.animate({height:f},r.options.speed));r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}}):(r.applyTransition(),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.asNavFor=function(t){var i=this,r=null!=i.options.asNavFor?n(i.options.asNavFor).getSlick():null;null!=r&&r.slideHandler(t,!0)};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer);n.slideCount>n.options.slidesToShow&&n.paused!==!0&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this;n.options.infinite===!1?1===n.direction?(n.currentSlide+1===n.slideCount-1&&(n.direction=0),n.slideHandler(n.currentSlide+n.options.slidesToScroll)):(0==n.currentSlide-1&&(n.direction=1),n.slideHandler(n.currentSlide-n.options.slidesToScroll)):n.slideHandler(n.currentSlide+n.options.slidesToScroll)};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow=n(t.options.prevArrow),t.$nextArrow=n(t.options.nextArrow),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.appendTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled"))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(r='<ul class="'+t.options.dotsClass+'">',i=0;i<=t.getDotCount();i+=1)r+="<li>"+t.options.customPaging.call(this,t,i)+"<\/li>";r+="<\/ul>";t.$dots=n(r).appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("index",t)});t.$slidesCache=t.$slides;t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);t.options.centerMode===!0&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.options.accessibility===!0&&t.$list.prop("tabIndex",0);t.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.checkResponsive=function(){var r,i,u,t=this,f=t.$slider.width(),e=window.innerWidth||n(window).width();if("window"===t.respondTo?u=e:"slider"===t.respondTo?u=f:"min"===t.respondTo&&(u=Math.min(e,f)),t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&null!==t.originalSettings.responsive){i=null;for(r in t.breakpoints)t.breakpoints.hasOwnProperty(r)&&u<t.breakpoints[r]&&(i=t.breakpoints[r]);null!==i?null!==t.activeBreakpoint?i!==t.activeBreakpoint&&(t.activeBreakpoint=i,t.options=n.extend({},t.originalSettings,t.breakpointSettings[i]),t.refresh()):(t.activeBreakpoint=i,t.options=n.extend({},t.originalSettings,t.breakpointSettings[i]),t.refresh()):null!==t.activeBreakpoint&&(t.activeBreakpoint=null,t.options=t.originalSettings,t.refresh())}};t.prototype.changeSlide=function(t,i){var e,o,c,u,s,r=this,l=n(t.target),f,h;switch(l.is("a")&&t.preventDefault(),c=0!=r.slideCount%r.options.slidesToScroll,e=c?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===e?r.options.slidesToScroll:r.options.slidesToShow-e;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,i);break;case"next":o=0===e?r.options.slidesToScroll:e;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,i);break;case"index":if(f=0===t.data.index?0:t.data.index||n(t.target).parent().index()*r.options.slidesToScroll,u=r.getNavigableIndexes(),s=0,u[f]&&u[f]===f)if(f>u[u.length-1])f=u[u.length-1];else for(h in u){if(f<u[h]){f=s;break}s=u[h]}r.slideHandler(f,!1,i);default:return}};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(){var t=this;t.autoPlayClear();t.touchObject={};n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&"object"!=typeof t.options.prevArrow&&t.$prevArrow.remove();t.$nextArrow&&"object"!=typeof t.options.nextArrow&&t.$nextArrow.remove();t.$slides.parent().hasClass("slick-track")&&t.$slides.unwrap().unwrap();t.$slides.removeClass("slick-slide slick-active slick-center slick-visible").removeAttr("index").css({position:"",left:"",top:"",zIndex:"",opacity:"",width:""});t.$slider.removeClass("slick-slider");t.$slider.removeClass("slick-initialized");t.$list.off(".slick");n(window).off(".slick-"+t.instanceUid);n(document).off(".slick-"+t.instanceUid)};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t,i){var r=this;r.cssTransitions===!1?(r.$slides.eq(t).css({zIndex:1e3}),r.$slides.eq(t).animate({opacity:1},r.options.speed,r.options.easing,i),r.$slides.eq(n).animate({opacity:0},r.options.speed,r.options.easing)):(r.applyTransition(t),r.applyTransition(n),r.$slides.eq(t).css({opacity:1,zIndex:1e3}),r.$slides.eq(n).css({opacity:0}),i&&setTimeout(function(){r.disableTransition(t);r.disableTransition(n);i.call()},r.options.speed))};t.prototype.filterSlides=function(n){var t=this;null!==n&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.getCurrent=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)t=Math.ceil(n.slideCount/n.options.slidesToScroll);else for(;i<n.slideCount;)++t,i=r+n.options.slidesToShow,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return t-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=-1*t.slideWidth*t.options.slidesToShow,u=-1*r*t.options.slidesToShow),0!=t.slideCount%t.options.slidesToScroll&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=-1*(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth,u=-1*(t.options.slidesToShow-(n-t.slideCount))*r):(t.slideOffset=-1*t.slideCount%t.options.slidesToScroll*t.slideWidth,u=-1*t.slideCount%t.options.slidesToScroll*r))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?-1*n*t.slideWidth+t.slideOffset:-1*n*r+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=i[0]?-1*i[0].offsetLeft:0,t.options.centerMode===!0&&(i=t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getNavigableIndexes=function(){for(var n=this,t=0,i=0,r=[];t<n.slideCount;)r.push(t),t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return r};t.prototype.getSlideCount=function(){var r,t=this,i;return t.options.swipeToSlide===!0?(i=null,t.$slideTrack.find(".slick-slide").each(function(r,u){if(u.offsetLeft+n(u).outerWidth()/2>-1*t.swipeLeft)return(i=u,!1)}),r=Math.abs(n(i).attr("index")-t.currentSlide)):t.options.slidesToScroll};t.prototype.init=function(){var t=this;n(t.$slider).hasClass("slick-initialized")||(n(t.$slider).addClass("slick-initialized"),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots());null!==t.options.onInit&&t.options.onInit.call(this,t)};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&n("li",t.$dots).on("mouseenter.slick",function(){t.paused=!0;t.autoPlayClear()}).on("mouseleave.slick",function(){t.paused=!1;t.autoPlay()})};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);t.options.pauseOnHover===!0&&t.options.autoplay===!0&&(t.$list.on("mouseenter.slick",function(){t.paused=!0;t.autoPlayClear()}),t.$list.on("mouseleave.slick",function(){t.paused=!1;t.autoPlay()}));t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive();t.setPosition()});n(window).on("resize.slick.slick-"+t.instanceUid,function(){n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.setPosition()},50))});n("*[draggable!=true]",t.$slideTrack).on("dragstart",function(n){n.preventDefault()});n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show();n.options.autoplay===!0&&n.autoPlay()};t.prototype.keyHandler=function(n){var t=this;37===n.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:"previous"}}):39===n.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:"next"}})};t.prototype.lazyLoad=function(){function f(t){n("img[data-lazy]",t).each(function(){var t=n(this),i=n(this).attr("data-lazy");t.load(function(){t.animate({opacity:1},200)}).css({opacity:0}).attr("src",i).removeAttr("data-lazy").removeClass("slick-loading")})}var e,r,i,u,t=this;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=i+t.options.slidesToShow,t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):0===t.currentSlide&&(r=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.postSlide=function(n){var t=this;null!==t.options.onAfterChange&&t.options.onAfterChange.call(this,t,n);t.animating=!1;t.setPosition();t.swipeLeft=null;t.options.autoplay===!0&&t.paused===!1&&t.autoPlay()};t.prototype.progressiveLazyLoad=function(){var r,t,i=this;r=n("img[data-lazy]",i.$slider).length;r>0&&(t=n("img[data-lazy]",i.$slider).first(),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}).error(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}))};t.prototype.refresh=function(){var t=this,i=t.currentSlide;t.destroy();n.extend(t,t.initials);t.init();t.changeSlide({data:{message:"index",index:i}},!0)};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.options.focusOnSelect===!0&&n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);t.setSlideClasses(0);t.setPosition();null!==t.options.onReInit&&t.options.onReInit.call(this,t)};t.prototype.removeSlide=function(n,t,i){var r=this;return"boolean"==typeof n?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||0>n||n>r.slideCount-1?!1:(r.unload(),i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit(),void 0)};t.prototype.setCSS=function(n){var r,u,t=this,i={};t.options.rtl===!0&&(n=-n);r="left"==t.positionProp?n+"px":"0px";u="top"==t.positionProp?n+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var t=this,i,r;(t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1)?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?(i=0,t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.children(".slick-slide").each(function(){i+=Math.ceil(n(this).outerWidth(!0))}),t.$slideTrack.width(Math.ceil(i)+1)):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));r=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-r)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=-1*t.slideWidth*r;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:800,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:800,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();null!==n.options.onSetPosition&&n.options.onSetPosition.call(this,n)};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&n.options.useCSS===!0&&(n.cssTransitions=!0);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=null!==n.animType&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;t.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");i=t.$slider.find(".slick-slide");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active"):i.length<=t.options.slidesToShow?i.addClass("slick-active"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active"));"ondemand"===t.options.lazyLoad&&t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;u>i;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.selectHandler=function(t){var i=this,r=parseInt(n(t.target).parents(".slick-slide").attr("index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.$slider.find(".slick-slide").removeClass("slick-active"),i.$slides.eq(r).addClass("slick-active"),i.options.centerMode===!0&&(i.$slider.find(".slick-slide").removeClass("slick-center"),i.$slides.eq(r).addClass("slick-center")),i.asNavFor(r),void 0):(i.slideHandler(r),void 0)};t.prototype.slideHandler=function(n,t,i){var u,f,o,e,s=null,r=this;return t=t||!1,r.animating===!0&&r.options.waitForAnimate===!0||r.options.fade===!0&&r.currentSlide===n||r.slideCount<=r.options.slidesToShow?void 0:(t===!1&&r.asNavFor(n),u=n,s=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(0>n||n>r.getDotCount()*r.options.slidesToScroll)?(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u)),void 0):r.options.infinite===!1&&r.options.centerMode===!0&&(0>n||n>r.slideCount-r.options.slidesToScroll)?(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u)),void 0):(r.options.autoplay===!0&&clearInterval(r.autoPlayTimer),f=0>u?0!=r.slideCount%r.options.slidesToScroll?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?0!=r.slideCount%r.options.slidesToScroll?0:u-r.slideCount:u,r.animating=!0,null!==r.options.onBeforeChange&&n!==r.currentSlide&&r.options.onBeforeChange.call(this,r,r.currentSlide,f),o=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),r.options.fade===!0?(i!==!0?r.fadeSlide(o,f,function(){r.postSlide(f)}):r.postSlide(f),void 0):(i!==!0?r.animateSlide(s,function(){r.postSlide(f)}):r.postSlide(f),void 0)))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?t.options.rtl===!1?"left":"right":360>=n&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&225>=n?t.options.rtl===!1?"right":"left":"vertical"};t.prototype.swipeEnd=function(){var n=this;if(n.dragging=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.swipeLength>=n.touchObject.minSwipe)switch(n.swipeDirection()){case"left":n.slideHandler(n.currentSlide+n.getSlideCount());n.currentDirection=0;n.touchObject={};break;case"right":n.slideHandler(n.currentSlide-n.getSlideCount());n.currentDirection=1;n.touchObject={}}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var r,f,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!t.dragging||i&&1!==i.length?!1:(r=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),f=t.swipeDirection(),"vertical"!==f?(void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.swipeLeft=t.options.vertical===!1?r+t.touchObject.swipeLength*u:r+t.touchObject.swipeLength*(t.$list.height()/t.listWidth)*u,t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):(t.setCSS(t.swipeLeft),void 0)):void 0)};t.prototype.swipeStart=function(n){var i,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,t.dragging=!0,void 0)};t.prototype.unfilterSlides=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&"object"!=typeof t.options.prevArrow&&t.$prevArrow.remove();t.$nextArrow&&"object"!=typeof t.options.nextArrow&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")};t.prototype.updateArrows=function(){var t,n=this;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.options.infinite!==!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.removeClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled"),n.$prevArrow.removeClass("slick-disabled")):n.currentSlide>n.slideCount-n.options.slidesToShow+t&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled"),n.$prevArrow.removeClass("slick-disabled")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};n.fn.slick=function(n){var i=this;return i.each(function(i,r){r.slick=new t(r,n)})};n.fn.slickAdd=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.addSlide(n,t,i)})};n.fn.slickCurrentSlide=function(){var n=this;return n.get(0).slick.getCurrent()};n.fn.slickFilter=function(n){var t=this;return t.each(function(t,i){i.slick.filterSlides(n)})};n.fn.slickGoTo=function(n,t){var i=this;return i.each(function(i,r){r.slick.changeSlide({data:{message:"index",index:parseInt(n)}},t)})};n.fn.slickNext=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"next"}})})};n.fn.slickPause=function(){var n=this;return n.each(function(n,t){t.slick.autoPlayClear();t.slick.paused=!0})};n.fn.slickPlay=function(){var n=this;return n.each(function(n,t){t.slick.paused=!1;t.slick.autoPlay()})};n.fn.slickPrev=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"previous"}})})};n.fn.slickRemove=function(n,t){var i=this;return i.each(function(i,r){r.slick.removeSlide(n,t)})};n.fn.slickRemoveAll=function(){var n=this;return n.each(function(n,t){t.slick.removeSlide(null,null,!0)})};n.fn.slickGetOption=function(n){var t=this;return t.get(0).slick.options[n]};n.fn.slickSetOption=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.options[n]=t;i===!0&&(u.slick.unload(),u.slick.reinit())})};n.fn.slickUnfilter=function(){var n=this;return n.each(function(n,t){t.slick.unfilterSlides()})};n.fn.unslick=function(){var n=this;return n.each(function(n,t){t.slick&&t.slick.destroy()})};n.fn.getSlick=function(){var n=null,t=this;return t.each(function(t,i){n=i.slick}),n}}),function(n){"use strict";function t(t,i){return this.$target=n(t),this.opts=n.extend({},s,i),this.isOpen===undefined&&this._init(),this}var u,f,e,o,i,r,s={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,preventClicks:!0,onShow:undefined,onHide:undefined};t.prototype._init=function(){var t=this;this.$link=this.$target.find("a");this.$image=this.$target.find("img");this.$flyout=n('<div class="easyzoom-flyout" />');this.$notice=n('<div class="easyzoom-notice" />');this.$target.on("mouseenter.easyzoom touchstart.easyzoom",function(n){t.isMouseOver=!0;n.originalEvent.touches&&n.originalEvent.touches.length!==1||(n.preventDefault(),t.show(n,!0))}).on("mousemove.easyzoom touchmove.easyzoom",function(n){t.isOpen&&(n.preventDefault(),t._move(n))}).on("mouseleave.easyzoom touchend.easyzoom",function(){t.isMouseOver=!1;t.isOpen&&t.hide()});if(this.opts.preventClicks)this.$target.on("click.easyzoom","a",function(n){n.preventDefault()})};t.prototype.show=function(n,t){var i,r,s,h,c=this;if(!this.isReady){this._load(this.$link.attr("href"),function(){(c.isMouseOver||!t)&&c.show(n)});return}this.$target.append(this.$flyout);i=this.$target.width();r=this.$target.height();s=this.$flyout.width();h=this.$target.height();u=this.$zoom.width()-s;f=this.$zoom.height()-h;e=u/i;o=f/r;this.isOpen=!0;this.opts.onShow&&this.opts.onShow.call(this);n&&this._move(n)};t.prototype._load=function(t,i){var r=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice));this.$zoom=n(r);r.onerror=n.proxy(function(){var n=this;this.$notice.text(this.opts.errorNotice);this.$target.removeClass("is-loading").addClass("is-error");this.detachNotice=setTimeout(function(){n.$notice.detach();n.detachNotice=null},this.opts.errorDuration)},this);r.onload=n.proxy(function(){r.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),i())},this);r.style.position="absolute";r.src=t};t.prototype._move=function(n){var t;n.type.indexOf("touch")===0?(t=n.touches||n.originalEvent.touches,i=t[0].pageX,r=t[0].pageY):(i=n.pageX||i,r=n.pageY||r);var c=this.$target.offset(),l=r-c.top,a=i-c.left,s=Math.ceil(l*o),h=Math.ceil(a*e);h<0||s<0||h>u||s>f?this.hide():this.$zoom.css({top:""+s*-1+"px",left:""+h*-1+"px"})};t.prototype.hide=function(){this.isOpen&&(this.$flyout.detach(),this.isOpen=!1,this.opts.onHide&&this.opts.onHide.call(this))};t.prototype.swap=function(t,i,r){this.hide();this.isReady=!1;this.detachNotice&&clearTimeout(this.detachNotice);this.$notice.parent().length&&this.$notice.detach();n.isArray(r)&&(r=r.join());this.$target.removeClass("is-loading is-ready is-error");this.$image.attr({src:t,srcset:r});this.$link.attr("href",i)};t.prototype.teardown=function(){this.hide();this.$target.removeClass("is-loading is-ready is-error").off(".easyzoom");this.detachNotice&&clearTimeout(this.detachNotice);delete this.$link;delete this.$zoom;delete this.$image;delete this.$notice;delete this.$flyout;delete this.isOpen;delete this.isReady};n.fn.easyZoom=function(i){return this.each(function(){var r=n.data(this,"easyZoom");r?r.isOpen===undefined&&r._init():n.data(this,"easyZoom",new t(this,i))})};typeof define=="function"&&define.amd?define(function(){return t}):typeof module!="undefined"&&module.exports&&(module.exports=t)}(jQuery);!function(n){function i(){var i=document.createElement("smartbanner"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}var t=function(t){var f,i,r,u;if((this.origHtmlMargin=parseFloat(n("html").css("margin-top")),this.options=n.extend({},n.smartbanner.defaults,t),f=navigator.standalone,i=navigator.userAgent,this.options.force?this.type=this.options.force:i.match(/Windows Phone 8/i)!=null&&i.match(/Touch/i)!==null?this.type="windows":i.match(/iPhone|iPod/i)!=null||i.match(/iPad/)&&this.options.iOSUniversalApp?i.match(/Safari/i)!=null&&(i.match(/CriOS/i)!=null||window.Number(i.substr(i.indexOf("OS ")+3,3).replace("_","."))<6)&&(this.type="ios"):i.match(/\bSilk\/(.*\bMobile Safari\b)?/)||i.match(/\bKF\w/)||i.match("Kindle Fire")?this.type="kindle":i.match(/Android/i)!=null&&(this.type="android"),this.type&&!f&&!this.getCookie("sb-closed")&&!this.getCookie("sb-installed"))&&(this.scale=this.options.scale=="auto"?n(window).width()/window.screen.width:this.options.scale,this.scale<1&&(this.scale=1),r=n(this.type=="android"?'meta[name="google-play-app"]':this.type=="ios"?'meta[name="apple-itunes-app"]':this.type=="kindle"?'meta[name="kindle-fire-app"]':'meta[name="msApplication-ID"]'),r.length!=0)){if(this.type=="windows")this.appId=n('meta[name="msApplication-PackageFamilyName"]').attr("content");else if(u=/app-id=([^\s,]+)/.exec(r.attr("content")),u)this.appId=u[1];else return;this.title=this.options.title?this.options.title:r.data("title")||n("title").text().replace(/\s*[|\-·].*$/,"");this.author=this.options.author?this.options.author:r.data("author")||(n('meta[name="author"]').length?n('meta[name="author"]').attr("content"):window.location.hostname);this.iconUrl=r.data("icon-url");this.price=r.data("price");this.create();this.show();this.listen()}};(t.prototype={constructor:t,create:function(){var t,i=this.options.url?this.options.url:(this.type=="windows"?"ms-windows-store:navigate?appid=":this.type=="android"?"market://details?id=":this.type=="kindle"?"amzn://apps/android?asin=":"https://itunes.apple.com/"+this.options.appStoreLanguage+"/app/id")+this.appId,u=this.price||this.options.price,e=u?u+" - "+(this.type=="android"?this.options.inGooglePlay:this.type=="kindle"?this.options.inAmazonAppStore:this.type=="ios"?this.options.inAppStore:this.options.inWindowsStore):"",f=this.options.iconGloss===null?this.type=="ios":this.options.iconGloss,r;this.type=="android"&&this.options.GooglePlayParams&&(i=i+"&referrer="+this.options.GooglePlayParams);r='<div id="smartbanner" class="'+this.type+'"><div class="sb-container"><a href="#" class="sb-close">&times;<\/a><span class="sb-icon"><\/span><div class="sb-info"><strong>'+this.title+"<\/strong><span>"+this.author+"<\/span><span>"+e+'<\/span><\/div><a href="'+i+'" class="sb-button"><span>'+this.options.button+"<\/span><\/a><\/div><\/div>";this.options.layer?n(this.options.appendToSelector).append(r):n(this.options.appendToSelector).prepend(r);this.options.icon?t=this.options.icon:this.iconUrl?t=this.iconUrl:n('link[rel="apple-touch-icon-precomposed"]').length>0?(t=n('link[rel="apple-touch-icon-precomposed"]').attr("href"),this.options.iconGloss===null&&(f=!1)):n('link[rel="apple-touch-icon"]').length>0?t=n('link[rel="apple-touch-icon"]').attr("href"):n('meta[name="msApplication-TileImage"]').length>0?t=n('meta[name="msApplication-TileImage"]').attr("content"):n('meta[name="msapplication-TileImage"]').length>0&&(t=n('meta[name="msapplication-TileImage"]').attr("content"));t?(n("#smartbanner .sb-icon").css("background-image","url("+t+")"),f&&n("#smartbanner .sb-icon").addClass("gloss")):n("#smartbanner").addClass("no-icon");this.bannerHeight=n("#smartbanner").outerHeight()+2;this.scale>1&&(n("#smartbanner").css("top",parseFloat(n("#smartbanner").css("top"))*this.scale).css("height",parseFloat(n("#smartbanner").css("height"))*this.scale).hide(),n("#smartbanner .sb-container").css("-webkit-transform","scale("+this.scale+")").css("-msie-transform","scale("+this.scale+")").css("-moz-transform","scale("+this.scale+")").css("width",n(window).width()/this.scale));n("#smartbanner").css("position",this.options.layer?"absolute":"static")},listen:function(){n("#smartbanner .sb-close").on("click",n.proxy(this.close,this));n("#smartbanner .sb-button").on("click",n.proxy(this.install,this))},show:function(t){var i=n("#smartbanner"),r;i.stop();this.options.layer?(i.animate({top:0,display:"block"},this.options.speedIn).addClass("shown").show(),n(this.pushSelector).animate({paddingTop:this.origHtmlMargin+this.bannerHeight*this.scale},this.options.speedIn,"swing",t)):n.support.transition?(i.animate({top:0},this.options.speedIn).addClass("shown"),r=function(){n("html").removeClass("sb-animation");t&&t()},n(this.pushSelector).addClass("sb-animation").one(n.support.transition.end,r).emulateTransitionEnd(this.options.speedIn).css("margin-top",this.origHtmlMargin+this.bannerHeight*this.scale)):i.slideDown(this.options.speedIn).addClass("shown")},hide:function(t){var i=n("#smartbanner"),r;i.stop();this.options.layer?(i.animate({top:-1*this.bannerHeight*this.scale,display:"block"},this.options.speedIn).removeClass("shown"),n(this.pushSelector).animate({paddingTop:this.origHtmlMargin},this.options.speedIn,"swing",t)):n.support.transition?(this.type!=="android"?i.css("top",-1*this.bannerHeight*this.scale).removeClass("shown"):i.css({display:"none"}).removeClass("shown"),r=function(){n("html").removeClass("sb-animation");t&&t()},n(this.pushSelector).addClass("sb-animation").one(n.support.transition.end,r).emulateTransitionEnd(this.options.speedOut).css("margin-top",this.origHtmlMargin)):i.slideUp(this.options.speedOut).removeClass("shown")},close:function(n){n.preventDefault();this.hide();this.setCookie("sb-closed","true",this.options.daysHidden)},install:function(){this.options.hideOnInstall&&this.hide();this.setCookie("sb-installed","true",this.options.daysReminder)},setCookie:function(n,t,i){var r=new Date;r.setDate(r.getDate()+i);t=encodeURI(t)+(i==null?"":"; expires="+r.toUTCString());document.cookie=n+"="+t+"; path=/;"},getCookie:function(n){for(var r,u,i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t].substr(0,i[t].indexOf("=")),u=i[t].substr(i[t].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==n)return decodeURI(u);return null},switchType:function(){var t=this;this.hide(function(){t.type=t.type=="android"?"ios":"android";var i=n(t.type=="android"?'meta[name="google-play-app"]':'meta[name="apple-itunes-app"]').attr("content");t.appId=/app-id=([^\s,]+)/.exec(i)[1];n("#smartbanner").detach();t.create();t.show();n("body").addClass("withBanner")})}},n.smartbanner=function(i){var u=n(window),r=u.data("smartbanner"),f=typeof i=="object"&&i;r||u.data("smartbanner",r=new t(f));typeof i=="string"&&r[i]()},n.smartbanner.defaults={title:null,author:null,price:"FREE",appStoreLanguage:"us",inAppStore:"On the App Store",inGooglePlay:"In Google Play",inAmazonAppStore:"In the Amazon Appstore",inWindowsStore:"In the Windows Store",GooglePlayParams:null,icon:null,iconGloss:null,button:"VIEW",url:null,scale:"auto",speedIn:300,speedOut:400,daysHidden:15,daysReminder:90,force:null,hideOnInstall:!0,layer:!1,iOSUniversalApp:!0,appendToSelector:".wrapper",pushSelector:"html"},n.smartbanner.Constructor=t,n.support.transition===undefined)&&(n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){n.support.transition=i()}))}(window.jQuery),function(){var t,n;t=this.jQuery||window.jQuery;n=t(window);t.fn.stick_in_parent=function(i){var e,s,r,u,o,c,f,l,h,a;for(null==i&&(i={}),f=i.sticky_class,s=i.inner_scrolling,c=i.recalc_every,o=i.parent,u=i.offset_top,r=i.spacer,e=i.bottoming,null==u&&(u=0),null==o&&(o=void 0),null==s&&(s=!0),null==f&&(f="is_stuck"),null==e&&(e=!0),l=function(i,h,l,a,v,y,p,w){var tt,et,g,ut,b,k,ft,it,rt,d,nt;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),k=i.parent(),null!=o&&(k=k.closest(o)),!k.length)throw"failed to find stick parent";if(tt=g=!1,(d=null!=r?r&&i.closest(r):t("<div />"))&&d.css("position",i.css("position")),ft=function(){var n,t,e;if(!w&&(n=parseInt(k.css("border-top-width"),10),t=parseInt(k.css("padding-top"),10),h=parseInt(k.css("padding-bottom"),10),l=k.offset().top+n+t,a=k.height(),g&&(tt=g=!1,null==r&&(i.insertAfter(d),d.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(f),e=!0),v=i.offset().top-parseInt(i.css("margin-top"),10)-u,y=i.outerHeight(!0),p=i.css("float"),d&&d.css({width:i.outerWidth(!0),height:y,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:p}),e))return nt()},ft(),y!==a)return ut=void 0,b=u,rt=c,nt=function(){var t,it,o,nt;if(!w&&(null!=rt&&(--rt,0>=rt&&(rt=c,ft())),o=n.scrollTop(),null!=ut&&(it=o-ut),ut=o,g?(e&&(nt=o+y+b>a+l,tt&&!nt&&(tt=!1,i.css({position:"fixed",bottom:"",top:b}).trigger("sticky_kit:unbottom"))),o<v&&(g=!1,b=u,null==r&&("left"!==p&&"right"!==p||i.insertAfter(d),d.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(f).trigger("sticky_kit:unstick")),s&&(t=n.height(),y+u>t&&!tt&&(b-=it,b=Math.max(t-y,b),b=Math.min(u,b),g&&i.css({top:b+"px"})))):o>v&&(g=!0,t={position:"fixed",top:b},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(f),null==r&&(i.after(d),"left"!==p&&"right"!==p||d.append(i)),i.trigger("sticky_kit:stick")),g&&e&&(null==nt&&(nt=o+y+b>a+l),!tt&&nt)))return tt=!0,"static"===k.css("position")&&k.css({position:"relative"}),i.css({position:"absolute",bottom:h,top:"auto"}).trigger("sticky_kit:bottom")},it=function(){return ft(),nt()},et=function(){return w=!0,n.off("touchmove",nt),n.off("scroll",nt),n.off("resize",it),t(document.body).off("sticky_kit:recalc",it),i.off("sticky_kit:detach",et),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),k.position("position",""),g?(null==r&&("left"!==p&&"right"!==p||i.insertAfter(d),d.remove()),i.removeClass(f)):void 0},n.on("touchmove",nt),n.on("scroll",nt),n.on("resize",it),t(document.body).on("sticky_kit:recalc",it),i.on("sticky_kit:detach",et),setTimeout(nt,0)}},h=0,a=this.length;h<a;h++)i=this[h],l(t(i));return this}}.call(this)