function AngularUUID(){function n(n){function k(n,t,i){var u=t&&i||0,r=0;for(t=t||[],n.toLowerCase().replace(/[0-9a-f]{2}/g,function(n){r<16&&(t[u+r++]=p[n])});r<16;)t[u+r++]=0;return t}function l(n,t){var i=t||0,r=c;return r[n[i++]]+r[n[i++]]+r[n[i++]]+r[n[i++]]+"-"+r[n[i++]]+r[n[i++]]+"-"+r[n[i++]]+r[n[i++]]+"-"+r[n[i++]]+r[n[i++]]+"-"+r[n[i++]]+r[n[i++]]+r[n[i++]]+r[n[i++]]+r[n[i++]]+r[n[i++]]}function g(n,t,i){var u=t&&i||0,r=t||[],s,h,p,c;n=n||{};var e=n.clockseq!=null?n.clockseq:w,f=n.msecs!=null?n.msecs:(new Date).getTime(),o=n.nsecs!=null?n.nsecs:v+1,y=f-a+(o-v)/1e4;if(y<0&&n.clockseq==null&&(e=e+1&16383),(y<0||f>a)&&n.nsecs==null&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");for(a=f,v=o,w=e,f+=122192928e5,s=((f&268435455)*1e4+o)%4294967296,r[u++]=s>>>24&255,r[u++]=s>>>16&255,r[u++]=s>>>8&255,r[u++]=s&255,h=f/4294967296*1e4&268435455,r[u++]=h>>>8&255,r[u++]=h&255,r[u++]=h>>>24&15|16,r[u++]=h>>>16&255,r[u++]=e>>>8|128,r[u++]=e&255,p=n.node||d,c=0;c<6;c++)r[u+c]=p[c];return t?t:l(r)}function b(n,t,r){var e=t&&r||0,u,f;if(typeof n=="string"&&(t=n=="binary"?new y(16):null,n=null),n=n||{},u=n.random||(n.rng||i)(),u[6]=u[6]&15|64,u[8]=u[8]&63|128,t)for(f=0;f<16;f++)t[e+f]=u[f];return t||l(u)}var f=n,i,e=f.crypto||f.msCrypto,o,s,h,r,u;if(typeof f.require=="function")try{o=f.require("crypto").randomBytes;i=o&&function(){return o(16)}}catch(nt){}!i&&e&&e.getRandomValues&&(s=new Uint8Array(16),i=function(){return e.getRandomValues(s),s});i||(h=new Array(16),i=function(){for(var n=0,t;n<16;n++)(n&3)==0&&(t=Math.random()*4294967296),h[n]=t>>>((n&3)<<3)&255;return h});var y=typeof f.Buffer=="function"?f.Buffer:Array,c=[],p={};for(r=0;r<256;r++)c[r]=(r+256).toString(16).substr(1),p[c[r]]=r;var t=i(),d=[t[0]|1,t[1],t[2],t[3],t[4],t[5]],w=(t[6]<<8|t[7])&16383,a=0,v=0;return u=b,u.v1=g,u.v4=b,u.parse=k,u.unparse=l,u.BufferClass=y,u}angular.module("angular-uuid-generator",[]).factory("uuid",["$window",n])}function detectIE(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1}function detectCompatibleBrowser(){var n=!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,r=typeof InstallTrigger!="undefined",u=/constructor/i.test(window.HTMLElement)||function(n){return n.toString()==="[object SafariRemoteNotification]"}(!window.safari||typeof safari!="undefined"&&safari.pushNotification),t=/*@cc_on!@*/!1||!!document.documentMode,f=!t&&!!window.StyleMedia,i=!!window.chrome&&!!window.chrome.webstore,e=(i||n)&&!!window.CSS;return!1}var ngFileUpload,files;(function(n,t){typeof module=="object"&&typeof module.exports=="object"?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)})(typeof window!="undefined"?window:this,function(n,t){function ri(n){var t="length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ui(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(typeof t=="string"){if(ef.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return ft.call(t,n)>=0!==r})}function ur(n,t){while((n=n[t])&&n.nodeType!==1);return n}function of(n){var t=fi[n]={};return i.each(n.match(c)||[],function(n,i){t[i]=!0}),t}function ht(){u.removeEventListener("DOMContentLoaded",ht,!1);n.removeEventListener("load",ht,!1);i.ready()}function v(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=i.expando+v.uid++}function fr(n,t,r){var u;if(r===undefined&&n.nodeType===1)if(u="data-"+t.replace(hf,"-$1").toLowerCase(),r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:sf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=undefined;return r}function lt(){return!0}function k(){return!1}function hr(){try{return u.activeElement}catch(n){}}function vr(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function bf(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function kf(n){var t=pf.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ei(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yr(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}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 t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function df(n,t){var i=t.nodeName.toLowerCase();i==="input"&&er.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(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 si(n){var r=u,t=oi[n];return t||(t=pr(n,r),t!=="none"&&t||(at=(at||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=at[0].contentDocument,r.write(),r.close(),t=pr(n,r),at.detach()),oi[n]=t),t}function it(n,t,r){var e,o,s,u,f=n.style;return r=r||vt(n),r&&(u=r.getPropertyValue(t)||r[t]),r&&(u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),hi.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)),u!==undefined?u+"":u}function br(n,t){return{get:function(){if(n()){delete this.get;return}return(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:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function iu(n,t,r){var o=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,e=vt(n),s=i.css(n,"boxSizing",!1,e)==="border-box";if(u<=0||u==null){if(u=it(n,t,e),(u<0||u==null)&&(u=n.style[t]),hi.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;f<h;f++)(u=n[f],u.style)&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||e!=="none"||(u.style.display=""),u.style.display===""&&tt(u)&&(o[f]=r.access(u,"olddisplay",si(u.nodeName)))):(s=tt(u),e==="none"&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;f<h;f++)(u=n[f],u.style)&&(t&&u.style.display!=="none"&&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(){d=undefined}),d=i.now()}function wt(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=p[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=(rt[t]||[]).concat(rt["*"]),r=0,e=f.length;r<e;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&&tt(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(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()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b=h==="none"?r.get(n,"olddisplay")||si(n.nodeName):h,b==="inline"&&i.css(n,"float")==="none"&&(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||a==="toggle",a===(c?"hide":"show"))if(a==="show"&&e&&e[f]!==undefined)c=!0;else continue;y[f]=e&&e[f]||i.style(n,f)}else h=undefined;if(i.isEmptyObject(y))(h==="none"?si(n.nodeName):h)==="inline"&&(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=f==="width"||f==="height"?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 e,o,s=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=d||fu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?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:d||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(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(ee(h,u.opts.specialEasing);s<l;s++)if(e=pt[s].call(u,n,h,u.opts),e)return e;return i.map(h,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){typeof t!="string"&&(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);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===ci;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ai(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((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(),e===undefined&&(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(),u)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)){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+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)vi(n+"["+f+"]",t[f],r,u)}function ku(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}var w=[],a=w.slice,bi=w.concat,ti=w.push,ft=w.indexOf,et={},nf=et.toString,ii=et.hasOwnProperty,f={},u=n.document,ki="2.1.4",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,ot,nr,tr,ir,rr,c,fi,st,l,b,at,oi,oe,su,g,hu,bt,cu,kt,dt,yi,ni,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 n!=null?n<0?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+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:w.sort,splice:w.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(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)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)):t!==undefined&&(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 i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)+1>=0},isPlainObject:function(n){return i.type(n)!=="object"||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ii.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?et[nf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(n.indexOf("use strict")===1?(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=ri(n);if(i){if(e){for(;r<f;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(;r<f;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 n==null?"":(n+"").replace(tf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ri(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ft.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;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;r<e;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=ri(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(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)},now:Date.now,support:f});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){et["[object "+t+"]"]=t.toLowerCase()});y=function(n){function r(n,t,i,r){var p,s,a,c,w,y,d,v,nt,g;if((t?t.ownerDocument||t:h)!==o&&k(t),t=t||o,i=i||[],c=t.nodeType,typeof n!="string"||!n||c!==1&&c!==9&&c!==11)return i;if(!r&&l){if(c!==11&&(p=hr.exec(n)))if(a=p[1]){if(c===9)if(s=t.getElementById(a),s&&s.parentNode){if(s.id===a)return i.push(s),i}else return i;else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&et(t,s)&&s.id===a)return i.push(s),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((a=p[3])&&u.getElementsByClassName)return b.apply(i,t.getElementsByClassName(a)),i}if(u.qsa&&(!e||!e.test(n))){if(v=d=f,nt=t,g=c!==1&&n,c===1&&t.nodeName.toLowerCase()!=="object"){for(y=ft(n),(d=t.getAttribute("id"))?v=d.replace(cr,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",w=y.length;w--;)y[w]=v+vt(y[w]);nt=dt.test(n)&&ti(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 oi(n.replace(lt,"$1"),t,i,r)}function gt(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function c(n){return n[f]=!0,n}function v(n){var t=o.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ni(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&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function tt(n){return c(function(t){return t=+t,c(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 ti(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function bi(){}function vt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ii(n,t,i){var r=t.dir,u=i&&r==="parentNode",e=ki++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ri(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 vr(n,t,i){for(var u=0,f=t.length;u<f;u++)r(n,t[u],i);return i}function yt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ui(n,t,i,r,u,e){return r&&!r[f]&&(r=ui(r)),u&&!u[f]&&(u=ui(u,e)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||vr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?yt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=yt(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(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=yt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function fi(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ii(function(n){return n===o},c,!0),a=ii(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[ii(ri(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return ui(i>1&&ri(e),i>1&&vt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(lt,"$1"),u,i<r&&fi(n.slice(i,r)),r<s&&fi(n=n.slice(r)),r<s&&vt(n))}e.push(u)}return ri(e)}function yr(n,i){var u=i.length>0,f=n.length>0,e=function(e,s,h,c,l){var y,d,w,k=0,v="0",g=e&&[],p=[],nt=ht,tt=e||f&&t.find.TAG("*",l),it=a+=nt==null?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==o&&s);v!==rt&&(y=tt[v])!=null;v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}u&&((y=!w&&y)&&k--,e&&g.push(y))}if(k+=v,u&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(e){if(k>0)while(v--)g[v]||p[v]||(p[v]=gi.call(c));p=yt(p)}b.apply(c,p);l&&!e&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(a=it,ht=nt),g};return u?c(e):e}var it,u,t,st,ei,ft,pt,oi,ht,w,rt,k,o,s,l,e,d,ct,et,f="sizzle"+1*new Date,h=n.document,a=0,ki=0,si=gt(),hi=gt(),ci=gt(),wt=function(n,t){return n===t&&(rt=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,b=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},bt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ut="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ut.replace("w","w#"),yi="\\["+i+"*("+ut+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+vi+"))|)"+i+"*\\]",kt=":("+ut+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+yi+")*)|.*)\\)|)",tr=new RegExp(i+"+","g"),lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),ir=new RegExp("^"+i+"*,"+i+"*"),rr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ur=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),fr=new RegExp(kt),er=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ut+")"),CLASS:new RegExp("^\\.("+ut+")"),TAG:new RegExp("^("+ut.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+kt),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("^(?:"+bt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},or=/^(?:input|select|textarea|button)$/i,sr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,hr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dt=/[+~]/,cr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},pi=function(){k()};try{b.apply(g=ai.call(h.childNodes),h.childNodes);g[h.childNodes.length].nodeType}catch(pr){b={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};ei=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};k=r.setDocument=function(n){var a,c,r=n?n.ownerDocument||n:h;return r===o||r.nodeType!==9||!r.documentElement?o:(o=r,s=r.documentElement,c=r.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",pi,!1):c.attachEvent&&c.attachEvent("onunload",pi)),l=!ei(r),u.attributes=v(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=v(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=ot.test(r.getElementsByClassName),u.getById=v(function(n){return s.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):u.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(l)return t.getElementsByClassName(n)},d=[],e=[],(u.qsa=ot.test(r.querySelectorAll))&&(v(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\f]' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&e.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||e.push("\\["+i+"*(?:value|"+bt+")");n.querySelectorAll("[id~="+f+"-]").length||e.push("~=");n.querySelectorAll(":checked").length||e.push(":checked");n.querySelectorAll("a#"+f+"+*").length||e.push(".#.+[+~]")}),v(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&e.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||e.push(":enabled",":disabled");n.querySelectorAll("*,:x");e.push(",.*:")})),(u.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&v(function(n){u.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",kt)}),e=e.length&&new RegExp(e.join("|")),d=d.length&&new RegExp(d.join("|")),a=ot.test(s.compareDocumentPosition),et=a||ot.test(s.contains)?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=t.parentNode)if(t===n)return!0;return!1},wt=a?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,i&1||!u.sortDetached&&t.compareDocumentPosition(n)===i)?n===r||n.ownerDocument===h&&et(h,n)?-1:t===r||t.ownerDocument===h&&et(h,t)?1:w?nt(w,n)-nt(w,t):0:i&4?-1:1}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===r?-1:t===r?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;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]===h?-1:e[u]===h?1:0},r)};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==o&&k(n),t=t.replace(ur,"='$1']"),u.matchesSelector&&l&&(!d||!d.test(t))&&(!e||!e.test(t)))try{var i=ct.call(n,t);if(i||u.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(f){}return r(t,o,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==o&&k(n),et(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==o&&k(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):undefined;return r!==undefined?r:u.attributes||!l?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,w=!u.sortStable&&n.slice(0),n.sort(wt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return w=null,n};st=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=r.selectors={cacheLength:50,createPseudo:c,match:at,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(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return at.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(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(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var v,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:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,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())?c(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:c(function(n){var t=[],r=[],i=pt(n.replace(lt,"$1"));return i[f]?c(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:c(function(n){return function(t){return r(n,t).length>0}}),contains:c(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===o.activeElement&&(!o.hasFocus||o.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 t==="input"&&!!n.checked||t==="option"&&!!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 sr.test(n.nodeName)},input:function(n){return or.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[i<0?i+t:i]}),even:tt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=i<0?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]=lr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=ar(it);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=ir.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=rr.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),u=u.slice(e.length));for(o in t.filter)(f=at[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):hi(n,h).slice(0)},pt=r.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=fi(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,yr(e,u));i.selector=n}return i},oi=r.select=function(n,i,r,f){var s,e,o,a,v,c=typeof n=="function"&&n,h=!f&&ft(n=c.selector||n);if(r=r||[],h.length===1){if(e=h[0]=h[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&u.getById&&i.nodeType===9&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(f=v(o.matches[0].replace(y,p),dt.test(e[0].type)&&ti(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&vt(e),!n)return b.apply(r,f),r;break}}}return(c||pt(n,h))(f,i,!l,r,dt.test(n)&&ti(i.parentNode)||i),r},u.sortStable=f.split("").sort(wt).join("")===f,u.detectDuplicates=!!rt,k(),u.sortDetached=v(function(n){return n.compareDocumentPosition(o.createElement("div"))&1}),v(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ni("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),u.attributes&&v(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ni("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),v(function(n){return n.getAttribute("disabled")==null})||ni(bt,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+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(t=0;t<u;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(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,typeof n=="string"&&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(typeof n=="string"){if(r=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:nr.exec(n),r&&(r[1]||!t)){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!t||t.jquery?(t||ot).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?typeof ot.ready!="undefined"?ot.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};tr.prototype=i.fn;ot=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=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&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;n<r;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)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?ft.call(i(n),this[0]):ft.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(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?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 n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(rr[n]||i.unique(f),ir.test(n)&&f.reverse()),this.pushStack(f)}});c=/\S+/g;fi={};i.Callbacks=function(n){n=typeof n=="string"?fi[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&&e<f;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);f==="function"?n.unique&&s.has(u)||t.push(u):u&&u.length&&f!=="string"&&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&&(u<=f&&f--,u<=e&&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=undefined,this},disabled:function(){return!t},lock:function(){return r=undefined,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 n!=null?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[n^1][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=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?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);t<r;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)||(st.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}});i.ready.promise=function(t){return st||(st=i.Deferred(),u.readyState==="complete"?setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",ht,!1),n.addEventListener("load",ht,!1))),st.promise(t)};i.ready.promise();l=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(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(;s<c;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 n.nodeType===1||n.nodeType===9||!+n.nodeType};v.uid=1;v.accepts=i.acceptData;v.prototype={key:function(n){if(!v.accepts(n))return 0;var r={},t=n[this.expando];if(!t){t=v.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(typeof t=="string")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 t===undefined?i:i[t]},access:function(n,t,r){var u;return t===undefined||t&&typeof t=="string"&&r===undefined?(u=this.get(n,t),u!==undefined?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),r!==undefined?r:t)},remove:function(n,t){var u,r,f,o=this.key(n),e=this.cache[o];if(t===undefined)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 v,e=new v,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(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),fr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):l(this,function(t){var r,f=i.camelCase(n);if(u&&t===undefined)return(r=e.get(u,n),r!==undefined)?r:(r=e.get(u,f),r!==undefined)?r:(r=fr(u,f,undefined),r!==undefined)?r:void 0;this.each(function(){var i=e.get(this,f);e.set(this,f,t);n.indexOf("-")!==-1&&i!==undefined&&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)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&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(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&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(typeof n!="string"&&(t=n,n=undefined),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 ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=["Top","Right","Bottom","Left"],tt=function(n,t){return n=t||n,i.css(n,"display")==="none"||!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})();b=typeof 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,k,h,s,l,o,d,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){return typeof i!==b&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(c)||[""],k=t.length;k--;)(w=sr.exec(t[k])||[],o=g=w[1],d=(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:d.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,d,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(o in v)i.event.remove(n,o+t[w],u,f,!0);continue}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])}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=ii.call(t,"type")?t.type:t,y=ii.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!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,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[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=undefined,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),e!==undefined&&(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||n.type!=="click"))for(;r!==this;r=r.parentNode||this)if(r.disabled!==!0||n.type!=="click"){for(u=[],e=0;e<s;e++)o=t[e],f=o.selector+" ",u[f]===undefined&&(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 n.which==null&&(n.which=t.charCode!=null?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 n.pageX==null&&t.clientX!=null&&(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||f===undefined||(n.which=f&1?1:f&2?3:f&4?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),n.target.nodeType===3&&(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(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&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){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?lt:k):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=lt;n&&n.preventDefault&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=lt;n&&n.stopPropagation&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=lt;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(typeof n=="object"){typeof t!="string"&&(r=r||t,t=undefined);for(o in n)this.on(o,t,r,n[o],f);return this}if(r==null&&u==null?(u=t,r=t=undefined):u==null&&(typeof t=="string"?(u=r,r=undefined):(u=r,r=t,t=undefined)),u===!1)u=k;else if(!u)return this;return f===1&&(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(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=k),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&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)df(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)yr(s[u],e[u]);else yr(n,h);return e=o(h,"script"),e.length>0&&ei(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;c<w;c++)if(f=n[c],f||f===0)if(i.type(f)==="object")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||i.inArray(f,u)===-1)&&(p=i.contains(f.ownerDocument,f),e=o(s.appendChild(f),"script"),p&&ei(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;(t=n[s])!==undefined;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 n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=vr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){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;(r=f[u])!=null;u++)t||r.nodeType!==1||i.cleanData(o(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&ei(o(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?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(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!vf.test(n)&&!h[(lr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(cr,"<$1><\/$2>");try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(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&&typeof a=="string"&&!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,h.childNodes.length===1&&(h=v),v)){for(s=i.map(o(h,"script"),bf),c=s.length;e<l;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;e<c;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;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});oi={};var wr=/^margin/,hi=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),vt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)};(function(){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=i.top!=="1%";o=i.width==="4px";e.removeChild(r)}var s,o,e=u.documentElement,r=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(t),n.getComputedStyle&&i.extend(f,{pixelPosition:function(){return h(),s},boxSizingReliable:function(){return o==null&&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),t.removeChild(i),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("^("+ct+")(.*)$","i"),te=new RegExp("^([+-])=("+ct+")","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=it(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&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=gr(c,s)),e=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(o=te.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),r==null||r!==r)return;h!=="number"||i.cssNumber[s]||(r+="px");f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit");e&&"set"in e&&(r=e.set(n,r,u))===undefined||(c[t]=r)}else return e&&"get"in e&&(o=e.get(n,!1,u))!==undefined?o:c[t]}},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)),f===undefined&&(f=it(n,t,u)),f==="normal"&&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"))&&n.offsetWidth===0?i.swap(n,ie,function(){return iu(n,t,u)}):iu(n,t,u)},set:function(n,r,u){var f=u&&vt(n);return nu(n,r,u?tu(n,t,u,i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}});i.cssHooks.marginRight=br(f.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},it,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[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=vt(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?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 typeof n=="boolean"?n?this.show():this.hide():this.each(function(){tt(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 t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||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 d,yt,re=/^(?:toggle|show|hide)$/,uu=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),ue=/queueHooks$/,pt=[fe],rt={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=uu.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&uu.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3];u=u||[];r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[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;u<f;u++)r=n[u],rt[r]=rt[r]||[],rt[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?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:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||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(tt).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 typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&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&&(n==null||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;t<s;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 n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("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(d=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();d=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=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=n.value==="t"}();g=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&&e!==3&&e!==8&&e!==2){if(typeof n.getAttribute===b)return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?su:oe)),r!==undefined)if(r===null)i.removeAttr(n,t);else return u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:(n.setAttribute(t,r+""),r);else return u&&"get"in u&&(f=u.get(n,t))!==null?f:(f=i.find.attr(n,t),f==null?undefined:f)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(c);if(f&&n.nodeType===1)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&&t==="radio"&&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=g[t]||i.find.attr;g[t]=function(n,t,i){var u,f;return i||(f=g[t],g[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,g[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&&e!==3&&e!==8&&e!==2)return o=e!==1||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?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});bt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,h=typeof n=="string"&&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)||[];e<l;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(bt," "):" "),r){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=arguments.length===0||typeof n=="string"&&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)||[];e<l;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(bt," "):""),r){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 typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(u==="string")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===b||u==="boolean")&&(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;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(bt," ").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;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(cu,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,h=u?null:[],c=u?r+1:s.length,e=r<0?c:u?r:0;e<c;e++)if(t=s[e],(t.selected||e===r)&&(f.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!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 n.getAttribute("value")===null?"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 arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});kt=i.now();dt=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(n){var t,r;if(!n||typeof n!="string")return null;try{r=new DOMParser;t=r.parseFromString(n,"text/xml")}catch(u){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+n),t};var se=/#.*$/,lu=/([?&])_=[^&]*/,he=/^(.*?):[ \t]*([^\r\n]*)$/mg,ce=/^(?:GET|HEAD)$/,le=/^\/\//,au=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,vu={},ci={},yu="*/".concat("*"),li=n.location.href,nt=au.exec(li.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:li,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[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(ci),ajax:function(n,t){function p(n,t,h,c){var v,it,tt,p,nt,l=t;e!==2&&(e=2,b&&clearTimeout(b),s=undefined,w=c||"",u.readyState=n>0?4:0,v=n>=200&&n<300||n===304,h&&(p=ae(r,u,h)),p=ve(r,p,u,v),v?(r.ifModified&&(nt=u.getResponseHeader("Last-Modified"),nt&&(i.lastModified[f]=nt),nt=u.getResponseHeader("etag"),nt&&(i.etag[f]=nt)),n===204||r.type==="HEAD"?l="nocontent":n===304?l="notmodified":(l=p.state,it=p.data,tt=p.error,v=!tt)):(tt=l,(n||!l)&&(l="error",n<0&&(n=0))),u.status=n,u.statusText=(t||l)+"",v?d.resolveWith(o,[it,l,u]):d.rejectWith(o,[u,l,tt]),u.statusCode(y),y=undefined,a&&k.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:tt]),g.fireWith(o,[u,l]),a&&(k.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(t=n,n=undefined);t=t||{};var s,f,w,v,b,h,a,l,r=i.ajaxSetup({},t),o=r.context||r,k=r.context&&(o.nodeType||o.jquery)?i(o):i.event,d=i.Deferred(),g=i.Callbacks("once memory"),y=r.statusCode||{},tt={},it={},e=0,rt="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(e===2){if(!v)for(v={};t=he.exec(w);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return e===2?w:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(e<2)for(t in n)y[t]=[y[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||rt;return s&&s.abort(t),p(0,t),this}};if(d.promise(u).complete=g.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||li)+"").replace(se,"").replace(le,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(c)||[""],r.crossDomain==null&&(h=au.exec(r.url.toLowerCase()),r.crossDomain=!!(h&&(h[1]!==nt[1]||h[2]!==nt[2]||(h[3]||(h[1]==="http:"?"80":"443"))!==(nt[3]||(nt[1]==="http:"?"80":"443"))))),r.data&&r.processData&&typeof r.data!="string"&&(r.data=i.param(r.data,r.traditional)),wu(vu,r,t,u),e===2)return u;a=i.event&&r.global;a&&i.active++==0&&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+=(dt.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=lu.test(f)?f.replace(lu,"$1_="+kt++):f+(dt.test(f)?"&":"?")+"_="+kt++));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(l in r.headers)u.setRequestHeader(l,r.headers[l]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||e===2))return u.abort();rt="abort";for(l in{success:1,error:1,complete:1})u[l](r[l]);if(s=wu(ci,r,t,u),s){u.readyState=1;a&&k.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(b=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;s.send(tt,p)}catch(ut){if(e<2)p(-1,ut);else throw ut;}}else p(-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,undefined,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=undefined),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});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 i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(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():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(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 r==null?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,gt={},de={0:200,1223:204},ut=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n]()}),f.cors=!!ut&&"withCredentials"in ut,f.ajax=ut=!!ut,i.ajaxTransport(function(n){var t;if(f.cors||ut&&!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 gt[e],t=u.onload=u.onerror=null,n==="abort"?u.abort():n==="error"?r(u.status,u.statusText):r(de[u.status]||u.status,u.statusText,typeof u.responseText=="string"?{text:u.responseText}:undefined,u.getAllResponseHeaders()))}};u.onload=t();u.onerror=t("error");t=gt[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){n.cache===undefined&&(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(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),yi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=yi.pop()||i.expando+"_"+kt++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":typeof t.data=="string"&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(dt.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=undefined}),"script"}),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(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(typeof n!="string"&&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=undefined):t&&typeof t=="object"&&(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.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),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={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(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));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(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 n===undefined?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))?u:(typeof t.getBoundingClientRect!==b&&(u=t.getBoundingClientRect()),f=ku(e),{top:u.top+f.pageYOffset-r.clientTop,left:u.left+f.pageXOffset-r.clientLeft})},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return i.css(u,"position")==="fixed"?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")&&i.css(n,"position")==="static";)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);if(f===undefined)return e?e[r]:t[i];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=it(n,t),hi.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||typeof u!="boolean"),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]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,typeof define=="function"&&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===b&&(n.jQuery=n.$=i),i});!function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return"function"==typeof i?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return"GET"===n||"POST"===n}function e(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function o(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){switch(u){case"BEFORE":n(r).prepend(i);break;case"AFTER":n(r).append(i);break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var s,h,f,c;s=t.getAttribute("data-ajax-confirm");s&&!window.confirm(s)||(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||void 0,url:t.getAttribute("data-ajax-url")||void 0,cache:"true"===(t.getAttribute("data-ajax-cache")||"").toLowerCase(),beforeSend:function(n){var r;return e(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){o(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function s(t){var i=n(t).data(h);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",h="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&(u.hasClass("cancel")||void 0!==u.attr("formnovalidate"));i.preventDefault();(o||s(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})}(jQuery),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()}(this,function(){"use strict";function t(n){function u(n){return n&&n!==document&&n.nodeName!=="HTML"&&n.nodeName!=="BODY"&&"classList"in n&&"contains"in n.classList?!0:!1}function c(n){var i=n.type,t=n.tagName;return t==="INPUT"&&h[i]&&!n.readOnly?!0:t==="TEXTAREA"&&!n.readOnly?!0:n.isContentEditable?!0:!1}function o(n){n.classList.contains("focus-visible")||(n.classList.add("focus-visible"),n.setAttribute("data-focus-visible-added",""))}function l(n){n.hasAttribute("data-focus-visible-added")&&(n.classList.remove("focus-visible"),n.removeAttribute("data-focus-visible-added"))}function a(t){t.metaKey||t.altKey||t.ctrlKey||(u(n.activeElement)&&o(n.activeElement),i=!0)}function f(){i=!1}function v(n){u(n.target)&&(i||c(n.target))&&o(n.target)}function y(n){u(n.target)&&(n.target.classList.contains("focus-visible")||n.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(e),e=window.setTimeout(function(){r=!1},100),l(n.target))}function p(){document.visibilityState==="hidden"&&(r&&(i=!0),s())}function s(){document.addEventListener("mousemove",t);document.addEventListener("mousedown",t);document.addEventListener("mouseup",t);document.addEventListener("pointermove",t);document.addEventListener("pointerdown",t);document.addEventListener("pointerup",t);document.addEventListener("touchmove",t);document.addEventListener("touchstart",t);document.addEventListener("touchend",t)}function w(){document.removeEventListener("mousemove",t);document.removeEventListener("mousedown",t);document.removeEventListener("mouseup",t);document.removeEventListener("pointermove",t);document.removeEventListener("pointerdown",t);document.removeEventListener("pointerup",t);document.removeEventListener("touchmove",t);document.removeEventListener("touchstart",t);document.removeEventListener("touchend",t)}function t(n){n.target.nodeName&&n.target.nodeName.toLowerCase()==="html"||(i=!1,w())}var i=!0,r=!1,e=null,h={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};document.addEventListener("keydown",a,!0);document.addEventListener("mousedown",f,!0);document.addEventListener("pointerdown",f,!0);document.addEventListener("touchstart",f,!0);document.addEventListener("visibilitychange",p,!0);s();n.addEventListener("focus",v,!0);n.addEventListener("blur",y,!0);n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=t;var n;try{n=new CustomEvent("focus-visible-polyfill-ready")}catch(i){n=document.createEvent("CustomEvent");n.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(n)}typeof document!="undefined"&&t(document)});$(document).ready(function(){$(".header-search-trigger").click(function(n){n.preventDefault();$(this).toggleClass("active");$(this).next().toggleClass("active");$(".header-search-container input").focus()});$(".Header-toggle").click(function(){$(".header-search-trigger").removeClass("active");$(".header-search-container").removeClass("active")})}),function(){"use strict";function yf(n,t,i){var r=i||vi(n);return r==="[object "+t+"]"}function rr(n){var t=n==="Array"&&f.isArray||function(t,i){return yf(t,n,i)};return eu[n]=t,t}function ou(n,t){var i=function(i){return nt(i)?yf(i,t):typeof i===n};return eu[t]=i,i}function vi(n){return fu.call(n)}function ps(){su(o);k(et,function(n,t){su(ir[t])})}function su(n){n.SugarMethods||(ni(n,"SugarMethods",{}),t(n,!1,!0,{extend:function(i,r,u){t(n,u!==!1,r,i)},sugarRestore:function(){return pf(this,n,arguments,function(n,t,i){ni(n,t,i.method)})},sugarRevert:function(){return pf(this,n,arguments,function(n,t,i){i.existed?ni(n,t,i.original):delete n[t]})}}))}function t(n,t,i,r){var u=t?n.prototype:n;su(n);k(r,function(r,f){var e=u[r],o=ut(u,r);y(i)&&e&&(f=ws(e,f,i));i===!1&&e||ni(u,r,f);n.SugarMethods[r]={method:f,existed:o,original:e,instance:t}})}function st(n,i,r,u,f){var e={};u=c(u)?u.split(","):u;u.forEach(function(n,t){f(e,n,t)});t(n,i,r,e)}function pf(n,t,i,r){var f=i.length===0,e=l(i),u=!1;return k(t.SugarMethods,function(t,i){(f||e.indexOf(t)!==-1)&&(u=!0,r(i.instance?n.prototype:n,t,i))}),u}function ws(n,t,i){return function(){return i.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}}function ni(n,t,i){vf?o.defineProperty(n,t,{value:i,configurable:!0,enumerable:!1,writable:!0}):n[t]=i}function l(n,t,i){for(var u=[],r=i||0,f=n.length;r<f;r++)u.push(n[r]),t&&t.call(n,n[r],r);return u}function ur(n,t,i){var r=n[i||0];return it(r)&&(n=r,i=0),l(n,t,i)}function yi(n){if(!n||!n.call)throw new TypeError("Callback is not callable");}function rt(n){return n!==uu}function e(n){return n===uu}function wf(n,t){return!hu(n)&&t in n}function ut(n,t){return!!n&&cs.call(n,t)}function nt(n){return!!n&&(typeof n=="object"||ls&&g(n))}function hu(n){var t=typeof n;return n==null||t==="string"||t==="number"||t==="boolean"}function ei(n,t){t=t||vi(n);try{if(n&&n.constructor&&!ut(n,"constructor")&&!ut(n.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}return!!n&&t==="[object Object]"&&"hasOwnProperty"in n}function k(n,t){for(var i in n)if(ut(n,i)&&t.call(n,i,n[i],n)===!1)break}function fr(n,t){for(var i=0;i<n;i++)t(i)}function pi(n,t){return k(t,function(i){n[i]=t[i]}),n}function bf(n){return hu(n)&&(n=o(n)),as&&c(n)&&bs(n),n}function bs(n){for(var t=0,i;i=n.charAt(t);)n[t++]=i}function ht(n){pi(this,bf(n))}function or(n,t,i){var r=er(10,ct(t||0));return i=i||yt,t<0&&(r=1/r),i(n*r)/r}function ie(n){return n>=kf&&n<=ks||n>=df&&n<=ds}function gs(){for(var t,n=0;n<=9;n++)t=pt(n+df),lu+=t,oi[t]=pt(n+kf);oi[ne]="";oi[gf]=wi;oi[wi]=wi;te=u("["+lu+gf+ne+wi+"]","g")}function pt(n){return s.fromCharCode(n)}function sr(){return"\t\n\x0b\f\r   ᠎             \u2028\u2029　﻿"}function hr(n,t){for(var i="",n=n.toString();t>0;)t&1&&(i+=n),(t>>=1)&&(n+=n);return i}function au(n,t){var i,r;return i=n.replace(te,function(n){var t=oi[n];return t===wi&&(r=!0),t}),r?parseFloat(i):parseInt(i,t||10)}function p(n,t,i,r){var u=ct(n).toString(r||10);return u=hr("0",t-u.replace(/\.\d+/,"").length)+u,(i||n<0)&&(u=(n<0?"-":"+")+u),u}function re(n){if(n>=11&&n<=13)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function bi(n,t){function i(n,i){(n||t.indexOf(i)>-1)&&(r+=i)}var r="";return t=t||"",i(n.multiline,"m"),i(n.ignoreCase,"i"),i(n.global,"g"),i(n.sticky,"y"),r}function wt(n){return c(n)||(n=s(n)),n.replace(/([\\/\'*+?|()\[\]{}.^$])/g,"\\$1")}function i(n,t){return n["get"+(n._utc?"UTC":"")+t]()}function si(n,t,i){return n["set"+(n._utc&&t!="ISOWeek"?"UTC":"")+t](i)}function ki(n,t){var c=typeof n,l,r,u,f,e,h,i,a;if(c==="string")return n;if(u=fu.call(n),l=ei(n,u),r=it(n,u),n!=null&&l||r){if(t||(t=[]),t.length>1)for(i=t.length;i--;)if(t[i]===n)return"CYC";for(t.push(n),f=n.valueOf()+s(n.constructor),e=r?n:o.keys(n).sort(),i=0,a=e.length;i<a;i++)h=r?i:e[i],f+=h+ki(n[h],t);t.pop()}else f=1/n==-Infinity?"-0":s(n&&n.valueOf?n.valueOf():n);return c+u+f}function ue(n,t){return n===t?n!==0||1/n==1/t:cr(n)&&cr(t)?ki(n)===ki(t):!1}function cr(n){var t=vi(n);return vs.test(t)||ei(n,t)}function fe(n,t,i){var r,f=n.length,e=t.length,u=t[e-1]!==!1,o=e>(u?1:2);return o?(r=[],l(t,function(t){if(ys(t))return!1;r.push(ee(n,f,t,u,i))}),r):ee(n,f,t[0],u,i)}function ee(n,t,i,r,u){return r&&(i=i%t,i<0&&(i=t+i)),u?n.charAt(i):n[i]}function lr(n,t){st(t,!0,!1,n,function(n,t){n[t+(t==="equal"?"s":"")]=function(){return o[t].apply(null,[this].concat(l(arguments)))}})}function oe(n,t,i,r){var e=n.length,f=r==-1,o=f?e-1:0,u=nh(i,o);for(u<0&&(u=e+u),(!f&&u<0||f&&u>=e)&&(u=o);f&&u>=0||!f&&u<e;){if(n[u]===t)return u;u+=r}return-1}function se(n,t,i,r){var e=n.length,u=0,s=rt(i),f,o;if(yi(t),e!=0||s)s?f=i:(f=n[r?e-1:u],u++);else throw new TypeError("Reduce called on empty array with no initial value");while(u<e)o=r?e-u-1:u,o in n&&(f=t(f,n[o],o,n)),u++;return f}function nh(n,t){return isNaN(n)?t:parseInt(n>>0)}function ar(n){if(n.length===0)throw new TypeError("First argument must be defined");}function th(){var n=sr().match(/^\s+$/);try{s.prototype.trim.call([1])}catch(i){n=!1}t(s,!0,!n,{trim:function(){return this.toString().trimLeft().trimRight()},trimLeft:function(){return this.replace(u("^["+sr()+"]+"),"")},trimRight:function(){return this.replace(u("["+sr()+"]+$"),"")}})}function ih(){var n=new r(r.UTC(1999,11,31)),t=n.toISOString&&n.toISOString()==="1999-12-31T00:00:00.000Z";st(r,!0,!t,"toISOString,toJSON",function(n,t){n[t]=function(){return p(this.getUTCFullYear(),4)+"-"+p(this.getUTCMonth()+1,2)+"-"+p(this.getUTCDate(),2)+"T"+p(this.getUTCHours(),2)+":"+p(this.getUTCMinutes(),2)+":"+p(this.getUTCSeconds(),2)+"."+p(this.getUTCMilliseconds(),3)+"Z"}})}function rh(n){return n=u(n),function(t){return n.test(t)}}function uh(n){var t=n.getTime();return function(n){return!!(n&&n.getTime)&&n.getTime()===t}}function fh(n){return function(t,i,r){return t===n||n.call(this,t,i,r)}}function eh(n){return function(t,i,r){return t===n||n.call(r,i,t,r)}}function oh(n,t){var i={};return function(r,u,f){var e;if(!nt(r))return!1;for(e in n)if(i[e]=i[e]||hi(n[e],t),i[e].call(f,r[e],u,f)===!1)return!1;return!0}}function sh(n){return function(t){return t===n||ue(t,n)}}function hi(n,t){if(!hu(n)){if(g(n))return rh(n);if(ot(n))return uh(n);if(y(n))return t?eh(n):fh(n);if(ei(n))return oh(n,t)}return sh(n)}function bt(n,t,i,r){return t?t.apply?t.apply(i,r||[]):y(n[t])?n[t].call(n):n[t]:n}function at(n,t,i,r){var f,u,e=+n.length;for(i<0&&(i=n.length+i),u=isNaN(i)?0:i,r===!0&&(e+=u);u<e;){if(f=u%n.length,f in n){if(t.call(n,n[f],f,n)===!1)break}else return hh(n,t,u,r);u++}}function hh(n,t,i){var u=[];for(var r in n)ch(n,r)&&r>=i&&u.push(parseInt(r));return u.sort().each(function(i){return t.call(n,n[i],i,n)}),n}function ch(n,t){return t in n&&lh(t)==t&&t!=4294967295}function lh(n){return n>>>0}function vr(n,t,i,r,u,f){var e,o,s;return n.length>0&&(s=hi(t),at(n,function(t,i){if(s.call(f,t,i,n))return e=t,o=i,!1},i,r)),u?o:e}function he(n,t){var i=[],u={},r;return at(n,function(f,e){r=t?bt(f,t,n,[f,e,n]):f;ae(u,r)||i.push(f)}),i}function ce(n,t,i){var u=[],r={};return t.each(function(n){ae(r,n)}),n.each(function(n){var t=ki(n),f=!cr(n);le(r,t,n,f)!==i&&(yh(r,t,n,f),u.push(n))}),u}function vu(n,t,i){t=t||Infinity;i=i||0;var r=[];return at(n,function(n){it(n)&&i<t?r=r.concat(vu(n,t,i+1)):r.push(n)}),r}function ah(n){return wf(n,"length")&&!c(n)&&!ei(n)}function vh(n){return wf(n,"length")&&(vi(n)==="[object Arguments]"||!!n.callee)}function yu(n){var t=[];return l(n,function(n){t=t.concat(n)}),t}function le(n,t,i,r){var u=t in n;return r&&(n[t]||(n[t]=[]),u=n[t].indexOf(i)!==-1),u}function ae(n,t){var i=ki(t),r=!cr(t),u=le(n,i,t,r);return r?n[i].push(t):n[i]=t,u}function yh(n,t,i,r){var u,f=0;if(r)for(u=n[t];f<u.length;)u[f]===i?u.splice(f,1):f+=1;else delete n[t]}function yr(n,t,i,r){var s,c,h,u,o=[],a=i==="max",v=i==="min",l=f.isArray(n);for(c in n)if(n.hasOwnProperty(c)){if(s=n[c],u=bt(s,t,n,l?[s,parseInt(c),n]:[]),e(u))throw new TypeError("Cannot compare with undefined");u===h?o.push(s):(e(h)||a&&u>h||v&&u<h)&&(o=[s],h=u)}return l||(o=vu(o,1)),r?o:o[0]}function ve(n,t){var i,r,e,o,s,h,u=0,c=0,l=f[wh],a=f[ke],v=f[de],y=f[be],p=f[ge];n=ye(n,l,a);t=ye(t,l,a);do e=pe(n,u,v),o=pe(t,u,v),i=we(e,y),r=we(o,y),i===-1||r===-1?(i=n.charCodeAt(u)||null,r=t.charCodeAt(u)||null,p&&ie(i)&&ie(r)&&(i=au(n.slice(u)),r=au(t.slice(u)))):(s=e!==n.charAt(u),h=o!==t.charAt(u),s!==h&&c===0&&(c=s-h)),u+=1;while(i!=null&&r!=null&&i===r);return i===r?c:i-r}function ye(n,t,i){return c(n)||(n=s(n)),i&&(n=n.toLowerCase()),t&&(n=n.replace(t,"")),n}function pe(n,t,i){var r=n.charAt(t);return i[r]||r}function we(n,t){return n?t.indexOf(n):null}function bh(){var i=f.prototype.map,n=function(){var n=arguments;return n.length>0&&!y(n[0])};st(f,!0,n,"every,all,some,filter,any,none,find,findIndex",function(n,t){var i=f.prototype[t];n[t]=function(n){var t=hi(n);return i.call(this,function(n,i){return t(n,i,this)})}});t(f,!0,n,{map:function(n){return i.call(this,function(t,i){return bt(t,n,this,[t,i,this])})}})}function kh(){var n;f[be]="AÁÀÂÃĄBCĆČÇDĎÐEÉÈĚÊËĘFGĞHıIÍÌİÎÏJKLŁMNŃŇÑOÓÒÔPQRŘSŚŠŞTŤUÚÙŮÛÜVWXYÝZŹŻŽÞÆŒØÕÅÄÖ".split("").map(function(n){return n+n.toLowerCase()}).join("");n={};at("AÁÀÂÃÄ,CÇ,EÉÈÊË,IÍÌİÎÏ,OÓÒÔÕÖ,Sß,UÚÙÛÜ".split(","),function(t){var i=t.charAt(0);at(t.slice(1).split(""),function(t){n[t]=i;n[t.toLowerCase()]=i.toLowerCase()})});f[ge]=!0;f[ke]=!0;f[de]=n}function pu(n){return o.keys(bf(n))}function no(n,t){st(o,!1,!0,n,function(n,i){n[i]=function(n,r,u){var e,s=pu(n),o;return t||(o=hi(r,!0)),e=f.prototype[i].call(s,function(i){var u=n[i];return t?bt(u,r,n,[i,u,n]):o(u,i,n)},u),it(e)&&(e=e.reduce(function(t,i){return t[i]=n[i],t},{})),e}});lr(n,ht)}function dh(){f[ph]=ve}function ho(n){pi(this,n);this.compiledFormats=du.concat()}function tt(n,t){var i;if(c(n)||(n=""),i=nf[n]||nf[n.slice(0,2)],t===!1&&!i)throw new TypeError("Invalid locale.");return i||pr}function nc(n,t){function o(n){var t=i[n];c(t)?i[n]=t.split(","):t||(i[n]=[])}function s(n,t){return n=n.split("+").map(function(n){return n.replace(/(.+):(.+)$/,function(n,t,i){return i.split("|").map(function(n){return t+n}).join("|")})}).join("|"),n.split("|").forEach(t)}function r(n,t,r){var u=[];i[n].forEach(function(n,i){t&&(n+="+"+n.slice(0,3));s(n,function(n,t){u[t*r+i]=n.toLowerCase()})});i[n]=u}function u(n,t,r){var u="\\d{"+n+","+t+"}";return r&&(u+="|(?:"+di(i.numbers)+")+"),u}function h(){var n=["-?\\d+"].concat(i.articles);return i.numbers&&(n=n.concat(i.numbers)),di(n)}function f(n,t){i[n]=i[n]||t}function l(){var n=[];i.modifiersByName={};i.modifiers.push({name:"day",src:"yesterday",value:-1});i.modifiers.push({name:"day",src:"today",value:0});i.modifiers.push({name:"day",src:"tomorrow",value:1});i.modifiers.forEach(function(t){var r=t.name;s(t.src,function(u){var f=i[r];i.modifiersByName[u]=t;n.push({name:r,src:u,value:t.value});i[r]=f?f+"|"+u:u})});i.day+="|"+di(i.weekdays);i.modifiers=n}var i,e;return i=new ho(t),o("modifiers"),"months,weekdays,units,numbers,articles,tokens,timeMarker,ampm,timeSuffixes,dateParse,timeParse".split(",").forEach(o),e=!i.monthSuffix,r("months",e,12),r("weekdays",e,7),r("units",!1,8),r("numbers",!1,10),f("code",n),f("date",u(1,2,i.digitDate)),f("year","'\\d{2}|"+u(4,4)),f("num",h()),l(),i.monthSuffix&&(i.month=u(1,2),i.months="1,2,3,4,5,6,7,8,9,10,11,12".split(",").map(function(n){return n+i.monthSuffix})),i.full_month=u(1,2)+"|"+di(i.months),i.timeSuffixes.length>0&&i.addFormat(rf(wu,i),!1,wr),i.addFormat("{day}",!0),i.addFormat("{month}"+(i.monthSuffix||"")),i.addFormat("{year}"+(i.yearSuffix||"")),i.timeParse.forEach(function(n){i.addFormat(n,!0)}),i.dateParse.forEach(function(n){i.addFormat(n)}),nf[n]=i}function kr(n,t,i,r){n.compiledFormats.unshift({variant:r,locale:n,reg:u("^"+t+"$","i"),to:i})}function ci(n){return n.slice(0,1).toUpperCase()+n.slice(1)}function di(n){return n.filter(function(n){return!!n}).join("|")}function ri(){var n=r.SugarNewDate;return n?n():new r}function dr(n,t){var i;return nt(n[0])?n:a(n[0])&&!a(n[1])?[n[0]]:c(n[0])&&t?[tc(n[0]),n[1]]:(i={},ku.forEach(function(t,r){i[t.name]=n[r]}),[i])}function tc(n,t){var i,r={};return i=n.match(/^(\d+)?\s?(\w+?)s?$/i),i&&(e(t)&&(t=parseInt(i[1])||1),r[i[2].toLowerCase()]=t),r}function li(n,t,i){var r,u;for(e(i)&&(i=br.length),r=t||0;r<i;r++)if(u=br[r],n(u.name,u,r)===!1)break}function ic(n,t){var r={},i,u;return t.forEach(function(t,f){(i=n[f+1],e(i)||i==="")||(t==="year"&&(r.yearAsString=i.replace(/'/,"")),u=parseFloat(i.replace(/'/,"").replace(/,/,".")),r[t]=isNaN(u)?i.toLowerCase():u)}),r}function rc(n){return n=n.trim().replace(/^just (?=now)|\.+$/i,""),uc(n)}function uc(n){return n.replace(so,function(n,t,i){var u=0,r=1,f,e;return t?n:(i.split("").reverse().forEach(function(n){var t=bu[n],i=t>9;i?(f&&(u+=r),r*=t/(e||1),e=t):(f===!1&&(r*=10),u+=r*t);f=i}),f&&(u+=r),u)})}function co(n,t,i,u){function it(n){b.push(n)}function ut(){b.forEach(function(n){n.call()})}function ft(){var n=e.getWeekday();e.setWeekday(7*(f.num-1)+(n>l?l+7:l))}function et(){var n=o.modifiersByName[f.edge];li(function(n){if(rt(f[n]))return s=n,!1},4);s==="year"?f.specificity="month":(s==="month"||s==="week")&&(f.specificity="day");e[(n.value<0?"endOf":"beginningOf")+ci(s)]();n.value===-2&&e.reset()}function st(){var n;li(function(t,i,r){if(t==="day"&&(t="date"),rt(f[t])){if(r>=g)return pc(e),!1;n=n||{};n[t]=f[t];delete f[t]}});n&&it(function(){e.set(n,!0)})}var e,w,y,b,o,f,s,g,l,p,h;return e=ri(),b=[],e.utc(u),ot(n)?e.utc(n.isUTC()).setTime(n.getTime()):a(n)?e.setTime(n):nt(n)?(e.set(n,!0),f=n):c(n)&&(y=tt(t),n=rc(n),y&&k(y.getFormats(),function(i,r){var u=n.match(r.reg);if(u)return(o=r.locale,f=ic(u,r.to,o),o.cachedFormat=r,f.utc&&e.utc(),f.timestamp)?(f=f.timestamp,!1):(r.variant&&!c(f.month)&&(c(f.date)||y.hasVariant(t))&&(h=f.month,f.month=f.date,f.date=h),f.year&&f.yearAsString.length===2&&(f.year=fc(f.year)),f.month&&(f.month=o.getMonth(f.month),f.shift&&!f.unit&&(f.unit=o.units[7])),f.weekday&&f.date?delete f.weekday:f.weekday&&(f.weekday=o.getWeekday(f.weekday),f.shift&&!f.unit&&(f.unit=o.units[5])),f.day&&(h=o.modifiersByName[f.day])?(f.day=h.value,e.reset(),w=!0):f.day&&(l=o.getWeekday(f.day))>-1&&(delete f.day,f.num&&f.month?(it(ft),f.day=1):f.weekday=l),f.date&&!a(f.date)&&(f.date=o.getNumericDate(f.date)),o.matchPM(f.ampm)&&f.hour<12?f.hour+=12:o.matchAM(f.ampm)&&f.hour===12&&(f.hour=0),("offset_hours"in f||"offset_minutes"in f)&&(e.utc(),f.offset_minutes=f.offset_minutes||0,f.offset_minutes+=f.offset_hours*60,f.offset_sign==="-"&&(f.offset_minutes*=-1),f.minute-=f.offset_minutes),f.unit&&(w=!0,p=o.getNumber(f.num),g=o.getUnitIndex(f.unit),s=v.units[g],st(),f.shift&&(p*=(h=o.modifiersByName[f.shift])?h.value:0),f.sign&&(h=o.modifiersByName[f.sign])&&(p*=h.value),rt(f.weekday)&&(e.set({weekday:f.weekday},!0),delete f.weekday),f[s]=(f[s]||0)+p),f.edge&&it(et),f.year_sign==="-"&&(f.year*=-1),li(function(n,t,i){var r=f[n],u=r%1;u&&(f[br[i-1].name]=yt(u*(n==="second"?1e3:60)),f[n]=d(r))},1,4),!1)}),f?w?e.advance(f):(e._utc&&e.reset(),nu(e,f,!0,!1,i)):(n!=="now"&&(e=new r(n)),u&&e.addMinutes(-e.getTimezoneOffset())),ut(),e.utc(!1)),{date:e,set:f}}function fc(n){return yt(i(ri(),"FullYear")/100)*100-yt(n/100)*100+n}function ec(n){n=n.clone();var t=i(n,"Day")||7;return n.addDays(4-t).reset(),1+d(n.daysSince(n.clone().beginningOfYear())/7)}function lo(n){var t,i=ct(n),r=i,u=0;return li(function(n,f,e){t=d(or(i/f.multiplier(),1));t>=1&&(r=t,u=e)},1),[r,u,n]}function ao(n){var t=lo(n.millisecondsFromNow());return oc(n,t)&&(t[0]=ct(n.monthsFromNow()),t[1]=6),t}function oc(n,t){return t[1]===6||t[1]===5&&t[0]===4&&n.daysFromNow()>=ri().daysInMonth()}function sc(){var n=function(n,t){var r=i(n,"Hours");return tt(t).ampm[d(r/12)]||""};ft("t",n,1);ft("tt",n);ft("T",n,1,1);ft("TT",n,null,2)}function hc(){var n=function(n,t){var r=i(n,"Day");return tt(t).weekdays[r]};ft("dow",n,3);ft("Dow",n,3,1);ft("weekday",n);ft("Weekday",n,null,1)}function cc(){gr("mon",0,3);gr("month",0);gr("month2",1);gr("month3",2)}function gr(n,t,r){var u=function(n,r){var u=i(n,"Month");return tt(r).months[u+t*12]};ft(n,u,r);ft(ci(n),u,r,1)}function ft(n,t,i,r){h[n]=function(n,u){var f=t(n,u);return i&&(f=f.slice(0,i)),r&&(f=f.slice(0,r).toUpperCase()+f.slice(r)),f}}function ui(n,t,i){h[n]=t;h[n+n]=function(n,i){return p(t(n,i),2)};i&&(h[n+n+n]=function(n,i){return p(t(n,i),3)},h[n+n+n+n]=function(n,i){return p(t(n,i),4)})}function lc(n){var t=n.match(/(\{\w+\})|[^{}]+/g);gu[n]=t.map(function(n){return n.replace(/\{(\w+)\}/,function(t,i){return n=h[i]||i,i}),n})}function ac(n,t,i){var f,e,r,u,o="";for(f=gu[t],r=0,e=f.length;r<e;r++)u=f[r],o+=y(u)?u(n,i):u;return o}function tf(n,t,i,r){var u;if(n.isValid())Date[t]?t=Date[t]:y(t)&&(u=ao(n),t=t.apply(n,u.concat(tt(r))));else return"Invalid Date";return!t&&i?(u=u||ao(n),u[1]===0&&(u[1]=1,u[0]=1),tt(r).getRelativeFormat(u)):(t=t||"long",(t==="short"||t==="long"||t==="full")&&(t=tt(r)[t]),gu[t]||lc(t),ac(n,t,r))}function vo(n,t,i,r,u){var f,s,o,e,a,h,v=0,c=0,l=0;return(f=co(t,i,null,u),r>0&&(c=l=r,a=!0),!f.date.isValid())?!1:(f.set&&f.set.specificity&&(ii.forEach(function(t){t.name===f.set.specificity&&(v=t.multiplier(f.date,n-f.date)-1)}),h=ci(f.set.specificity),(f.set.edge||f.set.shift)&&f.date["beginningOf"+h](),f.set.specificity==="month"&&(e=f.date.clone()["endOf"+h]().getTime()),!a&&f.set.sign&&f.set.specificity!="millisecond"&&(c=50,l=-50)),s=n.getTime(),o=f.date.getTime(),e=e||o+v,e=vc(n,o,e),s>=o-c&&s<=e+l)}function vc(n,t,u){var s,f,e,o;return s=new r(t),f=new r(u).utc(n.isUTC()),i(f,"Hours")!==23&&(e=s.getTimezoneOffset(),o=f.getTimezoneOffset(),e!==o&&(u+=(o-e).minutes())),u}function nu(n,t,r,u,f){function s(n){return rt(t[n])?t[n]:t[n+"s"]}function o(n){return rt(s(n))}function l(n,t){return o(n)||t&&o("weekday")}function v(){switch(f){case-1:return n>ri();case 1:return n<ri()}}var c,h;if(a(t)&&u)t={milliseconds:t};else if(a(t))return n.setTime(t),n;return rt(t.date)&&(t.day=t.date),li(function(i,u,f){var e=i==="day";if(l(i,e))return t.specificity=i,c=+f,!1;!r||i==="week"||e&&o("week")||si(n,u.method,e?1:0)}),ii.forEach(function(r,f){var c=r.name,l=r.method,a=ii[f-1],h;(h=s(c),e(h))||(u?(c==="week"&&(h=(t.day||0)+h*7,l="Date"),h=h*u+i(n,l)):c==="month"&&o("day")&&si(n,"Date",15),si(n,l,h),u&&c==="month"&&yc(n,h))}),u||o("day")||!o("weekday")||(h=s("weekday"),n.setWeekday(h)),v()&&li(function(t,i){var r=i.ambiguous||t==="week"&&o("weekday");if(r&&!l(t,t==="day"))return n[i.addMethod](f),!1},c+1),n}function rf(n,t,i){var u={h:0,m:1,s:2},r;return t=t||v,n.replace(/{([a-z])}/g,function(n,f){var e=[],o=f==="h",s=o&&!i;return f==="t"?t.ampm.join("|"):(o&&e.push(":"),(r=t.timeSuffixes[u[f]])&&e.push(r+"\\s*"),e.length===0?"":"(?:"+e.join("|")+")"+(s?"":"?"))})}function yc(n,t){t<0&&(t=t%12+12);t%12!=i(n,"Month")&&si(n,"Date",0)}function kt(n,t,i){var r,u;return a(n[1])?r=dr(n)[0]:(r=n[0],u=n[1]),co(r,u,t,i).date}function pc(n){n.setTime(NaN)}function wc(){br=ii.concat().reverse();ku=ii.concat();ku.splice(2,1)}function bc(){st(r,!0,!0,ii,function(n,t,u){function c(n){var i=n/h,r=i%1,u=t.error||.999;return r&&ct(r%1)>u&&(i=yt(i)),i<0?ti(i):d(i)}var f=t.name,e=ci(f),h=t.multiplier(),o,s;t.addMethod="add"+e+"s";o=function(n,t){return c(this.getTime()-r.create(n,t).getTime())};s=function(n,t){return c(r.create(n,t).getTime()-this.getTime())};n[f+"sAgo"]=s;n[f+"sUntil"]=s;n[f+"sSince"]=o;n[f+"sFromNow"]=o;n[t.addMethod]=function(n,t){var i={};return i[f]=n,this.advance(i,t)};ul(t,h);u<3&&["Last","This","Next"].forEach(function(t){n["is"+t+e]=function(){return vo(this,t+" "+f,"en")}});u<4&&(n["beginningOf"+e]=function(){var n={};switch(f){case"year":n.year=i(this,"FullYear");break;case"month":n.month=i(this,"Month");break;case"day":n.day=i(this,"Date");break;case"week":n.weekday=0}return this.set(n,!0)},n["endOf"+e]=function(){var n={hours:23,minutes:59,seconds:59,milliseconds:999};switch(f){case"year":n.month=11;n.day=31;break;case"month":n.day=this.daysInMonth();break;case"week":n.weekday=6}return this.set(n,!0)})})}function kc(){v.addFormat("([+-])?(\\d{4,4})[-.]?{full_month}[-.]?(\\d{1,2})?",!0,["year_sign","year","month","date"],!1,!0);v.addFormat("(\\d{1,2})[-.\\/]{full_month}(?:[-.\\/](\\d{2,4}))?",!0,["date","month","year"],!0);v.addFormat("{full_month}[-.](\\d{4,4})",!1,["month","year"]);v.addFormat("\\/Date\\((\\d+(?:[+-]\\d{4,4})?)\\)\\/",!1,["timestamp"]);v.addFormat(rf(wu,v),!1,wr);du=v.compiledFormats.slice(0,7).reverse();v.compiledFormats=v.compiledFormats.slice(7).concat(du)}function dc(){ui("f",function(n){return i(n,"Milliseconds")},!0);ui("s",function(n){return i(n,"Seconds")});ui("m",function(n){return i(n,"Minutes")});ui("h",function(n){return i(n,"Hours")%12||12});ui("H",function(n){return i(n,"Hours")});ui("d",function(n){return i(n,"Date")});ui("M",function(n){return i(n,"Month")+1});sc();hc();cc();h.ms=h.f;h.milliseconds=h.f;h.seconds=h.s;h.minutes=h.m;h.hours=h.h;h["24hr"]=h.H;h["12hr"]=h.h;h.date=h.d;h.day=h.d;h.year=h.yyyy}function gc(){st(r,!0,!0,"short,long,full",function(n,t){n[t]=function(n){return tf(this,t,!1,n)}})}function nl(){oo.split("").forEach(function(n,t){t>9&&(t=er(10,t-9));bu[n]=t});pi(bu,oi);so=u("([期週周])?(["+oo+lu+"]+)(?!昨)","g")}function tl(){var n="today,yesterday,tomorrow,weekday,weekend,future,past".split(","),t=v.weekdays.slice(0,7),i=v.months.slice(0,12);st(r,!0,!0,n.concat(t).concat(i),function(n,t){n["is"+ci(t)]=function(n){return this.is(t,0,n)}})}function il(){r.utc||(r.utc={create:function(){return kt(arguments,0,!0)},past:function(){return kt(arguments,-1,!0)},future:function(){return kt(arguments,1,!0)}})}function rl(){t(r,!1,!0,{RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {tz}",RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{fff}{isotz}"})}function ul(n,t){function e(){return yt(this*t)}function u(){return kt(arguments)[n.addMethod](this)}function f(){return kt(arguments)[n.addMethod](-this)}var r=n.name,i={};i[r]=e;i[r+"s"]=e;i[r+"Before"]=f;i[r+"sBefore"]=f;i[r+"Ago"]=f;i[r+"sAgo"]=f;i[r+"After"]=u;i[r+"sAfter"]=u;i[r+"FromNow"]=u;i[r+"sFromNow"]=u;w.extend(i)}function vt(n,t){this.start=uf(n);this.end=uf(t)}function yo(n){return c(n)?n.charCodeAt(0):n}function po(n){return n==null?n:ot(n)?n.getTime():n.valueOf()}function uf(n){return ot(n)?new r(n.getTime()):po(n)}function wo(n){var t=po(n);return!!t||t===0}function fl(n){var i,r,t;return a(n)?n:(i=n.toLowerCase().match(/^(\d+)?\s?(\w+?)s?$/i),r=parseInt(i[1])||1,t=i[2].slice(0,1).toUpperCase()+i[2].slice(1),t.match(/hour|minute|second/i)?t+="s":t==="Year"?t="FullYear":t==="Day"&&(t="Date"),[r,t])}function el(n,t){var e,u,o,f;return a(t)?new r(n.getTime()+t):(e=t[0],u=t[1],o=i(n,u),f=new r(n.getTime()),si(f,u,o+e),f)}function ol(n,t){return s.fromCharCode(n.charCodeAt(0)+t)}function sl(n,t){return n+t}function ai(n,t,i,r,u){t!==Infinity&&(n.timers||(n.timers=[]),a(t)||(t=1),n._canceled=!1,n.timers.push(setTimeout(function(){n._canceled||i.apply(r,u||[])},t)))}function ff(n,t,i,r,u,f){var h=n.toFixed(20),l=h.search(/\./),a=h.search(/[1-9]/),e=l-a,s,o,c;return e>0&&(e-=1),o=lt(cu(d(e/3),u===!1?i.length:u),-r),s=i.charAt(o+r-1),e<-9&&(o=-3,t=ct(e)-9,s=i.slice(0,1)),c=f?er(2,10*o):er(10,o*3),or(n/c,t||0).format()+s.trim()}function hl(){function n(n){return function(t){return t?or(this,t,n):n(this)}}t(w,!0,!0,{ceil:n(ti),round:n(yt),floor:n(d)});st(w,!0,!0,"abs,pow,sin,asin,cos,acos,tan,atan,exp,pow,sqrt",function(n,t){n[t]=function(n,i){return b[t](this,n,i)}})}function bo(n,t,i,r){var f,e,o,u;(e=t.match(/^(.+?)(\[.*\])$/))?(u=e[1],o=e[2].replace(/^\[|\]$/g,"").split("]["),o.forEach(function(t){f=!t||t.match(/^\d+$/);!u&&it(n)&&(u=n.length);ut(n,u)||(n[u]=f?[]:{});n=n[u];u=t}),!u&&f&&(u=n.length.toString()),bo(n,u,i,r)):n[t]=r&&i==="true"?!0:r&&i==="false"?!1:i}function ko(n,t){var i;return it(t)||nt(t)&&t.toString===fu?(i=[],k(t,function(t,r){n&&(t=n+"["+t+"]");i.push(ko(t,r))}),i.join("&")):n?go(n)+"="+(ot(t)?t.getTime():go(t)):""}function go(n){return!n&&n!==!1&&n!==0?"":encodeURIComponent(n).replace(/%20/g,"+")}function cl(n,t,i){return g(n)?n.test(t):nt(n)?n[t]===i:t===s(n)}function ns(n,t,i){var r,u=n instanceof ht?new ht:{};return k(n,function(n,f){r=!1;ur(t,function(t){cl(t,n,f)&&(r=!0)},1);r===i&&(u[n]=f)}),u}function ll(){st(o,!1,!0,et,function(n,t){var i="is"+t;ef.push(i);n[i]=eu[t]})}function al(){t(o,!1,function(){return arguments.length===0},{extend:function(){var n=ef.concat(of);typeof uo!="undefined"&&(n=n.concat(uo));lr(n,o)}})}function vl(n){var t=s.Inflector,n=t&&t.acronyms[n];if(c(n))return n}function tu(n){if(n=+n,n<0||n===Infinity)throw new RangeError("Invalid number");return n}function iu(n,t){return hr(rt(t)?t:" ",n)}function ts(n,t,i,r,u){var f,o,s,h;if(n.length<=t)return n.toString();r=e(r)?"...":r;switch(i){case"left":return o=u?gi(n,t,!0):n.slice(n.length-t),r+o;case"middle":return s=ti(t/2),h=d(t/2),f=u?gi(n,s):n.slice(0,s),o=u?gi(n,h,!0):n.slice(n.length-h),f+r+o;default:return f=u?gi(n,t):n.slice(0,t),f+r}}function gi(n,t,i){if(i)return gi(n.reverse(),t).reverse();var f=u("(?=["+sr()+"])"),e=n.split(f),r=0;return e.filter(function(n){return r+=n.length,r<=t}).join("")}function is(n,t,i){return c(t)&&(t=n.indexOf(t),t===-1&&(t=i?n.length:0)),t}function yl(n){if(ir.btoa){sf=ir.btoa;hf=ir.atob;return}var t=/[^A-Za-z0-9\+\/\=]/g;sf=function(t){var s="",f,i,r,h,c,e,u,o=0;do f=t.charCodeAt(o++),i=t.charCodeAt(o++),r=t.charCodeAt(o++),h=f>>2,c=(f&3)<<4|i>>4,e=(i&15)<<2|r>>6,u=r&63,isNaN(i)?e=u=64:isNaN(r)&&(u=64),s=s+n.charAt(h)+n.charAt(c)+n.charAt(e)+n.charAt(u),f=i=r="",h=c=e=u="";while(o<t.length);return s};hf=function(i){var r="",s,h,c,l,e,u,o,f=0;if(i.match(t))throw new Error("String contains invalid base64 characters");i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"");do l=n.indexOf(i.charAt(f++)),e=n.indexOf(i.charAt(f++)),u=n.indexOf(i.charAt(f++)),o=n.indexOf(i.charAt(f++)),s=l<<2|e>>4,h=(e&15)<<4|u>>2,c=(u&3)<<6|o,r=r+pt(s),u!=64&&(r=r+pt(h)),o!=64&&(r=r+pt(c)),s=h=c="",l=e=u=o="";while(f<i.length);return r}}function ru(n,t){var i=n.indexOf(t);i>-1&&n.splice(i,1)}function us(n,t,i){c(t)&&ru(dt,t);ru(dt,i);n.unshift({rule:t,replacement:i})}function nr(n,t){return n==t||n=="all"||!n}function pl(n){return dt.some(function(t){return new u("\\b"+t+"$","i").test(n)})}function fs(n,t){return n=c(n)?n.toString():"",n.isBlank()||pl(n)?n:es(n,t?cf:lf)}function es(n,t){return k(t,function(t,i){if(n.match(i.rule))return n=n.replace(i.rule,i.replacement),!1}),n}function os(n){return n.replace(/^\W*[a-z]/,function(n){return n.toUpperCase()})}function wl(){ss.forEach(function(n){var t=u("^["+n.source+"\\s]+$"),i=u("["+n.source+"]");n.names.forEach(function(n){ni(s.prototype,"is"+n,function(){return t.test(this.trim())});ni(s.prototype,"has"+n,function(){return i.test(this)})})})}function hs(n,t,i,r){tr||ea();var u=l(t).join(""),f=tr[r];return u=u.replace(/all/,"").replace(/(\w)lphabet|umbers?|atakana|paces?|unctuation/g,"$1"),n.replace(i,function(n){return f[n]&&(!u||u.has(f[n].type))?f[n].to:n})}function ea(){var n;tr={zenkaku:{},hankaku:{}};kl.forEach(function(n){fr(n.end-n.start+1,function(t){t+=n.start;gt(n.type,pt(t),pt(t+bl))})});fa.each(function(t,i){n=ua.charAt(i);gt("k",n,t);t.match(ia)&&gt("k",n+"ﾞ",t.shift(1));t.match(ra)&&gt("k",n+"ﾟ",t.shift(2))});ta.each(function(n,t){gt("p",na.charAt(t),n)});gt("k","ｳﾞ","ヴ");gt("k","ｦﾞ","ヺ");gt("s"," ","　")}function gt(n,t,i){tr.zenkaku[t]={type:n,to:i};tr.hankaku[i]={type:n,to:t}}var o=Object,f=Array,u=RegExp,r=Date,s=String,w=Number,b=Math,uu,ir=typeof global!="undefined"?global:this,fu=o.prototype.toString,cs=o.prototype.hasOwnProperty,vf=o.defineProperty&&o.defineProperties,ls=typeof u()=="function",as=!("0"in new s("a")),eu={},vs=/^\[object Date|Array|String|Number|RegExp|Boolean|Arguments\]$/,et="Boolean,Number,String,Array,Date,RegExp,Function".split(","),ys=ou("boolean",et[0]),a=ou("number",et[1]),c=ou("string",et[2]),it=rr(et[3]),ot=rr(et[4]),g=rr(et[5]),y=rr(et[6]),ef,of,sf,hf,ss;ht.prototype.constructor=o;var ct=b.abs,er=b.pow,ti=b.ceil,d=b.floor,yt=b.round,cu=b.min,lt=b.max;var kf=48,ks=57,df=65296,ds=65305,wi=".",gf="．",ne=",",lu="",oi={},te;ps();gs();t(o,!1,!1,{keys:function(n){var t=[];if(!nt(n)&&!g(n)&&!y(n))throw new TypeError("Object required");return k(n,function(n){t.push(n)}),t}});t(f,!1,!1,{isArray:function(n){return it(n)}});t(f,!0,!1,{every:function(n,t){var r=this.length,i=0;for(ar(arguments);i<r;){if(i in this&&!n.call(t,this[i],i,this))return!1;i++}return!0},some:function(n,t){var r=this.length,i=0;for(ar(arguments);i<r;){if(i in this&&n.call(t,this[i],i,this))return!0;i++}return!1},map:function(n,t){var t=arguments[1],r=this.length,i=0,u=new Array(r);for(ar(arguments);i<r;)i in this&&(u[i]=n.call(t,this[i],i,this)),i++;return u},filter:function(n){var r=arguments[1],u=this.length,t=0,i=[];for(ar(arguments);t<u;)t in this&&n.call(r,this[t],t,this)&&i.push(this[t]),t++;return i},indexOf:function(n){var t=arguments[1];return c(this)?this.indexOf(n,t):oe(this,n,t,1)},lastIndexOf:function(n){var t=arguments[1];return c(this)?this.lastIndexOf(n,t):oe(this,n,t,-1)},forEach:function(n){var i=this.length,t=0,r=arguments[1];for(yi(n);t<i;)t in this&&n.call(r,this[t],t,this),t++},reduce:function(n){return se(this,n,arguments[1])},reduceRight:function(n){return se(this,n,arguments[1],!0)}});t(Function,!0,!1,{bind:function(n){var t=this,r=l(arguments,null,1),i;if(!y(this))throw new TypeError("Function.prototype.bind called on a non-function");return i=function(){return t.apply(t.prototype&&this instanceof t?this:n,r.concat(l(arguments)))},i.prototype=this.prototype,i}});t(r,!1,!1,{now:function(){return(new r).getTime()}});th();ih();var ph="AlphanumericSort",be="AlphanumericSortOrder",wh="AlphanumericSortIgnore",ke="AlphanumericSortIgnoreCase",de="AlphanumericSortEquivalents",ge="AlphanumericSortNatural";t(f,!1,!0,{create:function(){var n=[];return l(arguments,function(t){(vh(t)||ah(t))&&(t=f.prototype.slice.call(t,0));n=n.concat(t)}),n}});t(f,!0,!1,{find:function(n,t){return yi(n),vr(this,n,0,!1,!1,t)},findIndex:function(n,t){var i;return yi(n),i=vr(this,n,0,!1,!0,t),e(i)?-1:i}});t(f,!0,!0,{findFrom:function(n,t,i){return vr(this,n,t,i)},findIndexFrom:function(n,t,i){var t=vr(this,n,t,i,!0);return e(t)?-1:t},findAll:function(n,t,i){var r=[],u;return this.length>0&&(u=hi(n),at(this,function(n,t,i){u(n,t,i)&&r.push(n)},t,i)),r},count:function(n){return e(n)?this.length:this.findAll(n).length},removeAt:function(n,t){return e(n)?this:(e(t)&&(t=n),this.splice(n,t-n+1),this)},include:function(n,t){return this.clone().add(n,t)},exclude:function(){return f.prototype.remove.apply(this.clone(),arguments)},clone:function(){return pi([],this)},unique:function(n){return he(this,n)},flatten:function(n){return vu(this,n)},union:function(){return he(this.concat(yu(arguments)))},intersect:function(){return ce(this,yu(arguments),!1)},subtract:function(){return ce(this,yu(arguments),!0)},at:function(){return fe(this,arguments)},first:function(n){return e(n)?this[0]:(n<0&&(n=0),this.slice(0,n))},last:function(n){if(e(n))return this[this.length-1];var t=this.length-n<0?0:this.length-n;return this.slice(t)},from:function(n){return this.slice(n)},to:function(n){return e(n)&&(n=this.length),this.slice(0,n)},min:function(n,t){return yr(this,n,"min",t)},max:function(n,t){return yr(this,n,"max",t)},least:function(n,t){return yr(this.groupBy.apply(this,[n]),"length","min",t)},most:function(n,t){return yr(this.groupBy.apply(this,[n]),"length","max",t)},sum:function(n){var t=n?this.map(n):this;return t.length>0?t.reduce(function(n,t){return n+t}):0},average:function(n){var t=n?this.map(n):this;return t.length>0?t.sum()/t.length:0},inGroups:function(n,t){var u=arguments.length>1,f=this,r=[],i=ti(this.length/n);return fr(n,function(n){var o=n*i,e=f.slice(o,o+i);u&&e.length<i&&fr(i-e.length,function(){e=e.add(t)});r.push(e)}),r},inGroupsOf:function(n,t){var r=[],u=this.length,f=this,i;return u===0||n===0?f:(e(n)&&(n=1),e(t)&&(t=null),fr(ti(u/n),function(u){for(i=f.slice(n*u,n*u+n);i.length<n;)i.push(t);r.push(i)}),r)},isEmpty:function(){return this.compact().length==0},sortBy:function(n,t){var i=this.clone();return i.sort(function(r,u){var f,e,o;return f=bt(r,n,i,[r]),e=bt(u,n,i,[u]),o=c(f)&&c(e)?ve(f,e):f<e?-1:f>e?1:0,o*(t?-1:1)}),i},randomize:function(){for(var n=this.concat(),t=n.length,i,r;t;)i=b.random()*t|0,r=n[--t],n[t]=n[i],n[i]=r;return n},zip:function(){var n=l(arguments);return this.map(function(t,i){return[t].concat(n.map(function(n){return i in n?n[i]:null}))})},sample:function(n){var t=this.randomize();return arguments.length>0?t.slice(0,n):t[0]},each:function(n,t,i){return at(this,n,t,i),this},add:function(n,t){return(!a(w(t))||isNaN(t))&&(t=this.length),f.prototype.splice.apply(this,[t,0].concat(n)),this},remove:function(){var n=this;return l(arguments,function(t){for(var i=0,r=hi(t);i<n.length;)r(n[i],i,n)?n.splice(i,1):i++}),n},compact:function(n){var t=[];return at(this,function(i){it(i)?t.push(i.compact()):n&&i?t.push(i):n||i==null||i.valueOf()!==i.valueOf()||t.push(i)}),t},groupBy:function(n,t){var u=this,i={},r;return at(u,function(t,f){r=bt(t,n,u,[t,f,u]);i[r]||(i[r]=[]);i[r].push(t)}),t&&k(i,t),i},none:function(){return!this.any.apply(this,arguments)}});t(f,!0,!0,{all:f.prototype.every,any:f.prototype.some,insert:f.prototype.add});t(o,!1,!0,{map:function(n,t){var u={},i,r;for(i in n)ut(n,i)&&(r=n[i],u[i]=bt(r,t,n,[i,r,n]));return u},reduce:function(n){var t=pu(n).map(function(t){return n[t]});return t.reduce.apply(t,l(arguments,null,1))},each:function(n,t){return yi(t),k(n,t),n},size:function(n){return pu(n).length}});var to="any,all,none,count,find,findAll,isEmpty".split(","),io="sum,average,min,max,least,most".split(","),ro="map,reduce,size".split(","),uo=to.concat(io).concat(ro);bh();kh();no(to);no(io,!0);lr(ro,ht);dh();var v,pr,wr=["ampm","hour","minute","second","ampm","utc","offset_sign","offset_hours","offset_minutes","ampm"],fo="(?:[,.]\\d+)?",gh="\\d{1,2}"+fo,eo="[0-5]\\d"+fo,wu="({t})?\\s*("+gh+")(?:{h}("+eo+")?{m}(?::?("+eo+"){s})?\\s*(?:({t})|(Z)|(?:([+-])(\\d{2,2})(?::?(\\d{2,2}))?)?)?|\\s*({t}))",oo="〇一二三四五六七八九十百千万",bu={},so,ku,br,du=[],gu={},h={yyyy:function(n){return i(n,"FullYear")},yy:function(n){return i(n,"FullYear")%100},ord:function(n){var t=i(n,"Date");return t+re(t)},tz:function(n){return n.getUTCOffset()},isotz:function(n){return n.getUTCOffset(!0)},Z:function(n){return n.getUTCOffset()},ZZ:function(n){return n.getUTCOffset().replace(/(\d{2})$/,":$1")}},ii=[{name:"year",method:"FullYear",ambiguous:!0,multiplier:function(n){var t=n?n.isLeapYear()?1:0:.25;return(365+t)*864e5}},{name:"month",error:.919,method:"Month",ambiguous:!0,multiplier:function(n,t){var r=30.4375,i;return n&&(i=n.daysInMonth(),t<=i.days()&&(r=i)),r*864e5}},{name:"week",method:"ISOWeek",multiplier:function(){return 6048e5}},{name:"day",error:.958,method:"Date",ambiguous:!0,multiplier:function(){return 864e5}},{name:"hour",method:"Hours",multiplier:function(){return 36e5}},{name:"minute",method:"Minutes",multiplier:function(){return 6e4}},{name:"second",method:"Seconds",multiplier:function(){return 1e3}},{name:"millisecond",method:"Milliseconds",multiplier:function(){return 1}}],nf={};ho.prototype={getMonth:function(n){return a(n)?n-1:this.months.indexOf(n)%12},getWeekday:function(n){return this.weekdays.indexOf(n)%7},getNumber:function(n){var t;return a(n)?n:n&&(t=this.numbers.indexOf(n))!==-1?(t+1)%10:1},getNumericDate:function(n){var t=this;return n.replace(u(this.num,"g"),function(n){var i=t.getNumber(n);return i||""})},getUnitIndex:function(n){return this.units.indexOf(n)%8},getRelativeFormat:function(n){return this.convertAdjustedToFormat(n,n[2]>0?"future":"past")},getDuration:function(n){return this.convertAdjustedToFormat(lo(n),"duration")},hasVariant:function(n){return n=n||this.code,n==="en"||n==="en-US"?!0:this.variant},matchAM:function(n){return n===this.ampm[0]},matchPM:function(n){return n&&n===this.ampm[1]},convertAdjustedToFormat:function(n,t){var e,i,o,r=n[0],u=n[1],s=n[2],f=this[t]||this.relative;return y(f)?f.call(this,r,u,s,t):(o=this.plural&&r>1?1:0,i=this.units[o*8+u]||this.units[u],this.capitalizeUnit&&(i=ci(i)),e=this.modifiers.filter(function(n){return n.name=="sign"&&n.value==(s>0?1:-1)})[0],f.replace(/\{(.*?)\}/g,function(n,t){switch(t){case"num":return r;case"unit":return i;case"sign":return e.src}}))},getFormats:function(){return this.cachedFormat?[this.cachedFormat].concat(this.compiledFormats):this.compiledFormats},addFormat:function(n,t,i,r,u){var e=i||[],f=this,o,s,h;n=n.replace(/\s+/g,"[,. ]*");n=n.replace(/\{([^,]+?)\}/g,function(n,t){var r,h,o,l=t.match(/\?$/),c=t.match(/^(\d+)\??$/),s=t.match(/(\d)(?:-(\d))?/),u=t.replace(/[^a-z]+$/,"");return c?r=f.tokens[c[1]]:f[u]?r=f[u]:f[u+"s"]&&(r=f[u+"s"],s&&(h=[],r.forEach(function(n,t){var i=t%(f.units?8:r.length);i>=s[1]&&i<=(s[2]||s[1])&&h.push(n)}),r=h),r=di(r)),c?o="(?:"+r+")":(i||e.push(u),o="("+r+")"),l&&(o+="?"),o});t?(o=rf(wu,f,u),s=["t","[\\s\\u3000]"].concat(f.timeMarker),h=n.match(/\\d\{\d,\d\}\)+\??$/),kr(f,"(?:"+o+")[,\\s\\u3000]+?"+n,wr.concat(e),r),kr(f,n+"(?:[,\\s]*(?:"+s.join("|")+(h?"+":"*")+")"+o+")?",e.concat(wr),r)):kr(f,n,e,r)}};t(r,!1,!0,{create:function(){return kt(arguments)},past:function(){return kt(arguments,-1)},future:function(){return kt(arguments,1)},addLocale:function(n,t){return nc(n,t)},setLocale:function(n){var t=tt(n,!1);return pr=t,n&&n!=t.code&&(t.code=n),t},getLocale:function(n){return n?tt(n,!1):pr},addFormat:function(n,t,i){kr(tt(i),n,t)}});t(r,!0,!0,{set:function(){var n=dr(arguments);return nu(this,n[0],n[1])},setWeekday:function(n){if(!e(n))return si(this,"Date",i(this,"Date")+n-i(this,"Day"))},setISOWeek:function(n){var t=i(this,"Day")||7;if(!e(n))return this.set({month:0,date:4}),this.set({weekday:1}),n>1&&this.addWeeks(n-1),t!==1&&this.advance({days:t-1}),this.getTime()},getISOWeek:function(){return ec(this)},beginningOfISOWeek:function(){var n=this.getDay();return n===0?n=-6:n!==1&&(n=1),this.setWeekday(n),this.reset()},endOfISOWeek:function(){return this.getDay()!==0&&this.setWeekday(7),this.endOfDay()},getUTCOffset:function(n){var t=this._utc?0:this.getTimezoneOffset(),i=n===!0?":":"";return!t&&n?"Z":p(d(-t/60),2,!0)+i+p(ct(t%60),2)},utc:function(n){return ni(this,"_utc",n===!0||arguments.length===0),this},isUTC:function(){return!!this._utc||this.getTimezoneOffset()===0},advance:function(){var n=dr(arguments,!0);return nu(this,n[0],n[1],1)},rewind:function(){var n=dr(arguments,!0);return nu(this,n[0],n[1],-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(n,t){return this.getTime()>r.create(n).getTime()-(t||0)},isBefore:function(n,t){return this.getTime()<r.create(n).getTime()+(t||0)},isBetween:function(n,t,i){var u=this.getTime(),f=r.create(n).getTime(),e=r.create(t).getTime(),o=cu(f,e),s=lt(f,e);return i=i||0,o-i<u&&s+i>u},isLeapYear:function(){var n=i(this,"FullYear");return n%4==0&&n%100!=0||n%400==0},daysInMonth:function(){return 32-i(new r(i(this,"FullYear"),i(this,"Month"),32),"Date")},format:function(n,t){return tf(this,n,!1,t)},relative:function(n,t){return c(n)&&(t=n,n=null),tf(this,n,!0,t)},is:function(n,t,r){var f,u;if(this.isValid()){if(c(n)){n=n.trim().toLowerCase();u=this.clone().utc(r);switch(!0){case n==="future":return this.getTime()>ri().getTime();case n==="past":return this.getTime()<ri().getTime();case n==="weekday":return i(u,"Day")>0&&i(u,"Day")<6;case n==="weekend":return i(u,"Day")===0||i(u,"Day")===6;case(f=v.weekdays.indexOf(n)%7)>-1:return i(u,"Day")===f;case(f=v.months.indexOf(n)%12)>-1:return i(u,"Month")===f}}return vo(this,n,null,t,r)}},reset:function(n){var t={},i;return n=n||"hours",n==="date"&&(n="days"),i=ii.some(function(t){return n===t.name||n===t.name+"s"}),t[n]=n.match(/^days?/)?1:0,i?this.set(t,!0):this},clone:function(){var n=new r(this.getTime());return n.utc(!!this._utc),n}});t(r,!0,!0,{iso:function(){return this.toISOString()},getWeekday:r.prototype.getDay,getUTCWeekday:r.prototype.getUTCDay});t(w,!0,!0,{duration:function(n){return tt(n).getDuration(this)}});v=pr=r.addLocale("en",{plural:!0,timeMarker:"at",ampm:"am,pm",months:"January,February,March,April,May,June,July,August,September,October,November,December",weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",units:"millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s",numbers:"one,two,three,four,five,six,seven,eight,nine,ten",articles:"a,an,the",tokens:"the,st|nd|rd|th,of",short:"{Month} {d}, {yyyy}",long:"{Month} {d}, {yyyy} {h}:{mm}{tt}",full:"{Weekday} {Month} {d}, {yyyy} {h}:{mm}:{ss}{tt}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",modifiers:[{name:"sign",src:"ago|before",value:-1},{name:"sign",src:"from now|after|from|in|later",value:1},{name:"edge",src:"last day",value:-2},{name:"edge",src:"end",value:-1},{name:"edge",src:"first day|beginning",value:1},{name:"shift",src:"last",value:-1},{name:"shift",src:"the|this",value:0},{name:"shift",src:"next",value:1}],dateParse:["{month} {year}","{shift} {unit=5-7}","{0?} {date}{1}","{0?} {edge} of {shift?} {unit=4-7?}{month?}{year?}"],timeParse:["{num} {unit} {sign}","{sign} {num} {unit}","{0} {num}{1} {day} of {month} {year?}","{weekday?} {month} {date}{1?} {year?}","{date} {month} {year}","{date} {month}","{shift} {weekday}","{shift} week {weekday}","{weekday} {2?} {shift} week","{num} {unit=4-5} {sign} {day}","{0?} {date}{1} of {month}","{0?}{month?} {date?}{1?} of {shift} {unit=6-7}"]});wc();bc();kc();dc();gc();nl();tl();il();rl();vt.prototype.toString=function(){return this.isValid()?this.start+".."+this.end:"Invalid Range"};t(vt,!0,!0,{isValid:function(){return wo(this.start)&&wo(this.end)&&typeof this.start==typeof this.end},span:function(){return this.isValid()?ct(yo(this.end)-yo(this.start))+1:NaN},contains:function(n){var t=this;return n==null?!1:n.start&&n.end?n.start>=this.start&&n.start<=this.end&&n.end>=this.start&&n.end<=this.end:n>=this.start&&n<=this.end},every:function(n,t){var u,r=this.start,f=this.end,e=f<r,i=r,o=0,s=[];for(y(n)&&(t=n,n=null),n=n||1,a(r)?u=sl:c(r)?u=ol:ot(r)&&(n=fl(n),u=el),e&&n>0&&(n*=-1);e?i>=f:i<=f;)s.push(i),t&&t(i,o),i=u(i,n),o++;return s},union:function(n){return new vt(this.start<n.start?this.start:n.start,this.end>n.end?this.end:n.end)},intersect:function(n){return n.start>this.end||n.end<this.start?new vt(NaN,NaN):new vt(this.start>n.start?this.start:n.start,this.end<n.end?this.end:n.end)},clone:function(){return new vt(this.start,this.end)},clamp:function(n){var r,t=this.start,i=this.end,u=i<t?i:t,f=t>i?t:i;return r=n<u?u:n>f?f:n,uf(r)}});[w,s,r].forEach(function(n){t(n,!1,!0,{range:function(t,i){return n.create&&(t=n.create(t),i=n.create(i)),new vt(t,i)}})});t(w,!0,!0,{upto:function(n,t,i){return w.range(this,n).every(i,t)},clamp:function(n,t){return new vt(n,t).clamp(this)},cap:function(n){return this.clamp(uu,n)}});t(w,!0,!0,{downto:w.prototype.upto});t(f,!1,function(n){return n instanceof vt},{create:function(n){return n.every()}});t(Function,!0,!0,{lazy:function(n,t,i){function o(){return r.length<i-(u&&t?1:0)&&r.push([this,arguments]),u||(u=!0,t?f():ai(o,e,f)),h}var c=this,r=[],u=!1,f,e,s,h;return n=n||1,i=i||Infinity,e=ti(n),s=yt(e/n)||1,f=function(){var n=r.length,t;if(n!=0){for(t=lt(n-s,0);n>t;)h=Function.prototype.apply.apply(c,r.shift()),n--;ai(o,e,function(){u=!1;f()})}},o},throttle:function(n){return this.lazy(n,!0,1)},debounce:function(n){function t(){t.cancel();ai(t,n,i,this,arguments)}var i=this;return t},delay:function(n){var t=this,i=l(arguments,null,1);return ai(t,n,t,t,i),t},every:function(n){function r(){t.apply(t,i);ai(t,n,r)}var t=this,i=arguments;return i=i.length>1?l(i,null,1):[],ai(t,n,r),t},cancel:function(){var n=this.timers,t;if(it(n))while(t=n.shift())clearTimeout(t);return this._canceled=!0,this},after:function(n){var t=this,i=0,r=[];if(a(n)){if(n===0)return t.call(),t}else n=1;return function(){var u;return r.push(l(arguments)),i++,i==n?(u=t.call(this,r),i=0,r=[],u):void 0}},once:function(){return this.throttle(Infinity,!0)},fill:function(){var n=this,t=l(arguments);return function(){var i=l(arguments);return t.forEach(function(n,t){(n!=null||t>=i.length)&&i.splice(t,0,n)}),n.apply(this,i)}}});t(w,!1,!0,{random:function(n,t){var i,r;return arguments.length==1&&(t=n,n=0),i=cu(n||0,e(t)?1:t),r=lt(n||0,e(t)?1:t)+1,d(b.random()*(r-i)+i)}});t(w,!0,!0,{log:function(n){return b.log(this)/(n?b.log(n):1)},abbr:function(n){return ff(this,n,"kmbt",0,4)},metric:function(n,t){return ff(this,n,"nμm kMGTPE",4,e(t)?1:t)},bytes:function(n,t){return ff(this,n,"kMGTPE",0,e(t)?4:t,!0)+"B"},isInteger:function(){return this%1==0},isOdd:function(){return!isNaN(this)&&!this.isMultipleOf(2)},isEven:function(){return this.isMultipleOf(2)},isMultipleOf:function(n){return this%n==0},format:function(n,t,i){var r,h,s,f,o,u="";for(e(t)&&(t=","),e(i)&&(i="."),h=(a(n)?or(this,n||0).toFixed(lt(n,0)):this.toString()).replace(/^-/,""),s=h.split("."),f=s[0],o=s[1],r=f.length;r>0;r-=3)r<f.length&&(u=t+u),u=f.slice(lt(0,r-3),r)+u;return o&&(u+=i+hr("0",(n||0)-o.length)+o),(this<0?"-":"")+u},hex:function(n){return this.pad(n||1,!1,16)},times:function(n){if(n)for(var t=0;t<this;t++)n.call(this,t);return this.toNumber()},chr:function(){return s.fromCharCode(this)},pad:function(n,t,i){return p(this,n,t,i)},ordinalize:function(){var n=ct(this),t=parseInt(n.toString().slice(-2));return this+re(t)},toNumber:function(){return parseFloat(this,10)}});hl();ef="isObject,isNaN".split(",");of="keys,values,select,reject,each,merge,clone,equal,watch,tap,has,toQueryString".split(",");t(o,!1,!0,{watch:function(n,t,i){if(vf){var r=n[t];o.defineProperty(n,t,{enumerable:!0,configurable:!0,get:function(){return r},set:function(u){r=i.call(n,t,r,u)}})}}});t(o,!1,function(){return arguments.length>1},{keys:function(n,t){var i=o.keys(n);return i.forEach(function(i){t.call(n,i,n[i])}),i}});t(o,!1,!0,{isObject:function(n){return ei(n)},isNaN:function(n){return a(n)&&n.valueOf()!==n.valueOf()},equal:function(n,t){return ue(n,t)},extended:function(n){return new ht(n)},merge:function(n,t,i,e){var h,p,a,s,c,v,l;if(n&&typeof t!="string")for(h in t)if(ut(t,h)&&n){if(s=t[h],c=n[h],v=rt(c),p=nt(s),a=nt(c),l=v&&e===!1?c:s,v&&y(e)&&(l=e.call(t,h,c,s)),i&&(p||a))if(ot(s))l=new r(s.getTime());else if(g(s))l=new u(s.source,bi(s));else{a||(n[h]=f.isArray(s)?[]:{});o.merge(n[h],s,i,e);continue}n[h]=l}return n},values:function(n,t){var i=[];return k(n,function(r,u){i.push(u);t&&t.call(n,u)}),i},clone:function(n,t){var r,i;if(!nt(n))return n;if(i=vi(n),ot(n,i)&&n.clone)return n.clone();if(ot(n,i)||g(n,i))return new n.constructor(n);if(n instanceof ht)r=new ht;else if(it(n,i))r=[];else if(ei(n,i))r={};else throw new TypeError("Clone must be a basic data type.");return o.merge(r,n,t)},fromQueryString:function(n,t){var i=o.extended();return n=n&&n.toString?n.toString():"",n.replace(/^.*?\?/,"").split("&").forEach(function(n){var r=n.split("=");r.length===2&&bo(i,r[0],decodeURIComponent(r[1]),t)}),i},toQueryString:function(n,t){return ko(t,n)},tap:function(n,t){var i=t;return y(t)||(i=function(){t&&n[t]()}),i.call(n,n),n},has:function(n,t){return ut(n,t)},select:function(n){return ns(n,arguments,!0)},reject:function(n){return ns(n,arguments,!1)}});ll();al();lr(of,ht);t(u,!1,!0,{escape:function(n){return wt(n)}});t(u,!0,!0,{getFlags:function(){return bi(this)},setFlags:function(n){return u(this.source,n)},addFlag:function(n){return this.setFlags(bi(this,n))},removeFlag:function(n){return this.setFlags(bi(this).replace(n,""))}});t(s,!0,!1,{repeat:function(n){return n=tu(n),hr(this,n)}});t(s,!0,function(n){return g(n)||arguments.length>2},{startsWith:function(n){var r=arguments,f=r[1],t=r[2],i=this,o;return f&&(i=i.slice(f)),e(t)&&(t=!0),o=g(n)?n.source.replace("^",""):wt(n),u("^"+o,t?"":"i").test(i)},endsWith:function(n){var r=arguments,f=r[1],t=r[2],i=this,o;return rt(f)&&(i=i.slice(0,f)),e(t)&&(t=!0),o=g(n)?n.source.replace("$",""):wt(n),u(o+"$",t?"":"i").test(i)}});t(s,!0,!0,{escapeRegExp:function(){return wt(this)},escapeURL:function(n){return n?encodeURIComponent(this):encodeURI(this)},unescapeURL:function(n){return n?decodeURI(this):decodeURIComponent(this)},escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2f;")},unescapeHTML:function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#x2f;/g,"/").replace(/&amp;/g,"&")},encodeBase64:function(){return sf(unescape(encodeURIComponent(this)))},decodeBase64:function(){return decodeURIComponent(escape(hf(this)))},each:function(n,t){var i,r,f;if(y(n)?(t=n,n=/[\s\S]/g):n?c(n)?n=u(wt(n),"gi"):g(n)&&(n=u(n.source,bi(n,"g"))):n=/[\s\S]/g,i=this.match(n)||[],t)for(r=0,f=i.length;r<f;r++)i[r]=t.call(this,i[r],r,i)||i[r];return i},shift:function(n){var t="";return n=n||0,this.codes(function(i){t+=pt(i+n)}),t},codes:function(n){for(var r=[],i,t=0,u=this.length;t<u;t++)i=this.charCodeAt(t),r.push(i),n&&n.call(this,i,t);return r},chars:function(n){return this.each(n)},words:function(n){return this.trim().each(/\S+/g,n)},lines:function(n){return this.trim().each(/^.*$/gm,n)},paragraphs:function(n){var t=this.trim().split(/[\r\n]{2,}/);return t.map(function(t){if(n)var i=n.call(t);return i?i:t})},isBlank:function(){return this.trim().length===0},has:function(n){return this.search(g(n)?n:wt(n))!==-1},add:function(n,t){return t=e(t)?this.length:t,this.slice(0,t)+n+this.slice(t)},remove:function(n){return this.replace(n,"")},reverse:function(){return this.split("").reverse().join("")},compact:function(){return this.trim().replace(/([\r\n\s　])+/g,function(n,t){return t==="　"?t:" "})},at:function(){return fe(this,arguments,!0)},from:function(n){return this.slice(is(this,n,!0))},to:function(n){return e(n)&&(n=this.length),this.slice(0,is(this,n))},dasherize:function(){return this.underscore().replace(/_/g,"-")},underscore:function(){return this.replace(/[-\s]+/g,"_").replace(s.Inflector&&s.Inflector.acronymRegExp,function(n,t){return(t>0?"_":"")+n.toLowerCase()}).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase()},camelize:function(n){return this.underscore().replace(/(^|_)([^_]+)/g,function(t,i,r,u){var f=vl(r),e=n!==!1||u>0;return f?e?f:f.toLowerCase():e?r.capitalize():r})},spacify:function(){return this.underscore().replace(/_/g," ")},stripTags:function(){var n=this,t=arguments.length>0?arguments:[""];return ur(t,function(t){n=n.replace(u("<\/?"+wt(t)+"[^<>]*>","gi"),"")}),n},removeTags:function(){var n=this,t=arguments.length>0?arguments:["\\S+"];return ur(t,function(t){var i=u("<("+t+")[^<>]*(?:\\/>|>.*?<\\/\\1>)","gi");n=n.replace(i,"")}),n},truncate:function(n,t,i){return ts(this,n,t,i)},truncateOnWord:function(n,t,i){return ts(this,n,t,i,!0)},pad:function(n,t){var i,r,u;return n=tu(n),i=lt(0,n-this.length)/2,r=d(i),u=ti(i),iu(r,t)+this+iu(u,t)},padLeft:function(n,t){return n=tu(n),iu(lt(0,n-this.length),t)+this},padRight:function(n,t){return n=tu(n),this+iu(lt(0,n-this.length),t)},first:function(n){return e(n)&&(n=1),this.substr(0,n)},last:function(n){e(n)&&(n=1);var t=this.length-n<0?0:this.length-n;return this.substr(t)},toNumber:function(n){return au(this,n)},capitalize:function(n){var t;return this.toLowerCase().replace(n?/[^']/g:/^\S/,function(n){var i=n.toUpperCase(),r;return r=t?n:i,t=i!==n,r})},assign:function(){var n={};return ur(arguments,function(t,i){nt(t)?pi(n,t):n[i+1]=t}),this.replace(/\{([^{]+?)\}/g,function(t,i){return ut(n,i)?n[i]:t})}});t(s,!0,!0,{insert:s.prototype.add});yl("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");var cf=[],lf=[],dt=[],af=[],fi={},rs,n;n={acronym:function(t){fi[t.toLowerCase()]=t;var i=o.keys(fi).map(function(n){return fi[n]});n.acronymRegExp=u(i.join("|"),"g")},plural:function(n,t){us(cf,n,t)},singular:function(n,t){us(lf,n,t)},irregular:function(t,i){var h=t.first(),f=t.from(1),o=i.first(),r=i.from(1),e=o.toUpperCase(),s=o.toLowerCase(),c=h.toUpperCase(),l=h.toLowerCase();ru(dt,t);ru(dt,i);c==e?(n.plural(new u("({1}){2}$".assign(h,f),"i"),"$1"+r),n.plural(new u("({1}){2}$".assign(o,r),"i"),"$1"+r),n.singular(new u("({1}){2}$".assign(o,r),"i"),"$1"+f)):(n.plural(new u("{1}{2}$".assign(c,f)),e+r),n.plural(new u("{1}{2}$".assign(l,f)),s+r),n.plural(new u("{1}{2}$".assign(e,r)),e+r),n.plural(new u("{1}{2}$".assign(s,r)),s+r),n.singular(new u("{1}{2}$".assign(e,r)),c+f),n.singular(new u("{1}{2}$".assign(s,r)),l+f))},uncountable:function(n){var t=f.isArray(n)?n:l(arguments);dt=dt.concat(t)},human:function(n,t){af.unshift({rule:n,replacement:t})},clear:function(n){nr(n,"singulars")&&(lf=[]);nr(n,"plurals")&&(cf=[]);nr(n,"uncountables")&&(dt=[]);nr(n,"humans")&&(af=[]);nr(n,"acronyms")&&(fi={})}};rs=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"];n.plural(/$/,"s");n.plural(/s$/gi,"s");n.plural(/(ax|test)is$/gi,"$1es");n.plural(/(octop|vir|fung|foc|radi|alumn)(i|us)$/gi,"$1i");n.plural(/(census|alias|status)$/gi,"$1es");n.plural(/(bu)s$/gi,"$1ses");n.plural(/(buffal|tomat)o$/gi,"$1oes");n.plural(/([ti])um$/gi,"$1a");n.plural(/([ti])a$/gi,"$1a");n.plural(/sis$/gi,"ses");n.plural(/f+e?$/gi,"ves");n.plural(/(cuff|roof)$/gi,"$1s");n.plural(/([ht]ive)$/gi,"$1s");n.plural(/([^aeiouy]o)$/gi,"$1es");n.plural(/([^aeiouy]|qu)y$/gi,"$1ies");n.plural(/(x|ch|ss|sh)$/gi,"$1es");n.plural(/(matr|vert|ind)(?:ix|ex)$/gi,"$1ices");n.plural(/([ml])ouse$/gi,"$1ice");n.plural(/([ml])ice$/gi,"$1ice");n.plural(/^(ox)$/gi,"$1en");n.plural(/^(oxen)$/gi,"$1");n.plural(/(quiz)$/gi,"$1zes");n.plural(/(phot|cant|hom|zer|pian|portic|pr|quart|kimon)o$/gi,"$1os");n.plural(/(craft)$/gi,"$1");n.plural(/([ft])[eo]{2}(th?)$/gi,"$1ee$2");n.singular(/s$/gi,"");n.singular(/([pst][aiu]s)$/gi,"$1");n.singular(/([aeiouy])ss$/gi,"$1ss");n.singular(/(n)ews$/gi,"$1ews");n.singular(/([ti])a$/gi,"$1um");n.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis");n.singular(/(^analy)ses$/gi,"$1sis");n.singular(/(i)(f|ves)$/i,"$1fe");n.singular(/([aeolr]f?)(f|ves)$/i,"$1f");n.singular(/([ht]ive)s$/gi,"$1");n.singular(/([^aeiouy]|qu)ies$/gi,"$1y");n.singular(/(s)eries$/gi,"$1eries");n.singular(/(m)ovies$/gi,"$1ovie");n.singular(/(x|ch|ss|sh)es$/gi,"$1");n.singular(/([ml])(ous|ic)e$/gi,"$1ouse");n.singular(/(bus)(es)?$/gi,"$1");n.singular(/(o)es$/gi,"$1");n.singular(/(shoe)s?$/gi,"$1");n.singular(/(cris|ax|test)[ie]s$/gi,"$1is");n.singular(/(octop|vir|fung|foc|radi|alumn)(i|us)$/gi,"$1us");n.singular(/(census|alias|status)(es)?$/gi,"$1");n.singular(/^(ox)(en)?/gi,"$1");n.singular(/(vert|ind)(ex|ices)$/gi,"$1ex");n.singular(/(matr)(ix|ices)$/gi,"$1ix");n.singular(/(quiz)(zes)?$/gi,"$1");n.singular(/(database)s?$/gi,"$1");n.singular(/ee(th?)$/gi,"oo$1");n.irregular("person","people");n.irregular("man","men");n.irregular("child","children");n.irregular("sex","sexes");n.irregular("move","moves");n.irregular("save","saves");n.irregular("cow","kine");n.irregular("goose","geese");n.irregular("zombie","zombies");n.uncountable("equipment,information,rice,money,species,series,fish,sheep,jeans".split(","));t(s,!0,!0,{pluralize:function(){return fs(this,!0)},singularize:function(){return fs(this,!1)},humanize:function(){var n=es(this,af),t;return n=n.replace(/_id$/g,""),n=n.replace(/(_)?([a-z\d]*)/gi,function(n,i,r){return t=ut(fi,r)?fi[r]:null,(i?" ":"")+(t||r.toLowerCase())}),os(n)},titleize:function(){var r=/[.:;!]$/,n,t,i;return this.spacify().humanize().words(function(u,f,e){return n=r.test(u),i=f==0||f==e.length-1||n||t,t=n,i||rs.indexOf(u)===-1?os(u):u}).join(" ")},parameterize:function(n){var t=this;return n===undefined&&(n="-"),t.normalize&&(t=t.normalize()),t=t.replace(/[^a-z0-9\-_]+/gi,n),n&&(t=t.replace(new u("^{sep}+|{sep}+$|({sep}){sep}+".assign({sep:wt(n)}),"g"),"$1")),encodeURI(t.toLowerCase())}});s.Inflector=n;s.Inflector.acronyms=fi;ss=[{names:["Arabic"],source:"؀-ۿ"},{names:["Cyrillic"],source:"Ѐ-ӿ"},{names:["Devanagari"],source:"ऀ-ॿ"},{names:["Greek"],source:"Ͱ-Ͽ"},{names:["Hangul"],source:"가-힯ᄀ-ᇿ"},{names:["Han","Kanji"],source:"一-鿿豈-﫿"},{names:["Hebrew"],source:"֐-׿"},{names:["Hiragana"],source:"぀-ゟ・-ー"},{names:["Kana"],source:"぀-ヿ｡-ﾟ"},{names:["Katakana"],source:"゠-ヿ｡-ﾟ"},{names:["Latin"],source:"\x01--ÿĀ-ſƀ-ɏ"},{names:["Thai"],source:"฀-๿"}];var bl=65248,kl=[{type:"a",start:65,end:90},{type:"a",start:97,end:122},{type:"n",start:48,end:57},{type:"p",start:33,end:47},{type:"p",start:58,end:64},{type:"p",start:91,end:96},{type:"p",start:123,end:126}],tr,dl=/[\u0020-\u00A5]|[\uFF61-\uFF9F][ﾞﾟ]?/g,gl=/[\u3000-\u301C]|[\u301A-\u30FC]|[\uFF01-\uFF60]|[\uFFE0-\uFFE6]/g,na="｡､｢｣¥¢£",ta="。、「」￥￠￡",ia=/[カキクケコサシスセソタチツテトハヒフヘホ]/,ra=/[ハヒフヘホヲ]/,ua="ｱｲｳｴｵｧｨｩｪｫｶｷｸｹｺｻｼｽｾｿﾀﾁﾂｯﾃﾄﾅﾆﾇﾈﾉﾊﾋﾌﾍﾎﾏﾐﾑﾒﾓﾔｬﾕｭﾖｮﾗﾘﾙﾚﾛﾜｦﾝｰ･",fa="アイウエオァィゥェォカキクケコサシスセソタチツッテトナニヌネノハヒフヘホマミムメモヤャユュヨョラリルレロワヲンー・";t(s,!0,!0,{hankaku:function(){return hs(this,arguments,gl,"hankaku")},zenkaku:function(){return hs(this,arguments,dl,"zenkaku")},hiragana:function(n){var t=this;return n!==!1&&(t=t.zenkaku("k")),t.replace(/[\u30A1-\u30F6]/g,function(n){return n.shift(-96)})},katakana:function(){return this.replace(/[\u3041-\u3096]/g,function(n){return n.shift(96)})}});wl();Date.addLocale("da",{plural:!0,months:"januar,februar,marts,april,maj,juni,juli,august,september,oktober,november,december",weekdays:"søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag",units:"millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et",numbers:"en|et,to,tre,fire,fem,seks,syv,otte,ni,ti",tokens:"den,for",articles:"den",short:"d. {d}. {month} {yyyy}",long:"den {d}. {month} {yyyy} {H}:{mm}",full:"{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"forgårs|i forgårs|forgaars|i forgaars",value:-2},{name:"day",src:"i går|igår|i gaar|igaar",value:-1},{name:"day",src:"i dag|idag",value:0},{name:"day",src:"i morgen|imorgen",value:1},{name:"day",src:"over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen",value:2},{name:"sign",src:"siden",value:-1},{name:"sign",src:"om",value:1},{name:"shift",src:"i sidste|sidste",value:-1},{name:"shift",src:"denne",value:0},{name:"shift",src:"næste|naeste",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});Date.addLocale("de",{plural:!0,capitalizeUnit:!0,months:"Januar,Februar,März|Marz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember",weekdays:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag",units:"Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en",numbers:"ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn",tokens:"der",short:"{d}. {Month} {yyyy}",long:"{d}. {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d}. {Month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"um",ampm:"am,pm",modifiers:[{name:"day",src:"vorgestern",value:-2},{name:"day",src:"gestern",value:-1},{name:"day",src:"heute",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"übermorgen|ubermorgen|uebermorgen",value:2},{name:"sign",src:"vor:|her",value:-1},{name:"sign",src:"in",value:1},{name:"shift",src:"letzte:|r|n|s",value:-1},{name:"shift",src:"nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r",value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("es",{plural:!0,months:"enero,febrero,marzo,abril,mayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre",weekdays:"domingo,lunes,martes,miércoles|miercoles,jueves,viernes,sábado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,día|días|dia|dias,semana:|s,mes:|es,año|años|ano|anos",numbers:"uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez",tokens:"el,la,de",short:"{d} {month} {yyyy}",long:"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"a las",ampm:"am,pm",modifiers:[{name:"day",src:"anteayer",value:-2},{name:"day",src:"ayer",value:-1},{name:"day",src:"hoy",value:0},{name:"day",src:"mañana|manana",value:1},{name:"sign",src:"hace",value:-1},{name:"sign",src:"dentro de",value:1},{name:"shift",src:"pasad:o|a",value:-1},{name:"shift",src:"próximo|próxima|proximo|proxima",value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}","{0?}{1?} {unit=5-7} {shift}","{0?}{1?} {shift} {unit=5-7}"],timeParse:["{shift} {weekday}","{weekday} {shift}","{date?} {2?} {month} {2?} {year?}"]});Date.addLocale("fi",{plural:!0,timeMarker:"kello",ampm:",",months:"tammikuu,helmikuu,maaliskuu,huhtikuu,toukokuu,kesäkuu,heinäkuu,elokuu,syyskuu,lokakuu,marraskuu,joulukuu",weekdays:"sunnuntai,maanantai,tiistai,keskiviikko,torstai,perjantai,lauantai",units:"millisekun:ti|tia|teja|tina|nin,sekun:ti|tia|teja|tina|nin,minuut:ti|tia|teja|tina|in,tun:ti|tia|teja|tina|nin,päiv:ä|ää|iä|änä|än,viik:ko|koa|koja|on|kona,kuukau:si|sia|tta|den|tena,vuo:si|sia|tta|den|tena",numbers:"yksi|ensimmäinen,kaksi|toinen,kolm:e|as,neljä:s,vii:si|des,kuu:si|des,seitsemä:n|s,kahdeksa:n|s,yhdeksä:n|s,kymmene:n|s",articles:"",optionals:"",short:"{d}. {month}ta {yyyy}",long:"{d}. {month}ta {yyyy} kello {H}.{mm}",full:"{Weekday}na {d}. {month}ta {yyyy} kello {H}.{mm}",relative:function(n,t,i,r){function u(i){return(n===1?"":n+" ")+f[8*i+t]}var f=this.units;switch(r){case"duration":return u(0);case"past":return u(n>1?1:0)+" sitten";case"future":return u(4)+" päästä"}},modifiers:[{name:"day",src:"toissa päivänä|toissa päiväistä",value:-2},{name:"day",src:"eilen|eilistä",value:-1},{name:"day",src:"tänään",value:0},{name:"day",src:"huomenna|huomista",value:1},{name:"day",src:"ylihuomenna|ylihuomista",value:2},{name:"sign",src:"sitten|aiemmin",value:-1},{name:"sign",src:"päästä|kuluttua|myöhemmin",value:1},{name:"edge",src:"viimeinen|viimeisenä",value:-2},{name:"edge",src:"lopussa",value:-1},{name:"edge",src:"ensimmäinen|ensimmäisenä",value:1},{name:"shift",src:"edellinen|edellisenä|edeltävä|edeltävänä|viime|toissa",value:-1},{name:"shift",src:"tänä|tämän",value:0},{name:"shift",src:"seuraava|seuraavana|tuleva|tulevana|ensi",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{num} {unit=4-5} {sign} {day}","{month} {year}","{shift} {unit=5-7}"],timeParse:["{0} {num}{1} {day} of {month} {year?}","{weekday?} {month} {date}{1} {year?}","{date} {month} {year}","{shift} {weekday}","{shift} week {weekday}","{weekday} {2} {shift} week","{0} {date}{1} of {month}","{0}{month?} {date?}{1} of {shift} {unit=6-7}"]});Date.addLocale("fr",{plural:!0,months:"janvier,février|fevrier,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre|decembre",weekdays:"dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi",units:"milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee",numbers:"un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix",tokens:"l'|la|le",short:"{d} {month} {yyyy}",long:"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"à",ampm:"am,pm",modifiers:[{name:"day",src:"hier",value:-1},{name:"day",src:"aujourd'hui",value:0},{name:"day",src:"demain",value:1},{name:"sign",src:"il y a",value:-1},{name:"sign",src:"dans|d'ici",value:1},{name:"shift",src:"derni:èr|er|ère|ere",value:-1},{name:"shift",src:"prochain:|e",value:1}],dateParse:["{sign} {num} {unit}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}"],timeParse:["{weekday?} {0?} {date?} {month} {year?}","{0?} {weekday} {shift}"]});Date.addLocale("it",{plural:!0,months:"Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre",weekdays:"Domenica,Luned:ì|i,Marted:ì|i,Mercoled:ì|i,Gioved:ì|i,Venerd:ì|i,Sabato",units:"millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i",numbers:"un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci",tokens:"l'|la|il",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"alle",ampm:"am,pm",modifiers:[{name:"day",src:"ieri",value:-1},{name:"day",src:"oggi",value:0},{name:"day",src:"domani",value:1},{name:"day",src:"dopodomani",value:2},{name:"sign",src:"fa",value:-1},{name:"sign",src:"da adesso",value:1},{name:"shift",src:"scors:o|a",value:-1},{name:"shift",src:"prossim:o|a",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("ja",{monthSuffix:"月",weekdays:"日曜日,月曜日,火曜日,水曜日,木曜日,金曜日,土曜日",units:"ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {H}時{mm}分",full:"{yyyy}年{M}月{d}日 {Weekday} {H}時{mm}分{ss}秒",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"時,分,秒",ampm:"午前,午後",modifiers:[{name:"day",src:"一昨日",value:-2},{name:"day",src:"昨日",value:-1},{name:"day",src:"今日",value:0},{name:"day",src:"明日",value:1},{name:"day",src:"明後日",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"後",value:1},{name:"shift",src:"去|先",value:-1},{name:"shift",src:"来",value:1}],dateParse:["{num}{unit}{sign}"],timeParse:["{shift}{unit=5-7}{weekday?}","{year}年{month?}月?{date?}日?","{month}月{date?}日?","{date}日"]});Date.addLocale("ko",{digitDate:!0,monthSuffix:"월",weekdays:"일요일,월요일,화요일,수요일,목요일,금요일,토요일",units:"밀리초,초,분,시간,일,주,개월|달,년",numbers:"일|한,이,삼,사,오,육,칠,팔,구,십",short:"{yyyy}년{M}월{d}일",long:"{yyyy}년{M}월{d}일 {H}시{mm}분",full:"{yyyy}년{M}월{d}일 {Weekday} {H}시{mm}분{ss}초",past:"{num}{unit} {sign}",future:"{num}{unit} {sign}",duration:"{num}{unit}",timeSuffixes:"시,분,초",ampm:"오전,오후",modifiers:[{name:"day",src:"그저께",value:-2},{name:"day",src:"어제",value:-1},{name:"day",src:"오늘",value:0},{name:"day",src:"내일",value:1},{name:"day",src:"모레",value:2},{name:"sign",src:"전",value:-1},{name:"sign",src:"후",value:1},{name:"shift",src:"지난|작",value:-1},{name:"shift",src:"이번",value:0},{name:"shift",src:"다음|내",value:1}],dateParse:["{num}{unit} {sign}","{shift?} {unit=5-7}"],timeParse:["{shift} {unit=5?} {weekday}","{year}년{month?}월?{date?}일?","{month}월{date?}일?","{date}일"]});Date.addLocale("nl",{plural:!0,months:"januari,februari,maart,april,mei,juni,juli,augustus,september,oktober,november,december",weekdays:"zondag|zo,maandag|ma,dinsdag|di,woensdag|woe|wo,donderdag|do,vrijdag|vrij|vr,zaterdag|za",units:"milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar",numbers:"een,twee,drie,vier,vijf,zes,zeven,acht,negen",tokens:"",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"'s|om",modifiers:[{name:"day",src:"gisteren",value:-1},{name:"day",src:"vandaag",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"overmorgen",value:2},{name:"sign",src:"geleden",value:-1},{name:"sign",src:"vanaf nu",value:1},{name:"shift",src:"laatste|vorige|afgelopen",value:-1},{name:"shift",src:"volgend:|e",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("pl",{plural:!0,months:"Styczeń|Stycznia,Luty|Lutego,Marzec|Marca,Kwiecień|Kwietnia,Maj|Maja,Czerwiec|Czerwca,Lipiec|Lipca,Sierpień|Sierpnia,Wrzesień|Września,Październik|Października,Listopad|Listopada,Grudzień|Grudnia",weekdays:"Niedziela|Niedzielę,Poniedziałek,Wtorek,Środ:a|ę,Czwartek,Piątek,Sobota|Sobotę",units:"milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni,tydzień|tygodnie|tygodni,miesiące|miesiące|miesięcy,rok|lata|lat",numbers:"jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć",optionals:"w|we,roku",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday}, {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"o",ampm:"am,pm",modifiers:[{name:"day",src:"przedwczoraj",value:-2},{name:"day",src:"wczoraj",value:-1},{name:"day",src:"dzisiaj|dziś",value:0},{name:"day",src:"jutro",value:1},{name:"day",src:"pojutrze",value:2},{name:"sign",src:"temu|przed",value:-1},{name:"sign",src:"za",value:1},{name:"shift",src:"zeszły|zeszła|ostatni|ostatnia",value:-1},{name:"shift",src:"następny|następna|następnego|przyszły|przyszła|przyszłego",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{shift} {unit=5-7}","{0} {shift?} {weekday}"],timeParse:["{date} {month} {year?} {1}","{0} {shift?} {weekday}"]});Date.addLocale("pt",{plural:!0,months:"janeiro,fevereiro,março,abril,maio,junho,julho,agosto,setembro,outubro,novembro,dezembro",weekdays:"domingo,segunda-feira,terça-feira,quarta-feira,quinta-feira,sexta-feira,sábado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s",numbers:"um,dois,três|tres,quatro,cinco,seis,sete,oito,nove,dez,uma,duas",tokens:"a,de",short:"{d} de {month} de {yyyy}",long:"{d} de {month} de {yyyy} {H}:{mm}",full:"{Weekday}, {d} de {month} de {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"às",ampm:"am,pm",modifiers:[{name:"day",src:"anteontem",value:-2},{name:"day",src:"ontem",value:-1},{name:"day",src:"hoje",value:0},{name:"day",src:"amanh:ã|a",value:1},{name:"sign",src:"atrás|atras|há|ha",value:-1},{name:"sign",src:"daqui a",value:1},{name:"shift",src:"passad:o|a",value:-1},{name:"shift",src:"próximo|próxima|proximo|proxima",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{date?} {1?} {month} {1?} {year?}","{0?} {shift} {weekday}"]});Date.addLocale("ru",{months:"Январ:я|ь,Феврал:я|ь,Март:а|,Апрел:я|ь,Ма:я|й,Июн:я|ь,Июл:я|ь,Август:а|,Сентябр:я|ь,Октябр:я|ь,Ноябр:я|ь,Декабр:я|ь",weekdays:"Воскресенье,Понедельник,Вторник,Среда,Четверг,Пятница,Суббота",units:"миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году",numbers:"од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять",tokens:"в|на,года",short:"{d} {month} {yyyy} года",long:"{d} {month} {yyyy} года {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} года {H}:{mm}:{ss}",relative:function(n,t,i,r){var f,e=n.toString().slice(-1),u;switch(!0){case n>=11&&n<=15:u=3;break;case e==1:u=1;break;case e>=2&&e<=4:u=2;break;default:u=3}f=n+" "+this.units[u*8+t];switch(r){case"duration":return f;case"past":return f+" назад";case"future":return"через "+f}},timeMarker:"в",ampm:" утра, вечера",modifiers:[{name:"day",src:"позавчера",value:-2},{name:"day",src:"вчера",value:-1},{name:"day",src:"сегодня",value:0},{name:"day",src:"завтра",value:1},{name:"day",src:"послезавтра",value:2},{name:"sign",src:"назад",value:-1},{name:"sign",src:"через",value:1},{name:"shift",src:"прошл:ый|ой|ом",value:-1},{name:"shift",src:"следующ:ий|ей|ем",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{0?} {shift} {unit=5-7}"],timeParse:["{date} {month} {year?} {1?}","{0?} {shift} {weekday}"]});Date.addLocale("sv",{plural:!0,months:"januari,februari,mars,april,maj,juni,juli,augusti,september,oktober,november,december",weekdays:"söndag|sondag,måndag:|en+mandag:|en,tisdag,onsdag,torsdag,fredag,lördag|lordag",units:"millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et",numbers:"en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio",tokens:"den,för|for",articles:"den",short:"den {d} {month} {yyyy}",long:"den {d} {month} {yyyy} {H}:{mm}",full:"{Weekday} den {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar",value:-2},{name:"day",src:"går|i går|igår|gar|i gar|igar",value:-1},{name:"day",src:"dag|i dag|idag",value:0},{name:"day",src:"morgon|i morgon|imorgon",value:1},{name:"day",src:"över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon",value:2},{name:"sign",src:"sedan|sen",value:-1},{name:"sign",src:"om",value:1},{name:"shift",src:"i förra|förra|i forra|forra",value:-1},{name:"shift",src:"denna",value:0},{name:"shift",src:"nästa|nasta",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});Date.addLocale("zh-CN",{variant:!0,monthSuffix:"月",weekdays:"星期日|周日,星期一|周一,星期二|周二,星期三|周三,星期四|周四,星期五|周五,星期六|周六",units:"毫秒,秒钟,分钟,小时,天,个星期|周,个月,年",tokens:"日|号",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {tt}{h}:{mm}",full:"{yyyy}年{M}月{d}日 {weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"点|时,分钟?,秒",ampm:"上午,下午",modifiers:[{name:"day",src:"前天",value:-2},{name:"day",src:"昨天",value:-1},{name:"day",src:"今天",value:0},{name:"day",src:"明天",value:1},{name:"day",src:"后天",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"后",value:1},{name:"shift",src:"上|去",value:-1},{name:"shift",src:"这",value:0},{name:"shift",src:"下|明",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}年{month?}月?{date?}{0?}","{month}月{date?}{0?}","{date}[日号]"]});Date.addLocale("zh-TW",{monthSuffix:"月",weekdays:"星期日|週日,星期一|週一,星期二|週二,星期三|週三,星期四|週四,星期五|週五,星期六|週六",units:"毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年",tokens:"日|號",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {tt}{h}:{mm}",full:"{yyyy}年{M}月{d}日 {Weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"點|時,分鐘?,秒",ampm:"上午,下午",modifiers:[{name:"day",src:"前天",value:-2},{name:"day",src:"昨天",value:-1},{name:"day",src:"今天",value:0},{name:"day",src:"明天",value:1},{name:"day",src:"後天",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"後",value:1},{name:"shift",src:"上|去",value:-1},{name:"shift",src:"這",value:0},{name:"shift",src:"下|明",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}年{month?}月?{date?}{0?}","{month}月{date?}{0?}","{date}[日號]"]})}.call(this),function(n){"use strict";function dv(n){if(o(n))r(n.objectMaxDepth)&&(fr.objectMaxDepth=pf(n.objectMaxDepth)?n.objectMaxDepth:NaN),r(n.urlErrorParamsEnabled)&&dt(n.urlErrorParamsEnabled)&&(fr.urlErrorParamsEnabled=n.urlErrorParamsEnabled);else return fr}function pf(n){return nt(n)&&n>0}function l(n,t){t=t||Error;var i="https://errors.angularjs.org/1.7.8/",r=i.replace(".","\\.")+"[\\s\\S]*",u=new RegExp(r,"g");return function(){var s=arguments[0],h=arguments[1],f="["+(n?n+":":"")+s+"] ",e=vr(arguments,2).map(function(n){return eh(n,fr.objectMaxDepth)}),o,r;if(f+=h.replace(/\{\d+\}/g,function(n){var t=+n.slice(1,-1);return t<e.length?e[t].replace(u,""):n}),f+="\n"+i+(n?n+"/":"")+s,fr.urlErrorParamsEnabled)for(r=0,o="?";r<e.length;r++,o="&")f+=o+"p"+r+"="+encodeURIComponent(e[r]);return new t(f)}}function ti(n){if(n==null||sr(n))return!1;if(c(n)||h(n)||f&&n instanceof f)return!0;var t="length"in Object(n)&&n.length;return nt(t)&&(t>=0&&t-1 in n||typeof n.item=="function")}function t(n,i,r){var u,f,o;if(n)if(e(n))for(u in n)u!=="prototype"&&u!=="length"&&u!=="name"&&n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else if(c(n)||ti(n))for(o=typeof n!="object",u=0,f=n.length;u<f;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(ws(n))for(u in n)i.call(r,n[u],u,n);else if(typeof n.hasOwnProperty=="function")for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)lt.call(n,u)&&i.call(r,n[u],u,n);return n}function ys(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function bf(n){return function(t,i){n(i,t)}}function hu(){return++ty}function ps(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function kf(n,t,i){for(var f,l,s,a,u,r,v=n.$$hashKey,h=0,y=t.length;h<y;++h)if(f=t[h],o(f)||e(f))for(l=Object.keys(f),s=0,a=l.length;s<a;s++)u=l[s],r=f[u],i&&o(r)?st(r)?n[u]=new Date(r.valueOf()):or(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):ie(r)?n[u]=r.clone():(o(n[u])||(n[u]=c(r)?[]:{}),kf(n[u],[r],!0)):n[u]=r;return ps(n,v),n}function v(n){return kf(n,ki.call(arguments,1),!1)}function iy(n){return kf(n,ki.call(arguments,1),!0)}function ft(n){return parseInt(n,10)}function df(n,t){return v(Object.create(n),t)}function s(){}function oi(n){return n}function ot(n){return function(){return n}}function gf(n){return e(n.toString)&&n.toString!==rt}function u(n){return typeof n=="undefined"}function r(n){return typeof n!="undefined"}function o(n){return n!==null&&typeof n=="object"}function ws(n){return n!==null&&typeof n=="object"&&!vs(n)}function h(n){return typeof n=="string"}function nt(n){return typeof n=="number"}function st(n){return rt.call(n)==="[object Date]"}function c(n){return Array.isArray(n)||n instanceof Array}function ne(n){var t=rt.call(n);switch(t){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return n instanceof Error}}function e(n){return typeof n=="function"}function or(n){return rt.call(n)==="[object RegExp]"}function sr(n){return n&&n.window===n}function hr(n){return n&&n.$evalAsync&&n.$watch}function ry(n){return rt.call(n)==="[object File]"}function uy(n){return rt.call(n)==="[object FormData]"}function fy(n){return rt.call(n)==="[object Blob]"}function dt(n){return typeof n=="boolean"}function cu(n){return n&&e(n.then)}function ey(n){return n&&nt(n.length)&&bs.test(rt.call(n))}function oy(n){return rt.call(n)==="[object ArrayBuffer]"}function ie(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function sy(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function at(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function re(n,t){return Array.prototype.indexOf.call(n,t)!==-1}function cr(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function si(n,i,r){function h(n,t,i){var e,r,f,o;if(i--,i<0)return"...";if(e=t.$$hashKey,c(n))for(f=0,o=n.length;f<o;f++)t.push(u(n[f],i));else if(ws(n))for(r in n)t[r]=u(n[r],i);else if(n&&typeof n.hasOwnProperty=="function")for(r in n)n.hasOwnProperty(r)&&(t[r]=u(n[r],i));else for(r in n)lt.call(n,r)&&(t[r]=u(n[r],i));return ps(t,e),t}function u(n,t){var r,u,i;if(!o(n))return n;if(r=f.indexOf(n),r!==-1)return s[r];if(sr(n)||hr(n))throw ei("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return u=!1,i=l(n),i===undefined&&(i=c(n)?[]:Object.create(vs(n)),u=!0),f.push(n),s.push(i),u?h(n,i,t):i}function l(n){var t,i;switch(rt.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(u(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":return n.slice?n.slice(0):(t=new ArrayBuffer(n.byteLength),new Uint8Array(t).set(new Uint8Array(n)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return i=new RegExp(n.source,n.toString().match(/[^/]*$/)[0]),i.lastIndex=n.lastIndex,i;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(e(n.cloneNode))return n.cloneNode(!0)}var f=[],s=[];if(r=pf(r)?r:NaN,i){if(ey(i)||oy(i))throw ei("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw ei("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){t!=="$$hashKey"&&delete i[t]}),f.push(n),s.push(i),h(n,i,r)}return u(n,r)}function ue(n,t){return n===t||n!==n&&t!==t}function vt(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var f=typeof n,s=typeof t,o,i,u;if(f===s&&f==="object")if(c(n)){if(!c(t))return!1;if((o=n.length)===t.length){for(i=0;i<o;i++)if(!vt(n[i],t[i]))return!1;return!0}}else{if(st(n))return st(t)?ue(n.getTime(),t.getTime()):!1;if(or(n))return or(t)?n.toString()===t.toString():!1;if(hr(n)||hr(t)||sr(n)||sr(t)||c(t)||st(t)||or(t))return!1;u=p();for(i in n)if(i.charAt(0)!=="$"&&!e(n[i])){if(!vt(n[i],t[i]))return!1;u[i]=!0}for(i in t)if(!(i in u)&&i.charAt(0)!=="$"&&r(t[i])&&!e(t[i]))return!1;return!0}return!1}function ar(n,t,i){return n.concat(ki.call(t,i))}function vr(n,t){return ki.call(n,t||0)}function di(n,t){var i=arguments.length>2?vr(arguments,2):[];return!e(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,ar(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ks(t,i){var r=i;return typeof t=="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"?r=undefined:sr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":hr(i)&&(r="$SCOPE"),r}function yr(n,t){return u(n)?undefined:(nt(t)||(t=t?2:null),JSON.stringify(n,ks,t))}function ds(n){return h(n)?JSON.parse(n):n}function fe(n,t){n=n.replace(gs,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return it(i)?t:i}function nh(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function ee(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=fe(t,r);return nh(n,i*(u-r))}function kt(n){n=f(n).clone().empty();var t=f("<div><\/div>").append(n).html();try{return n[0].nodeType===ri?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function th(n){try{return decodeURIComponent(n)}catch(t){}}function oe(n){var i={};return t((n||"").split("&"),function(n){var f,t,u;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),f!==-1&&(t=n.substring(0,f),u=n.substring(f+1)),t=th(t),r(t)&&(u=r(u)?th(u):!0,lt.call(i,t)?c(i[t])?i[t].push(u):i[t]=[i[t],u]:i[t]=u))}),i}function hy(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ht(r,!0)+(n===!0?"":"="+ht(n,!0)))}):i.push(ht(r,!0)+(n===!0?"":"="+ht(n,!0)))}),i.length?i.join("&"):""}function se(n){return ht(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ht(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function cy(n,t){for(var i,u=hi.length,r=0;r<u;++r)if(i=hi[r]+t,h(i=n.getAttribute(i)))return i;return null}function ly(t){var i=t.currentScript,r,u;return i?(i instanceof n.HTMLScriptElement||i instanceof n.SVGScriptElement)?(r=i.attributes,u=[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")],u.every(function(n){if(!n)return!0;if(!n.value)return!1;var i=t.createElement("a");if(i.href=n.value,t.location.origin===i.origin)return!0;switch(i.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}function ay(i,r){var u,f,e={};if(t(hi,function(n){var t=n+"app";!u&&i.hasAttribute&&i.hasAttribute(t)&&(u=i,f=i.getAttribute(t))}),t(hi,function(n){var r=n+"app",t;!u&&(t=i.querySelector("["+r.replace(":","\\:")+"]"))&&(u=t,f=t.getAttribute(r))}),u){if(!ih){n.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");return}e.strictDi=cy(u,"strict-di")!==null;r(u,f?[f]:[],e)}}function rh(i,r,u){var s;o(u)||(u={});s={strictDi:!1};u=v(s,u);var h=function(){var e,t;if(i=f(i),i.injector()){e=i[0]===n.document?"document":kt(i);throw ei("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=kr(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&c.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(c,"")),n&&!l.test(n.name))return h();n.name=n.name.replace(l,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),h()};e(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function vy(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function yy(n){var t=ut.element(n).injector();if(!t)throw ei("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fh(n,t){return t=t||"_",n.replace(uh,function(n,i){return(i?t:"")+n.toLowerCase()})}function py(){var i,t;he||(t=lr(),er=u(t)?n.jQuery:t?n[t]:undefined,er&&er.fn.on?(f=er,v(er.fn,{scope:li.scope,isolateScope:li.isolateScope,controller:li.controller,injector:li.injector,inheritedData:li.inheritedData})):f=k,i=f.cleanData,f.cleanData=function(n){for(var t,u=0,r;(r=n[u])!=null;u++)t=(f._data(r)||{}).events,t&&t.$destroy&&f(r).triggerHandler("$destroy");i(n)},ut.element=f,he=!0)}function pr(n,t,i){if(!n)throw ei("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function lu(n,t,i){return i&&c(n)&&(n=n[n.length-1]),pr(e(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function gi(n,t){if(n==="hasOwnProperty")throw ei("badname","hasOwnProperty is not a valid {0} name",t);}function wy(n,t,i){var r;if(!t)return n;var u=t.split("."),f,o=n,s=u.length;for(r=0;r<s;r++)f=u[r],n&&(n=(o=n)[f]);return!i&&e(n)?di(o,n):n}function au(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=f(ki.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function ce(n){if(n==null)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=!gf(n)||c(n)||st(n)?yr(n):n.toString()}return n}function ky(n){function t(n,t,i){return n[t]||(n[t]=i())}var f=l("$injector"),u=l("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||l,t(i,"module",function(){var n={};return function(i,s,h){var c={},l=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return l(i,"module"),s&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function v(n,i,r,u){return u||(u=t),function(){return u[r||"push"]([n,i,arguments]),a}}function n(n,r,u){return u||(u=t),function(t,f){return f&&e(f)&&(f.$$moduleName=i),u.push([n,r,arguments]),a}}if(!s)throw f("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],l=[],y=[],p=v("$injector","invoke","push",l),a={_invokeQueue:t,_configBlocks:l,_runBlocks:y,info:function(n){if(r(n)){if(!o(n))throw u("aobj","Argument '{0}' must be an object","value");return c=n,this}return c},requires:s,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:v("$provide","value"),constant:v("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(n){return y.push(n),this}};return h&&p(h),a})}})}function yt(n,t){var i,u,r;if(c(n))for(t=t||[],i=0,u=n.length;i<u;i++)t[i]=n[i];else if(o(n)){t=t||{};for(r in n)r.charAt(0)==="$"&&r.charAt(1)==="$"||(t[r]=n[r])}return t||n}function dy(n,t){var i=[];return pf(t)&&(n=ut.copy(n,null,t)),JSON.stringify(n,function(n,t){if(t=ks(n,t),o(t)){if(i.indexOf(t)>=0)return"...";i.push(t)}return t})}function eh(n,t){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):u(n)?"undefined":typeof n!="string"?dy(n,t):n}function gy(i){v(i,{errorHandlingConfig:dv,bootstrap:rh,copy:si,extend:v,merge:iy,equals:vt,element:f,forEach:t,injector:kr,noop:s,bind:di,toJson:yr,fromJson:ds,identity:oi,isUndefined:u,isDefined:r,isString:h,isFunction:e,isObject:o,isNumber:nt,isElement:ie,isArray:c,version:oh,isDate:st,callbacks:{$$counter:0},getTestability:yy,reloadWithDebugInfo:vy,$$minErr:l,$$csp:ii,$$encodeUriSegment:se,$$encodeUriQuery:ht,$$lowercase:a,$$stringify:ce,$$uppercase:su});wf=ky(n);wf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:kk});n.provider("$compile",uc).directive({a:ea,input:nv,textarea:nv,form:og,script:ptt,select:ktt,option:dtt,ngBind:fn,ngBindHtml:on,ngBindTemplate:en,ngClass:hn,ngClassEven:ln,ngClassOdd:cn,ngCloak:an,ngController:vn,ngForm:sg,ngHide:stt,ngIf:pn,ngInclude:wn,ngInit:kn,ngNonBindable:ntt,ngPluralize:utt,ngRef:ftt,ngRepeat:ett,ngShow:ott,ngStyle:htt,ngSwitch:ctt,ngSwitchWhen:ltt,ngSwitchDefault:att,ngOptions:rtt,ngTransclude:ytt,ngModel:ov,ngList:dn,ngChange:sn,pattern:pv,ngPattern:pv,required:yv,ngRequired:yv,minlength:bv,ngMinlength:bv,maxlength:wv,ngMaxlength:wv,ngValue:un,ngModelOptions:hv}).directive({ngInclude:bn,input:tn}).directive(ru).directive(tv);n.provider({$anchorScroll:uw,$animate:cw,$animateCss:vw,$$animateJs:sw,$$animateQueue:hw,$$AnimateRunner:aw,$$animateAsyncRun:lw,$browser:bw,$cacheFactory:kw,$controller:tb,$document:ib,$$isDocumentHidden:rb,$exceptionHandler:ub,$filter:pl,$$forceReflow:fb,$interpolate:wb,$interval:bb,$$intervalFactory:kb,$http:ab,$httpParamSerializer:hb,$httpParamSerializerJQLike:cb,$httpBackend:yb,$xhrFactory:vb,$jsonpCallbacks:db,$location:ek,$log:ok,$parse:vk,$rootScope:bk,$q:yk,$$q:pk,$sce:td,$sceDelegate:nd,$sniffer:id,$$taskTrackerFactory:rd,$templateCache:dw,$templateRequest:fd,$$testability:ed,$timeout:od,$window:ad,$$rAF:wk,$$jqLite:wp,$$Map:bp,$$cookieReader:vd})}]).info({angularVersion:"1.7.8"})}function np(){return++sh}function rp(n){return yu(n.replace(ip,"ms-"))}function hh(n,t){return t.toUpperCase()}function yu(n){return n.replace(tp,hh)}function ye(n){return!fp.test(n)}function pe(n){var t=n.nodeType;return t===gt||!t||t===le}function sp(n){for(var t in ci[n.ng339])return!0;return!1}function ch(n,i){var r,o,f,u=i.createDocumentFragment(),e=[],s;if(ye(n))e.push(i.createTextNode(n));else{for(r=u.appendChild(i.createElement("div")),o=(ep.exec(n)||["",""])[1].toLowerCase(),f=pt[o]||pt._default,r.innerHTML=f[1]+n.replace(op,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=ar(e,r.childNodes);r=u.firstChild;r.textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function hp(t,i){i=i||n.document;var r;return(r=up.exec(t))?[i.createElement(r[1])]:(r=ch(t,i))?r.childNodes:[]}function cp(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function k(n){if(n instanceof k)return n;var t;if(h(n)&&(n=y(n),t=!0),!(this instanceof k)){if(t&&n.charAt(0)!=="<")throw ve("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new k(n)}t?de(this,hp(n)):e(n)?bh(n):de(this,n)}function we(n){return n.cloneNode(!0)}function pu(n,t){!t&&pe(n)&&f.cleanData([n]);n.querySelectorAll&&f.cleanData(n.querySelectorAll("*"))}function ah(n){for(var t in n)return!1;return!0}function vh(n){var i=n.ng339,t=i&&ci[i],r=t&&t.events,u=t&&t.data;(!u||ah(u))&&(!r||ah(r))&&(delete ci[i],n.ng339=undefined)}function yh(n,i,u,f){var h;if(r(f))throw ve("offargs","jqLite#off() does not support the `selector` argument");var e=wu(n),o=e&&e.events,s=e&&e.handle;if(s){if(i)h=function(t){var i=o[t];r(u)&&cr(i||[],u);r(u)&&i&&i.length>0||(n.removeEventListener(t,s),delete o[t])},t(i.split(" "),function(n){h(n);vu[n]&&h(vu[n])});else for(i in o)i!=="$destroy"&&n.removeEventListener(i,s),delete o[i];vh(n)}}function be(n,t){var r=n.ng339,i=r&&ci[r];i&&(t?delete i.data[t]:i.data={},vh(n))}function wu(n,t){var i=n.ng339,r=i&&ci[i];return t&&!r&&(n.ng339=i=np(),r=ci[i]={events:{},data:{},handle:undefined}),r}function ke(n,t,i){if(pe(n)){var f,e=r(i),s=!e&&t&&!o(t),c=!t,h=wu(n,!s),u=h&&h.data;if(e)u[yu(t)]=i;else{if(c)return u;if(s)return u&&u[yu(t)];for(f in t)u[yu(f)]=t[f]}}}function bu(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function ku(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=y(n);r=r.replace(" "+n+" "," ")});r!==u&&n.setAttribute("class",y(r))}}function du(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=y(n);r.indexOf(" "+n+" ")===-1&&(r+=n+" ")});r!==u&&n.setAttribute("class",y(r))}}function de(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,typeof i=="number"&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ph(n,t){return gu(n,"$"+(t||"ngController")+"Controller")}function gu(n,t,i){var e,u,o;for(n.nodeType===le&&(n=n.documentElement),e=c(t)?t:[t];n;){for(u=0,o=e.length;u<o;u++)if(r(i=f.data(n,e[u])))return i;n=n.parentNode||n.nodeType===ae&&n.host}}function wh(n){for(pu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function nf(n,t){t||pu(n);var i=n.parentNode;i&&i.removeChild(n)}function lp(t,i){if(i=i||n,i.document.readyState==="complete")i.setTimeout(t);else f(i).on("load",t)}function bh(t){function i(){n.document.removeEventListener("DOMContentLoaded",i);n.removeEventListener("load",i);t()}n.document.readyState==="complete"?n.setTimeout(t):(n.document.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i))}function kh(n,t){var i=br[t.toLowerCase()];return i&&ge[at(n)]&&i}function ap(n){return no[n]}function vp(n,t){var i=function(i,r){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[r||i.type],e=f?f.length:0,e)for(u(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return i.immediatePropagationStopped===!0},h=f.specialHandlerWrapper||yp,e>1&&(f=yt(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function yp(n,t,i){i.call(n,t)}function pp(n,t,i){var r=t.relatedTarget;r&&(r===n||lh.call(n,r))||i.call(n,t)}function wp(){this.$get=function(){return v(k,{hasClass:function(n,t){return n.attr&&(n=n[0]),bu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),du(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ku(n,t)}})}}function nr(n,t){var r=n&&n.$$hashKey,i;return r?(typeof r=="function"&&(r=n.$$hashKey()),r):(i=typeof n,i==="function"||i==="object"&&n!==null?n.$$hashKey=i+":"+(t||hu)():i+":"+n)}function gh(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function nc(n){return Function.prototype.toString.call(n)}function tc(n){var t=nc(n).replace(tw,"");return t.match(kp)||t.match(dp)}function iw(n){var t=tc(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function rw(n,i,r){var u,e,f;if(typeof n=="function"){if(!(u=n.$inject)){if(u=[],n.length){if(i){h(r)&&r||(r=n.name||iw(n));throw ai("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);}e=tc(n);t(e[1].split(gp),function(n){n.replace(nw,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(f=n.length-1,lu(n[f],"fn"),u=n.slice(0,f)):lu(n,"fn",!0);return u}function kr(n,i){function v(n){return function(i,r){if(o(i))t(i,bf(n));else return n(i,r)}}function tt(n,t){if(gi(n,"service"),(e(t)||c(t))&&(t=f.instantiate(t)),!t.$get)throw ai("pget","Provider '{0}' must define $get factory method.",n);return s[n+l]=t}function rt(n,t){return function(){var i=r.invoke(t,this);if(u(i))throw ai("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function b(n,t,i){return tt(n,{$get:i!==!1?rt(n,t):t})}function ft(n,t){return b(n,["$injector",function(n){return n.instantiate(t)}])}function et(n,t){return b(n,ot(t),!1)}function st(n,t){gi(n,"constant");s[n]=t;g[n]=t}function ht(n,t){var i=f.get(n+l),u=i.$get;i.$get=function(){var n=r.invoke(u,i);return r.invoke(t,null,{$delegate:n})}}function k(n){pr(u(n)||c(n),"modulesToLoad","not an array");var o=[],i;return t(n,function(n){function u(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=f.get(i[0]),r[i[1]].apply(r,i[2])}if(!d.get(n)){d.set(n,!0);try{h(n)?(i=wf(n),r.modules[n]=i,o=o.concat(k(i.requires)).concat(i._runBlocks),u(i._invokeQueue),u(i._configBlocks)):e(n)?o.push(f.invoke(n)):c(n)?o.push(f.invoke(n)):lu(n,"module")}catch(t){c(n)&&(n=n[n.length-1]);t.message&&t.stack&&t.stack.indexOf(t.message)===-1&&(t=t.message+"\n"+t.stack);throw ai("modulerr","Failed to instantiate module {0} due to:\n{1}",n,t.stack||t.message||t);}}}),o}function it(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw ai("cdep","Circular dependency found: {0}",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r),n[i]}catch(u){n[i]===y&&delete n[i];throw u;}finally{a.shift()}}function u(n,t,u){for(var f,o=[],s=kr.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],typeof f!="string")throw ai("itkn","Incorrect injection token! Expected service name as string, got {0}",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}function f(n){if(bt||typeof n!="function")return!1;var t=n.$$ngIsClass;return dt(t)||(t=n.$$ngIsClass=/^class\b/.test(nc(n))),t}function e(n,t,i,r){typeof i=="string"&&(r=i,i=null);var e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f(n)?(e.unshift(null),new(Function.prototype.bind.apply(n,e))):n.apply(t,e)}function o(n,t,i){var f=c(n)?n[n.length-1]:n,r=u(n,t,i);return r.unshift(null),new(Function.prototype.bind.apply(f,r))}return{invoke:e,instantiate:o,get:r,annotate:kr.$$annotate,has:function(t){return s.hasOwnProperty(t+l)||n.hasOwnProperty(t)}}}var nt;i=i===!0;var y={},l="Provider",a=[],d=new tf,s={$provide:{provider:v(tt),factory:v(b),service:v(ft),value:v(et),constant:v(st),decorator:ht}},f=s.$injector=it(s,function(n,t){ut.isString(t)&&a.push(t);throw ai("unpr","Unknown provider: {0}",a.join(" <- "));}),g={},w=it(g,function(n,t){var i=f.get(n+l,t);return r.invoke(i.$get,i,undefined,n)}),r=w;return s["$injector"+l]={$get:ot(w)},r.modules=f.modules=p(),nt=k(n),r=w.get("$injector"),r.strictDi=i,t(nt,function(n){n&&r.invoke(n)}),r.loadNewModules=function(n){t(k(n),function(n){n&&r.invoke(n)})},r}function uw(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if(at(n)==="a")return t=n,!0}),t}function c(){var n=f.yOffset,i,r;return e(n)?n=n():ie(n)?(i=n[0],r=t.getComputedStyle(i),n=r.position!=="fixed"?0:i.getBoundingClientRect().bottom):nt(n)||(n=0),n}function u(n){var i,r;n?(n.scrollIntoView(),i=c(),i&&(r=n.getBoundingClientRect().top,t.scrollBy(0,r-i))):t.scrollTo(0,0)}function f(n){n=h(n)?n:nt(n)?n.toString():i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):n==="top"&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){(n!==t||n!=="")&&lp(function(){r.$evalAsync(f)})}),f}]}function dr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function ew(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i.nodeType===fw)return i}function ow(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function vi(n){return o(n)?n:{}}function yw(n){var t=n.indexOf("#");return t===-1?"":n.substr(t)}function pw(n){return n.replace(/#$/,"")}function ww(n,i,r,e,o){function nt(){y=null;it()}function tt(){c=ot();c=u(c)?null:c;vt(c,k)&&(c=k);k=c;w=c}function it(){var n=w;(tt(),v!==h.url()||n!==c)&&(v=h.url(),w=c,t(d,function(n){n(h.url(),c)}))}var h=this,l=n.location,b=n.history,rt=n.setTimeout,ut=n.clearTimeout,p={},a=o(r),d,g,k;h.isMock=!1;h.$$completeOutstandingRequest=a.completeTask;h.$$incOutstandingRequestCount=a.incTaskCount;h.notifyWhenNoOutstandingRequests=a.notifyWhenNoPendingTasks;var c,w,v=l.href,ft=i.find("base"),y=null,ot=e.history?function(){try{return b.state}catch(n){}}:s;tt();h.url=function(t,i,r){var o,f;return u(r)&&(r=null),l!==n.location&&(l=n.location),b!==n.history&&(b=n.history),t?(o=w===r,t=et(t).href,v===t&&(!e.history||o))?h:(f=v&&yi(v)===yi(t),v=t,w=r,!e.history||f&&o?(f||(y=t),i?l.replace(t):f?l.hash=yw(t):l.href=t,l.href!==t&&(y=t)):(b[i?"replaceState":"pushState"](r,"",t),tt()),y&&(y=t),h):pw(y||l.href)};h.state=function(){return c};d=[];g=!1;k=null;h.onUrlChange=function(t){if(!g){if(e.history)f(n).on("popstate",nt);f(n).on("hashchange",nt);g=!0}return d.push(t),t};h.$$applicationDestroyed=function(){f(n).off("hashchange popstate",nt)};h.$$checkUrlChange=it;h.baseHref=function(){var n=ft.attr("href");return n?n.replace(/^(https?:)?\/\/[^/]*/,""):""};h.defer=function(n,t,i){var r;return t=t||0,i=i||a.DEFAULT_TASK_TYPE,a.incTaskCount(i),r=rt(function(){delete p[r];a.completeTask(n,i)},t),p[r]=i,r};h.defer.cancel=function(n){if(p.hasOwnProperty(n)){var t=p[n];return delete p[n],ut(n),a.completeTask(s,t),!0}return!1}}function bw(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(n,t,i,r,u){return new ww(n,r,t,i,u)}]}function kw(){this.$get=function(){function i(t,i){function y(n){n!==o&&(r?r===n&&(r=n.n):r=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!==t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=v({},i,{id:t}),f=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,r=null;return n[t]={put:function(n,t){if(!u(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});y(i)}return n in f||s++,f[n]=t,s>h&&this.remove(r.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;y(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t===o&&(o=t.p);t===r&&(r=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=r=null},destroy:function(){f=null;a=null;e=null;delete n[t]},info:function(){return v({},a,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function dw(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function gw(){}function uc(i,l){function st(n,i,r){var f=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,u=p();return t(n,function(n,t){if(n=n.trim(),n in et){u[t]=et[n];return}var e=n.match(f);if(!e)throw w("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:e[2]==="*",optional:e[3]==="?",attrName:e[4]||t};e[4]&&(et[n]=u[t])}),u}function ti(n,t){var i={isolateScope:null,bindToController:null};if(o(n.scope)&&(n.bindToController===!0?(i.bindToController=st(n.scope,t,!0),i.isolateScope={}):i.isolateScope=st(n.scope,t,!1)),o(n.bindToController)&&(i.bindToController=st(n.bindToController,t,!0)),i.bindToController&&!n.controller)throw w("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return i}function ii(n){var t=n.charAt(0);if(!t||t!==a(t))throw w("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw w("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}function ui(n){var i=n.require||n.controller&&n.name;return!c(i)&&o(i)&&t(i,function(n,t){var r=n.match(ht),u=n.substring(r[0].length);u||(i[t]=r[0]+t)}),i}function fi(n,t){if(n&&!(h(n)&&/[EACM]/.test(n)))throw w("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",n,t);return n||"EA"}var g={},ft="Directive",yt=/^\s*directive:\s*([\w-]+)\s+(.*)$/,pt=/(([\w-]+)(?::([^;]+))?;?)/,ni=sy("ngSrc,ngSrcset,src,srcset"),ht=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ct=/^(on[a-z]+|formaction)$/,et=p(),k,tt,nt,it,ut,d;this.directive=function ei(n,r){return pr(n,"name"),gi(n,"directive"),h(n)?(ii(n),pr(r,"directiveFactory"),g.hasOwnProperty(n)||(g[n]=[],i.factory(n+ft,["$injector","$exceptionHandler",function(i,r){var u=[];return t(g[n],function(t,f){try{var o=i.invoke(t);e(o)?o={compile:ot(o)}:!o.compile&&o.link&&(o.compile=ot(o.link));o.priority=o.priority||0;o.index=f;o.name=o.name||n;o.require=ui(o);o.restrict=fi(o.restrict,n);o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),g[n].push(r)):t(n,bf(ei)),this};this.component=function si(n,i){function u(n){function u(t){return e(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=!i.template&&!i.templateUrl?"":i.template,f={controller:r,controllerAs:nb(i.controller)||i.controllerAs||"$ctrl",template:u(o),templateUrl:u(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){t.charAt(0)==="$"&&(f[t]=n)}),f}if(!h(n))return t(n,bf(di(this,si))),this;var r=i.controller||function(){};return t(i,function(n,t){t.charAt(0)==="$"&&(u[t]=n,e(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return r(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};k=!0;this.debugInfoEnabled=function(n){return r(n)?(k=n,this):k};tt=!1;this.strictComponentBindingsEnabled=function(n){return r(n)?(tt=n,this):tt};nt=10;this.onChangesTtl=function(n){return arguments.length?(nt=n,this):nt};it=!0;this.commentDirectivesEnabled=function(n){return arguments.length?(it=n,this):it};ut=!0;this.cssClassDirectivesEnabled=function(n){return arguments.length?(ut=n,this):ut};d=p();this.addPropertySecurityContext=function(n,t,i){var r=n.toLowerCase()+"|"+t.toLowerCase();if(r in d&&d[r]!==i)throw w("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",n,t,d[r],i);return d[r]=i,this},function(){function n(n,i){t(i,function(t){d[t.toLowerCase()]=n})}n(b.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]);n(b.CSS,["*|style"]);n(b.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]);n(b.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]);n(b.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}();this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(i,r,l,b,et,ot,st,ii,ui){function iu(){try{if(!--ir){ei=undefined;throw w("infchng","{0} $onChanges() iterations reached. Aborting!\n",nt);}st.$apply(function(){for(var n=0,t=ei.length;n<t;++n)try{ei[n]()}catch(i){l(i)}ei=undefined})}finally{ir++}}function rr(n,t){var r,e,f;if(!n)return n;if(!h(n))throw w("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,n.toString());var i="",o=y(n),s=/\s/.test(o)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,u=o.split(s),c=Math.floor(u.length/2);for(r=0;r<c;r++)e=r*2,i+=ii.getTrustedMediaUrl(y(u[e])),i+=" "+y(u[e+1]);return f=y(u[r*2]).split(/\s/),i+=ii.getTrustedMediaUrl(y(f[0])),f.length===2&&(i+=" "+y(f[1])),i}function pi(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function ru(n,t,i){tr.innerHTML="<span "+t+">";var u=tr.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function wi(n,t){try{n.addClass(t)}catch(i){}}function fi(n,t,i,r,u){var o,e;return n instanceof f||(n=f(n)),o=bi(n,t,n,i,r,u),fi.$$addScopeClass(n),e=null,function(t,i,r){var s,l;if(!n)throw w("multilink","This element has already been linked.");pr(t,"scope");u&&u.needsNewScope&&(t=t.$parent.$new());r=r||{};var h=r.parentBoundTranscludeFn,c=r.transcludeControllers,a=r.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),e||(e=eu(a)),s=e!=="html"?f(nr(e,f("<div><\/div>").append(n).html())):i?li.clone.call(n):n,c)for(l in c)s.data("$"+l+"Controller",c[l].instance);return fi.$$addScopeInfo(s,t),i&&i(s,t),o&&o(t,s,s,h),i||(n=o=null),s}}function eu(n){var t=n&&n[0];return t?at(t)!=="foreignobject"&&rt.call(t).match(/SVG/)?"svg":"html":"html"}function bi(n,t,i,r,u,e){function k(n,i,r,u){var o,s,c,l,e,y,v,w,a,b;if(p)for(b=i.length,a=new Array(b),e=0;e<h.length;e+=3)v=h[e],a[v]=i[v];else a=i;for(e=0,y=h.length;e<y;)c=a[h[e++]],o=h[e++],s=h[e++],o?(o.scope?(l=n.$new(),fi.$$addScopeInfo(f(c),l)):l=n,w=o.transcludeOnThisElement?hi(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?hi(n,t):null,o(s,l,c,r,w)):s&&s(n,c.childNodes,undefined,u)}for(var h=[],b=c(n)||n instanceof f,l,a,o,v,y,w,p,s=0;s<n.length;s++)l=new pi,bt===11&&ou(n,s,b),a=ki(n[s],[],l,s===0?r:undefined,u),o=a.length?lr(a,n[s],l,t,i,null,[],[],e):null,o&&o.scope&&fi.$$addScopeClass(l.$$element),y=o&&o.terminal||!(v=n[s].childNodes)||!v.length?null:bi(v,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||y)&&(h.push(s,o,y),w=!0,p=p||o),e=null;return w?k:null}function ou(n,t,i){var u=n[t],f=u.parentNode,r;if(u.nodeType===ri)for(;;){if(r=f?u.nextSibling:n[t+1],!r||r.nodeType!==ri)break;u.nodeValue=u.nodeValue+r.nodeValue;r.parentNode&&r.parentNode.removeChild(r);i&&r===n[t+1]&&n.splice(t+1,1)}}function hi(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p();for(var r in t.$$slots)f[r]=t.$$slots[r]?hi(n,t.$$slots[r],i):null;return u}function ki(n,t,i,r,u){var ut=n.nodeType,g=i.$attr,c,p,s;switch(ut){case gt:p=at(n);ai(t,wt(p),"E",r,u);for(var a,e,f,v,l,w=n.attributes,b=0,ft=w&&w.length;b<ft;b++){var nt=!1,tt=!1,k=!1,d=!1,it=!1,rt;a=w[b];e=a.name;v=a.value;f=wt(e.toLowerCase());(l=f.match(uu))?(k=l[1]==="Attr",d=l[1]==="Prop",it=l[1]==="On",e=e.replace(to,"").toLowerCase().substr(4+l[1].length).replace(/_(.)/g,function(n,t){return t.toUpperCase()})):(rt=f.match(fu))&&cu(rt[1])&&(nt=e,tt=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6));d||it?(i[f]=v,g[f]=a.name,d?bu(n,t,f,e):ku(t,f,e)):(f=wt(e.toLowerCase()),g[f]=e,(k||!i.hasOwnProperty(f))&&(i[f]=v,kh(n,f)&&(i[f]=!0)),du(n,t,v,f,k),ai(t,f,"A",r,u,nt,tt))}if(p==="input"&&n.getAttribute("type")==="hidden"&&n.setAttribute("autocomplete","off"),!tu)break;if(s=n.className,o(s)&&(s=s.animVal),h(s)&&s!=="")while(c=pt.exec(s))f=wt(c[2]),ai(t,f,"C",r,u)&&(i[f]=y(c[3])),s=s.substr(c.index+c[0].length);break;case ri:vu(t,n.nodeValue);break;case wr:if(!nu)break;su(n,t,i,r,u)}return t.sort(au),t}function su(n,t,i,r,u){var f,e;try{f=yt.exec(n.nodeValue);f&&(e=wt(f[1]),ai(t,e,"M",r,u)&&(i[e]=y(f[2])))}catch(o){}}function or(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw w("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType===gt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return f(r)}function sr(n,t,i){return function(r,u,f,e,o){return u=or(u[0],t,i),n(r,u,f,e,o)}}function gi(n,t,i,r,u,f){var e;return n?fi(t,i,r,u,f):function(){return e||(e=fi(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function lr(i,r,s,h,a,b,k,d,g){function fr(n,t,i,r){n&&(i&&(n=sr(n,i,r)),n.require=nt.require,n.directiveName=st,(tt===nt||nt.$$isolateScope)&&(n=br(n,{isolateScope:!0})),k.push(n));t&&(i&&(t=sr(t,i,r)),t.require=nt.require,t.directiveName=st,(tt===nt||nt.$$isolateScope)&&(t=br(t,{isolateScope:!0})),d.push(t))}function lt(n,i,h,a,y){function wt(n,t,i,r){var e,f;if(hr(n)||(r=i,i=t,t=n,n=undefined),ti&&(e=nt),i||(i=ti?p.parent():p),r){if(f=y.$$slots[r],f)return f(n,t,e,i,ht);if(u(f))throw w("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,kt(p));}else return y(n,t,e,i,ht)}var it,yt,b,g,et,nt,ut,p,rt,lt,at,ht;r===h?(rt=s,p=s.$$element):(p=f(h),rt=new pi(p,s));et=i;tt?g=i.$new(!0):ft&&(et=i.$parent);y&&(ut=wt,ut.$$boundTransclude=y,ut.isSlotFilled=function(n){return!!y.$$slots[n]});ot&&(nt=hu(p,rt,ut,ot,g,i,tt));tt&&(fi.$$addScopeInfo(p,g,!0,!(ct&&(ct===tt||ct===tt.$$originalDirective))),fi.$$addScopeClass(p,!0),g.$$isolateBindings=tt.$$isolateBindings,lt=dr(i,rt,g,g.$$isolateBindings,tt),lt.removeWatches&&g.$on("$destroy",lt.removeWatches));for(at in nt){var vt=ot[at],st=nt[at],pt=vt.$$bindings.bindToController;st.instance=st();p.data("$"+vt.name+"Controller",st.instance);st.bindingInfo=dr(et,rt,st.instance,pt,vt)}for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&o(i)&&v(nt[t].instance,ci(t,i,p,nt))}),t(nt,function(n){var t=n.instance;if(e(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){l(i)}if(e(t.$onInit))try{t.$onInit()}catch(i){l(i)}e(t.$doCheck)&&(et.$watch(function(){t.$doCheck()}),t.$doCheck());e(t.$onDestroy)&&et.$on("$destroy",function(){t.$onDestroy()})}),it=0,yt=k.length;it<yt;it++)b=k[it],kr(b,b.isolateScope?g:i,p,rt,b.require&&ci(b.directiveName,b.require,p,nt),ut);for(ht=i,tt&&(tt.template||tt.templateUrl===null)&&(ht=g),n&&n(ht,h.childNodes,undefined,y),it=d.length-1;it>=0;it--)b=d[it],kr(b,b.isolateScope?g:i,p,rt,b.require&&ci(b.directiveName,b.require,p,nt),ut);t(nt,function(n){var t=n.instance;e(t.$postLink)&&t.$postLink()})}var ht,ui,dt,ei,pt,tr,et,wi,oi,hi,ir,li;g=g||{};var bt=-Number.MAX_VALUE,ft=g.newScopeDirective,ot=g.controllerDirectives,tt=g.newIsolateScopeDirective,ct=g.templateDirective,ni=g.nonTlbTranscludeDirective,ai=!1,yi=!1,ti=g.hasElementTranscludeDirective,it=s.$$element=f(r),nt,st,ut,ii=b,vt=h,yt,bi=!1,ri=!1,rt;for(ht=0,ui=i.length;ht<ui;ht++){if(nt=i[ht],dt=nt.$$start,ei=nt.$$end,dt&&(it=or(r,dt,ei)),ut=undefined,bt>nt.priority)break;if(rt=nt.scope,rt&&(nt.templateUrl||(o(rt)?(si("new/isolated scope",tt||ft,nt,it),tt=nt):si("new/isolated scope",tt,nt,it)),ft=ft||nt),st=nt.name,!bi&&(nt.replace&&(nt.templateUrl||nt.template)||nt.transclude&&!nt.$$tlb)){for(tr=ht+1;pt=i[tr++];)if(pt.transclude&&!pt.$$tlb||pt.replace&&(pt.templateUrl||pt.template)){ri=!0;break}bi=!0}if(!nt.templateUrl&&nt.controller&&(ot=ot||p(),si("'"+st+"' controller",ot[st],nt,it),ot[st]=nt),rt=nt.transclude,rt)if(ai=!0,nt.$$tlb||(si("transclusion",ni,nt,it),ni=nt),rt==="element")ti=!0,bt=nt.priority,ut=it,it=s.$$element=f(fi.$$createComment(st,s[st])),r=it[0],vi(a,vr(ut),r),vt=gi(ri,ut,h,bt,ii&&ii.name,{nonTlbTranscludeDirective:ni});else{if(et=p(),o(rt)){ut=n.document.createDocumentFragment();wi=p();oi=p();t(rt,function(n,t){var i=n.charAt(0)==="?";n=i?n.substring(1):n;wi[n]=t;et[t]=null;oi[t]=i});t(it.contents(),function(t){var i=wi[wt(at(t))];i?(oi[i]=!0,et[i]=et[i]||n.document.createDocumentFragment(),et[i].appendChild(t)):ut.appendChild(t)});t(oi,function(n,t){if(!n)throw w("reqslot","Required transclusion slot `{0}` was not filled.",t);});for(hi in et)et[hi]&&(ir=f(et[hi].childNodes),et[hi]=gi(ri,ir,h));ut=f(ut.childNodes)}else ut=f(we(r)).contents();it.empty();vt=gi(ri,ut,h,undefined,undefined,{needsNewScope:nt.$$isolateScope||nt.$$newScope});vt.$$slots=et}if(nt.template)if(yi=!0,si("template",ct,nt,it),ct=nt,rt=e(nt.template)?nt.template(it,s):nt.template,rt=er(rt),nt.replace){if(ii=nt,ut=ye(rt)?[]:oc(nr(nt.templateNamespace,y(rt))),r=ut[0],ut.length!==1||r.nodeType!==gt)throw w("tplrt","Template for directive '{0}' must have exactly one root element. {1}",st,"");vi(a,it,r);var rr={$attr:{}},ur=ki(r,[],rr),cr=i.splice(ht+1,i.length-(ht+1));(tt||ft)&&ar(ur,tt,ft);i=i.concat(ur).concat(cr);yr(s,rr);ui=i.length}else it.html(rt);if(nt.templateUrl)yi=!0,si("template",ct,nt,it),ct=nt,nt.replace&&(ii=nt),lt=lu(i.splice(ht,i.length-ht),it,s,a,ai&&vt,k,d,{controllerDirectives:ot,newScopeDirective:ft!==nt&&ft,newIsolateScopeDirective:tt,templateDirective:ct,nonTlbTranscludeDirective:ni}),ui=i.length;else if(nt.compile)try{yt=nt.compile(it,s,vt);li=nt.$$originalDirective||nt;e(yt)?fr(null,di(li,yt),dt,ei):yt&&fr(di(li,yt.pre),di(li,yt.post),dt,ei)}catch(lr){l(lr,kt(it))}nt.terminal&&(lt.terminal=!0,bt=Math.max(bt,nt.priority))}return lt.scope=ft&&ft.scope===!0,lt.transcludeOnThisElement=ai,lt.templateOnThisElement=yi,lt.transclude=vt,g.hasElementTranscludeDirective=ti,lt}function ci(n,i,r,u){var f,v,e,y;if(h(i)){var s=i.match(ht),l=i.substring(s[0].length),a=s[1]||s[3],p=s[2]==="?";if(a==="^^"?r=r.parent():(f=u&&u[l],f=f&&f.instance),f||(v="$"+l+"Controller",f=a==="^^"&&r[0]&&r[0].nodeType===le?null:a?r.inheritedData(v):r.data(v)),!f&&!p)throw w("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,n);}else if(c(i))for(f=[],e=0,y=i.length;e<y;e++)f[e]=ci(n,i[e],r,u);else o(i)&&(f={},t(i,function(t,i){f[i]=ci(n,t,r,u)}));return f||null}function hu(n,t,i,r,u,f,e){var c=p(),l,h;for(l in r){var o=r[l],a={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=o.controller;s==="@"&&(s=t[o.name]);h=ot(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}function ar(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=df(n[r],{$$isolateScope:t,$$newScope:i})}function ai(n,t,r,f,e,s,h){var l,v;if(t===e)return null;if(l=null,g.hasOwnProperty(t))for(var c,y=i.get(t+ft),a=0,p=y.length;a<p;a++)c=y[a],(u(f)||f>c.priority)&&c.restrict.indexOf(r)!==-1&&(s&&(c=df(c,{$$start:s,$$end:h})),c.$$bindings||(v=c.$$bindings=ti(c,c.name),o(v.isolateScope)&&(c.$$isolateBindings=v.isolateScope)),n.push(c),l=c);return l}function cu(n){if(g.hasOwnProperty(n))for(var r,u=i.get(n+ft),t=0,f=u.length;t<f;t++)if(r=u[t],r.multiElement)return!0;return!1}function yr(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){u.charAt(0)!=="$"&&(i[u]&&i[u]!==t&&(t.length?t+=(u==="style"?";":" ")+i[u]:t=i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||i.charAt(0)==="$"||(n[i]=t,i!=="class"&&i!=="style"&&(u[i]=r[i]))})}function lu(n,i,r,u,s,h,c,a){var p=[],k,d,g=i[0],v=n.shift(),tt=df(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),nt=e(v.templateUrl)?v.templateUrl(i,r):v.templateUrl,it=v.templateNamespace;return i.empty(),b(nt).then(function(e){var l,rt,ut,st,ft,ct;if(e=er(e),v.replace){if(ut=ye(e)?[]:oc(nr(it,y(e))),l=ut[0],ut.length!==1||l.nodeType!==gt)throw w("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,nt);rt={$attr:{}};vi(u,i,l);ft=ki(l,[],rt);o(v.scope)&&ar(ft,!0);n=ft.concat(n);yr(r,rt)}else l=g,i.html(e);for(n.unshift(tt),k=lr(n,l,r,s,i,v,h,c,a),t(u,function(n,t){n===l&&(u[t]=i[0])}),d=bi(i[0].childNodes,s);p.length;){var et=p.shift(),ot=p.shift(),lt=p.shift(),ht=p.shift(),b=i[0];et.$$destroyed||(ot!==g&&(ct=ot.className,a.hasElementTranscludeDirective&&v.replace||(b=we(l)),vi(lt,f(ot),b),wi(f(b),ct)),st=k.transcludeOnThisElement?hi(et,k.transclude,ht):ht,k(d,et,b,u,st))}p=null}).catch(function(n){ne(n)&&l(n)}),function(n,t,i,r,u){var f=u;t.$$destroyed||(p?p.push(t,i,r,f):(k.transcludeOnThisElement&&(f=hi(t,k.transclude,u)),k(d,t,i,r,f)))}}function au(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function si(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw w("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,kt(r));}function vu(n,t){var i=r(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&fi.$$addBindingClass(t),function(n,t){var u=t.parent();r||fi.$$addBindingClass(u);fi.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}function nr(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function yu(n,t){return t==="srcdoc"?ii.HTML:t==="src"||t==="ngSrc"?["img","video","audio","source","track"].indexOf(n)===-1?ii.RESOURCE_URL:ii.MEDIA_URL:t==="xlinkHref"?n==="image"?ii.MEDIA_URL:n==="a"?ii.URL:ii.RESOURCE_URL:n==="form"&&t==="action"||n==="base"&&t==="href"||n==="link"&&t==="href"?ii.RESOURCE_URL:n==="a"&&(t==="href"||t==="ngHref")?ii.URL:void 0}function pu(n,t){var i=t.toLowerCase();return d[n+"|"+i]||d["*|"+i]}function wu(n){return rr(ii.valueOf(n),"ng-prop-srcset")}function bu(n,t,i,r){if(ct.test(r))throw w("nodomevents","Property bindings for HTML DOM event properties are disallowed");var u=at(n),e=pu(u,r),f=oi;r==="srcset"&&(u==="img"||u==="source")?f=wu:e&&(f=ii.getTrusted.bind(ii,e));t.push({priority:100,compile:function(n,t){var u=et(t[i]),e=et(t[i],function(n){return ii.valueOf(n)});return{pre:function(n,t){function i(){var i=u(n);t[0][r]=f(i)}i();n.$watch(e,i)}}}})}function ku(n,t,i){n.push(iv(et,st,l,t,i,!1))}function du(n,t,i,u,f){var o=at(n),s=yu(o,u),c=!f,h=ni[u]||f,e=r(i,c,s,h);if(e){if(u==="multiple"&&o==="select")throw w("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",kt(n));if(ct.test(u))throw w("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(n,t,f){var c=f.$$observers||(f.$$observers=p()),o=f[u];(o!==i&&(e=o&&r(o,!0,s,h),i=o),e)&&(f[u]=e(n),(c[u]||(c[u]=[])).$$inter=!0,(f.$$observers&&f.$$observers[u].$$scope||n).$watch(e,function(n,t){u==="class"&&n!==t?f.$updateClass(n,t):f.$set(u,n)}))}}}})}}function vi(t,i,r){var e=i[0],s=i.length,l=e.parentNode,u,a,c;if(t)for(u=0,a=t.length;u<a;u++)if(t[u]===e){t[u++]=r;for(var o=u,h=o+s-1,v=t.length;o<v;o++,h++)h<v?t[o]=t[h]:delete t[o];t.length-=s-1;t.context===e&&(t.context=r);break}for(l&&l.replaceChild(r,e),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(f.hasData(e)&&(f.data(r,f.data(e)),f(e).off("$destroy")),f.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function br(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function kr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){l(e,kt(i))}}function yi(n,t){if(tt)throw w("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",n,t);}function dr(n,i,u,f,o){function v(t,i,r){e(u.$onChanges)&&!ue(i,r)&&(ei||(n.$$postDigest(iu),ei=[]),c||(c={},ei.push(y)),c[t]&&(r=c[t].previousValue),c[t]=new uf(r,i))}function y(){u.$onChanges(c);c=undefined}var l=[],a={},c;return t(f,function(t,f){var e=t.attrName,p=t.optional,it=t.mode,y,c,nt,g,b,k,tt,d;switch(it){case"@":p||lt.call(i,e)||(yi(e,o.name),u[f]=i[e]=undefined);b=i.$observe(e,function(n){if(h(n)||dt(n)){var t=u[f];v(f,n,t);u[f]=n}});i.$$observers[e].$$scope=n;y=i[e];h(y)?u[f]=r(y)(n):dt(y)&&(u[f]=y);a[f]=new uf(rf,u[f]);l.push(b);break;case"=":if(!lt.call(i,e)){if(p)break;yi(e,o.name);i[e]=undefined}if(p&&!i[e])break;c=et(i[e]);g=c.literal?vt:ue;nt=c.assign||function(){y=u[f]=c(n);throw w("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[e],e,o.name);};y=u[f]=c(n);k=function(t){return g(t,u[f])||(g(t,y)?nt(n,t=u[f]):u[f]=t),y=t};k.$stateful=!0;b=t.collection?n.$watchCollection(i[e],k):n.$watch(et(i[e],k),null,c.literal);l.push(b);break;case"<":if(!lt.call(i,e)){if(p)break;yi(e,o.name);i[e]=undefined}if(p&&!i[e])break;c=et(i[e]);tt=c.literal;d=u[f]=c(n);a[f]=new uf(rf,u[f]);b=n[t.collection?"$watchCollection":"$watch"](c,function(n,t){if(t===n){if(t===d||tt&&vt(t,d))return;t=d}v(f,n,t);u[f]=n});l.push(b);break;case"&":if(p||lt.call(i,e)||yi(e,o.name),c=i.hasOwnProperty(e)?et(i[e]):s,c===s&&p)break;u[f]=function(t){return c(n,t)}}}),{initialChanges:a,removeWatches:l.length&&function(){for(var n=0,t=l.length;n<t;++n)l[n]()}}}var gr=/^\w/,tr=n.document.createElement("div"),nu=it,tu=ut,ir=nt,ei;pi.prototype={$normalize:wt,$addClass:function(n){n&&n.length>0&&ui.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&ui.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=ec(n,t),i;r&&r.length&&ui.addClass(this.$$element,r);i=ec(t,n);i&&i.length&&ui.removeClass(this.$$element,i)},$set:function(n,i,r,f){var a=this.$$element[0],e=kh(a,n),o=ap(n),h=n,c,s;e?(this.$$element.prop(n,i),f=e):o&&(this[o]=i,h=o);this[n]=i;f?this.$attr[n]=f:(f=this.$attr[n],f||(this.$attr[n]=f=fh(n,"-")));c=at(this.$$element);c==="img"&&n==="srcset"&&(this[n]=i=rr(i,"$set('srcset', value)"));r!==!1&&(i===null||u(i)?this.$$element.removeAttr(f):gr.test(f)?e&&i===!1?this.$$element.removeAttr(f):this.$$element.attr(f,i):ru(this.$$element[0],f,i));s=this.$$observers;s&&t(s[h],function(n){try{n(i)}catch(t){l(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),r=f[n]||(f[n]=[]);return r.push(t),st.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(n)||u(i[n])||t(i[n])}),function(){cr(r,t)}}};var ur=r.startSymbol(),fr=r.endSymbol(),er=ur==="{{"&&fr==="}}"?oi:function(n){return n.replace(/\{\{/g,ur).replace(/}}/g,fr)},uu=/^ng(Attr|Prop|On)([A-Z].*)$/,fu=/^(.+)Start$/;return fi.$$addBindingInfo=k?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,fi.$$addBindingClass=k?function(n){wi(n,"ng-binding")}:s,fi.$$addScopeInfo=k?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:s,fi.$$addScopeClass=k?function(n,t){wi(n,t?"ng-isolate-scope":"ng-scope")}:s,fi.$$createComment=function(t,i){var r="";return k&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},fi}]}function uf(n,t){this.previousValue=n;this.currentValue=t}function wt(n){return n.replace(to,"").replace(fc,function(n,t,i){return i?t.toUpperCase():t})}function ec(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f===o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function oc(n){var t,i;if(n=f(n),t=n.length,t<=1)return n;while(t--)i=n[t],(i.nodeType===wr||i.nodeType===ri&&i.nodeValue.trim()==="")&&gv.call(n,t,1);return n}function nb(n,t){if(t&&h(t))return t;if(h(n)){var i=ro.exec(n);if(i)return i[3]}}function tb(){var n={};this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){gi(t,"controller");o(t)?v(n,t):n[t]=i};this.$get=["$injector",function(t){function i(n,t,i,r){if(!(n&&o(n.$scope)))throw l("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);n.$scope[t]=i}return function(r,u,f,s){var l,p,a,y,w;if(f=f===!0,s&&h(s)&&(y=s),h(r)){if(p=r.match(ro),!p)throw io("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(a=p[1],y=y||p[3],r=n.hasOwnProperty(a)?n[a]:wy(u.$scope,a,!0),!r)throw io("ctrlreg","The controller with the name '{0}' is not registered.",a);lu(r,a,!0)}return f?(w=(c(r)?r[r.length-1]:r).prototype,l=Object.create(w||null),y&&i(u,y,l,a||r.name),v(function(){var n=t.invoke(r,l,u,a);return n!==l&&(o(n)||e(n))&&(l=n,y&&i(u,y,l,a||r.name)),l},{instance:l,identifier:y})):(l=t.instantiate(r,u,a),y&&i(u,y,l,a||r.name),l)}}]}function ib(){this.$get=["$window",function(n){return f(n.document)}]}function rb(){this.$get=["$document","$rootScope",function(n,t){function u(){r=i.hidden}var i=n[0],r=i&&i.hidden;n.on("visibilitychange",u);return t.$on("$destroy",function(){n.off("visibilitychange",u)}),function(){return r}}]}function ub(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function fo(n){return o(n)?st(n)?n.toISOString():yr(n):n}function hb(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ys(n,function(n,r){n===null||u(n)||e(n)||(c(n)?t(n,function(n){i.push(ht(r)+"="+ht(fo(n)))}):i.push(ht(r)+"="+ht(fo(n))))}),i.join("&")}}}function cb(){this.$get=function(){return function(n){function i(n,u,f){c(n)?t(n,function(n,t){i(n,u+"["+(o(n)?t:"")+"]")}):o(n)&&!st(n)?ys(n,function(n,t){i(n,u+(f?"":"[")+t+(f?"":"]"))}):(e(n)&&(n=n()),r.push(ht(u)+"="+(n==null?"":ht(fo(n)))))}if(!n)return"";var r=[];return i(n,"",!0),r.join("&")}}}function eo(n,t){var i,r,u;if(h(n)&&(i=n.replace(sb,"").trim(),i&&(r=t("Content-Type"),u=r&&r.indexOf(sc)===0,u||lb(i))))try{n=ds(i)}catch(f){if(!u)return n;throw ff("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',n,f);}return n}function lb(n){var t=n.match(eb);return t&&ob[t[0]].test(n)}function hc(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(y(n.substr(0,r))),y(n.substr(r+1)))}):o(n)&&t(n,function(n,t){u(a(t),y(n))}),i}function cc(n){var t;return function(i){if(t||(t=hc(n)),i){var r=t[a(i)];return r===undefined&&(r=null),r}return t}}function lc(n,i,r,u){return e(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function oo(n){return 200<=n&&n<300}function ab(){var n=this.defaults={transformResponse:[eo],transformRequest:[function(n){return o(n)&&!ry(n)&&!fy(n)&&!uy(n)?yr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:yt(uo),put:yt(uo),patch:yt(uo)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},i=!1,f,y;this.useApplyAsync=function(n){return r(n)?(i=!!n,this):i};f=this.interceptors=[];y=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(p,w,b,k,d,g,nt,tt){function it(i){function w(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function k(){p.$$completeOutstandingRequest(s,"$http")}function d(n,i){var r,u={};return t(n,function(n,t){e(n)?(r=n(i),r!=null&&(u[t]=r)):u[t]=n}),u}function it(t){var i=n.headers,u=v({},t.headers),r,f,e;i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return d(u,yt(t))}function ut(i){var r=i.headers,f=lc(i.data,cc(r),undefined,i.transformRequest);return u(f)&&t(r,function(n,t){a(t)==="content-type"&&delete r[t]}),u(i.withCredentials)&&!u(n.withCredentials)&&(i.withCredentials=n.withCredentials),st(i,f).then(b,b)}function b(n){var t=v({},n);return t.data=lc(n.data,n.headers,n.status,r.transformResponse),oo(n.status)?t:g.reject(t)}var r;if(!o(i))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!h(tt.valueOf(i.url)))throw l("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",i.url);r=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer,jsonpCallbackParam:n.jsonpCallbackParam},i);r.headers=it(i);r.method=su(r.method);r.paramSerializer=h(r.paramSerializer)?nt.get(r.paramSerializer):r.paramSerializer;p.$$incOutstandingRequestCount("$http");var c=[],y=[],f=g.resolve(r);return t(rt,function(n){(n.request||n.requestError)&&c.unshift(n.request,n.requestError);(n.response||n.responseError)&&y.push(n.response,n.responseError)}),f=w(f,c),f=f.then(ut),f=w(f,y),f.finally(k)}function et(){t(arguments,function(n){it[n]=function(t,i){return it(v({},i||{},{method:n,url:t}))}})}function ot(){t(arguments,function(n){it[n]=function(t,i,r){return it(v({},r||{},{method:n,url:t,data:i}))}})}function st(f,e){function ot(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?d.$applyAsync(r):d.$$phase?r():d.$apply(r)}}),r}}function at(n,t,r,u,f){function e(){y(t,n,r,u,f)}v&&(oo(n)?v.put(s,[n,t,hc(r),u,f]):v.remove(s));i?d.$applyAsync(e):(e(),d.$$phase||d.$apply())}function y(n,t,i,r,u){t=t>=-1?t:0;(oo(t)?p.resolve:p.reject)({data:n,status:t,headers:cc(i),config:f,statusText:r,xhrStatus:u})}function st(n){y(n.data,n.status,yt(n.headers()),n.statusText,n.xhrStatus)}function lt(){var n=it.pendingRequests.indexOf(f);n!==-1&&it.pendingRequests.splice(n,1)}var p=g.defer(),k=p.promise,v,l,rt=f.headers,et=a(f.method)==="jsonp",s=f.url,nt;return et?s=tt.getTrustedResourceUrl(s):h(s)||(s=tt.valueOf(s)),s=ht(s,f.paramSerializer(f.params)),et&&(s=ct(s,f.jsonpCallbackParam)),it.pendingRequests.push(f),k.then(lt,lt),(f.cache||n.cache)&&f.cache!==!1&&(f.method==="GET"||f.method==="JSONP")&&(v=o(f.cache)?f.cache:o(n.cache)?n.cache:ft),v&&(l=v.get(s),r(l)?cu(l)?l.then(st,st):c(l)?y(l[1],l[0],yt(l[2]),l[3],l[4]):y(l,200,{},"OK","complete"):v.put(s,k)),u(l)&&(nt=ut(f.url)?b()[f.xsrfCookieName||n.xsrfCookieName]:undefined,nt&&(rt[f.xsrfHeaderName||n.xsrfHeaderName]=nt),w(f.method,s,e,at,rt,f.timeout,f.withCredentials,f.responseType,ot(f.eventHandlers),ot(f.uploadEventHandlers))),k}function ht(n,t){return t.length>0&&(n+=(n.indexOf("?")===-1?"?":"&")+t),n}function ct(n,i){var r=n.split("?"),u;if(r.length>2)throw ff("badjsonp",'Illegal use more than one "?", in url, "{1}"',n);return u=oe(r[1]),t(u,function(t,r){if(t==="JSON_CALLBACK")throw ff("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);if(r===i)throw ff("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',i,n);}),n+=(n.indexOf("?")===-1?"?":"&")+i+"=JSON_CALLBACK"}var ft=k("$http"),rt,ut;return n.paramSerializer=h(n.paramSerializer)?nt.get(n.paramSerializer):n.paramSerializer,rt=[],t(f,function(n){rt.unshift(h(n)?nt.get(n):nt.invoke(n))}),ut=cd(y),it.pendingRequests=[],et("get","delete","head","jsonp"),ot("post","put","patch"),it.defaults=n,it}]}function vb(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function yb(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return pb(n,r,n.defer,t,i[0])}]}function pb(n,i,f,e,o){function s(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=o.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u);r.removeEventListener("error",u);o.body.removeChild(r);r=null;var f=-1,s="unknown";n&&(n.type!=="load"||e.wasCalled(t)||(n={type:"error"}),s=n.type,f=n.type==="error"?404:200);i&&i(f,s)},r.addEventListener("load",u),r.addEventListener("error",u),o.body.appendChild(r),u}return function(o,h,c,l,v,y,p,w,b,k){function ut(n){it=n==="timeout";tt&&tt();d&&d.abort()}function g(n,t,i,u,e,o){r(rt)&&f.cancel(rt);tt=d=null;n(t,i,u,e,o)}var nt,tt,d,it,rt;if(h=h||n.url(),a(o)==="jsonp")nt=e.createCallback(h),tt=s(h,nt,function(n,t){var i=n===200&&e.getResponse(nt);g(l,n,i,"",t,"complete");e.removeCallback(nt)});else{d=i(o,h);it=!1;d.open(o,h,!0);t(v,function(n,t){r(n)&&d.setRequestHeader(t,n)});d.onload=function(){var i=d.statusText||"",t="response"in d?d.response:d.responseText,n=d.status===1223?204:d.status;n===0&&(n=t?200:et(h).protocol==="file"?404:0);g(l,n,t,d.getAllResponseHeaders(),i,"complete")};var ft=function(){g(l,-1,null,null,"","error")},ot=function(){g(l,-1,null,null,"",it?"timeout":"abort")},st=function(){g(l,-1,null,null,"","timeout")};if(d.onerror=ft,d.ontimeout=st,d.onabort=ot,t(b,function(n,t){d.addEventListener(t,n)}),t(k,function(n,t){d.upload.addEventListener(t,n)}),p&&(d.withCredentials=!0),w)try{d.responseType=w}catch(ht){if(w!=="json")throw ht;}d.send(u(c)?null:c)}y>0?rt=f(function(){ut("timeout")},y):cu(y)&&y.then(function(){ut(r(y.$$timeoutId)?"timeout":"abort")})}}function wb(){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,f,e){function c(n){return"\\\\\\"+n}function o(i){return i.replace(a,n).replace(y,t)}function p(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function s(s,c,a,y){function lt(n){try{return n=a&&!nt?e.getTrusted(a,n):e.valueOf(n),y&&!r(n)?n:ce(n)}catch(t){f(ui.interr(s,t))}}var nt=a===e.URL||a===e.MEDIA_URL,tt,d,ct,et;if(!s.length||s.indexOf(n)===-1)return c?void 0:(tt=o(s),nt&&(tt=e.getTrusted(a,tt)),d=ot(tt),d.exp=s,d.expressions=[],d.$$watchDelegate=p,d);y=!!y;for(var g,it,b=0,k=[],rt,st=s.length,ht,w=[],ut=[],ft;b<st;)if((g=s.indexOf(n,b))!==-1&&(it=s.indexOf(t,g+h))!==-1)b!==g&&w.push(o(s.substring(b,g))),ht=s.substring(g+h,it),k.push(ht),b=it+l,ut.push(w.length),w.push("");else{b!==st&&w.push(o(s.substring(b)));break}return ft=w.length===1&&ut.length===1,ct=nt&&ft?undefined:lt,rt=k.map(function(n){return i(n,ct)}),!c||k.length?(et=function(n){for(var t=0,i=k.length;t<i;t++){if(y&&u(n[t]))return;w[ut[t]]=n[t]}return nt?e.getTrusted(a,ft?w[0]:w.join("")):(a&&w.length>1&&ui.throwNoconcat(s),w.join(""))},v(function(n){var t=0,i=k.length,r=new Array(i);try{for(;t<i;t++)r[t]=rt[t](n);return et(r)}catch(u){f(ui.interr(s,u))}},{exp:s,expressions:k,$$watchDelegate:function(n,t){var i;return n.$watchGroup(rt,function(r,u){var f=et(r);t.call(this,f,r!==u?i:f,n);i=f})}})):void 0}var h=n.length,l=t.length,a=new RegExp(n.replace(/./g,c),"g"),y=new RegExp(t.replace(/./g,c),"g");return s.startSymbol=function(){return n},s.endSymbol=function(){return t},s}]}function bb(){this.$get=["$$intervalFactory","$window",function(n,t){var i={},f=function(n,r,u){var f=t.setInterval(n,r);return i[f]=u,f},r=function(n){t.clearInterval(n);delete i[n]},u=n(f,r);return u.cancel=function(n){if(!n)return!1;if(!n.hasOwnProperty("$$intervalId"))throw ac("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!i.hasOwnProperty(n.$$intervalId))return!1;var t=n.$$intervalId,u=i[t];return hl(u.promise),u.reject("canceled"),r(t),!0},u}]}function kb(){this.$get=["$browser","$q","$$q","$rootScope",function(n,t,i,u){return function(f,e){return function(o,s,h,c){function w(){p?o.apply(null,b):o(l)}function k(){a?n.defer(w):u.$evalAsync(w);v.notify(l++);h>0&&l>=h&&(v.resolve(l),e(y.$$intervalId));a||u.$apply()}var p=arguments.length>4,b=p?vr(arguments,4):[],l=0,a=r(c)&&!c,v=(a?i:t).defer(),y=v.promise;return h=r(h)?h:0,y.$$intervalId=f(k,s,v,a),y}}}]}function tk(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=se(t[i].replace(/%2F/g,"/"));return t.join("/")}function ik(n,t){for(var i=n.split("/"),r=i.length;r--;)i[r]=decodeURIComponent(i[r]),t&&(i[r]=i[r].replace(/\//g,"%2F"));return i.join("/")}function rk(n,t,i){var r=hy(t),u=i?"#"+se(i):"",f=tk(n);return f+(r?"?"+r:"")+u}function vc(n,t){var i=et(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=ft(i.port)||nk[i.protocol]||null}function pc(n,t,i){var u,r,f;if(yc.test(n))throw gr("badpath",'Invalid url "{0}".',n);u=n.charAt(0)!=="/";u&&(n="/"+n);r=et(n);f=u&&r.pathname.charAt(0)==="/"?r.pathname.substring(1):r.pathname;t.$$path=ik(f,i);t.$$search=oe(r.search);t.$$hash=decodeURIComponent(r.hash);t.$$path&&t.$$path.charAt(0)!=="/"&&(t.$$path="/"+t.$$path)}function so(n,t){return n.slice(0,t.length)===t}function ni(n,t){if(so(t,n))return t.substr(n.length)}function yi(n){var t=n.indexOf("#");return t===-1?n:n.substr(0,t)}function uk(n){return n.substr(0,yi(n).lastIndexOf("/")+1)}function fk(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function ho(n,t,i){this.$$html5=!0;i=i||"";vc(n,this);this.$$parse=function(n){var i=ni(t,n);if(!h(i))throw gr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);pc(i,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$normalizeUrl=function(n){return t+n.substr(1)};this.$$parseLinkUrl=function(u,f){if(f&&f[0]==="#")return this.hash(f.slice(1)),!0;var e,s,o;return r(e=ni(n,u))?(s=e,o=i&&r(e=ni(i,e))?t+(ni("/",e)||e):n+s):r(e=ni(t,u))?o=t+e:t===u+"/"&&(o=t),o&&this.$$parse(o),!!o}}function co(n,t,i){vc(n,this);this.$$parse=function(r){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(so(t,i)&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var e=ni(n,r)||ni(t,r),f;u(e)||e.charAt(0)!=="#"?this.$$html5?f=e:(f="",u(e)&&(n=r,this.replace())):(f=ni(i,e),u(f)&&(f=e));pc(f,this,!1);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$normalizeUrl=function(t){return n+(t?i+t:"")};this.$$parseLinkUrl=function(t){return yi(n)===yi(t)?(this.$$parse(t),!0):!1}}function wc(n,t,i){this.$$html5=!0;co.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&u[0]==="#")return this.hash(u.slice(1)),!0;var f,e;return n===yi(r)?f=r:(e=ni(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$normalizeUrl=function(t){return n+i+t}}function ef(n){return function(){return this[n]}}function kc(n,t){return function(i){return u(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function ek(){var t="!",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return r(n)?(t=n,this):t};this.html5Mode=function(t){return dt(t)?(n.enabled=t,this):o(t)?(dt(t.enabled)&&(n.enabled=t.enabled),dt(t.requireBase)&&(n.requireBase=t.requireBase),(dt(t.rewriteLinks)||h(t.rewriteLinks))&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,e,s,c){function nt(n,t){return n===t||et(n).href===et(t).href}function d(n,t,i){var u=l.url(),f=l.$$state;try{r.url(n,t,i);l.$$state=r.state()}catch(e){l.url(u);l.$$state=f;throw e;}}function g(n,t){i.$broadcast("$locationChangeSuccess",l.absUrl(),n,l.$$state,t)}var l,p,b=r.baseHref(),a=r.url(),y,w,k,v;if(n.enabled){if(!b&&n.requireBase)throw gr("nobase","$location in HTML5 mode requires a <base> tag to be present!");y=fk(a)+(b||"/");p=e.history?ho:wc}else y=yi(a),p=co;w=uk(y);l=new p(y,w,"#"+t);l.$$parseLinkUrl(a,a);l.$$state=r.state();k=/^\s*(javascript|mailto):/i;s.on("click",function(t){var a=n.rewriteLinks,e,c,v;if(a&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.which!==2&&t.button!==2){for(e=f(t.target);at(e[0])!=="a";)if(e[0]===s[0]||!(e=e.parent())[0])return;h(a)&&u(e.attr(a))||(c=e.prop("href"),v=e.attr("href")||e.attr("xlink:href"),o(c)&&c.toString()==="[object SVGAnimatedString]"&&(c=et(c.animVal).href),k.test(c))||!c||e.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(c,v)&&(t.preventDefault(),l.absUrl()!==r.url()&&i.$apply())}});l.absUrl()!==a&&r.url(l.absUrl(),!0);v=!0;r.onUrlChange(function(n,t){if(!so(n,w)){c.location.href=n;return}i.$evalAsync(function(){var r=l.absUrl(),u=l.$$state,f;(l.$$parse(n),l.$$state=t,f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented,l.absUrl()===n)&&(f?(l.$$parse(r),l.$$state=u,d(r,!1,u)):(v=!1,g(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=r.url(),f=l.absUrl(),n=r.state(),o=l.$$replace,u=!nt(t,f)||l.$$html5&&e.history&&n!==l.$$state;(v||u)&&(v=!1,i.$evalAsync(function(){var r=l.absUrl(),f=i.$broadcast("$locationChangeStart",r,t,l.$$state,n).defaultPrevented;l.absUrl()===r&&(f?(l.$$parse(t),l.$$state=n):(u&&d(r,o,n===l.$$state?null:l.$$state),g(t,n)))}))}l.$$replace=!1}),l}]}function ok(){var n=!0,i=this;this.debugEnabled=function(t){return r(t)?(n=t,this):n};this.$get=["$window",function(r){function e(n){return ne(n)&&(n.stack&&f?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||s;return function(){var n=[];return t(arguments,function(t){n.push(e(t))}),Function.prototype.apply.call(u,i,n)}}var f=bt||/\bEdge\//.test(r.navigator&&r.navigator.userAgent);return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function gc(n){return n+""}function sk(n,t){return typeof n!="undefined"?n:t}function tl(n,t){return typeof n=="undefined"?t:typeof t=="undefined"?n:n+t}function hk(n,t){var i=n(t);return!i.$stateful}function ck(n,t){switch(n.type){case i.MemberExpression:if(n.computed)return!1;break;case i.UnaryExpression:return lo;case i.BinaryExpression:return n.operator!=="+"?lo:!1;case i.CallExpression:return!1}return undefined===t?ao:t}function d(n,r,u){var f,o,s,e=n.isPure=ck(n,u);switch(n.type){case i.Program:f=!0;t(n.body,function(n){d(n.expression,r,e);f=f&&n.expression.constant});n.constant=f;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:d(n.argument,r,e);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:d(n.test,r,e);d(n.alternate,r,e);d(n.consequent,r,e);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:d(n.object,r,e);n.computed&&d(n.property,r,e);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=n.constant?[]:[n];break;case i.CallExpression:s=n.filter?hk(r,n.callee.name):!1;f=s;o=[];t(n.arguments,function(n){d(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=s?o:[n];break;case i.AssignmentExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:f=!0;o=[];t(n.elements,function(n){d(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=o;break;case i.ObjectExpression:f=!0;o=[];t(n.properties,function(n){d(n.value,r,e);f=f&&n.value.constant;o.push.apply(o,n.value.toWatch);n.computed&&(d(n.key,r,!1),f=f&&n.key.constant,o.push.apply(o,n.key.toWatch))});n.constant=f;n.toWatch=o;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function il(n){if(n.length===1){var i=n[0].expression,t=i.toWatch;return t.length!==1?t:t[0]!==i?t:undefined}}function rl(n){return n.type===i.Identifier||n.type===i.MemberExpression}function ul(n){if(n.body.length===1&&rl(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function lk(n){return n.body.length===0||n.body.length===1&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function ak(n){return n.constant}function fl(n){this.$filter=n}function el(n){this.$filter=n}function of(n,t,r){this.ast=new i(n,r);this.astCompiler=r.csp?new el(t):new fl(t)}function vo(n){return e(n.valueOf)?n.valueOf():dc.call(n)}function vk(){var u=p(),f={"true":!0,"false":!1,"null":null,undefined:undefined},n,i;this.addLiteral=function(n,t){f[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(o){function v(n,t){var i,r,f,e;switch(typeof n){case"string":return n=n.trim(),r=n,i=u[r],i||(f=new tu(h),e=new of(f,o,h),i=e.parse(n),u[r]=l(i)),a(i,t);case"function":return a(n,t);default:return a(s,t)}}function p(n){var t=new tu(h),i=new of(t,o,h);return i.getAst(n).ast}function c(n,t,i){return n==null||t==null?n===t:typeof n=="object"&&(n=vo(n),typeof n=="object"&&!i)?!1:n===t||n!==n&&t!==t}function w(n,t,i,r,u){var f=r.inputs,o,l,s,h,e,a;if(f.length===1)return l=c,f=f[0],n.$watch(function(n){var t=f(n);return c(t,l,f.isPure)||(o=r(n,undefined,undefined,[t]),l=t&&vo(t)),o},t,i,u);for(s=[],h=[],e=0,a=f.length;e<a;e++)s[e]=c,h[e]=null;return n.$watch(function(n){for(var i,u=!1,t=0,e=f.length;t<e;t++)i=f[t](n),(u||(u=!c(i,s[t],f[t].isPure)))&&(h[t]=i,s[t]=i&&vo(i));return u&&(o=r(n,undefined,undefined,h)),o},t,i,u)}function b(n,t,i,u,f){function y(){s(o)&&h()}function e(n,t,i,r){return o=v&&r?r[0]:c(n,t,i,r),s(o)&&n.$$postDigest(y),a(o)}var s=u.literal?k:r,h,o,c=u.$$intercepted||u,a=u.$$interceptor||oi,v=u.inputs&&!c.inputs;return e.literal=u.literal,e.constant=u.constant,e.inputs=u.inputs,l(e),h=n.$watch(e,t,i,f)}function k(n){var i=!0;return t(n,function(n){r(n)||(i=!1)}),i}function d(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function l(n){return n.constant?n.$$watchDelegate=d:n.oneTime?n.$$watchDelegate=b:n.inputs&&(n.$$watchDelegate=w),n}function g(n,t){function i(i){return t(n(i))}return i.$stateful=n.$stateful||t.$stateful,i.$$pure=n.$$pure&&t.$$pure,i}function a(n,t){if(!t)return n;n.$$interceptor&&(t=g(n.$$interceptor,t),n=n.$$intercepted);var r=!1,i=function(i,u,f,e){var o=r&&e?e[0]:n(i,u,f,e);return t(o)};return i.$$intercepted=n,i.$$interceptor=t,i.literal=n.literal,i.oneTime=n.oneTime,i.constant=n.constant,t.$stateful||(r=!n.inputs,i.inputs=n.inputs?n.inputs:[n],t.$$pure||(i.inputs=i.inputs.map(function(n){return n.isPure===ao?function(t){return n(t)}:n}))),l(i)}var y=ii().noUnsafeEval,h={csp:y,literals:si(f),isIdentifierStart:e(n)&&n,isIdentifierContinue:e(i)&&i};return v.$$getAst=p,v}]}function yk(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,i){return ol(function(n){t.$evalAsync(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function pk(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,i){return ol(function(n){t.defer(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function ol(n,i,r){function it(){return new et}function et(){var n=this.promise=new f;this.resolve=function(t){h(n,t)};this.reject=function(t){a(n,t)};this.notify=function(t){g(n,t)}}function f(){this.$$state={status:0}}function ot(t){var c,u,o,f,l;o=t.pending;t.processScheduled=!1;t.pending=undefined;try{for(f=0,l=o.length;f<l;++f){yo(t);u=o[f][0];c=o[f][t.status];try{e(c)?h(u,c(t.value)):t.status===1?h(u,t.value):a(u,t.value)}catch(s){a(u,s);s&&s.$$passToExceptionHandler===!0&&i(s)}}}finally{--y;r&&y===0&&n(rt)}}function rt(){for(var n,t;!y&&p.length;)n=p.shift(),sl(n)||(yo(n),t="Possibly unhandled rejection: "+eh(n.value),ne(n.value)?i(n.value,t):i(t))}function k(t){(!r||t.pending||t.status!==2||sl(t)||(y===0&&p.length===0&&n(rt),p.push(t)),!t.processScheduled&&t.pending)&&(t.processScheduled=!0,++y,n(function(){ot(t)}))}function h(n,t){n.$$state.status||(t===n?d(n,tt("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):ut(n,t))}function ut(n,t){function s(t){i||(i=!0,ut(n,t))}function u(t){i||(i=!0,d(n,t))}function h(t){g(n,t)}var r,i=!1;try{(o(t)||e(t))&&(r=t.then);e(r)?(n.$$state.status=-1,r.call(t,s,u,h)):(n.$$state.value=t,n.$$state.status=1,k(n.$$state))}catch(f){u(f)}}function a(n,t){n.$$state.status||d(n,t)}function d(n,t){n.$$state.value=t;n.$$state.status=2;k(n.$$state)}function g(t,r){var u=t.$$state.pending;t.$$state.status<=0&&u&&u.length&&n(function(){for(var t,f,n=0,o=u.length;n<o;n++){f=u[n][0];t=u[n][3];try{g(f,e(t)?t(r):r)}catch(s){i(s)}}})}function w(n){var t=new f;return a(t,n),t}function ft(n,t,i){var r=null;try{e(i)&&(r=i())}catch(u){return w(u)}return cu(r)?r.then(function(){return t(n)},w):t(n)}function b(n,t,i,r){var u=new f;return h(u,n),u.then(t,i,r)}function st(n){var i=new f,r=0,u=c(n)?[]:{};return t(n,function(n,t){r++;b(n).then(function(n){u[t]=n;--r||h(i,u)},function(n){a(i,n)})}),r===0&&h(i,u),i}function ht(n){var i=it();return t(n,function(n){b(n).then(i.resolve,i.reject)}),i.promise}function s(n){function i(n){h(t,n)}function r(n){a(t,n)}if(!e(n))throw tt("norslvr","Expected resolverFn, got '{0}'",n);var t=new f;return n(i,r),t}var tt=l("$q",TypeError),y=0,p=[],nt;return v(f.prototype,{then:function(n,t,i){if(u(n)&&u(t)&&u(i))return this;var r=new f;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),this.$$state.status>0&&k(this.$$state),r},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return ft(t,nt,n)},function(t){return ft(t,w,n)},t)}}),nt=b,s.prototype=f.prototype,s.defer=it,s.reject=w,s.when=b,s.resolve=nt,s.all=st,s.race=ht,s}function sl(n){return!!n.pur}function yo(n){n.pur=!0}function hl(n){n.$$state&&yo(n.$$state)}function wk(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||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 bk(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=hu();this.$$ChildScope=null;this.$$suspended=!1}return t.prototype=n,t}var r=10,f=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(r=n),r};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function et(n){n.currentScope.$$destroyed=!0}function b(n){bt===9&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=hu();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$suspended=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function tt(n){if(v.$$phase)throw f("inprog","{0} already in progress",v.$$phase);v.$$phase=n}function g(){v.$$phase=null}function nt(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function rt(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function ut(){}function ft(){while(k.length)try{k.shift()()}catch(n){c(n)}i=null}function ot(){i===null&&(i=a.defer(function(){v.$apply(ft)},null,"$applyAsync"))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!==this)&&i.$on("$destroy",et),i},$watch:function(t,i,r,u){var o=l(t),c=e(i)?i:s;if(o.$$watchDelegate)return o.$$watchDelegate(this,c,r,o,t);var h=this,f=h.$$watchers,a={fn:c,last:ut,get:o,exp:u||t,eq:!!r};return n=null,f||(f=h.$$watchers=[],f.$$digestWatchIndex=-1),f.unshift(a),f.$$digestWatchIndex++,nt(this,1),function(){var t=cr(f,a);t>=0&&(nt(h,-1),t<f.$$digestWatchIndex&&f.$$digestWatchIndex--);n=null}},$watchGroup:function(n,i){function c(){o=!1;try{h?(h=!1,i(r,r,u)):i(r,f,u)}finally{for(var t=0;t<n.length;t++)f[t]=r[t]}}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?n.length===1?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n){r[t]=n;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){while(e.length)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function h(n){var c,s,y,t,h,l;if(i=n,!u(i)){if(o(i))if(ti(i))for(r!==a&&(r=a,e=r.length=0,f++),c=i.length,e!==c&&(f++,r.length=e=c),l=0;l<c;l++)h=r[l],t=i[l],y=h!==h&&t!==t,y||h===t||(f++,r[l]=t);else{r!==v&&(r=v={},e=0,f++);c=0;for(s in i)lt.call(i,s)&&(c++,t=i[s],h=r[s],s in r?(y=h!==h&&t!==t,y||h===t||(f++,r[s]=t)):(e++,r[s]=t,f++));if(e>c){f++;for(s in r)lt.call(i,s)||(e--,delete r[s])}}else r!==i&&(r=i,f++);return f}}function b(){var n,r;if(y?(y=!1,t(i,i,c)):t(i,s,c),p)if(o(i))if(ti(i))for(s=new Array(i.length),n=0;n<i.length;n++)s[n]=i[n];else{s={};for(r in i)lt.call(i,r)&&(s[r]=i[r])}else s=i}h.$$pure=l(n).literal;h.$stateful=!h.$$pure;var c=this,i,r,s,p=t.length>1,f=0,w=l(n,h),a=[],v={},y=!0,e=0;return this.$watch(w,b)},$digest:function(){var u,o,s,p,ct,h,l,et=r,ot,t,st=y.length?v:this,b=[],k,nt,rt;tt("$digest");a.$$checkUrlChange();this===v&&i!==null&&(a.defer.cancel(i),ft());n=null;do{for(l=!1,t=st,rt=0;rt<y.length;rt++){try{nt=y[rt];p=nt.fn;p(nt.scope,nt.locals)}catch(ht){c(ht)}n=null}y.length=0;n:do{if(h=!t.$$suspended&&t.$$watchers)for(h.$$digestWatchIndex=h.length;h.$$digestWatchIndex--;)try{if(u=h[h.$$digestWatchIndex],u)if(ct=u.get,(o=ct(t))===(s=u.last)||(u.eq?vt(o,s):it(o)&&it(s))){if(u===n){l=!1;break n}}else l=!0,n=u,u.last=u.eq?si(o,null):o,p=u.fn,p(o,s===ut?o:s,t),et<5&&(k=4-et,b[k]||(b[k]=[]),b[k].push({msg:e(u.exp)?"fn: "+(u.exp.name||u.exp.toString()):u.exp,newVal:o,oldVal:s}))}catch(ht){c(ht)}if(!(ot=!t.$$suspended&&t.$$watchersCount&&t.$$childHead||t!==st&&t.$$nextSibling))while(t!==st&&!(ot=t.$$nextSibling))t=t.$parent}while(t=ot);if((l||y.length)&&!et--){g();throw f("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",r,b);}}while(l||y.length);for(g();d<w.length;)try{w[d++]()}catch(ht){c(ht)}w.length=d=0;a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();nt(this,-this.$$watchersCount);for(t in this.$$listenerCount)rt(this,this.$$listenerCount[t],t);n&&n.$$childHead===this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail===this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=s;this.$on=this.$watch=this.$watchGroup=function(){return s};this.$$listeners={};this.$$nextSibling=null;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()},null,"$evalAsync");y.push({scope:this,fn:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{tt("$apply");try{return this.$eval(n)}finally{g()}}catch(t){c(t)}finally{try{v.$digest()}catch(t){c(t);throw t;}}},$applyAsync:function(n){function i(){t.$eval(n)}var t=this;n&&k.push(i);n=l(n);ot()},$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(){var i=r.indexOf(t);i!==-1&&(delete r[i],rt(u,1,n))}},$emit:function(n){var o=[],r,i=this,e=!1,u={name:n,targetScope:i,stopPropagation:function(){e=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s=ar([u],arguments,1),t,f;do{for(r=i.$$listeners[n]||o,u.currentScope=i,t=0,f=r.length;t<f;t++){if(!r[t]){r.splice(t,1);t--;f--;continue}try{r[t].apply(null,s)}catch(h){c(h)}}if(e)break;i=i.$parent}while(i);return u.currentScope=null,u},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s,f,i,o;if(!r.$$listenerCount[n])return u;for(s=ar([u],arguments,1);t=e;){for(u.currentScope=t,f=t.$$listeners[n]||[],i=0,o=f.length;i<o;i++){if(!f[i]){f.splice(i,1);i--;o--;continue}try{f[i].apply(null,s)}catch(h){c(h)}}if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(e=t.$$nextSibling))t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],k=v.$$applyAsyncQueue=[],d=0;return v}]}function kk(){var n=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return r(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u=et(i&&i.trim()).href;return u!==""&&!u.match(f)?"unsafe:"+u:i}}}function po(n){return n.replace(dk,hh)}function gk(n){if(n==="self")return n;if(h(n)){if(n.indexOf("***")>-1)throw fi("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=te(n).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+n+"$")}if(or(n))return new RegExp("^"+n.source+"$");throw fi("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function cl(n){var i=[];return r(n)&&t(n,function(n){i.push(gk(n))}),i}function nd(){this.SCE_CONTEXTS=b;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=cl(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=cl(n)),t};this.$get=["$injector","$$sanitizeUri",function(i,r){function c(n,t){return n==="self"?sd(t)||hd(t):!!n.exec(t.href)}function l(i){for(var e=et(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(c(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(c(t[r],e)){f=!1;break}return f}function o(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}function a(n,t){var i=f.hasOwnProperty(n)?f[n]:null;if(!i)throw fi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||u(t)||t==="")return t;if(typeof t!="string")throw fi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)}function v(n){return n instanceof s?n.$$unwrapTrustedValue():n}function y(n,t){if(t===null||u(t)||t==="")return t;var i=f.hasOwnProperty(n)?f[n]:null;if(i&&t instanceof i)return t.$$unwrapTrustedValue();if(e(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),n===b.MEDIA_URL||n===b.URL)return r(t.toString(),n===b.MEDIA_URL);if(n===b.RESOURCE_URL){if(l(t))return t;throw fi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===b.HTML)return h(t);throw fi("unsafe","Attempting to use an unsafe value in a safe context.");}var h=function(){throw fi("unsafe","Attempting to use an unsafe value in a safe context.");},s,f;return i.has("$sanitize")&&(h=i.get("$sanitize")),s=o(),f={},f[b.HTML]=o(s),f[b.CSS]=o(s),f[b.MEDIA_URL]=o(s),f[b.URL]=o(f[b.MEDIA_URL]),f[b.JS]=o(s),f[b.RESOURCE_URL]=o(f[b.URL]),{trustAs:a,getTrusted:y,valueOf:v}}]}function td(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&bt<8)throw fi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");u=yt(b);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=oi);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(b,function(n,t){var i=a(t);u[po("parse_as_"+i)]=function(t){return f(n,t)};u[po("get_trusted_"+i)]=function(t){return e(n,t)};u[po("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function id(){this.$get=["$window","$document",function(n,t){var r={},h=n.nw&&n.nw.process,c=!h&&n.chrome&&(n.chrome.app&&n.chrome.app.runtime||!n.chrome.app&&n.chrome.runtime&&n.chrome.runtime.id),l=!c&&n.history&&n.history.pushState,e=ft((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),v=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i=f.body&&f.body.style,o=!1,s=!1;return i&&(o=!!("transition"in i||"webkitTransition"in i),s=!!("animation"in i||"webkitAnimation"in i)),{history:!!(l&&!(e<4)&&!v),hasEvent:function(n){if(n==="input"&&bt)return!1;if(u(r[n])){var t=f.createElement("div");r[n]="on"+n in t}return r[n]},csp:ii(),transitions:o,animations:s,android:e}}]}function rd(){this.$get=ot(function(n){return new ud(n)})}function ud(n){function e(i,r){var c,e,l,a;r=r||f;try{i()}finally{if(o(r),c=t[r],e=t[u],!e||!c)for(l=e?h:s;a=l(r);)try{a()}catch(v){n.error(v)}}}function o(n){n=n||f;t[n]&&(t[n]--,t[u]--)}function s(){var n=r.pop();return n&&n.cb}function h(n){for(var i,t=r.length-1;t>=0;--t)if(i=r[t],i.type===n)return r.splice(t,1),i.cb}function c(n){n=n||f;t[n]=(t[n]||0)+1;t[u]=(t[u]||0)+1}function l(n,i){i=i||u;t[i]?r.push({type:i,cb:n}):n()}var i=this,t={},r=[],u=i.ALL_TASKS_TYPE="$$all$$",f=i.DEFAULT_TASK_TYPE="$$default$$";i.completeTask=e;i.incTaskCount=c;i.notifyWhenNoPendingTasks=l}function fd(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,i,r,f,e){function o(s,l){function y(n){return l||(n=ll("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,n.status,n.statusText),t(n)),f.reject(n)}o.totalPendingRequests++;(!h(s)||u(i.get(s)))&&(s=e.getTrustedResourceUrl(s));var a=r.defaults&&r.defaults.transformResponse;return c(a)?a=a.filter(function(n){return n!==eo}):a===eo&&(a=null),r.get(s,v({cache:i,transformResponse:a},n)).finally(function(){o.totalPendingRequests--}).then(function(n){return i.put(s,n.data)},y)}return o.totalPendingRequests=0,o}]}function ed(){this.$get=["$rootScope","$browser","$location",function(n,i,r){var u={};return u.findBindings=function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){if(r){var f=new RegExp("(^|\\s)"+te(i)+"(\\s|\\||$)");f.test(t)&&u.push(n)}else t.indexOf(i)!==-1&&u.push(n)})}),u},u.findModels=function(n,t,i){for(var u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r){var e=i?"=":"*=",o="["+u[r]+"model"+e+'"'+t+'"]',f=n.querySelectorAll(o);if(f.length)return f}},u.getLocation=function(){return r.url()},u.setLocation=function(t){t!==r.url()&&(r.url(t),n.$digest())},u.whenStable=function(n){i.notifyWhenNoOutstandingRequests(n)},u}]}function od(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,u,f){function h(h,c,l){e(h)||(l=c,c=h,h=s);var w=vr(arguments,3),p=r(l)&&!l,a=(p?u:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);f(t)}finally{delete o[v.$$timeoutId]}p||n.$apply()},c,"$timeout"),v.$$timeoutId=y,o[y]=a,v}var o={};return h.cancel=function(n){if(!n)return!1;if(!n.hasOwnProperty("$$timeoutId"))throw al("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(n.$$timeoutId))return!1;var i=n.$$timeoutId,r=o[i];return hl(r.promise),r.reject("canceled"),delete o[i],t.defer.cancel(i)},h}]}function et(n){var i,t;return h(n)?(i=n,bt&&(g.setAttribute("href",i),i=g.href),g.setAttribute("href",i),t=g.hostname,!vl&&t.indexOf(":")>-1&&(t="["+t+"]"),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:t,port:g.port,pathname:g.pathname.charAt(0)==="/"?g.pathname:"/"+g.pathname}):n}function sd(n){return bo(n,wo)}function hd(n){return bo(n,ld())}function cd(n){var t=[wo].concat(n.map(et));return function(n){var i=et(n);return t.some(bo.bind(null,i))}}function bo(n,t){return n=et(n),t=et(t),n.protocol===t.protocol&&n.host===t.host}function ld(){return n.document.baseURI?n.document.baseURI:(tr||(tr=n.document.createElement("a"),tr.href=".",tr=tr.cloneNode(!1)),tr.href)}function ad(){this.$get=ot(n)}function yl(n){function e(n){try{return n.cookie||""}catch(t){return""}}function r(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var h,n,o,s,c,l=e(f);if(l!==i)for(i=l,h=i.split("; "),t={},o=0;o<h.length;o++)n=h[o],s=n.indexOf("="),s>0&&(c=r(n.substring(0,s)),u(t[c])&&(t[c]=r(n.substring(s+1))));return t}}function vd(){this.$get=yl}function pl(n){function i(u,f){if(o(u)){var e={};return t(u,function(n,t){e[t]=i(t,n)}),e}return n.factory(u+r,f)}var r="Filter";this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+r)}}];i("currency",kl);i("date",ia);i("filter",yd);i("json",ug);i("limitTo",fg);i("lowercase",ra);i("number",dl);i("orderBy",fa);i("uppercase",ua)}function yd(){return function(n,t,i,r){if(!ti(n)){if(n==null)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}r=r||"$";var e=ko(t),u,f;switch(e){case"function":u=t;break;case"boolean":case"null":case"number":case"string":f=!0;case"object":u=pd(t,i,r,f);break;default:return n}return Array.prototype.filter.call(n,u)}}function pd(n,t,i,r){var f=o(n)&&i in n;return t===!0?t=vt:e(t)||(t=function(n,t){return u(n)?!1:n===null||t===null?n===t:o(t)||o(n)&&!gf(n)?!1:(n=a(""+n),t=a(""+t),n.indexOf(t)!==-1)}),function(u){return f&&!o(u)?wi(u,n[i],t,i,!1):wi(u,n,t,i,r)}}function wi(n,t,i,r,f,o){var y=ko(n),a=ko(t),s,h,l,v;if(a==="string"&&t.charAt(0)==="!")return!wi(n,t.substring(1),i,r,f);if(c(n))return n.some(function(n){return wi(n,t,i,r,f)});switch(y){case"object":if(f){for(s in n)if(s.charAt&&s.charAt(0)!=="$"&&wi(n[s],t,i,r,!0))return!0;return o?!1:wi(n,t,i,r,!1)}if(a==="object"){for(s in t)if((h=t[s],!e(h)&&!u(h))&&(l=s===r,v=l?n:n[s],!wi(v,h,i,r,l,l)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function ko(n){return n===null?"null":typeof n}function kl(n){var t=n.NUMBER_FORMATS;return function(n,i,r){u(i)&&(i=t.CURRENCY_SYM);u(r)&&(r=t.PATTERNS[1].maxFrac);var f=i?/\u00A4/g:/\s*\u00A4\s*/g;return n==null?n:gl(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(f,i)}}function dl(n){var t=n.NUMBER_FORMATS;return function(n,i){return n==null?n:gl(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function wd(n){var e=0,r,t,i,f,u;for((t=n.indexOf(bl))>-1&&(n=n.replace(bl,"")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charAt(i)===go;i++);if(i===(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)===go;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>wl&&(r=r.splice(0,wl-1),e=t-1,t=1),{d:r,e:e,i:t}}function bd(n,t,i,r){var f=n.d,o=f.length-n.i,e,a,s,h,c,l;if(t=u(t)?Math.min(Math.max(i,o),r):+t,e=t+n.i,a=f[e],e>0)for(f.splice(Math.max(n.i,e)),s=e;s<f.length;s++)f[s]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,e=t+1),f[0]=0,h=1;h<e;h++)f[h]=0;if(a>=5)if(e-1<0){for(c=0;c>e;c--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[e-1]++;for(;o<Math.max(0,t);o++)f.push(0);l=f.reduceRight(function(n,t,i,r){return t=t+n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}function gl(n,t,i,r,u){var s;if(!(h(n)||nt(n))||isNaN(n))return"";var y=!isFinite(n),a=!1,p=Math.abs(n)+"",e="",o;if(y)e="∞";else{o=wd(p);bd(o,u,t.minFrac,t.maxFrac);var f=o.d,c=o.i,v=o.e,l=[];for(a=f.reduce(function(n,t){return n&&!t},!0);c<0;)f.unshift(0),c++;for(c>0?l=f.splice(c,f.length):(l=f,f=[0]),s=[],f.length>=t.lgSize&&s.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)s.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&s.unshift(f.join(""));e=s.join(i);l.length&&(e+=r+l.join(""));v&&(e+="e+"+v)}return n<0&&!a?t.negPre+e+t.negSuf:t.posPre+e+t.posSuf}function sf(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=go+n;return i&&(n=n.substr(n.length-t)),u+n}function tt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),e===0&&i===-12&&(e=12),sf(e,t,r,u)}}function iu(n,t,i){return function(r,u){var f=r["get"+n](),e=(i?"STANDALONE":"")+(t?"SHORT":""),o=su(e+n);return u[o][f]}}function kd(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(sf(Math[r>0?"floor":"ceil"](r/60),2)+sf(Math.abs(r%60),2))}function na(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function dd(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ta(n){return function(t){var i=na(t.getFullYear()),r=dd(t),u=+r-+i,f=1+Math.round(u/6048e5);return sf(f,n)}}function gd(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ns(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ng(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function ia(n){function r(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=ft(t[9]+t[10]),f=ft(t[9]+t[11]));e.call(r,ft(t[1]),ft(t[2])-1,ft(t[3]));var s=ft(t[4]||0)-u,h=ft(t[5]||0)-f,c=ft(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}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,f){var l="",e=[],s,c,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(i)&&(i=rg.test(i)?ft(i):r(i)),nt(i)&&(i=new Date(i)),!st(i)||!isFinite(i.getTime()))return i;while(u)c=ig.exec(u),c?(e=ar(e,c,1),u=e.pop()):(e.push(u),u=null);return o=i.getTimezoneOffset(),f&&(o=fe(f,o),i=ee(i,f,!0)),t(e,function(t){s=tg[t];l+=s?s(i,n.DATETIME_FORMATS,o):t==="''"?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function ug(){return function(n,t){return u(t)&&(t=2),yr(n,t)}}function fg(){return function(n,t,i){return(t=Math.abs(Number(t))===Infinity?Number(t):ft(t),it(t))?n:(nt(n)&&(n=n.toString()),!ti(n))?n:(i=!i||isNaN(i)?0:ft(i),i=i<0?Math.max(0,n.length+i):i,t>=0?ts(n,i,i+t):i===0?ts(n,t,n.length):ts(n,Math.max(0,i+t),i))}}function ts(n,t,i){return h(n)?n.slice(t,i):ki.call(n,t,i)}function fa(n){function r(t){return t.map(function(t){var r=1,i=oi,u;return e(t)?i=t:h(t)&&((t.charAt(0)==="+"||t.charAt(0)==="-")&&(r=t.charAt(0)==="-"?-1:1,t=t.substring(1)),t!==""&&(i=n(t),i.constant&&(u=i(),i=function(n){return n[u]}))),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function u(n){return e(n.valueOf)&&(n=n.valueOf(),t(n))?n:(gf(n)&&(n=n.toString(),t(n)),n)}function f(n,t){var i=typeof n;return n===null?i="null":i==="object"&&(n=u(n)),{value:n,type:i,index:t}}function i(n,t){var e=0,u=n.type,f=t.type,i,r;return u===f?(i=n.value,r=t.value,u==="string"?(i=i.toLowerCase(),r=r.toLowerCase()):u==="object"&&(o(i)&&(i=n.index),o(r)&&(r=t.index)),i!==r&&(e=i<r?-1:1)):e=u==="undefined"?1:f==="undefined"?-1:u==="null"?1:f==="null"?-1:u<f?-1:1,e}return function(n,t,u,o){function y(n,t){return{value:n,tieBreaker:{value:t,type:"number",index:t},predicateValues:s.map(function(i){return f(i.get(n),t)})}}function p(n,t){for(var u,r=0,f=s.length;r<f;r++)if(u=a(n.predicateValues[r],t.predicateValues[r]),u)return u*s[r].descending*h;return(a(n.tieBreaker,t.tieBreaker)||i(n.tieBreaker,t.tieBreaker))*h}if(n==null)return n;if(!ti(n))throw l("orderBy")("notarray","Expected array but received: {0}",n);c(t)||(t=[t]);t.length===0&&(t=["+"]);var s=r(t),h=u?-1:1,a=e(o)?o:i,v=Array.prototype.map.call(n,y);return v.sort(p),v.map(function(n){return n.value})}}function ir(n){return e(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ot(n)}function eg(n,t){n.$name=t}function hf(n,t,i,r,u){this.$$controls=[];this.$error={};this.$$success={};this.$pending=undefined;this.$name=u(t.name||t.ngForm||"")(i);this.$dirty=!1;this.$pristine=!0;this.$valid=!0;this.$invalid=!1;this.$submitted=!1;this.$$parentForm=uu;this.$$element=n;this.$$animate=r;ca(this)}function ca(n){n.$$classCache={};n.$$classCache[rv]=!(n.$$classCache[eu]=n.$$element.hasClass(eu))}function la(n){function o(n,t,i,u){n[t]||(n[t]={});r(n[t],i,u)}function s(n,i,r,u){n[i]&&t(n[i],r,u);aa(n[i])&&(n[i]=undefined)}function i(n,t,i){i&&!n.$$classCache[t]?(n.$$animate.addClass(n.$$element,t),n.$$classCache[t]=!0):!i&&n.$$classCache[t]&&(n.$$animate.removeClass(n.$$element,t),n.$$classCache[t]=!1)}function f(n,t,r){t=t?"-"+fh(t,"-"):"";i(n,eu+t,r===!0);i(n,rv+t,r===!1)}var e=n.clazz,r=n.set,t=n.unset;e.prototype.$setValidity=function(n,e,h){u(e)?o(this,"$pending",n,h):s(this,"$pending",n,h);dt(e)?e?(t(this.$error,n,h),r(this.$$success,n,h)):(r(this.$error,n,h),t(this.$$success,n,h)):(t(this.$error,n,h),t(this.$$success,n,h));this.$pending?(i(this,oa,!0),this.$valid=this.$invalid=undefined,f(this,"",null)):(i(this,oa,!1),this.$valid=aa(this.$error),this.$invalid=!this.$valid,f(this,"",this.$valid));var c;c=this.$pending&&this.$pending[n]?undefined:this.$error[n]?!1:this.$$success[n]?!0:null;f(this,n,c);this.$$parentForm.$setValidity(n,c,this)}}function aa(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function us(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function yg(n,t,i,r,u,f){rr(n,t,i,r,u,f);us(r)}function rr(n,t,i,r,f,e){var c=a(t[0].type),h,o,s,l;if(!f.android){h=!1;t.on("compositionstart",function(){h=!0});t.on("compositionupdate",function(n){(u(n.data)||n.data==="")&&(h=!1)});t.on("compositionend",function(){h=!1;s()})}if(s=function(n){if(o&&(e.defer.cancel(o),o=null),!h){var u=t.val(),f=n&&n.type;c==="password"||i.ngTrim&&i.ngTrim==="false"||(u=y(u));(r.$viewValue!==u||u===""&&r.$$hasNativeValidators)&&r.$setViewValue(u,f)}},f.hasEvent("input"))t.on("input",s);else{l=function(n,t,i){o||(o=e.defer(function(){o=null;t&&t.value===i||s(n)}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||l(n,this,this.value)});if(f.hasEvent("paste"))t.on("paste cut drop",l)}t.on("change",s);if(ba[c]&&r.$$hasNativeValidators&&c===i.type)t.on(vg,function(n){if(!o){var t=this[as],i=t.badInput,r=t.typeMismatch;o=e.defer(function(){o=null;(t.badInput!==i||t.typeMismatch!==r)&&s(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function pg(n,t){var i;if(st(n))return n;if(h(n)&&(is.lastIndex=0,i=is.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=na(r),l=(s-1)*7;return t&&(u=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,c.getDate()+l,u,f,e,o)}return NaN}function cf(n,i){return function(r,u){var e,f,o;if(st(r))return r;if(h(r)){if(r.charAt(0)==='"'&&r.charAt(r.length-1)==='"'&&(r=r.substring(1,r.length-1)),hg.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r),e)return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),o=new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,f.sss*1e3||0),f.yyyy<100&&o.setFullYear(f.yyyy),o}return NaN}}function fu(n,t,i,f){return function(e,o,s,c,l,a,v,y){function it(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function nt(n){return r(n)&&!st(n)?rt(n)||undefined:n}function rt(n,t){var u=c.$options.getOption("timezone"),r;return w&&w!==u&&(t=nh(t,fe(w))),r=i(n,t),!isNaN(r)&&u&&(r=ee(r,u)),r}function ut(n,t){var r=f,i;return tt&&h(c.$options.getOption("timeSecondsFormat"))&&(r=f.replace("ss.sss",c.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),i=v("date")(n,r,t),tt&&c.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}var tt,p,w,b,k,d,g;fs(e,o,s,c,n);rr(e,o,s,c,l,a);tt=n==="time"||n==="datetimelocal";c.$parsers.push(function(i){return c.$isEmpty(i)?null:t.test(i)?rt(i,p):(c.$$parserName=n,undefined)});c.$formatters.push(function(n){if(n&&!st(n))throw ou("datefmt","Expected `{0}` to be a date",n);if(it(n)){p=n;var t=c.$options.getOption("timezone");return t&&(w=t,p=ee(p,t,!0)),ut(n,t)}return p=null,w=null,""});(r(s.min)||s.ngMin)&&(b=s.min||y(s.ngMin)(e),k=nt(b),c.$validators.min=function(n){return!it(n)||u(k)||i(n)>=k},s.$observe("min",function(n){n!==b&&(k=nt(n),b=n,c.$validate())}));(r(s.max)||s.ngMax)&&(d=s.max||y(s.ngMax)(e),g=nt(d),c.$validators.max=function(n){return!it(n)||u(g)||i(n)<=g},s.$observe("max",function(n){n!==d&&(g=nt(n),d=n,c.$validate())}))}}function fs(n,t,i,r,u){var f=t[0],e=r.$$hasNativeValidators=o(f.validity);e&&r.$parsers.push(function(n){var i=t.prop(as)||{};return i.badInput||i.typeMismatch?(r.$$parserName=u,undefined):n})}function ka(n){n.$parsers.push(function(t){return n.$isEmpty(t)?null:ag.test(t)?parseFloat(t):(n.$$parserName="number",undefined)});n.$formatters.push(function(t){if(!n.$isEmpty(t)){if(!nt(t))throw ou("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function ct(n){return r(n)&&!nt(n)&&(n=parseFloat(n)),it(n)?undefined:n}function es(n){return(n|0)===n}function os(n){var t=n.toString(),r=t.indexOf("."),i;return r===-1?-1<n&&n<1&&(i=/e-(\d+)$/.exec(t),i)?Number(i[1]):0:t.length-r-1}function da(n,t,i){var r=Number(n),u=!es(r),f=!es(t),e=!es(i);if(u||f||e){var s=u?os(r):0,h=f?os(t):0,c=e?os(i):0,l=Math.max(s,h,c),o=Math.pow(10,l);r=r*o;t=t*o;i=i*o;u&&(r=Math.round(r));f&&(t=Math.round(t));e&&(i=Math.round(i))}return(r-t)%i==0}function wg(n,t,i,f,e,o,s,h){var c,l,a,v,y,p;fs(n,t,i,f,"number");ka(f);rr(n,t,i,f,e,o);(r(i.min)||i.ngMin)&&(l=i.min||h(i.ngMin)(n),c=ct(l),f.$validators.min=function(n,t){return f.$isEmpty(t)||u(c)||t>=c},i.$observe("min",function(n){n!==l&&(c=ct(n),l=n,f.$validate())}));(r(i.max)||i.ngMax)&&(a=i.max||h(i.ngMax)(n),v=ct(a),f.$validators.max=function(n,t){return f.$isEmpty(t)||u(v)||t<=v},i.$observe("max",function(n){n!==a&&(v=ct(n),a=n,f.$validate())}));(r(i.step)||i.ngStep)&&(y=i.step||h(i.ngStep)(n),p=ct(y),f.$validators.step=function(n,t){return f.$isEmpty(t)||u(p)||da(t,c||0,p)},i.$observe("step",function(n){n!==y&&(p=ct(n),y=n,f.$validate())}))}function bg(n,t,i,f,e,o){function v(n,r){t.attr(n,i[n]);var u=i[n];i.$observe(n,function(n){n!==u&&(u=n,r(n))})}function k(n){if(h=ct(n),!it(f.$modelValue))if(s){var i=t.val();h>i&&(i=h,t.val(i));f.$setViewValue(i)}else f.$validate()}function d(n){if(c=ct(n),!it(f.$modelValue))if(s){var i=t.val();c<i&&(t.val(c),i=c<h?h:c);f.$setViewValue(i)}else f.$validate()}function g(n){(l=ct(n),it(f.$modelValue))||(s?f.$viewValue!==t.val()&&f.$setViewValue(t.val()):f.$validate())}fs(n,t,i,f,"range");ka(f);rr(n,t,i,f,e,o);var s=f.$$hasNativeValidators&&t[0].type==="range",h=s?0:undefined,c=s?100:undefined,l=s?1:undefined,a=t[0].validity,p=r(i.min),w=r(i.max),b=r(i.step),y=f.$render;f.$render=s&&r(a.rangeUnderflow)&&r(a.rangeOverflow)?function(){y();f.$setViewValue(t.val())}:y;p&&(h=ct(i.min),f.$validators.min=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(h)||t>=h},v("min",k));w&&(c=ct(i.max),f.$validators.max=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(c)||t<=c},v("max",d));b&&(l=ct(i.step),f.$validators.step=s?function(){return!a.stepMismatch}:function(n,t){return f.$isEmpty(t)||u(l)||da(t,h||0,l)},v("step",g))}function kg(n,t,i,r,u,f){rr(n,t,i,r,u,f);us(r);r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||cg.test(i)}}function dg(n,t,i,r,u,f){rr(n,t,i,r,u,f);us(r);r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||lg.test(i)}}function gg(n,t,i,r){var f=!i.ngTrim||y(i.ngTrim)!=="false",e;u(i.name)&&t.attr("name",hu());e=function(n){var u;t[0].checked&&(u=i.value,f&&(u=y(u)),r.$setViewValue(u,n&&n.type))};t.on("change",e);r.$render=function(){var n=i.value;f&&(n=y(n));t[0].checked=n===r.$viewValue};i.$observe("value",r.$render)}function ga(n,t,i,u,f){var e;if(r(u)){if(e=n(u),!e.constant)throw ou("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,u);return e(t)}return f}function nn(n,t,i,r,u,f,e,o){var s=ga(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ga(o,n,"ngFalseValue",i.ngFalseValue,!1),c=function(n){r.$setViewValue(t[0].checked,n&&n.type)};t.on("change",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n===!1};r.$formatters.push(function(n){return vt(n,s)});r.$parsers.push(function(n){return n?s:h})}function ss(n,i){function f(n,t){var u,i,f,r;if(!n||!n.length)return[];if(!t||!t.length)return n;u=[];n:for(i=0;i<n.length;i++){for(f=n[i],r=0;r<t.length;r++)if(f===t[r])continue n;u.push(f)}return u}function r(n){return n&&n.split(" ")}function e(n){if(!n)return n;var t=n;return c(n)?t=n.map(e).join(" "):o(n)?t=Object.keys(n).filter(function(t){return n[t]}).join(" "):h(n)||(t=n+""),t}n="ngClass"+n;var u;return["$parse",function(o){return{restrict:"AC",link:function(s,h,c){function w(n){n=v(r(n),1);c.$addClass(n)}function b(n){n=v(r(n),-1);c.$removeClass(n)}function k(n,t){var i=r(n),u=r(t),e=f(i,u),o=f(u,i),s=v(e,-1),h=v(o,1);c.$addClass(h);c.$removeClass(s)}function v(n,i){var r=[];return t(n,function(n){(i>0||l[n])&&(l[n]=(l[n]||0)+i,l[n]===+(i>0)&&r.push(n))}),r.join(" ")}function d(n){n===i?w(a):b(a);y=n}function g(n){y===i&&k(a,n);a=n}var l=h.data("$classCounts"),y=!0,a;l||(l=p(),h.data("$classCounts",l));n!=="ngClass"&&(u||(u=o("$index",function(n){return n&1})),s.$watch(u,d));s.$watch(o(c[n],e),g)}}}]}function iv(n,t,i,r,u,f){return{restrict:"A",compile:function(e,o){var s=n(o[r]);return function(n,r){r.on(u,function(r){var u=function(){s(n,{$event:r})};if(t.$$phase)if(f)n.$evalAsync(u);else try{u()}catch(e){i(e)}else n.$apply(u)})}}}}function af(n,t,i,r,u,f,e,o,s){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=undefined;this.$name=s(i.name||"",!1)(n);this.$$parentForm=uu;this.$options=vf;this.$$updateEvents="";this.$$updateEventHandler=this.$$updateEventHandler.bind(this);this.$$parsedNgModel=u(i.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=undefined;this.$$parserName="parse";this.$$currentValidationRunId=0;this.$$scope=n;this.$$rootScope=n.$root;this.$$attr=i;this.$$element=r;this.$$animate=f;this.$$timeout=e;this.$$parse=u;this.$$q=o;this.$$exceptionHandler=t;ca(this);gn(this)}function gn(n){n.$$scope.$watch(function(t){var i=n.$$ngModelGet(t);return i!==n.$modelValue&&(n.$modelValue===n.$modelValue||i===i)&&n.$$setModelValue(i),i})}function cs(n){this.$$options=n}function cv(n,i){t(i,function(t,i){r(n[i])||(n[i]=t)})}function bi(n,t){n.prop("selected",t);n.attr("selected",t)}function kv(n,t,i){if(!n)return undefined;if(h(n)&&(n=new RegExp("^"+n+"$")),!n.test)throw l("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,n,kt(i));return n}function yf(n){var t=ft(n);return it(t)?-1:t}var fr={objectMaxDepth:5,urlErrorParamsEnabled:!0},ls=/^\/(.+)\/([a-z]*)$/,as="validity",lt=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},su=function(n){return h(n)?n.toUpperCase():n},bt,f,er,ki=[].slice,gv=[].splice,ny=[].push,rt=Object.prototype.toString,vs=Object.getPrototypeOf,ei=l("ng"),ut=n.angular||(n.angular={}),wf,ty=0,it,bs,y,te,ii,lr,gs,hi,ih,uh,he,oh,ci,sh,lh,li,br,ge,no,dh,w,rf,to,fc,io,ro,ui,ac,yc,bc,pi,dc,nu,nl,tu,i,lo,ao,ll,al,g,wo,tr,vl,ra,ua,ea,ru,rs,ov,vf,sv,hv;bt=n.document.documentMode;it=Number.isNaN||function(n){return n!==n};s.$inject=[];oi.$inject=[];bs=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;y=function(n){return h(n)?n.trim():n};te=function(n){return n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ii=function(){function u(){try{return new Function(""),!1}catch(n){return!0}}var i,t;return r(ii.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ii.rules={noUnsafeEval:!t||t.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!t||t.indexOf("no-inline-style")!==-1}):ii.rules={noUnsafeEval:u(),noInlineStyle:!1}),ii.rules};lr=function(){if(r(lr.name_))return lr.name_;for(var i,e=hi.length,u,f,t=0;t<e;++t)if(u=hi[t],i=n.document.querySelector("["+u.replace(":","\\:")+"jq]"),i){f=i.getAttribute(u+"jq");break}return lr.name_=f};gs=/:/g;hi=["ng-","data-ng-","ng:","x-ng-"];ih=ly(n.document);uh=/[A-Z]/g;he=!1;var gt=1,by=2,ri=3,wr=8,le=9,ae=11;oh={full:"1.7.8",major:1,minor:7,dot:8,codeName:"enthusiastic-oblation"};k.expando="ng339";ci=k.cache={};sh=1;k._data=function(n){return this.cache[n[this.expando]]||{}};var tp=/-([a-z])/g,ip=/^-ms-/,vu={mouseleave:"mouseout",mouseenter:"mouseover"},ve=l("jqLite");var up=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,fp=/<|&#?\w+;/,ep=/<([\w:-]+)/,op=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,pt={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,"",""]};pt.optgroup=pt.option;pt.tbody=pt.tfoot=pt.colgroup=pt.caption=pt.thead;pt.th=pt.td;lh=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};li=k.prototype={ready:bh,toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?f(this[n]):f(this[this.length+n])},length:0,push:ny,sort:[].sort,splice:[].splice};br={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){br[a(n)]=n});ge={};t("input,select,option,textarea,button,form,details".split(","),function(n){ge[n]=!0});no={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};t({data:ke,removeData:be,hasData:sp,cleanData:function(n){for(var t=0,i=n.length;t<i;t++)be(n[t]),yh(n[t])}},function(n,t){k[t]=n});t({data:ke,inheritedData:gu,scope:function(n){return f.data(n,"$scope")||gu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:ph,injector:function(n){return gu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:bu,css:function(n,t,i){if(t=rp(t),r(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var u,o=n.nodeType,f,e;if(o!==ri&&o!==by&&o!==wr&&n.getAttribute)if(f=a(t),e=br[f],r(i))i===null||i===!1&&e?n.removeAttribute(t):n.setAttribute(t,e?f:i);else return u=n.getAttribute(t),e&&u!==null&&(u=f),u===null?undefined:u},prop:function(n,t,i){if(r(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(u(t)){var i=n.nodeType;return i===gt||i===ri?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(u(i)){if(n.multiple&&at(n)==="select"){var r=[];return t(n.options,function(n){n.selected&&r.push(n.value||n.text)}),r}return n.value}n.value=i},html:function(n,t){if(u(t))return n.innerHTML;pu(n,!0);n.innerHTML=t},empty:wh},function(n,t){k.prototype[t]=function(t,i){var r,h,e=this.length,f,l,s,c;if(n!==wh&&u(n.length===2&&n!==bu&&n!==ph?t:i)){if(o(t)){for(r=0;r<e;r++)if(n===ke)n(this[r],t);else for(h in t)n(this[r],h,t[h]);return this}for(f=n.$dv,l=u(f)?Math.min(e,1):e,s=0;s<l;s++)c=n(this[s],t,i),f=f?f+c:c;return f}for(r=0;r<e;r++)n(this[r],t,i);return this}});t({removeData:be,on:function(n,t,i,u){if(r(u))throw ve("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(pe(n)){var f=wu(n,!0),e=f.events,o=f.handle;o||(o=f.handle=vp(n,e));for(var h=t.indexOf(" ")>=0?t.split(" "):[t],c=h.length,s=function(t,r,u){var f=e[t];f||(f=e[t]=[],f.specialHandlerWrapper=r,t==="$destroy"||u||n.addEventListener(t,o));f.push(i)};c--;)t=h[c],vu[t]?(s(vu[t],pp),s(t,undefined,!0)):s(t)}},off:yh,one:function(n,t,i){n=f(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;pu(n);t(new k(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){n.nodeType===gt&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var r=n.nodeType,i,u,f;if(r===gt||r===ae)for(t=new k(t),i=0,u=t.length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===gt){var r=n.firstChild;t(new k(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){cp(n,f(t).eq(0).clone()[0])},remove:nf,detach:function(n){nf(n,!0)},after:function(n,t){var u=n,f=n.parentNode,i,e,r;if(f)for(t=new k(t),i=0,e=t.length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:du,removeClass:ku,toggleClass:function(n,i,r){i&&t(i.split(" "),function(t){var i=r;u(i)&&(i=!bu(n,t));(i?du:ku)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==ae?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:we,triggerHandler:function(n,i,r){var u,f,e,o=i.type||i,h=wu(n),c=h&&h.events,l=c&&c[o];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:s,type:o,target:n},i.type&&(u=v(u,i)),f=yt(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){k.prototype[t]=function(t,i,e){for(var o,s=0,h=this.length;s<h;s++)u(o)?(o=n(this[s],t,i,e),r(o)&&(o=f(o))):de(o,n(this[s],t,i,e));return r(o)?o:this}});k.prototype.bind=k.prototype.on;k.prototype.unbind=k.prototype.off;dh=Object.create(null);gh.prototype={_idx:function(n){return n!==this._lastKey&&(this._lastKey=n,this._lastIndex=this._keys.indexOf(n)),this._lastIndex},_transformKey:function(n){return it(n)?dh:n},get:function(n){n=this._transformKey(n);var t=this._idx(n);if(t!==-1)return this._values[t]},has:function(n){n=this._transformKey(n);var t=this._idx(n);return t!==-1},set:function(n,t){n=this._transformKey(n);var i=this._idx(n);i===-1&&(i=this._lastIndex=this._keys.length);this._keys[i]=n;this._values[i]=t},"delete":function(n){n=this._transformKey(n);var t=this._idx(n);return t===-1?!1:(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var tf=gh,bp=[function(){this.$get=[function(){return tf}]}],kp=/^([^(]+?)=>/,dp=/^[^(]*\(\s*([^)]*)\)/m,gp=/,/,nw=/^\s*(_?)(\S+?)\1\s*$/,tw=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ai=l("$injector");kr.$$annotate=rw;var ic=l("$animate"),fw=1,rc="ng-animate";var sw=function(){this.$get=s},hw=function(){var n=new tf,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=ow(i.attr("class")),r="",u="";t(f,function(n,t){var i=!!e[t];n!==i&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&du(n,r);u&&ku(n,u)});n.delete(i)}});i.length=0}function o(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.set(t,s),i.push(t),i.length===1&&u.$$postDigest(e))}return{enabled:s,on:s,off:s,pin:s,push:function(n,t,i,u){u&&u();i=i||{};i.from&&n.css(i.from);i.to&&n.css(i.to);(i.addClass||i.removeClass)&&o(n,i.addClass,i.removeClass);var f=new r;return f.complete(),f}}}]},cw=["$provide",function(n){var r=this,t=null,i=null;this.$$registeredAnimations=Object.create(null);this.register=function(t,i){if(t&&t.charAt(0)!==".")throw ic("notcsel","Expecting class selector starting with '.' got '{0}'.",t);var u=t+"-animation";r.$$registeredAnimations[t.substr(1)]=u;n.factory(u,i)};this.customFilter=function(n){return arguments.length===1&&(i=e(n)?n:null),i};this.classNameFilter=function(n){if(arguments.length===1&&(t=n instanceof RegExp?n:null,t)){var i=new RegExp("[(\\s|\\/)]"+rc+"[(\\s|\\/)]");if(i.test(t.toString())){t=null;throw ic("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',rc);}}return t};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=ew(i);!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.cancel&&n.cancel()},enter:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",vi(e))},move:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",vi(e))},leave:function(t,i){return n.push(t,"leave",vi(i),function(){t.remove()})},addClass:function(t,i,r){return r=vi(r),r.addClass=dr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=vi(r),r.removeClass=dr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=vi(u),u.addClass=dr(u.addClass,i),u.removeClass=dr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=vi(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,u=u||"ng-inline-animate",f.tempClasses=dr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],lw=function(){this.$get=["$$rAF",function(n){function i(i){(t.push(i),t.length>1)||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},aw=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r(),i=function(n){f(n,0,!1)};this._doneCallbacks=[];this._tick=function(n){u()?i(n):t(n)};this._state=0}var h=0,c=1,o=2;return e.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},e.all=function(n,i){function f(t){r=r&&t;++u===n.length&&i(r)}var u=0,r=!0;t(n,function(n){n.done(f)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===o?n():this._doneCallbacks.push(n)},progress:s,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===h&&(t._state=c,t._tick(function(){t._resolve(n)}))},_resolve:function(n){this._state!==o&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=o)}},e}]},vw=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){s();e||f.complete();e=!0}),f}function s(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null)}var u=r||{},e,f;return u.$$prepared||(u=si(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};w=l("$compile");rf=new gw;uc.$inject=["$provide","$$sanitizeUriProvider"];uf.prototype.isFirstChange=function(){return this.previousValue===rf};to=/^((?:x|data)[:\-_])/i;fc=/[:\-_]+(.)/g;io=l("$controller");ro=/^(\S+)(\s+as\s+([\w$]+))?$/;var fb=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof f&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},sc="application/json",uo={"Content-Type":sc+";charset=utf-8"},eb=/^\[|^\{(?!\{)/,ob={"[":/]$/,"{":/}$/},sb=/^\)]\}',?\n/,ff=l("$http");ui=ut.$interpolateMinErr=l("$interpolate");ui.throwNoconcat=function(n){throw ui("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",n);};ui.interr=function(n,t){return ui("interr","Can't interpolate: {0}\n{1}",n,t.toString())};ac=l("$interval");var db=function(){this.$get=function(){function i(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var t=ut.callbacks,n={};return{createCallback:function(){var r="_"+(t.$$counter++).toString(36),u="angular.callbacks."+r,f=i(r);return n[u]=t[r]=f,u},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(i){var r=n[i];delete t[r.id];delete n[i]}}}},gb=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,nk={http:80,https:443,ftp:21},gr=l("$location");yc=/^\s*[\\/]{2,}/;bc={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=rk(this.$$path,this.$$search,this.$$hash);this.$$absUrl=this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation=!0},absUrl:ef("$$absUrl"),url:function(n){if(u(n))return this.$$url;var t=gb.exec(n);return(t[1]||n==="")&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||n==="")&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:ef("$$protocol"),host:ef("$$host"),port:ef("$$port"),path:kc("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)==="/"?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||nt(n))n=n.toString(),this.$$search=oe(n);else if(o(n))n=si(n,{}),t(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw gr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:u(i)||i===null?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:kc("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([wc,co,ho],function(n){n.prototype=Object.create(bc);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==ho||!this.$$html5)throw gr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=u(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});pi=l("$parse");dc={}.constructor.prototype.valueOf;nu=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){nu[n]=!0});nl={n:"\n",f:"\f",r:"\r",t:"\t",v:'\v',"'":"'",'"':'"'};tu=function(n){this.options=n};tu.prototype={constructor:tu,lex:function(n){var t,r;for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),t==='"'||t==="'")this.readString(t);else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var i=t+this.peek(),u=i+this.peek(2),o=nu[t],f=nu[i],e=nu[u];o||f||e?(r=e?u:f?i:t,this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return t.indexOf(n)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"&&typeof n=="string"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||n===" "},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||n==="$"},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return n.length===1?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),i>=55296&&i<=56319&&r>=56320&&r<=57343)?n+t:n:n},isExpOperator:function(n){return n==="-"||n==="+"||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var u=r(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw pi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,u,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),t==="."||this.isNumber(t))n+=t;else if(i=this.peek(),t==="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)==="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!=="e")break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,r,o;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)t==="u"?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):(o=nl[t],i=i+(o||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:e,constant:!0,value:i});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();if(this.expect("=")){if(!rl(n))throw pi("lval","Trying to assign a value to a non l-value");n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}}return n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=si(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)t.text==="("?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){for(var t=[n],r={type:i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var n=[];if(this.peekToken().text!==")")do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw pi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(this.tokens.length===0)throw pi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw pi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){var e=this.tokens[n],f=e.text;if(f===t||f===i||f===r||f===u||!t&&!i&&!r&&!u)return e}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return u?(this.tokens.shift(),u):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};lo=1;ao=2;fl.prototype={compile:function(n){var i=this,r,f,u,e,o,s;return this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},d(n,i.$filter),r="",this.stage="assign",(f=ul(n))&&(this.state.computing="assign",u=this.nextId(),this.recurse(f,u),this.return_(u),r="fn.assign="+this.generateFunction("assign","s,v,l")),e=il(n.body),i.stage="inputs",t(e,function(n,t){var r="fn"+t,u;i.state[r]={vars:[],body:[],own:{}};i.state.computing=r;u=i.nextId();i.recurse(n,u);i.return_(u);i.state.inputs.push({name:r,isPure:n.isPure});n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(n),o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",o)(this.$filter,gc,sk,tl),this.state=this.stage=undefined,s},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t.name+"="+r.generateFunction(t.name,"s"));t.isPure&&n.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),i.length&&n.push("fn.inputs=["+i.map(function(n){return n.name}).join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return(t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length)?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,u,f,e,o,h){var l,a,c=this,y,v,p;if(e=e||s,!h&&r(n.watchId)){u=u||this.nextId();this.if_("i",this.lazyAssign(u,this.computedMember("i",n.watchId)),this.lazyRecurse(n,u,f,e,o,!0));return}switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,undefined,undefined,function(n){a=n});i!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case i.Literal:v=this.escape(n.value);this.assign(u,v);e(u||v);break;case i.UnaryExpression:this.recurse(n.argument,undefined,undefined,function(n){a=n});v=n.operator+"("+this.ifDefined(a,0)+")";this.assign(u,v);e(v);break;case i.BinaryExpression:this.recurse(n.left,undefined,undefined,function(n){l=n});this.recurse(n.right,undefined,undefined,function(n){a=n});v=n.operator==="+"?this.plus(l,a):n.operator==="-"?this.ifDefined(l,0)+n.operator+this.ifDefined(a,0):"("+l+")"+n.operator+"("+a+")";this.assign(u,v);e(v);break;case i.LogicalExpression:u=u||this.nextId();c.recurse(n.left,u);c.if_(n.operator==="&&"?u:c.not(u),c.lazyRecurse(n.right,u));e(u);break;case i.ConditionalExpression:u=u||this.nextId();c.recurse(n.test,u);c.if_(u,c.lazyRecurse(n.alternate,u),c.lazyRecurse(n.consequent,u));e(u);break;case i.Identifier:u=u||this.nextId();f&&(f.context=c.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);c.if_(c.stage==="inputs"||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_(c.stage==="inputs"||"s",function(){o&&o!==1&&c.if_(c.isNull(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(u,c.nonComputedMember("s",n.name))})},u&&c.lazyAssign(u,c.nonComputedMember("l",n.name)));e(u);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();u=u||this.nextId();c.recurse(n.object,l,undefined,function(){c.if_(c.notNull(l),function(){n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),o&&o!==1&&c.if_(c.not(c.computedMember(l,a)),c.lazyAssign(c.computedMember(l,a),"{}")),v=c.computedMember(l,a),c.assign(u,v),f&&(f.computed=!0,f.name=a)):(o&&o!==1&&c.if_(c.isNull(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),v=c.nonComputedMember(l,n.property.name),c.assign(u,v),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(u,"undefined")});e(u)},!!o);break;case i.CallExpression:u=u||this.nextId();n.filter?(a=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),v=a+"("+y.join(",")+")",c.assign(u,v),e(u)):(a=c.nextId(),l={},y=[],c.recurse(n.callee,a,l,function(){c.if_(c.notNull(a),function(){t(n.arguments,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v=l.name?c.member(l.context,l.name,l.computed)+"("+y.join(",")+")":a+"("+y.join(",")+")";c.assign(u,v)},function(){c.assign(u,"undefined")});e(u)}));break;case i.AssignmentExpression:a=this.nextId();l={};this.recurse(n.left,undefined,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,a);v=c.member(l.context,l.name,l.computed)+n.operator+a;c.assign(u,v);e(u||v)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v="["+y.join(",")+"]";this.assign(u,v);e(u||v);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(u=u||this.nextId(),this.assign(u,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;a=c.nextId();c.recurse(n.value,a);c.assign(c.member(u,l,n.computed),a)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?undefined:c.nextId(),undefined,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),v="{"+y.join(",")+"}",this.assign(u,v));e(u||v);break;case i.ThisExpression:this.assign(u,"s");e(u||"s");break;case i.LocalsExpression:this.assign(u,"l");e(u||"l");break;case i.NGValueParameter:this.assign(u,"v");e(u||"v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(n===!0)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},isNull:function(n){return n+"==null"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(nt(n))return n.toString();if(n===!0)return"true";if(n===!1)return"false";if(n===null)return"null";if(typeof n=="undefined")return"undefined";throw pi("esc","IMPOSSIBLE");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};el.prototype={compile:function(n){var f=this,h,e,o,i,r,u;return d(n,f.$filter),(h=ul(n))&&(e=this.recurse(h)),o=il(n.body),o&&(i=[],t(o,function(n,t){var r=f.recurse(n);r.isPure=n.isPure;n.input=r;i.push(r);n.watchId=t})),r=[],t(n.body,function(n){r.push(f.recurse(n.expression))}),u=n.body.length===0?s:n.body.length===1?r[0]:function(n,i){var u;return t(r,function(t){u=t(n,i)}),u},e&&(u.assign=function(n,t,i){return e(n,i,t)}),i&&(u.inputs=i),u},recurse:function(n,r,u){var o,e,s=this,f;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return e=this.recurse(n.argument),this["unary"+n.operator](e,r);case i.BinaryExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.LogicalExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return s.identifier(n.name,r,u);case i.MemberExpression:return o=this.recurse(n.object,!1,!!u),n.computed||(e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(o,e,r,u):this.nonComputedMember(o,e,r,u);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(s.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s,h=[],o=0;o<f.length;++o)h.push(f[o](n,t,i,u));return s=e.apply(undefined,h,u),r?{context:undefined,name:undefined,value:s}:s}:function(n,t,i,u){var s=e(n,t,i,u),h,c,o;if(s.value!=null){for(c=[],o=0;o<f.length;++o)c.push(f[o](n,t,i,u));h=s.value.apply(s.context,c)}return r?{value:h}:h};case i.AssignmentExpression:return o=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,t,i,u){var s=o(n,t,i,u),f=e(n,t,i,u);return s.context[s.name]=f,r?{value:f}:f};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(s.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:s.recurse(n.key),computed:!0,value:s.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:s.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,u,f,e){var o=n(i,u,f,e);return o=r(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,u,f,e){var o=n(i,u,f,e);return o=r(o)?-o:-0,t?{value:o}:o}},"unary!":function(n,t){return function(i,r,u,f){var e=!n(i,r,u,f);return t?{value:e}:e}},"binary+":function(n,t,i){return function(r,u,f,e){var s=n(r,u,f,e),h=t(r,u,f,e),o=tl(s,h);return i?{value:o}:o}},"binary-":function(n,t,i){return function(u,f,e,o){var s=n(u,f,e,o),h=t(u,f,e,o),c=(r(s)?s:0)-(r(h)?h:0);return i?{value:c}:c}},"binary*":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)*t(r,u,f,e);return i?{value:o}:o}},"binary/":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)/t(r,u,f,e);return i?{value:o}:o}},"binary%":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)%t(r,u,f,e);return i?{value:o}:o}},"binary===":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)===t(r,u,f,e);return i?{value:o}:o}},"binary!==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!==t(r,u,f,e);return i?{value:o}:o}},"binary==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)==t(r,u,f,e);return i?{value:o}:o}},"binary!=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!=t(r,u,f,e);return i?{value:o}:o}},"binary<":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<t(r,u,f,e);return i?{value:o}:o}},"binary>":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>t(r,u,f,e);return i?{value:o}:o}},"binary<=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<=t(r,u,f,e);return i?{value:o}:o}},"binary>=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>=t(r,u,f,e);return i?{value:o}:o}},"binary&&":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)&&t(r,u,f,e);return i?{value:o}:o}},"binary||":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)||t(r,u,f,e);return i?{value:o}:o}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o);return r?{value:s}:s}},value:function(n,t){return function(){return t?{context:undefined,name:undefined,value:n}:n}},identifier:function(n,t,i){return function(r,u){var f=u&&n in u?u:r,e;return i&&i!==1&&f&&f[n]==null&&(f[n]={}),e=f?f[n]:undefined,t?{context:f,name:n,value:e}:e}},computedMember:function(n,t,i,r){return function(u,f,e,o){var h=n(u,f,e,o),s,c;return h!=null&&(s=t(u,f,e,o),s=gc(s),r&&r!==1&&h&&!h[s]&&(h[s]={}),c=h[s]),i?{context:h,name:s,value:c}:c}},nonComputedMember:function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o),h;return r&&r!==1&&s&&s[t]==null&&(s[t]={}),h=s!=null?s[t]:undefined,i?{context:s,name:t,value:h}:h}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};of.prototype={constructor:of,parse:function(n){var t=this.getAst(n),i=this.astCompiler.compile(t.ast);return i.literal=lk(t.ast),i.constant=ak(t.ast),i.oneTime=t.oneTime,i},getAst:function(n){var t=!1;return n=n.trim(),n.charAt(0)===":"&&n.charAt(1)===":"&&(t=!0,n=n.substring(2)),{ast:this.ast.ast(n),oneTime:t}}};var fi=l("$sce"),b={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},dk=/_([a-z])/g;ll=l("$templateRequest");al=l("$timeout");g=n.document.createElement("a");wo=et(n.location.href);g.href="http://[::1]";vl=g.hostname==="[::1]";yl.$inject=["$document"];pl.$inject=["$provide"];var wl=22,bl=".",go="0";kl.$inject=["$locale"];dl.$inject=["$locale"];var tg={yyyy:tt("FullYear",4,0,!1,!0),yy:tt("FullYear",2,0,!0,!0),y:tt("FullYear",1,0,!1,!0),MMMM:iu("Month"),MMM:iu("Month",!0),MM:tt("Month",2,1),M:tt("Month",1,1),LLLL:iu("Month",!1,!0),dd:tt("Date",2),d:tt("Date",1),HH:tt("Hours",2),H:tt("Hours",1),hh:tt("Hours",2,-12),h:tt("Hours",1,-12),mm:tt("Minutes",2),m:tt("Minutes",1),ss:tt("Seconds",2),s:tt("Seconds",1),sss:tt("Milliseconds",3),EEEE:iu("Day"),EEE:iu("Day",!0),a:gd,Z:kd,ww:ta(2),w:ta(1),G:ns,GG:ns,GGG:ns,GGGG:ng},ig=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,rg=/^-?\d+$/;ia.$inject=["$locale"];ra=ot(a);ua=ot(su);fa.$inject=["$parse"];ea=ot({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if(t[0].nodeName.toLowerCase()==="a"){var i=rt.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});ru={};t(br,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if(n!=="multiple"){var i=wt("ng-"+t),u=r;n==="checked"&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});ru[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(no,function(n,t){ru[t]=function(){return{priority:100,link:function(n,i,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)==="/"){var u=r.ngPattern.match(ls);if(u){r.$set("ngPattern",new RegExp(u[1],u[2]));return}}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=wt("ng-"+n);ru[t]=["$sce",function(i){return{priority:99,link:function(r,u,f){var o=n,e=n;n==="href"&&rt.call(u.prop("href"))==="[object SVGAnimatedString]"&&(e="xlinkHref",f.$attr[e]="xlink:href",o=null);f.$set(t,i.getTrustedMediaUrl(f[t]));f.$observe(t,function(t){if(!t){n==="href"&&f.$set(e,null);return}f.$set(e,t);bt&&o&&u.prop(o,f[e])})}}}]});var uu={$addControl:s,$getControls:ot([]),$$renameControl:eg,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s,$$setSubmitted:s},oa="ng-pending",sa="ng-submitted";hf.$inject=["$element","$attrs","$scope","$animate","$interpolate"];hf.prototype={$rollbackViewValue:function(){t(this.$$controls,function(n){n.$rollbackViewValue()})},$commitViewValue:function(){t(this.$$controls,function(n){n.$commitViewValue()})},$addControl:function(n){gi(n.$name,"input");this.$$controls.push(n);n.$name&&(this[n.$name]=n);n.$$parentForm=this},$getControls:function(){return yt(this.$$controls)},$$renameControl:function(n,t){var i=n.$name;this[i]===n&&delete this[i];this[t]=n;n.$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name];t(this.$pending,function(t,i){this.$setValidity(i,null,n)},this);t(this.$error,function(t,i){this.$setValidity(i,null,n)},this);t(this.$$success,function(t,i){this.$setValidity(i,null,n)},this);cr(this.$$controls,n);n.$$parentForm=uu},$setDirty:function(){this.$$animate.removeClass(this.$$element,ur);this.$$animate.addClass(this.$$element,lf);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,ur,lf+" "+sa);this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;t(this.$$controls,function(n){n.$setPristine()})},$setUntouched:function(){t(this.$$controls,function(n){n.$setUntouched()})},$setSubmitted:function(){for(var n=this;n.$$parentForm&&n.$$parentForm!==uu;)n=n.$$parentForm;n.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,sa);this.$submitted=!0;t(this.$$controls,function(n){n.$$setSubmitted&&n.$$setSubmitted()})}};la({clazz:hf,set:function(n,t,i){var r=n[t],u;r?(u=r.indexOf(i),u===-1&&r.push(i)):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(cr(r,i),r.length===0&&delete n[t])}});var ha=function(n){return["$timeout","$parse",function(t,i){function r(n){return n===""?i('this[""]').assign:i(n).assign||s}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:hf,compile:function(i,u){i.addClass(ur).addClass(eu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var o=e[0],c,l,h;if(!("action"in u)){c=function(t){n.$apply(function(){o.$commitViewValue();o.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c)},0,!1)})}l=e[1]||o.$$parentForm;l.$addControl(o);h=f?r(o.$name):s;f&&(h(n,o),u.$observe(f,function(t){o.$name!==t&&(h(n,undefined),o.$$parentForm.$$renameControl(o,t),h=r(o.$name),h(n,o))}));i.on("$destroy",function(){o.$$parentForm.$removeControl(o);h(n,undefined);v(o,uu)})}}}}}]},og=ha(),sg=ha(!0);var hg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,cg=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,lg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,ag=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,va=/^(\d{4,})-(\d{2})-(\d{2})$/,ya=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,is=/^(\d{4,})-W(\d\d)$/,pa=/^(\d{4,})-(\d\d)$/,wa=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,vg="keydown wheel mousedown",ba=p();t("date,datetime-local,month,time,week".split(","),function(n){ba[n]=!0});rs={text:yg,date:fu("date",va,cf(va,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fu("datetimelocal",ya,cf(ya,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fu("time",wa,cf(wa,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fu("week",is,pg,"yyyy-Www"),month:fu("month",pa,cf(pa,["yyyy","MM"]),"yyyy-MM"),number:wg,url:kg,email:dg,radio:gg,range:bg,checkbox:nn,hidden:s,button:s,submit:s,reset:s,file:s};var nv=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(rs[a(e.type)]||rs.text)(u,f,e,o[0],t,n,i,r)}}}}],tn=function(){var n={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(n){this.setAttribute("value",n)}};return{restrict:"E",priority:200,compile:function(t,i){if(a(i.type)==="hidden")return{pre:function(t,i){var r=i[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling);Object.defineProperty&&Object.defineProperty(r,"value",n)}}}}},rn=/^(true|false|\d+)$/,un=function(){function n(n,t,i){var u=r(i)?i:bt===9?"":null;n.prop("value",u);t.$set("value",i)}return{restrict:"A",priority:100,compile:function(t,i){return rn.test(i.ngValue)?function(t,i,r){var u=t.$eval(r.ngValue);n(i,r,u)}:function(t,i,r){t.$watch(r.ngValue,function(t){n(i,r,t)})}}}},fn=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,r){n.$$addBindingInfo(i,r.ngBind);i=i[0];t.$watch(r.ngBind,function(n){i.textContent=ce(n)})}}}}],en=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,r,f){var e=n(r.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(r,e.expressions);r=r[0];f.$observe("ngBindTemplate",function(n){r.textContent=u(n)?"":n})}}}}],on=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],sn=ot({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var hn=ss("",!0),cn=ss("Odd",0),ln=ss("Even",1),an=ir({compile:function(n,t){t.$set("ngCloak",undefined);n.removeClass("ng-cloak")}}),vn=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],tv={},yn={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=wt("ng-"+n);tv[t]=["$parse","$rootScope","$exceptionHandler",function(i,r,u){return iv(i,r,u,t,n,yn[n])}]});var pn=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=au(h.clone),n.leave(o).done(function(n){n!==!1&&(o=null)}),h=null))})}}}],wn=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(u,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(u,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).done(function(n){n!==!1&&(v=null)}),v=y,y=null)};u.$watch(o,function(o){var v=function(n){n!==!1&&r(e)&&(!e||u.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,r;u.$$destroyed||h===p&&(t=u.$new(),c.template=n,r=l(t,function(n){w();i.enter(n,null,f).done(v)}),a=t,y=r,a.$emit("$includeContentLoaded",o),u.$eval(s))},function(){u.$$destroyed||h===p&&(w(),u.$emit("$includeContentError",o))}),u.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],bn=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(rt.call(r[0]).match(/SVG/)){r.empty();t(ch(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});return}r.html(f.template);t(r.contents())(i)}}}],kn=ir({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),dn=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,r,f){var e=r.ngList||", ",o=r.ngTrim!=="false",s=o?y(e):e,h=function(n){if(!u(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}};f.$parsers.push(h);f.$formatters.push(function(n){return c(n)?n.join(e):undefined});f.$isEmpty=function(n){return!n||!n.length}}}},eu="ng-valid",rv="ng-invalid",ur="ng-pristine",lf="ng-dirty",hs="ng-untouched",uv="ng-touched",fv="ng-empty",ev="ng-not-empty",ou=l("ngModel");af.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];af.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var i=this.$$parsedNgModel(t);return e(i)&&(i=n(t)),i};this.$$ngModelSet=function(n,i){e(this.$$parsedNgModel(n))?t(n,{$$$p:i}):this.$$parsedNgModelAssign(n,i)}}else if(!this.$$parsedNgModel.assign)throw ou("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,kt(this.$$element));},$render:s,$isEmpty:function(n){return u(n)||n===""||n===null||n!==n},$$updateEmptyClasses:function(n){this.$isEmpty(n)?(this.$$animate.removeClass(this.$$element,ev),this.$$animate.addClass(this.$$element,fv)):(this.$$animate.removeClass(this.$$element,fv),this.$$animate.addClass(this.$$element,ev))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,lf);this.$$animate.addClass(this.$$element,ur)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,ur);this.$$animate.addClass(this.$$element,lf);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,hs,uv)},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,uv,hs)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!it(this.$modelValue)){var i=this.$$lastCommittedViewValue,t=this.$$rawModelValue,r=this.$valid,u=this.$modelValue,f=this.$options.getOption("allowInvalid"),n=this;this.$$runValidators(t,i,function(i){f||r===i||(n.$modelValue=i?t:undefined,n.$modelValue!==u&&n.$$writeModelToScope())})}},$$runValidators:function(n,i,r){function c(){var n=f.$$parserName;if(u(f.$$parserValid))e(n,null);else return f.$$parserValid||(t(f.$validators,function(n,t){e(t,null)}),t(f.$asyncValidators,function(n,t){e(t,null)})),e(n,f.$$parserValid),f.$$parserValid;return!0}function l(){var r=!0;return(t(f.$validators,function(t,u){var f=Boolean(t(n,i));r=r&&f;e(u,f)}),!r)?(t(f.$asyncValidators,function(n,t){e(t,null)}),!1):!0}function a(){var r=[],u=!0;t(f.$asyncValidators,function(t,f){var o=t(n,i);if(!cu(o))throw ou("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);e(f,undefined);r.push(o.then(function(){e(f,!0)},function(){u=!1;e(f,!1)}))});r.length?f.$$q.all(r).then(function(){o(u)},s):o(!0)}function e(n,t){h===f.$$currentValidationRunId&&f.$setValidity(n,t)}function o(n){h===f.$$currentValidationRunId&&r(n)}this.$$currentValidationRunId++;var h=this.$$currentValidationRunId,f=this;if(!c()){o(!1);return}if(!l()){o(!1);return}a()},$commitViewValue:function(){var n=this.$viewValue;(this.$$timeout.cancel(this.$$pendingDebounce),this.$$lastCommittedViewValue!==n||n===""&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(n),this.$$lastCommittedViewValue=n,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){i.$modelValue!==f&&i.$$writeModelToScope()}var o=this.$$lastCommittedViewValue,n=o,i=this,t,f,r;if(this.$$parserValid=u(n)?undefined:!0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(t=0;t<this.$parsers.length;t++)if(n=this.$parsers[t](n),u(n)){this.$$parserValid=!1;break}it(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));f=this.$modelValue;r=this.$options.getOption("allowInvalid");this.$$rawModelValue=n;r&&(this.$modelValue=n,e());this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){r||(i.$modelValue=t?n:undefined,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);t(this.$viewChangeListeners,function(n){try{n()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(n,t){this.$viewValue=n;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(n){var t=this.$options.getOption("debounce"),i;nt(t[n])?t=t[n]:nt(t["default"])&&this.$options.getOption("updateOn").indexOf(n)===-1?t=t["default"]:nt(t["*"])&&(t=t["*"]);this.$$timeout.cancel(this.$$pendingDebounce);i=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(n){this.$options=this.$options.createChild(n);this.$$setUpdateOnEvents()},$processModelValue:function(){var n=this.$$format();this.$viewValue!==n&&(this.$$updateEmptyClasses(n),this.$viewValue=this.$$lastCommittedViewValue=n,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,s))},$$format:function(){for(var t=this.$formatters,i=t.length,n=this.$modelValue;i--;)n=t[i](n);return n},$$setModelValue:function(n){this.$modelValue=this.$$rawModelValue=n;this.$$parserValid=undefined;this.$processModelValue()},$$setUpdateOnEvents:function(){if(this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents)this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(n){this.$$debounceViewValueCommit(n&&n.type)}};la({clazz:af,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]}});ov=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:af,priority:1,compile:function(t){return t.addClass(ur).addClass(hs).addClass(eu),{pre:function(n,t,i,r){var u=r[0],e=r[1]||u.$$parentForm,f=r[2];f&&(u.$options=f.$options);u.$$initGetterSetters();e.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){function e(){f.$setTouched()}var f=u[0];f.$$setUpdateOnEvents();i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(e):t.$apply(e))})}}}}}];sv=/(\s+|^)default(\s+|$)/;cs.prototype={getOption:function(n){return this.$$options[n]},createChild:function(n){var i=!1;return n=v({},n),t(n,function(t,r){t==="$inherit"?r==="*"?i=!0:(n[r]=this.$$options[r],r==="updateOn"&&(n.updateOnDefault=this.$$options.updateOnDefault)):r==="updateOn"&&(n.updateOnDefault=!1,n[r]=y(t.replace(sv,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],cv(n,this.$$options)),cv(n,vf.$$options),new cs(n)}};vf=new cs({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});hv=function(){function n(n,t){this.$$attrs=n;this.$$scope=t}return n.$inject=["$attrs","$scope"],n.prototype={$onInit:function(){var n=this.parentCtrl?this.parentCtrl.$options:vf,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=n.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:n}};var ntt=ir({terminal:!0,priority:1e3}),ttt=l("ngOptions"),itt=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\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]+?))?$/,rtt=["$compile","$document","$parse",function(i,u,e){function h(n,t,i){function tt(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function w(n){var t,i;if(!s&&ti(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&i.charAt(0)!=="$"&&t.push(i)}return t}var r=n.match(itt);if(!r)throw ttt("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,kt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=e(r[2]?r[1]:o),k=l&&e(l),d=k||b,g=u&&e(u),h=u?function(n,t){return g(i,t)}:function(n){return nr(n)},a=function(n,t){return h(n,c(n,t))},v=e(r[2]||r[1]),nt=e(r[3]||""),y=e(r[4]||""),p=e(r[8]),f={},c=s?function(n,t){return f[s]=t,f[o]=n,f}:function(n){return f[o]=n,f};return{trackBy:u,getTrackByValue:a,getWatchables:e(p,function(n){var u=[],f,o,t,a,p;for(n=n||[],f=w(n),o=f.length,t=0;t<o;t++){var s=n===f?t:f[t],l=n[s],e=c(l,s),b=h(l,e);u.push(b);(r[2]||r[1])&&(a=v(i,e),u.push(a));r[4]&&(p=y(i,e),u.push(p))}return u}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),g=e.length,t=0;t<g;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=d(i,n),b=h(l,n),rt=v(i,n),ut=nt(i,n),ft=y(i,n),k=new tt(b,l,rt,ut,ft);o.push(k);r[b]=k}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?si(n.viewValue):n.viewValue}}}}}function a(n,e,s,a){function it(n,t){var i=o.cloneNode(!1);t.appendChild(i);ft(n,i)}function ut(n){var t=y.getOptionFromViewValue(n),i=t&&t.element;return i&&!i.selected&&(i.selected=!0),t}function ft(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);t.value=n.selectValue}function et(){var u=y&&v.readValue(),n,t,f,i,o;if(y)for(n=y.items.length-1;n>=0;n--)t=y.items[n],r(t.group)?nf(t.element.parentNode):nf(t.element);y=w.getOptions();f={};y.items.forEach(function(n){var t;r(n.group)?(t=f[n.group],t||(t=l.cloneNode(!1),k.appendChild(t),t.label=n.group===null?"null":n.group,f[n.group]=t),it(n,t)):it(n,k)});e[0].appendChild(k);p.$render();p.$isEmpty(u)||(i=v.readValue(),o=w.trackBy||g,(o?vt(u,i):u===i)||(p.$setViewValue(i),p.$render()))}for(var nt,tt,y,w,k,v=a[0],p=a[1],g=s.multiple,b=0,d=e.children(),rt=d.length;b<rt;b++)if(d[b].value===""){v.hasEmptyOption=!0;v.emptyOption=d.eq(b);break}e.empty();nt=!!v.emptyOption;tt=f(o.cloneNode(!1));tt.val("?");w=h(s.ngOptions,e,n);k=u[0].createDocumentFragment();v.generateUnknownOptionValue=function(){return"?"};g?(v.writeValue=function(n){if(y){var t=n&&n.map(ut)||[];y.items.forEach(function(n){n.element.selected&&!re(t,n)&&(n.element.selected=!1)})}},v.readValue=function(){var i=e.val()||[],n=[];return t(i,function(t){var i=y.selectValueMap[t];i&&!i.disabled&&n.push(y.getViewValueFromOption(i))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(v.writeValue=function(n){if(y){var i=e[0].options[e[0].selectedIndex],t=y.getOptionFromViewValue(n);i&&i.removeAttribute("selected");t?(e[0].value!==t.selectValue&&(v.removeUnknownOption(),e[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):v.selectUnknownOrEmptyOption(n)}},v.readValue=function(){var n=y.selectValueMap[e.val()];return n&&!n.disabled?(v.unselectEmptyOption(),v.removeUnknownOption(),y.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));nt&&(i(v.emptyOption)(n),e.prepend(v.emptyOption),v.emptyOption[0].nodeType===wr?(v.hasEmptyOption=!1,v.registerOption=function(n,t){if(t.val()===""){v.hasEmptyOption=!0;v.emptyOption=t;v.emptyOption.removeClass("ng-scope");p.$render();t.on("$destroy",function(){var n=v.$isEmptyOptionSelected();v.hasEmptyOption=!1;v.emptyOption=undefined;n&&p.$render()})}}):v.emptyOption.removeClass("ng-scope"));n.$watchCollection(w.getWatchables,et)}var o=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=s},post:a}}}],utt=["$locale","$interpolate","$log",function(n,i,r){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(o,h,c){function d(n){h.text(n||"")}var p=c.count,w=c.$attr.when&&h.attr(c.$attr.when),b=c.offset||0,l=o.$eval(w)||{},k={},g=i.startSymbol(),nt=i.endSymbol(),tt=g+p+"-"+b+nt,v=ut.noop,y;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),l[r]=h.attr(c.$attr[t]))});t(l,function(n,t){k[t]=i(n.replace(f,tt))});o.$watch(p,function(t){var i=parseFloat(t),e=it(i),f;e||i in l||(i=n.pluralCat(i-b));i===y||e&&it(y)||(v(),f=k[i],u(f)?(t!=null&&r.debug("ngPluralize: no rule defined for '"+i+"' in "+w),v=s,d()):v=o.$watch(f,d),y=i)})}}}],lv=l("ngRef"),ftt=["$parse",function(n){return{priority:-1,restrict:"A",compile:function(t,i){var f=wt(at(t)),r=n(i.ngRef),u=r.assign||function(){throw lv("nonassign",'Expression in ngRef="{0}" is non-assignable!',i.ngRef);};return function(n,t,e){var o;if(e.hasOwnProperty("ngRefRead")){if(e.ngRefRead==="$element")o=t;else if(o=t.data("$"+e.ngRefRead+"Controller"),!o)throw lv("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',e.ngRefRead,i.ngRef);}else o=t.data("$"+f+"Controller");o=o||t;u(n,o);t.on("$destroy",function(){r(n)===o&&u(n,null)})}}}}],ett=["$parse","$animate","$compile",function(n,i,r){var f="$$NG_REMOVED",u=l("ngRepeat"),e=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=t===0;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=(t&1)==0)},o=function(n){return n.clone[0]},s=function(n){return n.clone[n.clone.length-1]},h=function(n,t,i){return nr(i)},c=function(n,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(l,a){var d=a.ngRepeat,rt=r.$$createComment("end ngRepeat",d),v=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),b,k,g,y,it;if(!v)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var nt=v[1],ut=v[2],w=v[3],tt=v[4];if(v=nt.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!v)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",nt);if(b=v[3]||v[1],k=v[2],w&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(w)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(w)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",w);return tt&&(y={$id:nr},it=n(tt),g=function(n,t,i,r){return k&&(y[k]=t),y[b]=i,y.$index=r,it(n,y)}),function(n,r,l,a,v){var nt=p();n.$watchCollection(ut,function(l){var a,wt,ht=r[0],et,ct=p(),ot,ft,st,it,pt,ut,tt,at,vt,yt,bt;if(w&&(n[w]=l),ti(l))ut=l,pt=g||h;else{pt=g||c;ut=[];for(yt in l)lt.call(l,yt)&&yt.charAt(0)!=="$"&&ut.push(yt)}for(ot=ut.length,at=new Array(ot),a=0;a<ot;a++)if(ft=l===ut?a:ut[a],st=l[ft],it=pt(n,ft,st,a),nt[it])tt=nt[it],delete nt[it],ct[it]=tt,at[a]=tt;else if(ct[it]){t(at,function(n){n&&n.scope&&(nt[n.id]=n)});throw u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,it,st);}else at[a]={id:it,scope:undefined,clone:undefined},ct[it]=!0;y&&(y[b]=undefined);for(bt in nt){if(tt=nt[bt],vt=au(tt.clone),i.leave(vt),vt[0].parentNode)for(a=0,wt=vt.length;a<wt;a++)vt[a][f]=!0;tt.scope.$destroy()}for(a=0;a<ot;a++)if(ft=l===ut?a:ut[a],st=l[ft],tt=at[a],tt.scope){et=ht;do et=et.nextSibling;while(et&&et[f]);o(tt)!==et&&i.move(au(tt.clone),null,ht);ht=s(tt);e(tt.scope,a,b,st,k,ft,ot)}else v(function(n,t){tt.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,ht);ht=r;tt.clone=n;ct[tt.id]=tt;e(tt.scope,a,b,st,k,ft,ot)});nt=ct})}}}}],av="ng-hide",vv="ng-hide-animate",ott=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,av,{tempClasses:vv})})}}}],stt=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,av,{tempClasses:vv})})}}}],htt=ir(function(n,i,r){n.$watchCollection(r.ngStyle,function(n,r){r&&n!==r&&(n||(n={}),t(r,function(t,i){n[i]==null&&(n[i]="")}));n&&i.css(n)})}),ctt=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var l=f.ngSwitch||f.on,c=[],h=[],o=[],s=[],a=function(n,t){return function(i){i!==!1&&n.splice(t,1)}};r.$watch(l,function(r){for(var u,f,l,v;o.length;)n.cancel(o.pop());for(u=0,f=s.length;u<f;++u)l=au(h[u].clone),s[u].$destroy(),v=o[u]=n.leave(l),v.done(a(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){var f,e;s.push(u);f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");e={clone:r};h.push(e);n.enter(r,f.parent(),f)})})})}}}],ltt=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,i,r,u,f){var e=r.ngSwitchWhen.split(r.ngSwitchWhenSeparator).sort().filter(function(n,t,i){return i[t-1]!==n});t(e,function(n){u.cases["!"+n]=u.cases["!"+n]||[];u.cases["!"+n].push({transclude:f,element:i})})}}),att=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),vtt=l("ngTransclude"),ytt=["$compile",function(n){return{restrict:"EAC",compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function s(n,i){n.length&&h(n)?t.append(n):(o(),i.$destroy())}function o(){i(n,function(n){t.append(n)})}function h(n){for(var i,t=0,r=n.length;t<r;t++)if(i=n[t],i.nodeType!==ri||i.nodeValue.trim())return!0}if(!f)throw vtt("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",kt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var e=r.ngTransclude||r.ngTranscludeSlot;f(s,null,e);e&&!f.isSlotFilled(e)&&o()}}}}],ptt=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type==="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],wtt={$setViewValue:s,$render:s};var btt=["$element","$scope",function(t,i){function l(){h||(h=!0,i.$$postDigest(function(){h=!1;u.ngModelCtrl.$render()}))}function o(n){c||(c=!0,i.$$postDigest(function(){i.$$destroyed||(c=!1,u.ngModelCtrl.$setViewValue(u.readValue()),n&&u.ngModelCtrl.$render())}))}var u=this,e=new tf,h,c;u.selectValueMap={};u.ngModelCtrl=wtt;u.multiple=!1;u.unknownOption=f(n.document.createElement("option"));u.hasEmptyOption=!1;u.emptyOption=undefined;u.renderUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);t.prepend(u.unknownOption);bi(u.unknownOption,!0);t.val(i)};u.updateUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);bi(u.unknownOption,!0);t.val(i)};u.generateUnknownOptionValue=function(n){return"? "+nr(n)+" ?"};u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.selectEmptyOption=function(){u.emptyOption&&(t.val(""),bi(u.emptyOption,!0))};u.unselectEmptyOption=function(){u.hasEmptyOption&&bi(u.emptyOption,!1)};i.$on("$destroy",function(){u.renderUnknownOption=s});u.readValue=function(){var n=t.val(),i=n in u.selectValueMap?u.selectValueMap[n]:n;return u.hasOption(i)?i:null};u.writeValue=function(n){var r=t[0].options[t[0].selectedIndex],i,e;r&&bi(f(r),!1);u.hasOption(n)?(u.removeUnknownOption(),i=nr(n),t.val(i in u.selectValueMap?i:n),e=t[0].options[t[0].selectedIndex],bi(f(e),!0)):u.selectUnknownOrEmptyOption(n)};u.addOption=function(n,t){if(t[0].nodeType!==wr){gi(n,'"option value"');n===""&&(u.hasEmptyOption=!0,u.emptyOption=t);var i=e.get(n)||0;e.set(n,i+1);l()}};u.removeOption=function(n){var t=e.get(n);t&&(t===1?(e.delete(n),n===""&&(u.hasEmptyOption=!1,u.emptyOption=undefined)):e.set(n,t-1))};u.hasOption=function(n){return!!e.get(n)};u.$hasEmptyOption=function(){return u.hasEmptyOption};u.$isUnknownOptionSelected=function(){return t[0].options[0]===u.unknownOption[0]};u.$isEmptyOptionSelected=function(){return u.hasEmptyOption&&t[0].options[t[0].selectedIndex]===u.emptyOption[0]};u.selectUnknownOrEmptyOption=function(n){n==null&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(n):u.renderUnknownOption(n)};h=!1;c=!1;u.registerOption=function(n,t,i,f,e){if(i.$attr.ngValue){var s,h;i.$observe("value",function(n){var i,f=t.prop("selected");r(h)&&(u.removeOption(s),delete u.selectValueMap[h],i=!0);h=nr(n);s=n;u.selectValueMap[h]=n;u.addOption(n,t);t.attr("value",h);i&&f&&o()})}else f?i.$observe("value",function(n){u.readValue();var i,f=t.prop("selected");r(s)&&(u.removeOption(s),i=!0);s=n;u.addOption(n,t);i&&f&&o()}):e?n.$watch(e,function(n,r){i.$set("value",n);var f=t.prop("selected");r!==n&&u.removeOption(r);u.addOption(n,t);r&&f&&o()}):u.addOption(i.value,t);i.$observe("disabled",function(n){(n==="true"||n&&t.prop("selected"))&&(u.multiple?o(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))});t.on("$destroy",function(){var n=u.readValue(),t=i.value;u.removeOption(t);l();(u.multiple&&n&&n.indexOf(t)!==-1||n===t)&&o(!0)})}}],ktt=function(){function n(n,i,r,u){var e=u[0],o=u[1],c,h;if(!o){e.registerOption=s;return}e.ngModelCtrl=o;i.on("change",function(){e.removeUnknownOption();n.$apply(function(){o.$setViewValue(e.readValue())})});r.multiple&&(e.multiple=!0,e.readValue=function(){var n=[];return t(i.find("option"),function(t){if(t.selected&&!t.disabled){var i=t.value;n.push(i in e.selectValueMap?e.selectValueMap[i]:i)}}),n},e.writeValue=function(n){t(i.find("option"),function(t){var i=!!n&&(re(n,t.value)||re(n,e.selectValueMap[t.value])),r=t.selected;i!==r&&bi(f(t),i)})},h=NaN,n.$watch(function(){h!==o.$viewValue||vt(c,o.$viewValue)||(c=yt(o.$viewValue),o.$render());h=o.$viewValue}),o.$isEmpty=function(n){return!n||n.length===0})}function i(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}return{restrict:"E",require:["select","?ngModel"],controller:btt,priority:1,link:{pre:n,post:i}}},dtt=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,u;return r(i.ngValue)||(r(i.value)?f=n(i.value,!0):(u=n(t.text(),!0),u||i.$set("value",t.text()))),function(n,t,i){var r="$selectController",e=t.parent(),o=e.data(r)||e.parent().data(r);o&&o.registerOption(n,t,i,f,u)}}}}],yv=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.hasOwnProperty("required")||n(r.ngRequired)(t);r.ngRequired||(r.required=!0);u.$validators.required=function(n,t){return!f||!u.$isEmpty(t)};r.$observe("required",function(n){f!==n&&(f=n,u.$validate())})}}}}],pv=["$parse",function(n){return{restrict:"A",require:"?ngModel",compile:function(t,i){var r,f;return i.ngPattern&&(r=i.ngPattern,f=i.ngPattern.charAt(0)==="/"&&ls.test(i.ngPattern)?function(){return i.ngPattern}:n(i.ngPattern)),function(n,t,i,e){var s,o;e&&(s=i.pattern,i.ngPattern?s=f(n):r=i.pattern,o=kv(s,r,t),i.$observe("pattern",function(n){var i=o;o=kv(n,r,t);(i&&i.toString())!==(o&&o.toString())&&e.$validate()}),e.$validators.pattern=function(n,t){return e.$isEmpty(t)||u(o)||o.test(t)})}}}}],wv=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.maxlength||n(r.ngMaxlength)(t),e=yf(f);r.$observe("maxlength",function(n){f!==n&&(e=yf(n),f=n,u.$validate())});u.$validators.maxlength=function(n,t){return e<0||u.$isEmpty(t)||t.length<=e}}}}}],bv=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.minlength||n(r.ngMinlength)(t),e=yf(f)||-1;r.$observe("minlength",function(n){f!==n&&(e=yf(n)||-1,f=n,u.$validate())});u.$validators.minlength=function(n,t){return u.$isEmpty(t)||t.length>=e}}}}}];if(n.angular.bootstrap){n.console&&console.log("WARNING: Tried to load AngularJS more than once.");return}py();gy(ut);ut.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,f=r(n,i);return u==1&&f.v==0?t.ONE:t.OTHER}})}]);f(function(){ay(n.document,rh)})}(window);window.angular.$$csp().noInlineStyle||window.angular.element(document.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:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t){"use strict";function i(n,i,r){function e(n,r,f){var s,o,e,h;return f=f||{},o=f.expires,s=t.isDefined(f.path)?f.path:u,t.isUndefined(r)&&(o="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(o)&&(o=new Date(o)),e=encodeURIComponent(n)+"="+encodeURIComponent(r),e+=s?";path="+s:"",e+=f.domain?";domain="+f.domain:"",e+=o?";expires="+o.toUTCString():"",e+=f.secure?";secure":"",e+=f.samesite?";samesite="+f.samesite:"",h=e.length+1,h>4096&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+h+" > 4096 bytes)!"),e}var u=r.baseHref(),f=n[0];return function(n,t,i){f.cookie=e(n,t,i)}}t.module("ngCookies",["ng"]).info({angularVersion:"1.7.8"}).provider("$cookies",[function(){function i(i){return i?t.extend({},n,i):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(t){return n()[t]},getObject:function(n){var i=this.get(n);return i?t.fromJson(i):i},getAll:function(){return n()},put:function(n,t,u){r(n,t,i(u))},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(n,t){r(n,undefined,i(t))}}}]}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})}(window,window.angular),function(n,t){"use strict";function v(){function v(n,t){return g(n.split(","),t)}function g(n,t){for(var u={},i=0;i<n.length;i++)u[t?r(n[i]):n[i]]=!0;return u}function p(n,t){t&&t.length&&i(n,g(t))}function wt(n,t){var r,e,i,f;if(n===null||n===undefined?n="":typeof n!="string"&&(n=""+n),r=nt(n),!r)return"";e=5;do{if(e===0)throw u("uinput","Failed to sanitize html because the input is unstable");e--;n=r.innerHTML;r=nt(n)}while(n!==r.innerHTML);for(i=r.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),bt(i.attributes));break;case 3:t.chars(i.textContent)}if(!(f=i.firstChild)&&(i.nodeType===1&&t.end(i.nodeName.toLowerCase()),f=w("nextSibling",i),!f))while(f==null){if(i=w("parentNode",i),i===r)break;f=w("nextSibling",i);i.nodeType===1&&t.end(i.nodeName.toLowerCase())}i=f}while(i=r.firstChild)r.removeChild(i)}function bt(n){for(var i,r={},t=0,u=n.length;t<u;t++)i=n[t],r[i.name]=i.value;return r}function et(n){return n.replace(/&/g,"&amp;").replace(st,function(n){var t=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(ht,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function kt(n,t){var u=!1,i=e(n,n.push);return{start:function(n,f){n=r(n);!u&&vt[n]&&(u=n);u||y[n]!==!0||(i("<"),i(n),o(f,function(u,f){var e=r(f),o=n==="img"&&e==="src"||e==="background";ft[e]===!0&&(ut[e]!==!0||t(u,o))&&(i(" "),i(f),i('="'),i(et(u)),i('"'))}),i(">"))},end:function(n){n=r(n);u||y[n]!==!0||d[n]===!0||(i("<\/"),i(n),i(">"));n==u&&(u=!1)},chars:function(n){u||i(et(n))}}}function ot(t){for(var r,i,u,f,e,o;t;){if(t.nodeType===n.Node.ELEMENT_NODE)for(r=t.attributes,i=0,u=r.length;i<u;i++)f=r[i],e=f.name.toLowerCase(),(e==="xmlns:ns1"||e.lastIndexOf("ns1:",0)===0)&&(t.removeAttributeNode(f),i--,u--);o=t.firstChild;o&&ot(o);t=w("nextSibling",t)}}function w(n,t){var i=t[n];if(i&&l.call(t,i))throw u("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return i}var b=!1,k=!1,nt;this.$get=["$$sanitizeUri",function(n){return b=!0,k&&i(y,rt),function(t){var i=[];return a(t,f(i,function(t,i){return!/^unsafe:/.test(n(t,i))})),i.join("")}}];this.enableSvg=function(n){return h(n)?(k=n,this):k};this.addValidElements=function(n){return b||(s(n)&&(n={htmlElements:n}),p(rt,n.svgElements),p(d,n.htmlVoidElements),p(y,n.htmlVoidElements),p(y,n.htmlElements)),this};this.addValidAttrs=function(n){return b||i(ft,g(n,!0)),this};e=t.bind;i=t.extend;o=t.forEach;s=t.isArray;h=t.isDefined;r=t.$$lowercase;c=t.noop;a=wt;f=kt;l=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};var st=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ht=/([^#-~ |!])/g,d=v("area,br,col,hr,img,wbr"),tt=v("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),it=v("rp,rt"),ct=i({},it,tt),lt=i({},tt,v("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),at=i({},it,v("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),rt=v("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),vt=v("script,style"),y=i({},d,lt,at,ct),ut=v("background,cite,href,longdesc,src,xlink:href,xml:base"),yt=v("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),pt=v("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),ft=i({},ut,pt,yt);nt=function(n,t){function f(t){var i,r;t="<remove><\/remove>"+t;try{t=encodeURI(t)}catch(u){return undefined}return i=new n.XMLHttpRequest,i.responseType="document",i.open("GET","data:text/html;charset=utf-8,"+t,!1),i.send(null),r=i.response.body,r.firstChild.remove(),r}function e(t){t="<remove><\/remove>"+t;try{var i=(new n.DOMParser).parseFromString(t,"text/html").body;return i.firstChild.remove(),i}catch(r){return undefined}}function o(n){return i.innerHTML=n,t.documentMode&&ot(i),i}var r,i;if(t&&t.implementation)r=t.implementation.createHTMLDocument("inert");else throw u("noinert","Can't create an inert html document");return i=(r.documentElement||r.getDocumentElement()).querySelector("body"),i.innerHTML='<svg><g onload="this.parentNode.remove()"><\/g><\/svg>',i.querySelector("svg")?(i.innerHTML='<svg><p><style><img src="<\/style><img src=x onerror=alert(1)//">',i.querySelector("svg img")?e:o):f}(n,n.document)}function y(n){var t=[],i=f(t,c);return i.chars(n),t.join("")}var u=t.$$minErr("$sanitize"),e,i,o,s,h,r,c,l,a,f;t.module("ngSanitize",[]).provider("$sanitize",v).info({angularVersion:"1.7.8"});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,u=t.$$minErr("linky"),f=t.isDefined,e=t.isFunction,o=t.isObject,s=t.isString;return function(t,h,c){function b(n){n&&a.push(y(n))}function d(n,t){var i,r=k(n);a.push("<a ");for(i in r)a.push(i+'="'+r[i]+'" ');!f(h)||"target"in r||a.push('target="',h,'" ');a.push('href="',n.replace(/"/g,"&quot;"),'">');b(t);a.push("<\/a>")}if(t==null||t==="")return t;if(!s(t))throw u("notstring","Expected string but received: {0}",t);for(var k=e(c)?c:o(c)?function(){return c}:function(){return{}},l,v=t,a=[],p,w;l=v.match(i);)p=l[0],l[2]||l[4]||(p=(l[3]?"http://":"mailto:")+p),w=l.index,b(v.substr(0,w)),d(p,l[0].replace(r,"")),v=v.substring(w+l[0].length);return b(v),n(a.join(""))}}])}(window,window.angular);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ui.router"),function(n,t,i){"use strict";function w(n,t){return u(new(u(function(){},{prototype:n})),t)}function nt(n){return f(arguments,function(t){t!==n&&f(t,function(t,i){n.hasOwnProperty(i)||(n[i]=t)})}),n}function ri(n,t){var r=[];for(var i in n.path){if(n.path[i]!==t.path[i])break;r.push(n.path[i])}return r}function p(n){if(Object.keys)return Object.keys(n);var t=[];return f(n,function(n,i){t.push(i)}),t}function c(n,t){if(Array.prototype.indexOf)return n.indexOf(t,Number(arguments[2])||0);var r=n.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=r);i<r;i++)if(i in n&&n[i]===t)return i;return-1}function ut(n,t,i,r){var o=ri(i,r),f,h={},l=[],s,e;for(s in o)if(o[s]&&o[s].params&&(f=p(o[s].params),f.length))for(e in f)c(l,f[e])>=0||(l.push(f[e]),h[f[e]]=n[f[e]]);return u({},h,t)}function ft(n,t,i){var f,r,u;if(!i){i=[];for(f in n)i.push(f)}for(r=0;r<i.length;r++)if(u=i[r],n[u]!=t[u])return!1;return!0}function b(n,t){var i={};return f(n,function(n){i[n]=t[n]}),i}function et(n){var t={},i=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return f(i,function(i){i in n&&(t[i]=n[i])}),t}function k(n){var i={},r=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var t in n)c(r,t)==-1&&(i[t]=n[t]);return i}function tt(n,t){var r=a(n),i=r?[]:{};return f(n,function(n,u){t(n,u)&&(i[r?i.length:u]=n)}),i}function y(n,t){var i=a(n)?[]:{};return f(n,function(n,r){i[r]=t(n,r)}),i}function d(n){return n.then(i,function(){})&&n}function ot(n,t){var h=1,l=2,o={},a=[],v=o,y=u(n.when(o),{$$promises:o,$$values:o});this.study=function(o){function tt(n,i){if(d[i]!==l){if(b.push(i),d[i]===h){b.splice(0,c(b,i));throw new Error("Cyclic dependency: "+b.join(" -> "));}if(d[i]=h,e(n))w.push(i,[function(){return t.get(n)}],a);else{var r=t.annotate(n);f(r,function(n){n!==i&&o.hasOwnProperty(n)&&tt(o[n],n)});w.push(i,n,r)}b.pop();d[i]=l}}function it(n){return s(n)&&n.then&&n.$$promises}if(!s(o))throw new Error("'invocables' must be an object");var g=p(o||{}),w=[],b=[],d={};return f(o,tt),o=b=d=null,function(e,o,h){function b(){--ft||(rt||nt(l,o.$$values),c.$$values=l,c.$$promises=c.$$promises||!0,delete c.$$inheritedValues,d.resolve(l))}function tt(n){c.$$failure=n;d.reject(n)}function et(i,u,o){function v(n){s.reject(n);tt(n)}function y(){if(!r(c.$$failure))try{s.resolve(t.invoke(u,h,l));s.promise.then(function(n){l[i]=n;b()},v)}catch(n){v(n)}}var s=n.defer(),a=0;f(o,function(n){p.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(a++,p[n].then(function(t){l[n]=t;--a||y()},v))});a||y();p[i]=s.promise}var a,ut;if(it(e)&&h===i&&(h=o,o=e,e=null),e){if(!s(e))throw new Error("'locals' must be an object");}else e=v;if(o){if(!it(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()");}else o=y;var d=n.defer(),c=d.promise,p=c.$$promises={},l=u({},e),ft=1+w.length/3,rt=!1;if(r(o.$$failure))return tt(o.$$failure),c;for(o.$$inheritedValues&&nt(l,k(o.$$inheritedValues,g)),u(p,o.$$promises),o.$$values?(rt=nt(l,k(o.$$values,g)),c.$$inheritedValues=k(o.$$values,g),b()):(o.$$inheritedValues&&(c.$$inheritedValues=k(o.$$inheritedValues,g)),o.then(b,tt)),a=0,ut=w.length;a<ut;a+=3)e.hasOwnProperty(w[a])?b():et(w[a],w[a+1],w[a+2]);return c}};this.resolve=function(n,t,i,r){return this.study(n)(t,i,r)}}function st(n,t,i){this.fromConfig=function(n,t,i){return r(n.template)?this.fromString(n.template,t):r(n.templateUrl)?this.fromUrl(n.templateUrl,t):r(n.templateProvider)?this.fromProvider(n.templateProvider,t,i):null};this.fromString=function(n,t){return o(n)?n(t):n};this.fromUrl=function(i,r){return o(i)&&(i=i(r)),i==null?null:n.get(i,{cache:t,headers:{Accept:"text/html"}}).then(function(n){return n.data})};this.fromProvider=function(n,t,r){return i.invoke(n,null,r||{params:t})}}function v(n,t,r){function nt(t,i,r,u){if(g.push(t),d[t])return d[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+n+"'");if(b[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+n+"'");return b[t]=new l.Param(t,i,r,u),b[t]}function tt(n,t,i,r){var u=["",""],f=n.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return f;switch(i){case!1:u=["(",")"+(r?"?":"")];break;case!0:f=f.replace(/\/$/,"");u=["(?:/(",")|/)?"];break;default:u=["("+i+"|",")?"]}return f+u[0]+t+u[1]}function it(r,u){var e,f,s,h,c;return e=r[2]||r[3],c=t.params[e],s=n.substring(o,r.index),f=u?r[4]:r[4]||(r[1]=="*"?".*":null),f&&(h=l.type(f)||w(l.type("string"),{pattern:new RegExp(f,t.caseInsensitive?"i":i)})),{id:e,regexp:f,segment:s,type:h,cfg:c}}var f,h,e,c,k;t=u({params:{}},s(t)?t:{});var v=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,rt=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,y="^",o=0,a,p=this.segments=[],d=r?r.params:{},b=this.params=r?r.params.$$new():new l.ParamSet,g=[];for(this.source=n;a=v.exec(n);){if(f=it(a,!1),f.segment.indexOf("?")>=0)break;h=nt(f.id,f.type,f.cfg,"path");y+=tt(f.segment,h.type.pattern.source,h.squash,h.isOptional);p.push(f.segment);o=v.lastIndex}if(e=n.substring(o),c=e.indexOf("?"),c>=0){if(k=this.sourceSearch=e.substring(c),e=e.substring(0,c),this.sourcePath=n.substring(0,o+c),k.length>0)for(o=0;a=rt.exec(k);)f=it(a,!0),h=nt(f.id,f.type,f.cfg,"search"),o=v.lastIndex}else this.sourcePath=n,this.sourceSearch="";y+=tt(e)+(t.strict===!1?"/?":"")+"$";p.push(e);this.regexp=new RegExp(y,t.caseInsensitive?"i":i);this.prefix=p[0];this.$$paramNames=g}function h(n){u(this,n)}function ht(){function rt(n){return n!=null?n.toString().replace(/(~|\/)/g,function(n){return{"~":"~~","/":"~2F"}[n]}):n}function st(n){return n!=null?n.toString().replace(/(~~|~2F)/g,function(n){return{"~~":"~","~2F":"/"}[n]}):n}function ct(){return{strict:g,caseInsensitive:d}}function et(n){return o(n)||a(n)&&o(n[n.length-1])}function ot(){while(it.length){var i=it.shift();if(i.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(n[i.name],b.invoke(i.def))}}function k(n){u(this,n||{})}l=this;var d=!1,g=!0,nt=!1;var n={},ut=!0,it=[],b,ft={string:{encode:rt,decode:st,is:function(n){return n==null||!r(n)||typeof n=="string"},pattern:/[^/]*/},int:{encode:rt,decode:function(n){return parseInt(n,10)},is:function(n){return r(n)&&this.decode(n.toString())===n},pattern:/\d+/},bool:{encode:function(n){return n?1:0},decode:function(n){return parseInt(n,10)!==0},is:function(n){return n===!0||n===!1},pattern:/0|1/},date:{encode:function(n){return this.is(n)?[n.getFullYear(),("0"+(n.getMonth()+1)).slice(-2),("0"+n.getDate()).slice(-2)].join("-"):i},decode:function(n){if(this.is(n))return n;var t=this.capture.exec(n);return t?new Date(t[1],t[2]-1,t[3]):i},is:function(n){return n instanceof Date&&!isNaN(n.valueOf())},equals:function(n,t){return this.is(n)&&this.is(t)&&n.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};ht.$$getDefaultValue=function(n){if(!et(n.value))return n.value;if(!b)throw new Error("Injectable functions cannot be called at configuration time");return b.invoke(n.value)};this.caseInsensitive=function(n){return r(n)&&(d=n),d};this.strictMode=function(n){return r(n)&&(g=n),g};this.defaultSquashPolicy=function(n){if(!r(n))return nt;if(n!==!0&&n!==!1&&!e(n))throw new Error("Invalid squash policy: "+n+". Valid policies: false, true, arbitrary-string");return nt=n,n};this.compile=function(n,t){return new v(n,u(ct(),t))};this.isMatcher=function(n){if(!s(n))return!1;var t=!0;return f(v.prototype,function(i,u){o(i)&&(t=t&&r(n[u])&&o(n[u]))}),t};this.type=function(t,i,f){if(!r(i))return n[t];if(n.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return n[t]=new h(u({name:t},i)),f&&(it.push({name:t,def:f}),ut||ot()),this};f(ft,function(t,i){n[i]=new h(u({name:i},t))});n=w(n,{});this.$get=["$injector",function(t){return b=t,ut=!1,ot(),f(ft,function(t,i){n[i]||(n[i]=new h(t))}),this}];this.Param=function(f,o,l,v){function rt(n){var t=s(n)?p(n):[],i=c(t,"value")===-1&&c(t,"type")===-1&&c(t,"squash")===-1&&c(t,"array")===-1;return i&&(n={value:n}),n.$$fn=et(n.value)?n.value:function(){return n.value},n}function ut(i,r,u){if(i.type&&r)throw new Error("Param '"+f+"' has two type configurations.");return r?r:i.type?t.isString(i.type)?n[i.type]:i.type instanceof h?i.type:new h(i.type):u==="config"?n.any:n.string}function ft(){var n={array:v==="search"?"auto":!1},t=f.match(/\[\]$/)?{array:!0}:{};return u(n,t,l).array}function ot(n,t){var i=n.squash;if(!t||i===!1)return!1;if(!r(i)||i==null)return nt;if(i===!0||e(i))return i;throw new Error("Invalid squash policy: '"+i+"'. Valid policies: false, true, or arbitrary string");}function st(n,t,r,u){var f,o,s=[{from:"",to:r||t?i:""},{from:null,to:r||t?i:""}];return f=a(n.replace)?n.replace:[],e(u)&&f.push({from:u,to:i}),o=y(f,function(n){return n.from}),tt(s,function(n){return c(o,n.from)===-1}).concat(f)}function ht(){if(!b)throw new Error("Injectable functions cannot be called at configuration time");var n=b.invoke(l.$$fn);if(n!==null&&n!==i&&!k.type.is(n))throw new Error("Default value ("+n+") for parameter '"+k.id+"' is not an instance of Type ("+k.type.name+")");return n}function ct(n){function t(n){return function(t){return t.from===n}}function i(n){var i=y(tt(k.replace,t(n)),function(n){return n.to});return i.length?i[0]:n}return n=i(n),r(n)?k.type.$normalize(n):ht()}function lt(){return"{Param:"+f+" "+o+" squash: '"+g+"' optional: "+d+"}"}var k=this,w;l=rt(l);o=ut(l,o,v);w=ft();o=w?o.$asArray(w,v==="search"):o;o.name!=="string"||w||v!=="path"||l.value!==i||(l.value="");var d=l.value!==i,g=ot(l,d),it=st(l,w,d,g);u(this,{id:f,type:o,location:v,array:w,squash:g,replace:it,isOptional:d,value:ct,dynamic:i,config:l,toString:lt})};k.prototype={$$new:function(){return w(this,u(new k,{$$parent:this}))},$$keys:function(){for(var t=[],i=[],n=this,r=p(k.prototype);n;)i.push(n),n=n.$$parent;return i.reverse(),f(i,function(n){f(p(n),function(n){c(t,n)===-1&&c(r,n)===-1&&t.push(n)})}),t},$$values:function(n){var t={},i=this;return f(i.$$keys(),function(r){t[r]=i[r].value(n&&n[r])}),t},$$equals:function(n,t){var i=!0,r=this;return f(r.$$keys(),function(u){var f=n&&n[u],e=t&&t[u];r[u].type.equals(f,e)||(i=!1)}),i},$$validates:function(n){for(var e=this.$$keys(),r,f,o,s,u=0;u<e.length;u++){if(r=this[e[u]],f=n[e[u]],(f===i||f===null)&&r.isOptional)break;if((o=r.type.$normalize(f),!r.type.is(o))||(s=r.type.encode(o),t.isString(s)&&!r.type.pattern.exec(s)))return!1}return!0},$$parent:i};this.ParamSet=k}function ct(n,f){function p(n){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(n.source);return t!=null?t[1].replace(/\\(.)/g,"$1"):""}function w(n,t){return n.replace(/\$(\$|\d{1,2})/,function(n,i){return t[i==="$"?0:Number(i)]})}function v(n,t,i){if(!i)return!1;var u=n.invoke(t,t,{$match:i});return r(u)?u:!0}function y(r,u,f,o,a){function k(n,t,i){return y==="/"?n:t?y.slice(0,-1)+n:i?y.slice(1)+n:n}function w(n){function u(n){var t=n(f,r);return t?(e(t)&&r.replace().url(t),!0):!1}var c,o,t;if(!n||!n.defaultPrevented){for(c=v&&r.url()===v,v=i,o=s.length,t=0;t<o;t++)if(u(s[t]))return;h&&u(h)}}function b(){return c=c||u.$on("$locationChangeSuccess",w)}var y=o.baseHref(),p=r.url(),v;return l||b(),{sync:function(){w()},listen:function(){return b()},update:function(n){if(n){p=r.url();return}r.url()!==p&&(r.url(p),r.replace())},push:function(n,t,u){var f=n.format(t||{});f!==null&&t&&t["#"]&&(f+="#"+t["#"]);r.url(f);v=u&&u.$$avoidResync?r.url():i;u&&u.replace&&r.replace()},href:function(i,u,f){var o,e,h,s;return i.validates(u)?(o=n.html5Mode(),t.isObject(o)&&(o=o.enabled),o=o&&a.history,e=i.format(u),f=f||{},o||e===null||(e="#"+n.hashPrefix()+e),e!==null&&u&&u["#"]&&(e+="#"+u["#"]),e=k(e,o,f.absolute),!f.absolute||!e)?e:(h=!o&&e?"/":"",s=r.port(),s=s===80||s===443?"":":"+s,[r.protocol(),"://",r.host(),s,h,e].join("")):null}}}var s=[],h=null,l=!1,c;this.rule=function(n){if(!o(n))throw new Error("'rule' must be a function");return s.push(n),this};this.otherwise=function(n){if(e(n)){var t=n;n=function(){return t}}else if(!o(n))throw new Error("'rule' must be a function");return h=n,this};this.when=function(n,t){var i,r=e(t),c,s,h;if(e(n)&&(n=f.compile(n)),!r&&!o(t)&&!a(t))throw new Error("invalid 'handler' in when()");c={matcher:function(n,t){return r&&(i=f.compile(t),t=["$match",function(n){return i.format(n)}]),u(function(i,r){return v(i,t,n.exec(r.path(),r.search()))},{prefix:e(n.prefix)?n.prefix:""})},regex:function(n,t){if(n.global||n.sticky)throw new Error("when() RegExp must not be global or sticky");return r&&(i=t,t=["$match",function(n){return w(i,n)}]),u(function(i,r){return v(i,t,n.exec(r.path()))},{prefix:p(n)})}};s={matcher:f.isMatcher(n),regex:n instanceof RegExp};for(h in s)if(s[h])return this.rule(c[h](n,t));throw new Error("invalid 'what' in when()");};this.deferIntercept=function(n){n===i&&(n=!0);l=n};this.$get=y;y.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function lt(n,h){function ct(n){return n.indexOf(".")===0||n.indexOf("^")===0}function nt(n,t){var s;if(!n)return i;var h=e(n),u=h?n:n.name,c=ct(u);if(c){if(!t)throw new Error("No reference point given for path '"+u+"'");t=nt(t);for(var r=u.split("."),f=0,l=r.length,o=t;f<l;f++){if(r[f]===""&&f===0){o=t;continue}if(r[f]==="^"){if(!o.parent)throw new Error("Path '"+u+"' not valid for state '"+t.name+"'");o=o.parent;continue}break}r=r.slice(f).join(".");u=o.name+(o.name&&r?".":"")+r}return(s=it[u],s&&(h||!h&&(s===n||s.self===n)))?s:i}function lt(n,t){rt[n]||(rt[n]=[]);rt[n].push(t)}function at(n){for(var t=rt[n]||[];t.length;)ot(t.shift())}function ot(t){var i,u,r;if(t=w(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}}),i=t.name,!e(i)||i.indexOf("@")>=0)throw new Error("State must have a valid name");if(it.hasOwnProperty(i))throw new Error("State '"+i+"' is already defined");if(u=i.indexOf(".")!==-1?i.substring(0,i.lastIndexOf(".")):e(t.parent)?t.parent:s(t.parent)&&e(t.parent.name)?t.parent.name:"",u&&!it[u])return lt(u,t.self);for(r in k)o(k[r])&&(t[r]=k[r](t,k.$delegates[r]));return it[i]=t,!t[st]&&t.url&&n.when(t.url,["$match","$stateParams",function(n,i){v.$current.navigable==t&&ft(n,i)||v.transitionTo(t,n,{inherit:!0,location:!1})}]),at(i),t}function vt(n){return n.indexOf("*")>-1}function yt(n){for(var t=n.split("."),i=v.$current.name.split("."),r=0,u=t.length;r<u;r++)t[r]==="*"&&(i[r]="*");return(t[0]==="**"&&(i=i.slice(c(i,t[1])),i.unshift("**")),t[t.length-1]==="**"&&(i.splice(c(i,t[t.length-2])+1,Number.MAX_VALUE),i.push("**")),t.length!=i.length)?!1:i.join("")===t.join("")}function pt(n,t){return e(n)&&!r(t)?k[n]:!o(t)||!e(n)?this:(k[n]&&!k.$delegates[n]&&(k.$delegates[n]=k[n]),k[n]=t,this)}function wt(n,t){return s(n)?t=n:t.name=n,ot(t),this}function ht(n,h,c,l,k,rt,et){function pt(t,i,r,u){var e=n.$broadcast("$stateNotFound",t,i,r),f;return e.defaultPrevented?(et.update(),ct):e.retry?u.$retry?(et.update(),lt):(f=v.transition=h.when(e.retry),f.then(function(){return f!==v.transition?(n.$broadcast("$stateChangeCancel",t.to,t.toParams,i,r),ot):(t.options.$retry=!0,v.transitionTo(t.to,t.toParams,t.options))},function(){return ct}),et.update(),f):null}function wt(n,i,r,u,e,s){function w(){var i=[];return f(n.views,function(r,u){var f=r.resolve&&r.resolve!==n.resolve?r.resolve:{};f.$template=[function(){return c.load(u,{view:r,locals:e.globals,params:y,notify:s.notify})||""}];i.push(k.resolve(f,e.globals,e.resolve,n).then(function(i){if(o(r.controllerProvider)||a(r.controllerProvider)){var s=t.extend({},f,e.globals);i.$$controller=l.invoke(r.controllerProvider,null,s)}else i.$$controller=r.controller;i.$$state=n;i.$$controllerAs=r.controllerAs;i.$$resolveAs=r.resolveAs;e[u]=i}))}),h.all(i).then(function(){return e.globals})}var y=r?i:b(n.params.$$keys(),i),p={$stateParams:y},v;return e.resolve=k.resolve(n.resolve,p,e.resolve,n),v=[e.resolve.then(function(n){e.globals=n})],u&&v.push(u),h.all(v).then(w).then(function(){return e})}var ht=new Error("transition superseded"),ot=d(h.reject(ht)),at=d(h.reject(new Error("transition prevented"))),ct=d(h.reject(new Error("transition aborted"))),lt=d(h.reject(new Error("transition failed")));return tt.locals={resolve:null,globals:{$stateParams:{}}},v={params:{},current:tt.self,$current:tt,transition:null},v.reload=function(n){return v.transitionTo(v.current,rt,{reload:n||!0,inherit:!1,notify:!0})},v.go=function(n,t,i){return v.transitionTo(n,t,u({inherit:!0,relative:v.$current},i))},v.transitionTo=function(t,i,f){var ft,gt,ni,kt,ct,dt;i=i||{};f=u({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},f||{});var a=v.$current,y=v.params,it=a.path,ti,p=nt(t,f.relative),vt=i["#"];if(!r(p)){if(ft={to:t,toParams:i,options:f},gt=pt(ft,a.self,y,f),gt)return gt;if(t=ft.to,i=ft.toParams,f=ft.options,p=nt(t,f.relative),!r(p)){if(!f.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+f.relative+"'");}}if(p[st])throw new Error("Cannot transition to abstract state '"+t+"'");if(f.inherit&&(i=ut(rt,i||{},v.$current,p)),!p.params.$$validates(i))return lt;i=p.params.$$values(i);t=p;var k=t.path,c=0,o=k[c],d=tt.locals,yt=[];if(f.reload){if(e(f.reload)||s(f.reload)){if(s(f.reload)&&!f.reload.name)throw new Error("Invalid reload state object");if(ni=f.reload===!0?it[0]:nt(f.reload),f.reload&&!ni)throw new Error("No such reload state '"+(e(f.reload)?f.reload:f.reload.name)+"'");while(o&&o===it[c]&&o!==ni)d=yt[c]=o.locals,c++,o=k[c]}}else while(o&&o===it[c]&&o.ownParams.$$equals(i,y))d=yt[c]=o.locals,c++,o=k[c];if(bt(t,i,a,y,d,f))return vt&&(i["#"]=vt),v.params=i,g(v.params,rt),g(b(t.params.$$keys(),rt),t.locals.globals.$stateParams),f.location&&t.navigable&&t.navigable.url&&(et.push(t.navigable.url,i,{$$avoidResync:!0,replace:f.location==="replace"}),et.update(!0)),v.transition=null,h.when(v.current);if(i=b(t.params.$$keys(),i||{}),vt&&(i["#"]=vt),f.notify&&n.$broadcast("$stateChangeStart",t.self,i,a.self,y,f).defaultPrevented)return n.$broadcast("$stateChangeCancel",t.self,i,a.self,y),v.transition==null&&et.update(),at;for(kt=h.when(d),ct=c;ct<k.length;ct++,o=k[ct])d=yt[ct]=w(d),kt=wt(o,i,o===t,kt,d,f);return dt=v.transition=kt.then(function(){var r,u,e;if(v.transition!==dt)return n.$broadcast("$stateChangeCancel",t.self,i,a.self,y),ot;for(r=it.length-1;r>=c;r--)e=it[r],e.self.onExit&&l.invoke(e.self.onExit,e.self,e.locals.globals),e.locals=null;for(r=c;r<k.length;r++)u=k[r],u.locals=yt[r],u.self.onEnter&&l.invoke(u.self.onEnter,u.self,u.locals.globals);return v.transition!==dt?(n.$broadcast("$stateChangeCancel",t.self,i,a.self,y),ot):(v.$current=t,v.current=t.self,v.params=i,g(v.params,rt),v.transition=null,f.location&&t.navigable&&et.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:f.location==="replace"}),f.notify&&n.$broadcast("$stateChangeSuccess",t.self,i,a.self,y),et.update(!0),v.current)}).then(null,function(r){return r===ht?ot:v.transition!==dt?(n.$broadcast("$stateChangeCancel",t.self,i,a.self,y),ot):(v.transition=null,ti=n.$broadcast("$stateChangeError",t.self,i,a.self,y,r),ti.defaultPrevented||et.update(),h.reject(r))})},v.is=function(n,t,f){f=u({relative:v.$current},f||{});var e=nt(n,f.relative);return r(e)?v.$current!==e?!1:t?ft(e.params.$$values(t),rt):!0:i},v.includes=function(n,t,f){var o,c,s,h,l;if(f=u({relative:v.$current},f||{}),e(n)&&vt(n)){if(!yt(n))return!1;n=v.$current.name}if(o=nt(n,f.relative),!r(o))return i;if(!r(v.$current.includes[o.name]))return!1;if(!t)return!0;for(c=p(t),s=0;s<c.length;s++)if(h=c[s],l=o.params[h],l&&!l.type.equals(rt[h],t[h]))return!1;return!0},v.href=function(n,t,f){var e,o;return(f=u({lossy:!0,inherit:!0,absolute:!1,relative:v.$current},f||{}),e=nt(n,f.relative),!r(e))?null:(f.inherit&&(t=ut(rt,t||{},v.$current,e)),o=e&&f.lossy?e.navigable:e,!o||o.url===i||o.url===null)?null:et.href(o.url,b(e.params.$$keys().concat("#"),t||{}),{absolute:f.absolute})},v.get=function(n,t){if(arguments.length===0)return y(p(it),function(n){return it[n].self});var i=nt(n,t||v.$current);return i&&i.self?i.self:null},v}function bt(n,t,i,r,u,f){function e(n,t,i){function r(t){return n.params[t].location!="search"}var u=n.params.$$keys().filter(r),f=et.apply({},[n.params].concat(u)),e=new l.ParamSet(f);return e.$$equals(t,i)}if(!f.reload&&n===i&&(u===i.locals||n.self.reloadOnSearch===!1&&e(i,r,t)))return!0}var tt,it={},v,rt={},st="abstract",k={parent:function(n){if(r(n.parent)&&n.parent)return nt(n.parent);var t=/^(.+)\.[^.]+$/.exec(n.name);return t?nt(t[1]):tt},data:function(n){return n.parent&&n.parent.data&&(n.data=n.self.data=w(n.parent.data,n.data)),n.data},url:function(n){var t=n.url,i={params:n.params||{}};if(e(t))return t.charAt(0)=="^"?h.compile(t.substring(1),i):(n.parent.navigable||tt).url.concat(t,i);if(!t||h.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+n+"'");},navigable:function(n){return n.url?n:n.parent?n.parent.navigable:null},ownParams:function(n){var t=n.url&&n.url.params||new l.ParamSet;return f(n.params||{},function(n,i){t[i]||(t[i]=new l.Param(i,null,n,"config"))}),t},params:function(n){var t=et(n.ownParams,n.ownParams.$$keys());return n.parent&&n.parent.params?u(n.parent.params.$$new(),t):new l.ParamSet},views:function(n){var t={};return f(r(n.views)?n.views:{"":n},function(i,r){r.indexOf("@")<0&&(r+="@"+n.parent.name);i.resolveAs=i.resolveAs||n.resolveAs||"$resolve";t[r]=i}),t},path:function(n){return n.parent?n.parent.path.concat(n):[]},includes:function(n){var t=n.parent?u({},n.parent.includes):{};return t[n.name]=!0,t},$delegates:{}};tt=ot({name:"",url:"^",views:null,abstract:!0});tt.navigable=null;this.decorator=pt;this.state=wt;this.$get=ht;ht.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function at(){function n(n,t){return{load:function(n,i){var r;return i=u({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},i),i.view&&(r=t.fromConfig(i.view,i.params,i.locals)),r}}}this.$get=n;n.$inject=["$rootScope","$templateFactory"]}function ui(){var n=!1;this.useAnchorScroll=function(){n=!0};this.$get=["$anchorScroll","$timeout",function(t,i){return n?t:function(n){return i(function(){n[0].scrollIntoView()},0,!1)}}]}function vt(n,i,r,u,f){function h(){return i.has?function(n){return i.has(n)?i.get(n):null}:function(n){try{return i.get(n)}catch(t){return null}}}function c(n,i){var u=function(){return{enter:function(n,t,i){t.after(n);i()},leave:function(n,t){n.remove();t()}}},r;return e?{enter:function(n,i,r){t.version.minor>2?e.enter(n,null,i).then(r):e.enter(n,null,i,r)},leave:function(n,i){t.version.minor>2?e.leave(n).then(i):e.leave(n,i)}}:o?(r=o&&o(i,n),{enter:function(n,t,i){r.enter(n,null,t);i()},leave:function(n,t){r.leave(n);t()}}):u()}var s=h(),o=s("$animator"),e=s("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(i,e,o){return function(i,e,s){function k(){if(a&&(a.remove(),a=null),h&&(h.$destroy(),h=null),l){var n=l.data("$uiViewAnim");p.leave(l,function(){n.$$animLeave.resolve();a=null});a=l;l=null}}function w(c){var w,a=pt(i,s,e,u),g=a&&n.$current&&n.$current.locals[a],d;(c||g!==y)&&(w=i.$new(),y=n.$current.locals[a],w.$emit("$viewContentLoading",a),d=o(w,function(n){var u=f.defer(),o=f.defer(),s={$animEnter:u.promise,$animLeave:o.promise,$$animLeave:o};n.data("$uiViewAnim",s);p.enter(n,e,function(){u.resolve();h&&h.$emit("$viewContentAnimationEnded");(t.isDefined(v)&&!v||i.$eval(v))&&r(n)});k()}),l=d,h=w,h.$emit("$viewContentLoaded",a),h.$eval(b))}var a,l,h,y,b=s.onload||"",v=s.autoscroll,p=c(s,i),d=e.inheritedData("$uiView");i.$on("$stateChangeSuccess",function(){w(!1)});w(!0)}}}}function yt(n,i,r,u){return{restrict:"ECA",priority:-400,compile:function(f){var e=f.html();return function(f,s,h){var v=r.$current,y=pt(f,h,s,u),c=v&&v.locals[y],a,p,l;c&&(s.data("$uiView",{name:y,state:c.$$state}),s.html(c.$template?c.$template:e),a=t.extend({},c),f[c.$$resolveAs]=a,p=n(s.contents()),c.$$controller&&(c.$scope=f,c.$element=s,l=i(c.$$controller,c),c.$$controllerAs&&(f[c.$$controllerAs]=l,f[c.$$controllerAs][c.$$resolveAs]=a),o(l.$onInit)&&l.$onInit(),s.data("$ngControllerController",l),s.children().data("$ngControllerController",l)),p(f))}}}}function pt(n,t,i,r){var u=r(t.uiView||t.name||"")(n),f=i.inheritedData("$uiView");return u.indexOf("@")>=0?u:u+"@"+(f?f.state.name:"")}function wt(n,t){var r=n.match(/^\s*({[^}]*})\s*$/),i;if(r&&(n=t+"("+r[1]+")"),i=n.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!i||i.length!==4)throw new Error("Invalid state ref '"+n+"'");return{state:i[1],paramExpr:i[3]||null}}function bt(n){var t=n.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function kt(n){var i=Object.prototype.toString.call(n.prop("href"))==="[object SVGAnimatedString]",t=n[0].nodeName==="FORM";return{attr:t?"action":i?"xlink:href":"href",isAnchor:n.prop("tagName").toUpperCase()==="A",clickable:!t}}function dt(n,t,i,r,u){return function(f){var h=f.which||f.button,e=u(),o,s;h>1||f.ctrlKey||f.metaKey||f.shiftKey||n.attr("target")||(o=i(function(){t.go(e.state,e.params,e.options)}),f.preventDefault(),s=r.isAnchor&&!e.href?1:0,f.preventDefault=function(){s--<=0&&i.cancel(o)})}}function fi(n,t){return{relative:bt(n)||t.$current,inherit:!0}}function gt(n,i){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,f,e,o){var h=wt(e.uiSref,n.current.name),s={state:h.state,href:null,params:null},c=kt(f),y=o[1]||o[0],l=null,a,v;(s.options=u(fi(f,n),e.uiSrefOpts?r.$eval(e.uiSrefOpts):{}),v=function(i){i&&(s.params=t.copy(i));s.href=n.href(h.state,s.params,s.options);l&&l();y&&(l=y.$$addStateInfo(h.state,s.params));s.href!==null&&e.$set(c.attr,s.href)},h.paramExpr&&(r.$watch(h.paramExpr,function(n){n!==s.params&&v(n)},!0),s.params=t.copy(r.$eval(h.paramExpr))),v(),c.clickable)&&(a=dt(f,n,i,c,function(){return s}),f[f.on?"on":"bind"]("click",a),r.$on("$destroy",function(){f[f.off?"off":"unbind"]("click",a)}))}}}function ni(n,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,r,u,f){function a(t){e.state=t[0];e.params=t[1];e.options=t[2];e.href=n.href(e.state,e.params,e.options);s&&s();c&&(s=c.$$addStateInfo(e.state,e.params));e.href&&u.$set(o.attr,e.href)}var o=kt(r),c=f[1]||f[0],v=[u.uiState,u.uiStateParams||null,u.uiStateOpts||null],l="["+v.map(function(n){return n||"null"}).join(", ")+"]",e={state:null,params:null,options:null,href:null},s=null,h;(i.$watch(l,a,!0),a(i.$eval(l)),o.clickable)&&(h=dt(r,n,t,o,function(){return e}),r[r.on?"on":"bind"]("click",h),i.$on("$destroy",function(){r[r.off?"off":"unbind"]("click",h)}))}}}function it(n,t,i){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,r,u,o){function y(t,i,u){var o=n.get(t,bt(r)),f=b(t,i),e={state:o||{name:t},params:i,hash:f};return h.push(e),l[f]=u,function(){var n=h.indexOf(e);n!==-1&&h.splice(n,1)}}function b(n,i){if(!e(n))throw new Error("state should be a string");return s(i)?n+rt(i):(i=t.$eval(i),s(i))?n+rt(i):n}function v(){for(var n=0;n<h.length;n++)k(h[n].state,h[n].params)?p(r,l[h[n].hash]):w(r,l[h[n].hash]),d(h[n].state,h[n].params)?p(r,a):w(r,a)}function p(n,t){o(function(){n.addClass(t)})}function w(n,t){n.removeClass(t)}function k(t,i){return n.includes(t.name,i)}function d(t,i){return n.is(t.name,i)}var h=[],l={},a,c;a=i(u.uiSrefActiveEq||"",!1)(t);try{c=t.$eval(u.uiSrefActive)}catch(g){}c=c||i(u.uiSrefActive||"",!1)(t);s(c)&&f(c,function(i,r){if(e(i)){var u=wt(i,n.current.name);y(u.state,t.$eval(u.paramExpr),r)}});this.$$addStateInfo=function(n,t){if(!s(c)||!(h.length>0)){var i=y(n,t,c);return v(),i}};t.$on("$stateChangeSuccess",v);v()}]}}function ti(n){var t=function(t,i){return n.is(t,i)};return t.$stateful=!0,t}function ii(n){var t=function(t,i,r){return n.includes(t,i,r)};return t.$stateful=!0,t}var r=t.isDefined,o=t.isFunction,e=t.isString,s=t.isObject,a=t.isArray,f=t.forEach,u=t.extend,g=t.copy,rt=t.toJson,l;t.module("ui.router.util",["ng"]);t.module("ui.router.router",["ui.router.util"]);t.module("ui.router.state",["ui.router.router","ui.router.util"]);t.module("ui.router",["ui.router.state"]);t.module("ui.router.compat",["ui.router"]);ot.$inject=["$q","$injector"];t.module("ui.router.util").service("$resolve",ot);st.$inject=["$http","$templateCache","$injector"];t.module("ui.router.util").service("$templateFactory",st);v.prototype.concat=function(n,t){var i={caseInsensitive:l.caseInsensitive(),strict:l.strictMode(),squash:l.defaultSquashPolicy()};return new v(this.sourcePath+n+this.sourceSearch,u(i,t),this)};v.prototype.toString=function(){return this.source};v.prototype.exec=function(n,t){function v(n){function t(n){return n.split("").reverse().join("")}function i(n){return n.replace(/\\-/g,"-")}var r=t(n).split(/-(?!\\)/),u=y(r,t);return y(u,i).reverse()}var h=this.regexp.exec(n),u,i;if(!h)return null;t=t||{};var c=this.parameters(),a=c.length,l=this.segments.length-1,s={},o,f,e;if(l!==h.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(o=0;o<l;o++){for(e=c[o],u=this.params[e],i=h[o+1],f=0;f<u.replace.length;f++)u.replace[f].from===i&&(i=u.replace[f].to);i&&u.array===!0&&(i=v(i));r(i)&&(i=u.type.decode(i));s[e]=u.value(i)}for(;o<a;o++){for(e=c[o],s[e]=this.params[e].value(t[e]),u=this.params[e],i=t[e],f=0;f<u.replace.length;f++)u.replace[f].from===i&&(i=u.replace[f].to);r(i)&&(i=u.type.decode(i));s[e]=u.value(i)}return s};v.prototype.parameters=function(n){return r(n)?this.params[n]||null:this.$$paramNames};v.prototype.validates=function(n){return this.params.$$validates(n)};v.prototype.format=function(n){function nt(n){return encodeURIComponent(n).replace(/-/g,function(n){return"%5C%"+n.charCodeAt(0).toString(16).toUpperCase()})}var s,b,k;n=n||{};var h=this.segments,c=this.parameters(),d=this.params;if(!this.validates(n))return null;for(var l=!1,v=h.length-1,g=c.length,i=h[0],r=0;r<g;r++){var tt=r<v,o=c[r],u=d[o],p=u.value(n[o]),w=u.isOptional&&u.type.equals(u.value(),p),f=w?u.squash:!1,t=u.type.encode(p);if(tt)s=h[r+1],b=r+1===v,f===!1?(t!=null&&(i+=a(t)?y(t,nt).join("-"):encodeURIComponent(t)),i+=s):f===!0?(k=i.match(/\/$/)?/\/?(.*)/:/(.*)/,i+=s.match(k)[1]):e(f)&&(i+=f+s),b&&u.squash===!0&&i.slice(-1)==="/"&&(i=i.slice(0,-1));else{if(t==null||w&&f!==!1)continue;if(a(t)||(t=[t]),t.length===0)continue;t=y(t,encodeURIComponent).join("&"+o+"=");i+=(l?"&":"?")+(o+"="+t);l=!0}}return i};h.prototype.is=function(){return!0};h.prototype.encode=function(n){return n};h.prototype.decode=function(n){return n};h.prototype.equals=function(n,t){return n==t};h.prototype.$subPattern=function(){var n=this.pattern.toString();return n.substr(1,n.length-2)};h.prototype.pattern=/.*/;h.prototype.toString=function(){return"{Type:"+this.name+"}"};h.prototype.$normalize=function(n){return this.is(n)?n:this.decode(n)};h.prototype.$asArray=function(n,t){function u(n,t){function u(n,t){return function(){return n[t].apply(n,arguments)}}function e(n){return a(n)?n:r(n)?[n]:[]}function o(n){switch(n.length){case 0:return i;case 1:return t==="auto"?n[0]:n;default:return n}}function s(n){return!n}function f(n,t){return function(i){if(a(i)&&i.length===0)return i;i=e(i);var r=y(i,n);return t===!0?tt(r,s).length===0:o(r)}}function h(n){return function(t,i){var u=e(t),f=e(i),r;if(u.length!==f.length)return!1;for(r=0;r<u.length;r++)if(!n(u[r],f[r]))return!1;return!0}}this.encode=f(u(n,"encode"));this.decode=f(u(n,"decode"));this.is=f(u(n,"is"),!0);this.equals=h(u(n,"equals"));this.pattern=n.pattern;this.$normalize=f(u(n,"$normalize"));this.name=n.name;this.$arrayMode=t}if(!n)return this;if(n==="auto"&&!t)throw new Error("'auto' array mode is for query parameters only");return new u(this,n)};t.module("ui.router.util").provider("$urlMatcherFactory",ht);t.module("ui.router.util").run(["$urlMatcherFactory",function(){}]);ct.$inject=["$locationProvider","$urlMatcherFactoryProvider"];t.module("ui.router.router").provider("$urlRouter",ct);lt.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"];t.module("ui.router.state").factory("$stateParams",function(){return{}}).constant("$state.runtime",{autoinject:!0}).provider("$state",lt).run(["$injector",function(n){n.get("$state.runtime").autoinject&&n.get("$state")}]);at.$inject=[];t.module("ui.router.state").provider("$view",at);t.module("ui.router.state").provider("$uiViewScroll",ui);vt.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"];yt.$inject=["$compile","$controller","$state","$interpolate"];t.module("ui.router.state").directive("uiView",vt);t.module("ui.router.state").directive("uiView",yt);gt.$inject=["$state","$timeout"];ni.$inject=["$state","$timeout"];it.$inject=["$state","$stateParams","$interpolate"];t.module("ui.router.state").directive("uiSref",gt).directive("uiSrefActive",it).directive("uiSrefActiveEq",it).directive("uiState",ni);ti.$inject=["$state"];ii.$inject=["$state"];t.module("ui.router.state").filter("isState",ti).filter("includedByState",ii)}(window,window.angular);typeof module!="undefined"&&module.exports?module.exports=new AngularUUID:typeof define!="undefined"&&define.amd?define(function(){return new AngularUUID}):AngularUUID(),function(n,t){"use strict";typeof define=="function"&&define.amd?define(["angular"],t):n.hasOwnProperty("angular")?t(n.angular):typeof exports=="object"&&(module.exports=t(require("angular")))}(this,function(n){"use strict";function t(n,t){var i,r;try{i=n[t]}catch(u){i=!1}if(i){r="__"+Math.round(Math.random()*1e7);try{n[t].setItem(r,r);n[t].removeItem(r,r)}catch(u){i=!1}}return i}function i(i){var r=t(window,i);return function(){var u="ngStorage-",e,f;this.setKeyPrefix=function(n){if(typeof n!="string")throw new TypeError("[ngStorage] - "+i+"Provider.setKeyPrefix() expects a String.");u=n};e=n.toJson;f=n.fromJson;this.setSerializer=function(n){if(typeof n!="function")throw new TypeError("[ngStorage] - "+i+"Provider.setSerializer expects a function.");e=n};this.setDeserializer=function(n){if(typeof n!="function")throw new TypeError("[ngStorage] - "+i+"Provider.setDeserializer expects a function.");f=n};this.supported=function(){return!!r};this.get=function(n){return r&&f(r.getItem(u+n))};this.set=function(n,t){return r&&r.setItem(u+n,e(t))};this.remove=function(n){r&&r.removeItem(u+n)};this.$get=["$rootScope","$window","$log","$timeout","$document",function(r,o,s,h,c){var v=u.length,w=t(o,i),a=w||(s.warn("This browser does not support Web Storage!"),{setItem:n.noop,getItem:n.noop,removeItem:n.noop}),l={$default:function(t){for(var i in t)n.isDefined(l[i])||(l[i]=n.copy(t[i]));return l.$sync(),l},$reset:function(n){for(var t in l)"$"===t[0]||delete l[t]&&a.removeItem(u+t);return l.$default(n)},$sync:function(){for(var t=0,i=a.length,n;t<i;t++)(n=a.key(t))&&u===n.slice(0,v)&&(l[n.slice(v)]=f(a.getItem(n)))},$apply:function(){var t,i;if(p=null,!n.equals(l,y)){t=n.copy(y);n.forEach(l,function(i,r){n.isDefined(i)&&"$"!==r[0]&&(a.setItem(u+r,e(i)),delete t[r])});for(i in t)a.removeItem(u+i);y=n.copy(l)}},$supported:function(){return!!w}},y,p;return l.$sync(),y=n.copy(l),r.$watch(function(){p||(p=h(l.$apply,100,!1))}),o.addEventListener&&o.addEventListener("storage",function(t){if(t.key){var i=c[0];i.hasFocus&&i.hasFocus()||u!==t.key.slice(0,v)||(t.newValue?l[t.key.slice(v)]=f(t.newValue):delete l[t.key.slice(v)],y=n.copy(l),r.$apply())}}),o.addEventListener&&o.addEventListener("beforeunload",function(){l.$apply()}),l}]}}return n=n&&n.module?n:window.angular,n.module("ngStorage",[]).provider("$localStorage",i("localStorage")).provider("$sessionStorage",i("sessionStorage"))});angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","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.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(n,t,i,r){var u=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,f,e){function v(){f.hasClass("collapse")&&f.hasClass("in")||t.resolve(h(r)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1);u?u(f,{addClass:"in",easing:"ease",to:{height:f[0].scrollHeight+"px"}}).start()["finally"](s):n.addClass(f,"in",{to:{height:f[0].scrollHeight+"px"}}).then(s)})}function s(){f.removeClass("collapsing").addClass("collapse").css({height:"auto"});c(r)}function y(){if(!f.hasClass("collapse")&&!f.hasClass("in"))return o();t.resolve(l(r)).then(function(){f.css({height:f[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0);u?u(f,{removeClass:"in",to:{height:"0"}}).start()["finally"](o):n.removeClass(f,"in",{to:{height:"0"}}).then(o)})}function o(){f.css({height:"0"});f.removeClass("collapsing").addClass("collapse");a(r)}var h=i(e.expanding),c=i(e.expanded),l=i(e.collapsing),a=i(e.collapsed);r.$eval(e.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"});r.$watch(e.uibCollapse,function(n){n?y():v()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",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);t!==-1&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.openClass=i.openClass||"panel-open";n.panelClass=i.panelClass||"panel-default";n.$watch("isOpen",function(i){t.toggleClass(n.openClass,!!i);i&&r.closeOthers(n)});n.toggleOpen=function(t){n.isDisabled||t&&t.which!==32||(n.isOpen=!n.isOpen)};var u="accordiongroup-"+n.$id+"-"+Math.floor(Math.random()*1e4);n.headingId=u+"-tab";n.panelId=u+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,angular.noop))}}}).directive("uibAccordionTransclude",function(){function n(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,i,r,u){t.$watch(function(){return u[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(i[0].querySelector(n()));r.html("");r.append(t)}})}}});angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(n,t,i,r){n.closeable=!!t.close;var u=angular.isDefined(t.dismissOnTimeout)?i(t.dismissOnTimeout)(n.$parent):null;u&&r(function(){n.close()},parseInt(u,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(n,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}});angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(n){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,i,r,u){var e=u[0],f=u[1],o=n(r.uibUncheckable);i.find("input").css({display:"none"});f.$render=function(){i.toggleClass(e.activeClass,angular.equals(f.$modelValue,t.$eval(r.uibBtnRadio)))};i.on(e.toggleEvent,function(){if(!r.disabled){var n=i.hasClass(e.activeClass);(!n||angular.isDefined(r.uncheckable))&&t.$apply(function(){f.$setViewValue(n?null:t.$eval(r.uibBtnRadio));f.$render()})}});r.uibUncheckable&&t.$watch(o,function(n){r.$set("uncheckable",n?"":undefined)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){return angular.isDefined(t)?n.$eval(t):i}var f=r[0],u=r[1];t.find("input").css({display:"none"});u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.on(f.toggleEvent,function(){i.disabled||n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(n,t,i,r,u){function a(){while(s.length)s.shift()}function h(n){for(var t=0;t<f.length;t++)f[t].slide.active=t===n}function k(i,r,c){if(!b){if(angular.extend(i,{direction:c}),angular.extend(f[o].slide||{},{direction:c}),u.enabled(t)&&!n.$currentTransition&&f[r].element&&e.slides.length>1){f[r].element.data(w,i.direction);var l=e.getCurrentIndex();angular.isNumber(l)&&f[l].element&&f[l].element.data(w,i.direction);n.$currentTransition=!0;u.on("addClass",f[r].element,function(t,i){if(i==="close"&&(n.$currentTransition=null,u.off("addClass",t),s.length)){var r=s.pop().slide,f=r.index,o=f>e.getCurrentIndex()?"next":"prev";a();k(r,f,o)}})}n.active=i.index;o=i.index;h(r);p()}}function v(n){for(var t=0;t<f.length;t++)if(f[t].slide===n)return t}function y(){c&&(i.cancel(c),c=null)}function d(t){t.length||(n.$currentTransition=null,a())}function p(){y();var t=+n.interval;!isNaN(t)&&t>0&&(c=i(g,t))}function g(){var t=+n.interval;l&&!isNaN(t)&&t>0&&f.length?n.next():n.pause()}var e=this,f=e.slides=n.slides=[],w="uib-slideDirection",o=n.active,c,l,s=[],b=!1;e.addSlide=function(t,i){f.push({slide:t,element:i});f.sort(function(n,t){return+n.slide.index-+t.slide.index});t.index!==n.active&&(f.length!==1||angular.isNumber(n.active))||(n.$currentTransition&&(n.$currentTransition=null),o=t.index,n.active=t.index,h(o),e.select(f[v(t)]),f.length===1&&n.play())};e.getCurrentIndex=function(){for(var n=0;n<f.length;n++)if(f[n].slide.index===o)return n};e.next=n.next=function(){var t=(e.getCurrentIndex()+1)%f.length;if(t===0&&n.noWrap()){n.pause();return}return e.select(f[t],"next")};e.prev=n.prev=function(){var t=e.getCurrentIndex()-1<0?f.length-1:e.getCurrentIndex()-1;if(n.noWrap()&&t===f.length-1){n.pause();return}return e.select(f[t],"prev")};e.removeSlide=function(t){var i=v(t),r=s.indexOf(f[i]);r!==-1&&s.splice(r,1);f.splice(i,1);f.length>0&&o===i?i>=f.length?(o=f.length-1,n.active=o,h(o),e.select(f[f.length-1])):(o=i,n.active=o,h(o),e.select(f[i])):o>i&&(o--,n.active=o);f.length===0&&(o=null,n.active=null,a())};e.select=n.select=function(t,i){var r=v(t.slide);i===undefined&&(i=r>e.getCurrentIndex()?"next":"prev");t.slide.index===o||n.$currentTransition?t&&t.slide.index!==o&&n.$currentTransition&&s.push(f[r]):k(t.slide,r,i)};n.indexOfSlide=function(n){return+n.slide.index};n.isActive=function(t){return n.active===t.slide.index};n.isPrevDisabled=function(){return n.active===0&&n.noWrap()};n.isNextDisabled=function(){return n.active===f.length-1&&n.noWrap()};n.pause=function(){n.noPause||(l=!1,y())};n.play=function(){l||(l=!0,p())};n.$on("$destroy",function(){b=!0;y()});n.$watch("noTransition",function(n){u.enabled(t,!n)});n.$watch("interval",p);n.$watchCollection("slides",d);n.$watch("active",function(n){var t,i;if(angular.isNumber(n)&&o!==n){for(t=0;t<f.length;t++)if(f[t].slide.index===n){n=t;break}i=f[n];i&&(h(n),e.select(f[n]),o=n)}})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)})}}}).animation(".item",["$animateCss",function(n){function i(n,t,i){n.removeClass(t);i&&i()}var t="uib-slideDirection";return{beforeAddClass:function(r,u,f){if(u==="active"){var s=!1,e=r.data(t),o=e==="next"?"left":"right",h=i.bind(this,r,o+" "+e,f);return r.addClass(e),n(r,{addClass:o}).start().done(h),function(){s=!0}}f()},beforeRemoveClass:function(r,u,f){if(u==="active"){var o=!1,s=r.data(t),e=s==="next"?"left":"right",h=i.bind(this,r,e,f);return n(r,{addClass:e}).start().done(h),function(){o=!0}}f()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(n,t,i,r){function o(n,t){var o=[],u=n.split(""),s=n.indexOf("'"),f,i;if(s>-1){for(f=!1,n=n.split(""),i=s;i<n.length;i++)f?(n[i]==="'"&&(i+1<n.length&&n[i+1]==="'"?(n[i+1]="$",u[i+1]=""):(u[i]="",f=!1)),n[i]="$"):n[i]==="'"&&(n[i]="$",u[i]="",f=!0);n=n.join("")}return angular.forEach(e,function(i){var r=n.indexOf(i.key),f,e;if(r>-1){for(n=n.split(""),u[r]="("+i.regex+")",n[r]="$",f=r+1,e=r+i.key.length;f<e;f++)u[f]="",n[f]="$";n=n.join("");o.push({index:r,key:i.key,apply:i[t],matcher:i.regex})}}),{regex:new RegExp("^"+u.join("")+"$"),map:r(o,"index")}}function a(n,t,i){return i<1?!1:t===1&&i>28?i===29&&(n%4==0&&n%100!=0||n%400==0):t===3||t===5||t===8||t===10?i<31:!0}function s(n){return parseInt(n,10)}function v(n,t){return n&&t?f(n,t):n}function y(n,t){return n&&t?f(n,t,!0):n}function h(n,t){n=n.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function c(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function f(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=h(t,r);return c(n,i*(u-r))}var l=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,u,e;this.init=function(){u=t.id;this.parsers={};this.formatters={};e=[{key:"yyyy",regex:"\\d{4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(n){n=+n;this.year=n<69?n+2e3:n+1900},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){var t=n.getMonth();return/^[0-9]$/.test(t)?i(n,"MM"):i(n,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.MONTH.indexOf(n)},formatter:function(n){return i(n,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(n)},formatter:function(n){return i(n,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){var t=n.getDate();return/^[1-9]$/.test(t)?i(n,"dd"):i(n,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(n){return i(n,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(n){return i(n,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(n){this.milliseconds=+n},formatter:function(n){return i(n,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(n){this.hours===12&&(this.hours=0);n==="PM"&&(this.hours+=12)},formatter:function(n){return i(n,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(n){var t=n.match(/([+-])(\d{2})(\d{2})/),i=t[1],r=t[2],u=t[3];this.hours+=s(i+r);this.minutes+=s(i+u)},formatter:function(n){return i(n,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(n){return i(n,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(n){return i(n,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(n){return i(n,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"G")}}]};this.init();this.filter=function(n,i){if(!angular.isDate(n)||isNaN(n)||!i)return"";i=t.DATETIME_FORMATS[i]||i;t.id!==u&&this.init();this.formatters[i]||(this.formatters[i]=o(i,"formatter"));var e=this.formatters[i],f=e.map,r=i;return f.reduce(function(t,i,u){var e=r.match(new RegExp("(.*)"+i.key)),o;return(e&&angular.isString(e[1])&&(t+=e[1],r=r.replace(e[1]+i.key,"")),o=u===f.length-1?r:"",i.apply)?t+i.apply.call(null,n)+o:t+o},"")};this.parse=function(i,r,f){var e,s,h,k,y,p,w;if(!angular.isString(i)||!r)return i;r=t.DATETIME_FORMATS[r]||r;r=r.replace(l,"\\$&");t.id!==u&&this.init();this.parsers[r]||(this.parsers[r]=o(r,"apply"));var b=this.parsers[r],d=b.regex,g=b.map,c=i.match(d),v=!1;if(c&&c.length){for(angular.isDate(f)&&!isNaN(f.getTime())?e={year:f.getFullYear(),month:f.getMonth(),date:f.getDate(),hours:f.getHours(),minutes:f.getMinutes(),seconds:f.getSeconds(),milliseconds:f.getMilliseconds()}:(f&&n.warn("dateparser:","baseDate is not a valid date"),e={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),h=1,k=c.length;h<k;h++)y=g[h-1],y.matcher==="Z"&&(v=!0),y.apply&&y.apply.call(e,c[h]);return p=v?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,w=v?Date.prototype.setUTCHours:Date.prototype.setHours,a(e.year,e.month,e.date)&&(!angular.isDate(f)||isNaN(f.getTime())||v?(s=new Date(0),p.call(s,e.year,e.month,e.date),w.call(s,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0)):(s=new Date(f),p.call(s,e.year,e.month,e.date),w.call(s,e.hours,e.minutes,e.seconds,e.milliseconds))),s}};this.toTimezone=v;this.fromTimezone=y;this.timezoneToOffset=h;this.addDateMinutes=c;this.convertTimezoneToLocal=f}]);angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(n){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,i=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,u){function a(n,t){f.push(n);o.push({scope:n,element:t});l.forEach(function(t){v(t,n)});n.$on("$destroy",y)}function v(t,r){var c=t.match(i),l=r.$eval(c[1]),f=c[2],u=e[t],s;u||(s=function(t){var i=null;o.some(function(n){var r=n.scope.$eval(h);if(r===t)return i=n,!0});u.lastActivated!==i&&(u.lastActivated&&n.removeClass(u.lastActivated.element,l),i&&n.addClass(i.element,l),u.lastActivated=i)},e[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:f,watcher:r.$watch(f,s)});u.watchFn(r.$eval(f))}function y(n){var i=n.targetScope,r=f.indexOf(i),t;f.splice(r,1);o.splice(r,1);f.length?(t=f[0],angular.forEach(e,function(n){n.scope===i&&(n.watcher=t.$watch(n.compareWithExp,n.watchFn),n.scope=t)})):e={}}var f=[],o=[],e={},s=u.uibIsClass.match(t),h=s[2],c=s[1],l=c.split(",");return a}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(n,t,i,r,u,f,e,o,s,h,c){function w(t){n.datepickerMode=t;n.datepickerOptions.datepickerMode=t}var l=this,a={$setViewValue:angular.noop},v={},y=[],b=!!t.datepickerOptions,p;n.datepickerOptions||(n.datepickerOptions={});this.modes=["day","month","year"];["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":n[t]=n.datepickerOptions[t]||angular.noop;break;case"datepickerMode":n.datepickerMode=angular.isDefined(n.datepickerOptions.datepickerMode)?n.datepickerOptions.datepickerMode:o.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":l[t]=angular.isDefined(n.datepickerOptions[t])?r(n.datepickerOptions[t])(n.$parent):o[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":l[t]=angular.isDefined(n.datepickerOptions[t])?n.datepickerOptions[t]:o[t];break;case"startingDay":l.startingDay=angular.isDefined(n.datepickerOptions.startingDay)?n.datepickerOptions.startingDay:angular.isNumber(o.startingDay)?o.startingDay:(u.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":n.$watch("datepickerOptions."+t,function(n){n?angular.isDate(n)?l[t]=c.fromTimezone(new Date(n),v.timezone):(s&&f.warn("Literal date support has been deprecated, please switch to date object usage"),l[t]=new Date(e(n,"medium"))):l[t]=o[t]?c.fromTimezone(new Date(o[t]),v.timezone):null;l.refreshView()});break;case"maxMode":case"minMode":n.datepickerOptions[t]?n.$watch(function(){return n.datepickerOptions[t]},function(i){l[t]=n[t]=angular.isDefined(i)?i:datepickerOptions[t];(t==="minMode"&&l.modes.indexOf(n.datepickerOptions.datepickerMode)<l.modes.indexOf(l[t])||t==="maxMode"&&l.modes.indexOf(n.datepickerOptions.datepickerMode)>l.modes.indexOf(l[t]))&&(n.datepickerMode=l[t],n.datepickerOptions.datepickerMode=l[t])}):l[t]=n[t]=o[t]||null}});n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(Math.random()*1e4);n.disabled=angular.isDefined(t.disabled)||!1;angular.isDefined(t.ngDisabled)&&y.push(n.$parent.$watch(t.ngDisabled,function(t){n.disabled=t;l.refreshView()}));n.isActive=function(t){return l.compare(t.date,l.activeDate)===0?(n.activeDateId=t.uid,!0):!1};this.init=function(t){a=t;v=t.$options||o.ngModelOptions;n.datepickerOptions.initDate?(l.activeDate=c.fromTimezone(n.datepickerOptions.initDate,v.timezone)||new Date,n.$watch("datepickerOptions.initDate",function(n){n&&(a.$isEmpty(a.$modelValue)||a.$invalid)&&(l.activeDate=c.fromTimezone(n,v.timezone),l.refreshView())})):l.activeDate=new Date;var i=a.$modelValue?new Date(a.$modelValue):new Date;this.activeDate=isNaN(i)?c.fromTimezone(new Date,v.timezone):c.fromTimezone(i,v.timezone);a.$render=function(){l.render()}};this.render=function(){if(a.$viewValue){var n=new Date(a.$viewValue),t=!isNaN(n);t?this.activeDate=c.fromTimezone(n,v.timezone):h||f.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()};this.refreshView=function(){if(this.element){n.selectedDt=null;this._refreshView();n.activeDt&&(n.activeDateId=n.activeDt.uid);var t=a.$viewValue?new Date(a.$viewValue):null;t=c.fromTimezone(t,v.timezone);a.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}};this.createDateObject=function(t,i){var r=a.$viewValue?new Date(a.$viewValue):null,f,e,u;return r=c.fromTimezone(r,v.timezone),f=new Date,f=c.fromTimezone(f,v.timezone),e=this.compare(t,f),u={date:t,label:c.filter(t,i),selected:r&&this.compare(t,r)===0,disabled:this.isDisabled(t),past:e<0,current:e===0,future:e>0,customClass:this.customClass(t)||null},r&&this.compare(t,r)===0&&(n.selectedDt=u),l.activeDate&&this.compare(u.date,l.activeDate)===0&&(n.activeDt=u),u};this.isDisabled=function(t){return n.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})};this.customClass=function(t){return n.customClass({date:t,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===l.minMode){var i=a.$viewValue?c.fromTimezone(new Date(a.$viewValue),v.timezone):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());i=c.toTimezone(i,v.timezone);a.$setViewValue(i);a.$render()}else l.activeDate=t,w(l.modes[l.modes.indexOf(n.datepickerMode)-1]),n.$emit("uib:datepicker.mode");n.$broadcast("uib:datepicker.focus")};n.move=function(n){var t=l.activeDate.getFullYear()+n*(l.step.years||0),i=l.activeDate.getMonth()+n*(l.step.months||0);l.activeDate.setFullYear(t,i,1);l.refreshView()};n.toggleMode=function(t){(t=t||1,(n.datepickerMode!==l.maxMode||t!==1)&&(n.datepickerMode!==l.minMode||t!==-1))&&(w(l.modes[l.modes.indexOf(n.datepickerMode)+t]),n.$emit("uib:datepicker.mode"))};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};p=function(){l.element[0].focus()};n.$on("uib:datepicker.focus",p);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey&&!n.disabled)if(t.preventDefault(),l.shortcutPropagation||t.stopPropagation(),i==="enter"||i==="space"){if(l.isDisabled(l.activeDate))return;n.select(l.activeDate)}else t.ctrlKey&&(i==="up"||i==="down")?n.toggleMode(i==="up"?1:-1):(l.handleKeyDown(i,t),l.refreshView())};n.$on("$destroy",function(){while(y.length)y.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(n,t,i){function r(n,t){return t===1&&n%4==0&&(n%100!=0||n%400==0)?29:u[t]}function f(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}var u=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1};this.element=t;this.init=function(t){angular.extend(t,this);n.showWeeks=t.showWeeks;t.refreshView()};this.getDates=function(n,t){for(var r=new Array(t),i=new Date(n),u=0,f;u<t;)f=new Date(i),r[u++]=f,i.setDate(i.getDate()+1);return r};this._refreshView=function(){var y=this.activeDate.getFullYear(),h=this.activeDate.getMonth(),o=new Date(this.activeDate),t,r,u,a,v,e;o.setFullYear(y,h,1);var s=this.startingDay-o.getDay(),c=s>0?7-s:-s,l=new Date(o);for(c>0&&l.setDate(-c+1),t=this.getDates(l,42),r=0;r<42;r++)t[r]=angular.extend(this.createDateObject(t[r],this.formatDay),{secondary:t[r].getMonth()!==h,uid:n.uniqueId+"-"+r});for(n.labels=new Array(7),u=0;u<7;u++)n.labels[u]={abbr:i(t[u].date,this.formatDayHeader),full:i(t[u].date,"EEEE")};if(n.title=i(this.activeDate,this.formatDayTitle),n.rows=this.split(t,7),n.showWeeks)for(n.weekNumbers=[],a=(11-this.startingDay)%7,v=n.rows.length,e=0;e<v;e++)n.weekNumbers.push(f(n.rows[e][a].date))};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getDate(),i;n==="left"?t=t-1:n==="up"?t=t-7:n==="right"?t=t+1:n==="down"?t=t+7:n==="pageup"||n==="pagedown"?(i=this.activeDate.getMonth()+(n==="pageup"?-1:1),this.activeDate.setMonth(i,1),t=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)):n==="home"?t=1:n==="end"&&(t=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(n,t,i){this.step={years:1};this.element=t;this.init=function(n){angular.extend(n,this);n.refreshView()};this._refreshView=function(){for(var u=new Array(12),f=this.activeDate.getFullYear(),r,t=0;t<12;t++)r=new Date(this.activeDate),r.setFullYear(f,t,1),u[t]=angular.extend(this.createDateObject(r,this.formatMonth),{uid:n.uniqueId+"-"+t});n.title=i(this.activeDate,this.formatMonthTitle);n.rows=this.split(u,3)};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getMonth(),i;n==="left"?t=t-1:n==="up"?t=t-3:n==="right"?t=t+1:n==="down"?t=t+3:n==="pageup"||n==="pagedown"?(i=this.activeDate.getFullYear()+(n==="pageup"?-1:1),this.activeDate.setFullYear(i)):n==="home"?t=0:n==="end"&&(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(n,t){function u(n){return parseInt((n-1)/i,10)*i+1}var r,i;this.element=t;this.yearpickerInit=function(){r=this.yearColumns;i=this.yearRows*r;this.step={years:i}};this._refreshView=function(){for(var f=new Array(i),e,t=0,o=u(this.activeDate.getFullYear());t<i;t++)e=new Date(this.activeDate),e.setFullYear(o+t,0,1),f[t]=angular.extend(this.createDateObject(e,this.formatYear),{uid:n.uniqueId+"-"+t});n.title=[f[0].label,f[i-1].label].join(" - ");n.rows=this.split(f,r);n.columns=r};this.compare=function(n,t){return n.getFullYear()-t.getFullYear()};this.handleKeyDown=function(n){var t=this.activeDate.getFullYear();n==="left"?t=t-1:n==="up"?t=t-r:n==="right"?t=t+1:n==="down"?t=t+r:n==="pageup"||n==="pagedown"?t+=(n==="pageup"?-1:1)*i:n==="home"?t=u(this.activeDate.getFullYear()):n==="end"&&(t=u(this.activeDate.getFullYear())+i-1);this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(n,t,i,r){var u=r[0];angular.extend(u,r[1]);u.yearpickerInit();u.refreshView()}}});angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(n,t){var r,u,f={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},i={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},e=/(HTML|BODY)/;return{getRawNode:function(n){return n.nodeName?n:n[0]||n},parseStyle:function(n){return n=parseFloat(n),isFinite(n)?n:0},offsetParent:function(i){function u(n){return(t.getComputedStyle(n).position||"static")==="static"}i=this.getRawNode(i);for(var r=i.offsetParent||n[0].documentElement;r&&r!==n[0].documentElement&&u(r);)r=r.offsetParent;return r||n[0].documentElement},scrollbarWidth:function(i){var e,f;return i?(angular.isUndefined(u)&&(e=n.find("body"),e.addClass("uib-position-body-scrollbar-measure"),u=t.innerWidth-e[0].clientWidth,u=isFinite(u)?u:0,e.removeClass("uib-position-body-scrollbar-measure")),u):(angular.isUndefined(r)&&(f=angular.element('<div class="uib-position-scrollbar-measure"><\/div>'),n.find("body").append(f),r=f[0].offsetWidth-f[0].clientWidth,r=isFinite(r)?r:0,f.remove()),r)},scrollbarPadding:function(n){n=this.getRawNode(n);var u=t.getComputedStyle(n),f=this.parseStyle(u.paddingRight),o=this.parseStyle(u.paddingBottom),i=this.scrollParent(n,!1,!0),r=this.scrollbarWidth(i,e.test(i.tagName));return{scrollbarWidth:r,widthOverflow:i.scrollWidth>i.clientWidth,right:f+r,originalRight:f,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+r,originalBottom:o}},isScrollable:function(n,i){n=this.getRawNode(n);var u=i?f.hidden:f.normal,r=t.getComputedStyle(n);return u.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(i,r,u){var c,e,s;i=this.getRawNode(i);var l=r?f.hidden:f.normal,h=n[0].documentElement,o=t.getComputedStyle(i);if(u&&l.test(o.overflow+o.overflowY+o.overflowX))return i;if(c=o.position==="absolute",e=i.parentElement||h,e===h||o.position==="fixed")return h;while(e.parentElement&&e!==h){if(s=t.getComputedStyle(e),c&&s.position!=="static"&&(c=!1),!c&&l.test(s.overflow+s.overflowY+s.overflowX))break;e=e.parentElement}return e},position:function(i,r){var u,o,f,e;return i=this.getRawNode(i),u=this.offset(i),r&&(o=t.getComputedStyle(i),u.top-=this.parseStyle(o.marginTop),u.left-=this.parseStyle(o.marginLeft)),f=this.offsetParent(i),e={top:0,left:0},f!==n[0].documentElement&&(e=this.offset(f),e.top+=f.clientTop-f.scrollTop,e.left+=f.clientLeft-f.scrollLeft),{width:Math.round(angular.isNumber(u.width)?u.width:i.offsetWidth),height:Math.round(angular.isNumber(u.height)?u.height:i.offsetHeight),top:Math.round(u.top-e.top),left:Math.round(u.left-e.left)}},offset:function(i){i=this.getRawNode(i);var r=i.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:i.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:i.offsetHeight),top:Math.round(r.top+(t.pageYOffset||n[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||n[0].documentElement.scrollLeft))}},viewportOffset:function(i,r,u){var o;i=this.getRawNode(i);u=u!==!1?!0:!1;var s=i.getBoundingClientRect(),f={top:0,left:0,bottom:0,right:0},e=r?n[0].documentElement:this.scrollParent(i),h=e.getBoundingClientRect();return f.top=h.top+e.clientTop,f.left=h.left+e.clientLeft,e===n[0].documentElement&&(f.top+=t.pageYOffset,f.left+=t.pageXOffset),f.bottom=f.top+e.clientHeight,f.right=f.left+e.clientWidth,u&&(o=t.getComputedStyle(e),f.top+=this.parseStyle(o.paddingTop),f.bottom-=this.parseStyle(o.paddingBottom),f.left+=this.parseStyle(o.paddingLeft),f.right-=this.parseStyle(o.paddingRight)),{top:Math.round(s.top-f.top),bottom:Math.round(f.bottom-s.bottom),left:Math.round(s.left-f.left),right:Math.round(f.right-s.right)}},parsePlacement:function(n){var t=i.auto.test(n);return t&&(n=n.replace(i.auto,"")),n=n.split("-"),n[0]=n[0]||"top",i.primary.test(n[0])||(n[0]="top"),n[1]=n[1]||"center",i.secondary.test(n[1])||(n[1]="center"),n[2]=t?!0:!1,n},positionElements:function(n,r,u,f){var c,l,e,h,v,y;if(n=this.getRawNode(n),r=this.getRawNode(r),c=angular.isDefined(r.offsetWidth)?r.offsetWidth:r.prop("offsetWidth"),l=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),u=this.parsePlacement(u),e=f?this.offset(n):this.position(n),h={top:0,left:0,placement:""},u[2]){var o=this.viewportOffset(n,f),a=t.getComputedStyle(r),s={width:c+Math.round(Math.abs(this.parseStyle(a.marginLeft)+this.parseStyle(a.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(a.marginTop)+this.parseStyle(a.marginBottom)))};u[0]=u[0]==="top"&&s.height>o.top&&s.height<=o.bottom?"bottom":u[0]==="bottom"&&s.height>o.bottom&&s.height<=o.top?"top":u[0]==="left"&&s.width>o.left&&s.width<=o.right?"right":u[0]==="right"&&s.width>o.right&&s.width<=o.left?"left":u[0];u[1]=u[1]==="top"&&s.height-e.height>o.bottom&&s.height-e.height<=o.top?"bottom":u[1]==="bottom"&&s.height-e.height>o.top&&s.height-e.height<=o.bottom?"top":u[1]==="left"&&s.width-e.width>o.right&&s.width-e.width<=o.left?"right":u[1]==="right"&&s.width-e.width>o.left&&s.width-e.width<=o.right?"left":u[1];u[1]==="center"&&(i.vertical.test(u[0])?(v=e.width/2-c/2,o.left+v<0&&s.width-e.width<=o.right?u[1]="left":o.right+v<0&&s.width-e.width<=o.left&&(u[1]="right")):(y=e.height/2-s.height/2,o.top+y<0&&s.height-e.height<=o.bottom?u[1]="top":o.bottom+y<0&&s.height-e.height<=o.top&&(u[1]="bottom")))}switch(u[0]){case"top":h.top=e.top-l;break;case"bottom":h.top=e.top+e.height;break;case"left":h.left=e.left-c;break;case"right":h.left=e.left+e.width}switch(u[1]){case"top":h.top=e.top;break;case"bottom":h.top=e.top+e.height-l;break;case"left":h.left=e.left;break;case"right":h.left=e.left+e.width-c;break;case"center":i.vertical.test(u[0])?h.left=e.left+e.width/2-c/2:h.top=e.top+e.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement=u[1]==="center"?u[0]:u[0]+"-"+u[1],h},positionArrow:function(n,r){var o,f,e,u,c;if((n=this.getRawNode(n),o=n.querySelector(".tooltip-inner, .popover-inner"),o)&&(f=angular.element(o).hasClass("tooltip-inner"),e=f?n.querySelector(".tooltip-arrow"):n.querySelector(".arrow"),e)){if(u={top:"",bottom:"",left:"",right:""},r=this.parsePlacement(r),r[1]==="center"){angular.element(e).css(u);return}var l="border-"+r[0]+"-width",s=t.getComputedStyle(e)[l],h="border-";h+=i.vertical.test(r[0])?r[0]+"-"+r[1]:r[1]+"-"+r[0];h+="-radius";c=t.getComputedStyle(f?o:n)[h];switch(r[0]){case"top":u.bottom=f?"0":"-"+s;break;case"bottom":u.top=f?"0":"-"+s;break;case"left":u.right=f?"0":"-"+s;break;case"right":u.left=f?"0":"-"+s}u[r[1]]=c;angular.element(e).css(u)}}}}]);angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function st(t){var i=l.parse(t,b,n.date),r;if(isNaN(i))for(r=0;r<et.length;r++)if(i=l.parse(t,et[r],n.date),!isNaN(i))return i;return i}function pt(n){if(angular.isNumber(n)&&(n=new Date(n)),!n)return null;if(angular.isDate(n)&&!isNaN(n))return n;if(angular.isString(n)){var t=st(n);if(!isNaN(t))return l.toTimezone(t,g)}return w.$options&&w.$options.allowInvalid?n:undefined}function wt(n,t){var r=n||t;return!i.ngRequired&&!r?!0:(angular.isNumber(r)&&(r=new Date(r)),!r)?!0:angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(st(t)):!1}function ht(i){if(n.isOpen||!n.disabled){var r=tt[0],u=t[0].contains(i.target),f=r.contains!==undefined&&r.contains(i.target);!n.isOpen||u||f||n.$apply(function(){n.isOpen=!1})}}function yt(i){i.which===27&&n.isOpen?(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!1}),t[0].focus()):i.which!==40||n.isOpen||(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!0}))}function d(){if(n.isOpen){var r=angular.element(tt[0].querySelector(".uib-datepicker-popup")),f=i.popupPlacement?i.popupPlacement:a.placement,u=h.positionElements(t,r,f,rt);r.css({top:u.top+"px",left:u.left+"px"});r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}var it=!1,b,ct,rt,lt,at,vt,nt,ft,k,w,ut,tt,et,ot=[],g;this.init=function(u){if(w=u,ut=u.$options,ct=angular.isDefined(i.closeOnDateSelection)?n.$parent.$eval(i.closeOnDateSelection):a.closeOnDateSelection,rt=angular.isDefined(i.datepickerAppendToBody)?n.$parent.$eval(i.datepickerAppendToBody):a.appendToBody,lt=angular.isDefined(i.onOpenFocus)?n.$parent.$eval(i.onOpenFocus):a.onOpenFocus,at=angular.isDefined(i.datepickerPopupTemplateUrl)?i.datepickerPopupTemplateUrl:a.datepickerPopupTemplateUrl,vt=angular.isDefined(i.datepickerTemplateUrl)?i.datepickerTemplateUrl:a.datepickerTemplateUrl,et=angular.isDefined(i.altInputFormats)?n.$parent.$eval(i.altInputFormats):a.altInputFormats,n.showButtonBar=angular.isDefined(i.showButtonBar)?n.$parent.$eval(i.showButtonBar):a.showButtonBar,a.html5Types[i.type]?(b=a.html5Types[i.type],it=!0):(b=i.uibDatepickerPopup||a.datepickerPopup,i.$observe("uibDatepickerPopup",function(n){var t=n||a.datepickerPopup;if(t!==b&&(b=t,w.$modelValue=null,!b))throw new Error("uibDatepickerPopup must have a date format specified.");})),!b)throw new Error("uibDatepickerPopup must have a date format specified.");if(it&&i.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");nt=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker><\/div><\/div>");ut?(g=ut.timezone,n.ngModelOptions=angular.copy(ut),n.ngModelOptions.timezone=null,n.ngModelOptions.updateOnDefault===!0&&(n.ngModelOptions.updateOn=n.ngModelOptions.updateOn?n.ngModelOptions.updateOn+" default":"default"),nt.attr("ng-model-options","ngModelOptions")):g=null;nt.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":at});ft=angular.element(nt.children()[0]);ft.attr("template-url",vt);n.datepickerOptions||(n.datepickerOptions={});it&&i.type==="month"&&(n.datepickerOptions.datepickerMode="month",n.datepickerOptions.minMode="month");ft.attr("datepicker-options","datepickerOptions");it?w.$formatters.push(function(t){return n.date=l.fromTimezone(t,g),t}):(w.$$parserName="date",w.$validators.date=wt,w.$parsers.unshift(pt),w.$formatters.push(function(t){return w.$isEmpty(t)?(n.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),n.date=l.fromTimezone(t,g),l.filter(n.date,b))}));w.$viewChangeListeners.push(function(){n.date=st(w.$viewValue)});t.on("keydown",yt);tt=r(nt)(n);nt.remove();rt?o.find("body").append(tt):t.after(tt);n.$on("$destroy",function(){for(n.isOpen===!0&&(s.$$phase||n.$apply(function(){n.isOpen=!1})),tt.remove(),t.off("keydown",yt),o.off("click",ht),k&&k.off("scroll",d),angular.element(e).off("resize",d);ot.length;)ot.shift()()})};n.getText=function(t){return n[t+"Text"]||a[t+"Text"]};n.isDisabled=function(t){t==="today"&&(t=l.fromTimezone(new Date,g));var i={};return angular.forEach(["minDate","maxDate"],function(t){n.datepickerOptions[t]?angular.isDate(n.datepickerOptions[t])?i[t]=l.fromTimezone(new Date(n.datepickerOptions[t]),g):(p&&u.warn("Literal date support has been deprecated, please switch to date object usage"),i[t]=new Date(c(n.datepickerOptions[t],"medium"))):i[t]=null}),n.datepickerOptions&&i.minDate&&n.compare(t,i.minDate)<0||i.maxDate&&n.compare(t,i.maxDate)>0};n.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};n.dateSelection=function(i){angular.isDefined(i)&&(n.date=i);var r=n.date?l.filter(n.date,b):null;t.val(r);w.$setViewValue(r);ct&&(n.isOpen=!1,t[0].focus())};n.keydown=function(i){i.which===27&&(i.stopPropagation(),n.isOpen=!1,t[0].focus())};n.select=function(t,i){if(i.stopPropagation(),t==="today"){var r=new Date;angular.isDate(n.date)?(t=new Date(n.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):t=new Date(r.setHours(0,0,0,0))}n.dateSelection(t)};n.close=function(i){i.stopPropagation();n.isOpen=!1;t[0].focus()};n.disabled=angular.isDefined(i.disabled)||!1;i.ngDisabled&&ot.push(n.$parent.$watch(f(i.ngDisabled),function(t){n.disabled=t}));n.$watch("isOpen",function(r){r?n.disabled?n.isOpen=!1:v(function(){d();lt&&n.$broadcast("uib:datepicker.focus");o.on("click",ht);var r=i.popupPlacement?i.popupPlacement:a.placement;if(rt||h.parsePlacement(r)[2]){if(k=k||angular.element(h.scrollParent(t)),k)k.on("scroll",d)}else k=null;angular.element(e).on("resize",d)},0,!1):(o.off("click",ht),k&&k.off("scroll",d),angular.element(e).off("resize",d))});n.$on("uib:datepicker.mode",function(){v(d,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}});angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(n,t){var i=null,r,u;this.open=function(t,f){if(!i){n.on("click",r);f.on("keydown",u)}i&&i!==t&&(i.isOpen=!1);i=t};this.close=function(t,f){i===t&&(i=null,n.off("click",r),f.off("keydown",u))};r=function(n){var r,u;i&&(n&&i.getAutoClose()==="disabled"||n&&n.which===3||(r=i.getToggleElement(),n&&r&&r[0].contains(n.target))||(u=i.getDropdownElement(),n&&i.getAutoClose()==="outsideClick"&&u&&u[0].contains(n.target))||(i.isOpen=!1,t.$$phase||i.$apply()))};u=function(n){n.which===27?(n.stopPropagation(),i.focusToggleElement(),r()):i.isKeynavEnabled()&&[38,40].indexOf(n.which)!==-1&&i.isOpen&&(n.preventDefault(),n.stopPropagation(),i.focusDropdownEntry(n.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(n,t,i,r,u,f,e,o,s,h,c){var l=this,a=n.$new(),p,k=u.appendToOpenClass,d=u.openClass,w,y=angular.noop,nt=i.onToggle?r(i.onToggle):angular.noop,b=!1,v=null,g=!1,tt=s.find("body");t.addClass("dropdown");this.init=function(){if(i.isOpen&&(w=r(i.isOpen),y=w.assign,n.$watch(w,function(n){a.isOpen=!!n})),angular.isDefined(i.dropdownAppendTo)){var u=r(i.dropdownAppendTo)(a);u&&(v=angular.element(u))}if(b=angular.isDefined(i.dropdownAppendToBody),g=angular.isDefined(i.keyboardNav),b&&!v&&(v=tt),v&&l.dropdownMenu){v.append(l.dropdownMenu);t.on("$destroy",function(){l.dropdownMenu.remove()})}};this.toggle=function(n){return a.isOpen=arguments.length?!!n:!a.isOpen,angular.isFunction(y)&&y(a,a.isOpen),a.isOpen};this.isOpen=function(){return a.isOpen};a.getToggleElement=function(){return l.toggleElement};a.getAutoClose=function(){return i.autoClose||"always"};a.getElement=function(){return t};a.isKeynavEnabled=function(){return g};a.focusDropdownEntry=function(n){var i=l.dropdownMenu?angular.element(l.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(n){case 40:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===i.length-1?l.selectedOption:l.selectedOption+1:0;break;case 38:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===0?0:l.selectedOption-1:i.length-1}i[l.selectedOption].focus()};a.getDropdownElement=function(){return l.dropdownMenu};a.focusToggleElement=function(){l.toggleElement&&l.toggleElement[0].focus()};a.$watch("isOpen",function(i,r){var s,u,g,rt,w,tt,ut,it;v&&l.dropdownMenu&&(s=o.positionElements(t,l.dropdownMenu,"bottom-left",!0),u={top:s.top+"px",display:i?"block":"none"},g=l.dropdownMenu.hasClass("dropdown-menu-right"),g?(u.left="auto",rt=o.scrollbarWidth(!0),u.right=window.innerWidth-rt-(s.left+t.prop("offsetWidth"))+"px"):(u.left=s.left+"px",u.right="auto"),b||(w=o.offset(v),u.top=s.top-w.top+"px",g?u.right=window.innerWidth-(s.left-w.left+t.prop("offsetWidth"))+"px":u.left=s.left-w.left+"px"),l.dropdownMenu.css(u));tt=v?v:t;ut=tt.hasClass(v?k:d);ut===!i&&e[i?"addClass":"removeClass"](tt,v?k:d).then(function(){angular.isDefined(i)&&i!==r&&nt(n,{open:!!i})});i?(l.dropdownMenuTemplateUrl&&c(l.dropdownMenuTemplateUrl).then(function(n){p=a.$new();h(n.trim())(p,function(n){var t=n;l.dropdownMenu.replaceWith(t);l.dropdownMenu=t})}),a.focusToggleElement(),f.open(a,t)):(l.dropdownMenuTemplateUrl&&(p&&p.$destroy(),it=angular.element('<ul class="dropdown-menu"><\/ul>'),l.dropdownMenu.replaceWith(it),l.dropdownMenu=it),f.close(a,t),l.selectedOption=null);angular.isFunction(y)&&y(n,i)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(n,t,i,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(n,t,i,r){if(r&&!angular.isDefined(i.dropdownNested)){t.addClass("dropdown-menu");var u=i.templateUrl;u&&(r.dropdownMenuTemplateUrl=u);r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(n,t,i,r){if(r){t.addClass("dropdown-toggle");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.stackedMap",[]).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}}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var n={};return{entries:function(){return Object.keys(n).map(function(t){return{key:t,value:n[t]}})},get:function(t){return n[t]},hasKey:function(t){return!!n[t]},keys:function(){return Object.keys(n)},put:function(t,i){n[t]||(n[t]=[]);n[t].push(i)},remove:function(t,i){var r=n[t],u;r&&(u=r.indexOf(i),u!==-1&&r.splice(u,1),r.length||delete n[t])}}}}}).provider("$uibResolve",function(){var n=this;this.resolver=null;this.setResolver=function(n){this.resolver=n};this.$get=["$injector","$q",function(t,i){var r=n.resolver?t.get(n.resolver):null;return{resolve:function(n,u,f,e){if(r)return r.resolve(n,u,f,e);var o=[];return angular.forEach(n,function(n){angular.isFunction(n)||angular.isArray(n)?o.push(i.resolve(t.invoke(n))):angular.isString(n)?o.push(i.resolve(t.get(n))):o.push(i.resolve(n))}),i.all(o).then(function(t){var i={},r=0;return angular.forEach(n,function(n,u){i[u]=t[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(n,t,i){function r(t,r,u){u.modalInClass&&(n.addClass(r,u.modalInClass),t.$on(i.NOW_CLOSING_EVENT,function(i,f){var e=f();t.modalOptions.animation?n.removeClass(r,u.modalInClass).then(e):e()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(n,t){return n.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,t,i,r){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(u,f,e){f.addClass(e.windowClass||"");f.addClass(e.windowTopClass||"");u.size=e.size;u.close=function(t){var i=n.getTop();i&&i.value.backdrop&&i.value.backdrop!=="static"&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))};f.on("click",u.close);u.$isRendered=!0;var o=t.defer();e.$observe("modalRender",function(n){n==="true"&&o.resolve()});o.promise.then(function(){var o=null;e.modalInClass&&(o=i(f,{addClass:e.modalInClass}).start(),u.$on(n.NOW_CLOSING_EVENT,function(n,t){var r=t();i(f,{removeClass:e.modalInClass}).start().then(r)}));t.when(o).then(function(){var i=n.getTop(),t;i&&n.modalRendered(i.key);r[0].activeElement&&f[0].contains(r[0].activeElement)||(t=f[0].querySelector("[autofocus]"),t?t.focus():f[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(n,t){t.modalAnimation&&n.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(n,t,i,r,u,f,e,o,s){function ut(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}function b(){for(var n=-1,i=c.keys(),t=0;t<i.length;t++)c.get(i[t]).value.backdrop&&(n=t);return n>-1&&n<p&&(n=p),n}function d(n,t){var i=c.get(n).value,r=i.appendTo;c.remove(n);y=c.top();y&&(p=parseInt(y.value.modalDomEl.attr("index"),10));nt(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||k,u;w.remove(t,n);u=w.hasKey(t);r.toggleClass(t,u);!u&&l&&l.heightOverflow&&l.scrollbarWidth&&(l.originalRight?r.css({paddingRight:l.originalRight+"px"}):r.css({paddingRight:""}),l=null);g(!0)},i.closedDeferred);ft();t&&t.focus?t.focus():r.focus&&r.focus()}function g(n){var t;c.length()>0&&(t=c.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",n))}function ft(){if(a&&b()===-1){var n=v;nt(a,v,function(){n=null});a=undefined;v=undefined}}function nt(t,i,r,u){function o(){o.done||(o.done=!0,n.leave(t).then(function(){t.remove();u&&u.resolve()}),i.$destroy(),r&&r())}var e,s=null,c=function(){return e||(e=f.defer(),s=e.promise),function(){e.resolve()}};return i.$broadcast(h.NOW_CLOSING_EVENT,c),f.when(s).then(o)}function tt(n){var t,i,r;if(n.isDefaultPrevented())return n;if(t=c.top(),t)switch(n.which){case 27:t.value.keyboard&&(n.preventDefault(),u.$apply(function(){h.dismiss(t.key,"escape key press")}));break;case 9:i=h.loadFocusElementList(t);r=!1;n.shiftKey?(h.isFocusInFirstItem(n,i)||h.isModalFocused(n,t))&&(r=h.focusLastFocusableElement(i)):h.isFocusInLastItem(n,i)&&(r=h.focusFirstFocusableElement(i));r&&(n.preventDefault(),n.stopPropagation())}}function it(n,t,i){return!n.value.modalScope.$broadcast("modal.closing",t,i).defaultPrevented}var k="modal-open",a,v,c=o.createNew(),w=e.createNew(),h={NOW_CLOSING_EVENT:"modal.stack.now-closing"},p=0,y=null,rt="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]",l;u.$watch(b,function(n){v&&(v.index=n)});i.on("keydown",tt);return u.$on("$destroy",function(){i.off("keydown",tt)}),h.open=function(t,f){var nt=i[0].activeElement,d=f.openedClass||k,e,h,o;if(g(!1),y=c.top(),c.add(t,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),w.put(d,t),e=f.appendTo,h=b(),!e.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");h>=0&&!a&&(v=u.$new(!0),v.modalOptions=f,v.index=h,a=angular.element('<div uib-modal-backdrop="modal-backdrop"><\/div>'),a.attr("backdrop-class",f.backdropClass),f.animation&&a.attr("modal-animation","true"),r(a)(v),n.enter(a,e),l=s.scrollbarPadding(e),l.heightOverflow&&l.scrollbarWidth&&e.css({paddingRight:l.right+"px"}));p=y?parseInt(y.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"><\/div>');o.attr({"template-url":f.windowTemplateUrl,"window-class":f.windowClass,"window-top-class":f.windowTopClass,size:f.size,index:p,animate:"animate"}).html(f.content);f.animation&&o.attr("modal-animation","true");e.addClass(d);n.enter(r(o)(f.scope),e);c.top().value.modalDomEl=o;c.top().value.modalOpener=nt},h.close=function(n,t){var i=c.get(n);return i&&it(i,t,!0)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.resolve(t),d(n,i.value.modalOpener),!0):!i},h.dismiss=function(n,t){var i=c.get(n);return i&&it(i,t,!1)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.reject(t),d(n,i.value.modalOpener),!0):!i},h.dismissAll=function(n){for(var t=this.getTop();t&&this.dismiss(t.key,n);)t=this.getTop()},h.getTop=function(){return c.top()},h.modalRendered=function(n){var t=c.get(n);t&&t.value.renderDeferred.resolve()},h.focusFirstFocusableElement=function(n){return n.length>0?(n[0].focus(),!0):!1},h.focusLastFocusableElement=function(n){return n.length>0?(n[n.length-1].focus(),!0):!1},h.isModalFocused=function(n,t){if(n&&t){var i=t.value.modalDomEl;if(i&&i.length)return(n.target||n.srcElement)===i[0]}return!1},h.isFocusInFirstItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[0]:!1},h.isFocusInLastItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[t.length-1]:!1},h.loadFocusElementList=function(n){var t,i;if(n&&(t=n.value.modalDomEl,t&&t.length))return i=t[0].querySelectorAll(rt),i?Array.prototype.filter.call(i,function(n){return ut(n)}):i},h}]).provider("$uibModal",function(){var n={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,i,r,u,f,e,o){function c(n){return n.template?i.when(n.template):u(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl)}var h={},s=null;return h.getPromiseChain=function(){return s},h.open=function(u){function w(){return p}var l=i.defer(),a=i.defer(),v=i.defer(),y=i.defer(),h={result:l.promise,opened:a.promise,closed:v.promise,rendered:y.promise,close:function(n){return o.close(h,n)},dismiss:function(n){return o.dismiss(h,n)}},p,b;if(u=angular.extend({},n.options,u),u.resolve=u.resolve||{},u.appendTo=u.appendTo||r.find("body").eq(0),!u.template&&!u.templateUrl)throw new Error("One of template or templateUrl options is required.");return p=i.all([c(u),e.resolve(u.resolve,{},null,null)]),b=s=i.all([s]).then(w,w).then(function(n){var c=u.scope||t,i=c.$new(),e,s,r;i.$close=h.close;i.$dismiss=h.dismiss;i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});r={};u.controller&&(r.$scope=i,r.$scope.$resolve={},r.$uibModalInstance=h,angular.forEach(n[1],function(n,t){r[t]=n;r.$scope.$resolve[t]=n}),s=f(u.controller,r,!0,u.controllerAs),u.controllerAs&&u.bindToController&&(e=s.instance,e.$close=i.$close,e.$dismiss=i.$dismiss,angular.extend(e,{$resolve:r.$scope.$resolve},c)),e=s(),angular.isFunction(e.$onInit)&&e.$onInit());o.open(h,{scope:i,deferred:l,renderDeferred:y,closedDeferred:v,content:n[0],animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo});a.resolve(!0)},function(n){a.reject(n);l.reject(n)})["finally"](function(){s===b&&(s=null)}),h},h}]};return n});angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(n){return{create:function(t,i,r){t.setNumPages=r.numPages?n(r.numPages).assign:angular.noop;t.ngModelCtrl={$setViewValue:angular.noop};t._watchers=[];t.init=function(n,u){t.ngModelCtrl=n;t.config=u;n.$render=function(){t.render()};r.itemsPerPage?t._watchers.push(i.$parent.$watch(r.itemsPerPage,function(n){t.itemsPerPage=parseInt(n,10);i.totalPages=t.calculateTotalPages();t.updatePage()})):t.itemsPerPage=u.itemsPerPage;i.$watch("totalItems",function(n,r){(angular.isDefined(n)||n!==r)&&(i.totalPages=t.calculateTotalPages(),t.updatePage())})};t.calculateTotalPages=function(){var n=t.itemsPerPage<1?1:Math.ceil(i.totalItems/t.itemsPerPage);return Math.max(n||0,1)};t.render=function(){i.page=parseInt(t.ngModelCtrl.$viewValue,10)||1};i.selectPage=function(n,r){r&&r.preventDefault();var u=!i.ngDisabled||!r;u&&i.page!==n&&n>0&&n<=i.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(n),t.ngModelCtrl.$render())};i.getText=function(n){return i[n+"Text"]||t.config[n+"Text"]};i.noPrevious=function(){return i.page===1};i.noNext=function(){return i.page===i.totalPages};t.updatePage=function(){t.setNumPages(i.$parent,i.totalPages);i.page>i.totalPages?i.selectPage(i.totalPages):t.ngModelCtrl.$render()};i.$on("$destroy",function(){while(t._watchers.length)t._watchers.shift()()})}}}]);angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(n,t,i,r){n.align=angular.isDefined(t.align)?n.$parent.$eval(t.align):r.align;i.create(this,n,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(n){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(n,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&e.init(f,n)}}}]);angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(n,t,i,r,u){function e(n,t,i){return{number:n,text:t,active:i}}function v(n,t){var u=[],i=1,r=t,c=angular.isDefined(f)&&f<t,s,v,y,p,w,b,k,d;for(c&&(h?(i=Math.max(n-Math.floor(f/2),1),r=i+f-1,r>t&&(r=t,i=r-f+1)):(i=(Math.ceil(n/f)-1)*f+1,r=Math.min(i+f-1,t))),s=i;s<=r;s++)v=e(s,a(s),s===n),u.push(v);return c&&f>0&&(!h||l||o)&&(i>1&&((!o||i>3)&&(y=e(i-1,"...",!1),u.unshift(y)),o&&(i===3&&(p=e(2,"2",!1),u.unshift(p)),w=e(1,"1",!1),u.unshift(w))),r<t&&((!o||r<t-2)&&(b=e(r+1,"...",!1),u.push(b)),o&&(r===t-2&&(k=e(t-1,t-1,!1),u.push(k)),d=e(t,t,!1),u.push(d)))),u}var s=this,f=angular.isDefined(t.maxSize)?n.$parent.$eval(t.maxSize):u.maxSize,h=angular.isDefined(t.rotate)?n.$parent.$eval(t.rotate):u.rotate,l=angular.isDefined(t.forceEllipses)?n.$parent.$eval(t.forceEllipses):u.forceEllipses,o=angular.isDefined(t.boundaryLinkNumbers)?n.$parent.$eval(t.boundaryLinkNumbers):u.boundaryLinkNumbers,a=angular.isDefined(t.pageLabel)?function(i){return n.$parent.$eval(t.pageLabel,{$page:i})}:angular.identity,c;n.boundaryLinks=angular.isDefined(t.boundaryLinks)?n.$parent.$eval(t.boundaryLinks):u.boundaryLinks;n.directionLinks=angular.isDefined(t.directionLinks)?n.$parent.$eval(t.directionLinks):u.directionLinks;r.create(this,n,t);t.maxSize&&s._watchers.push(n.$parent.$watch(i(t.maxSize),function(n){f=parseInt(n,10);s.render()}));c=this.render;this.render=function(){c();n.page>0&&n.page<=n.totalPages&&(n.pages=v(n.page,n.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(n,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(n,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(n,i,r,u){var e=u[0],f=u[1];f&&e.init(f,t)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function r(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var i={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(u,f,e,o,s,h,c,l,a){function y(n){if(n.which===27){var t=v.top();t&&(t.value.close(),v.removeTop(),t=null)}}var v=a.createNew();o.on("keypress",y);return c.$on("$destroy",function(){o.off("keypress",y)}),function(u,c,a,y){function b(t){var i=(t||y.trigger||a).split(" "),r=i.map(function(t){return n[t]||t});return{show:i,hide:r}}y=angular.extend({},i,t,y);var k=r(u),p=h.startSymbol(),w=h.endSymbol(),d="<div "+k+'-popup uib-title="'+p+"title"+w+'" '+(y.useContentExp?'content-exp="contentExp()" ':'content="'+p+"content"+w+'" ')+'placement="'+p+"placement"+w+'" popup-class="'+p+"popupClass"+w+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"><\/div>';return{compile:function(){var n=f(d);return function(t,i,r){function ft(){f.isOpen?et():at()}function at(){(!ni||t.$eval(r[c+"Enable"]))&&(vt(),ii(),f.popupDelay?nt||(nt=e(kt,f.popupDelay,!1)):kt())}function et(){ht();f.popupCloseDelay?tt||(tt=e(d,f.popupCloseDelay,!1)):d()}function kt(){if(ht(),vt(),!f.content)return angular.noop;ti();f.$evalAsync(function(){f.isOpen=!0;dt(!0);ut()})}function ht(){nt&&(e.cancel(nt),nt=null);k&&(e.cancel(k),k=null)}function d(){f&&f.$evalAsync(function(){f&&(f.isOpen=!1,dt(!1),f.animation?g||(g=e(yt,150,!1)):yt())})}function vt(){tt&&(e.cancel(tt),tt=null);g&&(e.cancel(g),g=null)}function ti(){h||(p=f.$new(),h=n(p,function(n){ot?o.find("body").append(n):i.after(n)}),ri())}function yt(){ht();vt();ui();h&&(h.remove(),h=null);p&&(p.$destroy(),p=null)}function ii(){var n,i,e;f.title=r[c+"Title"];f.content=st?st(t):r[u];f.popupClass=r[c+"Class"];f.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:y.placement;n=s.parsePlacement(f.placement);rt=n[1]?n[0]+"-"+n[1]:n[0];i=parseInt(r[c+"PopupDelay"],10);e=parseInt(r[c+"PopupCloseDelay"],10);f.popupDelay=isNaN(i)?y.popupDelay:i;f.popupCloseDelay=isNaN(e)?y.popupCloseDelay:e}function dt(n){it&&angular.isFunction(it.assign)&&it.assign(t,n)}function ri(){a.length=0;st?(a.push(t.$watch(st,function(n){f.content=n;!n&&f.isOpen&&d()})),a.push(p.$watch(function(){lt||(lt=!0,p.$$postDigest(function(){lt=!1;f&&f.isOpen&&ut()}))}))):a.push(r.$observe(u,function(n){f.content=n;!n&&f.isOpen?d():ut()}));a.push(r.$observe(c+"Title",function(n){f.title=n;f.isOpen&&ut()}));a.push(r.$observe(c+"Placement",function(n){f.placement=n?n:y.placement;f.isOpen&&ut()}))}function ui(){a.length&&(angular.forEach(a,function(n){n()}),a.length=0)}function gt(n){f&&f.isOpen&&h&&(i[0].contains(n.target)||h[0].contains(n.target)||et())}function fi(){var n=r[c+"Trigger"];pt();w=b(n);w.show!=="none"&&w.show.forEach(function(n,t){if(n==="outsideClick"){i.on("click",ft);o.on("click",gt)}else if(n===w.hide[t])i.on(n,ft);else if(n){i.on(n,at);i.on(w.hide[t],et)}i.on("keypress",function(n){n.which===27&&et()})})}var h,p,g,nt,tt,k,ot=angular.isDefined(y.appendToBody)?y.appendToBody:!1,w=b(undefined),ni=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),lt=!1,it=angular.isDefined(r[c+"IsOpen"])?l(r[c+"IsOpen"]):!1,st=y.useContentExp?l(r[u]):!1,a=[],rt,ut=function(){h&&h.html()&&(k||(k=e(function(){var n=s.positionElements(i,h,f.placement,ot);h.css({top:n.top+"px",left:n.left+"px"});h.hasClass(n.placement.split("-")[0])||(h.removeClass(rt.split("-")[0]),h.addClass(n.placement.split("-")[0]));h.hasClass(y.placementClassPrefix+n.placement)||(h.removeClass(y.placementClassPrefix+rt),h.addClass(y.placementClassPrefix+n.placement));h.hasClass("uib-position-measure")?(s.positionArrow(h,n.placement),h.removeClass("uib-position-measure")):rt!==n.placement&&s.positionArrow(h,n.placement);rt=n.placement;k=null},0,!1)))},pt,wt,bt,ct;f.origScope=t;f.isOpen=!1;v.add(f,{close:d});f.contentExp=function(){return f.content};r.$observe("disabled",function(n){n&&ht();n&&f.isOpen&&d()});it&&t.$watch(it,function(n){f&&!n===f.isOpen&&ft()});pt=function(){w.show.forEach(function(n){n==="outsideClick"?i.off("click",ft):(i.off(n,at),i.off(n,ft))});w.hide.forEach(function(n){n==="outsideClick"?o.off("click",gt):i.off(n,et)})};fi();wt=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(wt)?!!wt:y.animation;ct=c+"AppendToBody";bt=ct in r&&r[ct]===undefined?!0:t.$eval(r[ct]);ot=angular.isDefined(bt)?bt:ot;t.$on("$destroy",function(){pt();yt();v.remove(f);f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(n,t,i,r){return{link:function(u,f,e){var a=u.$eval(e.tooltipTemplateTranscludeScope),l=0,o,s,h,c=function(){s&&(s.remove(),s=null);o&&(o.$destroy(),o=null);h&&(n.leave(h).then(function(){s=null}),s=h,h=null)};u.$watch(t.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(t){var e=++l;t?(r(t,!0).then(function(r){if(e===l){var u=a.$new(),s=r,v=i(s)(u,function(t){c();n.enter(t,f)});o=u;h=v;o.$emit("$includeContentLoaded",t)}},function(){e===l&&(c(),u.$emit("$includeContentError",t))}),u.$emit("$includeContentRequested",t)):c()});u.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(n){return{restrict:"A",link:function(t,i,r){if(t.placement){var u=n.parsePlacement(t.placement);i.addClass(u[0])}t.popupClass&&i.addClass(t.popupClass);t.animation()&&i.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(n){return n("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(n){return n("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(n){return n("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(n){return n("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(n){return n("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(n){return n("uibPopover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(n,t,i){function u(){return angular.isDefined(n.maxParam)?n.maxParam:i.max}var r=this,f=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=u();this.addBar=function(n,t,i){f||t.css({transition:"none"});this.bars.push(n);n.max=u();n.title=i&&angular.isDefined(i.title)?i.title:"progressbar";n.$watch("value",function(){n.recalculatePercentage()});n.recalculatePercentage=function(){var t=r.bars.reduce(function(n,t){return t.percent=+(100*t.value/t.max).toFixed(2),n+t.percent},0);t>100&&(n.percent-=t-100)};n.$on("$destroy",function(){t=null;r.removeBar(n)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1);this.bars.forEach(function(n){n.recalculatePercentage()})};n.$watch("maxParam",function(){r.bars.forEach(function(n){n.max=u();n.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t,i)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]),{title:i.title})}}});angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(n,t,i){var r={$setViewValue:angular.noop},u=this;this.init=function(u){var f,e;r=u;r.$render=this.render;r.$formatters.push(function(n){return angular.isNumber(n)&&n<<0!==n&&(n=Math.round(n)),n});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;this.enableReset=angular.isDefined(t.enableReset)?n.$parent.$eval(t.enableReset):i.enableReset;f=angular.isDefined(t.titles)?n.$parent.$eval(t.titles):i.titles;this.titles=angular.isArray(f)&&f.length>0?f:i.titles;e=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(e)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;t<i;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},n[t]);return n};this.getTitle=function(n){return n>=this.titles.length?n+1:this.titles[n]};n.rate=function(t){if(!n.readonly&&t>=0&&t<=n.range.length){var i=u.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(i);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+(t.which===38||t.which===39?1:-1)))};this.render=function(){n.value=r.$viewValue;n.title=u.getTitle(n.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}});angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(n){function r(n){for(var i=0;i<t.tabs.length;i++)if(t.tabs[i].index===n)return i}var t=this,i,u;t.tabs=[];t.select=function(n,f){var s,o,e;if(!u){if(s=r(i),o=t.tabs[s],o){o.tab.onDeselect({$event:f,$selectedIndex:n});if(f&&f.isDefaultPrevented())return;o.tab.active=!1}if(e=t.tabs[n],e){e.tab.onSelect({$event:f});e.tab.active=!0;t.active=e.index;i=e.index}else!e&&angular.isDefined(i)&&(t.active=null,i=null)}};t.addTab=function(n){if(t.tabs.push({tab:n,index:n.index}),t.tabs.sort(function(n,t){return n.index>t.index?1:n.index<t.index?-1:0}),n.index===t.active||!angular.isDefined(t.active)&&t.tabs.length===1){var i=r(n.index);t.select(i)}};t.removeTab=function(n){for(var u,i,r=0;r<t.tabs.length;r++)if(t.tabs[r].tab===n){i=r;break}t.tabs[i].index===t.active&&(u=i===t.tabs.length-1?i-1:i+1%t.tabs.length,t.select(u));t.tabs.splice(i,1)};n.$watch("tabset.active",function(n){angular.isDefined(n)&&n!==i&&t.select(r(n))});n.$on("$destroy",function(){u=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(n,t){return t.templateUrl||"uib/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("uibTab",["$parse",function(n){return{require:"^uibTabset",replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,i,r,u,f){t.disabled=!1;r.disable&&t.$parent.$watch(n(r.disable),function(n){t.disabled=!!n});angular.isUndefined(r.index)&&(t.index=u.tabs&&u.tabs.length?Math.max.apply(null,u.tabs.map(function(n){return n.index}))+1:0);angular.isUndefined(r.classes)&&(t.classes="");t.select=function(n){var r,i;if(!t.disabled){for(i=0;i<u.tabs.length;i++)if(u.tabs[i].tab===t){r=i;break}u.select(r,n)}};u.addTab(t);t.$on("$destroy",function(){u.removeTab(t)});t.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}).directive("uibTabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("uib-tab-heading")||n.hasAttribute("data-uib-tab-heading")||n.hasAttribute("x-uib-tab-heading")||n.tagName.toLowerCase()==="uib-tab-heading"||n.tagName.toLowerCase()==="data-uib-tab-heading"||n.tagName.toLowerCase()==="x-uib-tab-heading"||n.tagName.toLowerCase()==="uib:tab-heading")}return{restrict:"A",require:"^uibTabset",link:function(t,i,r){var u=t.$eval(r.uibTabContentTransclude).tab;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("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(n,t,i,r,u,f,e){function tt(){var t=+n.hours,i=n.showMeridian?t>0&&t<13:t>=0&&t<24;return!i||n.hours===""?undefined:(n.showMeridian&&(t===12&&(t=0),n.meridian===v[1]&&(t=t+12)),t)}function it(){var t=+n.minutes,i=t>=0&&t<60;return!i||n.minutes===""?undefined:t}function ot(){var t=+n.seconds;return t>=0&&t<60?t:undefined}function k(n,t){return n===null?"":angular.isDefined(n)&&n.toString().length<2&&!t?"0"+n:n.toString()}function g(n){nt();s.$setViewValue(new Date(o));ut(n)}function nt(){s.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1;n.invalidSeconds=!1}function ut(t){if(s.$modelValue){var i=o.getHours(),r=o.getMinutes(),u=o.getSeconds();n.showMeridian&&(i=i===0||i===12?12:i%12);n.hours=t==="h"?i:k(i,!et);t!=="m"&&(n.minutes=k(r));n.meridian=o.getHours()<12?v[0]:v[1];t!=="s"&&(n.seconds=k(u));n.meridian=o.getHours()<12?v[0]:v[1]}else n.hours=null,n.minutes=null,n.seconds=null,n.meridian=v[0]}function y(n){o=rt(o,n);g()}function d(n,t){return rt(n,t*60)}function rt(n,t){var i=new Date(n.getTime()+t*1e3),r=new Date(n);return r.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),r}function ft(){return(n.hours===null||n.hours==="")&&(n.minutes===null||n.minutes==="")&&(!n.showSeconds||n.showSeconds&&(n.seconds===null||n.seconds===""))}var o=new Date,a=[],s={$setViewValue:angular.noop},v=angular.isDefined(i.meridians)?n.$parent.$eval(i.meridians):e.meridians||f.DATETIME_FORMATS.AMPMS,et=angular.isDefined(i.padHours)?n.$parent.$eval(i.padHours):!0,p,w,c,l,h,b;n.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0;t.removeAttr("tabindex");this.init=function(t,r){var h;s=t;s.$render=this.render;s.$formatters.unshift(function(n){return n?new Date(n):null});var u=r.eq(0),f=r.eq(1),o=r.eq(2),c=angular.isDefined(i.mousewheel)?n.$parent.$eval(i.mousewheel):e.mousewheel;c&&this.setupMousewheelEvents(u,f,o);h=angular.isDefined(i.arrowkeys)?n.$parent.$eval(i.arrowkeys):e.arrowkeys;h&&this.setupArrowkeyEvents(u,f,o);n.readonlyInput=angular.isDefined(i.readonlyInput)?n.$parent.$eval(i.readonlyInput):e.readonlyInput;this.setupInputEvents(u,f,o)};p=e.hourStep;i.hourStep&&a.push(n.$parent.$watch(r(i.hourStep),function(n){p=+n}));w=e.minuteStep;i.minuteStep&&a.push(n.$parent.$watch(r(i.minuteStep),function(n){w=+n}));a.push(n.$parent.$watch(r(i.min),function(n){var t=new Date(n);c=isNaN(t)?undefined:t}));a.push(n.$parent.$watch(r(i.max),function(n){var t=new Date(n);l=isNaN(t)?undefined:t}));h=!1;i.ngDisabled&&a.push(n.$parent.$watch(r(i.ngDisabled),function(n){h=n}));n.noIncrementHours=function(){var n=d(o,p*60);return h||n>l||n<o&&n<c};n.noDecrementHours=function(){var n=d(o,-p*60);return h||n<c||n>o&&n>l};n.noIncrementMinutes=function(){var n=d(o,w);return h||n>l||n<o&&n<c};n.noDecrementMinutes=function(){var n=d(o,-w);return h||n<c||n>o&&n>l};n.noIncrementSeconds=function(){var n=rt(o,b);return h||n>l||n<o&&n<c};n.noDecrementSeconds=function(){var n=rt(o,-b);return h||n<c||n>o&&n>l};n.noToggleMeridian=function(){return o.getHours()<12?h||d(o,720)>l:h||d(o,-720)<c};b=e.secondStep;i.secondStep&&a.push(n.$parent.$watch(r(i.secondStep),function(n){b=+n}));n.showSeconds=e.showSeconds;i.showSeconds&&a.push(n.$parent.$watch(r(i.showSeconds),function(t){n.showSeconds=!!t}));n.showMeridian=e.showMeridian;i.showMeridian&&a.push(n.$parent.$watch(r(i.showMeridian),function(t){if(n.showMeridian=!!t,s.$error.time){var i=tt(),r=it();angular.isDefined(i)&&angular.isDefined(r)&&(o.setHours(i),g())}else ut()}));this.setupMousewheelEvents=function(t,i,r){var u=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){h||n.$apply(u(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()});r.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementSeconds():n.decrementSeconds());t.preventDefault()})};this.setupArrowkeyEvents=function(t,i,r){t.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementHours(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementHours(),n.$apply()))});i.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementMinutes(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementMinutes(),n.$apply()))});r.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementSeconds(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementSeconds(),n.$apply()))})};this.setupInputEvents=function(t,i,r){if(n.readonlyInput){n.updateHours=angular.noop;n.updateMinutes=angular.noop;n.updateSeconds=angular.noop;return}var u=function(t,i,r){s.$setViewValue(null);s.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i);angular.isDefined(r)&&(n.invalidSeconds=r)};n.updateHours=function(){var n=tt(),t=it();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(n),o.setMinutes(t),o<c||o>l?u(!0):g("h")):u(!0)};t.bind("blur",function(){s.$setTouched();ft()?nt():n.hours===null||n.hours===""?u(!0):!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=k(n.hours,!et)})});n.updateMinutes=function(){var n=it(),t=tt();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(t),o.setMinutes(n),o<c||o>l?u(undefined,!0):g("m")):u(undefined,!0)};i.bind("blur",function(){s.$setTouched();ft()?nt():n.minutes===null?u(undefined,!0):!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=k(n.minutes)})});n.updateSeconds=function(){var n=ot();s.$setDirty();angular.isDefined(n)?(o.setSeconds(n),g("s")):u(undefined,undefined,!0)};r.bind("blur",function(){ft()?nt():!n.invalidSeconds&&n.seconds<10&&n.$apply(function(){n.seconds=k(n.seconds)})})};this.render=function(){var t=s.$viewValue;isNaN(t)?(s.$setValidity("time",!1),u.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.')):(t&&(o=t),o<c||o>l?(s.$setValidity("time",!1),n.invalidHours=!0,n.invalidMinutes=!0):nt(),ut())};n.showSpinners=angular.isDefined(i.showSpinners)?n.$parent.$eval(i.showSpinners):e.showSpinners;n.incrementHours=function(){n.noIncrementHours()||y(p*3600)};n.decrementHours=function(){n.noDecrementHours()||y(-p*3600)};n.incrementMinutes=function(){n.noIncrementMinutes()||y(w*60)};n.decrementMinutes=function(){n.noDecrementMinutes()||y(-w*60)};n.incrementSeconds=function(){n.noIncrementSeconds()||y(b)};n.decrementSeconds=function(){n.noDecrementSeconds()||y(-b)};n.toggleMeridian=function(){var t=it(),i=tt();n.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(i)?y(720*(o.getHours()<12?60:-60)):n.meridian=n.meridian===v[0]?v[1]:v[0])};n.blur=function(){s.$setTouched()};n.$on("$destroy",function(){while(a.length)a.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,i){return i.templateUrl||n.templateUrl},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.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\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])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function lt(){v.moveInProgress||(v.moveInProgress=!0,v.$digest());ni()}function ti(){v.position=nt?l.offset(t):l.position(t);v.position.top+=t.prop("offsetHeight")}var ri=[9,13,27,38,40],y,rt,d=n.$eval(i.typeaheadMinLength),at,g,ht,tt,w,b,gt,ct,ni,yt,ii,pt,wt,it;d||d===0||(d=1);n.$watch(i.typeaheadMinLength,function(n){d=!n&&n!==0?1:n});at=n.$eval(i.typeaheadWaitMs)||0;g=n.$eval(i.typeaheadEditable)!==!1;n.$watch(i.typeaheadEditable,function(n){g=n!==!1});var ut=u(i.typeaheadLoading).assign||angular.noop,ui=i.typeaheadShouldSelect?u(i.typeaheadShouldSelect):function(n,t){var i=t.$event;return i.which===13||i.which===9},fi=u(i.typeaheadOnSelect),ei=angular.isDefined(i.typeaheadSelectOnBlur)?n.$eval(i.typeaheadSelectOnBlur):!1,ft=u(i.typeaheadNoResults).assign||angular.noop,bt=i.typeaheadInputFormatter?u(i.typeaheadInputFormatter):undefined,nt=i.typeaheadAppendToBody?n.$eval(i.typeaheadAppendToBody):!1,vt=i.typeaheadAppendTo?n.$eval(i.typeaheadAppendTo):null,oi=n.$eval(i.typeaheadFocusFirst)!==!1,si=i.typeaheadSelectOnExact?n.$eval(i.typeaheadSelectOnExact):!1,hi=u(i.typeaheadIsOpen).assign||angular.noop,et=n.$eval(i.typeaheadShowHint)||!1,kt=u(i.ngModel),ci=u(i.ngModel+"($$$p)"),li=function(t,i){return angular.isFunction(kt(n))&&rt&&rt.$options&&rt.$options.getterSetter?ci(t,{$$$p:i}):kt.assign(t,i)},p=a.parse(i.uibTypeahead),ot,st,v=n.$new(),ai=n.$on("$destroy",function(){v.$destroy()});v.$on("$destroy",ai);ht="typeahead-"+v.$id+"-"+Math.floor(Math.random()*1e4);t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":ht});et&&(tt=angular.element("<div><\/div>"),tt.css("position","relative"),t.after(tt),w=t.clone(),w.attr("placeholder",""),w.attr("tabindex","-1"),w.val(""),w.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),tt.append(w),w.after(t));b=angular.element("<div uib-typeahead-popup><\/div>");b.attr({id:ht,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"});angular.isDefined(i.typeaheadTemplateUrl)&&b.attr("template-url",i.typeaheadTemplateUrl);angular.isDefined(i.typeaheadPopupTemplateUrl)&&b.attr("popup-template-url",i.typeaheadPopupTemplateUrl);var vi=function(){et&&w.val("")},k=function(){v.matches=[];v.activeIdx=-1;t.attr("aria-expanded",!1);vi()},dt=function(n){return ht+"-option-"+n};if(v.$watch("activeIdx",function(n){n<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",dt(n))}),gt=function(n,t){return v.matches.length>t&&n?n.toUpperCase()===v.matches[t].label.toUpperCase():!1},ct=function(i,r){var u={$viewValue:i};ut(n,!0);ft(n,!1);f.when(p.source(n,u)).then(function(f){var s=i===y.$viewValue,e,o;if(s&&ot)if(f&&f.length>0){for(v.activeIdx=oi?0:-1,ft(n,!1),v.matches.length=0,e=0;e<f.length;e++)u[p.itemName]=f[e],v.matches.push({id:dt(e),label:p.viewMapper(v,u),model:f[e]});v.query=i;ti();t.attr("aria-expanded",!0);si&&v.matches.length===1&&gt(i,0)&&(angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(0,r)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(0,r));et&&(o=v.matches[0].label,angular.isString(i)&&i.length>0&&o.slice(0,i.length).toUpperCase()===i.toUpperCase()?w.val(i+o.slice(i.length)):w.val(""))}else k(),ft(n,!0);s&&ut(n,!1)},function(){k();ut(n,!1);ft(n,!0)})},nt){angular.element(s).on("resize",lt);o.find("body").on("scroll",lt)}ni=c(function(){v.matches.length&&ti();v.moveInProgress=!1},200);v.moveInProgress=!1;v.query=undefined;ii=function(n){yt=e(function(){ct(n)},at)};pt=function(){yt&&e.cancel(yt)};k();v.assignIsOpen=function(t){hi(n,t)};v.select=function(r,u){var f={},o,s;st=!0;f[p.itemName]=s=v.matches[r].model;o=p.modelMapper(n,f);li(n,o);y.$setValidity("editable",!0);y.$setValidity("parse",!0);fi(n,{$item:s,$model:o,$label:p.viewMapper(n,f),$event:u});k();v.$eval(i.typeaheadFocusOnSelect)!==!1&&e(function(){t[0].focus()},0,!1)};t.on("keydown",function(t){var r,i;if(v.matches.length!==0&&ri.indexOf(t.which)!==-1){if(r=ui(n,{$event:t}),v.activeIdx===-1&&r||t.which===9&&!!t.shiftKey){k();v.$digest();return}t.preventDefault();switch(t.which){case 27:t.stopPropagation();k();n.$digest();break;case 38:v.activeIdx=(v.activeIdx>0?v.activeIdx:v.matches.length)-1;v.$digest();i=b.find("li")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;case 40:v.activeIdx=(v.activeIdx+1)%v.matches.length;v.$digest();i=b.find("li")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;default:r&&v.$apply(function(){angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(v.activeIdx,t)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(v.activeIdx,t)})}}});t.bind("focus",function(n){ot=!0;d!==0||y.$viewValue||e(function(){ct(y.$viewValue,n)},0)});t.bind("blur",function(n){ei&&v.matches.length&&v.activeIdx!==-1&&!st&&(st=!0,v.$apply(function(){angular.isObject(v.debounceUpdate)&&angular.isNumber(v.debounceUpdate.blur)?c(function(){v.select(v.activeIdx,n)},v.debounceUpdate.blur):v.select(v.activeIdx,n)}));!g&&y.$error.editable&&(y.$setViewValue(),y.$setValidity("editable",!0),y.$setValidity("parse",!0),t.val(""));ot=!1;st=!1});wt=function(i){t[0]!==i.target&&i.which!==3&&v.matches.length!==0&&(k(),h.$$phase||n.$digest())};o.on("click",wt);n.$on("$destroy",function(){o.off("click",wt);(nt||vt)&&it.remove();nt&&(angular.element(s).off("resize",lt),o.find("body").off("scroll",lt));b.remove();et&&tt.remove()});it=r(b)(v);nt?o.find("body").append(it):vt?angular.element(vt).eq(0).append(it):t.after(it);this.init=function(t,i){y=t;rt=i;v.debounceUpdate=y.$options&&u(y.$options.debounce)(n);y.$parsers.unshift(function(t){return(ot=!0,d===0||t&&t.length>=d?at>0?(pt(),ii(t)):ct(t):(ut(n,!1),pt(),k()),g)?t:t?(y.$setValidity("editable",!1),undefined):(y.$setValidity("editable",!0),null)});y.$formatters.push(function(t){var r,u,i={};return(g||y.$setValidity("editable",!0),bt)?(i.$model=t,bt(n,i)):(i[p.itemName]=t,r=p.viewMapper(n,i),i[p.itemName]=undefined,u=p.viewMapper(n,i),r!==u?r:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(n,t,i,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(n){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(n,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,i,r){t.templateUrl=r.templateUrl;t.isOpen=function(){var n=t.matches.length>0;return t.assignIsOpen({isOpen:n}),n};t.isActive=function(n){return t.active===n};t.selectActive=function(n){t.active=n};t.selectMatch=function(i,r){var u=t.debounce();angular.isNumber(u)||angular.isObject(u)?n(function(){t.select({activeIdx:i,evt:r})},angular.isNumber(u)?u:u["default"]):t.select({activeIdx:i,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(n,t,i){return{scope:{index:"=",match:"=",query:"="},link:function(r,u,f){var e=i(f.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";n(e).then(function(n){var i=angular.element(n.trim());u.replaceWith(i);t(i)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){function u(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(n){return/<.*>/g.test(n)}var r;return r=t.has("$sanitize"),function(t,e){return!r&&f(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(u(e),"gi"),"<strong>$&<\/strong>"):t,r||(t=n.trustAsHtml(t)),t}}]);angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||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>');angular.$$uibCarouselCss=!0});angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}<\/style>');angular.$$uibDatepickerCss=!0});angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}<\/style>');angular.$$uibPositionCss=!0});angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}<\/style>');angular.$$uibDatepickerpopupCss=!0});angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}<\/style>');angular.$$uibTooltipCss=!0});angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}<\/style>');angular.$$uibTimepickerCss=!0});angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}<\/style>');angular.$$uibTypeaheadCss=!0});angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","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",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(n,t,i,r){var u=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,f,e){function v(){f.hasClass("collapse")&&f.hasClass("in")||t.resolve(h(r)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1);u?u(f,{addClass:"in",easing:"ease",to:{height:f[0].scrollHeight+"px"}}).start()["finally"](s):n.addClass(f,"in",{to:{height:f[0].scrollHeight+"px"}}).then(s)})}function s(){f.removeClass("collapsing").addClass("collapse").css({height:"auto"});c(r)}function y(){if(!f.hasClass("collapse")&&!f.hasClass("in"))return o();t.resolve(l(r)).then(function(){f.css({height:f[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0);u?u(f,{removeClass:"in",to:{height:"0"}}).start()["finally"](o):n.removeClass(f,"in",{to:{height:"0"}}).then(o)})}function o(){f.css({height:"0"});f.removeClass("collapsing").addClass("collapse");a(r)}var h=i(e.expanding),c=i(e.expanded),l=i(e.collapsing),a=i(e.collapsed);r.$eval(e.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"});r.$watch(e.uibCollapse,function(n){n?y():v()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",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);t!==-1&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.openClass=i.openClass||"panel-open";n.panelClass=i.panelClass||"panel-default";n.$watch("isOpen",function(i){t.toggleClass(n.openClass,!!i);i&&r.closeOthers(n)});n.toggleOpen=function(t){n.isDisabled||t&&t.which!==32||(n.isOpen=!n.isOpen)};var u="accordiongroup-"+n.$id+"-"+Math.floor(Math.random()*1e4);n.headingId=u+"-tab";n.panelId=u+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,angular.noop))}}}).directive("uibAccordionTransclude",function(){function n(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,i,r,u){t.$watch(function(){return u[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(i[0].querySelector(n()));r.html("");r.append(t)}})}}});angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(n,t,i,r){n.closeable=!!t.close;var u=angular.isDefined(t.dismissOnTimeout)?i(t.dismissOnTimeout)(n.$parent):null;u&&r(function(){n.close()},parseInt(u,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(n,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}});angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(n){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,i,r,u){var e=u[0],f=u[1],o=n(r.uibUncheckable);i.find("input").css({display:"none"});f.$render=function(){i.toggleClass(e.activeClass,angular.equals(f.$modelValue,t.$eval(r.uibBtnRadio)))};i.on(e.toggleEvent,function(){if(!r.disabled){var n=i.hasClass(e.activeClass);(!n||angular.isDefined(r.uncheckable))&&t.$apply(function(){f.$setViewValue(n?null:t.$eval(r.uibBtnRadio));f.$render()})}});r.uibUncheckable&&t.$watch(o,function(n){r.$set("uncheckable",n?"":undefined)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){return angular.isDefined(t)?n.$eval(t):i}var f=r[0],u=r[1];t.find("input").css({display:"none"});u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.on(f.toggleEvent,function(){i.disabled||n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(n,t,i,r,u){function a(){while(s.length)s.shift()}function h(n){for(var t=0;t<f.length;t++)f[t].slide.active=t===n}function k(i,r,c){if(!b){if(angular.extend(i,{direction:c}),angular.extend(f[o].slide||{},{direction:c}),u.enabled(t)&&!n.$currentTransition&&f[r].element&&e.slides.length>1){f[r].element.data(w,i.direction);var l=e.getCurrentIndex();angular.isNumber(l)&&f[l].element&&f[l].element.data(w,i.direction);n.$currentTransition=!0;u.on("addClass",f[r].element,function(t,i){if(i==="close"&&(n.$currentTransition=null,u.off("addClass",t),s.length)){var r=s.pop().slide,f=r.index,o=f>e.getCurrentIndex()?"next":"prev";a();k(r,f,o)}})}n.active=i.index;o=i.index;h(r);p()}}function v(n){for(var t=0;t<f.length;t++)if(f[t].slide===n)return t}function y(){c&&(i.cancel(c),c=null)}function d(t){t.length||(n.$currentTransition=null,a())}function p(){y();var t=+n.interval;!isNaN(t)&&t>0&&(c=i(g,t))}function g(){var t=+n.interval;l&&!isNaN(t)&&t>0&&f.length?n.next():n.pause()}var e=this,f=e.slides=n.slides=[],w="uib-slideDirection",o=n.active,c,l,s=[],b=!1;e.addSlide=function(t,i){f.push({slide:t,element:i});f.sort(function(n,t){return+n.slide.index-+t.slide.index});t.index!==n.active&&(f.length!==1||angular.isNumber(n.active))||(n.$currentTransition&&(n.$currentTransition=null),o=t.index,n.active=t.index,h(o),e.select(f[v(t)]),f.length===1&&n.play())};e.getCurrentIndex=function(){for(var n=0;n<f.length;n++)if(f[n].slide.index===o)return n};e.next=n.next=function(){var t=(e.getCurrentIndex()+1)%f.length;if(t===0&&n.noWrap()){n.pause();return}return e.select(f[t],"next")};e.prev=n.prev=function(){var t=e.getCurrentIndex()-1<0?f.length-1:e.getCurrentIndex()-1;if(n.noWrap()&&t===f.length-1){n.pause();return}return e.select(f[t],"prev")};e.removeSlide=function(t){var i=v(t),r=s.indexOf(f[i]);r!==-1&&s.splice(r,1);f.splice(i,1);f.length>0&&o===i?i>=f.length?(o=f.length-1,n.active=o,h(o),e.select(f[f.length-1])):(o=i,n.active=o,h(o),e.select(f[i])):o>i&&(o--,n.active=o);f.length===0&&(o=null,n.active=null,a())};e.select=n.select=function(t,i){var r=v(t.slide);i===undefined&&(i=r>e.getCurrentIndex()?"next":"prev");t.slide.index===o||n.$currentTransition?t&&t.slide.index!==o&&n.$currentTransition&&s.push(f[r]):k(t.slide,r,i)};n.indexOfSlide=function(n){return+n.slide.index};n.isActive=function(t){return n.active===t.slide.index};n.isPrevDisabled=function(){return n.active===0&&n.noWrap()};n.isNextDisabled=function(){return n.active===f.length-1&&n.noWrap()};n.pause=function(){n.noPause||(l=!1,y())};n.play=function(){l||(l=!0,p())};n.$on("$destroy",function(){b=!0;y()});n.$watch("noTransition",function(n){u.enabled(t,!n)});n.$watch("interval",p);n.$watchCollection("slides",d);n.$watch("active",function(n){var t,i;if(angular.isNumber(n)&&o!==n){for(t=0;t<f.length;t++)if(f[t].slide.index===n){n=t;break}i=f[n];i&&(h(n),e.select(f[n]),o=n)}})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)})}}}).animation(".item",["$animateCss",function(n){function i(n,t,i){n.removeClass(t);i&&i()}var t="uib-slideDirection";return{beforeAddClass:function(r,u,f){if(u==="active"){var s=!1,e=r.data(t),o=e==="next"?"left":"right",h=i.bind(this,r,o+" "+e,f);return r.addClass(e),n(r,{addClass:o}).start().done(h),function(){s=!0}}f()},beforeRemoveClass:function(r,u,f){if(u==="active"){var o=!1,s=r.data(t),e=s==="next"?"left":"right",h=i.bind(this,r,e,f);return n(r,{addClass:e}).start().done(h),function(){o=!0}}f()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(n,t,i,r){function o(n,t){var o=[],u=n.split(""),s=n.indexOf("'"),f,i;if(s>-1){for(f=!1,n=n.split(""),i=s;i<n.length;i++)f?(n[i]==="'"&&(i+1<n.length&&n[i+1]==="'"?(n[i+1]="$",u[i+1]=""):(u[i]="",f=!1)),n[i]="$"):n[i]==="'"&&(n[i]="$",u[i]="",f=!0);n=n.join("")}return angular.forEach(e,function(i){var r=n.indexOf(i.key),f,e;if(r>-1){for(n=n.split(""),u[r]="("+i.regex+")",n[r]="$",f=r+1,e=r+i.key.length;f<e;f++)u[f]="",n[f]="$";n=n.join("");o.push({index:r,key:i.key,apply:i[t],matcher:i.regex})}}),{regex:new RegExp("^"+u.join("")+"$"),map:r(o,"index")}}function a(n,t,i){return i<1?!1:t===1&&i>28?i===29&&(n%4==0&&n%100!=0||n%400==0):t===3||t===5||t===8||t===10?i<31:!0}function s(n){return parseInt(n,10)}function v(n,t){return n&&t?f(n,t):n}function y(n,t){return n&&t?f(n,t,!0):n}function h(n,t){n=n.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function c(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function f(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=h(t,r);return c(n,i*(u-r))}var l=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,u,e;this.init=function(){u=t.id;this.parsers={};this.formatters={};e=[{key:"yyyy",regex:"\\d{4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(n){n=+n;this.year=n<69?n+2e3:n+1900},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){var t=n.getMonth();return/^[0-9]$/.test(t)?i(n,"MM"):i(n,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.MONTH.indexOf(n)},formatter:function(n){return i(n,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(n)},formatter:function(n){return i(n,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){var t=n.getDate();return/^[1-9]$/.test(t)?i(n,"dd"):i(n,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(n){return i(n,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(n){return i(n,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(n){this.milliseconds=+n},formatter:function(n){return i(n,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(n){this.hours===12&&(this.hours=0);n==="PM"&&(this.hours+=12)},formatter:function(n){return i(n,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(n){var t=n.match(/([+-])(\d{2})(\d{2})/),i=t[1],r=t[2],u=t[3];this.hours+=s(i+r);this.minutes+=s(i+u)},formatter:function(n){return i(n,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(n){return i(n,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(n){return i(n,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(n){return i(n,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"G")}}]};this.init();this.filter=function(n,i){if(!angular.isDate(n)||isNaN(n)||!i)return"";i=t.DATETIME_FORMATS[i]||i;t.id!==u&&this.init();this.formatters[i]||(this.formatters[i]=o(i,"formatter"));var e=this.formatters[i],f=e.map,r=i;return f.reduce(function(t,i,u){var e=r.match(new RegExp("(.*)"+i.key)),o;return(e&&angular.isString(e[1])&&(t+=e[1],r=r.replace(e[1]+i.key,"")),o=u===f.length-1?r:"",i.apply)?t+i.apply.call(null,n)+o:t+o},"")};this.parse=function(i,r,f){var e,s,h,k,y,p,w;if(!angular.isString(i)||!r)return i;r=t.DATETIME_FORMATS[r]||r;r=r.replace(l,"\\$&");t.id!==u&&this.init();this.parsers[r]||(this.parsers[r]=o(r,"apply"));var b=this.parsers[r],d=b.regex,g=b.map,c=i.match(d),v=!1;if(c&&c.length){for(angular.isDate(f)&&!isNaN(f.getTime())?e={year:f.getFullYear(),month:f.getMonth(),date:f.getDate(),hours:f.getHours(),minutes:f.getMinutes(),seconds:f.getSeconds(),milliseconds:f.getMilliseconds()}:(f&&n.warn("dateparser:","baseDate is not a valid date"),e={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),h=1,k=c.length;h<k;h++)y=g[h-1],y.matcher==="Z"&&(v=!0),y.apply&&y.apply.call(e,c[h]);return p=v?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,w=v?Date.prototype.setUTCHours:Date.prototype.setHours,a(e.year,e.month,e.date)&&(!angular.isDate(f)||isNaN(f.getTime())||v?(s=new Date(0),p.call(s,e.year,e.month,e.date),w.call(s,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0)):(s=new Date(f),p.call(s,e.year,e.month,e.date),w.call(s,e.hours,e.minutes,e.seconds,e.milliseconds))),s}};this.toTimezone=v;this.fromTimezone=y;this.timezoneToOffset=h;this.addDateMinutes=c;this.convertTimezoneToLocal=f}]);angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(n){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,i=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,u){function a(n,t){f.push(n);o.push({scope:n,element:t});l.forEach(function(t){v(t,n)});n.$on("$destroy",y)}function v(t,r){var c=t.match(i),l=r.$eval(c[1]),f=c[2],u=e[t],s;u||(s=function(t){var i=null;o.some(function(n){var r=n.scope.$eval(h);if(r===t)return i=n,!0});u.lastActivated!==i&&(u.lastActivated&&n.removeClass(u.lastActivated.element,l),i&&n.addClass(i.element,l),u.lastActivated=i)},e[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:f,watcher:r.$watch(f,s)});u.watchFn(r.$eval(f))}function y(n){var i=n.targetScope,r=f.indexOf(i),t;f.splice(r,1);o.splice(r,1);f.length?(t=f[0],angular.forEach(e,function(n){n.scope===i&&(n.watcher=t.$watch(n.compareWithExp,n.watchFn),n.scope=t)})):e={}}var f=[],o=[],e={},s=u.uibIsClass.match(t),h=s[2],c=s[1],l=c.split(",");return a}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(n,t,i,r,u,f,e,o,s,h,c){function w(t){n.datepickerMode=t;n.datepickerOptions.datepickerMode=t}var l=this,a={$setViewValue:angular.noop},v={},y=[],b=!!t.datepickerOptions,p;n.datepickerOptions||(n.datepickerOptions={});this.modes=["day","month","year"];["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":n[t]=n.datepickerOptions[t]||angular.noop;break;case"datepickerMode":n.datepickerMode=angular.isDefined(n.datepickerOptions.datepickerMode)?n.datepickerOptions.datepickerMode:o.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":l[t]=angular.isDefined(n.datepickerOptions[t])?r(n.datepickerOptions[t])(n.$parent):o[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":l[t]=angular.isDefined(n.datepickerOptions[t])?n.datepickerOptions[t]:o[t];break;case"startingDay":l.startingDay=angular.isDefined(n.datepickerOptions.startingDay)?n.datepickerOptions.startingDay:angular.isNumber(o.startingDay)?o.startingDay:(u.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":n.$watch("datepickerOptions."+t,function(n){n?angular.isDate(n)?l[t]=c.fromTimezone(new Date(n),v.timezone):(s&&f.warn("Literal date support has been deprecated, please switch to date object usage"),l[t]=new Date(e(n,"medium"))):l[t]=o[t]?c.fromTimezone(new Date(o[t]),v.timezone):null;l.refreshView()});break;case"maxMode":case"minMode":n.datepickerOptions[t]?n.$watch(function(){return n.datepickerOptions[t]},function(i){l[t]=n[t]=angular.isDefined(i)?i:datepickerOptions[t];(t==="minMode"&&l.modes.indexOf(n.datepickerOptions.datepickerMode)<l.modes.indexOf(l[t])||t==="maxMode"&&l.modes.indexOf(n.datepickerOptions.datepickerMode)>l.modes.indexOf(l[t]))&&(n.datepickerMode=l[t],n.datepickerOptions.datepickerMode=l[t])}):l[t]=n[t]=o[t]||null}});n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(Math.random()*1e4);n.disabled=angular.isDefined(t.disabled)||!1;angular.isDefined(t.ngDisabled)&&y.push(n.$parent.$watch(t.ngDisabled,function(t){n.disabled=t;l.refreshView()}));n.isActive=function(t){return l.compare(t.date,l.activeDate)===0?(n.activeDateId=t.uid,!0):!1};this.init=function(t){a=t;v=t.$options||o.ngModelOptions;n.datepickerOptions.initDate?(l.activeDate=c.fromTimezone(n.datepickerOptions.initDate,v.timezone)||new Date,n.$watch("datepickerOptions.initDate",function(n){n&&(a.$isEmpty(a.$modelValue)||a.$invalid)&&(l.activeDate=c.fromTimezone(n,v.timezone),l.refreshView())})):l.activeDate=new Date;var i=a.$modelValue?new Date(a.$modelValue):new Date;this.activeDate=isNaN(i)?c.fromTimezone(new Date,v.timezone):c.fromTimezone(i,v.timezone);a.$render=function(){l.render()}};this.render=function(){if(a.$viewValue){var n=new Date(a.$viewValue),t=!isNaN(n);t?this.activeDate=c.fromTimezone(n,v.timezone):h||f.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()};this.refreshView=function(){if(this.element){n.selectedDt=null;this._refreshView();n.activeDt&&(n.activeDateId=n.activeDt.uid);var t=a.$viewValue?new Date(a.$viewValue):null;t=c.fromTimezone(t,v.timezone);a.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}};this.createDateObject=function(t,i){var r=a.$viewValue?new Date(a.$viewValue):null,f,e,u;return r=c.fromTimezone(r,v.timezone),f=new Date,f=c.fromTimezone(f,v.timezone),e=this.compare(t,f),u={date:t,label:c.filter(t,i),selected:r&&this.compare(t,r)===0,disabled:this.isDisabled(t),past:e<0,current:e===0,future:e>0,customClass:this.customClass(t)||null},r&&this.compare(t,r)===0&&(n.selectedDt=u),l.activeDate&&this.compare(u.date,l.activeDate)===0&&(n.activeDt=u),u};this.isDisabled=function(t){return n.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})};this.customClass=function(t){return n.customClass({date:t,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===l.minMode){var i=a.$viewValue?c.fromTimezone(new Date(a.$viewValue),v.timezone):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());i=c.toTimezone(i,v.timezone);a.$setViewValue(i);a.$render()}else l.activeDate=t,w(l.modes[l.modes.indexOf(n.datepickerMode)-1]),n.$emit("uib:datepicker.mode");n.$broadcast("uib:datepicker.focus")};n.move=function(n){var t=l.activeDate.getFullYear()+n*(l.step.years||0),i=l.activeDate.getMonth()+n*(l.step.months||0);l.activeDate.setFullYear(t,i,1);l.refreshView()};n.toggleMode=function(t){(t=t||1,(n.datepickerMode!==l.maxMode||t!==1)&&(n.datepickerMode!==l.minMode||t!==-1))&&(w(l.modes[l.modes.indexOf(n.datepickerMode)+t]),n.$emit("uib:datepicker.mode"))};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};p=function(){l.element[0].focus()};n.$on("uib:datepicker.focus",p);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey&&!n.disabled)if(t.preventDefault(),l.shortcutPropagation||t.stopPropagation(),i==="enter"||i==="space"){if(l.isDisabled(l.activeDate))return;n.select(l.activeDate)}else t.ctrlKey&&(i==="up"||i==="down")?n.toggleMode(i==="up"?1:-1):(l.handleKeyDown(i,t),l.refreshView())};n.$on("$destroy",function(){while(y.length)y.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(n,t,i){function r(n,t){return t===1&&n%4==0&&(n%100!=0||n%400==0)?29:u[t]}function f(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}var u=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1};this.element=t;this.init=function(t){angular.extend(t,this);n.showWeeks=t.showWeeks;t.refreshView()};this.getDates=function(n,t){for(var r=new Array(t),i=new Date(n),u=0,f;u<t;)f=new Date(i),r[u++]=f,i.setDate(i.getDate()+1);return r};this._refreshView=function(){var y=this.activeDate.getFullYear(),h=this.activeDate.getMonth(),o=new Date(this.activeDate),t,r,u,a,v,e;o.setFullYear(y,h,1);var s=this.startingDay-o.getDay(),c=s>0?7-s:-s,l=new Date(o);for(c>0&&l.setDate(-c+1),t=this.getDates(l,42),r=0;r<42;r++)t[r]=angular.extend(this.createDateObject(t[r],this.formatDay),{secondary:t[r].getMonth()!==h,uid:n.uniqueId+"-"+r});for(n.labels=new Array(7),u=0;u<7;u++)n.labels[u]={abbr:i(t[u].date,this.formatDayHeader),full:i(t[u].date,"EEEE")};if(n.title=i(this.activeDate,this.formatDayTitle),n.rows=this.split(t,7),n.showWeeks)for(n.weekNumbers=[],a=(11-this.startingDay)%7,v=n.rows.length,e=0;e<v;e++)n.weekNumbers.push(f(n.rows[e][a].date))};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getDate(),i;n==="left"?t=t-1:n==="up"?t=t-7:n==="right"?t=t+1:n==="down"?t=t+7:n==="pageup"||n==="pagedown"?(i=this.activeDate.getMonth()+(n==="pageup"?-1:1),this.activeDate.setMonth(i,1),t=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)):n==="home"?t=1:n==="end"&&(t=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(n,t,i){this.step={years:1};this.element=t;this.init=function(n){angular.extend(n,this);n.refreshView()};this._refreshView=function(){for(var u=new Array(12),f=this.activeDate.getFullYear(),r,t=0;t<12;t++)r=new Date(this.activeDate),r.setFullYear(f,t,1),u[t]=angular.extend(this.createDateObject(r,this.formatMonth),{uid:n.uniqueId+"-"+t});n.title=i(this.activeDate,this.formatMonthTitle);n.rows=this.split(u,3)};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getMonth(),i;n==="left"?t=t-1:n==="up"?t=t-3:n==="right"?t=t+1:n==="down"?t=t+3:n==="pageup"||n==="pagedown"?(i=this.activeDate.getFullYear()+(n==="pageup"?-1:1),this.activeDate.setFullYear(i)):n==="home"?t=0:n==="end"&&(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(n,t){function u(n){return parseInt((n-1)/i,10)*i+1}var r,i;this.element=t;this.yearpickerInit=function(){r=this.yearColumns;i=this.yearRows*r;this.step={years:i}};this._refreshView=function(){for(var f=new Array(i),e,t=0,o=u(this.activeDate.getFullYear());t<i;t++)e=new Date(this.activeDate),e.setFullYear(o+t,0,1),f[t]=angular.extend(this.createDateObject(e,this.formatYear),{uid:n.uniqueId+"-"+t});n.title=[f[0].label,f[i-1].label].join(" - ");n.rows=this.split(f,r);n.columns=r};this.compare=function(n,t){return n.getFullYear()-t.getFullYear()};this.handleKeyDown=function(n){var t=this.activeDate.getFullYear();n==="left"?t=t-1:n==="up"?t=t-r:n==="right"?t=t+1:n==="down"?t=t+r:n==="pageup"||n==="pagedown"?t+=(n==="pageup"?-1:1)*i:n==="home"?t=u(this.activeDate.getFullYear()):n==="end"&&(t=u(this.activeDate.getFullYear())+i-1);this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(n,t,i,r){var u=r[0];angular.extend(u,r[1]);u.yearpickerInit();u.refreshView()}}});angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(n,t){var r,u,f={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},i={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},e=/(HTML|BODY)/;return{getRawNode:function(n){return n.nodeName?n:n[0]||n},parseStyle:function(n){return n=parseFloat(n),isFinite(n)?n:0},offsetParent:function(i){function u(n){return(t.getComputedStyle(n).position||"static")==="static"}i=this.getRawNode(i);for(var r=i.offsetParent||n[0].documentElement;r&&r!==n[0].documentElement&&u(r);)r=r.offsetParent;return r||n[0].documentElement},scrollbarWidth:function(i){var e,f;return i?(angular.isUndefined(u)&&(e=n.find("body"),e.addClass("uib-position-body-scrollbar-measure"),u=t.innerWidth-e[0].clientWidth,u=isFinite(u)?u:0,e.removeClass("uib-position-body-scrollbar-measure")),u):(angular.isUndefined(r)&&(f=angular.element('<div class="uib-position-scrollbar-measure"><\/div>'),n.find("body").append(f),r=f[0].offsetWidth-f[0].clientWidth,r=isFinite(r)?r:0,f.remove()),r)},scrollbarPadding:function(n){n=this.getRawNode(n);var u=t.getComputedStyle(n),f=this.parseStyle(u.paddingRight),o=this.parseStyle(u.paddingBottom),i=this.scrollParent(n,!1,!0),r=this.scrollbarWidth(i,e.test(i.tagName));return{scrollbarWidth:r,widthOverflow:i.scrollWidth>i.clientWidth,right:f+r,originalRight:f,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+r,originalBottom:o}},isScrollable:function(n,i){n=this.getRawNode(n);var u=i?f.hidden:f.normal,r=t.getComputedStyle(n);return u.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(i,r,u){var c,e,s;i=this.getRawNode(i);var l=r?f.hidden:f.normal,h=n[0].documentElement,o=t.getComputedStyle(i);if(u&&l.test(o.overflow+o.overflowY+o.overflowX))return i;if(c=o.position==="absolute",e=i.parentElement||h,e===h||o.position==="fixed")return h;while(e.parentElement&&e!==h){if(s=t.getComputedStyle(e),c&&s.position!=="static"&&(c=!1),!c&&l.test(s.overflow+s.overflowY+s.overflowX))break;e=e.parentElement}return e},position:function(i,r){var u,o,f,e;return i=this.getRawNode(i),u=this.offset(i),r&&(o=t.getComputedStyle(i),u.top-=this.parseStyle(o.marginTop),u.left-=this.parseStyle(o.marginLeft)),f=this.offsetParent(i),e={top:0,left:0},f!==n[0].documentElement&&(e=this.offset(f),e.top+=f.clientTop-f.scrollTop,e.left+=f.clientLeft-f.scrollLeft),{width:Math.round(angular.isNumber(u.width)?u.width:i.offsetWidth),height:Math.round(angular.isNumber(u.height)?u.height:i.offsetHeight),top:Math.round(u.top-e.top),left:Math.round(u.left-e.left)}},offset:function(i){i=this.getRawNode(i);var r=i.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:i.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:i.offsetHeight),top:Math.round(r.top+(t.pageYOffset||n[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||n[0].documentElement.scrollLeft))}},viewportOffset:function(i,r,u){var o;i=this.getRawNode(i);u=u!==!1?!0:!1;var s=i.getBoundingClientRect(),f={top:0,left:0,bottom:0,right:0},e=r?n[0].documentElement:this.scrollParent(i),h=e.getBoundingClientRect();return f.top=h.top+e.clientTop,f.left=h.left+e.clientLeft,e===n[0].documentElement&&(f.top+=t.pageYOffset,f.left+=t.pageXOffset),f.bottom=f.top+e.clientHeight,f.right=f.left+e.clientWidth,u&&(o=t.getComputedStyle(e),f.top+=this.parseStyle(o.paddingTop),f.bottom-=this.parseStyle(o.paddingBottom),f.left+=this.parseStyle(o.paddingLeft),f.right-=this.parseStyle(o.paddingRight)),{top:Math.round(s.top-f.top),bottom:Math.round(f.bottom-s.bottom),left:Math.round(s.left-f.left),right:Math.round(f.right-s.right)}},parsePlacement:function(n){var t=i.auto.test(n);return t&&(n=n.replace(i.auto,"")),n=n.split("-"),n[0]=n[0]||"top",i.primary.test(n[0])||(n[0]="top"),n[1]=n[1]||"center",i.secondary.test(n[1])||(n[1]="center"),n[2]=t?!0:!1,n},positionElements:function(n,r,u,f){var c,l,e,h,v,y;if(n=this.getRawNode(n),r=this.getRawNode(r),c=angular.isDefined(r.offsetWidth)?r.offsetWidth:r.prop("offsetWidth"),l=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),u=this.parsePlacement(u),e=f?this.offset(n):this.position(n),h={top:0,left:0,placement:""},u[2]){var o=this.viewportOffset(n,f),a=t.getComputedStyle(r),s={width:c+Math.round(Math.abs(this.parseStyle(a.marginLeft)+this.parseStyle(a.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(a.marginTop)+this.parseStyle(a.marginBottom)))};u[0]=u[0]==="top"&&s.height>o.top&&s.height<=o.bottom?"bottom":u[0]==="bottom"&&s.height>o.bottom&&s.height<=o.top?"top":u[0]==="left"&&s.width>o.left&&s.width<=o.right?"right":u[0]==="right"&&s.width>o.right&&s.width<=o.left?"left":u[0];u[1]=u[1]==="top"&&s.height-e.height>o.bottom&&s.height-e.height<=o.top?"bottom":u[1]==="bottom"&&s.height-e.height>o.top&&s.height-e.height<=o.bottom?"top":u[1]==="left"&&s.width-e.width>o.right&&s.width-e.width<=o.left?"right":u[1]==="right"&&s.width-e.width>o.left&&s.width-e.width<=o.right?"left":u[1];u[1]==="center"&&(i.vertical.test(u[0])?(v=e.width/2-c/2,o.left+v<0&&s.width-e.width<=o.right?u[1]="left":o.right+v<0&&s.width-e.width<=o.left&&(u[1]="right")):(y=e.height/2-s.height/2,o.top+y<0&&s.height-e.height<=o.bottom?u[1]="top":o.bottom+y<0&&s.height-e.height<=o.top&&(u[1]="bottom")))}switch(u[0]){case"top":h.top=e.top-l;break;case"bottom":h.top=e.top+e.height;break;case"left":h.left=e.left-c;break;case"right":h.left=e.left+e.width}switch(u[1]){case"top":h.top=e.top;break;case"bottom":h.top=e.top+e.height-l;break;case"left":h.left=e.left;break;case"right":h.left=e.left+e.width-c;break;case"center":i.vertical.test(u[0])?h.left=e.left+e.width/2-c/2:h.top=e.top+e.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement=u[1]==="center"?u[0]:u[0]+"-"+u[1],h},positionArrow:function(n,r){var o,f,e,u,c;if((n=this.getRawNode(n),o=n.querySelector(".tooltip-inner, .popover-inner"),o)&&(f=angular.element(o).hasClass("tooltip-inner"),e=f?n.querySelector(".tooltip-arrow"):n.querySelector(".arrow"),e)){if(u={top:"",bottom:"",left:"",right:""},r=this.parsePlacement(r),r[1]==="center"){angular.element(e).css(u);return}var l="border-"+r[0]+"-width",s=t.getComputedStyle(e)[l],h="border-";h+=i.vertical.test(r[0])?r[0]+"-"+r[1]:r[1]+"-"+r[0];h+="-radius";c=t.getComputedStyle(f?o:n)[h];switch(r[0]){case"top":u.bottom=f?"0":"-"+s;break;case"bottom":u.top=f?"0":"-"+s;break;case"left":u.right=f?"0":"-"+s;break;case"right":u.left=f?"0":"-"+s}u[r[1]]=c;angular.element(e).css(u)}}}}]);angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function st(t){var i=l.parse(t,b,n.date),r;if(isNaN(i))for(r=0;r<et.length;r++)if(i=l.parse(t,et[r],n.date),!isNaN(i))return i;return i}function pt(n){if(angular.isNumber(n)&&(n=new Date(n)),!n)return null;if(angular.isDate(n)&&!isNaN(n))return n;if(angular.isString(n)){var t=st(n);if(!isNaN(t))return l.toTimezone(t,g)}return w.$options&&w.$options.allowInvalid?n:undefined}function wt(n,t){var r=n||t;return!i.ngRequired&&!r?!0:(angular.isNumber(r)&&(r=new Date(r)),!r)?!0:angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(st(t)):!1}function ht(i){if(n.isOpen||!n.disabled){var r=tt[0],u=t[0].contains(i.target),f=r.contains!==undefined&&r.contains(i.target);!n.isOpen||u||f||n.$apply(function(){n.isOpen=!1})}}function yt(i){i.which===27&&n.isOpen?(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!1}),t[0].focus()):i.which!==40||n.isOpen||(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!0}))}function d(){if(n.isOpen){var r=angular.element(tt[0].querySelector(".uib-datepicker-popup")),f=i.popupPlacement?i.popupPlacement:a.placement,u=h.positionElements(t,r,f,rt);r.css({top:u.top+"px",left:u.left+"px"});r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}var it=!1,b,ct,rt,lt,at,vt,nt,ft,k,w,ut,tt,et,ot=[],g;this.init=function(u){if(w=u,ut=u.$options,ct=angular.isDefined(i.closeOnDateSelection)?n.$parent.$eval(i.closeOnDateSelection):a.closeOnDateSelection,rt=angular.isDefined(i.datepickerAppendToBody)?n.$parent.$eval(i.datepickerAppendToBody):a.appendToBody,lt=angular.isDefined(i.onOpenFocus)?n.$parent.$eval(i.onOpenFocus):a.onOpenFocus,at=angular.isDefined(i.datepickerPopupTemplateUrl)?i.datepickerPopupTemplateUrl:a.datepickerPopupTemplateUrl,vt=angular.isDefined(i.datepickerTemplateUrl)?i.datepickerTemplateUrl:a.datepickerTemplateUrl,et=angular.isDefined(i.altInputFormats)?n.$parent.$eval(i.altInputFormats):a.altInputFormats,n.showButtonBar=angular.isDefined(i.showButtonBar)?n.$parent.$eval(i.showButtonBar):a.showButtonBar,a.html5Types[i.type]?(b=a.html5Types[i.type],it=!0):(b=i.uibDatepickerPopup||a.datepickerPopup,i.$observe("uibDatepickerPopup",function(n){var t=n||a.datepickerPopup;if(t!==b&&(b=t,w.$modelValue=null,!b))throw new Error("uibDatepickerPopup must have a date format specified.");})),!b)throw new Error("uibDatepickerPopup must have a date format specified.");if(it&&i.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");nt=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker><\/div><\/div>");ut?(g=ut.timezone,n.ngModelOptions=angular.copy(ut),n.ngModelOptions.timezone=null,n.ngModelOptions.updateOnDefault===!0&&(n.ngModelOptions.updateOn=n.ngModelOptions.updateOn?n.ngModelOptions.updateOn+" default":"default"),nt.attr("ng-model-options","ngModelOptions")):g=null;nt.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":at});ft=angular.element(nt.children()[0]);ft.attr("template-url",vt);n.datepickerOptions||(n.datepickerOptions={});it&&i.type==="month"&&(n.datepickerOptions.datepickerMode="month",n.datepickerOptions.minMode="month");ft.attr("datepicker-options","datepickerOptions");it?w.$formatters.push(function(t){return n.date=l.fromTimezone(t,g),t}):(w.$$parserName="date",w.$validators.date=wt,w.$parsers.unshift(pt),w.$formatters.push(function(t){return w.$isEmpty(t)?(n.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),n.date=l.fromTimezone(t,g),l.filter(n.date,b))}));w.$viewChangeListeners.push(function(){n.date=st(w.$viewValue)});t.on("keydown",yt);tt=r(nt)(n);nt.remove();rt?o.find("body").append(tt):t.after(tt);n.$on("$destroy",function(){for(n.isOpen===!0&&(s.$$phase||n.$apply(function(){n.isOpen=!1})),tt.remove(),t.off("keydown",yt),o.off("click",ht),k&&k.off("scroll",d),angular.element(e).off("resize",d);ot.length;)ot.shift()()})};n.getText=function(t){return n[t+"Text"]||a[t+"Text"]};n.isDisabled=function(t){t==="today"&&(t=l.fromTimezone(new Date,g));var i={};return angular.forEach(["minDate","maxDate"],function(t){n.datepickerOptions[t]?angular.isDate(n.datepickerOptions[t])?i[t]=l.fromTimezone(new Date(n.datepickerOptions[t]),g):(p&&u.warn("Literal date support has been deprecated, please switch to date object usage"),i[t]=new Date(c(n.datepickerOptions[t],"medium"))):i[t]=null}),n.datepickerOptions&&i.minDate&&n.compare(t,i.minDate)<0||i.maxDate&&n.compare(t,i.maxDate)>0};n.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};n.dateSelection=function(i){angular.isDefined(i)&&(n.date=i);var r=n.date?l.filter(n.date,b):null;t.val(r);w.$setViewValue(r);ct&&(n.isOpen=!1,t[0].focus())};n.keydown=function(i){i.which===27&&(i.stopPropagation(),n.isOpen=!1,t[0].focus())};n.select=function(t,i){if(i.stopPropagation(),t==="today"){var r=new Date;angular.isDate(n.date)?(t=new Date(n.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):t=new Date(r.setHours(0,0,0,0))}n.dateSelection(t)};n.close=function(i){i.stopPropagation();n.isOpen=!1;t[0].focus()};n.disabled=angular.isDefined(i.disabled)||!1;i.ngDisabled&&ot.push(n.$parent.$watch(f(i.ngDisabled),function(t){n.disabled=t}));n.$watch("isOpen",function(r){r?n.disabled?n.isOpen=!1:v(function(){d();lt&&n.$broadcast("uib:datepicker.focus");o.on("click",ht);var r=i.popupPlacement?i.popupPlacement:a.placement;if(rt||h.parsePlacement(r)[2]){if(k=k||angular.element(h.scrollParent(t)),k)k.on("scroll",d)}else k=null;angular.element(e).on("resize",d)},0,!1):(o.off("click",ht),k&&k.off("scroll",d),angular.element(e).off("resize",d))});n.$on("uib:datepicker.mode",function(){v(d,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}});angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(n,t){var i=null,r,u;this.open=function(t,f){if(!i){n.on("click",r);f.on("keydown",u)}i&&i!==t&&(i.isOpen=!1);i=t};this.close=function(t,f){i===t&&(i=null,n.off("click",r),f.off("keydown",u))};r=function(n){var r,u;i&&(n&&i.getAutoClose()==="disabled"||n&&n.which===3||(r=i.getToggleElement(),n&&r&&r[0].contains(n.target))||(u=i.getDropdownElement(),n&&i.getAutoClose()==="outsideClick"&&u&&u[0].contains(n.target))||(i.isOpen=!1,t.$$phase||i.$apply()))};u=function(n){n.which===27?(n.stopPropagation(),i.focusToggleElement(),r()):i.isKeynavEnabled()&&[38,40].indexOf(n.which)!==-1&&i.isOpen&&(n.preventDefault(),n.stopPropagation(),i.focusDropdownEntry(n.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(n,t,i,r,u,f,e,o,s,h,c){var l=this,a=n.$new(),p,k=u.appendToOpenClass,d=u.openClass,w,y=angular.noop,nt=i.onToggle?r(i.onToggle):angular.noop,b=!1,v=null,g=!1,tt=s.find("body");t.addClass("dropdown");this.init=function(){if(i.isOpen&&(w=r(i.isOpen),y=w.assign,n.$watch(w,function(n){a.isOpen=!!n})),angular.isDefined(i.dropdownAppendTo)){var u=r(i.dropdownAppendTo)(a);u&&(v=angular.element(u))}if(b=angular.isDefined(i.dropdownAppendToBody),g=angular.isDefined(i.keyboardNav),b&&!v&&(v=tt),v&&l.dropdownMenu){v.append(l.dropdownMenu);t.on("$destroy",function(){l.dropdownMenu.remove()})}};this.toggle=function(n){return a.isOpen=arguments.length?!!n:!a.isOpen,angular.isFunction(y)&&y(a,a.isOpen),a.isOpen};this.isOpen=function(){return a.isOpen};a.getToggleElement=function(){return l.toggleElement};a.getAutoClose=function(){return i.autoClose||"always"};a.getElement=function(){return t};a.isKeynavEnabled=function(){return g};a.focusDropdownEntry=function(n){var i=l.dropdownMenu?angular.element(l.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(n){case 40:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===i.length-1?l.selectedOption:l.selectedOption+1:0;break;case 38:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===0?0:l.selectedOption-1:i.length-1}i[l.selectedOption].focus()};a.getDropdownElement=function(){return l.dropdownMenu};a.focusToggleElement=function(){l.toggleElement&&l.toggleElement[0].focus()};a.$watch("isOpen",function(i,r){var s,u,g,rt,w,tt,ut,it;v&&l.dropdownMenu&&(s=o.positionElements(t,l.dropdownMenu,"bottom-left",!0),u={top:s.top+"px",display:i?"block":"none"},g=l.dropdownMenu.hasClass("dropdown-menu-right"),g?(u.left="auto",rt=o.scrollbarWidth(!0),u.right=window.innerWidth-rt-(s.left+t.prop("offsetWidth"))+"px"):(u.left=s.left+"px",u.right="auto"),b||(w=o.offset(v),u.top=s.top-w.top+"px",g?u.right=window.innerWidth-(s.left-w.left+t.prop("offsetWidth"))+"px":u.left=s.left-w.left+"px"),l.dropdownMenu.css(u));tt=v?v:t;ut=tt.hasClass(v?k:d);ut===!i&&e[i?"addClass":"removeClass"](tt,v?k:d).then(function(){angular.isDefined(i)&&i!==r&&nt(n,{open:!!i})});i?(l.dropdownMenuTemplateUrl&&c(l.dropdownMenuTemplateUrl).then(function(n){p=a.$new();h(n.trim())(p,function(n){var t=n;l.dropdownMenu.replaceWith(t);l.dropdownMenu=t})}),a.focusToggleElement(),f.open(a,t)):(l.dropdownMenuTemplateUrl&&(p&&p.$destroy(),it=angular.element('<ul class="dropdown-menu"><\/ul>'),l.dropdownMenu.replaceWith(it),l.dropdownMenu=it),f.close(a,t),l.selectedOption=null);angular.isFunction(y)&&y(n,i)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(n,t,i,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(n,t,i,r){if(r&&!angular.isDefined(i.dropdownNested)){t.addClass("dropdown-menu");var u=i.templateUrl;u&&(r.dropdownMenuTemplateUrl=u);r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(n,t,i,r){if(r){t.addClass("dropdown-toggle");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.stackedMap",[]).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}}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var n={};return{entries:function(){return Object.keys(n).map(function(t){return{key:t,value:n[t]}})},get:function(t){return n[t]},hasKey:function(t){return!!n[t]},keys:function(){return Object.keys(n)},put:function(t,i){n[t]||(n[t]=[]);n[t].push(i)},remove:function(t,i){var r=n[t],u;r&&(u=r.indexOf(i),u!==-1&&r.splice(u,1),r.length||delete n[t])}}}}}).provider("$uibResolve",function(){var n=this;this.resolver=null;this.setResolver=function(n){this.resolver=n};this.$get=["$injector","$q",function(t,i){var r=n.resolver?t.get(n.resolver):null;return{resolve:function(n,u,f,e){if(r)return r.resolve(n,u,f,e);var o=[];return angular.forEach(n,function(n){angular.isFunction(n)||angular.isArray(n)?o.push(i.resolve(t.invoke(n))):angular.isString(n)?o.push(i.resolve(t.get(n))):o.push(i.resolve(n))}),i.all(o).then(function(t){var i={},r=0;return angular.forEach(n,function(n,u){i[u]=t[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(n,t,i){function r(t,r,u){u.modalInClass&&(n.addClass(r,u.modalInClass),t.$on(i.NOW_CLOSING_EVENT,function(i,f){var e=f();t.modalOptions.animation?n.removeClass(r,u.modalInClass).then(e):e()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(n,t){return n.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,t,i,r){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(u,f,e){f.addClass(e.windowClass||"");f.addClass(e.windowTopClass||"");u.size=e.size;u.close=function(t){var i=n.getTop();i&&i.value.backdrop&&i.value.backdrop!=="static"&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))};f.on("click",u.close);u.$isRendered=!0;var o=t.defer();e.$observe("modalRender",function(n){n==="true"&&o.resolve()});o.promise.then(function(){var o=null;e.modalInClass&&(o=i(f,{addClass:e.modalInClass}).start(),u.$on(n.NOW_CLOSING_EVENT,function(n,t){var r=t();i(f,{removeClass:e.modalInClass}).start().then(r)}));t.when(o).then(function(){var i=n.getTop(),t;i&&n.modalRendered(i.key);r[0].activeElement&&f[0].contains(r[0].activeElement)||(t=f[0].querySelector("[autofocus]"),t?t.focus():f[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(n,t){t.modalAnimation&&n.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(n,t,i,r,u,f,e,o,s){function ut(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}function b(){for(var n=-1,i=c.keys(),t=0;t<i.length;t++)c.get(i[t]).value.backdrop&&(n=t);return n>-1&&n<p&&(n=p),n}function d(n,t){var i=c.get(n).value,r=i.appendTo;c.remove(n);y=c.top();y&&(p=parseInt(y.value.modalDomEl.attr("index"),10));nt(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||k,u;w.remove(t,n);u=w.hasKey(t);r.toggleClass(t,u);!u&&l&&l.heightOverflow&&l.scrollbarWidth&&(l.originalRight?r.css({paddingRight:l.originalRight+"px"}):r.css({paddingRight:""}),l=null);g(!0)},i.closedDeferred);ft();t&&t.focus?t.focus():r.focus&&r.focus()}function g(n){var t;c.length()>0&&(t=c.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",n))}function ft(){if(a&&b()===-1){var n=v;nt(a,v,function(){n=null});a=undefined;v=undefined}}function nt(t,i,r,u){function o(){o.done||(o.done=!0,n.leave(t).then(function(){t.remove();u&&u.resolve()}),i.$destroy(),r&&r())}var e,s=null,c=function(){return e||(e=f.defer(),s=e.promise),function(){e.resolve()}};return i.$broadcast(h.NOW_CLOSING_EVENT,c),f.when(s).then(o)}function tt(n){var t,i,r;if(n.isDefaultPrevented())return n;if(t=c.top(),t)switch(n.which){case 27:t.value.keyboard&&(n.preventDefault(),u.$apply(function(){h.dismiss(t.key,"escape key press")}));break;case 9:i=h.loadFocusElementList(t);r=!1;n.shiftKey?(h.isFocusInFirstItem(n,i)||h.isModalFocused(n,t))&&(r=h.focusLastFocusableElement(i)):h.isFocusInLastItem(n,i)&&(r=h.focusFirstFocusableElement(i));r&&(n.preventDefault(),n.stopPropagation())}}function it(n,t,i){return!n.value.modalScope.$broadcast("modal.closing",t,i).defaultPrevented}var k="modal-open",a,v,c=o.createNew(),w=e.createNew(),h={NOW_CLOSING_EVENT:"modal.stack.now-closing"},p=0,y=null,rt="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]",l;u.$watch(b,function(n){v&&(v.index=n)});i.on("keydown",tt);return u.$on("$destroy",function(){i.off("keydown",tt)}),h.open=function(t,f){var nt=i[0].activeElement,d=f.openedClass||k,e,h,o;if(g(!1),y=c.top(),c.add(t,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),w.put(d,t),e=f.appendTo,h=b(),!e.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");h>=0&&!a&&(v=u.$new(!0),v.modalOptions=f,v.index=h,a=angular.element('<div uib-modal-backdrop="modal-backdrop"><\/div>'),a.attr("backdrop-class",f.backdropClass),f.animation&&a.attr("modal-animation","true"),r(a)(v),n.enter(a,e),l=s.scrollbarPadding(e),l.heightOverflow&&l.scrollbarWidth&&e.css({paddingRight:l.right+"px"}));p=y?parseInt(y.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"><\/div>');o.attr({"template-url":f.windowTemplateUrl,"window-class":f.windowClass,"window-top-class":f.windowTopClass,size:f.size,index:p,animate:"animate"}).html(f.content);f.animation&&o.attr("modal-animation","true");e.addClass(d);n.enter(r(o)(f.scope),e);c.top().value.modalDomEl=o;c.top().value.modalOpener=nt},h.close=function(n,t){var i=c.get(n);return i&&it(i,t,!0)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.resolve(t),d(n,i.value.modalOpener),!0):!i},h.dismiss=function(n,t){var i=c.get(n);return i&&it(i,t,!1)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.reject(t),d(n,i.value.modalOpener),!0):!i},h.dismissAll=function(n){for(var t=this.getTop();t&&this.dismiss(t.key,n);)t=this.getTop()},h.getTop=function(){return c.top()},h.modalRendered=function(n){var t=c.get(n);t&&t.value.renderDeferred.resolve()},h.focusFirstFocusableElement=function(n){return n.length>0?(n[0].focus(),!0):!1},h.focusLastFocusableElement=function(n){return n.length>0?(n[n.length-1].focus(),!0):!1},h.isModalFocused=function(n,t){if(n&&t){var i=t.value.modalDomEl;if(i&&i.length)return(n.target||n.srcElement)===i[0]}return!1},h.isFocusInFirstItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[0]:!1},h.isFocusInLastItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[t.length-1]:!1},h.loadFocusElementList=function(n){var t,i;if(n&&(t=n.value.modalDomEl,t&&t.length))return i=t[0].querySelectorAll(rt),i?Array.prototype.filter.call(i,function(n){return ut(n)}):i},h}]).provider("$uibModal",function(){var n={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,i,r,u,f,e,o){function c(n){return n.template?i.when(n.template):u(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl)}var h={},s=null;return h.getPromiseChain=function(){return s},h.open=function(u){function w(){return p}var l=i.defer(),a=i.defer(),v=i.defer(),y=i.defer(),h={result:l.promise,opened:a.promise,closed:v.promise,rendered:y.promise,close:function(n){return o.close(h,n)},dismiss:function(n){return o.dismiss(h,n)}},p,b;if(u=angular.extend({},n.options,u),u.resolve=u.resolve||{},u.appendTo=u.appendTo||r.find("body").eq(0),!u.template&&!u.templateUrl)throw new Error("One of template or templateUrl options is required.");return p=i.all([c(u),e.resolve(u.resolve,{},null,null)]),b=s=i.all([s]).then(w,w).then(function(n){var c=u.scope||t,i=c.$new(),e,s,r;i.$close=h.close;i.$dismiss=h.dismiss;i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});r={};u.controller&&(r.$scope=i,r.$scope.$resolve={},r.$uibModalInstance=h,angular.forEach(n[1],function(n,t){r[t]=n;r.$scope.$resolve[t]=n}),s=f(u.controller,r,!0,u.controllerAs),u.controllerAs&&u.bindToController&&(e=s.instance,e.$close=i.$close,e.$dismiss=i.$dismiss,angular.extend(e,{$resolve:r.$scope.$resolve},c)),e=s(),angular.isFunction(e.$onInit)&&e.$onInit());o.open(h,{scope:i,deferred:l,renderDeferred:y,closedDeferred:v,content:n[0],animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo});a.resolve(!0)},function(n){a.reject(n);l.reject(n)})["finally"](function(){s===b&&(s=null)}),h},h}]};return n});angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(n){return{create:function(t,i,r){t.setNumPages=r.numPages?n(r.numPages).assign:angular.noop;t.ngModelCtrl={$setViewValue:angular.noop};t._watchers=[];t.init=function(n,u){t.ngModelCtrl=n;t.config=u;n.$render=function(){t.render()};r.itemsPerPage?t._watchers.push(i.$parent.$watch(r.itemsPerPage,function(n){t.itemsPerPage=parseInt(n,10);i.totalPages=t.calculateTotalPages();t.updatePage()})):t.itemsPerPage=u.itemsPerPage;i.$watch("totalItems",function(n,r){(angular.isDefined(n)||n!==r)&&(i.totalPages=t.calculateTotalPages(),t.updatePage())})};t.calculateTotalPages=function(){var n=t.itemsPerPage<1?1:Math.ceil(i.totalItems/t.itemsPerPage);return Math.max(n||0,1)};t.render=function(){i.page=parseInt(t.ngModelCtrl.$viewValue,10)||1};i.selectPage=function(n,r){r&&r.preventDefault();var u=!i.ngDisabled||!r;u&&i.page!==n&&n>0&&n<=i.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(n),t.ngModelCtrl.$render())};i.getText=function(n){return i[n+"Text"]||t.config[n+"Text"]};i.noPrevious=function(){return i.page===1};i.noNext=function(){return i.page===i.totalPages};t.updatePage=function(){t.setNumPages(i.$parent,i.totalPages);i.page>i.totalPages?i.selectPage(i.totalPages):t.ngModelCtrl.$render()};i.$on("$destroy",function(){while(t._watchers.length)t._watchers.shift()()})}}}]);angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(n,t,i,r){n.align=angular.isDefined(t.align)?n.$parent.$eval(t.align):r.align;i.create(this,n,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(n){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(n,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&e.init(f,n)}}}]);angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(n,t,i,r,u){function e(n,t,i){return{number:n,text:t,active:i}}function v(n,t){var u=[],i=1,r=t,c=angular.isDefined(f)&&f<t,s,v,y,p,w,b,k,d;for(c&&(h?(i=Math.max(n-Math.floor(f/2),1),r=i+f-1,r>t&&(r=t,i=r-f+1)):(i=(Math.ceil(n/f)-1)*f+1,r=Math.min(i+f-1,t))),s=i;s<=r;s++)v=e(s,a(s),s===n),u.push(v);return c&&f>0&&(!h||l||o)&&(i>1&&((!o||i>3)&&(y=e(i-1,"...",!1),u.unshift(y)),o&&(i===3&&(p=e(2,"2",!1),u.unshift(p)),w=e(1,"1",!1),u.unshift(w))),r<t&&((!o||r<t-2)&&(b=e(r+1,"...",!1),u.push(b)),o&&(r===t-2&&(k=e(t-1,t-1,!1),u.push(k)),d=e(t,t,!1),u.push(d)))),u}var s=this,f=angular.isDefined(t.maxSize)?n.$parent.$eval(t.maxSize):u.maxSize,h=angular.isDefined(t.rotate)?n.$parent.$eval(t.rotate):u.rotate,l=angular.isDefined(t.forceEllipses)?n.$parent.$eval(t.forceEllipses):u.forceEllipses,o=angular.isDefined(t.boundaryLinkNumbers)?n.$parent.$eval(t.boundaryLinkNumbers):u.boundaryLinkNumbers,a=angular.isDefined(t.pageLabel)?function(i){return n.$parent.$eval(t.pageLabel,{$page:i})}:angular.identity,c;n.boundaryLinks=angular.isDefined(t.boundaryLinks)?n.$parent.$eval(t.boundaryLinks):u.boundaryLinks;n.directionLinks=angular.isDefined(t.directionLinks)?n.$parent.$eval(t.directionLinks):u.directionLinks;r.create(this,n,t);t.maxSize&&s._watchers.push(n.$parent.$watch(i(t.maxSize),function(n){f=parseInt(n,10);s.render()}));c=this.render;this.render=function(){c();n.page>0&&n.page<=n.totalPages&&(n.pages=v(n.page,n.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(n,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(n,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(n,i,r,u){var e=u[0],f=u[1];f&&e.init(f,t)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function r(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var i={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(u,f,e,o,s,h,c,l,a){function y(n){if(n.which===27){var t=v.top();t&&(t.value.close(),v.removeTop(),t=null)}}var v=a.createNew();o.on("keypress",y);return c.$on("$destroy",function(){o.off("keypress",y)}),function(u,c,a,y){function b(t){var i=(t||y.trigger||a).split(" "),r=i.map(function(t){return n[t]||t});return{show:i,hide:r}}y=angular.extend({},i,t,y);var k=r(u),p=h.startSymbol(),w=h.endSymbol(),d="<div "+k+'-popup uib-title="'+p+"title"+w+'" '+(y.useContentExp?'content-exp="contentExp()" ':'content="'+p+"content"+w+'" ')+'placement="'+p+"placement"+w+'" popup-class="'+p+"popupClass"+w+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"><\/div>';return{compile:function(){var n=f(d);return function(t,i,r){function ft(){f.isOpen?et():at()}function at(){(!ni||t.$eval(r[c+"Enable"]))&&(vt(),ii(),f.popupDelay?nt||(nt=e(kt,f.popupDelay,!1)):kt())}function et(){ht();f.popupCloseDelay?tt||(tt=e(d,f.popupCloseDelay,!1)):d()}function kt(){if(ht(),vt(),!f.content)return angular.noop;ti();f.$evalAsync(function(){f.isOpen=!0;dt(!0);ut()})}function ht(){nt&&(e.cancel(nt),nt=null);k&&(e.cancel(k),k=null)}function d(){f&&f.$evalAsync(function(){f&&(f.isOpen=!1,dt(!1),f.animation?g||(g=e(yt,150,!1)):yt())})}function vt(){tt&&(e.cancel(tt),tt=null);g&&(e.cancel(g),g=null)}function ti(){h||(p=f.$new(),h=n(p,function(n){ot?o.find("body").append(n):i.after(n)}),ri())}function yt(){ht();vt();ui();h&&(h.remove(),h=null);p&&(p.$destroy(),p=null)}function ii(){var n,i,e;f.title=r[c+"Title"];f.content=st?st(t):r[u];f.popupClass=r[c+"Class"];f.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:y.placement;n=s.parsePlacement(f.placement);rt=n[1]?n[0]+"-"+n[1]:n[0];i=parseInt(r[c+"PopupDelay"],10);e=parseInt(r[c+"PopupCloseDelay"],10);f.popupDelay=isNaN(i)?y.popupDelay:i;f.popupCloseDelay=isNaN(e)?y.popupCloseDelay:e}function dt(n){it&&angular.isFunction(it.assign)&&it.assign(t,n)}function ri(){a.length=0;st?(a.push(t.$watch(st,function(n){f.content=n;!n&&f.isOpen&&d()})),a.push(p.$watch(function(){lt||(lt=!0,p.$$postDigest(function(){lt=!1;f&&f.isOpen&&ut()}))}))):a.push(r.$observe(u,function(n){f.content=n;!n&&f.isOpen?d():ut()}));a.push(r.$observe(c+"Title",function(n){f.title=n;f.isOpen&&ut()}));a.push(r.$observe(c+"Placement",function(n){f.placement=n?n:y.placement;f.isOpen&&ut()}))}function ui(){a.length&&(angular.forEach(a,function(n){n()}),a.length=0)}function gt(n){f&&f.isOpen&&h&&(i[0].contains(n.target)||h[0].contains(n.target)||et())}function fi(){var n=r[c+"Trigger"];pt();w=b(n);w.show!=="none"&&w.show.forEach(function(n,t){if(n==="outsideClick"){i.on("click",ft);o.on("click",gt)}else if(n===w.hide[t])i.on(n,ft);else if(n){i.on(n,at);i.on(w.hide[t],et)}i.on("keypress",function(n){n.which===27&&et()})})}var h,p,g,nt,tt,k,ot=angular.isDefined(y.appendToBody)?y.appendToBody:!1,w=b(undefined),ni=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),lt=!1,it=angular.isDefined(r[c+"IsOpen"])?l(r[c+"IsOpen"]):!1,st=y.useContentExp?l(r[u]):!1,a=[],rt,ut=function(){h&&h.html()&&(k||(k=e(function(){var n=s.positionElements(i,h,f.placement,ot);h.css({top:n.top+"px",left:n.left+"px"});h.hasClass(n.placement.split("-")[0])||(h.removeClass(rt.split("-")[0]),h.addClass(n.placement.split("-")[0]));h.hasClass(y.placementClassPrefix+n.placement)||(h.removeClass(y.placementClassPrefix+rt),h.addClass(y.placementClassPrefix+n.placement));h.hasClass("uib-position-measure")?(s.positionArrow(h,n.placement),h.removeClass("uib-position-measure")):rt!==n.placement&&s.positionArrow(h,n.placement);rt=n.placement;k=null},0,!1)))},pt,wt,bt,ct;f.origScope=t;f.isOpen=!1;v.add(f,{close:d});f.contentExp=function(){return f.content};r.$observe("disabled",function(n){n&&ht();n&&f.isOpen&&d()});it&&t.$watch(it,function(n){f&&!n===f.isOpen&&ft()});pt=function(){w.show.forEach(function(n){n==="outsideClick"?i.off("click",ft):(i.off(n,at),i.off(n,ft))});w.hide.forEach(function(n){n==="outsideClick"?o.off("click",gt):i.off(n,et)})};fi();wt=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(wt)?!!wt:y.animation;ct=c+"AppendToBody";bt=ct in r&&r[ct]===undefined?!0:t.$eval(r[ct]);ot=angular.isDefined(bt)?bt:ot;t.$on("$destroy",function(){pt();yt();v.remove(f);f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(n,t,i,r){return{link:function(u,f,e){var a=u.$eval(e.tooltipTemplateTranscludeScope),l=0,o,s,h,c=function(){s&&(s.remove(),s=null);o&&(o.$destroy(),o=null);h&&(n.leave(h).then(function(){s=null}),s=h,h=null)};u.$watch(t.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(t){var e=++l;t?(r(t,!0).then(function(r){if(e===l){var u=a.$new(),s=r,v=i(s)(u,function(t){c();n.enter(t,f)});o=u;h=v;o.$emit("$includeContentLoaded",t)}},function(){e===l&&(c(),u.$emit("$includeContentError",t))}),u.$emit("$includeContentRequested",t)):c()});u.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(n){return{restrict:"A",link:function(t,i,r){if(t.placement){var u=n.parsePlacement(t.placement);i.addClass(u[0])}t.popupClass&&i.addClass(t.popupClass);t.animation()&&i.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(n){return n("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(n){return n("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(n){return n("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(n){return n("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(n){return n("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(n){return n("uibPopover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(n,t,i){function u(){return angular.isDefined(n.maxParam)?n.maxParam:i.max}var r=this,f=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=u();this.addBar=function(n,t,i){f||t.css({transition:"none"});this.bars.push(n);n.max=u();n.title=i&&angular.isDefined(i.title)?i.title:"progressbar";n.$watch("value",function(){n.recalculatePercentage()});n.recalculatePercentage=function(){var t=r.bars.reduce(function(n,t){return t.percent=+(100*t.value/t.max).toFixed(2),n+t.percent},0);t>100&&(n.percent-=t-100)};n.$on("$destroy",function(){t=null;r.removeBar(n)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1);this.bars.forEach(function(n){n.recalculatePercentage()})};n.$watch("maxParam",function(){r.bars.forEach(function(n){n.max=u();n.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t,i)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]),{title:i.title})}}});angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(n,t,i){var r={$setViewValue:angular.noop},u=this;this.init=function(u){var f,e;r=u;r.$render=this.render;r.$formatters.push(function(n){return angular.isNumber(n)&&n<<0!==n&&(n=Math.round(n)),n});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;this.enableReset=angular.isDefined(t.enableReset)?n.$parent.$eval(t.enableReset):i.enableReset;f=angular.isDefined(t.titles)?n.$parent.$eval(t.titles):i.titles;this.titles=angular.isArray(f)&&f.length>0?f:i.titles;e=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(e)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;t<i;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},n[t]);return n};this.getTitle=function(n){return n>=this.titles.length?n+1:this.titles[n]};n.rate=function(t){if(!n.readonly&&t>=0&&t<=n.range.length){var i=u.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(i);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+(t.which===38||t.which===39?1:-1)))};this.render=function(){n.value=r.$viewValue;n.title=u.getTitle(n.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}});angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(n){function r(n){for(var i=0;i<t.tabs.length;i++)if(t.tabs[i].index===n)return i}var t=this,i,u;t.tabs=[];t.select=function(n,f){var s,o,e;if(!u){if(s=r(i),o=t.tabs[s],o){o.tab.onDeselect({$event:f,$selectedIndex:n});if(f&&f.isDefaultPrevented())return;o.tab.active=!1}if(e=t.tabs[n],e){e.tab.onSelect({$event:f});e.tab.active=!0;t.active=e.index;i=e.index}else!e&&angular.isDefined(i)&&(t.active=null,i=null)}};t.addTab=function(n){if(t.tabs.push({tab:n,index:n.index}),t.tabs.sort(function(n,t){return n.index>t.index?1:n.index<t.index?-1:0}),n.index===t.active||!angular.isDefined(t.active)&&t.tabs.length===1){var i=r(n.index);t.select(i)}};t.removeTab=function(n){for(var u,i,r=0;r<t.tabs.length;r++)if(t.tabs[r].tab===n){i=r;break}t.tabs[i].index===t.active&&(u=i===t.tabs.length-1?i-1:i+1%t.tabs.length,t.select(u));t.tabs.splice(i,1)};n.$watch("tabset.active",function(n){angular.isDefined(n)&&n!==i&&t.select(r(n))});n.$on("$destroy",function(){u=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(n,t){return t.templateUrl||"uib/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("uibTab",["$parse",function(n){return{require:"^uibTabset",replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,i,r,u,f){t.disabled=!1;r.disable&&t.$parent.$watch(n(r.disable),function(n){t.disabled=!!n});angular.isUndefined(r.index)&&(t.index=u.tabs&&u.tabs.length?Math.max.apply(null,u.tabs.map(function(n){return n.index}))+1:0);angular.isUndefined(r.classes)&&(t.classes="");t.select=function(n){var r,i;if(!t.disabled){for(i=0;i<u.tabs.length;i++)if(u.tabs[i].tab===t){r=i;break}u.select(r,n)}};u.addTab(t);t.$on("$destroy",function(){u.removeTab(t)});t.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}).directive("uibTabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("uib-tab-heading")||n.hasAttribute("data-uib-tab-heading")||n.hasAttribute("x-uib-tab-heading")||n.tagName.toLowerCase()==="uib-tab-heading"||n.tagName.toLowerCase()==="data-uib-tab-heading"||n.tagName.toLowerCase()==="x-uib-tab-heading"||n.tagName.toLowerCase()==="uib:tab-heading")}return{restrict:"A",require:"^uibTabset",link:function(t,i,r){var u=t.$eval(r.uibTabContentTransclude).tab;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("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(n,t,i,r,u,f,e){function tt(){var t=+n.hours,i=n.showMeridian?t>0&&t<13:t>=0&&t<24;return!i||n.hours===""?undefined:(n.showMeridian&&(t===12&&(t=0),n.meridian===v[1]&&(t=t+12)),t)}function it(){var t=+n.minutes,i=t>=0&&t<60;return!i||n.minutes===""?undefined:t}function ot(){var t=+n.seconds;return t>=0&&t<60?t:undefined}function k(n,t){return n===null?"":angular.isDefined(n)&&n.toString().length<2&&!t?"0"+n:n.toString()}function g(n){nt();s.$setViewValue(new Date(o));ut(n)}function nt(){s.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1;n.invalidSeconds=!1}function ut(t){if(s.$modelValue){var i=o.getHours(),r=o.getMinutes(),u=o.getSeconds();n.showMeridian&&(i=i===0||i===12?12:i%12);n.hours=t==="h"?i:k(i,!et);t!=="m"&&(n.minutes=k(r));n.meridian=o.getHours()<12?v[0]:v[1];t!=="s"&&(n.seconds=k(u));n.meridian=o.getHours()<12?v[0]:v[1]}else n.hours=null,n.minutes=null,n.seconds=null,n.meridian=v[0]}function y(n){o=rt(o,n);g()}function d(n,t){return rt(n,t*60)}function rt(n,t){var i=new Date(n.getTime()+t*1e3),r=new Date(n);return r.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),r}function ft(){return(n.hours===null||n.hours==="")&&(n.minutes===null||n.minutes==="")&&(!n.showSeconds||n.showSeconds&&(n.seconds===null||n.seconds===""))}var o=new Date,a=[],s={$setViewValue:angular.noop},v=angular.isDefined(i.meridians)?n.$parent.$eval(i.meridians):e.meridians||f.DATETIME_FORMATS.AMPMS,et=angular.isDefined(i.padHours)?n.$parent.$eval(i.padHours):!0,p,w,c,l,h,b;n.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0;t.removeAttr("tabindex");this.init=function(t,r){var h;s=t;s.$render=this.render;s.$formatters.unshift(function(n){return n?new Date(n):null});var u=r.eq(0),f=r.eq(1),o=r.eq(2),c=angular.isDefined(i.mousewheel)?n.$parent.$eval(i.mousewheel):e.mousewheel;c&&this.setupMousewheelEvents(u,f,o);h=angular.isDefined(i.arrowkeys)?n.$parent.$eval(i.arrowkeys):e.arrowkeys;h&&this.setupArrowkeyEvents(u,f,o);n.readonlyInput=angular.isDefined(i.readonlyInput)?n.$parent.$eval(i.readonlyInput):e.readonlyInput;this.setupInputEvents(u,f,o)};p=e.hourStep;i.hourStep&&a.push(n.$parent.$watch(r(i.hourStep),function(n){p=+n}));w=e.minuteStep;i.minuteStep&&a.push(n.$parent.$watch(r(i.minuteStep),function(n){w=+n}));a.push(n.$parent.$watch(r(i.min),function(n){var t=new Date(n);c=isNaN(t)?undefined:t}));a.push(n.$parent.$watch(r(i.max),function(n){var t=new Date(n);l=isNaN(t)?undefined:t}));h=!1;i.ngDisabled&&a.push(n.$parent.$watch(r(i.ngDisabled),function(n){h=n}));n.noIncrementHours=function(){var n=d(o,p*60);return h||n>l||n<o&&n<c};n.noDecrementHours=function(){var n=d(o,-p*60);return h||n<c||n>o&&n>l};n.noIncrementMinutes=function(){var n=d(o,w);return h||n>l||n<o&&n<c};n.noDecrementMinutes=function(){var n=d(o,-w);return h||n<c||n>o&&n>l};n.noIncrementSeconds=function(){var n=rt(o,b);return h||n>l||n<o&&n<c};n.noDecrementSeconds=function(){var n=rt(o,-b);return h||n<c||n>o&&n>l};n.noToggleMeridian=function(){return o.getHours()<12?h||d(o,720)>l:h||d(o,-720)<c};b=e.secondStep;i.secondStep&&a.push(n.$parent.$watch(r(i.secondStep),function(n){b=+n}));n.showSeconds=e.showSeconds;i.showSeconds&&a.push(n.$parent.$watch(r(i.showSeconds),function(t){n.showSeconds=!!t}));n.showMeridian=e.showMeridian;i.showMeridian&&a.push(n.$parent.$watch(r(i.showMeridian),function(t){if(n.showMeridian=!!t,s.$error.time){var i=tt(),r=it();angular.isDefined(i)&&angular.isDefined(r)&&(o.setHours(i),g())}else ut()}));this.setupMousewheelEvents=function(t,i,r){var u=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){h||n.$apply(u(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()});r.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementSeconds():n.decrementSeconds());t.preventDefault()})};this.setupArrowkeyEvents=function(t,i,r){t.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementHours(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementHours(),n.$apply()))});i.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementMinutes(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementMinutes(),n.$apply()))});r.bind("keydown",function(t){h||(t.which===38?(t.preventDefault(),n.incrementSeconds(),n.$apply()):t.which===40&&(t.preventDefault(),n.decrementSeconds(),n.$apply()))})};this.setupInputEvents=function(t,i,r){if(n.readonlyInput){n.updateHours=angular.noop;n.updateMinutes=angular.noop;n.updateSeconds=angular.noop;return}var u=function(t,i,r){s.$setViewValue(null);s.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i);angular.isDefined(r)&&(n.invalidSeconds=r)};n.updateHours=function(){var n=tt(),t=it();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(n),o.setMinutes(t),o<c||o>l?u(!0):g("h")):u(!0)};t.bind("blur",function(){s.$setTouched();ft()?nt():n.hours===null||n.hours===""?u(!0):!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=k(n.hours,!et)})});n.updateMinutes=function(){var n=it(),t=tt();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(t),o.setMinutes(n),o<c||o>l?u(undefined,!0):g("m")):u(undefined,!0)};i.bind("blur",function(){s.$setTouched();ft()?nt():n.minutes===null?u(undefined,!0):!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=k(n.minutes)})});n.updateSeconds=function(){var n=ot();s.$setDirty();angular.isDefined(n)?(o.setSeconds(n),g("s")):u(undefined,undefined,!0)};r.bind("blur",function(){ft()?nt():!n.invalidSeconds&&n.seconds<10&&n.$apply(function(){n.seconds=k(n.seconds)})})};this.render=function(){var t=s.$viewValue;isNaN(t)?(s.$setValidity("time",!1),u.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.')):(t&&(o=t),o<c||o>l?(s.$setValidity("time",!1),n.invalidHours=!0,n.invalidMinutes=!0):nt(),ut())};n.showSpinners=angular.isDefined(i.showSpinners)?n.$parent.$eval(i.showSpinners):e.showSpinners;n.incrementHours=function(){n.noIncrementHours()||y(p*3600)};n.decrementHours=function(){n.noDecrementHours()||y(-p*3600)};n.incrementMinutes=function(){n.noIncrementMinutes()||y(w*60)};n.decrementMinutes=function(){n.noDecrementMinutes()||y(-w*60)};n.incrementSeconds=function(){n.noIncrementSeconds()||y(b)};n.decrementSeconds=function(){n.noDecrementSeconds()||y(-b)};n.toggleMeridian=function(){var t=it(),i=tt();n.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(i)?y(720*(o.getHours()<12?60:-60)):n.meridian=n.meridian===v[0]?v[1]:v[0])};n.blur=function(){s.$setTouched()};n.$on("$destroy",function(){while(a.length)a.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,i){return i.templateUrl||n.templateUrl},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.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\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])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function lt(){v.moveInProgress||(v.moveInProgress=!0,v.$digest());ni()}function ti(){v.position=nt?l.offset(t):l.position(t);v.position.top+=t.prop("offsetHeight")}var ri=[9,13,27,38,40],y,rt,d=n.$eval(i.typeaheadMinLength),at,g,ht,tt,w,b,gt,ct,ni,yt,ii,pt,wt,it;d||d===0||(d=1);n.$watch(i.typeaheadMinLength,function(n){d=!n&&n!==0?1:n});at=n.$eval(i.typeaheadWaitMs)||0;g=n.$eval(i.typeaheadEditable)!==!1;n.$watch(i.typeaheadEditable,function(n){g=n!==!1});var ut=u(i.typeaheadLoading).assign||angular.noop,ui=i.typeaheadShouldSelect?u(i.typeaheadShouldSelect):function(n,t){var i=t.$event;return i.which===13||i.which===9},fi=u(i.typeaheadOnSelect),ei=angular.isDefined(i.typeaheadSelectOnBlur)?n.$eval(i.typeaheadSelectOnBlur):!1,ft=u(i.typeaheadNoResults).assign||angular.noop,bt=i.typeaheadInputFormatter?u(i.typeaheadInputFormatter):undefined,nt=i.typeaheadAppendToBody?n.$eval(i.typeaheadAppendToBody):!1,vt=i.typeaheadAppendTo?n.$eval(i.typeaheadAppendTo):null,oi=n.$eval(i.typeaheadFocusFirst)!==!1,si=i.typeaheadSelectOnExact?n.$eval(i.typeaheadSelectOnExact):!1,hi=u(i.typeaheadIsOpen).assign||angular.noop,et=n.$eval(i.typeaheadShowHint)||!1,kt=u(i.ngModel),ci=u(i.ngModel+"($$$p)"),li=function(t,i){return angular.isFunction(kt(n))&&rt&&rt.$options&&rt.$options.getterSetter?ci(t,{$$$p:i}):kt.assign(t,i)},p=a.parse(i.uibTypeahead),ot,st,v=n.$new(),ai=n.$on("$destroy",function(){v.$destroy()});v.$on("$destroy",ai);ht="typeahead-"+v.$id+"-"+Math.floor(Math.random()*1e4);t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":ht});et&&(tt=angular.element("<div><\/div>"),tt.css("position","relative"),t.after(tt),w=t.clone(),w.attr("placeholder",""),w.attr("tabindex","-1"),w.val(""),w.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),tt.append(w),w.after(t));b=angular.element("<div uib-typeahead-popup><\/div>");b.attr({id:ht,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"});angular.isDefined(i.typeaheadTemplateUrl)&&b.attr("template-url",i.typeaheadTemplateUrl);angular.isDefined(i.typeaheadPopupTemplateUrl)&&b.attr("popup-template-url",i.typeaheadPopupTemplateUrl);var vi=function(){et&&w.val("")},k=function(){v.matches=[];v.activeIdx=-1;t.attr("aria-expanded",!1);vi()},dt=function(n){return ht+"-option-"+n};if(v.$watch("activeIdx",function(n){n<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",dt(n))}),gt=function(n,t){return v.matches.length>t&&n?n.toUpperCase()===v.matches[t].label.toUpperCase():!1},ct=function(i,r){var u={$viewValue:i};ut(n,!0);ft(n,!1);f.when(p.source(n,u)).then(function(f){var s=i===y.$viewValue,e,o;if(s&&ot)if(f&&f.length>0){for(v.activeIdx=oi?0:-1,ft(n,!1),v.matches.length=0,e=0;e<f.length;e++)u[p.itemName]=f[e],v.matches.push({id:dt(e),label:p.viewMapper(v,u),model:f[e]});v.query=i;ti();t.attr("aria-expanded",!0);si&&v.matches.length===1&&gt(i,0)&&(angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(0,r)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(0,r));et&&(o=v.matches[0].label,angular.isString(i)&&i.length>0&&o.slice(0,i.length).toUpperCase()===i.toUpperCase()?w.val(i+o.slice(i.length)):w.val(""))}else k(),ft(n,!0);s&&ut(n,!1)},function(){k();ut(n,!1);ft(n,!0)})},nt){angular.element(s).on("resize",lt);o.find("body").on("scroll",lt)}ni=c(function(){v.matches.length&&ti();v.moveInProgress=!1},200);v.moveInProgress=!1;v.query=undefined;ii=function(n){yt=e(function(){ct(n)},at)};pt=function(){yt&&e.cancel(yt)};k();v.assignIsOpen=function(t){hi(n,t)};v.select=function(r,u){var f={},o,s;st=!0;f[p.itemName]=s=v.matches[r].model;o=p.modelMapper(n,f);li(n,o);y.$setValidity("editable",!0);y.$setValidity("parse",!0);fi(n,{$item:s,$model:o,$label:p.viewMapper(n,f),$event:u});k();v.$eval(i.typeaheadFocusOnSelect)!==!1&&e(function(){t[0].focus()},0,!1)};t.on("keydown",function(t){var r,i;if(v.matches.length!==0&&ri.indexOf(t.which)!==-1){if(r=ui(n,{$event:t}),v.activeIdx===-1&&r||t.which===9&&!!t.shiftKey){k();v.$digest();return}t.preventDefault();switch(t.which){case 27:t.stopPropagation();k();n.$digest();break;case 38:v.activeIdx=(v.activeIdx>0?v.activeIdx:v.matches.length)-1;v.$digest();i=b.find("li")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;case 40:v.activeIdx=(v.activeIdx+1)%v.matches.length;v.$digest();i=b.find("li")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;default:r&&v.$apply(function(){angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(v.activeIdx,t)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(v.activeIdx,t)})}}});t.bind("focus",function(n){ot=!0;d!==0||y.$viewValue||e(function(){ct(y.$viewValue,n)},0)});t.bind("blur",function(n){ei&&v.matches.length&&v.activeIdx!==-1&&!st&&(st=!0,v.$apply(function(){angular.isObject(v.debounceUpdate)&&angular.isNumber(v.debounceUpdate.blur)?c(function(){v.select(v.activeIdx,n)},v.debounceUpdate.blur):v.select(v.activeIdx,n)}));!g&&y.$error.editable&&(y.$setViewValue(),y.$setValidity("editable",!0),y.$setValidity("parse",!0),t.val(""));ot=!1;st=!1});wt=function(i){t[0]!==i.target&&i.which!==3&&v.matches.length!==0&&(k(),h.$$phase||n.$digest())};o.on("click",wt);n.$on("$destroy",function(){o.off("click",wt);(nt||vt)&&it.remove();nt&&(angular.element(s).off("resize",lt),o.find("body").off("scroll",lt));b.remove();et&&tt.remove()});it=r(b)(v);nt?o.find("body").append(it):vt?angular.element(vt).eq(0).append(it):t.after(it);this.init=function(t,i){y=t;rt=i;v.debounceUpdate=y.$options&&u(y.$options.debounce)(n);y.$parsers.unshift(function(t){return(ot=!0,d===0||t&&t.length>=d?at>0?(pt(),ii(t)):ct(t):(ut(n,!1),pt(),k()),g)?t:t?(y.$setValidity("editable",!1),undefined):(y.$setValidity("editable",!0),null)});y.$formatters.push(function(t){var r,u,i={};return(g||y.$setValidity("editable",!0),bt)?(i.$model=t,bt(n,i)):(i[p.itemName]=t,r=p.viewMapper(n,i),i[p.itemName]=undefined,u=p.viewMapper(n,i),r!==u?r:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(n,t,i,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(n){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(n,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,i,r){t.templateUrl=r.templateUrl;t.isOpen=function(){var n=t.matches.length>0;return t.assignIsOpen({isOpen:n}),n};t.isActive=function(n){return t.active===n};t.selectActive=function(n){t.active=n};t.selectMatch=function(i,r){var u=t.debounce();angular.isNumber(u)||angular.isObject(u)?n(function(){t.select({activeIdx:i,evt:r})},angular.isNumber(u)?u:u["default"]):t.select({activeIdx:i,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(n,t,i){return{scope:{index:"=",match:"=",query:"="},link:function(r,u,f){var e=i(f.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";n(e).then(function(n){var i=angular.element(n.trim());u.replaceWith(i);t(i)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){function u(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(n){return/<.*>/g.test(n)}var r;return r=t.has("$sanitize"),function(t,e){return!r&&f(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(u(e),"gi"),"<strong>$&<\/strong>"):t,r||(t=n.trustAsHtml(t)),t}}]);angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n  <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n    <h4 class="panel-title">\n      <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n    <\/h4>\n  <\/div>\n  <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n    <div class="panel-body" ng-transclude><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude><\/div>')}]);angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\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("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n  <div class="carousel-inner" ng-transclude><\/div>\n  <a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/span>\n    <span class="sr-only">previous<\/span>\n  <\/a>\n  <a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/span>\n    <span class="sr-only">next<\/span>\n  <\/a>\n  <ol class="carousel-indicators" ng-show="slides.length > 1">\n    <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n      <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active<\/span><\/span>\n    <\/li>\n  <\/ol>\n<\/div>\n')}]);angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/slide.html",'<div ng-class="{\n    \'active\': active\n  }" class="item text-center" ng-transclude><\/div>\n')}]);angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <uib-daypicker ng-switch-when="day" tabindex="0"><\/uib-daypicker>\n  <uib-monthpicker ng-switch-when="month" tabindex="0"><\/uib-monthpicker>\n  <uib-yearpicker ng-switch-when="year" tabindex="0"><\/uib-yearpicker>\n<\/div>\n')}]);angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" 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 uib-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 uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n    <tr>\n      <th ng-if="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 class="uib-weeks" ng-repeat="row in rows track by $index">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}<\/em><\/td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          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("uib/template/datepicker/month.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" 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 uib-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 uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" 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 uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepickerPopup/popup.html",'<div>\n  <ul class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n    <li ng-transclude><\/li>\n    <li ng-if="showButtonBar" class="uib-button-bar">\n      <span class="btn-group pull-left">\n        <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}<\/button>\n        <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}<\/button>\n      <\/span>\n      <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}<\/button>\n    <\/li>\n  <\/ul>\n<\/div>\n')}]);angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(n){n.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n     uib-modal-animation-class="fade"\n     modal-in-class="in"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n><\/div>\n')}]);angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(n){n.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n    uib-modal-animation-class="fade"\n    modal-in-class="in"\n    ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n    <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude><\/div><\/div>\n<\/div>\n')}]);angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(n){n.put("uib/template/pager/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}<\/a><\/li>\n  <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}<\/a><\/li>\n<\/ul>\n')}]);angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}<\/a><\/li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}<\/a><\/li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}<\/a><\/li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}<\/a><\/li>\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}<\/a><\/li>\n<\/ul>\n')}]);angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind-html="contentExp()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner"\n    uib-tooltip-template-transclude="contentExp()"\n    tooltip-template-transclude-scope="originScope()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-html.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n      <div class="popover-content" ng-bind-html="contentExp()"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-template.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n      <div class="popover-content"\n        uib-tooltip-template-transclude="contentExp()"\n        tooltip-template-transclude-scope="originScope()"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n      <div class="popover-content" ng-bind="content"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("uib/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 < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n')}]);angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"><\/div>')}]);angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.put("uib/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 < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("uib/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}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <i ng-repeat-end 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\')" ng-attr-title="{{r.title}}"><\/i>\n<\/span>\n')}]);angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.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 tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      <\/td>\n      <td class="uib-separator">:<\/td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showSeconds" class="uib-separator">:<\/td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}<\/button><\/td>\n    <\/tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"><\/a>\n')}]);angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" 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, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]);angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||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>');angular.$$uibCarouselCss=!0});angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}<\/style>');angular.$$uibDatepickerCss=!0});angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}<\/style>');angular.$$uibPositionCss=!0});angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}<\/style>');angular.$$uibDatepickerpopupCss=!0});angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}<\/style>');angular.$$uibTooltipCss=!0});angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}<\/style>');angular.$$uibTimepickerCss=!0});angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}<\/style>');angular.$$uibTypeaheadCss=!0});!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(n){return function(t,i){if(t==="__setXHR_"){var r=i(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13";ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(n,t,i){function f(f){function h(n){o.notify&&o.notify(n);e.progressFunc&&i(function(){e.progressFunc(n)})}function c(n){return f._start!=null&&u?{loaded:n.loaded+f._start,total:f._file&&f._file.size||n.total,type:n.type,config:f,lengthComputable:!0,target:n.target}:n}function s(){n(f).then(function(n){if(u&&f._chunkSize&&!f._finished&&f._file){var t=f._file&&f._file.size||0;h({loaded:Math.min(f._end,t),total:t,config:f,type:"progress"});r.upload(f,!0)}else f._finished&&delete f._finished,o.resolve(n)},function(n){o.reject(n)},function(n){o.notify(n)})}f.method=f.method||"POST";f.headers=f.headers||{};var o=f._deferred=f._deferred||t.defer(),e=o.promise;return f.disableProgress||(f.headers.__setXHR_=function(){return function(n){n&&n.upload&&n.upload.addEventListener&&(f.__XHR=n,f.xhrFn&&f.xhrFn(n),n.upload.addEventListener("progress",function(n){n.config=f;h(c(n))},!1),n.upload.addEventListener("load",function(n){n.lengthComputable&&(n.config=f,h(c(n)))},!1))}}),u?f._chunkSize&&f._end&&!f._finished?(f._start=f._end,f._end+=f._chunkSize,s()):f.resumeSizeUrl?n.get(f.resumeSizeUrl).then(function(n){f._start=f.resumeSizeResponseReader?f.resumeSizeResponseReader(n.data):parseInt((n.data.size==null?n.data:n.data.size).toString());f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):f.resumeSize?f.resumeSize().then(function(n){f._start=n;f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):(f._chunkSize&&(f._start=0,f._end=f._start+f._chunkSize),s()):s(),e.success=function(n){return e.then(function(t){n(t.data,t.status,t.headers,f)}),e},e.error=function(n){return e.then(null,function(t){n(t.data,t.status,t.headers,f)}),e},e.progress=function(n){return e.progressFunc=n,e.then(null,null,function(t){n(t)}),e},e.abort=e.pause=function(){return f.__XHR&&i(function(){f.__XHR.abort()}),e},e.xhr=function(n){return f.xhrFn=function(t){return function(){t&&t.apply(e,arguments);n.apply(e,arguments)}}(f.xhrFn),e},r.promisesCount++,e["finally"]&&e["finally"]instanceof Function&&e["finally"](function(){r.promisesCount--}),e}function e(n){var i={};for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}var r=this,u;r.promisesCount=0;this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};u=this.isResumeSupported();this.isUploadInProgress=function(){return r.promisesCount>0};this.rename=function(n,t){return n.ngfName=t,n};this.jsonBlob=function(n){n==null||angular.isString(n)||(n=JSON.stringify(n));var t=new window.Blob([n],{type:"application/json"});return t._ngfBlob=!0,t};this.json=function(n){return angular.toJson(n)};this.isFile=function(n){return n!=null&&(n instanceof window.Blob||n.flashId&&n.name&&n.size)};this.upload=function(n,t){function o(t,i){if(t._ngfBlob)return t;if(n._file=n._file||t,n._start!=null&&u){n._end&&n._end>=t.size&&(n._finished=!0,n._end=t.size);var r=t.slice(n._start,n._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,n._chunkSize&&(i.append("_chunkSize",n._chunkSize),i.append("_currentChunkSize",n._end-n._start),i.append("_chunkNumber",Math.floor(n._start/n._chunkSize)),i.append("_totalSize",n._file.size)),r}return t}function i(t,u,f){var s,h,e,c;if(u!==undefined)if(angular.isDate(u)&&(u=u.toISOString()),angular.isString(u))t.append(f,u);else if(r.isFile(u))s=o(u,t),h=f.split(","),h[1]&&(s.ngfName=h[1].replace(/^\s+|\s+$/g,""),f=h[0]),n._fileKey=n._fileKey||f,t.append(f,s,s.ngfName||s.name);else if(angular.isObject(u)){if(u.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+f;u.$$ngfCircularDetection=!0;try{for(e in u)u.hasOwnProperty(e)&&e!=="$$ngfCircularDetection"&&(c=n.objectKey==null?"[i]":n.objectKey,u.length&&parseInt(e)>-1&&(c=n.arrayKey==null?c:n.arrayKey),i(t,u[e],f+c.replace(/[ik]/g,e)))}finally{delete u.$$ngfCircularDetection}}else t.append(f,u)}function s(){n._chunkSize=r.translateScalars(n.resumeChunkSize);n._chunkSize=n._chunkSize?parseInt(n._chunkSize.toString()):null;n.headers=n.headers||{};n.headers["Content-Type"]=undefined;n.transformRequest=n.transformRequest?angular.isArray(n.transformRequest)?n.transformRequest:[n.transformRequest]:[];n.transformRequest.push(function(t){var u=new window.FormData,r,f;t=t||n.fields||{};n.file&&(t.file=n.file);for(r in t)t.hasOwnProperty(r)&&(f=t[r],n.formDataAppender?n.formDataAppender(u,r,f):i(u,f,r));return u})}return t||(n=e(n)),n._isDigested||(n._isDigested=!0,s()),f(n)};this.http=function(t){return t=e(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:n.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=r.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,f(t)};this.translateScalars=function(n){if(angular.isString(n)){if(n.search(/kb/i)===n.length-2)return parseFloat(n.substring(0,n.length-2)*1024);if(n.search(/mb/i)===n.length-2)return parseFloat(n.substring(0,n.length-2)*1048576);if(n.search(/gb/i)===n.length-2)return parseFloat(n.substring(0,n.length-2)*1073741824);if(n.search(/b/i)===n.length-1||n.search(/s/i)===n.length-1)return parseFloat(n.substring(0,n.length-1));if(n.search(/m/i)===n.length-1)return parseFloat(n.substring(0,n.length-1)*60);if(n.search(/h/i)===n.length-1)return parseFloat(n.substring(0,n.length-1)*3600)}return n};this.urlToBlob=function(i){var r=t.defer();return n({url:i,method:"get",responseType:"arraybuffer"}).then(function(n){var f=new Uint8Array(n.data),e=n.headers("content-type")||"image/WebP",t=new window.Blob([f],{type:e}),u=i.match(/.*\/(.+?)(\?.*)?$/);u.length>1&&(t.name=u[1]);r.resolve(t)},function(n){r.reject(n)}),r.promise};this.setDefaults=function(n){this.defaults=n||{}};this.defaults={};this.version=ngFileUpload.version}]);ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(n,t,i,r,u){function o(n,t,i){var u=[f.emptyPromise()];return angular.forEach(n,function(r,e){r.type.indexOf("image/jpeg")===0&&f.attrGetter("ngfFixOrientation",t,i,{$file:r})&&u.push(f.happyPromise(f.applyExifRotation(r),r).then(function(t){n.splice(e,1,t)}))}),r.all(u)}function s(n,t,i,u){var o=f.attrGetter("ngfResize",t,i),s;return!o||!f.isResizeSupported()||!n.length?f.emptyPromise():o instanceof Function?(s=r.defer(),o(n).then(function(r){e(r,n,t,i,u).then(function(n){s.resolve(n)},function(n){s.reject(n)})},function(n){s.reject(n)})):e(o,n,t,i,u)}function e(n,t,i,u,e){function h(r,o){if(r.type.indexOf("image")===0){if(n.pattern&&!f.validatePattern(r,n.pattern))return;n.resizeIf=function(n,t){return f.attrGetter("ngfResizeIf",i,u,{$width:n,$height:t,$file:r})};var h=f.resize(r,n);s.push(h);h.then(function(n){t.splice(o,1,n)},function(n){r.$error="resize";(r.$errorMessages=r.$errorMessages||{}).resize=!0;r.$errorParam=(n?(n.message?n.message:n)+": ":"")+(r&&r.name);e.$ngfValidations.push({name:"resize",valid:!1});f.applyModelValidation(e,t)})}}for(var s=[f.emptyPromise()],o=0;o<t.length;o++)h(t[o],o);return r.all(s)}var f=u;return f.getAttrWithDefaults=function(n,t){if(n[t]!=null)return n[t];var i=f.defaults[t];return i==null?i:angular.isString(i)?i:JSON.stringify(i)},f.attrGetter=function(t,i,r,u){var f=this.getAttrWithDefaults(i,t);if(r)try{return u?n(f)(r,u):n(f)(r)}catch(e){if(t.search(/min|max|pattern/i))return f;throw e;}else return f},f.shouldUpdateOn=function(n,t,i){var r=f.attrGetter("ngfModelOptions",t,i);return r&&r.updateOn?r.updateOn.split(" ").indexOf(n)>-1:!0},f.emptyPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.resolve.apply(n,i)}),n.promise},f.rejectPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.reject.apply(n,i)}),n.promise},f.happyPromise=function(n,i){var u=r.defer();return n.then(function(n){u.resolve(n)},function(n){t(function(){throw n;});u.resolve(i)}),u.promise},f.updateModel=function(i,r,u,e,h,c,l){function tt(o,s,h,l,a){var v,y,p;r.$$ngfPrevValidFiles=o;r.$$ngfPrevInvalidFiles=s;v=o&&o.length?o[0]:null;y=s&&s.length?s[0]:null;i&&(f.applyModelValidation(i,o),i.$setViewValue(a?v:o));e&&n(e)(u,{$files:o,$file:v,$newFiles:h,$duplicateFiles:l,$invalidFiles:s,$invalidFile:y,$event:c});p=f.attrGetter("ngfModelInvalid",r);p&&t(function(){n(p).assign(u,a?y:s)});t(function(){})}function rt(){function t(n,t){return n.name===t.name&&(n.$ngfOrigSize||n.size)===(t.$ngfOrigSize||t.size)&&n.type===t.type}function i(n){for(var i=0;i<p.length;i++)if(t(n,p[i]))return!0;for(i=0;i<d.length;i++)if(t(n,d[i]))return!0;return!1}if(h){a=[];b=[];for(var n=0;n<h.length;n++)i(h[n])?b.push(h[n]):a.push(h[n])}}function ut(n){return angular.isArray(n)?n:[n]}function it(){function n(){t(function(){tt(y?p.concat(v):v,y?d.concat(k):k,h,b,nt)},w&&w.debounce?w.debounce.change||w.debounce:0)}var e=g?a:v;s(e,r,u,i).then(function(){g?f.validate(a,y?p.length:0,i,r,u).then(function(t){v=t.validsFiles;k=t.invalidsFiles;n()}):n()},function(){for(var i,r,t=0;t<e.length;t++)i=e[t],i.$error==="resize"&&(r=v.indexOf(i),r>-1&&(v.splice(r,1),k.push(i)),n())})}var a,b=[],p,d,k=[],v=[],y,nt,g,w;(p=r.$$ngfPrevValidFiles||[],d=r.$$ngfPrevInvalidFiles||[],i&&i.$modelValue&&(p=ut(i.$modelValue)),y=f.attrGetter("ngfKeep",r,u),a=(h||[]).slice(0),(y==="distinct"||f.attrGetter("ngfKeepDistinct",r,u)===!0)&&rt(r,u),nt=!y&&!f.attrGetter("ngfMultiple",r,u)&&!f.attrGetter("multiple",r),!y||a.length)&&(f.attrGetter("ngfBeforeModelChange",r,u,{$files:h,$file:h&&h.length?h[0]:null,$newFiles:a,$duplicateFiles:b,$event:c}),g=f.attrGetter("ngfValidateAfterResize",r,u),w=f.attrGetter("ngfModelOptions",r,u),f.validate(a,y?p.length:0,i,r,u).then(function(n){l?tt(a,[],h,b,nt):(w&&w.allowInvalid||g?v=a:(v=n.validFiles,k=n.invalidFiles),f.attrGetter("ngfFixOrientation",r,u)&&f.isExifSupported()?o(v,r,u).then(function(){it()}):it())}))},f}]);ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(n,t,i,r){function f(n){var t=n.match(/Android[^\d]*(\d+)\.(\d+)/),i;return t&&t.length>2?(i=r.defaults.androidFixMinorVersion||4,parseInt(t[1])<4||parseInt(t[1])===i&&parseInt(t[2])<i):n.indexOf("Chrome")===-1&&/.*Windows.*Safari.*/.test(n)}function e(n,t,i,r,e,o,s,h){function v(){return t[0].tagName.toLowerCase()==="input"&&i.type&&i.type.toLowerCase()==="file"}function b(){return l("ngfChange")||l("ngfSelect")}function y(t){var u,f,e;if(h.shouldUpdateOn("change",i,n)){if(u=t.__files_||t.target&&t.target.files,f=[],!u)return;for(e=0;e<u.length;e++)f.push(u[e]);h.updateModel(r,i,n,b(),f.length?f:null,t)}}function g(n,r){function e(t){n.attr("id","ngf-"+t);r.attr("id","ngf-label-"+t)}for(var u,f=0;f<t[0].attributes.length;f++)u=t[0].attributes[f],u.name!=="type"&&u.name!=="class"&&u.name!=="style"&&(u.name==="id"?(e(u.value),a.push(i.$observe("id",e))):n.attr(u.name,!u.value&&(u.name==="required"||u.name==="multiple")?u.name:u.value))}function nt(){if(v())return t;var i=angular.element('<input type="file">'),n=angular.element("<label>upload<\/label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),g(i,n),u.push({el:t,ref:n}),document.body.appendChild(n.append(i)[0]),i}function tt(i){if(t.attr("disabled"))return!1;if(!l("ngfSelectDisabled",n)){var r=it(i),e=r!==!0&&r!=null;if(e)return r;k(i);try{v()||document.body.contains(c[0])||(u.push({el:t,ref:c.parent()}),document.body.appendChild(c.parent()[0]),c.bind("change",y))}catch(o){}return f(navigator.userAgent)?setTimeout(function(){c[0].click()},0):c[0].click(),!1}}function it(n){var t=n.changedTouches||n.originalEvent&&n.originalEvent.changedTouches,i,r;if(t)return n.type==="touchstart"?(w=t[0].clientX,p=t[0].clientY,!0):n.type==="touchend"&&(i=t[0].clientX,r=t[0].clientY,Math.abs(i-w)>20||Math.abs(r-p)>20)?(n.stopPropagation(),n.preventDefault(),!1):!0}function k(t){h.shouldUpdateOn("click",i,n)&&c.val()&&(c.val(null),h.updateModel(r,i,n,b(),null,t,!0))}function d(n){if(c&&!c.attr("__ngf_ie10_Fix_")){if(!c[0].parentNode){c=null;return}n.preventDefault();n.stopPropagation();c.unbind("click");var t=c.clone();return c.replaceWith(t),c=t,c.attr("__ngf_ie10_Fix_","true"),c.bind("change",y),c.bind("click",d),c[0].click(),!1}c.removeAttr("__ngf_ie10_Fix_")}var l=function(n,t){return h.attrGetter(n,i,t)},a,p,w,c;h.registerModelChangeValidator(r,i,n);a=[];l("ngfMultiple")&&a.push(n.$watch(l("ngfMultiple"),function(){c.attr("multiple",l("ngfMultiple",n))}));l("ngfCapture")&&a.push(n.$watch(l("ngfCapture"),function(){c.attr("capture",l("ngfCapture",n))}));l("ngfAccept")&&a.push(n.$watch(l("ngfAccept"),function(){c.attr("accept",l("ngfAccept",n))}));a.push(i.$observe("accept",function(){c.attr("accept",l("accept"))}));p=0;w=0;c=t;v()||(c=nt());c.bind("change",y);v()?t.bind("click",k):t.bind("click touchstart touchend",tt);navigator.appVersion.indexOf("MSIE 10")!==-1&&c.bind("click",d);r&&r.$formatters.push(function(n){return(n==null||n.length===0)&&c.val()&&c.val(null),n});n.$on("$destroy",function(){v()||c.parent().remove();angular.forEach(a,function(n){n()})});o(function(){for(var t,n=0;n<u.length;n++)t=u[n],document.body.contains(t.el[0])||(u.splice(n,1),t.ref.remove())});window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,c,y)}var u=[];return{restrict:"AEC",require:"?ngModel",link:function(u,f,o,s){e(u,f,o,s,n,t,i,r)}}}]),function(){function t(n){return n.tagName.toLowerCase()==="img"?"image":n.tagName.toLowerCase()==="audio"?"audio":n.tagName.toLowerCase()==="video"?"video":/./}function n(n,i,r,u,f,e,o,s){function h(t){var e=n.attrGetter("ngfNoObjectUrl",f,r);n.dataUrl(t,e)["finally"](function(){i(function(){var n=(e?t.$ngfDataUrl:t.$ngfBlobUrl)||t.$ngfDataUrl;s?u.css("background-image","url('"+(n||"")+"')"):u.attr("src",n);n?u.removeClass("ng-hide"):u.addClass("ng-hide")})})}i(function(){var i=r.$watch(f[e],function(i){var c=o,l;if(e==="ngfThumbnail"&&(c||(c={width:u[0].naturalWidth||u[0].clientWidth,height:u[0].naturalHeight||u[0].clientHeight}),c.width===0&&window.getComputedStyle&&(l=getComputedStyle(u[0]),l.width&&l.width.indexOf("px")>-1&&l.height&&l.height.indexOf("px")>-1&&(c={width:parseInt(l.width.slice(0,-2)),height:parseInt(l.height.slice(0,-2))}))),angular.isString(i))return u.removeClass("ng-hide"),s?u.css("background-image","url('"+i+"')"):u.attr("src",i);i&&i.type&&i.type.search(t(u[0]))===0&&(!s||i.type.indexOf("image")===0)?c&&n.isResizeSupported()?(c.resizeIf=function(t,u){return n.attrGetter("ngfResizeIf",f,r,{$width:t,$height:u,$file:i})},n.resize(i,c).then(function(n){h(n)},function(n){throw n;})):h(i):u.addClass("ng-hide")});r.$on("$destroy",function(){i()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(n,t,i){var r=n;return r.base64DataUrl=function(n){if(angular.isArray(n)){var t=i.defer(),u=0;return angular.forEach(n,function(i){r.dataUrl(i,!0)["finally"](function(){if(u++,u===n.length){var i=[];angular.forEach(n,function(n){i.push(n.$ngfDataUrl)});t.resolve(i,n)}})}),t.promise}return r.dataUrl(n,!0)},r.dataUrl=function(n,u){var e,f;return n?u&&n.$ngfDataUrl!=null||!u&&n.$ngfBlobUrl!=null?r.emptyPromise(u?n.$ngfDataUrl:n.$ngfBlobUrl,n):(e=u?n.$$ngfDataUrlPromise:n.$$ngfBlobUrlPromise,e)?e:(f=i.defer(),t(function(){var i,e,o;if(window.FileReader&&n&&(!window.FileAPI||navigator.userAgent.indexOf("MSIE 8")===-1||n.size<2e4)&&(!window.FileAPI||navigator.userAgent.indexOf("MSIE 9")===-1||n.size<4e6))if(i=window.URL||window.webkitURL,i&&i.createObjectURL&&!u){try{e=i.createObjectURL(n)}catch(s){t(function(){n.$ngfBlobUrl="";f.reject()});return}t(function(){var u,o,t;if(n.$ngfBlobUrl=e,e)for(f.resolve(e,n),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:e,size:n.size}),r.blobUrlsTotalSize+=n.size||0,u=r.defaults.blobUrlsMaxMemory||268435456,o=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>u||r.blobUrls.length>o)&&r.blobUrls.length>1;)t=r.blobUrls.splice(0,1)[0],i.revokeObjectURL(t.url),r.blobUrlsTotalSize-=t.size})}else o=new FileReader,o.onload=function(i){t(function(){n.$ngfDataUrl=i.target.result;f.resolve(i.target.result,n);t(function(){delete n.$ngfDataUrl},1e3)})},o.onerror=function(){t(function(){n.$ngfDataUrl="";f.reject()})},o.readAsDataURL(n);else t(function(){n[u?"$ngfDataUrl":"$ngfBlobUrl"]="";f.reject()})}),e=u?n.$$ngfDataUrlPromise=f.promise:n.$$ngfBlobUrlPromise=f.promise,e["finally"](function(){delete n[u?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),e):r.emptyPromise(n,n)},r}]);ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfSrc",t.attrGetter("ngfResize",f,r),!1)}}}]);ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfBackground",t.attrGetter("ngfResize",f,r),!0)}}}]);ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){var e=t.attrGetter("ngfSize",f,r);n(t,i,r,u,f,"ngfThumbnail",e,t.attrGetter("ngfAsBackground",f,r))}}}]);ngFileUpload.config(["$compileProvider",function(n){n.imgSrcSanitizationWhitelist&&n.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/);n.aHrefSanitizationWhitelist&&n.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]);ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(n,t){return function(i,r,u){if(angular.isString(i))return t.trustAsResourceUrl(i);var f=i&&((r?i.$ngfDataUrl:i.$ngfBlobUrl)||i.$ngfDataUrl);return i&&!f?(!i.$ngfDataUrlFilterInProgress&&angular.isObject(i)&&(i.$ngfDataUrlFilterInProgress=!0,n.dataUrl(i,r)),""):(i&&delete i.$ngfDataUrlFilterInProgress,(i&&f?u?t.trustAsResourceUrl(f):f:i)||"")}}])}();ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(n,t,i){function u(n){var t="",f=[],i,r,e;if(n.length>2&&n[0]==="/"&&n[n.length-1]==="/")t=n.substring(1,n.length-1);else if(i=n.split(","),i.length>1)for(r=0;r<i.length;r++)e=u(i[r]),e.regexp?(t+="("+e.regexp+")",r<i.length-1&&(t+="|")):f=f.concat(e.excludes);else n.indexOf("!")===0?f.push("^((?!"+u(n.substring(1)).regexp+").)*$"):(n.indexOf(".")===0&&(n="*"+n),t="^"+n.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."));return{regexp:t,excludes:f}}function f(n,t){t==null||n.$dirty||(n.$setDirty?n.$setDirty():n.$dirty=!0)}var r=n;return r.validatePattern=function(n,t){var i,r,f,e,o;if(!t)return!0;for(i=u(t),r=!0,i.regexp&&i.regexp.length&&(f=new RegExp(i.regexp,"i"),r=n.type!=null&&f.test(n.type)||n.name!=null&&f.test(n.name)),e=i.excludes.length;e--;)o=new RegExp(i.excludes[e],"i"),r=r&&(n.type==null||o.test(n.type))&&(n.name==null||o.test(n.name));return r},r.ratioToFloat=function(n){var t=n.toString(),i=t.search(/[x:]/i);return i>-1?parseFloat(t.substring(0,i))/parseFloat(t.substring(i+1)):parseFloat(t)},r.registerModelChangeValidator=function(n,t,i){n&&n.$formatters.push(function(u){if(n.$dirty){var f=u;u&&!angular.isArray(u)&&(f=[u]);r.validate(f,0,n,t,i).then(function(){r.applyModelValidation(n,f)})}return u})},r.applyModelValidation=function(n,t){f(n,t);angular.forEach(n.$ngfValidations,function(t){n.$setValidity(t.name,t.valid)})},r.getValidationAttr=function(n,t,i,u,f){var s="ngf"+i[0].toUpperCase()+i.substr(1),e=r.attrGetter(s,n,t,{$file:f}),o;return e==null&&(e=r.attrGetter("ngfValidate",n,t,{$file:f}),e&&(o=(u||i).split("."),e=e[o[0]],o.length>1&&(e=e&&e[o[1]]))),e},r.validate=function(n,i,u,f,e){function c(t,i,o){var c,a,s,v;if(n){for(c=n.length,a=null;c--;)s=n[c],s&&(v=r.getValidationAttr(f,e,t,i,s),v!=null&&(o(s,v,c)||(p.indexOf(t)===-1?(s.$error=t,(s.$errorMessages=s.$errorMessages||{})[t]=!0,s.$errorParam=v,h.indexOf(s)===-1&&h.push(s),l||n.splice(c,1),a=!1):n.splice(c,1))));a!==null&&u.$ngfValidations.push({name:t,valid:a})}}function s(i,o,s,c,v){function y(t,r,u){function f(f){var e,o;f()?p.indexOf(i)===-1?(r.$error=i,(r.$errorMessages=r.$errorMessages||{})[i]=!0,r.$errorParam=u,h.indexOf(r)===-1&&h.push(r),l||(e=n.indexOf(r),e>-1&&n.splice(e,1)),t.resolve(!1)):(o=n.indexOf(r),o>-1&&n.splice(o,1),t.resolve(!0)):t.resolve(!0)}u!=null?c(r,u).then(function(n){f(function(){return!v(n,u)})},function(){f(function(){return a("ngfValidateForce",{$file:r})})}):t.resolve(!0)}var b=[r.emptyPromise(!0)],w;return n&&(n=n.length===undefined?[n]:n,angular.forEach(n,function(n){var u=t.defer();if(b.push(u.promise),s&&(n.type==null||n.type.search(s)!==0)){u.resolve(!0);return}i==="dimensions"&&r.attrGetter("ngfDimensions",f)!=null?r.imageDimensions(n).then(function(t){y(u,n,a("ngfDimensions",{$file:n,$width:t.width,$height:t.height}))},function(){u.resolve(!1)}):i==="duration"&&r.attrGetter("ngfDuration",f)!=null?r.mediaDuration(n).then(function(t){y(u,n,a("ngfDuration",{$file:n,$duration:t}))},function(){u.resolve(!1)}):y(u,n,r.getValidationAttr(f,e,i,o,n))})),w=t.defer(),t.all(b).then(function(n){for(var t=!0,r=0;r<n.length;r++)if(!n[r]){t=!1;break}u.$ngfValidations.push({name:i,valid:t});w.resolve(t)}),w.promise}var h,v,y,o;u=u||{};u.$ngfValidations=u.$ngfValidations||[];angular.forEach(u.$ngfValidations,function(n){n.valid=!0});var a=function(n,t){return r.attrGetter(n,f,e,t)},p=(r.attrGetter("ngfIgnoreInvalid",f,e)||"").split(" "),l=r.attrGetter("ngfRunAllValidations",f,e);return n==null||n.length===0?r.emptyPromise({validFiles:n,invalidFiles:[]}):(n=n.length===undefined?[n]:n.slice(0),h=[],c("pattern",null,r.validatePattern),c("minSize","size.min",function(n,t){return n.size+.1>=r.translateScalars(t)}),c("maxSize","size.max",function(n,t){return n.size-.1<=r.translateScalars(t)}),v=0,c("maxTotalSize",null,function(t,i){return(v+=t.size,v>r.translateScalars(i))?(n.splice(0,n.length),!1):!0}),c("validateFn",null,function(n,t){return t===!0||t===null||t===""}),!n.length)?r.emptyPromise({validFiles:[],invalidFiles:h}):(y=t.defer(),o=[],o.push(s("maxHeight","height.max",/image/,this.imageDimensions,function(n,t){return n.height<=t})),o.push(s("minHeight","height.min",/image/,this.imageDimensions,function(n,t){return n.height>=t})),o.push(s("maxWidth","width.max",/image/,this.imageDimensions,function(n,t){return n.width<=t})),o.push(s("minWidth","width.min",/image/,this.imageDimensions,function(n,t){return n.width>=t})),o.push(s("dimensions",null,/image/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("ratio",null,/image/,this.imageDimensions,function(n,t){for(var u=t.toString().split(","),f=!1,i=0;i<u.length;i++)Math.abs(n.width/n.height-r.ratioToFloat(u[i]))<.01&&(f=!0);return f})),o.push(s("maxRatio","ratio.max",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)<.0001})),o.push(s("minRatio","ratio.min",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)>-.0001})),o.push(s("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(n,t){return n<=r.translateScalars(t)})),o.push(s("minDuration","duration.min",/audio|video/,this.mediaDuration,function(n,t){return n>=r.translateScalars(t)})),o.push(s("duration",null,/audio|video/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("validateAsyncFn",null,null,function(n,t){return t},function(n){return n===!0||n===null||n===""})),t.all(o).then(function(){var t,r;if(l)for(t=0;t<n.length;t++)r=n[t],r.$error&&n.splice(t--,1);l=!1;c("maxFiles",null,function(n,t,r){return i+r<t});y.resolve({validFiles:n,invalidFiles:h})}),y.promise)},r.imageDimensions=function(n){var f,u;return n.$ngfWidth&&n.$ngfHeight?(f=t.defer(),i(function(){f.resolve({width:n.$ngfWidth,height:n.$ngfHeight})}),f.promise):n.$ngfDimensionPromise?n.$ngfDimensionPromise:(u=t.defer(),i(function(){if(n.type.indexOf("image")!==0){u.reject("not image");return}r.dataUrl(n).then(function(t){function f(){var t=r[0].naturalWidth||r[0].clientWidth,i=r[0].naturalHeight||r[0].clientHeight;r.remove();n.$ngfWidth=t;n.$ngfHeight=i;u.resolve({width:t,height:i})}function e(){r.remove();u.reject("load error")}function s(){i(function(){r[0].parentNode&&(r[0].clientWidth?f():o++>10?e():s())},1e3)}var r=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important"),o;r.on("load",f);r.on("error",e);o=0;s();angular.element(document.getElementsByTagName("body")[0]).append(r)},function(){u.reject("load error")})}),n.$ngfDimensionPromise=u.promise,n.$ngfDimensionPromise["finally"](function(){delete n.$ngfDimensionPromise}),n.$ngfDimensionPromise)},r.mediaDuration=function(n){var f,u;return n.$ngfDuration?(f=t.defer(),i(function(){f.resolve(n.$ngfDuration)}),f.promise):n.$ngfDurationPromise?n.$ngfDurationPromise:(u=t.defer(),i(function(){if(n.type.indexOf("audio")!==0&&n.type.indexOf("video")!==0){u.reject("not media");return}r.dataUrl(n).then(function(t){function f(){var t=r[0].duration;n.$ngfDuration=t;r.remove();u.resolve(t)}function e(){r.remove();u.reject("load error")}function s(){i(function(){r[0].parentNode&&(r[0].duration?f():o>10?e():s())},1e3)}var r=angular.element(n.type.indexOf("audio")===0?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed"),o;r.on("loadedmetadata",f);r.on("error",e);o=0;s();angular.element(document.body).append(r)},function(){u.reject("load error")})}),n.$ngfDurationPromise=u.promise,n.$ngfDurationPromise["finally"](function(){delete n.$ngfDurationPromise}),n.$ngfDurationPromise)},r}]);ngFileUpload.service("UploadResize",["UploadValidate","$q",function(n,t){var i=n,r=function(n,t,i,r,u){var f=u?Math.max(i/n,r/t):Math.min(i/n,r/t);return{width:n*f,height:t*f,marginX:n*f-i,marginY:t*f-r}},u=function(n,u,f,e,o,s,h,c){var a=t.defer(),v=document.createElement("canvas"),l=document.createElement("img");return l.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(l),l.onload=function(){var t=l.width,y=l.height,p,w,n,b;if(l.parentNode.removeChild(l),c!=null&&c(t,y)===!1){a.reject("resizeIf");return}try{s&&(p=i.ratioToFloat(s),w=t/y,w<p?(u=t,f=u/p):(f=y,u=f*p));u||(u=t);f||(f=y);n=r(t,y,u,f,h);v.width=Math.min(n.width,u);v.height=Math.min(n.height,f);b=v.getContext("2d");b.drawImage(l,Math.min(0,-n.marginX/2),Math.min(0,-n.marginY/2),n.width,n.height);a.resolve(v.toDataURL(o||"image/WebP",e||.934))}catch(k){a.reject(k)}},l.onerror=function(){l.parentNode.removeChild(l);a.reject()},l.src=n,a.promise};return i.dataUrltoBlob=function(n,t,i){for(var f=n.split(","),s=f[0].match(/:(.*?);/)[1],e=atob(f[1]),r=e.length,o=new Uint8Array(r),u;r--;)o[r]=e.charCodeAt(r);return u=new window.Blob([o],{type:s}),u.name=t,u.$ngfOrigSize=i,u},i.isResizeSupported=function(){var n=document.createElement("canvas");return window.atob&&n.getContext&&n.getContext("2d")&&window.Blob},i.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(n){this.$ngfName=n},configurable:!0}),i.resize=function(n,r){if(n.type.indexOf("image")!==0)return i.emptyPromise(n);var f=t.defer();return i.dataUrl(n,!0).then(function(t){u(t,r.width,r.height,r.quality,r.type||n.type,r.ratio,r.centerCrop,r.resizeIf).then(function(u){if(n.type==="image/jpeg"&&r.restoreExif!==!1)try{u=i.restoreExif(t,u)}catch(e){setTimeout(function(){throw e;},1)}try{var o=i.dataUrltoBlob(u,n.name,n.size);f.resolve(o)}catch(e){f.reject(e)}},function(t){t==="resizeIf"&&f.resolve(n);f.reject(t)})},function(n){f.reject(n)}),f.promise},i}]),function(){function t(t,i,r,u,f,e,o,s,h,c){function v(){return i.attr("disabled")||l("ngfDropDisabled",t)}function k(n,i,r){if(n){var u;try{u=n&&n.getData&&n.getData("text/html")}catch(f){}tt(n.items,n.files,l("ngfAllowDir",t)!==!1,l("multiple")||l("ngfMultiple",t)).then(function(n){n.length?d(n,i):g(r,u).then(function(n){d(n,i)})})}}function d(n,i){s.updateModel(u,r,t,l("ngfChange")||l("ngfDrop"),n,i)}function g(n,i){var u,e,o,f;return!s.shouldUpdateOn(n,r,t)||typeof i!="string"?s.rejectPromise([]):(u=[],i.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(n,t,i){u.push(i)}),e=[],o=[],u.length)?(angular.forEach(u,function(n){e.push(s.urlToBlob(n).then(function(n){o.push(n)}))}),f=c.defer(),c.all(e).then(function(){f.resolve(o)},function(n){f.reject(n)}),f.promise):s.emptyPromise()}function nt(n,t,i,r){var u=l("ngfDragOverClass",n,{$event:i}),f="dragover",e,h,o;if(angular.isString(u))f=u;else if(u&&(u.delay&&(b=u.delay),u.accept||u.reject))if(e=i.dataTransfer.items,e!=null&&e.length)for(h=u.pattern||l("ngfPattern",n,{$event:i}),o=e.length;o--;)if(s.validatePattern(e[o],h))f=u.accept;else{f=u.reject;break}else f=u.accept;r(f)}function tt(n,i,u,f){function tt(n,t){var i=c.defer(),u,r;if(n!=null)if(n.isDirectory){u=[s.emptyPromise()];g&&(r={type:"directory"},r.name=r.path=(t||"")+n.name,e.push(r));var h=n.createReader(),f=[],o=function(){h.readEntries(function(r){try{r.length?(f=f.concat(Array.prototype.slice.call(r||[],0)),o()):(angular.forEach(f.slice(0),function(i){e.length<=y&&v<=a&&u.push(tt(i,(t?t:"")+n.name+"/"))}),c.all(u).then(function(){i.resolve()},function(n){i.reject(n)}))}catch(s){i.reject(s)}},function(n){i.reject(n)})};o()}else n.file(function(n){try{n.path=(t?t:"")+n.name;g&&(n=s.rename(n,n.path));e.push(n);v+=n.size;i.resolve()}catch(r){i.reject(r)}},function(n){i.reject(n)});return i.promise}var y=s.getValidationAttr(r,t,"maxFiles"),a,nt,h,b,k,d,p,w;y==null&&(y=Number.MAX_VALUE);a=s.getValidationAttr(r,t,"maxTotalSize");a==null&&(a=Number.MAX_VALUE);var g=l("ngfIncludeDir",t),e=[],v=0;if(nt=[s.emptyPromise()],n&&n.length>0&&o.location.protocol!=="file:")for(h=0;h<n.length;h++){if(n[h].webkitGetAsEntry&&n[h].webkitGetAsEntry()&&n[h].webkitGetAsEntry().isDirectory){if(b=n[h].webkitGetAsEntry(),b.isDirectory&&!u)continue;b!=null&&nt.push(tt(b))}else k=n[h].getAsFile(),k!=null&&(e.push(k),v+=k.size);if(e.length>y||v>a||!f&&e.length>0)break}else if(i!=null)for(d=0;d<i.length;d++)if(p=i.item(d),(p.type||p.size>0)&&(e.push(p),v+=p.size),e.length>y||v>a||!f&&e.length>0)break;return w=c.defer(),c.all(nt).then(function(){if(f||g||!e.length)w.resolve(e);else{for(var n=0;e[n]&&e[n].type==="directory";)n++;w.resolve([e[n]])}},function(n){w.reject(n)}),w.promise}var p=n(),l=function(n,t,i){return s.attrGetter(n,r,t,i)};if(l("dropAvailable")&&e(function(){t[l("dropAvailable")]?t[l("dropAvailable")].value=p:t[l("dropAvailable")]=p}),!p){l("ngfHideOnDropNotAvailable",t)===!0&&i.css("display","none");return}l("ngfSelect")==null&&s.registerModelChangeValidator(u,r,t);var w=null,y=f(l("ngfStopPropagation")),b=1,a;if(i[0].addEventListener("dragover",function(n){if(!v()&&s.shouldUpdateOn("drop",r,t)){if(n.preventDefault(),y(t)&&n.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var u=n.dataTransfer.effectAllowed;n.dataTransfer.dropEffect="move"===u||"linkMove"===u?"move":"copy"}e.cancel(w);a||(a="C",nt(t,r,n,function(r){a=r;i.addClass(a);l("ngfDrag",t,{$isDragging:!0,$class:a,$event:n})}))}},!1),i[0].addEventListener("dragenter",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation())},!1),i[0].addEventListener("dragleave",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),w=e(function(){a&&i.removeClass(a);a=null;l("ngfDrag",t,{$isDragging:!1,$event:n})},b||100))},!1),i[0].addEventListener("drop",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),a&&i.removeClass(a),a=null,k(n.dataTransfer,n,"dropUrl"))},!1),i[0].addEventListener("paste",function(n){(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)&&n.preventDefault(),!v()&&s.shouldUpdateOn("paste",r,t))&&k(n.clipboardData||n.originalEvent.clipboardData,n,"pasteUrl")},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)){i.attr("contenteditable",!0);i.on("keypress",function(n){n.metaKey||n.ctrlKey||n.preventDefault()})}}function n(){var n=document.createElement("div");return"draggable"in n&&"ondrop"in n&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(n,i,r,u,f,e){return{restrict:"AEC",require:"?ngModel",link:function(o,s,h,c){t(o,s,h,c,n,i,r,u,f,e)}}}]);ngFileUpload.directive("ngfNoFileDrop",function(){return function(t,i){n()&&i.css("display","none")}});ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(t,i,r){return function(u,f,e){if(n()){var o=t(r.attrGetter("ngfDropAvailable",e));i(function(){o(u);o.assign&&o.assign(u,!0)})}}}])}();ngFileUpload.service("UploadExif",["UploadResize","$q",function(n,t){function r(n,t,i,r){switch(t){case 2:return n.transform(-1,0,0,1,i,0);case 3:return n.transform(-1,0,0,-1,i,r);case 4:return n.transform(1,0,0,-1,0,r);case 5:return n.transform(0,1,1,0,0,0);case 6:return n.transform(0,1,-1,0,r,0);case 7:return n.transform(0,-1,-1,0,r,i);case 8:return n.transform(0,-1,1,0,0,i)}}function u(n){for(var i="",r=new Uint8Array(n),u=r.byteLength,t=0;t<u;t++)i+=String.fromCharCode(r[t]);return window.btoa(i)}var i=n;return i.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&i.isResizeSupported()},i.readOrientation=function(n){var i=t.defer(),r=new FileReader,u=n.slice?n.slice(0,65536):n;return r.readAsArrayBuffer(u),r.onerror=function(n){return i.reject(n)},r.onload=function(n){var u={orientation:1},r=new DataView(this.result),h,t,s,f,c,e,o;if(r.getUint16(0,!1)!==65496)return i.resolve(u);for(h=r.byteLength,t=2;t<h;)if(s=r.getUint16(t,!1),t+=2,s===65505){if(r.getUint32(t+=2,!1)!==1165519206)return i.resolve(u);for(f=r.getUint16(t+=6,!1)===18761,t+=r.getUint32(t+4,f),c=r.getUint16(t,f),t+=2,e=0;e<c;e++)if(r.getUint16(t+e*12,f)===274)return o=r.getUint16(t+e*12+8,f),o>=2&&o<=8&&(r.setUint16(t+e*12+8,1,f),u.fixedArrayBuffer=n.target.result),u.orientation=o,i.resolve(u)}else if((s&65280)!=65280)break;else t+=r.getUint16(t,!1);return i.resolve(u)},i.promise},i.applyExifRotation=function(n){if(n.type.indexOf("image/jpeg")!==0)return i.emptyPromise(n);var f=t.defer();return i.readOrientation(n).then(function(t){if(t.orientation<2||t.orientation>8)return f.resolve(n);i.dataUrl(n,!0).then(function(e){var s=document.createElement("canvas"),o=document.createElement("img");o.onload=function(){var h,e,c;try{s.width=t.orientation>4?o.height:o.width;s.height=t.orientation>4?o.width:o.height;h=s.getContext("2d");r(h,t.orientation,o.width,o.height);h.drawImage(o,0,0);e=s.toDataURL(n.type||"image/WebP",.934);e=i.restoreExif(u(t.fixedArrayBuffer),e);c=i.dataUrltoBlob(e,n.name);f.resolve(c)}catch(l){return f.reject(l)}};o.onerror=function(){f.reject()};o.src=e},function(n){f.reject(n)})},function(n){f.reject(n)}),f.promise},i.restoreExif=function(n,t){var i={};return i.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i.encode64=function(n){var o="",u,t,i="",s,h,f,r="",e=0;do u=n[e++],t=n[e++],i=n[e++],s=u>>2,h=(u&3)<<4|t>>4,f=(t&15)<<2|i>>6,r=i&63,isNaN(t)?f=r=64:isNaN(i)&&(r=64),o=o+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(h)+this.KEY_STR.charAt(f)+this.KEY_STR.charAt(r),u=t=i="",s=h=f=r="";while(e<n.length);return o},i.restore=function(n,t){n.match("data:image/jpeg;base64,")&&(n=n.replace("data:image/jpeg;base64,",""));var i=this.decode64(n),r=this.slice2Segments(i),u=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(u)},i.exifManipulation=function(n,t){var i=this.getExifArray(t),r=this.insertExif(n,i);return new Uint8Array(r)},i.getExifArray=function(n){for(var t,i=0;i<n.length;i++)if(t=n[i],t[0]===255&t[1]===225)return t;return[]},i.insertExif=function(n,t){var f=n.replace("data:image/jpeg;base64,",""),i=this.decode64(f),u=i.indexOf(255,3),e=i.slice(0,u),o=i.slice(u),r=e;return r=r.concat(t),r.concat(o)},i.slice2Segments=function(n){for(var t=0,i=[];;){if(n[t]===255&n[t+1]===218)break;if(n[t]===255&n[t+1]===216)t+=2;else{var u=n[t+2]*256+n[t+3],r=t+u+2,f=n.slice(t,r);i.push(f);t=r}if(t>n.length)break}return i},i.decode64=function(n){var e,o,s="",h,r,t,u="",i=0,f=[];/[^A-Za-z0-9\+\/\=]/g.exec(n)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding.");n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");do h=this.KEY_STR.indexOf(n.charAt(i++)),r=this.KEY_STR.indexOf(n.charAt(i++)),t=this.KEY_STR.indexOf(n.charAt(i++)),u=this.KEY_STR.indexOf(n.charAt(i++)),e=h<<2|r>>4,o=(r&15)<<4|t>>2,s=(t&3)<<6|u,f.push(e),t!==64&&f.push(o),u!==64&&f.push(s),e=o=s="",h=r=t=u="";while(i<n.length);return f},i.restore(n,t)},i}]),function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var i=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}};t("open",function(n){return function(t,r,u){i(this);this.__url=r;try{n.apply(this,[t,r,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}});t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):n==null?null:n.apply(this,[t])}});t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():n==null?null:n.apply(this)}});t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():n==null?null:n.apply(this)}});t("setRequestHeader",function(n){return function(t,r){if(t==="__setXHR_"){i(this);var u=r(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,n.apply(this,arguments)}});t("send",function(t){return function(){var i=this,e,u,f,r;if(arguments[0]&&arguments[0].__isFileAPIShim){for(e=arguments[0],u={url:i.__url,jsonp:!1,cache:!0,complete:function(t,r){t&&angular.isString(t)&&t.indexOf("#2174")!==-1&&(t=null);i.__completed=!0;!t&&i.__listeners.load&&i.__listeners.load({type:"load",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});!t&&i.__listeners.loadend&&i.__listeners.loadend({type:"loadend",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});t==="abort"&&i.__listeners.abort&&i.__listeners.abort({type:"abort",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});r.status!==undefined&&n(i,"status",function(){return r.status===0&&t&&t!=="abort"?500:r.status});r.statusText!==undefined&&n(i,"statusText",function(){return r.statusText});n(i,"readyState",function(){return 4});r.response!==undefined&&n(i,"response",function(){return r.response});var u=r.responseText||(t&&r.status===0&&t!=="abort"?t:undefined);n(i,"responseText",function(){return u});n(i,"response",function(){return u});t&&n(i,"err",function(){return t});i.__fileApiXHR=r;i.onreadystatechange&&i.onreadystatechange();i.onload&&i.onload()},progress:function(n){if(n.target=i,i.__listeners.progress&&i.__listeners.progress(n),i.__total=n.total,i.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){i.__completed||(i.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:i.__requestHeaders},u.data={},u.files={},f=0;f<e.data.length;f++)r=e.data[f],r.val!=null&&r.val.name!=null&&r.val.size!=null&&r.val.type!=null?u.files[r.key]=r.val:u.data[r.key]=r.val;setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';i.__fileApiXHR=FileAPI.upload(u)},1)}else{if(this.__origError)throw this.__origError;t.apply(i,arguments)}}});window.XMLHttpRequest.__isFileAPIShim=!0;window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}};window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}}}}(),function(){function h(n){return n[0].tagName.toLowerCase()==="input"&&n.attr("type")&&n.attr("type").toLowerCase()==="file"}function u(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(navigator.mimeTypes["application/x-shockwave-flash"]!==undefined)return!0}return!1}function f(n){var t=0,i=0;if(window.jQuery)return jQuery(n).offset();if(n.offsetParent)do t+=n.offsetLeft-n.scrollLeft,i+=n.offsetTop-n.scrollTop,n=n.offsetParent;while(n);return{left:t,top:i}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=u(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var e,n,o=document.createElement("script"),s=document.getElementsByTagName("script"),t,i,r;if(window.FileAPI.jsUrl)e=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<s.length;t++)if(r=s[t].src,i=r.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),i>-1){n=r.substring(0,i+1);break}FileAPI.staticPath==null&&(FileAPI.staticPath=n);o.setAttribute("src",e||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(o)}FileAPI.ngfFixIE=function(n,t,i){var r,e;if(!u())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r=function(){var r=t.parent();n.attr("disabled")?r&&r.removeClass("js-fileapi-wrapper"):(t.attr("__ngf_flash_")||(t.unbind("change"),t.unbind("click"),t.bind("change",function(n){e.apply(this,[n]);i.apply(this,[n])}),t.attr("__ngf_flash_","true")),r.addClass("js-fileapi-wrapper"),h(n)||(r.css("position","absolute").css("top",f(n[0]).top+"px").css("left",f(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),t.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};n.bind("mouseenter",r);e=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)t[i].size===undefined&&(t[i].size=0),t[i].name===undefined&&(t[i].name="file"),t[i].type===undefined&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!==t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}};FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")}}}();window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return i.result!=null&&(r.target.result=i.result),r};i=function(i){if(!r&&(r=!0,n.onloadstart))n.onloadstart(t("loadstart",i));var u;if(i.type==="load"){if(n.onloadend)n.onloadend(t("loadend",i));if(u=t("load",i),n.onload)n.onload(u);n.dispatchEvent(u)}else if(i.type==="progress"){if(u=t("progress",i),n.onprogress)n.onprogress(u);n.dispatchEvent(u)}else{if(u=t("error",i),n.onerror)n.onerror(u);n.dispatchEvent(u)}};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}});!function(n,t){"function"==typeof define&&define.amd?define([],function(){return n.svg4everybody=t()}):"object"==typeof module&&module.exports?module.exports=t():n.svg4everybody=t()}(this,function(){function n(n,t,i){var r,u,f;if(i){for(r=document.createDocumentFragment(),u=!t.hasAttribute("viewBox")&&i.getAttribute("viewBox"),u&&t.setAttribute("viewBox",u),f=i.cloneNode(!0);f.childNodes.length;)r.appendChild(f.firstChild);n.appendChild(r)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var i=t._cachedDocument;i||(i=t._cachedDocument=document.implementation.createHTMLDocument(""),i.body.innerHTML=t.responseText,t._cachedTarget={});t._embeds.splice(0).map(function(r){var u=t._cachedTarget[r.id];u||(u=t._cachedTarget[r.id]=i.getElementById(r.id));n(r.parent,r.svg,u)})}};t.onreadystatechange()}function i(i){function o(){for(var i,a=0;a<f.length;){var c=f[a],y=c.parentNode,p=r(y),v=c.getAttribute("xlink:href")||c.getAttribute("href");if(!v&&u.attributeName&&(v=c.getAttribute(u.attributeName)),p&&v){if(e)if(!u.validate||u.validate(v,p,c)){y.removeChild(c);var b=v.split("#"),w=b.shift(),k=b.join("#");w.length?(i=s[w],i||(i=s[w]=new XMLHttpRequest,i.open("GET",w),i.send(),i._embeds=[]),i._embeds.push({parent:y,svg:p,id:k}),t(i)):n(y,p,document.getElementById(k))}else++a,++h}else++a}(!f.length||f.length-h>0)&&l(o,67)}var e,u=Object(i),c=window.top!==window.self;e="polyfill"in u?u.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&c;var s={},l=window.requestAnimationFrame||setTimeout,f=document.getElementsByTagName("use"),h=0;e&&o()}function r(n){for(var t=n;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return i}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return ef.apply(null,arguments)}function gs(n){ef=n}function tt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function ci(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function nh(n){for(var t in n)return!1;return!0}function p(n){return n===void 0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function bi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function of(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function yt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ft(n,t,i,r){return yo(n,t,i,r,!0).utc()}function th(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=th()),n._pf}function kr(n){if(n._isValid==null){var t=u(n),r=hf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function ki(n){var t=ft(NaN);return n!=null?yt(u(t),n):u(t).userInvalidated=!0,t}function dr(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),di.length>0)for(i=0;i<di.length;i++)r=di[i],f=t[r],p(f)||(n[r]=f);return n}function li(n){dr(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));gi===!1&&(gi=!0,t.updateOffset(this),gi=!1)}function pt(n){return n instanceof li||n!=null&&n._isAMomentObject!=null}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=d(t)),i}function cf(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function lf(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return yt(function(){var e,u,f,o;if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}lf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function af(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);gr[n]||(lf(i),gr[n]=!0)}function et(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ih(n){var t;for(var i in n)t=n[i],et(t)?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function vf(n,t){var r=yt({},n);for(var i in t)l(t,i)&&(ci(n[i])&&ci(t[i])?(r[i]={},yt(r[i],n[i]),yt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&ci(n[i])&&(r[i]=yt({},r[i]));return r}function nu(n){n!=null&&this.set(n)}function rh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return et(r)?r.call(t,i):r}function uh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function fh(){return this._invalidDate}function eh(n){return this._ordinal.replace("%d",n)}function oh(n,t,i,r){var u=this._relativeTime[i];return et(u)?u(n,t,i,r):u.replace(/%d/i,n)}function sh(n,t){var i=this._relativeTime[n>0?"future":"past"];return et(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function tu(n){var r={},t;for(var i in n)l(n,i)&&(t=nt(i),t&&(r[t]=n[i]));return r}function b(n,t){iu[n]=t}function hh(n){var t=[];for(var i in n)t.push({unit:i,priority:iu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function fi(n,i){return function(r){return r!=null?(te(this,n,r),t.updateOffset(this,i),this):nr(this,n)}}function nr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function te(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function ch(n){return(n=nt(n),et(this[n]))?this[n]():this}function lh(n,t){var r,i;if(typeof n=="object")for(n=tu(n),r=hh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=nt(n),et(this[n]))return this[n](t);return this}function ct(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ei[n]=u);t&&(ei[t[0]]=function(){return ct(u.apply(this,arguments),t[1],t[2])});i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ah(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function vh(n){for(var t=n.match(ie),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:ah(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=et(t[u])?t[u].call(i,n):t[u];return f}}function uu(n,t){return n.isValid()?(t=re(t,n.localeData()),ru[t]=ru[t]||vh(t),ru[t](n)):n.localeData().invalidDate()}function re(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(tr.lastIndex=0;i>=0&&tr.test(n);)n=n.replace(tr,r),tr.lastIndex=0,i-=1;return n}function i(n,t,i){ou[n]=et(t)?t:function(n){return n&&i?i:t}}function ph(n,t){return l(ou,n)?ou[n](t._strict,t._locale):new RegExp(wh(n))}function wh(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)or[n[i]]=r}function vi(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function bh(n,t,i){t!=null&&l(or,n)&&or[n](t,i._a,i,n)}function su(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function gh(n,t){return n?tt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||hu).test(t)?"format":"standalone"][n.month()]:tt(this._months)?this._months:this._months.standalone}function nc(n,t){return n?tt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[hu.test(t)?"format":"standalone"][n.month()]:tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function tc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1)?r:(r=y.call(this._longMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1)?r:(r=y.call(this._shortMonthsParse,f),r!==-1?r:null)}function ic(n,t,i){var r,u,f;if(this._monthsParseExact)return tc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function le(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),su(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ae(n){return n!=null?(le(this,n),t.updateOffset(this,!0),this):nr(this,"Month")}function rc(){return su(this.year(),this.month())}function uc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ve),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function fc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ye),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function pe(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ft([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=gt(i[n]),r[n]=gt(r[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yi(n){return we(n)?366:365}function we(n){return n%4==0&&n%100!=0||n%400==0}function ec(){return we(this.year())}function oc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function sr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function hr(n,t,i){var r=7+t-i,u=(7+sr(n,0,r).getUTCDay()-t)%7;return-u+r-1}function be(n,t,i,r,u){var s=(7+i-r)%7,h=hr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=yi(e)+f):f>yi(n)?(e=n+1,o=f-yi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function pi(n,t,i){var e=hr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=hr(n,t,i),u=hr(n+1,t,i);return(yi(n)-r+u)/7}function sc(n){return pi(n,this._week.dow,this._week.doy).week}function hc(){return this._week.dow}function cc(){return this._week.doy}function lc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function ac(n){var t=pi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function vc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function yc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function pc(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone}function wc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function bc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function kc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function dc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return kc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function gc(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=vc(n,this.localeData()),this.add(n-t,"d")):t}function nl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function tl(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=yc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function il(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function rl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ul(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function lu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=ft([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function au(){return this.hours()%12||12}function fl(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function el(n){return(n+"").toLowerCase().charAt(0)==="p"}function ol(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function so(n){return n?n.toLowerCase().replace("_","-"):n}function hl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=so(n[r]).split("-"),i=u.length,t=so(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=ho(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&cf(u,t,!0)>=i-1)break;i--}r++}return null}function ho(n){var t=null;if(!a[n]&&typeof module!="undefined"&&module&&module.exports)try{t=cr._abbr;require("./locale/"+n);oi(t)}catch(i){}return a[n]}function oi(n,t){var i;return n&&(i=p(t)?wt(n):vu(n,t),i&&(cr=i)),cr._abbr}function vu(n,t){if(t!==null){var i=oo;if(t.abbr=n,a[n]!=null)af("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else return wi[t.parentLocale]||(wi[t.parentLocale]=[]),wi[t.parentLocale].push({name:n,config:t}),null;return a[n]=new nu(vf(i,t)),wi[n]&&wi[n].forEach(function(n){vu(n.name,n.config)}),oi(n),a[n]}return delete a[n],null}function cl(n,t){if(t!=null){var i,r=oo;a[n]!=null&&(r=a[n]._config);t=vf(r,t);i=new nu(t);i.parentLocale=a[n];a[n]=i;oi(n)}else a[n]!=null&&(a[n].parentLocale!=null?a[n]=a[n].parentLocale:a[n]!=null&&delete a[n]);return a[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return cr;if(!tt(n)){if(t=ho(n),t)return t;n=[n]}return hl(n)}function ll(){return pf(a)}function yu(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[lt]<0||t[lt]>11?lt:t[ot]<1||t[ot]>su(t[it],t[lt])?ot:t[v]<0||t[v]>24||t[v]===24&&(t[rt]!==0||t[at]!==0||t[ni]!==0)?v:t[rt]<0||t[rt]>59?rt:t[at]<0||t[at]>59?at:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<it||i>ot)&&(i=ot),u(n)._overflowWeeks&&i===-1&&(i=kh),u(n)._overflowWeekday&&i===-1&&(i=dh),u(n).overflow=i),n}function co(n){var t,r,o=n._i,i=al.exec(o)||vl.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=lr.length;t<r;t++)if(lr[t][1].exec(i[1])){e=lr[t][0];s=lr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=pu.length;t<r;t++)if(pu[t][1].exec(i[3])){f=(i[2]||" ")+pu[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(yl.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");ar(n)}else n._isValid=!1}function ao(n){var f,t,e,o,s,h,c={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},i,r,l,a;if(f=n._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),t=lo.exec(f),t){if(e=t[1]?"ddd"+(t[1].length===5?", ":" "):"",o="D MMM "+(t[2].length>10?"YYYY ":"YY "),s="HH:mm"+(t[4]?":ss":""),t[1]&&(l=new Date(t[2]),a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()],t[1].substr(0,3)!==a)){u(n).weekdayMismatch=!0;n._isValid=!1;return}switch(t[5].length){case 2:r===0?i=" +0000":(r="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(t[5][1].toUpperCase())-12,i=(r<0?" -":" +")+(""+r).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:i=c[t[5]];break;default:i=c[" GMT"]}t[5]=i;n._i=t.splice(1).join("");h=" ZZ";n._f=e+o+s+h;ar(n);u(n).rfc2822=!0}else n._isValid=!1}function wl(n){var i=pl.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(co(n),n._isValid===!1)delete n._isValid;else return;if(ao(n),n._isValid===!1)delete n._isValid;else return;t.createFromInputFallback(n)}function si(n,t,i){return n!=null?n:t!=null?t:i}function bl(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function wu(n){var t,i,r=[],f,e;if(!n._d){for(f=bl(n),n._w&&n._a[ot]==null&&n._a[lt]==null&&kl(n),n._dayOfYear!=null&&(e=si(n._a[it],f[it]),(n._dayOfYear>yi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=sr(e,0,n._dayOfYear),n._a[lt]=i.getUTCMonth(),n._a[ot]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[rt]===0&&n._a[at]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?sr:oc).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24)}}function kl(n){var t,o,f,i,r,e,h,s,l;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[it],pi(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=pi(c(),r,e),o=si(t.gg,n._a[it],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=be(o,f,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}function ar(n){if(n._f===t.ISO_8601){co(n);return}if(n._f===t.RFC_2822){ao(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,c=i.length,h=0,o=re(n._f,n._locale).match(ie)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(ph(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),ei[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),bh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[v]<=12&&u(n).bigHour===!0&&n._a[v]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=dl(n._locale,n._a[v],n._meridiem);wu(n);yu(n)}function dl(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function gl(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=dr({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],ar(t),kr(t))&&(i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,(f==null||i<f)&&(f=i,e=t));yt(n,e||t)}function na(n){if(!n._d){var t=tu(n._i);n._a=of([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});wu(n)}}function ta(n){var t=new li(yu(vo(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function vo(n){var t=n._i,i=n._f;return(n._locale=n._locale||wt(n._l),t===null||i===undefined&&t==="")?ki({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),pt(t))?new li(yu(t)):(bi(t)?n._d=t:tt(i)?gl(n):i?ar(n):ia(n),kr(n)||(n._d=null),n)}function ia(n){var i=n._i;p(i)?n._d=new Date(t.now()):bi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?wl(n):tt(i)?(n._a=of(i.slice(0),function(n){return parseInt(n,10)}),wu(n)):ci(i)?na(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function yo(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(ci(n)&&nh(n)||tt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ta(f)}function c(n,t,i,r){return yo(n,t,i,r,!1)}function bo(n,t){var r,i;if(t.length===1&&tt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function ra(){var n=[].slice.call(arguments,0);return bo("isBefore",n)}function ua(){var n=[].slice.call(arguments,0);return bo("isAfter",n)}function fa(n){var i,r,t;for(i in n)if(!(hi.indexOf(i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<hi.length;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}function ea(){return this._isValid}function oa(){return st(NaN)}function vr(n){var t=tu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=fa(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=wt();this._bubble()}function bu(n){return n instanceof vr}function ku(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function go(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ct(~~(n/60),2)+t+ct(~~n%60,2)})}function du(n,t){var i=(t||"").match(n);if(i===null)return null;var e=i[i.length-1]||[],r=(e+"").match(ns)||["-",0,0],u=+(r[1]*60)+f(r[2]);return u===0?0:r[0]==="+"?u:-u}function gu(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(pt(n)||bi(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function nf(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function sa(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=du(er,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=nf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?es(this,st(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:nf(this)}function ha(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ca(n){return this.utcOffset(0,n)}function la(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(nf(this),"m")),this}function aa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=du(yh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function va(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function ya(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pa(){var n,t;return p(this._isDSTShifted)?(n={},dr(n,this),n=vo(n),n._a?(t=n._isUTC?ft(n._a):c(n._a),this._isDSTShifted=this.isValid()&&cf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function wa(){return this.isValid()?!this._isUTC:!1}function ba(){return this.isValid()?this._isUTC:!1}function ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}function st(n,t){var i=n,r=null,u,e,o;return bu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ot])*u,h:f(r[v])*u,m:f(r[rt])*u,s:f(r[at])*u,ms:f(ku(r[ni]*1e3))*u}):(r=rs.exec(n))?(u=r[1]==="-"?-1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=ka(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new vr(i),bu(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function us(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function ka(n,t){var i;return(n.isValid()&&t.isValid())?(t=gu(t,n),n.isBefore(t)?i=us(n,t):(i=us(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function fs(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(af(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=st(i,r),es(this,u,n),this}}function es(n,i,r,u){var o=i._milliseconds,f=ku(i._days),e=ku(i._months);n.isValid()&&(u=u==null?!0:u,o&&n._d.setTime(n._d.valueOf()+o*r),f&&te(n,"Date",nr(n,"Date")+f*r),e&&le(n,nr(n,"Month")+e*r),u&&t.updateOffset(n,f||e))}function da(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ga(n,i){var u=n||c(),f=gu(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(et(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function nv(){return new li(this)}function tv(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function iv(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function rv(n,t,i,r){return r=r||"()",(r[0]==="("?this.isAfter(n,i):!this.isBefore(n,i))&&(r[1]===")"?this.isBefore(t,i):!this.isAfter(t,i))}function uv(n,t){var i=pt(n)?n:c(n),r;return(this.isValid()&&i.isValid())?(t=nt(t||"millisecond"),t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function fv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function ev(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ov(n,t,i){var f,e,u,r;return this.isValid()?(f=gu(n,this),!f.isValid())?NaN:(e=(f.utcOffset()-this.utcOffset())*6e4,t=nt(t),t==="year"||t==="month"||t==="quarter"?(r=sv(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:d(r)):NaN}function sv(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function hv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cv(){if(!this.isValid())return null;var n=this.clone().utc();return n.year()<0||n.year()>9999?uu(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):et(Date.prototype.toISOString)?this.toDate().toISOString():uu(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function lv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function av(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=uu(this,n);return this.localeData().postformat(i)}function vv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?st({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yv(n){return this.from(c(),n)}function pv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?st({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wv(n){return this.to(c(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=wt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function bv(n){n=nt(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function kv(n){return(n=nt(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function dv(){return this._d.valueOf()-(this._offset||0)*6e4}function gv(){return Math.floor(this.valueOf()/1e3)}function ny(){return new Date(this.valueOf())}function ty(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function iy(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ry(){return this.isValid()?this.toISOString():null}function uy(){return kr(this)}function fy(){return yt({},u(this))}function ey(){return u(this).overflow}function oy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function yr(n,t){r(0,[n,n.length],0,t)}function sy(n){return ls.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function hy(n){return ls.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function cy(){return ti(this.year(),1,4)}function ly(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ls(n,t,i,r,u){var f;return n==null?pi(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),ay.call(this,n,t,i,r,u))}function ay(n,t,i,r,u){var e=be(n,t,i,r,u),f=sr(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function vy(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function yy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function py(n,t){t[ni]=f(("0."+n)*1e3)}function wy(){return this._isUTC?"UTC":""}function by(){return this._isUTC?"Coordinated Universal Time":""}function ky(n){return c(n*1e3)}function dy(){return c.apply(null,arguments).parseZone()}function ps(n){return n}function pr(n,t,i,r){var u=wt(),f=ft().set(r,t);return u[i](f,n)}function ws(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return pr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=pr(n,r,i,"month");return u}function uf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=wt(),f=n?o._week.dow:0,i!=null)return pr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=pr(t,(u+f)%7,r,"day");return e}function gy(n,t){return ws(n,t,"months")}function np(n,t){return ws(n,t,"monthsShort")}function tp(n,t,i){return uf(n,t,i,"weekdays")}function ip(n,t,i){return uf(n,t,i,"weekdaysShort")}function rp(n,t,i){return uf(n,t,i,"weekdaysMin")}function up(){var n=this._data;return this._milliseconds=ht(this._milliseconds),this._days=ht(this._days),this._months=ht(this._months),n.milliseconds=ht(n.milliseconds),n.seconds=ht(n.seconds),n.minutes=ht(n.minutes),n.hours=ht(n.hours),n.months=ht(n.months),n.years=ht(n.years),this}function bs(n,t,i,r){var u=st(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function fp(n,t){return bs(this,n,t,1)}function ep(n,t){return bs(this,n,t,-1)}function ks(n){return n<0?Math.floor(n):Math.ceil(n)}function op(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=ks(ff(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(ds(n)),t+=o,n-=ks(ff(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ds(n){return n*4800/146097}function ff(n){return n*146097/4800}function sp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=nt(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+ds(t),n==="month"?r:r/12;t=this._days+Math.round(ff(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function hp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function kp(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function fw(){return d(this.days()/7)}function ew(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ow(n,t,i){var r=st(n).abs(),u=vt(r.as("s")),e=vt(r.as("m")),o=vt(r.as("h")),s=vt(r.as("d")),h=vt(r.as("M")),c=vt(r.as("y")),f=u<=ut.ss&&["s",u]||u<ut.s&&["ss",u]||e<=1&&["m"]||e<ut.m&&["mm",e]||o<=1&&["h"]||o<ut.h&&["hh",o]||s<=1&&["d"]||s<ut.d&&["dd",s]||h<=1&&["M"]||h<ut.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,ew.apply(null,f)}function sw(n){return n===undefined?vt:typeof n=="function"?(vt=n,!0):!1}function hw(n,t){return ut[n]===undefined?!1:t===undefined?ut[n]:(ut[n]=t,n==="s"&&(ut.ss=t-1),!0)}function cw(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=ow(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function br(){if(!this.isValid())return this.localeData().invalidDate();var t=wr(this._milliseconds)/1e3,a=wr(this._days),i=wr(this._months),n,e,o;n=d(t/60);e=d(n/60);t%=60;n%=60;o=d(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ef,sf,hf,di,gi,gr,yf,pf,wf,bf,kf,df,gf,ne,ui,iu,or,y,hu,he,ce,ve,ye,cu,ke,de,ge,no,to,io,ro,eo,lo,po,wo,ko,hi,ns,is,rs,os,ss,tf,rf,as,vs,bt,ys,n,o,ht,vt,ut,wr,e;sf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};hf=sf;di=t.momentProperties=[];gi=!1;gr={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;yf=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};pf=yf;wf={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};bf={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};kf="Invalid date";df="%d";gf=/\d{1,2}/;ne={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};ui={};iu={};var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ru={},ei={};var ue=/\d/,k=/\d\d/,fe=/\d{3}/,fu=/\d{4}/,ir=/[+-]?\d{6}/,s=/\d\d?/,ee=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,rr=/\d{1,3}/,eu=/\d{1,4}/,ur=/[+-]?\d{1,6}/,fr=/[+-]?\d+/,yh=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ai=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ou={};or={};var it=0,lt=1,ot=2,v=3,rt=4,at=5,ni=6,kh=7,dh=8,se;se=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};y=se;r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[lt]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[lt]=f:u(i).invalidMonth=n});hu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;he="January_February_March_April_May_June_July_August_September_October_November_December".split("_");ce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");ve=ai;ye=ai;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",fr);i("YY",s,k);i("YYYY",eu,fu);i("YYYYY",ur,ir);i("YYYYYY",ur,ir);h(["YYYYY","YYYYYY"],it);h("YYYY",function(n,i){i[it]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[it]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[it]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};cu=fi("FullYear",!0);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);vi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});ke={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});vi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});vi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});de="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");no="Su_Mo_Tu_We_Th_Fr_Sa".split("_");to=ai;io=ai;ro=ai;r("H",["HH",2],0,"hour");r("h",["hh",2],0,au);r("k",["kk",2],0,fl);r("hmm",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)});r("hmmss",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)+ct(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ct(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ct(this.minutes(),2)+ct(this.seconds(),2)});uo("a",!0);uo("A",!1);w("hour","h");b("hour",13);i("a",fo);i("A",fo);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",ee);i("hmmss",oe);i("Hmm",ee);i("Hmmss",oe);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r,2));t[at]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i,2));t[at]=f(n.substr(r))});eo=/[ap]\.?m?\.?/i;var sl=fi("Hours",!0),oo={calendar:wf,longDateFormat:bf,invalidDate:kf,ordinal:df,dayOfMonthOrdinalParse:gf,relativeTime:ne,months:he,monthsShort:ce,week:ke,weekdays:de,weekdaysMin:no,weekdaysShort:ge,meridiemParse:eo},a={},wi={},cr;var al=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yl=/Z|[+-]\d\d(?::?\d\d)?/,lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pl=/^\/?Date\((\-?\d+)/i;for(lo=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/,t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},po=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ki()}),wo=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ki()}),ko=function(){return Date.now?Date.now():+new Date},hi=["year","quarter","month","week","day","hour","minute","second","millisecond"],go("Z",":"),go("ZZ",""),i("Z",er),i("ZZ",er),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=du(er,n)}),ns=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},is=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,rs=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,st.fn=vr.prototype,st.invalid=oa,os=fs(1,"add"),ss=fs(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",tf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yr("gggg","weekYear"),yr("ggggg","weekYear"),yr("GGGG","isoWeekYear"),yr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",fr),i("g",fr),i("GG",s,k),i("gg",s,k),i("GGGG",eu,fu),i("gggg",eu,fu),i("GGGGG",ur,ir),i("ggggg",ur,ir),vi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),vi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",ue),h("Q",function(n,t){t[lt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ot),h("Do",function(n,t){t[ot]=f(n.match(s)[0],10)}),rf=fi("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",rr),i("DDDD",fe),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],rt),as=fi("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],at),vs=fi("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("millisecond","ms"),b("millisecond",16),i("S",rr,ue),i("SS",rr,k),i("SSS",rr,fe),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")h(bt,py);ys=fi("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=li.prototype;n.add=os;n.calendar=ga;n.clone=nv;n.diff=ov;n.endOf=kv;n.format=av;n.from=vv;n.fromNow=yv;n.to=pv;n.toNow=wv;n.get=ch;n.invalidAt=ey;n.isAfter=tv;n.isBefore=iv;n.isBetween=rv;n.isSame=uv;n.isSameOrAfter=fv;n.isSameOrBefore=ev;n.isValid=uy;n.lang=tf;n.locale=hs;n.localeData=cs;n.max=wo;n.min=po;n.parsingFlags=fy;n.set=lh;n.startOf=bv;n.subtract=ss;n.toArray=ty;n.toObject=iy;n.toDate=ny;n.toISOString=cv;n.inspect=lv;n.toJSON=ry;n.toString=hv;n.unix=gv;n.valueOf=dv;n.creationData=oy;n.year=cu;n.isLeapYear=ec;n.weekYear=sy;n.isoWeekYear=hy;n.quarter=n.quarters=vy;n.month=ae;n.daysInMonth=rc;n.week=n.weeks=lc;n.isoWeek=n.isoWeeks=ac;n.weeksInYear=ly;n.isoWeeksInYear=cy;n.date=rf;n.day=n.days=gc;n.weekday=nl;n.isoWeekday=tl;n.dayOfYear=yy;n.hour=n.hours=sl;n.minute=n.minutes=as;n.second=n.seconds=vs;n.millisecond=n.milliseconds=ys;n.utcOffset=sa;n.utc=ca;n.local=la;n.parseZone=aa;n.hasAlignedHourOffset=va;n.isDST=ya;n.isLocal=wa;n.isUtcOffset=ba;n.isUtc=ts;n.isUTC=ts;n.zoneAbbr=wy;n.zoneName=by;n.dates=g("dates accessor is deprecated. Use date instead.",rf);n.months=g("months accessor is deprecated. Use month instead",ae);n.years=g("years accessor is deprecated. Use year instead",cu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ha);n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pa);o=nu.prototype;o.calendar=rh;o.longDateFormat=uh;o.invalidDate=fh;o.ordinal=eh;o.preparse=ps;o.postformat=ps;o.relativeTime=oh;o.pastFuture=sh;o.set=ih;o.months=gh;o.monthsShort=nc;o.monthsParse=ic;o.monthsRegex=fc;o.monthsShortRegex=uc;o.week=sc;o.firstDayOfYear=cc;o.firstDayOfWeek=hc;o.weekdays=pc;o.weekdaysMin=bc;o.weekdaysShort=wc;o.weekdaysParse=dc;o.weekdaysRegex=il;o.weekdaysShortRegex=rl;o.weekdaysMinRegex=ul;o.isPM=el;o.meridiem=ol;oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",wt);ht=Math.abs;var cp=kt("ms"),lp=kt("s"),ap=kt("m"),vp=kt("h"),yp=kt("d"),pp=kt("w"),wp=kt("M"),bp=kt("y");var dp=ri("milliseconds"),gp=ri("seconds"),nw=ri("minutes"),tw=ri("hours"),iw=ri("days"),rw=ri("months"),uw=ri("years");return vt=Math.round,ut={ss:44,s:45,m:45,h:22,d:26,M:11},wr=Math.abs,e=vr.prototype,e.isValid=ea,e.abs=up,e.add=fp,e.subtract=ep,e.as=sp,e.asMilliseconds=cp,e.asSeconds=lp,e.asMinutes=ap,e.asHours=vp,e.asDays=yp,e.asWeeks=pp,e.asMonths=wp,e.asYears=bp,e.valueOf=hp,e._bubble=op,e.get=kp,e.milliseconds=dp,e.seconds=gp,e.minutes=nw,e.hours=tw,e.days=iw,e.weeks=fw,e.months=rw,e.years=uw,e.humanize=cw,e.toISOString=br,e.toString=br,e.toJSON=br,e.locale=hs,e.localeData=cs,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",br),e.lang=tf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",fr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.18.1",gs(c),t.fn=n,t.min=ra,t.max=ua,t.now=ko,t.utc=ft,t.unix=ky,t.months=gy,t.isDate=bi,t.locale=oi,t.invalid=ki,t.duration=st,t.isMoment=pt,t.weekdays=tp,t.parseZone=dy,t.localeData=wt,t.isDuration=bu,t.monthsShort=np,t.weekdaysMin=rp,t.defineLocale=vu,t.updateLocale=cl,t.locales=ll,t.weekdaysShort=ip,t.normalizeUnits=nt,t.relativeTimeRounding=sw,t.relativeTimeThreshold=hw,t.calendarFormat=da,t.prototype=n,t}),function(n,t){"use strict";var r=864e5,i=function(){if(t.userAgent&&(t.userAgent.match(/Android/i)||t.userAgent.match(/webOS/i)||t.userAgent.match(/iPhone/i)||t.userAgent.match(/iPad/i)||t.userAgent.match(/iPod/i)||t.userAgent.match(/BlackBerry/i)||t.userAgent.match(/Windows Phone/i)))return!0}(),u=function(n,t,r){return(r&&(i=!1),i)?['<div class="_720kb-datepicker-calendar-header">','<div class="_720kb-datepicker-calendar-header-middle _720kb-datepicker-mobile-item _720kb-datepicker-calendar-month">','<select ng-model="month" title="{{ dateMonthTitle }}" ng-change="selectedMonthHandle(month)">','<option ng-repeat="item in months" ng-selected="item === month" ng-disabled=\'!isSelectableMaxDate(item + " " + day + ", " + year) || !isSelectableMinDate(item + " " + day + ", " + year)\' ng-value="$index + 1" value="$index + 1">',"{{ item }}","<\/option>","<\/select>","<\/div>","<\/div>",'<div class="_720kb-datepicker-calendar-header">','<div class="_720kb-datepicker-calendar-header-middle _720kb-datepicker-mobile-item _720kb-datepicker-calendar-month">','<select ng-model="mobileYear" title="{{ dateYearTitle }}" ng-change="setNewYear(mobileYear)">','<option ng-repeat="item in paginationYears track by $index" ng-selected="year === item" ng-disabled="!isSelectableMinYear(item) || !isSelectableMaxYear(item)" ng-value="item" value="item">',"{{ item }}","<\/option>","<\/select>","<\/div>","<\/div>"]:['<div class="_720kb-datepicker-calendar-header">','<div class="_720kb-datepicker-calendar-header-left">','<a class="_720kb-datepicker-calendar-month-button" href="javascript:void(0)" ng-class="{\'_720kb-datepicker-item-hidden\': !willPrevMonthBeSelectable()}" ng-click="prevMonth()" title="{{ buttonPrevTitle }}">',n,"<\/a>","<\/div>",'<div class="_720kb-datepicker-calendar-header-middle _720kb-datepicker-calendar-month">',"{{month}}&nbsp;",'<a href="javascript:void(0)" ng-click="paginateYears(year); showYearsPagination = !showYearsPagination;">',"<span>","{{year}}","<i ng-class=\"{'_720kb-datepicker-calendar-header-closed-pagination': !showYearsPagination, '_720kb-datepicker-calendar-header-opened-pagination': showYearsPagination}\"><\/i>","<\/span>","<\/a>","<\/div>",'<div class="_720kb-datepicker-calendar-header-right">','<a class="_720kb-datepicker-calendar-month-button" ng-class="{\'_720kb-datepicker-item-hidden\': !willNextMonthBeSelectable()}" href="javascript:void(0)" ng-click="nextMonth()" title="{{ buttonNextTitle }}">',t,"<\/a>","<\/div>","<\/div>"]},f=function(n,t){return['<div class="_720kb-datepicker-calendar-header" ng-show="showYearsPagination">','<div class="_720kb-datepicker-calendar-years-pagination">','<a ng-class="{\'_720kb-datepicker-active\': y === year, \'_720kb-datepicker-disabled\': !isSelectableMaxYear(y) || !isSelectableMinYear(y)}" href="javascript:void(0)" ng-click="setNewYear(y)" ng-repeat="y in paginationYears track by $index">',"{{y}}","<\/a>","<\/div>",'<div class="_720kb-datepicker-calendar-years-pagination-pages">','<a href="javascript:void(0)" ng-click="paginateYears(paginationYears[0])" ng-class="{\'_720kb-datepicker-item-hidden\': paginationYearsPrevDisabled}">',n,"<\/a>",'<a href="javascript:void(0)" ng-click="paginateYears(paginationYears[paginationYears.length -1 ])" ng-class="{\'_720kb-datepicker-item-hidden\': paginationYearsNextDisabled}">',t,"<\/a>","<\/div>","<\/div>"]},e=function(){return['<div class="_720kb-datepicker-calendar-days-header">','<div ng-repeat="d in daysInString">',"{{d}}","<\/div>","<\/div>"]},o=function(){return['<div class="_720kb-datepicker-calendar-body">','<a href="javascript:void(0)" ng-repeat="px in prevMonthDays" class="_720kb-datepicker-calendar-day _720kb-datepicker-disabled">',"{{px}}","<\/a>","<a href=\"javascript:void(0)\" ng-repeat=\"item in days\" ng-click=\"setDatepickerDay(item)\" ng-class=\"{'_720kb-datepicker-active': selectedDay === item && selectedMonth === monthNumber && selectedYear === year, '_720kb-datepicker-disabled': !isSelectableMinDate(year + '/' + monthNumber + '/' + item ) || !isSelectableMaxDate(year + '/' + monthNumber + '/' + item) || !isSelectableDate(monthNumber, year, item) || !isSelectableDay(monthNumber, year, item),'_720kb-datepicker-today': item === today.getDate() && monthNumber === (today.getMonth() + 1) && year === today.getFullYear() && !selectedDay}\" class=\"_720kb-datepicker-calendar-day\">","{{item}}","<\/a>",'<a href="javascript:void(0)" ng-repeat="nx in nextMonthDays" class="_720kb-datepicker-calendar-day _720kb-datepicker-disabled">',"{{nx}}","<\/a>","<\/div>"]},s=function(n,t,i){var s=['<div class="_720kb-datepicker-calendar {{datepickerClass}} {{datepickerID}}" ng-class="{\'_720kb-datepicker-forced-to-open\': checkVisibility()}" ng-blur="hideCalendar()">',"<\/div>"],h=u(n,t,i),c=f(n,t),l=e(),a=o(),r=function(n){s.splice(s.length-1,0,n)};return h.forEach(r),c.forEach(r),l.forEach(r),a.forEach(r),s.join("")},h=function(t,u,f,e,o,h){var c=function(c,l,a){var lt=a.selector,y=n.element(lt?l[0].querySelector("."+lt):l[0].children[0]),p,vt=a.buttonPrev||'<b class="_720kb-datepicker-default-button">&lang;<\/b>',yt=a.buttonNext||'<b class="_720kb-datepicker-default-button">&rang;<\/b>',b=a.dateFormat,d=c.$eval(c.dateDisabledDates),tt=c.$eval(c.dateEnabledDates),it=c.$eval(c.dateDisabledWeekdays),v=new Date,g=!1,rt=!1,pt=typeof a.datepickerMobile!="undefined"&&a.datepickerMobile!=="false",ut=f.DATETIME_FORMATS,nt,wt=864e5,k=s(vt,yt,pt),ft,at=function(){g||rt||!p||c.hideCalendar()},w=function(n,t){var i,o=new Date(t,n,0).getDate(),r=new Date(t+"/"+n+"/1").getDay(),u=new Date(t+"/"+n+"/"+o).getDay(),s=[],h=[],f,e,l,a;for(c.days=[],c.dateWeekStartDay=c.validateWeekDay(c.dateWeekStartDay),a=(c.dateWeekStartDay+6)%7,i=1;i<=o;i+=1)c.days.push(i);if(r===c.dateWeekStartDay)c.prevMonthDays=[];else{for(e=r-c.dateWeekStartDay,r<c.dateWeekStartDay&&(e+=7),l=Number(n)===1?12:n-1,i=1;i<=new Date(t,l,0).getDate();i+=1)s.push(i);c.prevMonthDays=s.slice(-e)}if(u===a)c.nextMonthDays=[];else{for(f=6-u+c.dateWeekStartDay,u<c.dateWeekStartDay&&(f-=7),i=1;i<=f;i+=1)h.push(i);c.nextMonthDays=h}},ot=function(){c.month=e("date")(new Date(c.dateMinLimit),"MMMM");c.monthNumber=Number(e("date")(new Date(c.dateMinLimit),"MM"));c.day=Number(e("date")(new Date(c.dateMinLimit),"dd"));c.year=Number(e("date")(new Date(c.dateMinLimit),"yyyy"));w(c.monthNumber,c.year)},st=function(){c.month=e("date")(new Date(c.dateMaxLimit),"MMMM");c.monthNumber=Number(e("date")(new Date(c.dateMaxLimit),"MM"));c.day=Number(e("date")(new Date(c.dateMaxLimit),"dd"));c.year=Number(e("date")(new Date(c.dateMaxLimit),"yyyy"));w(c.monthNumber,c.year)},bt=function(){c.year=Number(c.year)-1},kt=function(){c.year=Number(c.year)+1},ht=function(n,t){for(var u,r,s,h,c,f,e,o,i=0;i<ut.MONTH.length;i+=1){if(e=ut.MONTH[i],o=ut.SHORTMONTH[i],n.indexOf(e)!==-1){n=n.replace(e,i+1);break}if(n.indexOf(o)!==-1){n=n.replace(o,i+1);break}}for(r=n.split(/\D/).filter(function(n){return n.length>0}),u=t.match(/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|MMMM|MMM|MM|M|dd?d?|yy?yy?y?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g).filter(function(n){return n.match(/^[a-zA-Z]+$/i)!==null}),i=0;i<u.length;i+=1){f=u[i];switch(!0){case f.indexOf("d")!==-1:h=r[i-(u.length-r.length)];break;case f.indexOf("M")!==-1:s=r[i-(u.length-r.length)];break;case f.indexOf("y")!==-1:c=r[i-(u.length-r.length)]}}return new Date(c+"/"+s+"/"+h)},et=function(){if(c.isSelectableMinDate(c.year+"/"+c.monthNumber+"/"+c.day)&&c.isSelectableMaxDate(c.year+"/"+c.monthNumber+"/"+c.day)){var n=new Date(c.year+"/"+c.monthNumber+"/"+c.day);a.dateFormat?y.val(e("date")(n,b)):y.val(n);y.triggerHandler("input");y.triggerHandler("change")}else return!1},ct={add:function(n,t){var i;n.className.indexOf(t)>-1||(i=n.className.split(" "),i.push(t),n.className=i.join(" "))},remove:function(n,t){var r,i;if(n.className.indexOf(t)!==-1){for(i=n.className.split(" "),r=0;r<i.length;r+=1)if(i[r]===t){i=i.slice(0,r).concat(i.slice(r+1));break}n.className=i.join(" ")}}},dt=function(){nt=t.document.getElementsByClassName("_720kb-datepicker-calendar");n.forEach(nt,function(n,t){nt[t].classList?nt[t].classList.remove("_720kb-datepicker-open"):ct.remove(nt[t],"_720kb-datepicker-open")});p.classList?(p.classList.add("_720kb-datepicker-open"),v=b?ht(y[0].value.toString(),b):new Date(y[0].value.toString()),c.selectedMonth=Number(e("date")(v,"MM")),c.selectedDay=Number(e("date")(v,"dd")),c.selectedYear=Number(e("date")(v,"yyyy"))):ct.add(p,"_720kb-datepicker-open");c.today=new Date;h(function(){c.selectedDay?(c.year=c.selectedYear,c.monthNumber=c.selectedMonth):(c.year=c.today.getFullYear(),c.monthNumber=c.today.getMonth()+1);c.month=e("date")(new Date(c.year,c.monthNumber-1),"MMMM");w(c.monthNumber,c.year)},0)},gt=function(){return c.datepickerToggle?c.$eval(c.datepickerToggle):!0},ni=function(){return c.datepickerShow?(v=b?ht(y[0].value.toString(),b):new Date(y[0].value.toString()),c.selectedMonth=Number(e("date")(v,"MM")),c.selectedDay=Number(e("date")(v,"dd")),c.selectedYear=Number(e("date")(v,"yyyy")),c.$eval(c.datepickerShow)):!1},ti=c.$watch("dateSet",function(n){n&&!isNaN(Date.parse(n))&&(v=new Date(n),c.month=e("date")(v,"MMMM"),c.monthNumber=Number(e("date")(v,"MM")),c.day=Number(e("date")(v,"dd")),c.year=Number(e("date")(v,"yyyy")),w(c.monthNumber,c.year),c.dateSetHidden!=="true"&&et())}),ii=c.$watch("dateMinLimit",function(n){n&&ot()}),ri=c.$watch("dateMaxLimit",function(n){n&&st()}),ui=c.$watch("dateFormat",function(n){n&&et()}),fi=c.$watch("dateDisabledDates",function(n){n&&(d=c.$eval(n),c.isSelectableDate(c.monthNumber,c.year,c.day)||(y.val(""),y.triggerHandler("input"),y.triggerHandler("change")))}),ei=c.$watch("dateEnabledDates",function(n){n&&(tt=c.$eval(n),c.isSelectableDate(c.monthNumber,c.year,c.day)||(y.val(""),y.triggerHandler("input"),y.triggerHandler("change")))});for(c.nextMonth=function(){c.monthNumber===12?(c.monthNumber=1,kt()):c.monthNumber+=1;c.dateMaxLimit&&(c.isSelectableMaxDate(c.year+"/"+c.monthNumber+"/"+c.days[0])||st());c.month=e("date")(new Date(c.year,c.monthNumber-1),"MMMM");w(c.monthNumber,c.year);c.day=undefined},c.willPrevMonthBeSelectable=function(){var n=c.monthNumber,t=c.year,i=e("date")(new Date(new Date(t+"/"+n+"/01").getTime()-wt),"dd");return(n===1?(n=12,t=t-1):n-=1,c.dateMinLimit&&!c.isSelectableMinDate(t+"/"+n+"/"+i))?!1:!0},c.willNextMonthBeSelectable=function(){var n=c.monthNumber,t=c.year;return(n===12?(n=1,t+=1):n+=1,c.dateMaxLimit&&!c.isSelectableMaxDate(t+"/"+n+"/01"))?!1:!0},c.prevMonth=function(){c.monthNumber===1?(c.monthNumber=12,bt()):c.monthNumber-=1;c.dateMinLimit&&(c.isSelectableMinDate(c.year+"/"+c.monthNumber+"/"+c.days[c.days.length-1])||ot());c.month=e("date")(new Date(c.year,c.monthNumber-1),"MMMM");w(c.monthNumber,c.year);c.day=undefined},c.selectedMonthHandle=function(n){c.monthNumber=Number(e("date")(new Date(n+"/01/2000"),"MM"));w(c.monthNumber,c.year);et()},c.setNewYear=function(n){if(i||(c.day=undefined),c.dateMaxLimit&&c.year<Number(n)){if(!c.isSelectableMaxYear(n))return}else if(c.dateMinLimit&&c.year>Number(n)&&!c.isSelectableMinYear(n))return;c.paginateYears(n);c.showYearsPagination=!1;h(function(){c.year=Number(n);w(c.monthNumber,c.year)},0)},c.hideCalendar=function(){p.classList?p.classList.remove("_720kb-datepicker-open"):ct.remove(p,"_720kb-datepicker-open")},c.setDatepickerDay=function(n){c.isSelectableDay(c.monthNumber,c.year,n)&&c.isSelectableDate(c.monthNumber,c.year,n)&&c.isSelectableMaxDate(c.year+"/"+c.monthNumber+"/"+n)&&c.isSelectableMinDate(c.year+"/"+c.monthNumber+"/"+n)&&(c.day=Number(n),c.selectedDay=c.day,c.selectedMonth=c.monthNumber,c.selectedYear=c.year,et(),a.hasOwnProperty("dateRefocus")&&y[0].focus(),c.hideCalendar())},c.paginateYears=function(n){var r,t=[],u=10,f=10;for(c.paginationYears=[],i&&(u=50,f=50,c.dateMinLimit&&c.dateMaxLimit&&(n=new Date(c.dateMaxLimit).getFullYear(),u=n-new Date(c.dateMinLimit).getFullYear(),f=1)),r=u;r>0;r-=1)t.push(Number(n)-r);for(r=0;r<f;r+=1)t.push(Number(n)+r);if(c.dateTyper==="true")y.on("keyup blur",function(){if(y[0].value&&y[0].value.length&&y[0].value.length>0)try{v=b?ht(y[0].value.toString(),b):new Date(y[0].value.toString());v.getFullYear()&&!isNaN(v.getDay())&&!isNaN(v.getMonth())&&c.isSelectableDay(v.getMonth(),v.getFullYear(),v.getDay())&&c.isSelectableDate(v.getMonth(),v.getFullYear(),v.getDay())&&c.isSelectableMaxDate(v)&&c.isSelectableMinDate(v)&&c.$apply(function(){c.month=e("date")(v,"MMMM");c.monthNumber=Number(e("date")(v,"MM"));c.day=Number(e("date")(v,"dd"));v.getFullYear().toString().length===4&&(c.year=Number(e("date")(v,"yyyy")));w(c.monthNumber,c.year)})}catch(n){return n}});c.paginationYearsNextDisabled=c.dateMaxLimit&&t&&t.length&&!c.isSelectableMaxYear(Number(t[t.length-1])+1)?!0:!1;c.paginationYearsPrevDisabled=c.dateMinLimit&&t&&t.length&&!c.isSelectableMinYear(Number(t[0])-1)?!0:!1;c.paginationYears=t},c.isSelectableDay=function(n,t,i){var r=0;if(it&&it.length>0)for(r;r<=it.length;r+=1)if(it[r]===new Date(n+"/"+i+"/"+t).getDay())return!1;return!0},c.isSelectableDate=function(n,t,i){var r=0;if(d&&d.length>0)for(r;r<=d.length;r+=1)if(new Date(d[r]).getTime()===new Date(n+"/"+i+"/"+t).getTime())return!1;if(tt){for(r;r<=tt.length;r+=1)if(new Date(tt[r]).getTime()===new Date(n+"/"+i+"/"+t).getTime())return!0;return!1}return!0},c.isSelectableMinDate=function(n){return!!c.dateMinLimit&&!!new Date(c.dateMinLimit)&&new Date(n).getTime()<new Date(c.dateMinLimit).getTime()?!1:!0},c.isSelectableMaxDate=function(n){return!!c.dateMaxLimit&&!!new Date(c.dateMaxLimit)&&new Date(n).getTime()>new Date(c.dateMaxLimit).getTime()?!1:!0},c.isSelectableMaxYear=function(n){return!!c.dateMaxLimit&&n>new Date(c.dateMaxLimit).getFullYear()?!1:!0},c.isSelectableMinYear=function(n){return!!c.dateMinLimit&&n<new Date(c.dateMinLimit).getFullYear()?!1:!0},c.validateWeekDay=function(n){var t=Number(n,10);return(!t||t<0||t>6)&&(t=0),t},k=k.replace(/{{/g,o.startSymbol()).replace(/}}/g,o.endSymbol()),c.dateMonthTitle=c.dateMonthTitle||"Select month",c.dateYearTitle=c.dateYearTitle||"Select year",c.buttonNextTitle=c.buttonNextTitle||"Next",c.buttonPrevTitle=c.buttonPrevTitle||"Prev",c.month=e("date")(v,"MMMM"),c.monthNumber=Number(e("date")(v,"MM")),c.day=Number(e("date")(v,"dd")),c.dateWeekStartDay=c.validateWeekDay(c.dateWeekStartDay),c.year=c.dateMaxLimit?Number(e("date")(new Date(c.dateMaxLimit),"yyyy")):Number(e("date")(v,"yyyy")),c.months=ut.MONTH,c.daysInString=[],ft=c.dateWeekStartDay;ft<=c.dateWeekStartDay+6;ft+=1)c.daysInString.push(ft%7);if(c.daysInString=c.daysInString.map(function(n){return e("date")(new Date(new Date("06/08/2014").valueOf()+r*n),"EEE")}),c.datepickerAppendTo&&c.datepickerAppendTo.indexOf(".")!==-1?(c.datepickerID="datepicker-id-"+(new Date).getTime()+(Math.floor(Math.random()*6)+8),n.element(document.getElementsByClassName(c.datepickerAppendTo.replace(".",""))[0]).append(u(n.element(k))(c,function(t){p=n.element(t)[0]}))):c.datepickerAppendTo&&c.datepickerAppendTo.indexOf("#")!==-1?(c.datepickerID="datepicker-id-"+(new Date).getTime()+(Math.floor(Math.random()*6)+8),n.element(document.getElementById(c.datepickerAppendTo.replace("#",""))).append(u(n.element(k))(c,function(t){p=n.element(t)[0]}))):c.datepickerAppendTo&&c.datepickerAppendTo==="body"?(c.datepickerID="datepicker-id-"+((new Date).getTime()+(Math.floor(Math.random()*6)+8)),n.element(document).find("body").append(u(n.element(k))(c,function(t){p=n.element(t)[0]}))):(y.after(u(n.element(k))(c)),p=l[0].querySelector("._720kb-datepicker-calendar")),gt())y.on("focus click focusin",function(){rt=!0;g||rt||!p?dt():c.hideCalendar()});y.on("focusout blur",function(){rt=!1});n.element(p).on("mouseenter",function(){g=!0});n.element(p).on("mouseleave",function(){g=!1});n.element(p).on("focusin",function(){g=!0});n.element(t).on("click focus focusin",at);(!c.dateMinLimit||c.isSelectableMinYear(c.year))&&c.isSelectableMinDate(c.year+"/"+c.monthNumber+"/"+c.day)||ot();(!c.dateMaxLimit||c.isSelectableMaxYear(c.year))&&c.isSelectableMaxDate(c.year+"/"+c.monthNumber+"/"+c.day)||st();c.paginateYears(c.year);w(c.monthNumber,c.year);c.checkVisibility=ni;c.$on("$destroy",function(){ti();ii();ri();ui();fi();ei();y.off("focus click focusout blur");n.element(p).off("mouseenter mouseleave focusin");n.element(t).off("click focus focusin",at)})};return{restrict:"AEC",scope:{dateSet:"@",dateMinLimit:"@",dateMaxLimit:"@",dateMonthTitle:"@",dateYearTitle:"@",buttonNextTitle:"@",buttonPrevTitle:"@",dateDisabledDates:"@",dateEnabledDates:"@",dateDisabledWeekdays:"@",dateSetHidden:"@",dateTyper:"@",dateWeekStartDay:"@",datepickerAppendTo:"@",datepickerToggle:"@",datepickerClass:"@",datepickerShow:"@"},link:c}};n.module("720kb.datepicker",[]).directive("datepicker",["$window","$compile","$locale","$filter","$interpolate","$timeout",h])}(angular,navigator);Array.from||(Array.from=function(){var t=Object.prototype.toString,n=function(n){return typeof n=="function"||t.call(n)==="[object Function]"},i=function(n){var t=Number(n);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))},r=Math.pow(2,53)-1,u=function(n){var t=i(n);return Math.min(Math.max(t,0),r)};return function(t){var h=this,c=Object(t),i,o;if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(i=arguments.length>1?arguments[1]:void undefined,typeof i!="undefined"){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var f=u(c.length),s=n(h)?Object(new h(f)):new Array(f),r=0,e;r<f;)e=c[r],s[r]=i?typeof o=="undefined"?i(e,r):i.call(o,e,r):e,r+=1;return s.length=f,s}}());files=[],function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){"use strict";var t={className:"",text:"Drop a file",previewImage:!1,value:null,classes:{main:"ezdz-dropzone",enter:"ezdz-enter",reject:"ezdz-reject",accept:"ezdz-accept",focus:"ezdz-focus"},validators:{maxSize:null,width:null,maxWidth:null,minWidth:null,height:null,maxHeight:null,minHeight:null},init:function(){},enter:function(){},leave:function(){},reject:function(){},accept:function(){},format:function(n){return n}};n.ezdz=function(i,r){var o;this.settings=n.extend(!0,{},t,n.ezdz.defaults,r);this.$input=n(i);var e=this,u=e.settings,f=e.$input;f.is('input[type="file"]')&&n.ezdz.isBrowserCompatible()&&(o=function(){var t,r,i,o=function(){t.find("div").html(n.map(files,function(n){return"<span>"+n.name+"<\/span>"}))};n(document).on("click",".removeItem-trigger",function(){if(detectCompatibleBrowser()){var t=n(".removeItem-trigger").index(this);files.splice(t,1);o()}});r=n('<div class="'+u.classes.main+'" />').on("dragover.ezdz",function(t){var i=t.originalEvent.dataTransfer;i.types&&(i.types.indexOf?i.types.indexOf("Files")!=-1:i.types.contains("Files"))&&(n(this).addClass(u.classes.enter),n.isFunction(u.enter)&&u.enter.apply(this))}).on("dragleave.ezdz",function(){n(this).removeClass(u.classes.enter);n.isFunction(u.leaved)&&u.leaved.apply(this)}).addClass(u.className);f.wrap(r).before("<div>"+u.text+"<\/div>");t=f.parent("."+u.classes.main);i=u.value||f.data("value");i&&e.preview(i);n.isFunction(u.init)&&u.init.apply(f,[i]);f.on("focus.ezdz",function(){t.addClass(u.classes.focus)}).on("blur.ezdz",function(){t.removeClass(u.classes.focus)}).on("change.ezdz",function(){var i=this.files[0],v,c;if(i){var y=i.name.replace(/\\/g,"/").replace(/.*\//,""),l=i.name.split(".").pop(),p=u.format(y);i.extension=l;var a=f.attr("accept"),h=!1,s=!0,r={mimeType:!1,maxSize:!1,width:!1,minWidth:!1,maxWidth:!1,height:!1,minHeight:!1,maxHeight:!1};if(a?(v=a.split(/[,|]/),n.each(v,function(t,r){if((r=n.trim(r),"."+l===r)||i.type===r)return h=!0,!1;if(r.indexOf("/*")!==!1){var u=r.replace("/*",""),f=i.type.replace(/(\/.*)$/g,"");if(u===f)return h=!0,!1}}),h===!1&&(r.mimeType=!0)):h=!0,t.removeClass(u.classes.reject+" "+u.classes.accept),h!==!0)return f.val(""),t.addClass(u.classes.reject),e.preview(null),n.isFunction(u.reject)&&u.reject.apply(f,[i,r]),!1;c=new FileReader(i);c.readAsDataURL(i);c.onload=function(h){var c=new Image,l;i.data=h.target.result;c.src=i.data;setTimeout(function(){if(l=c.width&&c.height,u.validators.maxSize&&i.size>u.validators.maxSize&&(s=!1,r.maxSize=!0),l&&(i.width=c.width,i.height=c.height,u.validators.width&&c.width!==u.validators.width&&(s=!1,r.width=!0),u.validators.maxWidth&&c.width>u.validators.maxWidth&&(s=!1,r.maxWidth=!0),u.validators.minWidth&&c.width<u.validators.minWidth&&(s=!1,r.minWidth=!0),u.validators.height&&c.height!==u.validators.height&&(s=!1,r.height=!0),u.validators.maxHeight&&c.height>u.validators.maxHeight&&(s=!1,r.maxHeight=!0),u.validators.minHeight&&c.height<u.validators.minHeight&&(s=!1,r.minHeight=!0)),s===!0){var h=Array.from(t.find("input").prop("files"));detectCompatibleBrowser()?files.add(h):files=h;t.addClass(u.classes.accept);o();n.isFunction(u.accept)&&u.accept.apply(f,[i])}else f.val(""),t.addClass(u.classes.reject),e.preview(null),n.isFunction(u.reject)&&u.reject.apply(f,[i,r])},250)}}})},o())};n.ezdz.prototype.preview=function(t,i){var r=this.settings,e=this.$input,f=e.parent("."+r.classes.main),o=(t||"").replace(/\\/g,"/").replace(/.*\//,""),s=r.format(o),u;if(!t){f.removeClass([r.classes.enter,r.classes.reject,r.classes.accept].join(" ")).find("div").html(r.text);e.val("");return}u=new Image;u.src=t;u.onload=function(){f.find("div").html(n(u).fadeIn());n.isFunction(i)&&i.apply(this)};u.onerror=function(){f.find("div").html("<span>"+s+"<\/span>");n.isFunction(i)&&i.apply(this)};f.addClass(r.classes.accept)};n.ezdz.prototype.destroy=function(){var t=this.settings,n=this.$input;n.parent("."+t.classes.main).replaceWith(n);n.off("*.ezdz");n.removeData("ezdz")};n.ezdz.prototype.options=function(t){var i=this.settings;if(!t)return i;n.extend(!0,this.settings,t)};n.ezdz.prototype.container=function(){var n=this.settings,t=this.$input;return t.parent("."+n.classes.main)};n.ezdz.isBrowserCompatible=function(){return!!(window.File&&window.FileList&&window.FileReader)};n.ezdz.defaults=t;n.fn.ezdz=function(t){var r=arguments,i;return this.each(function(){if(i=n(this).data("ezdz"),!i)return n(this).data("ezdz",new n.ezdz(this,t));if(i[t])return i[t].apply(i,Array.prototype.slice.call(r,1));n.error("Ezdz error - Method "+t+" does not exist.")})}})