(function(){function b(t){function r(n,i,r,u,f,e){for(;f>=0&&e>f;f+=t){var o=u?u[f]:f;r=i(r,n[o],o,n)}return r}return function(u,f,o,s){f=e(f,s,4);var h=!i(u)&&n.keys(u),l=(h||u).length,c=t>0?0:l-1;return arguments.
length<3&&(o=u[h?h[c]:c],c+=t),r(u,f,o,h,c,l)}}function k(n){return function(i,r,u){r=t(r,u);for(var e=null!=i&&i.length,f=n>0?0:e-1;f>=0&&e>f;f+=n)if(r(i[f],f,i))return f;return-1}}function d(t,i){var
u=rt.length,f=t.constructor,e=n.isFunction(f)&&f.prototype||h,r="constructor";for(n.has(t,r)&&!n.contains(i,r)&&i.push(r);u--;)r=rt[u],r in t&&t[r]!==e[r]&&!n.contains(i,r)&&i.push(r)}var s=this,et=s.
_,o=Array.prototype,h=Object.prototype,ot=Function.prototype,st=o.push,r=o.slice,f=h.toString,ht=h.hasOwnProperty,ct=Array.isArray,g=Object.keys,c=ot.bind,nt=Object.create,l=function(){},n=function(t)
{return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports._=n):s._=n;n.VERSION=
"1.8.2";var e=function(n,t,i){if(t===void 0)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.
call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}},t=function(t,i,r){return null==t?n.identity:n.isFunction(t)?e(t,i,r):n.isObject(
t)?n.matcher(t):n.property(t)};n.iteratee=function(n,i){return t(n,i,1/0)};var a=function(n,t){return function(i){var e=arguments.length;if(2>e||null==i)return i;for(var r=1;e>r;r++)for(var o=arguments[
r],s=n(o),h=s.length,u=0;h>u;u++){var f=s[u];t&&i[f]!==void 0||(i[f]=o[f])}return i}},lt=function(t){if(!n.isObject(t))return{};if(nt)return nt(t);l.prototype=t;var i=new l;return l.prototype=null,i},
at=Math.pow(2,53)-1,i=function(n){var t=n&&n.length;return"number"==typeof t&&t>=0&&at>=t};n.each=n.forEach=function(t,r,u){r=e(r,u);var f,o;if(i(t))for(f=0,o=t.length;o>f;f++)r(t[f],f,t);else{var s=n.
keys(t);for(f=0,o=s.length;o>f;f++)r(t[s[f]],s[f],t)}return t};n.map=n.collect=function(r,u,f){u=t(u,f);for(var o=!i(r)&&n.keys(r),s=(o||r).length,h=Array(s),e=0;s>e;e++){var c=o?o[e]:e;h[e]=u(r[c],c,
r)}return h};n.reduce=n.foldl=n.inject=b(1);n.reduceRight=n.foldr=b(-1);n.find=n.detect=function(t,r,u){var f;return f=i(t)?n.findIndex(t,r,u):n.findKey(t,r,u),f!==void 0&&f!==-1?t[f]:void 0};n.filter=
n.select=function(i,r,u){var f=[];return r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f};n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)};n.every=n.all=function(r,u,f){u=t(u,f);
for(var o=!i(r)&&n.keys(r),h=(o||r).length,e=0;h>e;e++){var s=o?o[e]:e;if(!u(r[s],s,r))return!1}return!0};n.some=n.any=function(r,u,f){u=t(u,f);for(var o=!i(r)&&n.keys(r),h=(o||r).length,e=0;h>e;e++){
var s=o?o[e]:e;if(u(r[s],s,r))return!0}return!1};n.contains=n.includes=n.include=function(t,r,u){return i(t)||(t=n.values(t)),n.indexOf(t,r,"number"==typeof u&&u)>=0};n.invoke=function(t,i){var u=r.call(
arguments,2),f=n.isFunction(i);return n.map(t,function(n){var t=f?i:n[i];return null==t?t:t.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.
matcher(i))};n.findWhere=function(t,i){return n.find(t,n.matcher(i))};n.max=function(r,u,f){var s,o,e=-1/0,c=-1/0;if(null==u&&null!=r){r=i(r)?r:n.values(r);for(var h=0,l=r.length;l>h;h++)s=r[h],s>e&&(e=
s)}else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i);(o>c||o===-1/0&&e===-1/0)&&(e=n,c=o)});return e};n.min=function(r,u,f){var s,o,e=1/0,c=1/0;if(null==u&&null!=r){r=i(r)?r:n.values(r);for(var h=0,l=
r.length;l>h;h++)s=r[h],e>s&&(e=s)}else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i);(c>o||1/0===o&&1/0===e)&&(e=n,c=o)});return e};n.shuffle=function(t){for(var u,e=i(t)?t:n.values(t),o=e.length,f=Array(
o),r=0;o>r;r++)u=n.random(0,r),u!==r&&(f[r]=f[u]),f[u]=e[r];return f};n.sample=function(t,r,u){return null==r||u?(i(t)||(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,r))};n.
sortBy=function(i,r,u){return r=t(r,u),n.pluck(n.map(i,function(n,t,i){return{value:n,index:t,criteria:r(n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;
if(r>i||r===void 0)return-1}return n.index-t.index}),"value")};var v=function(i){return function(r,u,f){var e={};return u=t(u,f),n.each(r,function(n,t){var f=u(n,t,r);i(e,n,f)}),e}};n.groupBy=v(function(
t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]});n.indexBy=v(function(n,t,i){n[i]=t});n.countBy=v(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1});n.toArray=function(t){return t?n.isArray(t)?r.call(t):i(t)?n.map(t,
n.identity):n.values(t):[]};n.size=function(t){return null==t?0:i(t)?t.length:n.keys(t).length};n.partition=function(i,r,u){r=t(r,u);var f=[],e=[];return n.each(i,function(n,t,i){(r(n,t,i)?f:e).push(n)}
),[f,e]};n.first=n.head=n.take=function(t,i,r){if(null!=t)return null==i||r?t[0]:n.initial(t,t.length-i)};n.initial=function(n,t,i){return r.call(n,0,Math.max(0,n.length-(null==t||i?1:t)))};n.last=function(
t,i,r){if(null!=t)return null==i||r?t[t.length-1]:n.rest(t,Math.max(0,t.length-i))};n.rest=n.tail=n.drop=function(n,t,i){return r.call(n,null==t||i?1:t)};n.compact=function(t){return n.filter(t,n.identity)}
;var u=function(t,r,f,e){for(var s=[],c=0,h=e||0,v=t&&t.length;v>h;h++){var o=t[h];if(i(o)&&(n.isArray(o)||n.isArguments(o))){r||(o=u(o,r,f));var l=0,a=o.length;for(s.length+=a;a>l;)s[c++]=o[l++]}else
f||(s[c++]=o)}return s};n.flatten=function(n,t){return u(n,t,!1)};n.without=function(t){return n.difference(t,r.call(arguments,1))};n.uniq=n.unique=function(i,r,u,f){if(null==i)return[];n.isBoolean(r)||
(f=u,u=r,r=!1);null!=u&&(u=t(u,f));for(var o=[],h=[],s=0,l=i.length;l>s;s++){var e=i[s],c=u?u(e,s,i):e;r?(s&&h===c||o.push(e),h=c):u?n.contains(h,c)||(h.push(c),o.push(e)):n.contains(o,e)||o.push(e)}return o}
;n.union=function(){return n.uniq(u(arguments,!0,!0))};n.intersection=function(t){if(null==t)return[];for(var r=[],e=arguments.length,u=0,o=t.length;o>u;u++){var f=t[u];if(!n.contains(r,f)){for(var i=
1;e>i&&n.contains(arguments[i],f);i++);i===e&&r.push(f)}}return r};n.difference=function(t){var i=u(arguments,!0,!0,1);return n.filter(t,function(t){return!n.contains(i,t)})};n.zip=function(){return n.
unzip(arguments)};n.unzip=function(t){for(var r=t&&n.max(t,"length").length||0,u=Array(r),i=0;r>i;i++)u[i]=n.pluck(t,i);return u};n.object=function(n,t){for(var r={},i=0,u=n&&n.length;u>i;i++)t?r[n[i]]=
t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,u){var f=0,e=t&&t.length;if("number"==typeof u)f=0>u?Math.max(0,e+u):u;else if(u&&e)return f=n.sortedIndex(t,i),t[f]===i?f:-1;if(i!==i)return n.
findIndex(r.call(t,f),n.isNaN);for(;e>f;f++)if(t[f]===i)return f;return-1};n.lastIndexOf=function(t,i,u){var f=t?t.length:0;if("number"==typeof u&&(f=0>u?f+u+1:Math.min(f,u+1)),i!==i)return n.findLastIndex(
r.call(t,0,f),n.isNaN);for(;--f>=0;)if(t[f]===i)return f;return-1};n.findIndex=k(1);n.findLastIndex=k(-1);n.sortedIndex=function(n,i,r,u){r=t(r,u,1);for(var s=r(i),f=0,e=n.length;e>f;){var o=Math.floor(
(f+e)/2);r(n[o])<s?f=o+1:e=o}return f};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=i||1;for(var u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;u>r;r++,n+=i)f[r]=n;return f};var tt=function(
t,i,r,u,f){if(!(u instanceof i))return t.apply(r,f);var e=lt(t.prototype),o=t.apply(e,f);return n.isObject(o)?o:e};n.bind=function(t,i){if(c&&t.bind===c)return c.apply(t,r.call(arguments,1));if(!n.isFunction(
t))throw new TypeError("Bind must be called on a function");var f=r.call(arguments,2),u=function(){return tt(t,u,i,this,f.concat(r.call(arguments)))};return u};n.partial=function(t){var i=r.call(arguments,
1),u=function(){for(var f=0,o=i.length,e=Array(o),r=0;o>r;r++)e[r]=i[r]===n?arguments[f++]:i[r];for(;f<arguments.length;)e.push(arguments[f++]);return tt(t,u,this,this,e)};return u};n.bindAll=function(
t){var i,r,u=arguments.length;if(1>=u)throw new Error("bindAll must be passed function names");for(i=1;u>i;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t};n.memoize=function(t,i){var r=function(u){var
f=r.cache,e=""+(i?i.apply(this,arguments):u);return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r};n.delay=function(n,t){var i=r.call(arguments,2);return setTimeout(function(){return n.
apply(null,i)},t)};n.defer=n.partial(n.delay,n,1);n.throttle=function(t,i,r){var f,e,s,u=null,o=0;r||(r={});var h=function(){o=r.leading===!1?0:n.now();u=null;s=t.apply(f,e);u||(f=e=null)};return function(
){var c=n.now();o||r.leading!==!1||(o=c);var l=i-(c-o);return f=this,e=arguments,0>=l||l>i?(u&&(clearTimeout(u),u=null),o=c,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,l)),s}};n.
debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;i>c&&c>=0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(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.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){
var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}
};n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),1>=n&&(t=null),i}};n.once=n.partial(n.before,2);var it=!{toString:null}.propertyIsEnumerable("toString"),rt=["valueOf",
"isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];n.keys=function(t){if(!n.isObject(t))return[];if(g)return g(t);var i=[];for(var r in t)n.has(t,r)&&i.push(r);return it&&
d(t,i),i};n.allKeys=function(t){if(!n.isObject(t))return[];var i=[];for(var r in t)i.push(r);return it&&d(t,i),i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;i++)f[i]=t[r[i]];
return f};n.mapObject=function(i,r,u){r=t(r,u);for(var f,o=n.keys(i),h=o.length,s={},e=0;h>e;e++)f=o[e],s[f]=r(i[f],f,i);return s};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;
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;f>i;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=a(n.allKeys);n.extendOwn=n.assign=a(n.keys);n.findKey=function(i,r,u){r=t(r,u);for(var f,o=n.keys(i),e=0,s=o.length;s>e;e++)if(f=o[e],r(i[f],f,i))return f};n.
pick=function(t,i,r){var s,o,h={},f=t;if(null==f)return h;n.isFunction(i)?(o=n.allKeys(f),s=e(i,r)):(o=u(arguments,!1,!1,1),s=function(n,t,i){return t in i},f=Object(f));for(var c=0,v=o.length;v>c;c++)
{var l=o[c],a=f[l];s(a,l,f)&&(h[l]=a)}return h};n.omit=function(t,i,r){if(n.isFunction(i))i=n.negate(i);else{var f=n.map(u(arguments,!1,!1,1),String);i=function(t,i){return!n.contains(f,i)}}return n.pick(
t,i,r)};n.defaults=a(n.allKeys,!0);n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};n.isMatch=function(t,i){var f=n.keys(i),e=f.length;
if(null==t)return!e;for(var o=Object(t),r=0;e>r;r++){var u=f[r];if(i[u]!==o[u]||!(u in o))return!1}return!0};var y=function(t,i,r,u){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;t instanceof
n&&(t=t._wrapped);i instanceof n&&(i=i._wrapped);var c=f.call(t);if(c!==f.call(i))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=
+i:0==+t?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}var l="[object Array]"===c;if(!l){if("object"!=typeof t||"object"!=typeof i)return!1;var o=t.constructor,s=i.constructor;
if(o!==s&&!(n.isFunction(o)&&o instanceof o&&n.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in i)return!1}r=r||[];u=u||[];for(var e=r.length;e--;)if(r[e]===t)return u[e]===i;if(r.push(
t),u.push(i),l){if(e=t.length,e!==i.length)return!1;for(;e--;)if(!y(t[e],i[e],r,u))return!1}else{var h,a=n.keys(t);if(e=a.length,n.keys(i).length!==e)return!1;for(;e--;)if(h=a[e],!n.has(i,h)||!y(t[h],
i[h],r,u))return!1}return r.pop(),u.pop(),!0};n.isEqual=function(n,t){return y(n,t)};n.isEmpty=function(t){return null==t?!0:i(t)&&(n.isArray(t)||n.isString(t)||n.isArguments(t))?0===t.length:0===n.keys(
t).length};n.isElement=function(n){return!(!n||1!==n.nodeType)};n.isArray=ct||function(n){return"[object Array]"===f.call(n)};n.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&
!!n};n.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){n["is"+t]=function(n){return f.call(n)==="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(
t){return n.has(t,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(n.isFunction=function(n){return"function"==typeof n||!1});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||"[object Boolean]"===f.call(n)};n.isNull=function(n){return null===n};n.isUndefined=function(n){return n===
void 0};n.has=function(n,t){return null!=n&&ht.call(n,t)};n.noConflict=function(){return s._=et,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.noop=function(
){};n.property=function(n){return function(t){if(null!=t)return t[n]}};n.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}};n.matcher=n.matches=function(t){return t=n.extendOwn(
{},t),function(i){return n.isMatch(i,t)}};n.times=function(n,t,i){var u=Array(Math.max(0,n));t=e(t,i,1);for(var r=0;n>r;r++)u[r]=t(r);return u};n.random=function(n,t){return null==t&&(t=n,n=0),n+Math.
floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};var ut={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},vt=n.invert(ut),ft=function(t){var
r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=null==n?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=ft(ut);n.unescape=ft(vt);n.result=
function(t,i,r){var u=null==t?void 0:t[i];return u===void 0&&(u=r),n.isFunction(u)?u.call(t):u};var yt=0;n.uniqueId=function(n){var t=++yt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,
interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var p=/(.)^/,pt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},wt=/\\|'|\r|\n|\u2028|\u2029/g,bt=function(n){return"\\"+
pt[n]};n.template=function(t,i,r){!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var s=RegExp([(i.escape||p).source,(i.interpolate||p).source,(i.evaluate||p).source].join("|")+"|$","g"),f=0,u="__p+='";
t.replace(s,function(n,i,r,e,o){return u+=t.slice(f,o).replace(wt,bt),f=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(u+="';\n"+e+"\n__p+='")
,n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{var h=new Function(i.variable||
"obj","_",u)}catch(e){throw e.source=u,e;}var o=function(t){return h.call(this,t,n)},c=i.variable||"obj";return o.source="function("+c+"){\n"+u+"}",o};n.chain=function(t){var i=n(t);return i._chain=!0,
i};var w=function(t,i){return t._chain?n(i).chain():i};n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return st.apply(t,arguments),
w(this,r.apply(n,t))}})};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=o[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),"shift"!==
t&&"splice"!==t||0!==n.length||delete n[0],w(this,n)}});n.each(["concat","join","slice"],function(t){var i=o[t];n.prototype[t]=function(){return w(this,i.apply(this._wrapped,arguments))}});n.prototype.
value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return""+this._wrapped};"function"==typeof define&&define.amd&&define("underscore",
[],function(){return n})}).call(this),function(n){"use strict";var t={vertical:{x:!1,y:!0},horizontal:{x:!0,y:!1},both:{x:!0,y:!0},x:{x:!0,y:!1},y:{x:!1,y:!0}},f={duration:"fast",direction:"both",offsetY:
0},i=/^(?:html)$/i,e=function(t,i){i=i||(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null):t.currentStyle);var u=document.defaultView&&document.
defaultView.getComputedStyle?!0:!1,r={top:parseFloat(u?i.borderTopWidth:n.css(t,"borderTopWidth"))||0,left:parseFloat(u?i.borderLeftWidth:n.css(t,"borderLeftWidth"))||0,bottom:parseFloat(u?i.borderBottomWidth:
n.css(t,"borderBottomWidth"))||0,right:parseFloat(u?i.borderRightWidth:n.css(t,"borderRightWidth"))||0};return{top:r.top,left:r.left,bottom:r.bottom,right:r.right,vertical:r.top+r.bottom,horizontal:r.
left+r.right}},r=function($element){var r=n(window),t=i.test($element[0].nodeName);return{border:t?{top:0,left:0,bottom:0,right:0}:e($element[0]),scroll:{top:(t?r:$element).scrollTop(),left:(t?r:$element)
.scrollLeft()},scrollbar:{right:t?0:$element.innerWidth()-$element[0].clientWidth,bottom:t?0:$element.innerHeight()-$element[0].clientHeight},rect:function(){var n=$element[0].getBoundingClientRect();
return{top:t?0:n.top,left:t?0:n.left,bottom:t?$element[0].clientHeight:n.bottom,right:t?$element[0].clientWidth:n.right}}()}},u={auto:!0,scroll:!0,visible:!1,hidden:!1};n.extend(n.expr[":"],{scrollable:
function(n,r,f){var o=t[typeof f[3]=="string"&&f[3].toLowerCase()]||t.both,s=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(n,null):n.currentStyle,e=
{x:u[s.overflowX.toLowerCase()]||!1,y:u[s.overflowY.toLowerCase()]||!1,isRoot:i.test(n.nodeName)};if(!e.x&&!e.y&&!e.isRoot)return!1;var h={height:{scroll:n.scrollHeight,client:n.clientHeight},width:{scroll:
n.scrollWidth,client:n.clientWidth},scrollableX:function(){return(e.x||e.isRoot)&&this.width.scroll>this.width.client},scrollableY:function(){return(e.y||e.isRoot)&&this.height.scroll>this.height.client}
};return o.y&&h.scrollableY()||o.x&&h.scrollableX()}});n.fn.extend({scrollintoview:function(u){u=n.extend({},f,u);u.direction=t[typeof u.direction=="string"&&u.direction.toLowerCase()]||t.both;var c="";
u.direction.x===!0&&(c="horizontal");u.direction.y===!0&&(c=c?"both":"vertical");var l=this.eq(0),s=l.closest(":scrollable("+c+")");if(s.length>0){s=s.eq(0);var e={e:r(l),s:r(s)},o={top:e.e.rect.top-(
e.s.rect.top+e.s.border.top)+u.offsetY,bottom:e.s.rect.bottom-e.s.border.bottom-e.s.scrollbar.bottom-e.e.rect.bottom+u.offsetY,left:e.e.rect.left-(e.s.rect.left+e.s.border.left),right:e.s.rect.right-e.
s.border.right-e.s.scrollbar.right-e.e.rect.right},h={};u.direction.y===!0&&(o.top<0?h.scrollTop=e.s.scroll.top+o.top:o.top>0&&o.bottom<0&&(h.scrollTop=e.s.scroll.top+Math.min(o.top,-o.bottom)));u.direction.
x===!0&&(o.left<0?h.scrollLeft=e.s.scroll.left+o.left:o.left>0&&o.right<0&&(h.scrollLeft=e.s.scroll.left+Math.min(o.left,-o.right)));n.isEmptyObject(h)?n.isFunction(u.complete)&&u.complete.call(s[0]):
(i.test(s[0].nodeName)&&(s=n("html,body")),s.animate(h,u.duration).eq(0).queue(function(t){n.isFunction(u.complete)&&u.complete.call(s[0]);t()}))}return this}})}(jQuery),function(n){var t=/(\s*\S+|\s)$/;
n.truncate=function(t,i){return n("<div><\/div>").append(t).truncate(i).html()};n.fn.truncate=function(i){n.isNumeric(i)&&(i={length:i});var r=n.extend({},n.truncate.defaults,i);return this.each(function(
){var u=n(this);r.noBreaks&&u.find("br").replaceWith(" ");var f=u.text(),i=f.length-r.length;(r.stripTags&&u.text(f),r.words&&i>0&&(i=f.length-f.slice(0,r.length).replace(t,"").length-1),i<0||!i&&!r.truncated)||
n.each(u.contents().get().reverse(),function(t,u){var e=n(u),o=e.text(),f=o.length;if(f<=i){r.truncated=!0;i-=f;e.remove();return}return u.nodeType===3?(n(u.splitText(f-i-1)).replaceWith(r.ellipsis),!1):
(e.truncate(n.extend(r,{length:f-i})),!1)})})};n.truncate.defaults={stripTags:!1,words:!1,noBreaks:!1,length:Infinity,ellipsis:"…"}}(jQuery),function(n){var t="waitForImages";n.waitForImages={hasImageProperties:
["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"]};n.expr[":"].uncached=function(t){if(!n(t).is('img[src!=""]'))return!1;var i=new Image;return i.src=t.src,!i.complete};n.
fn.waitForImages=function(i,r,u){var f=0,e=0;if(n.isPlainObject(arguments[0])&&(u=arguments[0].waitForAll,r=arguments[0].each,i=arguments[0].finished),i=i||n.noop,r=r||n.noop,u=!!u,!n.isFunction(i)||!n.
isFunction(r))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var s=n(this),o=[],h=n.waitForImages.hasImageProperties||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;u?s.find(
"*").addBack().each(function(){var t=n(this);if(t.is("img:uncached")){var i=t.attr("src");i&&o.push({src:i,element:t[0]})}n.each(h,function(n,i){var r=t.css(i),u;if(!r)return!0;while(u=c.exec(r))o.push(
{src:u[2],element:t[0]})})}):s.find("img:uncached").each(function(){var t=n(this).attr("src");t&&o.push({src:t,element:this})});f=o.length;e=0;f===0&&i.call(s[0]);n.each(o,function(u,o){var h=new Image;
n(h).on("load."+t+" error."+t,function(n){return e++,r.call(o.element,e,f,n.type=="load"),e==f?(i.call(s[0]),!1):void 0});h.src=o.src})})}}(jQuery),function(n){n.fn.findNext=function(t){var i=n(t).first(
);if(i.length<=0)return i;i=[];var u=n("*").index(n(this)),r=Number.MAX_VALUE;return n(t).each(function(t,f){var e=n("*").index(n(f));u<e&&e<r&&(r=e,i=n(f))}),i}}(jQuery),function(n){var t={url:!1,callback:
!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:2};n.zoom=function(t,i,r,u){var o,s,f,e,l,a,h,v=n(t).css("position"),c=n(i);return t.style.position=/(absolute|fixed)/.
test(v)?v:"relative",t.style.overflow="hidden",r.style.width=r.style.height="",n(r).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:r.width*u,height:r.height*u,border:"none",
maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){s=n(t).outerWidth();o=n(t).outerHeight();i===t?(e=s,f=o):(e=c.outerWidth(),f=c.outerHeight());l=(r.width-s)/e;a=(r.height-o)/f;h=c.offset(
)},move:function(n){console.log(n.pageX);console.log(n.pageY);var t=e-n.pageX-h.left,i=f-n.pageY-h.top;console.log("top");console.log(i);console.log(t);console.log("source");console.log(f);console.log(
e);i=Math.max(Math.min(i,f),0);t=Math.max(Math.min(t,e),0);console.log("top2");console.log(i);console.log(t);r.style.left=t*-l+"px";r.style.top=i*-a+"px";console.log("style");console.log(r.style.left);
console.log(r.style.top)}}};n.fn.zoom=function(i){return this.each(function(){var r=n.extend({},t,i||{}),e=r.target||this,a=this,f=n(a),u=document.createElement("img"),s=n(u),h="mousemove.zoom",c=!1,l=
!1,o;(r.url||(o=f.find("img"),o[0]&&(r.url=o.data("src")||o.attr("src")),r.url))&&(function(){var n=e.style.position,t=e.style.overflow;f.one("zoom.destroy",function(){f.off(".zoom");e.style.position=
n;e.style.overflow=t;s.remove()})}(),u.onload=function(){var t=n.zoom(e,a,u,r.magnify);function i(i){t.init();t.move(i);s.stop().fadeTo(n.support.opacity?r.duration:0,1,n.isFunction(r.onZoomIn)?r.onZoomIn.
call(u):!1)}function o(){s.stop().fadeTo(r.duration,0,n.isFunction(r.onZoomOut)?r.onZoomOut.call(u):!1)}if(r.on==="click")f.on("click.zoom",function(r){if(!c){c=!0;i(r);n(document).on(h,t.move);n(document).
one("click.zoom",function(){o();c=!1;n(document).off(h,t.move)});return!1}});else if(r.on==="mouseover"){t.init();f.on("mouseenter.zoom",i).on("mouseleave.zoom",o).on(h,t.move)}if(r.touch){var v=0;f.on(
"touchmove.zoom",function(n){n.preventDefault();t.move(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])}).on("touchend.zoom",function(n){n.preventDefault();var t=(new Date).getTime(),r=t-
v;r<600&&r>0&&(l?(l=!1,o()):(l=!0,i(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])),n.preventDefault());v=t})}n.isFunction(r.callback)&&r.callback.call(u)},u.src=r.url)})};n.fn.zoom.defaults=
t}(window.jQuery),function(){"use strict";var n={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:
91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:
"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:
"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:
"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",
188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){var i=t.which;switch(i){case n.COMMAND:case n.SHIFT:case n.CTRL:case n.ALT:return!0}return t.metaKey?!0:
!1},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&n<=123},isVerticalMovement:function(t){return~[n.UP,n.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[n.LEFT,n.RIGHT,n.BACKSPACE,
n.DELETE].indexOf(t)}};angular.element.prototype.querySelectorAll===undefined&&(angular.element.prototype.querySelectorAll=function(n){return angular.element(this[0].querySelectorAll(n))});angular.element.
prototype.closest===undefined&&(angular.element.prototype.closest=function(n){for(var t=this[0],i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(i.bind(t)(n))return t;
t=t.parentElement}return!1});var i=0,t=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,generateId:
function(){return i++},appendToBody:!1}).service("uiSelectMinErr",function(){var n=angular.$$minErr("ui.select");return function(){var t=n.apply(this,arguments),i=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),
"");return new Error(i)}}).directive("uisTranscludeAppend",function(){return{link:function(n,t,i,r,u){u(n,function(n){t.append(n)})}}}).filter("highlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,
"\\$1")}return function(t,i){return i&&t?t.replace(new RegExp(n(i),"gi"),'<span class="ui-select-highlight">$&<\/span>'):t}}).factory("uisOffset",["$document","$window",function(n,$window){return function(
t){var i=t[0].getBoundingClientRect();return{width:i.width||t.prop("offsetWidth"),height:i.height||t.prop("offsetHeight"),top:i.top+($window.pageYOffset||n[0].documentElement.scrollTop),left:i.left+($window.
pageXOffset||n[0].documentElement.scrollLeft)}}}]);t.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile",function(n,t,i,r){return{restrict:"EA",require:"^uiSelect",
replace:!0,transclude:!0,templateUrl:function(t){var i=t.parent().attr("theme")||n.theme;return i+"/choices.tpl.html"},compile:function(u,f){if(!f.repeat)throw i("repeat","Expected 'repeat' expression.");
return function(u,f,e,o,s){var h=e.groupBy;if(o.parseRepeatAttr(e.repeat,h),o.disableChoiceExpression=e.uiDisableChoice,o.onHighlightCallback=e.onHighlight,h){var c=f.querySelectorAll(".ui-select-choices-group");
if(c.length!==1)throw i("rows","Expected 1 .ui-select-choices-group but got '{0}'.",c.length);c.attr("ng-repeat",t.getGroupNgRepeatExpression())}var l=f.querySelectorAll(".ui-select-choices-row");if(l.
length!==1)throw i("rows","Expected 1 .ui-select-choices-row but got '{0}'.",l.length);l.attr("ng-repeat",t.getNgRepeatExpression(o.parserResult.itemName,"$select.items",o.parserResult.trackByExp,h)).
attr("ng-if","$select.open").attr("ng-mouseenter","$select.setActiveItem("+o.parserResult.itemName+")").attr("ng-click","$select.select("+o.parserResult.itemName+",false,$event)");var a=f.querySelectorAll(
".ui-select-choices-row-inner");if(a.length!==1)throw i("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",a.length);a.attr("uis-transclude-append","");r(f,s)(u);u.$watch("$select.search",
function(n){n&&!o.open&&o.multiple&&o.activate(!1,!0);o.activeIndex=o.tagging.isActivated?-1:0;o.refresh(e.refresh)});e.$observe("refreshDelay",function(){var t=u.$eval(e.refreshDelay);o.refreshDelay=
t!==undefined?t:n.refreshDelay})}}}}]);t.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","uisRepeatParser","uiSelectMinErr","uiSelectConfig",function($scope,$element,t,i,r,u,f){var
e=this,c="";if(e.placeholder=f.placeholder,e.searchEnabled=f.searchEnabled,e.sortable=f.sortable,e.refreshDelay=f.refreshDelay,e.removeSelected=!1,e.closeOnSelect=!0,e.search=c,e.activeIndex=0,e.items=
[],e.open=!1,e.focus=!1,e.disabled=!1,e.selected=undefined,e.focusser=undefined,e.resetSearchInput=!0,e.multiple=undefined,e.disableChoiceExpression=undefined,e.tagging={isActivated:!1,fct:undefined},
e.taggingTokens={isActivated:!1,tokens:undefined},e.lockChoiceExpression=undefined,e.clickTriggeredSelect=!1,e.$filter=i,e.searchInput=$element.querySelectorAll("input.ui-select-search"),e.searchInput.
length!==1)throw u("searchInput","Expected 1 input.ui-select-search but got '{0}'.",e.searchInput.length);e.isEmpty=function(){return angular.isUndefined(e.selected)||e.selected===null||e.selected===""}
;function s(){(e.resetSearchInput||e.resetSearchInput===undefined&&f.resetSearchInput)&&(e.search=c,e.selected&&e.items.length&&!e.multiple&&(e.activeIndex=e.items.indexOf(e.selected)))}e.activate=function(
n,i){e.disabled||e.open||(i||s(),$scope.$broadcast("uis:activate"),e.open=!0,e.activeIndex=e.activeIndex>=e.items.length?0:e.activeIndex,e.activeIndex===-1&&e.taggingLabel!==!1&&(e.activeIndex=0),t(function(
){e.search=n||e.search;e.searchInput[0].focus();var t=$($element).find(".select2-drop"),u=t.offset().top,f=t.height(),i=u+f,r=$(window).height();$("body").scrollTop()+r<i&&$("body").scrollTop(i-r)}))}
;e.findGroupByName=function(n){return e.groups&&e.groups.filter(function(t){return t.name===n})[0]};e.parseRepeatAttr=function(n,t){function i(n){e.groups=[];angular.forEach(n,function(n){var i=$scope.
$eval(t),r=angular.isFunction(i)?i(n):n[i],u=e.findGroupByName(r);u?u.items.push(n):e.groups.push({name:r,items:[n]})});e.items=[];e.groups.forEach(function(n){e.items=e.items.concat(n.items)})}function f(
n){e.items=n}e.setItemsFn=t?i:f;e.parserResult=r.parse(n);e.isGrouped=!!t;e.itemProperty=e.parserResult.itemName;e.refreshItems=function(n){n=n||e.parserResult.source($scope);var t=e.selected;if((!angular.
isArray(t)||t.length)&&e.removeSelected){if(n!==undefined){var i=n.filter(function(n){return t.indexOf(n)<0});e.setItemsFn(i)}}else e.setItemsFn(n)};$scope.$watchCollection(e.parserResult.source,function(
n){if(n===undefined||n===null)e.items=[];else if(angular.isArray(n))e.refreshItems(n),e.ngModel.$modelValue=null;else throw u("items","Expected an array but got '{0}'.",n);})};var h;e.refresh=function(
n){n!==undefined&&(h&&t.cancel(h),h=t(function(){$scope.$eval(n)},e.refreshDelay))};e.setActiveItem=function(n){e.activeIndex=e.items.indexOf(n)};e.isActive=function(n){if(!e.open)return!1;var t=e.items.
indexOf(n[e.itemProperty]),i=t===e.activeIndex;return!i||t<0&&e.taggingLabel!==!1||t<0&&e.taggingLabel===!1?!1:(i&&!angular.isUndefined(e.onHighlightCallback)&&n.$eval(e.onHighlightCallback),i)};e.isDisabled=
function(n){if(e.open){var i=e.items.indexOf(n[e.itemProperty]),t=!1,r;return i>=0&&!angular.isUndefined(e.disableChoiceExpression)&&(r=e.items[i],t=!!n.$eval(e.disableChoiceExpression),r._uiSelectChoiceDisabled=
t),t}};e.select=function(n,i,r){if(n===undefined||!n._uiSelectChoiceDisabled){if(!e.items&&!e.search)return;if(!n||!n._uiSelectChoiceDisabled){if(e.tagging.isActivated){if(e.taggingLabel===!1)if(e.activeIndex<
0){if(n=e.tagging.fct!==undefined?e.tagging.fct(e.search):e.search,!n||angular.equals(e.items[0],n))return}else n=e.items[e.activeIndex];else if(e.activeIndex===0){if(n===undefined)return;if(e.tagging.
fct!==undefined&&typeof n=="string"){if(n=e.tagging.fct(e.search),!n)return}else typeof n=="string"&&(n=n.replace(e.taggingLabel,"").trim())}if(e.selected&&angular.isArray(e.selected)&&e.selected.filter(
function(t){return angular.equals(t,n)}).length>0){e.close(i);return}}$scope.$broadcast("uis:select",n);var u={};u[e.parserResult.itemName]=n;t(function(){e.onSelectCallback($scope,{$item:n,$model:e.parserResult.
modelMapper($scope,u)})});e.closeOnSelect&&e.close(i);r&&r.type==="click"&&(e.clickTriggeredSelect=!0)}}};e.close=function(n){e.open&&(e.ngModel&&e.ngModel.$setTouched&&e.ngModel.$setTouched(),s(),e.open=
!1,$scope.$broadcast("uis:close",n))};e.setFocus=function(){e.focus||e.focusInput[0].focus()};e.clear=function(n){e.select(undefined);n.stopPropagation();e.focusser[0].focus()};e.toggle=function(n){e.
open?(e.close(),n.preventDefault(),n.stopPropagation()):e.activate()};e.isLocked=function(n,t){var i,r=e.selected[t];return r&&!angular.isUndefined(e.lockChoiceExpression)&&(i=!!n.$eval(e.lockChoiceExpression),
r._uiSelectChoiceLocked=i),i};var o=null;e.sizeSearchInput=function(){var n=e.searchInput[0],u=e.searchInput.parent().parent()[0],i=function(){return u.clientWidth*!!n.offsetParent},r=function(t){if(t===
0)return!1;var i=t-n.offsetLeft-10;return i<50&&(i=t),e.searchInput.css("width",i+"px"),!0};e.searchInput.css("width","10px");t(function(){o!==null||r(i())||(o=$scope.$watch(i,function(n){r(n)&&(o(),o=
null)}))})};function l(t){var i=!0;switch(t){case n.DOWN:!e.open&&e.multiple?e.activate(!1,!0):e.activeIndex<e.items.length-1&&e.activeIndex++;break;case n.UP:!e.open&&e.multiple?e.activate(!1,!0):(e.
activeIndex>0||e.search.length===0&&e.tagging.isActivated&&e.activeIndex>-1)&&e.activeIndex--;break;case n.TAB:(!e.multiple||e.open)&&e.select(e.items[e.activeIndex],!0);break;case n.ENTER:e.open&&e.activeIndex>=
0?e.select(e.items[e.activeIndex]):e.activate(!1,!0);break;case n.ESC:e.close();break;default:i=!1}return i}e.searchInput.on("keydown",function(i){var r=i.which;$scope.$apply(function(){var f=!1;if((e.
items.length>0||e.tagging.isActivated)&&(l(r),e.taggingTokens.isActivated)){for(var u=0;u<e.taggingTokens.tokens.length;u++)e.taggingTokens.tokens[u]===n.MAP[i.keyCode]&&e.search.length>0&&(f=!0);f&&t(
function(){e.searchInput.triggerHandler("tagged");var t=e.search.replace(n.MAP[i.keyCode],"").trim();e.tagging.fct&&(t=e.tagging.fct(t));t&&e.select(t,!0)})}});n.isVerticalMovement(r)&&e.items.length>
0&&a()});e.searchInput.on("paste",function(n){var t=n.originalEvent.clipboardData.getData("text/plain");if(t&&t.length>0&&e.taggingTokens.isActivated&&e.tagging.fct){var i=t.split(e.taggingTokens.tokens[
0]);i&&i.length>0&&(angular.forEach(i,function(n){var t=e.tagging.fct(n);t&&e.select(t,!0)}),n.preventDefault(),n.stopPropagation())}});e.searchInput.on("tagged",function(){t(function(){s()})});function a(
){var n=$element.querySelectorAll(".ui-select-choices-content"),r=n.querySelectorAll(".ui-select-choices-row");if(r.length<1)throw u("choices","Expected multiple .ui-select-choices-row but got '{0}'.",
r.length);if(!(e.activeIndex<0)){var t=r[e.activeIndex],i=t.offsetTop+t.clientHeight-n[0].scrollTop,f=n[0].offsetHeight;i>f?n[0].scrollTop+=i-f:i<t.clientHeight&&(e.isGrouped&&e.activeIndex===0?n[0].scrollTop=
0:n[0].scrollTop-=t.clientHeight-i)}}$scope.$on("$destroy",function(){e.searchInput.off("keyup keydown tagged blur paste")})}]);t.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset",
"$compile","$parse","$timeout",function(n,t,i,r,u,f,e){return{restrict:"EA",templateUrl:function(n,i){var r=i.theme||t.theme;return r+(angular.isDefined(i.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")
},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(u,o){return angular.isDefined(o.multiple)?u.append("<ui-select-multiple/>").
removeAttr("multiple"):u.append("<ui-select-single/>"),function(u,o,s,h,c){var l=h[0],b=h[1];l.generatedId=t.generateId();l.baseTitle=s.title||"Select box";l.focusserTitle=l.baseTitle+" focus";l.focusserId=
"focusser-"+l.generatedId;l.closeOnSelect=function(){return angular.isDefined(s.closeOnSelect)?f(s.closeOnSelect)():t.closeOnSelect}();l.onSelectCallback=f(s.onSelect);l.onRemoveCallback=f(s.onRemove);
l.ngModel=b;l.choiceGrouped=function(n){return l.isGrouped&&n&&n.name};s.tabindex&&s.$observe("tabindex",function(n){l.focusInput.attr("tabindex",n);o.removeAttr("tabindex")});u.$watch("searchEnabled",
function(){var n=u.$eval(s.searchEnabled);l.searchEnabled=n!==undefined?n:t.searchEnabled});u.$watch("sortable",function(){var n=u.$eval(s.sortable);l.sortable=n!==undefined?n:t.sortable});s.$observe(
"disabled",function(){l.disabled=s.disabled!==undefined?s.disabled:!1});s.$observe("resetSearchInput",function(){var n=u.$eval(s.resetSearchInput);l.resetSearchInput=n!==undefined?n:!0});s.$observe("tagging",
function(){if(s.tagging!==undefined){var n=u.$eval(s.tagging);l.tagging={isActivated:!0,fct:n!==!0?n:undefined}}else l.tagging={isActivated:!1,fct:undefined}});s.$observe("taggingLabel",function(){s.tagging!==
undefined&&(l.taggingLabel=s.taggingLabel==="false"?!1:s.taggingLabel!==undefined?s.taggingLabel:"(new)")});s.$observe("taggingTokens",function(){if(s.tagging!==undefined){var n=s.taggingTokens!==undefined?
s.taggingTokens.split("|"):[",","ENTER"];l.taggingTokens={isActivated:!0,tokens:n}}});angular.isDefined(s.autofocus)&&e(function(){l.setFocus()});angular.isDefined(s.focusOn)&&u.$on(s.focusOn,function(
){e(function(){l.setFocus()})});function v(n){if(l.open){var r=!1;if(r=window.jQuery?window.jQuery.contains(o[0],n.target):o[0].contains(n.target),!r&&!l.clickTriggeredSelect){var t=angular.element(n.
target).scope(),i=t&&t.$select&&t.$select!==l;i||(i=~["input","button","textarea"].indexOf(n.target.tagName.toLowerCase()));l.close(i);u.$digest()}l.clickTriggeredSelect=!1}}n.on("click",v);u.$on("$destroy",
function(){n.off("click",v)});c(u,function(n){var u=angular.element("<div>").append(n),t=u.querySelectorAll(".ui-select-match");if(t.removeAttr("ui-select-match"),t.removeAttr("data-ui-select-match"),
t.length!==1)throw i("transcluded","Expected 1 .ui-select-match but got '{0}'.",t.length);o.querySelectorAll(".ui-select-match").replaceWith(t);var r=u.querySelectorAll(".ui-select-choices");if(r.removeAttr(
"ui-select-choices"),r.removeAttr("data-ui-select-choices"),r.length!==1)throw i("transcluded","Expected 1 .ui-select-choices but got '{0}'.",r.length);o.querySelectorAll(".ui-select-choices").replaceWith(
r)});var y=u.$eval(s.appendToBody);(y!==undefined?y:t.appendToBody)&&(u.$watch("$select.open",function(n){n?k():w()}),u.$on("$destroy",function(){w()}));var a=null,p="";function k(){var t=r(o);a=angular.
element('<div class="ui-select-placeholder"><\/div>');a[0].style.width=t.width+"px";a[0].style.height=t.height+"px";o.after(a);p=o[0].style.width;n.find("body").append(o);o[0].style.position="absolute";
o[0].style.left=t.left+"px";o[0].style.top=t.top+"px";o[0].style.width=t.width+"px"}function w(){a!==null&&(a.replaceWith(o),a=null,o[0].style.position="",o[0].style.left="",o[0].style.top="",o[0].style.
width=p)}}}}}]);t.directive("uiSelectMatch",["uiSelectConfig",function(n){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){var i=t.parent().attr("theme")||n.theme,
r=t.parent().attr("multiple");return i+(r?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,i,r,u){u.lockChoiceExpression=r.uiLockChoice;r.$observe("placeholder",function(t){u.placeholder=
t!==undefined?t:n.placeholder});function f(n){u.allowClear=angular.isDefined(n)?n===""?!0:n.toLowerCase()==="true":!1}r.$observe("allowClear",f);f(r.allowClear);u.multiple&&u.sizeSearchInput()}}}]);t.
directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,i){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function($scope,n){var i=this,t=$scope.$select,
r;$scope.$evalAsync(function(){r=$scope.ngModel});i.activeMatchIndex=-1;i.updateModel=function(){r.$setViewValue(Date.now());i.refreshComponent()};i.refreshComponent=function(){t.refreshItems();t.sizeSearchInput(
)};i.removeChoice=function(r){var u=t.selected[r];if(!u._uiSelectChoiceLocked){var f={};f[t.parserResult.itemName]=u;t.selected.splice(r,1);i.activeMatchIndex=-1;t.sizeSearchInput();n(function(){t.onRemoveCallback(
$scope,{$item:u,$model:t.parserResult.modelMapper($scope,f)})});i.updateModel()}};i.getPlaceholder=function(){if(!t.selected.length)return t.placeholder}}],controllerAs:"$selectMultiple",link:function(
r,u,f,e){var o=e[0],h=r.ngModel=e[1],s=r.$selectMultiple;o.multiple=!0;o.removeSelected=!0;o.focusInput=o.searchInput;h.$parsers.unshift(function(){for(var n={},i,u=[],t=o.selected.length-1;t>=0;t--)n=
{},n[o.parserResult.itemName]=o.selected[t],i=o.parserResult.modelMapper(r,n),u.unshift(i);return u});h.$formatters.unshift(function(n){var f=o.parserResult.source(r,{$select:{search:""}}),e={},u;if(!f)
return n;var t=[],s=function(n,i){if(n&&n.length){for(var f=n.length-1;f>=0;f--){if(e[o.parserResult.itemName]=n[f],u=o.parserResult.modelMapper(r,e),o.parserResult.trackByExp){var s=/\.(.+)/.exec(o.parserResult.
trackByExp);if(s.length>0&&u[s[1]]==i[s[1]])return t.unshift(n[f]),!0}if(angular.equals(u,i))return t.unshift(n[f]),!0}return!1}};if(!n)return t;for(var i=n.length-1;i>=0;i--)s(o.selected,n[i])||s(f,n[
i])||t.unshift(n[i]);return t});r.$watchCollection(function(){return h.$modelValue},function(n,t){t!=n&&(h.$modelValue=null,s.refreshComponent())});h.$render=function(){if(!angular.isArray(h.$viewValue))
if(angular.isUndefined(h.$viewValue)||h.$viewValue===null)o.selected=[];else throw t("multiarr","Expected model value to be array but got '{0}'",h.$viewValue);o.selected=h.$viewValue;r.$evalAsync()};r.
$on("uis:select",function(n,t){o.selected.push(t);s.updateModel()});r.$on("uis:activate",function(){s.activeMatchIndex=-1});r.$watch("$select.disabled",function(n,t){t&&!n&&o.sizeSearchInput()});o.searchInput.
on("keydown",function(t){var i=t.which;r.$apply(function(){var r=!1;n.isHorizontalMovement(i)&&(r=v(i));r&&i!=n.TAB&&(t.preventDefault(),t.stopPropagation())})});function a(n){return angular.isNumber(
n.selectionStart)?n.selectionStart:n.value.length}function v(t){var e=a(o.searchInput[0]),h=o.selected.length,i=h-1,r=s.activeMatchIndex,c=s.activeMatchIndex+1,f=s.activeMatchIndex-1,u=r;if(e>0||o.search.
length&&t==n.RIGHT)return!1;o.close();function l(){switch(t){case n.LEFT:return~s.activeMatchIndex?f:i;case n.RIGHT:return~s.activeMatchIndex&&r!==i?c:(o.activate(),!1);case n.BACKSPACE:return~s.activeMatchIndex?
(s.removeChoice(r),f):i;case n.DELETE:return~s.activeMatchIndex?(s.removeChoice(s.activeMatchIndex),r):!1}}return u=l(),s.activeMatchIndex=o.selected.length&&u!==!1?Math.min(i,Math.max(0,u)):-1,!0}o.searchInput.
on("keyup",function(t){if(n.isVerticalMovement(t.which)||r.$evalAsync(function(){o.activeIndex=o.taggingLabel===!1?-1:0}),o.tagging.isActivated&&o.search.length>0){if(t.which===n.TAB||n.isControl(t)||
n.isFunctionKey(t)||t.which===n.ESC||n.isVerticalMovement(t.which))return;if(o.activeIndex=o.taggingLabel===!1?-1:0,o.taggingLabel===!1)return;var i=angular.copy(o.items),u=angular.copy(o.items),f,v,s=
!1,a=-1,e,h;if(o.tagging.fct!==undefined){if(e=o.$filter("filter")(i,{isTag:!0}),e.length>0&&(h=e[0]),i.length>0&&h&&(s=!0,i=i.slice(1,i.length),u=u.slice(1,u.length)),f=o.tagging.fct(o.search),f.isTag=
!0,u.filter(function(n){return angular.equals(n,o.tagging.fct(o.search))}).length>0)return;f.isTag=!0}else{if(e=o.$filter("filter")(i,function(n){return n.match(o.taggingLabel)}),e.length>0&&(h=e[0]),
v=i[0],v!==undefined&&i.length>0&&h&&(s=!0,i=i.slice(1,i.length),u=u.slice(1,u.length)),f=o.search+" "+o.taggingLabel,l(o.selected,o.search)>-1)return;if(c(u.concat(o.selected))){s&&(i=u,r.$evalAsync(
function(){o.activeIndex=0;o.items=i}));return}if(c(u)){s&&(o.items=u.slice(1,u.length));return}}s&&(a=l(o.selected,f));a>-1?i=i.slice(a+1,i.length-1):(i=[],i.push(f),i=i.concat(u));r.$evalAsync(function(
){o.activeIndex=0;o.items=i})}});function c(n){if(n===undefined||o.search===undefined)return!1;return n.filter(function(n){return o.search.toUpperCase()===undefined||n===undefined?!1:n.toUpperCase()===
o.search.toUpperCase()}).length>0}function l(n,t){var r=-1;if(angular.isArray(n))for(var u=angular.copy(n),i=0;i<u.length;i++)if(o.tagging.fct===undefined)u[i]+" "+o.taggingLabel===t&&(r=i);else{var f=
u[i];f.isTag=!0;angular.equals(f,t)&&(r=i)}return r}o.searchInput.on("blur",function(){i(function(){s.activeMatchIndex=-1})})}}}]);t.directive("uiSelectSingle",["$timeout","$compile",function(t,i){return{
restrict:"EA",require:["^uiSelect","^ngModel"],link:function(r,u,f,e){var o=e[0],h=e[1];h.$parsers.unshift(function(n){var t={};return t[o.parserResult.itemName]=n,o.parserResult.modelMapper(r,t)});h.
$formatters.unshift(function(n){var t=o.parserResult.source(r,{$select:{search:""}}),u={},f;if(t){var e=function(t){return u[o.parserResult.itemName]=t,f=o.parserResult.modelMapper(r,u),f==n};if(o.selected&&
e(o.selected))return o.selected;for(var i=t.length-1;i>=0;i--)if(e(t[i]))return t[i]}return n});r.$watch("$select.selected",function(n){h.$viewValue!==n&&h.$setViewValue(n)});h.$render=function(){o.selected=
h.$viewValue};r.$on("uis:select",function(n,t){o.selected=t});r.$on("uis:close",function(n,i){t(function(){o.focusser.prop("disabled",!1);i||o.focusser[0].focus()},0,!1)});r.$on("uis:activate",function(
){s.prop("disabled",!0)});var s=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");
i(s)(r);o.focusser=s;o.focusInput=s;u.parent().append(s);s.bind("focus",function(){r.$evalAsync(function(){o.focus=!0})});s.bind("blur",function(){r.$evalAsync(function(){o.focus=!1})});s.bind("keydown",
function(t){if(t.which===n.BACKSPACE){t.preventDefault();t.stopPropagation();o.select(undefined);r.$apply();return}t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||((t.which==n.DOWN||
t.which==n.UP||t.which==n.ENTER||t.which==n.SPACE)&&(t.preventDefault(),t.stopPropagation(),o.activate()),r.$digest())});s.bind("keyup input",function(t){t.which===n.TAB||n.isControl(t)||n.isFunctionKey(
t)||t.which===n.ESC||t.which==n.ENTER||t.which===n.BACKSPACE||(o.activate(s.val()),s.val(""),r.$digest())})}}}]);t.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(n,t,i)
{return{require:"^uiSelect",link:function(t,r,u,f){if(t[u.uiSelectSort]===null)throw i("sort","Expected a list to sort");var y=angular.extend({axis:"horizontal"},t.$eval(u.uiSelectSortOptions)),l=y.axis,
s="dragging",h="dropping",e="dropping-before",o="dropping-after";t.$watch(function(){return f.sortable},function(n){n?r.attr("draggable",!0):r.removeAttr("draggable")});r.on("dragstart",function(n){r.
addClass(s);(n.dataTransfer||n.originalEvent.dataTransfer).setData("text/plain",t.$index)});r.on("dragend",function(){r.removeClass(s)});var p=function(n,t){this.splice(t,0,this.splice(n,1)[0])},a=function(
n){n.preventDefault();var t=l==="vertical"?n.offsetY||n.layerY||(n.originalEvent?n.originalEvent.offsetY:0):n.offsetX||n.layerX||(n.originalEvent?n.originalEvent.offsetX:0);t<this[l==="vertical"?"offsetHeight":
"offsetWidth"]/2?(r.removeClass(o),r.addClass(e)):(r.removeClass(e),r.addClass(o))},v,c=function(t){t.preventDefault();var i=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text/plain"),
10);n.cancel(v);v=n(function(){w(i)},20)},w=function(n){var i=t.$eval(u.uiSelectSort),s=i[n],f=null;f=r.hasClass(e)?n<t.$index?t.$index-1:t.$index:n<t.$index?t.$index:t.$index+1;p.apply(i,[n,f]);t.$apply(
function(){t.$emit("uiSelectSort:change",{array:i,item:s,from:n,to:f})});r.removeClass(h);r.removeClass(e);r.removeClass(o);r.off("drop",c)};r.on("dragenter",function(){if(!r.hasClass(s)){r.addClass(h);
r.on("dragover",a);r.on("drop",c)}});r.on("dragleave",function(n){n.target==r&&(r.removeClass(h),r.removeClass(e),r.removeClass(o),r.off("dragover",a),r.off("drop",c))})}}}]);t.service("uisRepeatParser",
["uiSelectMinErr","$parse",function(n,t){var i=this;i.parse=function(i){var r=i.match(/^\s*(?:([\s\S]+?)\s+as\s+)?([\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!r)throw n("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",
i);return{itemName:r[2],source:t(r[3]),trackByExp:r[4],modelMapper:t(r[1]||r[2])}};i.getGroupNgRepeatExpression=function(){return"$group in $select.groups"};i.getNgRepeatExpression=function(n,t,i,r){var
u=n+" in "+(r?"$group.items":t);return i&&(u+=" track by "+i),u}}])}();angular.module("ui.select").run(["$templateCache",function(n){n.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content dropdown-menu" role="listbox" ng-show="$select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"><\/div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"><\/div><div id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><a href="javascript:void(0)" class="ui-select-choices-row-inner"><\/a><\/div><\/li><\/ul>');
n.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;<\/span> <span uis-transclude-append=""><\/span><\/span><\/span><\/span>');
n.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""><\/span> <i class="caret pull-right" ng-click="$select.toggle($event)"><\/i> <a ng-show="$select.allowClear && !$select.isEmpty()" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"><\/i><\/a><\/span><\/div>');
n.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"><\/div><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"><\/div><div class="ui-select-choices"><\/div><\/div>');
n.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"><\/div><input type="text" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.searchEnabled && $select.open"><div class="ui-select-choices"><\/div><\/div>');
n.put("select2/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"><\/div><ul role="listbox" id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"><\/div><\/li><\/ul><\/li><\/ul>');
n.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""><\/span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"><\/a><\/li><\/span>');
n.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""><\/span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"><\/abbr> <span class="select2-arrow ui-select-toggle"><b><\/b><\/span><\/a>');
n.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"><\/span><li class="select2-search-field"><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"><\/li><\/ul><div class="select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="ui-select-choices"><\/div><\/div><\/div>');
n.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"><\/div><div class="select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="select2-search" ng-show="$select.searchEnabled"><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="ui-select-search select2-input" ng-model="$select.search"><\/div><div class="ui-select-choices"><\/div><\/div><\/div>');
n.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"><\/div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""><\/div><\/div><\/div><\/div><\/div>');
n.put("selectize/match.tpl.html",'<div ng-hide="($select.open || $select.isEmpty())" class="ui-select-match" ng-transclude=""><\/div>');n.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.activate()"><div class="ui-select-match"><\/div><input type="text" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"><\/div><div class="ui-select-choices"><\/div><\/div>')}
]);angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.tabs"]);angular.module("ui.bootstrap.tpls",["template/tabs/tab.html","template/tabs/tabset.html"]);angular.module("ui.bootstrap.tabs",
[]).controller("TabsetController",["$scope",function($scope){var t=this,n=t.tabs=$scope.tabs=[];t.select=function(t){angular.forEach(n,function(n){n.active&&n!==t&&(n.active=!1,n.onDeselect())});t.active=
!0;t.onSelect()};t.addTab=function(i){n.push(i);n.length===1&&i.active!==!1?i.active=!0:i.active?t.select(i):i.active=!1};t.removeTab=function(r){var u=n.indexOf(r);if(r.active&&n.length>1&&!i){var f=
u==n.length-1?u-1:u+1;t.select(n[f])}n.splice(u,1)};var i;$scope.$on("$destroy",function(){i=!0})}]).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","$log",function(n,t){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(i,r,u){return function(i,r,f,e){i.$watch("active",function(n){n&&e.select(i)});i.disabled=!1;f.disable&&i.$parent.
$watch(n(f.disable),function(n){i.disabled=!!n});f.disabled&&(t.warn('Use of "disabled" attribute has been deprecated, please use "disable"'),i.$parent.$watch(n(f.disabled),function(n){i.disabled=!!n}
));i.select=function(){i.disabled||(i.active=!0)};e.addTab(i);i.$on("$destroy",function(){e.removeTab(i)});i.$transcludeFn=u}}}}]).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(){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)})})}};function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||
n.hasAttribute("data-tab-heading")||n.tagName.toLowerCase()==="tab-heading"||n.tagName.toLowerCase()==="data-tab-heading")}});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 href ng-click="select()" tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("template/tabs/tabset.html",
[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'<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.$$csp()||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}<\/style>');
!function(n){var u=/iPhone/i,s=/iPod/i,h=/iPad/i,f=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,c=/Android/i,i=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,r=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,
l=/IEMobile/i,a=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,v=/BlackBerry/i,y=/BB10/i,p=/Opera Mini/i,w=/(CriOS|Chrome)(?=.*\bMobile\b)/i,b=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,k=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)",
"i"),t=function(n,t){return n.test(t)},e=function(n){var e=n||navigator.userAgent,o=e.split("[FBAN");return"undefined"!=typeof o[1]&&(e=o[0]),this.apple={phone:t(u,e),ipod:t(s,e),tablet:!t(u,e)&&t(h,e),
device:t(u,e)||t(s,e)||t(h,e)},this.amazon={phone:t(i,e),tablet:!t(i,e)&&t(r,e),device:t(i,e)||t(r,e)},this.android={phone:t(i,e)||t(f,e),tablet:!t(i,e)&&!t(f,e)&&(t(r,e)||t(c,e)),device:t(i,e)||t(r,e)||
t(f,e)||t(c,e)},this.windows={phone:t(l,e),tablet:t(a,e),device:t(l,e)||t(a,e)},this.other={blackberry:t(v,e),blackberry10:t(y,e),opera:t(p,e),firefox:t(b,e),chrome:t(w,e),device:t(v,e)||t(y,e)||t(p,e)||
t(b,e)||t(w,e)},this.seven_inch=t(k,e),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.
phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window?this:void 0},o=function(){var n=new e;return n.Class=e,n};"undefined"!=typeof module&&module.exports&&
"undefined"==typeof window?module.exports=e:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=o():"function"==typeof define&&define.amd?define("isMobile",[],n.isMobile=
o()):n.isMobile=o()}(this),function(){"use strict";angular.module("ismobile",[]);angular.module("ismobile").provider("isMobile",["$windowProvider",function(n){var t=n.$get();angular.extend(this,t.isMobile);
this.$get=[function(){return angular.copy(t.isMobile)}]}])}()