(function(n,t){"use strict";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){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&n.nodeType===1}))}function ar(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(undefined,[n].slice(u))}catch(n){r.apply(undefined,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n}function pr(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=undefined;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&kt(u)&&(f[i]=ue(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&l(n,t))?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e)}return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)ci(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=it;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(t.nodeType!==11?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(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 ye(n,t){var i=t.nodeName.toLowerCase();i==="input"&&dr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&typeof y=="string"&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function hu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:t==="width"?1:0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+b[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+b[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s=i.css(n,"boxSizing",!1,e)==="border-box";return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),u==="auto"&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=undefined}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.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 a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),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:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),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.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts),e)return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];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 lf(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===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(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 so(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 ho(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}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return n==null?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.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()},push:ui,sort:p.sort,splice:p.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=Array.isArray(t)))?(o?(o=!1,s=r&&Array.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"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!n||nr.call(n)!=="[object Object]"?!1:(t=pf(n),!t)?!0:(i=yt.call(t,"constructor")&&t.constructor,typeof i=="function"&&tr.call(i)===wf)},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"?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(fi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ot.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 e,u,r=0,f=[];if(fi(n))for(e=n.length;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 gi.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=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(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 ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(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 fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(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=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(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=[pt(ui(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 fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","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)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(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.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.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=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||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},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,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===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.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=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(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]||u.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]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.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=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(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(r){var f=u.attr(r,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(ir," ")+" ").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 p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(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:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?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===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!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 hr.test(n.nodeName)},input:function(n){return sr.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:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(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(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=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},ur=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;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,r,u=this.length,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(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,typeof n=="string"&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:sr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};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){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!fr.test(n))for(;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.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ot.call(i(n),this[0]):ot.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.uniqueSort(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 g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),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&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&i.type(f)!=="string"&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&(typeof n=="object"||typeof n=="function")&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=undefined,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=undefined,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return n!=null?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),r.state()==="pending"||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||wt.resolveWith(u,[i])}});i.ready.then=wt.then;u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt)):n.setTimeout(i.ready);v=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)v(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};st=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if(typeof t=="string")f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=t in r?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[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)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&t===undefined)return(i=e.get(u,n),i!==undefined)?i:(i=pr(u,n),i!==undefined)?i:void 0;this.each(function(){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||Array.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 wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},br=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};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/,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}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};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?gt:it,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&fe.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&ee.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);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}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,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=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},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++)ye(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++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(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 rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},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 v(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"&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);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=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});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),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};(function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o=i.top!=="1%";c=i.marginLeft==="2px";s=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";dt.removeChild(e);t=null}}var o,s,h,c,e=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",e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))})();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,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 e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;if(l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),r==null||r!==r)return;s==="number"&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:h[t]}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return(h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=lt(n,t,u)),f==="normal"&&t in lu&&(f=lu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?br(n,we,function(){return bu(n,t,u)}):bu(n,t,u)},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=ct.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});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+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(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)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;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.nodeType!==1||n.elem[n.prop]!=null&&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.nodeType===1&&(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},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.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 i.fx.off?u.duration=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(kt).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=a(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&&du.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(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("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(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},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;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(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(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});tf={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=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=r(n,t,i)!=null?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(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){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}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,d(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\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+="":Array.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(ff,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},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(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(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.rnamespace=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,vi.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&&st(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)&&st(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}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({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)}});i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup 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)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};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))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(r==null?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};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")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/mg,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(c,[rt,a,e]):tt.rejectWith(c,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,y,d,a,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=bi.protocol+"//"+bi.host!=a.protocol+"//"+a.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=lf(wi,f,r,e),l){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;l.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},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(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(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(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},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({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()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ri.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(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,e,o;return(t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e)?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(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||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,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.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},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,i.extend({},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,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;if(i.isWindow(n)?e=n:n.nodeType===9&&(e=n.defaultView),f===undefined)return e?e[t]:n[u];e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.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(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.fn.extend({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)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"&&typeof require=="function"?n(require("jquery")):n(jQuery)}(function(n){"use strict";function i(t,r){var u=this;u.element=t;u.el=n(t);u.suggestions=[];u.badQueries=[];u.selectedIndex=-1;u.currentValue=u.element.value;u.timeoutId=null;u.cachedResponse={};u.onChangeTimeout=null;u.onChange=null;u.isLocal=!1;u.suggestionsContainer=null;u.noSuggestionsContainer=null;u.options=n.extend({},i.defaults,r);u.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};u.hint=null;u.hintValue="";u.selection=null;u.initialize();u.setOptions(r)}function f(n,t,i){return n.value.toLowerCase().indexOf(i)!==-1}function e(t){return typeof t=="string"?n.parseJSON(t):t}function o(n,t){if(!t)return n.value;var i="("+u.escapeRegExChars(t)+")";return n.value.replace(new RegExp(i,"gi"),"<strong>$1<\/strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function s(n,t){return'<div class="autocomplete-group">'+t+"<\/div>"}var u=function(){return{escapeRegExChars:function(n){return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(n){var t=document.createElement("div");return t.className=n,t.style.position="absolute",t.style.display="none",t}}}(),t={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},r=n.noop;i.utils=u;n.Autocomplete=i;i.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:o,formatGroup:s,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:r,onSearchComplete:r,onSearchError:r,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:f,paramName:"query",transformResult:e,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};i.prototype={initialize:function(){var t=this,f="."+t.classes.suggestion,e=t.classes.selected,u=t.options,r;t.element.setAttribute("autocomplete","off");t.noSuggestionsContainer=n('<div class="autocomplete-no-suggestion"><\/div>').html(this.options.noSuggestionNotice).get(0);t.suggestionsContainer=i.utils.createNode(u.containerClass);r=n(t.suggestionsContainer);r.appendTo(u.appendTo||"body");u.width!=="auto"&&r.css("width",u.width);r.on("mouseover.autocomplete",f,function(){t.activate(n(this).data("index"))});r.on("mouseout.autocomplete",function(){t.selectedIndex=-1;r.children("."+e).removeClass(e)});r.on("click.autocomplete",f,function(){t.select(n(this).data("index"))});r.on("click.autocomplete",function(){clearTimeout(t.blurTimeoutId)});t.fixPositionCapture=function(){t.visible&&t.fixPosition()};n(window).on("resize.autocomplete",t.fixPositionCapture);t.el.on("keydown.autocomplete",function(n){t.onKeyPress(n)});t.el.on("keyup.autocomplete",function(n){t.onKeyUp(n)});t.el.on("blur.autocomplete",function(){t.onBlur()});t.el.on("focus.autocomplete",function(){t.onFocus()});t.el.on("change.autocomplete",function(n){t.onKeyUp(n)});t.el.on("input.autocomplete",function(n){t.onKeyUp(n)})},onFocus:function(){var n=this;n.fixPosition();n.el.val().length>=n.options.minChars&&n.onValueChange()},onBlur:function(){var n=this;n.blurTimeoutId=setTimeout(function(){n.hide()},200)},abortAjax:function(){var n=this;n.currentRequest&&(n.currentRequest.abort(),n.currentRequest=null)},setOptions:function(t){var r=this,i=n.extend({},r.options,t);r.isLocal=Array.isArray(i.lookup);r.isLocal&&(i.lookup=r.verifySuggestionsFormat(i.lookup));i.orientation=r.validateOrientation(i.orientation,"bottom");n(r.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex});this.options=i},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){var n=this;n.disabled=!0;clearTimeout(n.onChangeTimeout);n.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,i=n(t.suggestionsContainer),f=i.parent().get(0),a,s;if(f===document.body||t.options.forceFixPosition){var e=t.options.orientation,o=i.outerHeight(),h=t.el.outerHeight(),u=t.el.offset(),r={top:u.top,left:u.left};if(e==="auto"){var v=n(window).height(),c=n(window).scrollTop(),l=-c+u.top-o,y=c+v-(u.top+h+o);e=Math.max(l,y)===l?"top":"bottom"}r.top+=e==="top"?-o:h;f!==document.body&&(a=i.css("opacity"),t.visible||i.css("opacity",0).show(),s=i.offsetParent().offset(),r.top-=s.top,r.top+=f.scrollTop,r.left-=s.left,t.visible||i.css("opacity",a).hide());t.options.width==="auto"&&(r.width=t.el.outerWidth()+"px");i.css(r)}},isCursorAtEnd:function(){var i=this,n=i.el.val().length,r=i.element.selectionStart,t;return typeof r=="number"?r===n:document.selection?(t=document.selection.createRange(),t.moveStart("character",-n),n===t.text.length):!0},onKeyPress:function(n){var i=this;if(!i.disabled&&!i.visible&&n.which===t.DOWN&&i.currentValue){i.suggest();return}if(!i.disabled&&i.visible){switch(n.which){case t.ESC:i.el.val(i.currentValue);i.hide();break;case t.RIGHT:if(i.hint&&i.options.onHint&&i.isCursorAtEnd()){i.selectHint();break}return;case t.TAB:if(i.hint&&i.options.onHint){i.selectHint();return}if(i.selectedIndex===-1){i.hide();return}if(i.select(i.selectedIndex),i.options.tabDisabled===!1)return;break;case t.RETURN:if(i.selectedIndex===-1){i.hide();return}i.select(i.selectedIndex);break;case t.UP:i.moveUp();break;case t.DOWN:i.moveDown();break;default:return}n.stopImmediatePropagation();n.preventDefault()}},onKeyUp:function(n){var i=this;if(!i.disabled){switch(n.which){case t.UP:case t.DOWN:return}clearTimeout(i.onChangeTimeout);i.currentValue!==i.el.val()&&(i.findBestHint(),i.options.deferRequestBy>0?i.onChangeTimeout=setTimeout(function(){i.onValueChange()},i.options.deferRequestBy):i.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange){this.ignoreValueChange=!1;return}var t=this,r=t.options,u=t.el.val(),i=t.getQuery(u);if(t.selection&&t.currentValue!==i&&(t.selection=null,(r.onInvalidateSelection||n.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=u,t.selectedIndex=-1,r.triggerSelectOnValidInput&&t.isExactMatch(i)){t.select(0);return}i.length<r.minChars?t.hide():t.getSuggestions(i)},isExactMatch:function(n){var t=this.suggestions;return t.length===1&&t[0].value.toLowerCase()===n.toLowerCase()},getQuery:function(t){var r=this.options.delimiter,i;return r?(i=t.split(r),n.trim(i[i.length-1])):t},getSuggestionsLocal:function(t){var f=this,r=f.options,e=t.toLowerCase(),o=r.lookupFilter,u=parseInt(r.lookupLimit,10),i;return i={suggestions:n.grep(r.lookup,function(n){return o(n,t,e)})},u&&i.suggestions.length>u&&(i.suggestions=i.suggestions.slice(0,u)),i},getSuggestions:function(t){var u,i=this,r=i.options,f=r.serviceUrl,e,o,s;if(r.params[r.paramName]=t,r.onSearchStart.call(i.element,r.params)!==!1){if(e=r.ignoreParams?null:r.params,n.isFunction(r.lookup)){r.lookup(t,function(n){i.suggestions=n.suggestions;i.suggest();r.onSearchComplete.call(i.element,t,n.suggestions)});return}i.isLocal?u=i.getSuggestionsLocal(t):(n.isFunction(f)&&(f=f.call(i.element,t)),o=f+"?"+n.param(e||{}),u=i.cachedResponse[o]);u&&Array.isArray(u.suggestions)?(i.suggestions=u.suggestions,i.suggest(),r.onSearchComplete.call(i.element,t,u.suggestions)):i.isBadQuery(t)?r.onSearchComplete.call(i.element,t,[]):(i.abortAjax(),s={url:f,data:e,type:r.type,dataType:r.dataType},n.extend(s,r.ajaxSettings),i.currentRequest=n.ajax(s).done(function(n){var u;i.currentRequest=null;u=r.transformResult(n,t);i.processResponse(u,t,o);r.onSearchComplete.call(i.element,t,u.suggestions)}).fail(function(n,u,f){r.onSearchError.call(i.element,t,n,u,f)}))}},isBadQuery:function(n){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,i=t.length;i--;)if(n.indexOf(t[i])===0)return!0;return!1},hide:function(){var t=this,i=n(t.suggestionsContainer);n.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,i);t.visible=!1;t.selectedIndex=-1;clearTimeout(t.onChangeTimeout);n(t.suggestionsContainer).hide();t.signalHint(null)},suggest:function(){if(!this.suggestions.length){this.options.showNoSuggestionNotice?this.noSuggestions():this.hide();return}var t=this,i=t.options,o=i.groupBy,c=i.formatResult,u=t.getQuery(t.currentValue),s=t.classes.suggestion,l=t.classes.selected,r=n(t.suggestionsContainer),a=n(t.noSuggestionsContainer),h=i.beforeRender,f="",e,v=function(n){var t=n.data[o];return e===t?"":(e=t,i.formatGroup(n,e))};if(i.triggerSelectOnValidInput&&t.isExactMatch(u)){t.select(0);return}n.each(t.suggestions,function(n,t){o&&(f+=v(t,u,n));f+='<div class="'+s+'" data-index="'+n+'">'+c(t,u,n)+"<\/div>"});this.adjustContainerWidth();a.detach();r.html(f);n.isFunction(h)&&h.call(t.element,r,t.suggestions);t.fixPosition();r.show();i.autoSelectFirst&&(t.selectedIndex=0,r.scrollTop(0),r.children("."+s).first().addClass(l));t.visible=!0;t.findBestHint()},noSuggestions:function(){var t=this,r=t.options.beforeRender,i=n(t.suggestionsContainer),u=n(t.noSuggestionsContainer);this.adjustContainerWidth();u.detach();i.empty();i.append(u);n.isFunction(r)&&r.call(t.element,i,t.suggestions);t.fixPosition();i.show();t.visible=!0},adjustContainerWidth:function(){var t=this,r=t.options,i,u=n(t.suggestionsContainer);r.width==="auto"?(i=t.el.outerWidth(),u.css("width",i>0?i:300)):r.width==="flex"&&u.css("width","")},findBestHint:function(){var t=this,i=t.el.val().toLowerCase(),r=null;i&&(n.each(t.suggestions,function(n,t){var u=t.value.toLowerCase().indexOf(i)===0;return u&&(r=t),!u}),t.signalHint(r))},signalHint:function(t){var r="",i=this;t&&(r=i.currentValue+t.value.substr(i.currentValue.length));i.hintValue!==r&&(i.hintValue=r,i.hint=t,(this.options.onHint||n.noop)(r))},verifySuggestionsFormat:function(t){return t.length&&typeof t[0]=="string"?n.map(t,function(n){return{value:n,data:null}}):t},validateOrientation:function(t,i){return t=n.trim(t||"").toLowerCase(),n.inArray(t,["auto","bottom","top"])===-1&&(t=i),t},processResponse:function(n,t,i){var r=this,u=r.options;(n.suggestions=r.verifySuggestionsFormat(n.suggestions),u.noCache||(r.cachedResponse[i]=n,u.preventBadQueries&&!n.suggestions.length&&r.badQueries.push(t)),t===r.getQuery(r.currentValue))&&(r.suggestions=n.suggestions,r.suggest())},activate:function(t){var i=this,r,u=i.classes.selected,f=n(i.suggestionsContainer),e=f.find("."+i.classes.suggestion);return(f.find("."+u).removeClass(u),i.selectedIndex=t,i.selectedIndex!==-1&&e.length>i.selectedIndex)?(r=e.get(i.selectedIndex),n(r).addClass(u),r):null},selectHint:function(){var t=this,i=n.inArray(t.hint,t.suggestions);t.select(i)},select:function(n){var t=this;t.hide();t.onSelect(n)},moveUp:function(){var t=this;if(t.selectedIndex!==-1){if(t.selectedIndex===0){n(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected);t.selectedIndex=-1;t.ignoreValueChange=!1;t.el.val(t.currentValue);t.findBestHint();return}t.adjustScroll(t.selectedIndex-1)}},moveDown:function(){var n=this;n.selectedIndex!==n.suggestions.length-1&&n.adjustScroll(n.selectedIndex+1)},adjustScroll:function(t){var i=this,u=i.activate(t),r,f,o,e;u&&(e=n(u).outerHeight(),r=u.offsetTop,f=n(i.suggestionsContainer).scrollTop(),o=f+i.options.maxHeight-e,r<f?n(i.suggestionsContainer).scrollTop(r):r>o&&n(i.suggestionsContainer).scrollTop(r-i.options.maxHeight+e),i.options.preserveInput||(i.ignoreValueChange=!0,i.el.val(i.getValue(i.suggestions[t].value))),i.signalHint(null))},onSelect:function(t){var i=this,u=i.options.onSelect,r=i.suggestions[t];i.currentValue=i.getValue(r.value);i.currentValue===i.el.val()||i.options.preserveInput||i.el.val(i.currentValue);i.signalHint(null);i.suggestions=[];i.selection=r;n.isFunction(u)&&u.call(i.element,r)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete");n(window).off("resize.autocomplete",t.fixPositionCapture);n(t.suggestionsContainer).remove()}};n.fn.devbridgeAutocomplete=function(t,r){var u="autocomplete";return arguments.length?this.each(function(){var e=n(this),f=e.data(u);typeof t=="string"?f&&typeof f[t]=="function"&&f[t](r):(f&&f.dispose&&f.dispose(),f=new i(this,t),e.data(u,f))}):this.first().data(u)};n.fn.autocomplete||(n.fn.autocomplete=n.fn.devbridgeAutocomplete)}),function(n,t){t.fn.selectron=function(n){return this.each(function(){new i(t(this),n).build()})};var i=function(n,i){n.hasClass("selectron__select")||n[0].tagName!=="SELECT"||(this.opts=t.extend({},i),this.isTouch=!1,this.isDisabled=n.prop("disabled"),this.select=n,n[0].hasAttribute("data-selectron-search")&&(this.opts.search=n.data("selectron-search")))};i.prototype.build=function(){var n=this.select.attr("class");this.select.removeAttr("class").addClass("selectron__select").wrap('<div class="selectron"/>');this.wrapper=this.select.parent(".selectron");this.wrapper.addClass(n).toggleClass("selectron--disabled",this.isDisabled).toggleClass("selectron--is-touch",this.isTouch);this.isTouch||(this.opts.search&&(this.search=t("<input/>",{type:"text","class":"selectron__search",placeholder:"Search"}),this.noResults=t("<li/>",{"class":"selectron__no-results",text:this.select.data("no-results-text")||"Sorry there are no matching results"})),this.searchTerm="",this.trigger=t("<button/>",{"class":"selectron__trigger",type:"button"}),this.options=t("<ul/>",{"class":"selectron__options"}),this.wrapper.append(this.trigger,this.search,this.options),this.isOpen=!1,this.registerEvents(),this.populateOptions())};i.prototype.clearSearchTerm=function(){this.searchTerm=""};i.prototype.closeOptions=function(n){if(!this.optionsAreHovered&&(!n||n===!0&&!this.triggerIsHovered)){var t=this.options.find(".selectron__option--is-hovered");t.removeClass("selectron__option--is-hovered");this.options.removeClass("selectron__options--is-open selectron__options--is-overflowing");this.trigger.removeClass("selectron__trigger--is-open selectron__trigger--is-overflowing");this.search&&this.search.removeClass("selectron__search--is-open selectron__search--is-overflowing");this.isOpen=!1}};i.prototype.createOption=function(n,i){var o=n.val(),s=n.text(),h=n.attr("class"),c=n.prop("disabled"),l=n.is("[hidden]"),a=n.prop("selected"),u=n.data("icon"),f=this,r=t("<li/>",{"class":"selectron__option","data-value":o,text:s}),e;u&&(e=t("<img/>",{src:u,"class":"selectron__icon"}),r.prepend(e));r.addClass(h).toggleClass("selectron__option--is-disabled",c).toggleClass("selectron__option--hidden",l).toggleClass("selectron__option--is-selected",a).toggleClass("selectron__option--optgroup",i);r.on({click:function(){f.updateSelection(t(this))},mouseenter:function(){f.updateHover(t(this))}});return r};i.prototype.filterOptions=function(){var i=this.search.val().toLowerCase(),r=this.select.find('option:not([value=""])'),u=0,n,e;if(this.options.empty(),i===""){this.populateOptions();return}for(n=0;n<r.length;n++){var f=t(r[n]),o=f.text().toLowerCase(),s=o.indexOf(i)>-1;s&&(this.options.append(this.createOption(f)),u++)}u<1?this.options.append(this.noResults):(e=this.options.find(".selectron__option:first-child"),e.addClass("selectron__option--is-hovered"),this.noResults.remove())};i.prototype.handleKeyStrokes=function(n){var i=this.options.find(".selectron__option--is-hovered"),f=n.which===13,h=n.which===32,e=n.which===38,o=n.which===40,c=n.which===27,a=n.which>=48&&n.which<=57||n.which>=65&&n.which<=90||n.which===8,v=this,t,l,r,u,s;if(!this.isOpen&&f)return!1;if(!this.isOpen&&(e||o))return this.openOptions(),!1;if((c||f)&&(f&&this.updateSelection(i),c&&this.isOpen&&this.closeOptions()),h&&this.searchTerm==="")if(this.isOpen)this.closeOptions(),this.updateSelection(i);else{this.openOptions();return}if((e||o)&&(o?(t=i.is(":last-child")?this.options.find(".selectron__option:first-child"):i.next(),t.hasClass("selectron__option-group")&&(t=t.next())):e&&(t=i.is(":first-child")?this.options.find(".selectron__option:last-child"):i.prev(),t.hasClass("selectron__option-group")&&(t=t.prev())),this.updateHover(t),this.updateScrollPosition(t)),(a||h)&&!this.search)for(clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){v.clearSearchTerm()},500),this.searchTerm+=String.fromCharCode(n.which).toLowerCase(),l=this.options.find("li").length+1,r=1;r<l;r++)if(u=this.options.find(".selectron__option:nth-child("+r+")"),s=u.text().toLowerCase(),s.indexOf(this.searchTerm)>=0&&!this.placeholderExists||s.indexOf(this.searchTerm)>=0&&this.placeholderExists&&!u.is(":first-child")){u.addClass("selectron__option--is-hovered").siblings().removeClass("selectron__option--is-hovered");this.isOpen||this.updateSelection(i);return}};i.prototype.openOptions=function(){if(!this.isDisabled){var r=t(n),u=this.options.offset().top+this.options.height(),f=r.scrollTop(),e=r.height(),i=u>e+f,o=this.options.find(".selectron__option--is-selected");o.addClass("selectron__option--is-hovered");this.options.addClass("selectron__options--is-open").toggleClass("selectron__options--is-overflowing",i);this.trigger.addClass("selectron__trigger--is-open").toggleClass("selectron__trigger--is-overflowing",i);this.search&&this.search.addClass("selectron__search--is-open").toggleClass("selectron__search--is-overflowing",i).focus();this.isOpen=!0}};i.prototype.populateOptions=function(){var n=this,r=n.select.children(),i;r.each(function(){var i=t(this),e=i.is("optgroup"),f;if(e){var o=i.children(),s=i.attr("label"),r=i.data("icon"),h=i.attr("class"),u=t("<li/>",{"class":"selectron__option-group",text:s}).addClass(h);r&&(f=t("<img/>",{src:r,"class":"selectron__icon"}),u.prepend(f));n.options.append(u);o.each(function(){var i=t(this);n.options.append(n.createOption(i,!0))})}else n.options.append(n.createOption(i,!1))});i=this.options.find(".selectron__option:first-child");this.placeholderExists=i.data("value")==="";this.opts.search&&i.addClass("selectron__option--is-hovered");this.isOpen||this.updateTrigger()};i.prototype.registerEvents=function(){var n=this;this.trigger.on({click:function(i){t(this).focus();n.toggleOptions(i)},keyup:function(t){n.handleKeyStrokes(t)},keydown:function(n){var t=n.which===9;t||n.preventDefault()},blur:function(){n.search&&n.triggerIsHovered||!n.isOpen||n.closeOptions()},mouseenter:function(){n.triggerIsHovered=!0},mouseleave:function(){n.triggerIsHovered=!1}});this.select.on({"selectron.update":function(){n.options.empty();n.populateOptions();n.isDisabled=n.select.prop("disabled");n.wrapper.toggleClass("selectron--disabled",n.isDisabled)},"selectron.change":function(){n.updateValue(t(this).val())}});this.options.on({mouseenter:function(){n.optionsAreHovered=!0},mouseleave:function(){n.optionsAreHovered=!1}});if(this.search)this.search.on({keydown:function(n){var t=n.which===38,i=n.which===40;(i||t)&&n.preventDefault()},keyup:function(t){var i=t.which===38,r=t.which===40,u=t.which===37,f=t.which===39,e=t.which===13,o=t.which===27;if(o&&n.isOpen)return n.closeOptions(),!1;r||i||u||f||e?n.handleKeyStrokes(t):n.filterOptions(t)},blur:function(){n.closeOptions(!0)}})};i.prototype.toggleOptions=function(i){if(i.stopPropagation(),!this.isDisabled){var u=t(n),f=this.options.offset().top+this.options.height(),e=u.scrollTop(),o=u.height(),r=f>o+e,s=this.options.find(".selectron__option--is-selected");s.toggleClass("selectron__option--is-hovered");this.options.toggleClass("selectron__options--is-open").toggleClass("selectron__options--is-overflowing",r);this.trigger.toggleClass("selectron__trigger--is-open").toggleClass("selectron__trigger--is-overflowing",r);this.search&&this.search.toggleClass("selectron__search--is-open").toggleClass("selectron__search--is-overflowing",r);!this.isOpen&&this.search&&this.search.focus();this.isOpen=this.trigger.hasClass("selectron__trigger--is-open")}};i.prototype.updateHover=function(n){n.addClass("selectron__option--is-hovered").siblings().removeClass("selectron__option--is-hovered")};i.prototype.updateScrollPosition=function(n){var i=this.options.height(),t=n.position().top,r=n.outerHeight(),u=this.options.scrollTop();n.is(":first-child")?this.options.scrollTop(0):n.is(":last-child")?this.options.scrollTop(this.options[0].scrollHeight):t+r-u>i?this.options.scrollTop(t-(i-r)):t-u<0&&this.options.scrollTop(t)};i.prototype.updateSelection=function(n){var t=n.data("value");n.addClass("selectron__option--is-selected").siblings().removeClass("selectron__option--is-selected");this.updateTrigger();this.select.val(t).trigger("change");this.search?(this.search.val(""),this.options.empty(),this.populateOptions()):this.isOpen&&(this.closeOptions(),this.trigger.focus())};i.prototype.updateTrigger=function(){var n=this.options.find(".selectron__option--is-selected"),t=n.text(),i=n.data("value"),r=i===""?!0:!1;this.trigger.html(t);this.trigger.toggleClass("selectron__trigger--is-filled",!r);this.optionsAreHovered=!1;this.isOpen&&(this.closeOptions(),this.trigger.focus())};i.prototype.updateValue=function(n){this.options.find('[data-value="'+n+'"]').addClass("selectron__option--is-selected").siblings().removeClass("selectron__option--is-selected");this.updateTrigger()}}(window,jQuery);!function(n){"use strict";function t(t){var i=n(t),u=n(":focus"),f=0,r;1===u.length&&(r=i.index(u),r+1<i.length&&(f=r+1));i.eq(f).focus()}function i(t){var i=n(t),u=n(":focus"),f=i.length-1,r;1===u.length&&(r=i.index(u),r>0&&(f=r-1));i.eq(f).focus()}function r(t){function e(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}var i,r,u,f=t.nodeName.toLowerCase(),o=!isNaN(n.attr(t,"tabindex"));return"area"===f?(i=t.parentNode,r=i.name,t.href&&r&&"map"===i.nodeName.toLowerCase()?(u=n("img[usemap=#"+r+"]")[0],!!u&&e(u)):!1):(/input|select|textarea|button|object/.test(f)?!t.disabled:"a"===f?t.href||o:o)&&e(t)}n.focusNext=function(){t(":focusable")};n.focusPrev=function(){i(":focusable")};n.tabNext=function(){t(":tabbable")};n.tabPrev=function(){i(":tabbable")};n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return r(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),u=isNaN(i);return(u||i>=0)&&r(t,!u)}})}(jQuery);var $jscomp={scope:{},findInternal:function(n,t,i){var f,r,u;for(n instanceof String&&(n=String(n)),f=n.length,r=0;r<f;r++)if(u=n[r],t.call(i,u,r,n))return{i:r,v:u};return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(n,t,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");n!=Array.prototype&&n!=Object.prototype&&(n[t]=i.value)};$jscomp.getGlobal=function(n){return"undefined"!=typeof window&&window===n?n:"undefined"!=typeof global&&null!=global?global:n};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(n,t,i,r){if(t){for(i=$jscomp.global,n=n.split("."),r=0;r<n.length-1;r++){var u=n[r];u in i||(i[u]={});i=i[u]}n=n[n.length-1];r=i[n];t=t(r);t!=r&&null!=t&&$jscomp.defineProperty(i,n,{configurable:!0,writable:!0,value:t})}};$jscomp.polyfill("Array.prototype.find",function(n){return n?n:function(n,t){return $jscomp.findInternal(this,n,t).v}},"es6-impl","es3"),function(n,t,i){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(t||i)}(function(n){var i=function(t,i,r){var u={invalid:[],getCaret:function(){try{var n,i=0,e=t.get(0),f=document.selection,r=e.selectionStart;return f&&-1===navigator.appVersion.indexOf("MSIE 10")?(n=f.createRange(),n.moveStart("character",-u.val().length),i=n.text.length):(r||"0"===r)&&(i=r),i}catch(o){}},setCaret:function(n){try{if(t.is(":focus")){var i,r=t.get(0);r.setSelectionRange?r.setSelectionRange(n,n):(i=r.createTextRange(),i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",n),i.select())}}catch(u){}},events:function(){t.on("keydown.mask",function(n){t.data("mask-keycode",n.keyCode||n.which);t.data("mask-previus-value",t.val());t.data("mask-previus-caret-pos",u.getCaret());u.maskDigitPosMapOld=u.maskDigitPosMap}).on(n.jMaskGlobals.useInput?"input.mask":"keyup.mask",u.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}).on("change.mask",function(){t.data("changed",!0)}).on("blur.mask",function(){e===u.val()||t.data("changed")||t.trigger("change");t.data("changed",!1)}).on("blur.mask",function(){e=u.val()}).on("focus.mask",function(t){!0===r.selectOnFocus&&n(t.target).select()}).on("focusout.mask",function(){r.clearIfNotMatch&&!o.test(u.val())&&u.val("")})},getRegexMask:function(){for(var n=[],t,e,o,r,u=0;u<i.length;u++)(t=f.translation[i.charAt(u)])?(e=t.pattern.toString().replace(/.{1}$|^.{1}/g,""),o=t.optional,(t=t.recursive)?(n.push(i.charAt(u)),r={digit:i.charAt(u),pattern:e}):n.push(o||t?e+"?":e)):n.push(i.charAt(u).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return n=n.join(""),r&&(n=n.replace(new RegExp("("+r.digit+"(.*"+r.digit+")?)"),"($1)?").replace(new RegExp(r.digit,"g"),r.pattern)),new RegExp(n)},destroyEvents:function(){t.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(n){var i=t.is("input")?"val":"text";return 0<arguments.length?(t[i]()!==n&&t[i](n),i=t):i=t[i](),i},calculateCaretPosition:function(){var f=t.data("mask-previus-value")||"",e=u.getMasked(),n=u.getCaret();if(f!==e){for(var r=t.data("mask-previus-caret-pos")||0,e=e.length,h=f.length,c=f=0,o=0,s=0,i=n;i<e&&u.maskDigitPosMap[i];i++)c++;for(i=n-1;0<=i&&u.maskDigitPosMap[i];i--)f++;for(i=n-1;0<=i;i--)u.maskDigitPosMap[i]&&o++;for(i=r-1;0<=i;i--)u.maskDigitPosMapOld[i]&&s++;n>h?n=10*e:r>=n&&r!==h?u.maskDigitPosMapOld[n]||(r=n,n=n-(s-o)-f,u.maskDigitPosMap[n]&&(n=r)):n>r&&(n=n+(o-s)+c)}return n},behaviour:function(i){var r,e;return i=i||window.event,u.invalid=[],r=t.data("mask-keycode"),-1===n.inArray(r,f.byPassKeys)?(r=u.getMasked(),e=u.getCaret(),setTimeout(function(){u.setCaret(u.calculateCaretPosition())},10),u.val(r),u.setCaret(e),u.callbacks(i)):void 0},getMasked:function(n,t){var h=[],l=void 0===t?u.val():t+"",e=0,p=i.length,o=0,w=l.length,s=1,b="push",a=-1,d=0,g=[],v,nt,tt;for(r.reverse?(b="unshift",s=-1,v=0,e=p-1,o=w-1,nt=function(){return-1<e&&-1<o}):(v=p-1,nt=function(){return e<p&&o<w});nt();){var k=i.charAt(e),y=l.charAt(o),c=f.translation[k];c?(y.match(c.pattern)?(h[b](y),c.recursive&&(-1===a?a=e:e===v&&e!==a&&(e=a-s),v===a&&(e-=s)),e+=s):y===tt?(d--,tt=void 0):c.optional?(e+=s,o-=s):c.fallback?(h[b](c.fallback),e+=s,o-=s):u.invalid.push({p:o,v:y,e:c.pattern}),o+=s):(n||h[b](k),y===k?(g.push(o),o+=s):(tt=k,g.push(o+d),d++),e+=s)}return l=i.charAt(v),p!==w+1||f.translation[l]||h.push(l),h=h.join(""),u.mapMaskdigitPositions(h,g,w),h},mapMaskdigitPositions:function(n,t,i){for(n=r.reverse?n.length-i:0,u.maskDigitPosMap={},i=0;i<t.length;i++)u.maskDigitPosMap[t[i]+n]=1},callbacks:function(n){var f=u.val(),h=f!==e,s=[f,n,t,r],o=function(n,t,i){"function"==typeof r[n]&&t&&r[n].apply(this,i)};o("onChange",!0===h,s);o("onKeyPress",!0===h,s);o("onComplete",f.length===i.length,s);o("onInvalid",0<u.invalid.length,[f,n,t,u.invalid,r])}},f,e,o;t=n(t);f=this;e=u.val();i="function"==typeof i?i(u.val(),void 0,t,r):i;f.mask=i;f.options=r;f.remove=function(){var n=u.getCaret();return u.destroyEvents(),u.val(f.getCleanVal()),u.setCaret(n),t};f.getCleanVal=function(){return u.getMasked(!0)};f.getMaskedVal=function(n){return u.getMasked(!1,n)};f.init=function(e){var s,h;if(e=e||!1,r=r||{},f.clearIfNotMatch=n.jMaskGlobals.clearIfNotMatch,f.byPassKeys=n.jMaskGlobals.byPassKeys,f.translation=n.extend({},n.jMaskGlobals.translation,r.translation),f=n.extend(!0,{},f,r),o=u.getRegexMask(),e)u.events(),u.val(u.getMasked());else{for(r.placeholder&&t.attr("placeholder",r.placeholder),t.data("mask")&&t.attr("autocomplete","off"),e=0,s=!0;e<i.length;e++)if(h=f.translation[i.charAt(e)],h&&h.recursive){s=!1;break}s&&t.attr("maxlength",i.length);u.destroyEvents();u.events();e=u.getCaret();u.val(u.getMasked());u.setCaret(e)}};f.init(!t.is("input"))};n.maskWatchers={};var u=function(){var t=n(this),u={},f=t.attr("data-mask");return t.attr("data-mask-reverse")&&(u.reverse=!0),t.attr("data-mask-clearifnotmatch")&&(u.clearIfNotMatch=!0),"true"===t.attr("data-mask-selectonfocus")&&(u.selectOnFocus=!0),r(t,f,u)?t.data("mask",new i(this,f,u)):void 0},r=function(t,i,r){r=r||{};var u=n(t).data("mask"),f=JSON.stringify;t=n(t).val()||n(t).text();try{return"function"==typeof i&&(i=i(t)),"object"!=typeof u||f(u.options)!==f(r)||u.mask!==i}catch(e){}},t=function(n){var i=document.createElement("div"),t;return n="on"+n,t=n in i,t||(i.setAttribute(n,"return;"),t="function"==typeof i[n]),t};n.fn.mask=function(t,u){u=u||{};var f=this.selector,e=n.jMaskGlobals,s=e.watchInterval,e=u.watchInputs||e.watchInputs,o=function(){if(r(this,t,u))return n(this).data("mask",new i(this,t,u))};return n(this).each(o),f&&""!==f&&e&&(clearInterval(n.maskWatchers[f]),n.maskWatchers[f]=setInterval(function(){n(document).find(f).each(o)},s)),this};n.fn.masked=function(n){return this.data("mask").getMaskedVal(n)};n.fn.unmask=function(){return clearInterval(n.maskWatchers[this.selector]),delete n.maskWatchers[this.selector],this.each(function(){var t=n(this).data("mask");t&&t.remove().removeData("mask")})};n.fn.cleanVal=function(){return this.data("mask").getCleanVal()};n.applyDataMask=function(t){t=t||n.jMaskGlobals.maskElements;(t instanceof n?t:n(t)).filter(n.jMaskGlobals.dataMaskAttr).each(u)};t={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&t("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};n.jMaskGlobals=n.jMaskGlobals||{};t=n.jMaskGlobals=n.extend(!0,{},t,n.jMaskGlobals);t.dataMask&&n.applyDataMask();setInterval(function(){n.jMaskGlobals.watchDataMask&&n.applyDataMask()},t.watchInterval)},window.jQuery,window.Zepto),function(n){function it(n,t,i){switch(arguments.length){case 2:return n!=null?n:t;case 3:return n!=null?n:t!=null?t:i;default:throw new Error("Implement me");}}function g(n,t){return dr.call(n,t)}function vt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function pi(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function o(n,t){var i=!0;return nt(function(){return i&&(pi(n),i=!1),t.apply(this,arguments)},t)}function bu(n,t){vi[n]||(pi(t),vi[n]=!0)}function wi(n,t){return function(i){return r(n.call(this,i),t)}}function ku(n,t){return function(i){return this.localeData().ordinal(n.call(this,i),t)}}function du(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)}function gu(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 bi(){}function et(n,i){i!==!1&&er(n);ki(this,n);this._d=new Date(+n._d);at===!1&&(at=!0,t.updateOffset(this),at=!1)}function yt(n){var i=ir(n),r=i.year||0,u=i.quarter||0,f=i.month||0,e=i.week||0,o=i.day||0,s=i.hour||0,h=i.minute||0,c=i.second||0,l=i.millisecond||0;this._milliseconds=+l+c*1e3+h*6e4+s*36e5;this._days=+o+e*7;this._months=+f+u*3+r*12;this._data={};this._locale=t.localeData();this._bubble()}function nt(n,t){for(var i in t)g(t,i)&&(n[i]=t[i]);return g(t,"toString")&&(n.toString=t.toString),g(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ki(n,t){var u,i,r;if(typeof t._isAMomentObject!="undefined"&&(n._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(n._i=t._i),typeof t._f!="undefined"&&(n._f=t._f),typeof t._l!="undefined"&&(n._l=t._l),typeof t._strict!="undefined"&&(n._strict=t._strict),typeof t._tzm!="undefined"&&(n._tzm=t._tzm),typeof t._isUTC!="undefined"&&(n._isUTC=t._isUTC),typeof t._offset!="undefined"&&(n._offset=t._offset),typeof t._pf!="undefined"&&(n._pf=t._pf),typeof t._locale!="undefined"&&(n._locale=t._locale),ut.length>0)for(u in ut)i=ut[u],r=t[i],typeof r!="undefined"&&(n[i]=r);return n}function h(n){return n<0?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function di(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 nf(n,t){var i;return t=bt(t,n),n.isBefore(t)?i=di(n,t):(i=di(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function gi(n,i){return function(r,u){var f,e;return u===null||isNaN(+u)||(bu(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),e=r,r=u,u=e),r=typeof r=="string"?+r:r,f=t.duration(r,u),nr(this,f,n),this}}function nr(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&pr(n,"Date",ii(n,"Date")+f*r);e&&yr(n,ii(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function ot(n){return Object.prototype.toString.call(n)==="[object Array]"}function pt(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function tr(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;u<e;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function e(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=pu[n]||wu[t]||t}return n}function ir(n){var r={},t;for(var i in n)g(n,i)&&(t=e(i),t&&(r[t]=n[i]));return r}function tf(i){var r,u;if(i.indexOf("week")===0)r=7,u="day";else if(i.indexOf("month")===0)r=12,u="month";else return;t[i]=function(f,e){var o,s,c=t._locale[i],h=[];if(typeof f=="number"&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t._locale,i,f||"")},e!=null)return s(e);for(o=0;o<r;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function wt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function rr(n,i,r){return tt(t([n,11,31+i-r]),i,r).week}function ur(n){return fr(n)?366:365}function fr(n){return n%4==0&&n%100!=0||n%400==0}function er(n){var t;n._a&&n._pf.overflow===-2&&(t=n._a[l]<0||n._a[l]>11?l:n._a[s]<1||n._a[s]>wt(n._a[c],n._a[l])?s:n._a[f]<0||n._a[f]>24||n._a[f]===24&&(n._a[w]!==0||n._a[b]!==0||n._a[k]!==0)?f:n._a[w]<0||n._a[w]>59?w:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>999?k:-1,n._pf._overflowDayOfYear&&(t<c||t>s)&&(t=s),n._pf.overflow=t)}function or(t){return t._isValid==null&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&t._pf.charsLeftOver===0&&t._pf.unusedTokens.length===0&&t._pf.bigHour===n)),t._isValid}function sr(n){return n?n.toLowerCase().replace("_","-"):n}function rf(n){for(var r=0,i,t,f,u;r<n.length;){for(u=sr(n[r]).split("-"),i=u.length,t=sr(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=hr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&tr(u,t,!0)>=i-1)break;i--}r++}return null}function hr(n){var i=null;if(!d[n]&&ui)try{i=t.locale();require("./locale/"+n);t.locale(i)}catch(r){}return d[n]}function bt(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(t.isMoment(n)||pt(n)?+n:+t(n))-+r,r._d.setTime(+r._d+u),t.updateOffset(r,!1),r):t(n).local()}function uf(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ff(n){for(var i=n.match(fi),t=0,r=i.length;t<r;t++)i[t]=a[i[t]]?a[i[t]]:uf(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function kt(n,t){return n.isValid()?(t=cr(t,n.localeData()),lt[t]||(lt[t]=ff(t)),lt[t](n)):n.localeData().invalidDate()}function cr(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ft.lastIndex=0;i>=0&&ft.test(n);)n=n.replace(ft,r),ft.lastIndex=0,i-=1;return n}function ef(n,t){var i=t._strict;switch(n){case"Q":return oi;case"DDDD":return hi;case"YYYY":case"GGGG":case"gggg":return i?cu:ru;case"Y":case"G":case"g":return au;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?lu:uu;case"S":if(i)return oi;case"SS":if(i)return si;case"SSS":if(i)return hi;case"DDD":return iu;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return eu;case"a":case"A":return t._locale._meridiemParse;case"x":return su;case"X":return hu;case"Z":case"ZZ":return st;case"T":return ou;case"SSSS":return fu;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?si:ei;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return ei;case"Do":return i?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return new RegExp(af(lf(n.replace("\\","")),"i"))}}function dt(n){n=n||"";var r=n.match(st)||[],f=r[r.length-1]||[],t=(f+"").match(yu)||["-",0,0],u=+(t[1]*60)+i(t[2]);return t[0]==="+"?u:-u}function of(n,r,u){var o,e=u._a;switch(n){case"Q":r!=null&&(e[l]=(i(r)-1)*3);break;case"M":case"MM":r!=null&&(e[l]=i(r)-1);break;case"MMM":case"MMMM":o=u._locale.monthsParse(r,n,u._strict);o!=null?e[l]=o:u._pf.invalidMonth=r;break;case"D":case"DD":r!=null&&(e[s]=i(r));break;case"Do":r!=null&&(e[s]=i(parseInt(r.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":r!=null&&(u._dayOfYear=i(r));break;case"YY":e[c]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":e[c]=i(r);break;case"a":case"A":u._meridiem=r;break;case"h":case"hh":u._pf.bigHour=!0;case"H":case"HH":e[f]=i(r);break;case"m":case"mm":e[w]=i(r);break;case"s":case"ss":e[b]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":e[k]=i(("0."+r)*1e3);break;case"x":u._d=new Date(i(r));break;case"X":u._d=new Date(parseFloat(r)*1e3);break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=dt(r);break;case"dd":case"ddd":case"dddd":o=u._locale.weekdaysParse(r);o!=null?(u._w=u._w||{},u._w.d=o):u._pf.invalidWeekday=r;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":n=n.substr(0,1);case"gggg":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=i(r));break;case"gg":case"GG":u._w=u._w||{};u._w[n]=t.parseTwoDigitYear(r)}}function sf(n){var i,o,f,u,r,e,s;i=n._w;i.GG!=null||i.W!=null||i.E!=null?(r=1,e=4,o=it(i.GG,n._a[c],tt(t(),1,4).year),f=it(i.W,1),u=it(i.E,1)):(r=n._locale._week.dow,e=n._locale._week.doy,o=it(i.gg,n._a[c],tt(t(),r,e).year),f=it(i.w,1),i.d!=null?(u=i.d,u<r&&++f):u=i.e!=null?i.e+r:r);s=ne(o,f,u,e,r);n._a[c]=s.year;n._dayOfYear=s.dayOfYear}function gt(n){var t,i,r=[],u,e;if(!n._d){for(u=cf(n),n._w&&n._a[s]==null&&n._a[l]==null&&sf(n),n._dayOfYear&&(e=it(n._a[c],u[c]),n._dayOfYear>ur(e)&&(n._pf._overflowDayOfYear=!0),i=ti(e,0,n._dayOfYear),n._a[l]=i.getUTCMonth(),n._a[s]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[f]===24&&n._a[w]===0&&n._a[b]===0&&n._a[k]===0&&(n._nextDay=!0,n._a[f]=0);n._d=(n._useUTC?ti:bf).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[f]=24)}}function hf(n){var t;n._d||(t=ir(n._i),n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],gt(n))}function cf(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ni(i){if(i._f===t.ISO_8601){lr(i);return}i._a=[];i._pf.empty=!0;for(var r=""+i._i,u,e,h,l=r.length,c=0,s=cr(i._f,i._locale).match(fi)||[],o=0;o<s.length;o++)e=s[o],u=(r.match(ef(e,i))||[])[0],u&&(h=r.substr(0,r.indexOf(u)),h.length>0&&i._pf.unusedInput.push(h),r=r.slice(r.indexOf(u)+u.length),c+=u.length),a[e]?(u?i._pf.empty=!1:i._pf.unusedTokens.push(e),of(e,u,i)):i._strict&&!u&&i._pf.unusedTokens.push(e);i._pf.charsLeftOver=l-c;r.length>0&&i._pf.unusedInput.push(r);i._pf.bigHour===!0&&i._a[f]<=12&&(i._pf.bigHour=n);i._a[f]=gu(i._locale,i._a[f],i._meridiem);gt(i);er(i)}function lf(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function af(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function vf(n){var t,f,u,r,i;if(n._f.length===0){n._pf.invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=ki({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._pf=vt(),t._f=n._f[r],ni(t),or(t))&&(i+=t._pf.charsLeftOver,i+=t._pf.unusedTokens.length*10,t._pf.score=i,(u==null||i<u)&&(u=i,f=t));nt(n,f||t)}function lr(n){var t,i,r=n._i,u=vu.exec(r);if(u){for(n._pf.iso=!0,t=0,i=ht.length;t<i;t++)if(ht[t][1].exec(r)){n._f=ht[t][0]+(u[6]||" ");break}for(t=0,i=ct.length;t<i;t++)if(ct[t][1].exec(r)){n._f+=ct[t][0];break}r.match(st)&&(n._f+="Z");ni(n)}else n._isValid=!1}function yf(n){lr(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function pf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function wf(i){var r=i._i,u;r===n?i._d=new Date:pt(r)?i._d=new Date(+r):(u=gr.exec(r))!==null?i._d=new Date(+u[1]):typeof r=="string"?yf(i):ot(r)?(i._a=pf(r.slice(0),function(n){return parseInt(n,10)}),gt(i)):typeof r=="object"?hf(i):typeof r=="number"?i._d=new Date(r):t.createFromInputFallback(i)}function bf(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function ti(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function kf(n,t){if(typeof n=="string")if(isNaN(n)){if(n=t.weekdaysParse(n),typeof n!="number")return null}else n=parseInt(n,10);return n}function df(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function gf(n,i,r){var u=t.duration(n).abs(),c=p(u.as("s")),e=p(u.as("m")),o=p(u.as("h")),s=p(u.as("d")),h=p(u.as("M")),l=p(u.as("y")),f=c<y.s&&["s",c]||e===1&&["m"]||e<y.m&&["mm",e]||o===1&&["h"]||o<y.h&&["hh",o]||s===1&&["d"]||s<y.d&&["dd",s]||h===1&&["M"]||h<y.M&&["MM",h]||l===1&&["y"]||["yy",l];return f[2]=i,f[3]=+n>0,f[4]=r,df.apply({},f)}function tt(n,i,r){var e=r-i,u=r-n.day(),f;return u>e&&(u-=7),u<e-7&&(u+=7),f=t(n).add(u,"d"),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ne(n,t,i,r,u){var f=ti(n,0,1).getUTCDay(),o,e;return f=f===0?7:f,i=i!=null?i:u,o=u-f+(f>r?7:0)-(f<u?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:ur(n-1)+e}}function ar(i){var r=i._i,f=i._f,u;return(i._locale=i._locale||t.localeData(i._l),r===null||f===n&&r==="")?t.invalid({nullInput:!0}):(typeof r=="string"&&(i._i=r=i._locale.preparse(r)),t.isMoment(r))?new et(r,!0):(f?ot(f)?vf(i):ni(i):wf(i),u=new et(i),u._nextDay&&(u.add(1,"d"),u._nextDay=n),u)}function vr(n,i){var u,r;if(i.length===1&&ot(i[0])&&(i=i[0]),!i.length)return t();for(u=i[0],r=1;r<i.length;++r)i[r][n](u)&&(u=i[r]);return u}function yr(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),wt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function ii(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function pr(n,t,i){return t==="Month"?yr(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function v(n,i){return function(r){return r!=null?(pr(this,n,r),t.updateOffset(this,i),this):ii(this,n)}}function wr(n){return n*400/146097}function br(n){return n*146097/400}function te(n){t.duration.fn[n]=function(){return this._data[n]}}function kr(n){typeof ender=="undefined"&&(ri=rt.moment,rt.moment=n?o("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,rt=typeof global!="undefined"&&(typeof window=="undefined"||window===global.window)?global:this,ri,p=Math.round,dr=Object.prototype.hasOwnProperty,u,c=0,l=1,s=2,f=3,w=4,b=5,k=6,d={},ut=[],ui=typeof module!="undefined"&&module&&module.exports,gr=/^\/?Date\((\-?\d+)/i,nu=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,tu=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,fi=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,ft=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ei=/\d\d?/,iu=/\d{1,3}/,ru=/\d{1,4}/,uu=/[+\-]?\d{1,6}/,fu=/\d+/,eu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,st=/Z|[\+\-]\d\d:?\d\d/gi,ou=/T/i,su=/[\+\-]?\d+/,hu=/[\+\-]?\d+(\.\d{1,3})?/,oi=/\d/,si=/\d\d/,hi=/\d{3}/,cu=/\d{4}/,lu=/[+-]?\d{6}/,au=/[+-]?\d+/,vu=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ct=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],yu=/([\+\-]|\d\d)/gi,ie="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),ci={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},pu={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},wu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lt={},y={s:45,m:45,h:22,d:26,M:11},li="DDD w W M D d".split(" "),ai="M D H h m s w W".split(" "),a={M:function(){return this.month()+1},MMM:function(n){return this.localeData().monthsShort(this,n)},MMMM:function(n){return this.localeData().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.localeData().weekdaysMin(this,n)},ddd:function(n){return this.localeData().weekdaysShort(this,n)},dddd:function(n){return this.localeData().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=this.utcOffset(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=this.utcOffset(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},vi={},yi=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],at=!1;li.length;)u=li.pop(),a[u+"o"]=ku(a[u],u);while(ai.length)u=ai.pop(),a[u+u]=wi(a[u],2);for(a.DDDD=wi(a.DDD,3),nt(bi.prototype,{set:function(n){var t;for(var i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n,i,r){var u,f,e;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;u<12;u++)if((f=t.utc([2e3,u]),r&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),r||this._monthsParse[u]||(e="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[u]=new RegExp(e.replace(".",""),"i")),r&&i==="MMMM"&&this._longMonthsParse[u].test(n))||r&&i==="MMM"&&this._shortMonthsParse[u].test(n)||!r&&this._monthsParse[u].test(n))return u},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;i<7;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return(n+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t,i){var r=this._calendar[n];return typeof r=="function"?r.apply(t,[i]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(n){return n},postformat:function(n){return n},week:function(n){return tt(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=vt(),ar(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=o("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.min=function(){var n=[].slice.call(arguments,0);return vr("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return vr("isAfter",n)},t.utc=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=vt(),ar(f).utc()},t.unix=function(n){return t(n*1e3)},t.duration=function(n,r){var u=n,e=null,o,c,h,l;return t.isDuration(n)?u={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(u={},r?u[r]=n:u.milliseconds=n):(e=nu.exec(n))?(o=e[1]==="-"?-1:1,u={y:0,d:i(e[s])*o,h:i(e[f])*o,m:i(e[w])*o,s:i(e[b])*o,ms:i(e[k])*o}):(e=tu.exec(n))?(o=e[1]==="-"?-1:1,h=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*o},u={y:h(e[2]),M:h(e[3]),d:h(e[4]),h:h(e[5]),m:h(e[6]),s:h(e[7]),w:h(e[8])}):u==null?u={}:typeof u=="object"&&("from"in u||"to"in u)&&(l=nf(t(u.from),t(u.to)),u={},u.ms=l.milliseconds,u.M=l.months),c=new yt(u),t.isDuration(n)&&g(n,"_locale")&&(c._locale=n._locale),c},t.version="2.9.0",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.ISO_8601=function(){},t.momentProperties=ut,t.updateOffset=function(){},t.relativeTimeThreshold=function(t,i){return y[t]===n?!1:i===n?y[t]:(y[t]=i,!0)},t.lang=o("moment.lang is deprecated. Use moment.locale instead.",function(n,i){return t.locale(n,i)}),t.locale=function(n,i){var r;return n&&(r=typeof i!="undefined"?t.defineLocale(n,i):t.localeData(n),r&&(t.duration._locale=t._locale=r)),t._locale._abbr},t.defineLocale=function(n,i){return i!==null?(i.abbr=n,d[n]||(d[n]=new bi),d[n].set(i),t.locale(n),d[n]):(delete d[n],null)},t.langData=o("moment.langData is deprecated. Use moment.localeData instead.",function(n){return t.localeData(n)}),t.localeData=function(n){var i;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return t._locale;if(!ot(n)){if(i=hr(n),i)return i;n=[n]}return rf(n)},t.isMoment=function(n){return n instanceof et||n!=null&&g(n,"_isAMomentObject")},t.isDuration=function(n){return n instanceof yt},u=yi.length-1;u>=0;--u)tf(yi[u]);t.normalizeUnits=function(n){return e(n)};t.invalid=function(n){var i=t.utc(NaN);return n!=null?nt(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};t.isDate=pt;nt(t.fn=et.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d-(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():kt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):kt(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return or(this)},isDSTShifted:function(){return this._a?this.isValid()&&tr(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return nt({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(n){return this.utcOffset(0,n)},local:function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(n){var i=kt(this,n||t.defaultFormat);return this.localeData().postformat(i)},add:gi(1,"add"),subtract:gi(-1,"subtract"),diff:function(n,t,i){var f=bt(n,this),o=(f.utcOffset()-this.utcOffset())*6e4,u,r;return t=e(t),t==="year"||t==="month"||t==="quarter"?(r=du(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-o)/864e5:t==="week"?(u-o)/6048e5:u),i?r:h(r)},from:function(n,i){return t.duration({to:this,from:n}).locale(this.locale()).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(n){var r=n||t(),u=bt(r,this).startOf("day"),i=this.diff(u,"days",!0),f=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(f,this,t(r)))},isLeapYear:function(){return fr(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=kf(n,this.localeData()),this.add(n-t,"d")):t},month:v("Month",!0),startOf:function(n){n=e(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":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},endOf:function(t){return(t=e(t),t===n||t==="millisecond")?this:this.startOf(t).add(1,t==="isoWeek"?"week":t).subtract(1,"ms")},isAfter:function(n,i){var r;return i=e(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this>+n):(r=t.isMoment(n)?+n:+t(n),r<+this.clone().startOf(i))},isBefore:function(n,i){var r;return i=e(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this<+n):(r=t.isMoment(n)?+n:+t(n),+this.clone().endOf(i)<r)},isBetween:function(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)},isSame:function(n,i){var r;return i=e(i||"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this==+n):(r=+t(n),+this.clone().startOf(i)<=r&&r<=+this.clone().endOf(i))},min:o("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n<this?this:n}),max:o("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n>this?this:n}),zone:o("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}),utcOffset:function(n,i){var r=this._offset||0,u;return n!=null?(typeof n=="string"&&(n=dt(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&i&&(u=this._dateUtcOffset()),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!i||this._changeInProgress?nr(this,t.duration(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&this._offset===0},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(dt(this._i)),this},hasAlignedHourOffset:function(n){return n=n?t(n).utcOffset():0,(this.utcOffset()-n)%60==0},daysInMonth:function(){return wt(this.year(),this.month())},dayOfYear:function(n){var i=p((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return n==null?i:this.add(n-i,"d")},quarter:function(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)},weekYear:function(n){var t=tt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")},isoWeekYear:function(n){var t=tt(this,1,4).year;return n==null?t:this.add(n-t,"y")},week:function(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")},isoWeek:function(n){var t=tt(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")},weekday:function(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")},isoWeekday:function(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return rr(this.year(),1,4)},weeksInYear:function(){var n=this.localeData()._week;return rr(this.year(),n.dow,n.doy)},get:function(n){return n=e(n),this[n]()},set:function(n,t){var i;if(typeof n=="object")for(i in n)this.set(i,n[i]);else n=e(n),typeof this[n]=="function"&&this[n](t);return this},locale:function(i){var r;return i===n?this._locale._abbr:(r=t.localeData(i),r!=null&&(this._locale=r),this)},lang:o("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===n?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return-Math.round(this._d.getTimezoneOffset()/15)*15}});t.fn.millisecond=t.fn.milliseconds=v("Milliseconds",!1);t.fn.second=t.fn.seconds=v("Seconds",!1);t.fn.minute=t.fn.minutes=v("Minutes",!1);t.fn.hour=t.fn.hours=v("Hours",!0);t.fn.date=v("Date",!0);t.fn.dates=o("dates accessor is deprecated. Use date instead.",v("Date",!0));t.fn.year=v("FullYear",!0);t.fn.years=o("years accessor is deprecated. Use year instead.",v("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;t.fn.isUTC=t.fn.isUtc;nt(t.duration.fn=yt.prototype,{_bubble:function(){var o=this._milliseconds,t=this._days,i=this._months,n=this._data,u,f,e,r=0;n.milliseconds=o%1e3;u=h(o/1e3);n.seconds=u%60;f=h(u/60);n.minutes=f%60;e=h(f/60);n.hours=e%24;t+=h(e/24);r=h(wr(t));t-=h(br(r));i+=h(t/30);t%=30;r+=h(i/12);i%=12;n.days=t;n.months=i;n.years=r},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return h(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+i(this._months/12)*31536e6},humanize:function(n){var t=gf(this,!n,this.localeData());return n&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=e(n),this[n.toLowerCase()+"s"]()},as:function(n){var t,i;if(n=e(n),n==="month"||n==="year")return t=this._days+this._milliseconds/864e5,i=this._months+wr(t)*12,n==="month"?i:i/12;t=this._days+Math.round(br(this._months/12));switch(n){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return t*24+this._milliseconds/36e5;case"minute":return t*1440+this._milliseconds/6e4;case"second":return t*86400+this._milliseconds/1e3;case"millisecond":return Math.floor(t*864e5)+this._milliseconds;default:throw new Error("Unknown unit "+n);}},lang:t.fn.lang,locale:t.fn.locale,toIsoString:o("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}});t.duration.fn.toString=t.duration.fn.toISOString;for(u in ci)g(ci,u)&&te(u.toLowerCase());t.duration.fn.asMilliseconds=function(){return this.as("ms")};t.duration.fn.asSeconds=function(){return this.as("s")};t.duration.fn.asMinutes=function(){return this.as("m")};t.duration.fn.asHours=function(){return this.as("h")};t.duration.fn.asDays=function(){return this.as("d")};t.duration.fn.asWeeks=function(){return this.as("weeks")};t.duration.fn.asMonths=function(){return this.as("M")};t.duration.fn.asYears=function(){return this.as("y")};t.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,r=i(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+r}});ui?module.exports=t:typeof define=="function"&&define.amd?(define(function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(rt.moment=ri),t}),kr(!0)):kr()}.call(this),function(n,t){function u(i,r){this.currentView=0;this.minDate;this.maxDate;this._attachedEvents=[];this.element=i;this.$element=n(i);this.params={date:!0,time:!0,format:"YYYY-MM-DD",minDate:null,maxDate:null,currentDate:null,lang:"en",weekStart:0,disabledDays:[],shortTime:!1,clearButton:!1,nowButton:!1,cancelText:"Cancel",okText:"OK",clearText:"Clear",nowText:"Now",switchOnClick:!1,triggerEvent:"focus",monthPicker:!1,year:!0};this.params=n.fn.extend(this.params,r);this.name="dtp_"+this.setName();this.$element.attr("data-dtp",this.name);t.locale(this.params.lang);this.init()}var r="bootstrapMaterialDatePicker",i="plugin_"+r;t.locale("en");n.fn[r]=function(t,r){return this.each(function(){n.data(this,i)?(typeof n.data(this,i)[t]=="function"&&n.data(this,i)[t](r),t==="destroy"&&delete n.data(this,i)):n.data(this,i,new u(this,t))}),this};u.prototype={init:function(){this.initDays();this.initDates();this.initTemplate();this.initButtons();this._attachEvent(n(window),"resize",this._centerBox.bind(this));this._attachEvent(this.$dtpElement.find(".dtp-content"),"click",this._onElementClick.bind(this));this._attachEvent(this.$dtpElement,"click",this._onBackgroundClick.bind(this));this._attachEvent(this.$dtpElement.find(".dtp-close > a"),"click",this._onCloseClick.bind(this));this._attachEvent(this.$element,this.params.triggerEvent,this._fireCalendar.bind(this))},initDays:function(){this.days=[];for(var n=this.params.weekStart;this.days.length<7;n++)n>6&&(n=0),this.days.push(n.toString())},initDates:function(){var n;this.$element.val().length>0?this.currentDate=typeof this.params.format!="undefined"&&this.params.format!==null?t(this.$element.val(),this.params.format).locale(this.params.lang):t(this.$element.val()).locale(this.params.lang):typeof this.$element.attr("value")!="undefined"&&this.$element.attr("value")!==null&&this.$element.attr("value")!==""?typeof this.$element.attr("value")=="string"&&(this.currentDate=typeof this.params.format!="undefined"&&this.params.format!==null?t(this.$element.attr("value"),this.params.format).locale(this.params.lang):t(this.$element.attr("value")).locale(this.params.lang)):typeof this.params.currentDate!="undefined"&&this.params.currentDate!==null?(typeof this.params.currentDate=="string"?this.currentDate=typeof this.params.format!="undefined"&&this.params.format!==null?t(this.params.currentDate,this.params.format).locale(this.params.lang):t(this.params.currentDate).locale(this.params.lang):typeof this.params.currentDate.isValid=="undefined"||typeof this.params.currentDate.isValid!="function"?(n=this.params.currentDate.getTime(),this.currentDate=t(n,"x").locale(this.params.lang)):this.currentDate=this.params.currentDate,this.$element.val(this.currentDate.format(this.params.format))):this.currentDate=t();typeof this.params.minDate!="undefined"&&this.params.minDate!==null?typeof this.params.minDate=="string"?this.minDate=typeof this.params.format!="undefined"&&this.params.format!==null?t(this.params.minDate,this.params.format).locale(this.params.lang):t(this.params.minDate).locale(this.params.lang):typeof this.params.minDate.isValid=="undefined"||typeof this.params.minDate.isValid!="function"?(n=this.params.minDate.getTime(),this.minDate=t(n,"x").locale(this.params.lang)):this.minDate=this.params.minDate:this.params.minDate===null&&(this.minDate=null);typeof this.params.maxDate!="undefined"&&this.params.maxDate!==null?typeof this.params.maxDate=="string"?this.maxDate=typeof this.params.format!="undefined"&&this.params.format!==null?t(this.params.maxDate,this.params.format).locale(this.params.lang):t(this.params.maxDate).locale(this.params.lang):typeof this.params.maxDate.isValid=="undefined"||typeof this.params.maxDate.isValid!="function"?(n=this.params.maxDate.getTime(),this.maxDate=t(n,"x").locale(this.params.lang)):this.maxDate=this.params.maxDate:this.params.maxDate===null&&(this.maxDate=null);this.isAfterMinDate(this.currentDate)||(this.currentDate=t(this.minDate));this.isBeforeMaxDate(this.currentDate)||(this.currentDate=t(this.maxDate))},initTemplate:function(){for(var u,r="",i=this.currentDate.year(),t=i-3;t<i+4;t++)r+='<div class="year-picker-item" data-year="'+t+'">'+t+"<\/div>";this.midYear=i;u='<div class="dtp-picker-year hidden" ><div><a href="javascript:void(0);" class="btn btn-default dtp-select-year-range before" style="margin: 0;"><i class="material-icons">keyboard_arrow_up<\/i><\/a><\/div>'+r+'<div><a href="javascript:void(0);" class="btn btn-default dtp-select-year-range after" style="margin: 0;"><i class="material-icons">keyboard_arrow_down<\/i><\/a><\/div><\/div>';this.template='<div class="dtp hidden" id="'+this.name+'"><div class="dtp-content"><div class="dtp-date-view"><header class="dtp-header"><div class="dtp-actual-day">Lundi<\/div><div class="dtp-close"><a href="javascript:void(0);"><i class="material-icons">clear<\/i><\/a><\/div><\/header><div class="dtp-date hidden"><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-month-before"><i class="material-icons">chevron_left<\/i><\/a><\/div><div class="dtp-actual-month p80">MAR<\/div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-month-after"><i class="material-icons">chevron_right<\/i><\/a><\/div><div class="clearfix"><\/div><\/div><div class="dtp-actual-num">13<\/div><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-year-before"><i class="material-icons">chevron_left<\/i><\/a><\/div><div class="dtp-actual-year p80'+(this.params.year?"":" disabled")+'">2014<\/div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-year-after"><i class="material-icons">chevron_right<\/i><\/a><\/div><div class="clearfix"><\/div><\/div><\/div><div class="dtp-time hidden"><div class="dtp-actual-maxtime">23:55<\/div><\/div><div class="dtp-picker"><div class="dtp-picker-calendar"><\/div><div class="dtp-picker-datetime hidden"><div class="dtp-actual-meridien"><div class="left p20"><a class="dtp-meridien-am" href="javascript:void(0);">AM<\/a><\/div><div class="dtp-actual-time p60"><\/div><div class="right p20"><a class="dtp-meridien-pm" href="javascript:void(0);">PM<\/a><\/div><div class="clearfix"><\/div><\/div><div id="dtp-svg-clock"><\/div><\/div>'+u+'<\/div><\/div><div class="dtp-buttons"><button class="dtp-btn-now btn btn-flat hidden">'+this.params.nowText+'<\/button><button class="dtp-btn-clear btn btn-flat hidden">'+this.params.clearText+'<\/button><button class="dtp-btn-cancel btn btn-flat">'+this.params.cancelText+'<\/button><button class="dtp-btn-ok btn btn-flat">'+this.params.okText+'<\/button><div class="clearfix"><\/div><\/div><\/div><\/div>';n("body").find("#"+this.name).length<=0&&(n("body").append(this.template),this&&(this.dtpElement=n("body").find("#"+this.name)),this.$dtpElement=n(this.dtpElement))},initButtons:function(){this._attachEvent(this.$dtpElement.find(".dtp-btn-cancel"),"click",this._onCancelClick.bind(this));this._attachEvent(this.$dtpElement.find(".dtp-btn-ok"),"click",this._onOKClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-month-before"),"click",this._onMonthBeforeClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-month-after"),"click",this._onMonthAfterClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-year-before"),"click",this._onYearBeforeClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-year-after"),"click",this._onYearAfterClick.bind(this));this._attachEvent(this.$dtpElement.find(".dtp-actual-year"),"click",this._onActualYearClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-year-range.before"),"click",this._onYearRangeBeforeClick.bind(this));this._attachEvent(this.$dtpElement.find("a.dtp-select-year-range.after"),"click",this._onYearRangeAfterClick.bind(this));this._attachEvent(this.$dtpElement.find("div.year-picker-item"),"click",this._onYearItemClick.bind(this));this.params.clearButton===!0&&(this._attachEvent(this.$dtpElement.find(".dtp-btn-clear"),"click",this._onClearClick.bind(this)),this.$dtpElement.find(".dtp-btn-clear").removeClass("hidden"));this.params.nowButton===!0&&(this._attachEvent(this.$dtpElement.find(".dtp-btn-now"),"click",this._onNowClick.bind(this)),this.$dtpElement.find(".dtp-btn-now").removeClass("hidden"));this.params.nowButton===!0&&this.params.clearButton===!0?this.$dtpElement.find(".dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok").addClass("btn-xs"):(this.params.nowButton===!0||this.params.clearButton===!0)&&this.$dtpElement.find(".dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok").addClass("btn-sm")},initMeridienButtons:function(){this.$dtpElement.find("a.dtp-meridien-am").off("click").on("click",this._onSelectAM.bind(this));this.$dtpElement.find("a.dtp-meridien-pm").off("click").on("click",this._onSelectPM.bind(this))},initDate:function(){var n,t,i;if(this.currentView=0,this.params.monthPicker===!1&&this.$dtpElement.find(".dtp-picker-calendar").removeClass("hidden"),this.$dtpElement.find(".dtp-picker-datetime").addClass("hidden"),this.$dtpElement.find(".dtp-picker-year").addClass("hidden"),n=typeof this.currentDate!="undefined"&&this.currentDate!==null?this.currentDate:null,t=this.generateCalendar(this.currentDate),typeof t.week!="undefined"&&typeof t.days!="undefined"){i=this.constructHTMLCalendar(n,t);this.$dtpElement.find("a.dtp-select-day").off("click");this.$dtpElement.find(".dtp-picker-calendar").html(i);this.$dtpElement.find("a.dtp-select-day").on("click",this._onSelectDate.bind(this));this.toggleButtons(n)}this._centerBox();this.showDate(n)},initHours:function(){var r,u,n;for(this.currentView=1,this.showTime(this.currentDate),this.initMeridienButtons(),this.currentDate.hour()<12?this.$dtpElement.find("a.dtp-meridien-am").click():this.$dtpElement.find("a.dtp-meridien-pm").click(),r=this.params.shortTime?"h":"H",this.$dtpElement.find(".dtp-picker-datetime").removeClass("hidden"),this.$dtpElement.find(".dtp-picker-calendar").addClass("hidden"),this.$dtpElement.find(".dtp-picker-year").addClass("hidden"),u=this.createSVGClock(!0),n=0;n<12;n++){var f=-(162*Math.sin(-Math.PI*2*(n/12))),e=-(162*Math.cos(-Math.PI*2*(n/12))),o=this.currentDate.format(r)==n?"#8BC34A":"transparent",s=this.currentDate.format(r)==n?"#fff":"#000",i=this.createSVGElement("circle",{id:"h-"+n,"class":"dtp-select-hour",style:"cursor:pointer",r:"30",cx:f,cy:e,fill:o,"data-hour":n}),t=this.createSVGElement("text",{id:"th-"+n,"class":"dtp-select-hour-text","text-anchor":"middle",style:"cursor:pointer","font-weight":"bold","font-size":"20",x:f,y:e+7,fill:s,"data-hour":n});t.textContent=n===0?this.params.shortTime?12:n:n;this.toggleTime(n,!0)?(i.addEventListener("click",this._onSelectHour.bind(this)),t.addEventListener("click",this._onSelectHour.bind(this))):(i.className+=" disabled",t.className+=" disabled",t.setAttribute("fill","#bdbdbd"));u.appendChild(i);u.appendChild(t)}if(!this.params.shortTime){for(n=0;n<12;n++){var f=-(110*Math.sin(-Math.PI*2*(n/12))),e=-(110*Math.cos(-Math.PI*2*(n/12))),o=this.currentDate.format(r)==n+12?"#8BC34A":"transparent",s=this.currentDate.format(r)==n+12?"#fff":"#000",i=this.createSVGElement("circle",{id:"h-"+(n+12),"class":"dtp-select-hour",style:"cursor:pointer",r:"30",cx:f,cy:e,fill:o,"data-hour":n+12}),t=this.createSVGElement("text",{id:"th-"+(n+12),"class":"dtp-select-hour-text","text-anchor":"middle",style:"cursor:pointer","font-weight":"bold","font-size":"22",x:f,y:e+7,fill:s,"data-hour":n+12});t.textContent=n+12;this.toggleTime(n+12,!0)?(i.addEventListener("click",this._onSelectHour.bind(this)),t.addEventListener("click",this._onSelectHour.bind(this))):(i.className+=" disabled",t.className+=" disabled",t.setAttribute("fill","#bdbdbd"));u.appendChild(i);u.appendChild(t)}this.$dtpElement.find("a.dtp-meridien-am").addClass("hidden");this.$dtpElement.find("a.dtp-meridien-pm").addClass("hidden")}this._centerBox()},initMinutes:function(){var i,n;for(this.currentView=2,this.showTime(this.currentDate),this.initMeridienButtons(),this.currentDate.hour()<12?this.$dtpElement.find("a.dtp-meridien-am").click():this.$dtpElement.find("a.dtp-meridien-pm").click(),this.$dtpElement.find(".dtp-picker-year").addClass("hidden"),this.$dtpElement.find(".dtp-picker-calendar").addClass("hidden"),this.$dtpElement.find(".dtp-picker-datetime").removeClass("hidden"),i=this.createSVGClock(!1),n=0;n<60;n++){var u=n%5==0?162:158,s=n%5==0?30:20,f=-(u*Math.sin(-Math.PI*2*(n/60))),e=-(u*Math.cos(-Math.PI*2*(n/60))),o=this.currentDate.format("m")==n?"#8BC34A":"transparent",r=this.createSVGElement("circle",{id:"m-"+n,"class":"dtp-select-minute",style:"cursor:pointer",r:s,cx:f,cy:e,fill:o,"data-minute":n});this.toggleTime(n,!1)?r.addEventListener("click",this._onSelectMinute.bind(this)):r.className+=" disabled";i.appendChild(r)}for(n=0;n<60;n++)if(n%5==0){var f=-(162*Math.sin(-Math.PI*2*(n/60))),e=-(162*Math.cos(-Math.PI*2*(n/60))),o=this.currentDate.format("m")==n?"#fff":"#000",t=this.createSVGElement("text",{id:"tm-"+n,"class":"dtp-select-minute-text","text-anchor":"middle",style:"cursor:pointer","font-weight":"bold","font-size":"20",x:f,y:e+7,fill:o,"data-minute":n});t.textContent=n;this.toggleTime(n,!1)?t.addEventListener("click",this._onSelectMinute.bind(this)):(t.className+=" disabled",t.setAttribute("fill","#bdbdbd"));i.appendChild(t)}this._centerBox()},animateHands:function(){var t=this.currentDate.hour(),i=this.currentDate.minute(),r=this.$dtpElement.find(".hour-hand"),n;r[0].setAttribute("transform","rotate("+30*t+")");n=this.$dtpElement.find(".minute-hand");n[0].setAttribute("transform","rotate("+6*i+")")},createSVGClock:function(n){var u=this.params.shortTime?-120:-90,f=this.createSVGElement("svg",{"class":"svg-clock",viewBox:"0,0,400,400"}),t=this.createSVGElement("g",{transform:"translate(200,200) "}),e=this.createSVGElement("circle",{r:"192",fill:"#eee",stroke:"#bdbdbd","stroke-width":2}),o=this.createSVGElement("circle",{r:"15",fill:"#757575"}),i,r;return t.appendChild(e),n?(i=this.createSVGElement("line",{"class":"minute-hand",x1:0,y1:0,x2:0,y2:-150,stroke:"#bdbdbd","stroke-width":2}),r=this.createSVGElement("line",{"class":"hour-hand",x1:0,y1:0,x2:0,y2:u,stroke:"#8BC34A","stroke-width":8}),t.appendChild(i),t.appendChild(r)):(i=this.createSVGElement("line",{"class":"minute-hand",x1:0,y1:0,x2:0,y2:-150,stroke:"#8BC34A","stroke-width":2}),r=this.createSVGElement("line",{"class":"hour-hand",x1:0,y1:0,x2:0,y2:u,stroke:"#bdbdbd","stroke-width":8}),t.appendChild(r),t.appendChild(i)),t.appendChild(o),f.appendChild(t),this.$dtpElement.find("#dtp-svg-clock").empty(),this.$dtpElement.find("#dtp-svg-clock")[0].appendChild(f),this.animateHands(),t},createSVGElement:function(n,t){var i=document.createElementNS("http://www.w3.org/2000/svg",n);for(var r in t)i.setAttribute(r,t[r]);return i},isAfterMinDate:function(n,i,r){var e=!0,u,f;return typeof this.minDate!="undefined"&&this.minDate!==null&&(u=t(this.minDate),f=t(n),i||r||(u.hour(0),u.minute(0),f.hour(0),f.minute(0)),u.second(0),f.second(0),u.millisecond(0),f.millisecond(0),r?e=parseInt(f.format("X"))>=parseInt(u.format("X")):(f.minute(0),u.minute(0),e=parseInt(f.format("X"))>=parseInt(u.format("X")))),e},isBeforeMaxDate:function(n,i,r){var e=!0,u,f;return typeof this.maxDate!="undefined"&&this.maxDate!==null&&(u=t(this.maxDate),f=t(n),i||r||(u.hour(0),u.minute(0),f.hour(0),f.minute(0)),u.second(0),f.second(0),u.millisecond(0),f.millisecond(0),r?e=parseInt(f.format("X"))<=parseInt(u.format("X")):(f.minute(0),u.minute(0),e=parseInt(f.format("X"))<=parseInt(u.format("X")))),e},rotateElement:function(t,i){n(t).css({WebkitTransform:"rotate("+i+"deg)","-moz-transform":"rotate("+i+"deg)"})},showDate:function(n){n&&(this.$dtpElement.find(".dtp-actual-day").html(n.locale(this.params.lang).format("dddd")),this.$dtpElement.find(".dtp-actual-month").html(n.locale(this.params.lang).format("MMM").toUpperCase()),this.$dtpElement.find(".dtp-actual-num").html(n.locale(this.params.lang).format("DD")),this.$dtpElement.find(".dtp-actual-year").html(n.locale(this.params.lang).format("YYYY")))},showTime:function(n){if(n){var t=n.minute(),i=(this.params.shortTime?n.format("hh"):n.format("HH"))+":"+(t.toString().length==2?t:"0"+t)+(this.params.shortTime?" "+n.format("A"):"");this.params.date?this.$dtpElement.find(".dtp-actual-time").html(i):(this.params.shortTime?this.$dtpElement.find(".dtp-actual-day").html(n.format("A")):this.$dtpElement.find(".dtp-actual-day").html("&nbsp;"),this.$dtpElement.find(".dtp-actual-maxtime").html(i))}},selectDate:function(n){n&&(this.currentDate.date(n),this.showDate(this.currentDate),this.$element.trigger("dateSelected",this.currentDate))},generateCalendar:function(n){var i={},r,f,e;if(n!==null){var u=t(n).locale(this.params.lang).startOf("month"),o=t(n).locale(this.params.lang).endOf("month"),s=u.format("d");for(i.week=this.days,i.days=[],r=u.date();r<=o.date();r++){if(r===u.date()&&(f=i.week.indexOf(s.toString()),f>0))for(e=0;e<f;e++)i.days.push(0);i.days.push(t(u).locale(this.params.lang).date(r))}}return i},constructHTMLCalendar:function(n,i){var u="",r;for(u+='<div class="dtp-picker-month">'+n.locale(this.params.lang).format("MMMM YYYY")+"<\/div>",u+='<table class="table dtp-picker-days"><thead>',r=0;r<i.week.length;r++)u+="<th>"+t(parseInt(i.week[r]),"d").locale(this.params.lang).format("dd").substring(0,1)+"<\/th>";for(u+="<\/thead>",u+="<tbody><tr>",r=0;r<i.days.length;r++)r%7==0&&(u+="<\/tr><tr>"),u+='<td data-date="'+t(i.days[r]).locale(this.params.lang).format("D")+'">',i.days[r]!=0&&(u+=this.isBeforeMaxDate(t(i.days[r]),!1,!1)===!1||this.isAfterMinDate(t(i.days[r]),!1,!1)===!1||this.params.disabledDays.indexOf(i.days[r].isoWeekday())!==-1?'<span class="dtp-select-day">'+t(i.days[r]).locale(this.params.lang).format("DD")+"<\/span>":t(i.days[r]).locale(this.params.lang).format("DD")===t(this.currentDate).locale(this.params.lang).format("DD")?'<a href="javascript:void(0);" class="dtp-select-day selected">'+t(i.days[r]).locale(this.params.lang).format("DD")+"<\/a>":'<a href="javascript:void(0);" class="dtp-select-day">'+t(i.days[r]).locale(this.params.lang).format("DD")+"<\/a>",u+="<\/td>");return u+"<\/tr><\/tbody><\/table>"},setName:function(){for(var n="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n},isPM:function(){return this.$dtpElement.find("a.dtp-meridien-pm").hasClass("selected")},setElementValue:function(){this.$element.trigger("beforeChange",this.currentDate);typeof n.material!="undefined"&&this.$element.removeClass("empty");this.$element.val(t(this.currentDate).locale(this.params.lang).format(this.params.format));this.$element.trigger("change",this.currentDate)},toggleButtons:function(n){var i,r,u,f;n&&n.isValid()&&(i=t(n).locale(this.params.lang).startOf("month"),r=t(n).locale(this.params.lang).endOf("month"),this.isAfterMinDate(i,!1,!1)?this.$dtpElement.find("a.dtp-select-month-before").removeClass("invisible"):this.$dtpElement.find("a.dtp-select-month-before").addClass("invisible"),this.isBeforeMaxDate(r,!1,!1)?this.$dtpElement.find("a.dtp-select-month-after").removeClass("invisible"):this.$dtpElement.find("a.dtp-select-month-after").addClass("invisible"),u=t(n).locale(this.params.lang).startOf("year"),f=t(n).locale(this.params.lang).endOf("year"),this.isAfterMinDate(u,!1,!1)?this.$dtpElement.find("a.dtp-select-year-before").removeClass("invisible"):this.$dtpElement.find("a.dtp-select-year-before").addClass("invisible"),this.isBeforeMaxDate(f,!1,!1)?this.$dtpElement.find("a.dtp-select-year-after").removeClass("invisible"):this.$dtpElement.find("a.dtp-select-year-after").addClass("invisible"))},toggleTime:function(n,i){var u=!1,r;return i?(r=t(this.currentDate),r.hour(this.convertHours(n)).minute(0).second(0),u=!(this.isAfterMinDate(r,!0,!1)===!1||this.isBeforeMaxDate(r,!0,!1)===!1)):(r=t(this.currentDate),r.minute(n).second(0),u=!(this.isAfterMinDate(r,!0,!0)===!1||this.isBeforeMaxDate(r,!0,!0)===!1)),u},_attachEvent:function(n,t,i){n.on(t,null,null,i);this._attachedEvents.push([n,t,i])},_detachEvents:function(){for(var n=this._attachedEvents.length-1;n>=0;n--)this._attachedEvents[n][0].off(this._attachedEvents[n][1],this._attachedEvents[n][2]),this._attachedEvents.splice(n,1)},_fireCalendar:function(){this.currentView=0;this.$element.blur();this.initDates();this.show();this.params.date?(this.$dtpElement.find(".dtp-date").removeClass("hidden"),this.initDate()):this.params.time&&(this.$dtpElement.find(".dtp-time").removeClass("hidden"),this.initHours())},_onBackgroundClick:function(n){n.stopPropagation();this.hide()},_onElementClick:function(n){n.stopPropagation()},_onKeydown:function(n){n.which===27&&this.hide()},_onCloseClick:function(){this.hide()},_onClearClick:function(){this.currentDate=null;this.$element.trigger("beforeChange",this.currentDate);this.hide();typeof n.material!="undefined"&&this.$element.addClass("empty");this.$element.val("");this.$element.trigger("change",this.currentDate)},_onNowClick:function(){if(this.currentDate=t(),this.params.date===!0&&(this.showDate(this.currentDate),this.currentView===0&&this.initDate()),this.params.time===!0){this.showTime(this.currentDate);switch(this.currentView){case 1:this.initHours();break;case 2:this.initMinutes()}this.animateHands()}},_onOKClick:function(){switch(this.currentView){case 0:this.params.time===!0?this.initHours():(this.setElementValue(),this.hide());break;case 1:this.initMinutes();break;case 2:this.setElementValue();this.hide()}},_onCancelClick:function(){if(this.params.time)switch(this.currentView){case 0:this.hide();break;case 1:this.params.date?this.initDate():this.hide();break;case 2:this.initHours()}else this.hide()},_onMonthBeforeClick:function(){this.currentDate.subtract(1,"months");this.initDate(this.currentDate);this._closeYearPicker()},_onMonthAfterClick:function(){this.currentDate.add(1,"months");this.initDate(this.currentDate);this._closeYearPicker()},_onYearBeforeClick:function(){this.currentDate.subtract(1,"years");this.initDate(this.currentDate);this._closeYearPicker()},_onYearAfterClick:function(){this.currentDate.add(1,"years");this.initDate(this.currentDate);this._closeYearPicker()},refreshYearItems:function(){var f=this.currentDate.year(),i=this.midYear,u=1850,r;typeof this.minDate!="undefined"&&this.minDate!==null&&(u=t(this.minDate).year());r=2200;typeof this.maxDate!="undefined"&&this.maxDate!==null&&(r=t(this.maxDate).year());this.$dtpElement.find(".dtp-picker-year .invisible").removeClass("invisible");this.$dtpElement.find(".year-picker-item").each(function(t,e){var o=i-3+t;n(e).attr("data-year",o).text(o).data("year",o);f==o?n(e).addClass("active"):n(e).removeClass("active");(o<u||o>r)&&n(e).addClass("invisible")});u>=i-3&&this.$dtpElement.find(".dtp-select-year-range.before").addClass("invisible");r<=i+3&&this.$dtpElement.find(".dtp-select-year-range.after").addClass("invisible");this.$dtpElement.find(".dtp-select-year-range").data("mid",i)},_onActualYearClick:function(){this.params.year&&(this.$dtpElement.find(".dtp-picker-year.hidden").length>0?(this.$dtpElement.find(".dtp-picker-datetime").addClass("hidden"),this.$dtpElement.find(".dtp-picker-calendar").addClass("hidden"),this.$dtpElement.find(".dtp-picker-year").removeClass("hidden"),this.midYear=this.currentDate.year(),this.refreshYearItems()):this._closeYearPicker())},_onYearRangeBeforeClick:function(){this.midYear-=7;this.refreshYearItems()},_onYearRangeAfterClick:function(){this.midYear+=7;this.refreshYearItems()},_onYearItemClick:function(t){var i=n(t.currentTarget).data("year"),r=this.currentDate.year(),u=i-r;this.currentDate.add(u,"years");this.initDate(this.currentDate);this._closeYearPicker();this.$element.trigger("yearSelected",this.currentDate)},_closeYearPicker:function(){this.$dtpElement.find(".dtp-picker-calendar").removeClass("hidden");this.$dtpElement.find(".dtp-picker-year").addClass("hidden")},enableYearPicker:function(){this.params.year=!0;this.$dtpElement.find(".dtp-actual-year").reomveClass("disabled")},disableYearPicker:function(){this.params.year=!1;this.$dtpElement.find(".dtp-actual-year").addClass("disabled");this._closeYearPicker()},_onSelectDate:function(t){this.$dtpElement.find("a.dtp-select-day").removeClass("selected");n(t.currentTarget).addClass("selected");this.selectDate(n(t.currentTarget).parent().data("date"));this.params.switchOnClick===!0&&this.params.time===!0&&setTimeout(this.initHours.bind(this),200);this.params.switchOnClick===!0&&this.params.time===!1&&setTimeout(this._onOKClick.bind(this),200)},_onSelectHour:function(t){var f,i;if(!n(t.target).hasClass("disabled")){var u=n(t.target).data("hour"),r=n(t.target).parent(),e=r.find(".dtp-select-hour");for(i=0;i<e.length;i++)n(e[i]).attr("fill","transparent");for(f=r.find(".dtp-select-hour-text"),i=0;i<f.length;i++)n(f[i]).attr("fill","#000");n(r.find("#h-"+u)).attr("fill","#8BC34A");n(r.find("#th-"+u)).attr("fill","#fff");this.currentDate.hour(parseInt(u));this.params.shortTime===!0&&this.isPM()&&this.currentDate.add(12,"hours");this.showTime(this.currentDate);this.animateHands();this.params.switchOnClick===!0&&setTimeout(this.initMinutes.bind(this),200)}},_onSelectMinute:function(t){var f,i;if(!n(t.target).hasClass("disabled")){var u=n(t.target).data("minute"),r=n(t.target).parent(),e=r.find(".dtp-select-minute");for(i=0;i<e.length;i++)n(e[i]).attr("fill","transparent");for(f=r.find(".dtp-select-minute-text"),i=0;i<f.length;i++)n(f[i]).attr("fill","#000");n(r.find("#m-"+u)).attr("fill","#8BC34A");n(r.find("#tm-"+u)).attr("fill","#fff");this.currentDate.minute(parseInt(u));this.showTime(this.currentDate);this.animateHands();this.params.switchOnClick===!0&&setTimeout(function(){this.setElementValue();this.hide()}.bind(this),200)}},_onSelectAM:function(t){n(".dtp-actual-meridien").find("a").removeClass("selected");n(t.currentTarget).addClass("selected");this.currentDate.hour()>=12&&this.currentDate.subtract(12,"hours")&&this.showTime(this.currentDate);this.toggleTime(this.currentView===1)},_onSelectPM:function(t){n(".dtp-actual-meridien").find("a").removeClass("selected");n(t.currentTarget).addClass("selected");this.currentDate.hour()<12&&this.currentDate.add(12,"hours")&&this.showTime(this.currentDate);this.toggleTime(this.currentView===1)},_hideCalendar:function(){this.$dtpElement.find(".dtp-picker-calendar").addClass("hidden")},convertHours:function(n){var t=n;return this.params.shortTime===!0&&n<12&&this.isPM()&&(t+=12),t},setDate:function(n){this.params.currentDate=n;this.initDates()},setMinDate:function(n){this.params.minDate=n;this.initDates()},setMaxDate:function(n){this.params.maxDate=n;this.initDates()},destroy:function(){this._detachEvents();this.$dtpElement.remove()},show:function(){this.$dtpElement.removeClass("hidden");this._attachEvent(n(window),"keydown",this._onKeydown.bind(this));this._centerBox();this.$element.trigger("open");this.params.monthPicker===!0&&this._hideCalendar()},hide:function(){n(window).off("keydown",null,null,this._onKeydown.bind(this));this.$dtpElement.addClass("hidden");this.$element.trigger("close")},_centerBox:function(){var n=(this.$dtpElement.height()-this.$dtpElement.find(".dtp-content").height())/2;this.$dtpElement.find(".dtp-content").css("marginLeft",-(this.$dtpElement.find(".dtp-content").width()/2)+"px");this.$dtpElement.find(".dtp-content").css("top",n+"px")},enableDays:function(){var t=this.params.enableDays;t&&n(".dtp-picker-days tbody tr td").each(function(){n.inArray(n(this).index(),t)>=0||n(this).find("a").css({background:"#e3e3e3",cursor:"no-drop",opacity:"0.5"}).off("click")})}}}(jQuery,moment),function(n){function u(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function f(n){return typeof n=="undefined"}if(n){var t={},e=n.TraceKit,r=[].slice,i="?";t.noConflict=function(){return n.TraceKit=e,t};t.wrap=function(n){function i(){try{return n.apply(this,arguments)}catch(i){t.report(i);throw i;}}return i};t.report=function(){function l(n){y();f.push(n)}function a(n){for(var t=f.length-1;t>=0;--t)f[t]===n&&f.splice(t,1)}function o(n,i){var e=null,o;if(!i||t.collectWindowErrors){for(o in f)if(u(f,o))try{f[o].apply(null,[n].concat(r.call(arguments,2)))}catch(s){e=s}if(e)throw e;}}function v(n,r,u,f,h){var l=null,c;return(h?l=t.computeStackTrace(h):i?(t.computeStackTrace.augmentStackTraceWithInitialElement(i,r,u,n),l=i,i=null,e=null):(c={url:r,line:u,column:f},c.func=t.computeStackTrace.guessFunctionName(c.url,c.line),c.context=t.computeStackTrace.gatherContext(c.url,c.line),l={mode:"onerror",message:n,stack:[c]}),o(l,"from window.onerror"),s)?s.apply(this,arguments):!1}function y(){c!==!0&&(s=n.onerror,n.onerror=v,c=!0)}function h(u){var s=r.call(arguments,1),h,f;if(i){if(e===u)return;h=i;i=null;e=null;o.apply(null,[h,null].concat(s))}f=t.computeStackTrace(u);i=f;e=u;n.setTimeout(function(){e===u&&(i=null,e=null,o.apply(null,[f,null].concat(s)))},f.incomplete?2e3:0);throw u;}var f=[],e=null,i=null,s,c;return h.subscribe=l,h.unsubscribe=a,h}();t.computeStackTrace=function(){function b(i){if(!t.remoteFetching)return"";try{var u=function(){try{return new n.XMLHttpRequest}catch(t){return new n.ActiveXObject("Microsoft.XMLHTTP")}},r=u();return r.open("GET",i,!1),r.send(""),r.responseText}catch(f){return""}}function e(n){if(typeof n!="string")return[];if(!u(a,n)){var t="",i="";try{i=document.domain}catch(r){}n.indexOf(i)!==-1&&(t=b(n));a[n]=t?t.split("\n"):[]}return a[n]}function o(n,t){var r="",s=e(n),o,u;if(!s.length)return i;for(u=0;u<10;++u)if(r=s[t-u]+r,!f(r)&&((o=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/.exec(r))||(o=/function ([^(]*)\(([^)]*)\)/.exec(r))))return o[1];return i}function s(n,i){var u=e(n),r;if(!u.length)return null;var o=[],s=Math.floor(t.linesOfContext/2),h=s+t.linesOfContext%2,c=Math.max(0,i-s-1),l=Math.min(u.length,i+h-1);for(i-=1,r=c;r<l;++r)f(u[r])||o.push(u[r]);return o.length>0?o:null}function c(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function y(n){return c(n).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(n,t){for(var i,r,u=0,f=t.length;u<f;++u)if((i=e(t[u])).length&&(i=i.join("\n"),r=n.exec(i)))return{url:t[u],line:i.substring(0,r.index).split("\n").length,column:r.index-i.lastIndexOf("\n",r.index)-1};return null}function v(n,t,i){var r=e(t),f=new RegExp("\\b"+c(n)+"\\b"),u;return(i-=1,r&&r.length>i&&(u=f.exec(r[i])))?u.index:null}function k(t){for(var h,v,p,w,e=[n.location.href],a=document.getElementsByTagName("script"),u,o=""+t,r,i,f,s=0;s<a.length;++s)h=a[s],h.src&&e.push(h.src);return((i=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))?(v=i[1]?"\\s+"+i[1]:"",p=i[2].split(",").join("\\s*,\\s*"),u=c(i[3]).replace(/;$/,";?"),r=new RegExp("function"+v+"\\s*\\(\\s*"+p+"\\s*\\)\\s*{\\s*"+u+"\\s*}")):r=new RegExp(c(o).replace(/\s+/g,"\\s+")),f=l(r,e))?f:(i=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))&&((w=i[1],u=y(i[2]),r=new RegExp("on"+w+"=[\\'\"]\\s*"+u+"\\s*[\\'\"]","i"),f=l(r,e[0]))||(r=new RegExp(u),f=l(r,e)))?f:null}function d(n){var e,a,c;if(!n.stack)return null;var h=n.stack.split("\n"),u=[],t,r,l=/^(.*) is undefined$/.exec(n.message);for(e=0,a=h.length;e<a;++e){if(t=/^\s*at (.*?) ?\(((?:file|https?|chrome-extension|native|eval).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i.exec(h[e]))c=t[2]&&t[2].indexOf("native")!==-1,r={url:c?null:t[2],func:t[1]||i,args:c?[t[2]]:[],line:t[3]?+t[3]:null,column:t[4]?+t[4]:null};else if(t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(h[e]))r={url:t[2],func:t[1]||i,args:[],line:+t[3],column:t[4]?+t[4]:null};else if(t=/^\s*(.*?)(?:\((.*?)\))?@?((?:file|https?|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i.exec(h[e]))r={url:t[3],func:t[1]||i,args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null};else continue;!r.func&&r.line&&(r.func=o(r.url,r.line));r.line&&(r.context=s(r.url,r.line));u.push(r)}return u.length?(u[0]&&u[0].line&&!u[0].column&&l?u[0].column=v(l[1],u[0].url,u[0].line):u[0].column||f(n.columnNumber)||(u[0].column=n.columnNumber+1),{mode:"stack",name:n.name,message:n.message,stack:u}):null}function g(n){var e=n.stacktrace,r,t;if(e){var u=e.split("\n"),f=[],i;for(r=0;r<u.length;r+=2)if(t=null,(i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i.exec(u[r]))?t={url:i[2],line:+i[1],column:null,func:i[3],args:[]}:(i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i.exec(u[r]))&&(t={url:i[6],line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[]}),t){if(!t.func&&t.line&&(t.func=o(t.url,t.line)),t.line)try{t.context=s(t.url,t.line)}catch(h){}t.context||(t.context=[u[r+1]]);f.push(t)}return f.length?{mode:"stacktrace",name:n.name,message:n.message,stack:f}:null}}function nt(t){var f=t.message.split("\n"),p,h,i,g,b,c,k,a,it;if(f.length<4)return null;var w=[],v=document.getElementsByTagName("script"),d=[],r;for(p in v)u(v,p)&&!v[p].src&&d.push(v[p]);for(h=2;h<f.length;h+=2){if(i=null,r=/^\s*Line (\d+) of linked script ((?:file|https?)\S+)(?:: in function (\S+))?\s*$/i.exec(f[h]))i={url:r[2],func:r[3],args:[],line:+r[1],column:null};else if(r=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?)\S+)(?:: in function (\S+))?\s*$/i.exec(f[h]))i={url:r[3],func:r[4],args:[],line:+r[1],column:null},g=+r[1],b=d[r[2]-1],b&&(c=e(i.url),c&&(c=c.join("\n"),k=c.indexOf(b.innerText),k>=0&&(i.line=g+c.substring(0,k).split("\n").length)));else if(r=/^\s*Line (\d+) of function script\s*$/i.exec(f[h])){var nt=n.location.href.replace(/#.*$/,""),rt=new RegExp(y(f[h+1])),tt=l(rt,[nt]);i={url:nt,func:"",args:[],line:tt?tt.line:r[1],column:null}}i&&(i.func||(i.func=o(i.url,i.line)),a=s(i.url,i.line),it=a?a[Math.floor(a.length/2)]:null,i.context=a&&it.replace(/^\s*/,"")===f[h+1].replace(/^\s*/,"")?a:[f[h+1]],w.push(i))}return w.length?{mode:"multiline",name:t.name,message:f[0],stack:w}:null}function p(n,t,i,r){var u={url:t,line:i},f;if(u.url&&u.line){if(n.incomplete=!1,u.func||(u.func=o(u.url,u.line)),u.context||(u.context=s(u.url,u.line)),f=/ '([^']+)' /.exec(r),f&&(u.column=v(f[1],u.url,u.line)),n.stack.length>0&&n.stack[0].url===u.url){if(n.stack[0].line===u.line)return!1;if(!n.stack[0].line&&n.stack[0].func===u.func)return n.stack[0].line=u.line,n.stack[0].context=u.context,!1}return n.stack.unshift(u),n.partial=!0,!0}return n.incomplete=!0,!1}function w(n,u){for(var l,a,c=[],y={},b=!1,h,f,s,e=w.caller;e&&!b;e=e.caller)if(e!==r&&e!==t.report){if(f={url:null,func:i,args:[],line:null,column:null},e.name?f.func=e.name:(h=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i.exec(e.toString()))&&(f.func=h[1]),typeof f.func=="undefined")try{f.func=h.input.substring(0,h.input.indexOf("{"))}catch(d){}(s=k(e))&&(f.url=s.url,f.line=s.line,f.func===i&&(f.func=o(f.url,f.line)),l=/ '([^']+)' /.exec(n.message||n.description),l&&(f.column=v(l[1],s.url,s.line)));y[""+e]?b=!0:y[""+e]=!0;c.push(f)}return u&&c.splice(0,u),a={mode:"callers",name:n.name,message:n.message,stack:c},p(a,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),a}function r(n,t){var i=null;t=t==null?0:+t;try{if(i=g(n),i)return i}catch(r){if(h)throw r;}try{if(i=d(n),i)return i}catch(r){if(h)throw r;}try{if(i=nt(n),i)return i}catch(r){if(h)throw r;}try{if(i=w(n,t+1),i)return i}catch(r){if(h)throw r;}return{mode:"failed"}}function tt(n){n=(n==null?0:+n)+1;try{throw new Error;}catch(t){return r(t,n+1)}}var h=!1,a={};return r.augmentStackTraceWithInitialElement=p,r.guessFunctionName=o,r.gatherContext=s,r.ofCaller=tt,r.getSource=e,r}();t.extendToAsynchronousCallbacks=function(){var i=function(i){var u=n[i];n[i]=function(){var n=r.call(arguments),i=n[0];return typeof i=="function"&&(n[0]=t.wrap(i)),u.apply?u.apply(this,n):u(n[0],n[1])}};i("setTimeout");i("setInterval")};t.remoteFetching||(t.remoteFetching=!0);t.collectWindowErrors||(t.collectWindowErrors=!0);(!t.linesOfContext||t.linesOfContext<1)&&(t.linesOfContext=11);n.TraceKit=t}}(typeof window!="undefined"?window:global),function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t(require,exports,module):n.exceptionless=t()}(this,function(n,t){function ct(){var t,n;if(!document||!document.getElementsByTagName)return null;for(t=document.getElementsByTagName("script"),n=0;n<t.length;n++)if(t[n].src&&t[n].src.indexOf("/exceptionless")>-1)return i.parseQueryString(t[n].src.split("?").pop());return null}function lt(n,t){var i=g.default.createUnhandledException(new Error(n.message||(t||{}).status||"Script error"),"onerror");i.pluginContextData["@@_TraceKit.StackTrace"]=n;i.submit()}var t,s,h,a,v,y,c,p,w,b,k,i,f,d,e,l,g,nt,tt,it,rt,ut,ft,o,et,ot,st,ht,r,u;return t||(t={}),s=function(){function n(){}return n.onChanged=function(n){!n||this._handlers.push(n)},n.applySavedServerSettings=function(n){n.log.info("Applying saved settings.");n.settings=i.merge(n.settings,this.getSavedServerSettings(n));this.changed(n)},n.checkVersion=function(n,t){if(n){var i=parseInt(t.storage.get(this._configPath+"-version"),10);(isNaN(i)||n>i)&&(t.log.info("Updating settings from v"+(isNaN(i)?0:i)+" to v"+n),this.updateSettings(t))}},n.updateSettings=function(t){var r=this;if(!t.isValid){t.log.error("Unable to update settings: ApiKey is not set.");return}t.submissionClient.getSettings(t,function(u){var o,f,e;if(u&&u.success&&u.settings){t.settings=i.merge(t.settings,u.settings);o=n.getSavedServerSettings(t);for(f in o)u.settings[f]||delete t.settings[f];e=n._configPath;t.storage.save(e+"-version",u.settingsVersion);t.storage.save(e,u.settings);t.log.info("Updated settings");r.changed(t)}})},n.changed=function(n){for(var i=this._handlers,t=0;t<i.length;t++)i[t](n)},n.getSavedServerSettings=function(n){return n.storage.get(this._configPath)||{}},n._configPath="ex-server-settings.json",n._handlers=[],n}(),t.SettingsManager=s,h=function(){function n(){this._lastReferenceId=null}return n.prototype.getLast=function(){return this._lastReferenceId},n.prototype.clearLast=function(){this._lastReferenceId=null},n.prototype.setLast=function(n){this._lastReferenceId=n},n}(),t.DefaultLastReferenceIdManager=h,a=function(){function n(){}return n.prototype.info=function(n){this.log("info",n)},n.prototype.warn=function(n){this.log("warn",n)},n.prototype.error=function(n){this.log("error",n)},n.prototype.log=function(n,t){console&&console[n]&&console[n]("["+n+"] Exceptionless: "+t)},n}(),t.ConsoleLog=a,v=function(){function n(){}return n.prototype.info=function(){},n.prototype.warn=function(){},n.prototype.error=function(){},n}(),t.NullLog=v,y=function(){function n(n,t,i){this.client=n;this.event=t;this.contextData=i?i:new e}return Object.defineProperty(n.prototype,"log",{get:function(){return this.client.config.log},enumerable:!0,configurable:!0}),n}(),t.EventPluginContext=y,c=function(){function n(){}return n.run=function(n,t){var f=function(i,r){return function(){try{n.cancelled||i.run(n,r)}catch(u){n.cancelled=!0;n.log.error("Error running plugin '"+i.name+"': "+u.message+". Discarding Event.")}n.cancelled&&!!t&&t(n)}},r=n.client.config.plugins,u=[],i;for(!t||(u[r.length]=f({name:"cb",priority:9007199254740992,run:t},null)),i=r.length-1;i>-1;i--)u[i]=f(r[i],!!t||i<r.length-1?u[i+1]:null);u[0]()},n.addDefaultPlugins=function(n){n.addPlugin(new nt);n.addPlugin(new tt);n.addPlugin(new it);n.addPlugin(new rt);n.addPlugin(new ut);n.addPlugin(new ft)},n}(),t.EventPluginManager=c,p=function(){function n(){this.priority=20;this.name="ReferenceIdPlugin"}return n.prototype.run=function(n,t){n.event.reference_id&&n.event.reference_id.length!==0||n.event.type!=="error"||(n.event.reference_id=i.guid().replace("-","").substring(0,10));t&&t()},n}(),t.ReferenceIdPlugin=p,w=function(){function n(n){this._processingQueue=!1;this._config=n}return n.prototype.enqueue=function(n){var t=this._config,r;if(this.ensureQueueTimer(),this.areQueuedItemsDiscarded()){t.log.info("Queue items are currently being discarded. The event will not be queued.");return}r="ex-q-"+(new Date).toJSON()+"-"+i.randomNumber();t.log.info("Enqueuing event: "+r+" type="+n.type+" "+(!n.reference_id?"":"refid="+n.reference_id));t.storage.save(r,n)},n.prototype.process=function(n){function e(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t].value);return i}var u=this,f="The queue will not be processed.",t=this._config,i=t.log,r;if(this.ensureQueueTimer(),!this._processingQueue){if(i.info("Processing queue..."),!t.enabled){i.info("Configuration is disabled. "+f);return}if(!t.isValid){i.info("Invalid Api Key. "+f);return}this._processingQueue=!0;try{if(r=t.storage.getList("ex-q",t.submissionBatchSize),!r||r.length===0){this._processingQueue=!1;return}i.info("Sending "+r.length+" events to "+t.serverUrl+".");t.submissionClient.postEvents(e(r),t,function(n){u.processSubmissionResponse(n,r);i.info("Finished processing queue.");u._processingQueue=!1},n)}catch(o){i.error("Error processing queue: "+o);this.suspendProcessing();this._processingQueue=!1}}},n.prototype.suspendProcessing=function(n,t,i){var r=this._config;(!n||n<=0)&&(n=5);r.log.info("Suspending processing for "+n+" minutes.");this._suspendProcessingUntil=new Date((new Date).getTime()+n*6e4);t&&(this._discardQueuedItemsUntil=new Date((new Date).getTime()+n*6e4));i&&this.removeEvents(r.storage.getList("ex-q"))},n.prototype.areQueuedItemsDiscarded=function(){return this._discardQueuedItemsUntil&&this._discardQueuedItemsUntil>new Date},n.prototype.ensureQueueTimer=function(){var n=this;this._queueTimer||(this._queueTimer=setInterval(function(){return n.onProcessQueue()},1e4))},n.prototype.isQueueProcessingSuspended=function(){return this._suspendProcessingUntil&&this._suspendProcessingUntil>new Date},n.prototype.onProcessQueue=function(){this.isQueueProcessingSuspended()||this._processingQueue||this.process()},n.prototype.processSubmissionResponse=function(n,t){var f="The event will not be submitted.",r=this._config,i=r.log,u;if(n.success){i.info("Sent "+t.length+" events.");this.removeEvents(t);return}if(n.serviceUnavailable){i.error("Server returned service unavailable.");this.suspendProcessing();return}if(n.paymentRequired){i.info("Too many events have been submitted, please upgrade your plan.");this.suspendProcessing(null,!0,!0);return}if(n.unableToAuthenticate){i.info("Unable to authenticate, please check your configuration. "+f);this.suspendProcessing(15);this.removeEvents(t);return}if(n.notFound||n.badRequest){i.error("Error while trying to submit data: "+n.message);this.suspendProcessing(240);this.removeEvents(t);return}if(n.requestEntityTooLarge){u="Event submission discarded for being too large.";r.submissionBatchSize>1?(i.error(u+" Retrying with smaller batch size."),r.submissionBatchSize=Math.max(1,Math.round(r.submissionBatchSize/1.5))):(i.error(u+" "+f),this.removeEvents(t));return}n.success||(i.error("Error submitting events: "+(n.message||"Please check the network tab for more info.")),this.suspendProcessing())},n.prototype.removeEvents=function(n){for(var t=0;t<(n||[]).length;t++)this._config.storage.remove(n[t].path)},n}(),t.DefaultEventQueue=w,b=function(){function n(n){this._items=[];this._maxItems=n>0?n:250}return n.prototype.save=function(n,t){return!n||!t?!1:(this.remove(n),this._items.push({created:(new Date).getTime(),path:n,value:t})>this._maxItems&&this._items.shift(),!0)},n.prototype.get=function(n){var t=n?this.getList("^"+n+"$",1)[0]:null;return t?t.value:null},n.prototype.getList=function(n,t){var r=this._items,f,u,i;if(!n)return r.slice(0,t);for(f=new RegExp(n),u=[],i=0;i<r.length;i++)if(f.test(r[i].path)&&(u.push(r[i]),u.length>=t))break;return u},n.prototype.remove=function(n){if(n){var t=this.getList("^"+n+"$",1)[0];t&&this._items.splice(this._items.indexOf(t),1)}},n}(),t.InMemoryStorage=b,k=function(){function n(){this.configurationVersionHeader="x-exceptionless-configversion"}return n.prototype.postEvents=function(n,t,r,u){var f=i.stringify(n,t.dataExclusions),e=this.createRequest(t,"POST","/api/v2/events",f),o=this.createSubmissionCallback(t,r);return t.submissionAdapter.sendRequest(e,o,u)},n.prototype.postUserDescription=function(n,t,r,u){var f="/api/v2/events/by-ref/"+encodeURIComponent(n)+"/user-description",e=i.stringify(t,r.dataExclusions),o=this.createRequest(r,"POST",f,e),s=this.createSubmissionCallback(r,u);return r.submissionAdapter.sendRequest(o,s)},n.prototype.getSettings=function(n,t){var i=this.createRequest(n,"GET","/api/v2/projects/config"),r=function(i,r,u){if(i!==200)return t(new o(!1,null,-1,null,r));var f;try{f=JSON.parse(u)}catch(e){n.log.error("Unable to parse settings: '"+u+"'")}if(!f||isNaN(f.version))return t(new o(!1,null,-1,null,"Invalid configuration settings."));t(new o(!0,f.settings||{},f.version))};return n.submissionAdapter.sendRequest(i,r)},n.prototype.createRequest=function(n,t,i,r){return r===void 0&&(r=null),{method:t,path:i,data:r,serverUrl:n.serverUrl,apiKey:n.apiKey,userAgent:n.userAgent}},n.prototype.createSubmissionCallback=function(n,t){var i=this;return function(r,u,f,e){var o=e&&parseInt(e[i.configurationVersionHeader],10);s.checkVersion(o,n);t(new l(r,u))}},n}(),t.DefaultSubmissionClient=k,i=function(){function n(){}return n.addRange=function(n){for(var i,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n||(n=[]),!t||t.length===0)return n;for(i=0;i<t.length;i++)t[i]&&n.indexOf(t[i])<0&&n.push(t[i]);return n},n.getHashCode=function(n){var t,i,r;if(!n||n.length===0)return null;for(t=0,i=0;i<n.length;i++)r=n.charCodeAt(i),t=(t<<5)-t+r|0;return t.toString()},n.getCookies=function(n){for(var i,r={},u=(n||"").split("; "),t=0;t<u.length;t++)i=u[t].split("="),r[i[0]]=i[1];return r},n.guid=function(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},n.merge=function(n,t){var r={};for(var i in n||{})!n[i]||(r[i]=n[i]);for(i in t||{})!t[i]||(r[i]=t[i]);return r},n.parseVersion=function(n){if(!n)return null;var t=/(v?((\d+)\.(\d+)(\.(\d+))?)(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?)/.exec(n);return t&&t.length>0?t[0]:null},n.parseQueryString=function(n){var t,r,i,u;if(!n||n.length===0||(t=n.split("&"),t.length===0))return null;for(r={},i=0;i<t.length;i++)u=t[i].split("="),r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]);return r},n.randomNumber=function(){return Math.floor(Math.random()*9007199254740992)},n.stringify=function(n,t){function f(n,t){var u,i,r;return!n||!t||typeof t!="string"?!1:(u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,n=n.toLowerCase().replace(u,""),t=t.toLowerCase().replace(u,""),n.length<=0)?!1:(i=n[0]==="*",i&&(n=n.slice(1)),r=n[n.length-1]==="*",r&&(n=n.substring(0,n.length-1)),i&&r)?t.indexOf(n)!==-1:i?t.lastIndexOf(n)===t.length-n.length:r?t.indexOf(n)===0:t===n}function u(n,t){var i=[];return JSON.stringify(n,function(n,r){for(var u=0;u<(t||[]).length;u++)if(f(t[u],n))return;if(typeof r=="object"&&!!r){if(i.indexOf(r)!==-1)return;i.push(r)}return r})}var r,i;if({}.toString.call(n)==="[object Array]"){for(r=[],i=0;i<n.length;i++)r[i]=JSON.parse(u(n[i],t||[]));return JSON.stringify(r)}return u(n,t||[])},n}(),t.Utils=i,f=function(){function n(t){function r(n){return typeof n=="function"?n(this):n}this.defaultTags=[];this.defaultData={};this.enabled=!0;this.lastReferenceIdManager=new h;this.settings={};this._plugins=[];this._serverUrl="https://collector.exceptionless.io";this._dataExclusions=[];t=i.merge(n.defaults,t);this.log=r(t.log)||new v;this.apiKey=t.apiKey;this.serverUrl=t.serverUrl;this.environmentInfoCollector=r(t.environmentInfoCollector);this.errorParser=r(t.errorParser);this.lastReferenceIdManager=r(t.lastReferenceIdManager)||new h;this.moduleCollector=r(t.moduleCollector);this.requestInfoCollector=r(t.requestInfoCollector);this.submissionBatchSize=r(t.submissionBatchSize)||50;this.submissionAdapter=r(t.submissionAdapter);this.submissionClient=r(t.submissionClient)||new k;this.storage=r(t.storage)||new b;this.queue=r(t.queue)||new w(this);s.applySavedServerSettings(this);c.addDefaultPlugins(this)}return Object.defineProperty(n.prototype,"apiKey",{get:function(){return this._apiKey},set:function(n){this._apiKey=n||null;this.log.info("apiKey: "+this._apiKey)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isValid",{get:function(){return!!this.apiKey&&this.apiKey.length>=10},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serverUrl",{get:function(){return this._serverUrl},set:function(n){!n||(this._serverUrl=n,this.log.info("serverUrl: "+this._serverUrl))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataExclusions",{get:function(){var n=this.settings["@@DataExclusions"];return this._dataExclusions.concat(n&&n.split(",")||[])},enumerable:!0,configurable:!0}),n.prototype.addDataExclusions=function(){for(var t=[],n=0;n<arguments.length;n++)t[+n]=arguments[n];this._dataExclusions=i.addRange.apply(i,[this._dataExclusions].concat(t))},Object.defineProperty(n.prototype,"plugins",{get:function(){return this._plugins.sort(function(n,t){return n.priority<t.priority?-1:n.priority>t.priority?1:0})},enumerable:!0,configurable:!0}),n.prototype.addPlugin=function(n,t,r){var u=!r?n:{name:n,priority:t,run:r},o,f,e;if(!u||!u.run){this.log.error("Add plugin failed: Run method not defined");return}for(u.name||(u.name=i.guid()),u.priority||(u.priority=0),o=!1,f=this._plugins,e=0;e<f.length;e++)if(f[e].name===u.name){o=!0;break}o||f.push(u)},n.prototype.removePlugin=function(n){var r=typeof n=="string"?n:n.name,i,t;if(!r){this.log.error("Remove plugin failed: Plugin name not defined");return}for(i=this._plugins,t=0;t<i.length;t++)if(i[t].name===r){i.splice(t,1);break}},n.prototype.setVersion=function(n){!n||(this.defaultData["@version"]=n)},n.prototype.setUserIdentity=function(n,t){var r="@user",i=typeof n!="string"?n:{identity:n,name:t},u=!i||!i.identity&&!i.name;u?delete this.defaultData[r]:this.defaultData[r]=i;this.log.info("user identity: "+(u?"null":i.identity))},Object.defineProperty(n.prototype,"userAgent",{get:function(){return"exceptionless-js/1.1.0"},enumerable:!0,configurable:!0}),n.prototype.useReferenceIds=function(){this.addPlugin(new p)},n.prototype.useDebugLogger=function(){this.log=new a},Object.defineProperty(n,"defaults",{get:function(){return n._defaultSettings===null&&(n._defaultSettings={}),n._defaultSettings},enumerable:!0,configurable:!0}),n._defaultSettings=null,n}(),t.Configuration=f,d=function(){function n(n,t,i){this._validIdentifierErrorMessage="must contain between 8 and 100 alphanumeric or '-' characters.";this.target=n;this.client=t;this.pluginContextData=i||new e}return n.prototype.setType=function(n){return!n||(this.target.type=n),this},n.prototype.setSource=function(n){return!n||(this.target.source=n),this},n.prototype.setSessionId=function(n){if(!this.isValidIdentifier(n))throw new Error("SessionId "+this._validIdentifierErrorMessage);return this.target.session_id=n,this},n.prototype.setReferenceId=function(n){if(!this.isValidIdentifier(n))throw new Error("ReferenceId "+this._validIdentifierErrorMessage);return this.target.reference_id=n,this},n.prototype.setMessage=function(n){return!n||(this.target.message=n),this},n.prototype.setGeo=function(n,t){if(n<-90||n>90)throw new Error("Must be a valid latitude value between -90.0 and 90.0.");if(t<-180||t>180)throw new Error("Must be a valid longitude value between -180.0 and 180.0.");return this.target.geo=n+","+t,this},n.prototype.setUserIdentity=function(n,t){var i=typeof n!="string"?n:{identity:n,name:t};return!i||!i.identity&&!i.name?this:(this.setProperty("@user",i),this)},n.prototype.setValue=function(n){return!n||(this.target.value=n),this},n.prototype.addTags=function(){for(var t=[],n=0;n<arguments.length;n++)t[+n]=arguments[n];return this.target.tags=i.addRange.apply(i,[this.target.tags].concat(t)),this},n.prototype.setProperty=function(n,t){return!n||t===undefined||t==null?this:(this.target.data||(this.target.data={}),this.target.data[n]=t,this)},n.prototype.markAsCritical=function(n){return n&&this.addTags("Critical"),this},n.prototype.addRequestInfo=function(n){return!n||(this.pluginContextData["@request"]=n),this},n.prototype.submit=function(n){this.client.submitEvent(this.target,this.pluginContextData,n)},n.prototype.isValidIdentifier=function(n){var i;if(!n)return!0;if(n.length<8||n.length>100)return!1;for(i=0;i<n.length;i++){var t=n.charCodeAt(i),r=t>=48&&t<=57,u=t>=65&&t<=90||t>=97&&t<=122,f=t===45;if(!(r||u)&&!f)return!1}return!0},n}(),t.EventBuilder=d,e=function(){function n(){}return n.prototype.setException=function(n){n&&(this["@@_Exception"]=n)},Object.defineProperty(n.prototype,"hasException",{get:function(){return!!this["@@_Exception"]},enumerable:!0,configurable:!0}),n.prototype.getException=function(){return this["@@_Exception"]||null},n.prototype.markAsUnhandledError=function(){this["@@_IsUnhandledError"]=!0},Object.defineProperty(n.prototype,"isUnhandledError",{get:function(){return!!this["@@_IsUnhandledError"]},enumerable:!0,configurable:!0}),n.prototype.setSubmissionMethod=function(n){n&&(this["@@_SubmissionMethod"]=n)},n.prototype.getSubmissionMethod=function(){return this["@@_SubmissionMethod"]||null},n}(),t.ContextData=e,l=function(){function n(n,t){this.success=!1;this.badRequest=!1;this.serviceUnavailable=!1;this.paymentRequired=!1;this.unableToAuthenticate=!1;this.notFound=!1;this.requestEntityTooLarge=!1;this.statusCode=n;this.message=t;this.success=n>=200&&n<=299;this.badRequest=n===400;this.serviceUnavailable=n===503;this.paymentRequired=n===402;this.unableToAuthenticate=n===401||n===403;this.notFound=n===404;this.requestEntityTooLarge=n===413}return n}(),t.SubmissionResponse=l,g=function(){function n(n,t){this.config=typeof n!="object"?new f(n):new f({apiKey:n,serverUrl:t})}return n.prototype.createException=function(n){var t=new e;return t.setException(n),this.createEvent(t).setType("error")},n.prototype.submitException=function(n,t){this.createException(n).submit(t)},n.prototype.createUnhandledException=function(n,t){var i=this.createException(n);return i.pluginContextData.markAsUnhandledError(),i.pluginContextData.setSubmissionMethod(t),i},n.prototype.submitUnhandledException=function(n,t,i){this.createUnhandledException(n,t).submit(i)},n.prototype.createFeatureUsage=function(n){return this.createEvent().setType("usage").setSource(n)},n.prototype.submitFeatureUsage=function(n,t){this.createFeatureUsage(n).submit(t)},n.prototype.createLog=function(n,t,i){var r=this.createEvent().setType("log"),u;return t&&i?r=r.setSource(n).setMessage(t).setProperty("@level",i):t?r=r.setSource(n).setMessage(t):(u=arguments.callee.caller,r=r.setSource(u&&u.name).setMessage(n)),r},n.prototype.submitLog=function(n,t,i,r){this.createLog(n,t,i).submit(r)},n.prototype.createNotFound=function(n){return this.createEvent().setType("404").setSource(n)},n.prototype.submitNotFound=function(n,t){this.createNotFound(n).submit(t)},n.prototype.createSessionStart=function(n){return this.createEvent().setType("start").setSessionId(n)},n.prototype.submitSessionStart=function(n,t){this.createSessionStart(n).submit(t)},n.prototype.createSessionEnd=function(n){return this.createEvent().setType("end").setSessionId(n)},n.prototype.submitSessionEnd=function(n,t){this.createSessionEnd(n).submit(t)},n.prototype.createEvent=function(n){return new d({date:new Date},this,n)},n.prototype.submitEvent=function(n,t,i){function u(n){return!n||(n.cancelled=!0),!!i&&i(n)}var r=new y(this,n,t);if(!n)return u(r);if(!this.config.enabled)return this.config.log.info("Event submission is currently disabled."),u(r);n.data||(n.data={});n.tags&&n.tags.length||(n.tags=[]);c.run(r,function(n){var t=n.event,r;n.cancelled||(t.type&&t.type.length!==0||(t.type="log"),t.date||(t.date=new Date),r=n.client.config,r.queue.enqueue(t),t.reference_id&&t.reference_id.length>0&&(n.log.info("Setting last reference id '"+t.reference_id+"'"),r.lastReferenceIdManager.setLast(t.reference_id)));!i||i(n)})},n.prototype.updateUserEmailAndDescription=function(n,t,i,r){var f=this,u;if(!n||!t||!i||!this.config.enabled)return!!r&&r(new l(500,"cancelled"));u={email_address:t,description:i};this.config.submissionClient.postUserDescription(n,u,this.config,function(t){t.success||f.config.log.error("Failed to submit user email and description for event '"+n+"': "+t.statusCode+" "+t.message);!r||r(t)})},n.prototype.getLastReferenceId=function(){return this.config.lastReferenceIdManager.getLast()},Object.defineProperty(n,"default",{get:function(){return n._instance===null&&(n._instance=new n(null)),n._instance},enumerable:!0,configurable:!0}),n._instance=null,n}(),t.ExceptionlessClient=g,nt=function(){function n(){this.priority=10;this.name="ConfigurationDefaultsPlugin"}return n.prototype.run=function(n,t){for(var i,r,u,e=n.client.config.defaultTags||[],f=0;f<e.length;f++)i=e[f],!!i&&n.event.tags.indexOf(i)<0&&n.event.tags.push(i);r=n.client.config.defaultData||{};for(u in r)!r[u]||(n.event.data[u]=r[u]);t&&t()},n}(),t.ConfigurationDefaultsPlugin=nt,tt=function(){function n(){this.priority=30;this.name="ErrorPlugin"}return n.prototype.run=function(n,t){var u="@error",f=n.contextData.getException(),i,r;if(!!f&&(n.event.type="error",!n.event.data[u])){if(i=n.client.config.errorParser,!i)throw new Error("No error parser was defined.");r=i.parse(n,f);!r||(n.event.data[u]=r)}t&&t()},n}(),t.ErrorPlugin=tt,it=function(){function n(){this.priority=40;this.name="ModuleInfoPlugin"}return n.prototype.run=function(n,t){var r="@error",u=n.client.config.moduleCollector,i;!n.event.data[r]||n.event.data["@error"].modules||!u||(i=u.getModules(n),i&&i.length>0&&(n.event.data[r].modules=i));t&&t()},n}(),t.ModuleInfoPlugin=it,rt=function(){function n(){this.priority=60;this.name="RequestInfoPlugin"}return n.prototype.run=function(n,t){var r="@request",u=n.client.config.requestInfoCollector,i;n.event.data[r]||!u||(i=u.getRequestInfo(n),!i||(n.event.data[r]=i));t&&t()},n}(),t.RequestInfoPlugin=rt,ut=function(){function n(){this.priority=70;this.name="EnvironmentInfoPlugin"}return n.prototype.run=function(n,t){var r="@environment",u=n.client.config.environmentInfoCollector,i;!n.event.data[r]&&u&&(i=u.getEnvironmentInfo(n),!i||(n.event.data[r]=i));t&&t()},n}(),t.EnvironmentInfoPlugin=ut,ft=function(){function n(){this.priority=100;this.name="SubmissionMethodPlugin"}return n.prototype.run=function(n,t){var i=n.contextData.getSubmissionMethod();!i||(n.event.data["@submission_method"]=i);t&&t()},n}(),t.SubmissionMethodPlugin=ft,o=function(){function n(n,t,i,r,u){i===void 0&&(i=-1);r===void 0&&(r=null);u===void 0&&(u=null);this.success=!1;this.settingsVersion=-1;this.success=n;this.settings=t;this.settingsVersion=i;this.exception=r;this.message=u}return n}(),t.SettingsResponse=o,et=function(){function n(){}return n.prototype.parse=function(n,t){function u(n){for(var i=(typeof n=="string"?[n]:n)||[],r=[],t=0;t<i.length;t++)r.push({name:i[t]});return r}function f(n){for(var t,r="<anonymous>",f=[],i=0;i<n.length;i++)t=n[i],f.push({name:(t.func||r).replace("?",r),parameters:u(t.args),file_name:t.url,line_number:t.line||0,column:t.column||0});return f}var r="@@_TraceKit.StackTrace",i=!n.contextData[r]?TraceKit.computeStackTrace(t,25):n.contextData[r];if(!i)throw new Error("Unable to parse the exceptions stack trace.");return{type:i.name,message:i.message||t.message,stack_trace:f(i.stack||[])}},n}(),t.DefaultErrorParser=et,ot=function(){function n(){}return n.prototype.getModules=function(){var r,t,n;if(document&&document.getElementsByTagName)return null;if(r=[],t=document.getElementsByTagName("script"),t&&t.length>0)for(n=0;n<t.length;n++)t[n].src?r.push({module_id:n,name:t[n].src,version:i.parseVersion(t[n].src)}):!t[n].innerHTML||r.push({module_id:n,name:"Script Tag",version:i.getHashCode(t[n].innerHTML)});return r},n}(),t.DefaultModuleCollector=ot,st=function(){function n(){}return n.prototype.getRequestInfo=function(){if(!document||!navigator||!location)return null;var n={user_agent:navigator.userAgent,is_secure:location.protocol==="https:",host:location.hostname,port:location.port&&location.port!==""?parseInt(location.port,10):80,path:location.pathname,cookies:i.getCookies(document.cookie),query_string:i.parseQueryString(location.search.substring(1))};return document.referrer&&document.referrer!==""&&(n.referrer=document.referrer),n},n}(),t.DefaultRequestInfoCollector=st,ht=function(){function n(){}return n.prototype.sendRequest=function(n,t){function r(i,r){function l(n){for(var t,i,u={},f=(n||"").split("\r\n"),r=0;r<f.length;r++)t=f[r],i=t.indexOf(": "),i>0&&(u[t.substring(0,i).toLowerCase()]=t.substring(i+2));return u}var c;if(!e){e=!0;var s=r.statusText,h=r.responseText,o=r.status;if(i===f||o===0)s="Unable to connect to server.",o=0;else if(i!==u||o){if(o<200||o>299)if(c=r.responseBody,!c||!c.message){if(!!h&&h.indexOf("message")!==-1)try{s=JSON.parse(h).message}catch(a){s=h}}else s=c.message}else o=n.method==="POST"?202:200;t(o||500,s||"",h,l(r.getAllResponseHeaders&&r.getAllResponseHeaders()))}}function s(n,t,i){var r=new XMLHttpRequest;return typeof XDomainRequest!="undefined"?(o=!0,r=new XDomainRequest,r.open(t,location.protocol==="http:"?i.replace("https:","http:"):i)):r=null,r&&(r.timeout=1e4),r}var f="timeout",u="loaded",e=!1,o=!1,h=""+n.serverUrl+n.path+"?access_token="+encodeURIComponent(n.apiKey),i=s(n.userAgent,n.method||"POST",h);if(!i)return t(503,"CORS not supported.");"withCredentials"in i&&(i.onreadystatechange=function(){i.readyState===4&&r(u,i)});i.onprogress=function(){};i.ontimeout=function(){return r(f,i)};i.onerror=function(){return r("error",i)};i.onload=function(){return r(u,i)};o?setTimeout(function(){return i.send(n.data)},500):i.send(n.data)},n}(),t.DefaultSubmissionAdapter=ht,r=f.defaults,u=ct(),u&&(u.apiKey||u.serverUrl)&&(r.apiKey=u.apiKey,r.serverUrl=u.serverUrl),r.errorParser=new et,r.moduleCollector=new ot,r.requestInfoCollector=new st,r.submissionAdapter=new ht,TraceKit.report.subscribe(lt),TraceKit.extendToAsynchronousCallbacks(),Error.stackTraceLimit=Infinity,t}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ri(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ui(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ft))}}function st(n){return n&&{}.toString.call(n)==="[object Function]"}function i(n,t){if(n.nodeType!==1)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function w(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function e(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=i(n),r=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll)/.test(r+f+u)?n:e(w(n))}function r(n){var t=n&&n.offsetParent,u=t&&t.nodeName;return!u||u==="BODY"||u==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TD","TABLE"].indexOf(t.nodeName)!==-1&&i(t,"position")==="static"?r(t):t}function fi(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||r(n.firstElementChild)===n}function b(n){return n.parentNode!==null?b(n.parentNode):n}function h(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,u=document.createRange();return(u.setStart(o,0),u.setEnd(s,0),i=u.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?fi(i)?i:r(i):(f=b(n),f.host?h(f.host,t):h(n,b(t).host))}function u(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function ei(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=u(t,"top"),f=u(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=f*i,n.right+=f*i,n}function ht(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function ct(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],o()?i["offset"+n]+r["margin"+(n==="Height"?"Top":"Left")]+r["margin"+(n==="Height"?"Bottom":"Right")]:0)}function lt(){var t=document.body,n=document.documentElement,i=o()&&getComputedStyle(n);return{height:ct("Height",t,n,i),width:ct("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function k(n){var r={},e,s,l;if(o())try{r=n.getBoundingClientRect();e=u(n,"top");s=u(n,"left");r.top+=e;r.left+=s;r.bottom+=e;r.right+=s}catch(p){}else r=n.getBoundingClientRect();var f={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},a=n.nodeName==="HTML"?lt():{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=i(n),h-=ht(l,"x"),c-=ht(l,"y"),f.width-=h,f.height-=c),t(f)}function d(n,r){var y=o(),w=r.nodeName==="HTML",f=k(n),p=k(r),l=e(n),s=i(r),a=parseFloat(s.borderTopWidth,10),v=parseFloat(s.borderLeftWidth,10),u=t({top:f.top-p.top-a,left:f.left-p.left-v,width:f.width,height:f.height}),h,c;return u.marginTop=0,u.marginLeft=0,!y&&w&&(h=parseFloat(s.marginTop,10),c=parseFloat(s.marginLeft,10),u.top-=a-h,u.bottom-=a-h,u.left-=v-c,u.right-=v-c,u.marginTop=h,u.marginLeft=c),(y?r.contains(l):r===l&&l.nodeName!=="BODY")&&(u=ei(u,r)),u}function hi(n){var i=n.ownerDocument.documentElement,r=d(n,i),f=Math.max(i.clientWidth,window.innerWidth||0),e=Math.max(i.clientHeight,window.innerHeight||0),o=u(i),s=u(i,"left"),h={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:f,height:e};return t(h)}function at(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:i(n,"position")==="fixed"?!0:at(w(n))}function g(n,t,i,r){var u={top:0,left:0},s=h(n,t),o,f;if(r==="viewport")u=hi(s);else if(o=void 0,r==="scrollParent"?(o=e(w(t)),o.nodeName==="BODY"&&(o=n.ownerDocument.documentElement)):o=r==="window"?n.ownerDocument.documentElement:r,f=d(o,s),o.nodeName!=="HTML"||at(s))u=f;else{var c=lt(),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){var t=n.width,i=n.height;return t*i}function vt(t,i,r,u,f){var l=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var e=g(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ci(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function yt(n,t,i){var r=h(t,i);return d(i,r)}function pt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function l(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function wt(n,t,i){i=i.split("-")[0];var r=pt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[l(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function bt(n,i,r){var u=r===undefined?n:n.slice(0,li(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&st(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=yt(this.state,this.popper,this.reference),n.placement=vt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.offsets.popper=wt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="absolute",n=bt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function kt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function dt(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,typeof document.body.style[r]!="undefined")return r;return null}function vi(){return this.state.isDestroyed=!0,kt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[dt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gt(n){var t=n.ownerDocument;return t?t.defaultView:window}function ni(n,t,i,r){var f=n.nodeName==="BODY",u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||ni(e(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;gt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=e(n);return ni(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return gt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function di(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n}function gi(n,t,i,r,u){var f=yt(u,t,n),e=vt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:"absolute"}),i}function nr(t,i){var d=i.x,g=i.y,f=t.offsets.popper,c=s(t.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,p,w,b;c!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var nt=c!==undefined?c:i.gpuAcceleration,tt=r(t.instance.popper),v=k(tt),u={position:f.position},h={left:Math.floor(f.left),top:Math.floor(f.top),bottom:Math.floor(f.bottom),right:Math.floor(f.right)},e=d==="bottom"?"top":"bottom",o=g==="right"?"left":"right",y=dt("transform"),l=void 0,a=void 0;return a=e==="bottom"?-v.height+h.bottom:h.top,l=o==="right"?-v.width+h.right:h.left,nt&&y?(u[y]="translate3d("+l+"px, "+a+"px, 0)",u[e]=0,u[o]=0,u.willChange="transform"):(p=e==="bottom"?-1:1,w=o==="right"?-1:1,u[e]=a*p,u[o]=l*w,u.willChange=e+", "+o),b={"x-placement":t.placement},t.attributes=n({},b,t.attributes),t.styles=n({},u,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t}function ti(n,t,i){var u=s(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function tr(n,r){var c,e;if(!ti(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=r.element,typeof e=="string"){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,h=w.popper,o=w.reference,l=["left","right"].indexOf(k)!==-1,v=l?"height":"width",y=l?"Top":"Left",u=y.toLowerCase(),d=l?"left":"top",a=l?"bottom":"right",s=pt(e)[v];o[a]-s<h[u]&&(n.offsets.popper[u]-=h[u]-(o[a]-s));o[u]+s>h[a]&&(n.offsets.popper[u]+=o[u]+s-h[a]);n.offsets.popper=t(n.offsets.popper);var g=o[u]+o[v]/2-s/2,b=i(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[u]-nt-tt;return p=Math.max(Math.min(h[v]-s,p),0),n.arrowElement=e,n.offsets.arrow=(c={},f(c,u,Math.round(p)),f(c,d,""),c),n}function ir(n){return n==="end"?"start":n==="start"?"end":n}function ii(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=a.indexOf(n),i=a.slice(t+1).concat(a.slice(0,t));return r?i.reverse():i}function rr(t,i){if(kt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=g(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case v.FLIP:f=[r,o];break;case v.CLOCKWISE:f=ii(r);break;case v.COUNTERCLOCKWISE:f=ii(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=l(r);var a=t.offsets.popper,v=t.offsets.reference,c=Math.floor,p=r==="left"&&c(a.right)>c(v.left)||r==="right"&&c(a.left)<c(v.right)||r==="top"&&c(a.bottom)>c(v.top)||r==="bottom"&&c(a.top)<c(v.bottom),w=c(a.left)<c(e.left),b=c(a.right)>c(e.right),k=c(a.top)<c(e.top),d=c(a.bottom)>c(e.bottom),g=r==="left"&&w||r==="right"&&b||r==="top"&&k||r==="bottom"&&d,y=["top","bottom"].indexOf(r)!==-1,nt=!!i.flipVariations&&(y&&u==="start"&&w||y&&u==="end"&&b||!y&&u==="start"&&k||!y&&u==="end"&&d);(p||g||nt)&&(t.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=ir(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,wt(t.instance.popper,t.offsets.reference,t.placement)),t=bt(t.instance.modifiers,t,"flip"))}),t}function ur(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function fr(n,i,r,u){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+h[1],f=h[2],o,c,s;if(!e)return n;if(f.indexOf("%")===0){o=void 0;switch(f){case"%p":o=r;break;case"%":case"%r":default:o=u}return c=t(o),c[i]/100*e}return f==="vh"||f==="vw"?(s=void 0,s=f==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*e):e}function er(n,t,i,r){var h=[0,0],c=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return n.search(/,|\s/)!==-1})),o,e;return u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=f!==-1?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(r===1?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return fr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(h[t]+=i*(n[r-1]==="-"?-1:1))})}),h}function or(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:er(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function sr(t,i){var o=i.boundariesElement||r(t.instance.popper),e;t.instance.reference===o&&(o=r(o));e=g(t.instance.popper,t.instance.reference,i.padding,o);i.boundaries=e;var s=i.priority,u=t.offsets.popper,h={primary:function(n){var t=u[n];return u[n]<e[n]&&!i.escapeWithReference&&(t=Math.max(u[n],e[n])),f({},n,t)},secondary:function(n){var t=n==="right"?"left":"top",r=u[t];return u[n]>e[n]&&!i.escapeWithReference&&(r=Math.min(u[t],e[n]-(n==="right"?u.width:u.height))),f({},t,r)}};return s.forEach(function(t){var i=["left","top"].indexOf(t)!==-1?"primary":"secondary";u=n({},u,h[i](t))}),t.offsets.popper=u,t}function hr(t){var u=t.placement,l=u.split("-")[0],e=u.split("-")[1];if(e){var o=t.offsets,r=o.reference,s=o.popper,h=["bottom","top"].indexOf(l)!==-1,i=h?"left":"top",c=h?"width":"height",a={start:f({},i,r[i]),end:f({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[e])}return t}function cr(n){if(!ti(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function lr(n){var u=n.placement,i=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=l(u),n.offsets.popper=t(r),n}for(var et,ot,c,o,it,a,v,rt=typeof window!="undefined"&&typeof document!="undefined",ut=["Edge","Trident","Firefox"],ft=0,p=0;p<ut.length;p+=1)if(rt&&navigator.userAgent.indexOf(ut[p])>=0){ft=1;break}et=rt&&window.Promise;ot=et?ri:ui;c=undefined;o=function(){return c===undefined&&(c=navigator.appVersion.indexOf("MSIE 10")!==-1),c};var oi=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},si=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};it=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];a=it.slice(3);v={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};var ar={shift:{order:100,enabled:!0,fn:hr},offset:{order:200,enabled:!0,fn:or,offset:0},preventOverflow:{order:300,enabled:!0,fn:sr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ur},arrow:{order:500,enabled:!0,fn:tr,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:lr},hide:{order:800,enabled:!0,fn:cr},computeStyle:{order:850,enabled:!0,fn:nr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:di,onLoad:gi,gpuAcceleration:undefined}},vr={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ar},y=function(){function t(i,r){var u=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;oi(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=ot(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){if(n.enabled&&st(n.onLoad))n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return si(t,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),t}();return y.Utils=(typeof window!="undefined"?window:global).PopperUtils,y.placements=it,y.Defaults=vr,y}),function(){"use strict";var n=function(n){function f(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function e(n){return(n[0]||n).nodeType}function o(){return{bindType:t.end,delegateType:t.end,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function s(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(t.style[n]!==undefined)return{end:r[n]};return!1}function h(t){var u=this,r=!1;n(this).one(i.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||i.triggerTransitionEnd(u)},t),this}function c(){t=s();n.fn.emulateTransitionEnd=h;i.supportsTransitionEnd()&&(n.event.special[i.TRANSITION_END]=o())}var t=!1,u=1e6,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*u);while(document.getElementById(n));return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target"),r;i&&i!=="#"||(i=t.getAttribute("href")||"");try{return r=n(i),r.length>0?i:null}catch(u){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(i){n(i).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(n,t,i){for(var r in i)if(i.hasOwnProperty(r)){var o=i[r],u=t[r],s=u&&e(u)?"element":f(u);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return c(),i}(jQuery),o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function e(n,t,i){var r,u,f;return n===null&&(n=Function.prototype),r=Object.getOwnPropertyDescriptor(n,t),r===undefined?(u=Object.getPrototypeOf(n),u===null?undefined:e(u,t,i)):"value"in r?r.value:(f=r.get,f===undefined)?undefined:f.call(i)},u=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)},f=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n},b=function(t){var f="alert",c="4.0.0-beta",e="bs.alert",o="."+e,l=t.fn[f],a=150,s={CLOSE:"close"+o,CLOSED:"closed"+o,CLICK_DATA_API:"click"+o+".data-api"},h={ALERT:"alert",FADE:"fade",SHOW:"show"},u=function(){function u(n){i(this,u);this._element=n}return r(u,[{key:"close",value:function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)}},{key:"dispose",value:function(){t.removeData(this._element,e);this._element=null}},{key:"_getRootElement",value:function(i){var u=n.getSelectorFromElement(i),r=!1;return u&&(r=t(u)[0]),r||(r=t(i).closest("."+h.ALERT)[0]),r}},{key:"_triggerCloseEvent",value:function(n){var i=t.Event(s.CLOSE);return t(n).trigger(i),i}},{key:"_removeElement",value:function(i){var r=this;if(t(i).removeClass(h.SHOW),!n.supportsTransitionEnd()||!t(i).hasClass(h.FADE)){this._destroyElement(i);return}t(i).one(n.TRANSITION_END,function(n){return r._destroyElement(i,n)}).emulateTransitionEnd(a)}},{key:"_destroyElement",value:function(n){t(n).detach().trigger(s.CLOSED).remove()}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var r=t(this),i=r.data(e);i||(i=new u(this),r.data(e,i));n==="close"&&i[n](this)})}},{key:"_handleDismiss",value:function(n){return function(t){t&&t.preventDefault();n.close(this)}}},{key:"VERSION",get:function(){return c}}]),u}();t(document).on(s.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,u._handleDismiss(new u));return t.fn[f]=u._jQueryInterface,t.fn[f].Constructor=u,t.fn[f].noConflict=function(){return t.fn[f]=l,u._jQueryInterface},u}(jQuery),k=function(n){var f="button",l="4.0.0-beta",o="bs.button",s="."+o,h=".data-api",a=n.fn[f],t={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+s+h,FOCUS_BLUR_DATA_API:"focus"+s+h+" "+("blur"+s+h)},e=function(){function f(n){i(this,f);this._element=n}return r(f,[{key:"toggle",value:function(){var f=!0,o=!0,r=n(this._element).closest(u.DATA_TOGGLE)[0],i,e;if(r&&(i=n(this._element).find(u.INPUT)[0],i)){if(i.type==="radio"&&(i.checked&&n(this._element).hasClass(t.ACTIVE)?f=!1:(e=n(r).find(u.ACTIVE)[0],e&&n(e).removeClass(t.ACTIVE))),f){if(i.hasAttribute("disabled")||r.hasAttribute("disabled")||i.classList.contains("disabled")||r.classList.contains("disabled"))return;i.checked=!n(this._element).hasClass(t.ACTIVE);n(i).trigger("change")}i.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!n(this._element).hasClass(t.ACTIVE));f&&n(this._element).toggleClass(t.ACTIVE)}},{key:"dispose",value:function(){n.removeData(this._element,o);this._element=null}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this).data(o);i||(i=new f(this),n(this).data(o,i));t==="toggle"&&i[t]()})}},{key:"VERSION",get:function(){return l}}]),f}();n(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(i){i.preventDefault();var r=i.target;n(r).hasClass(t.BUTTON)||(r=n(r).closest(u.BUTTON));e._jQueryInterface.call(n(r),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(i){var r=n(i.target).closest(u.BUTTON)[0];n(r).toggleClass(t.FOCUS,/^focus(in)?$/.test(i.type))});return n.fn[f]=e._jQueryInterface,n.fn[f].Constructor=e,n.fn[f].noConflict=function(){return n.fn[f]=a,e._jQueryInterface},e}(jQuery),d=function(t){var c="carousel",p="4.0.0-beta",a="bs.carousel",e="."+a,y=".data-api",w=t.fn[c],b=600,k=37,d=39,g=500,v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},nt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},f={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},s={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHEND:"touchend"+e,LOAD_DATA_API:"load"+e+y,CLICK_DATA_API:"click"+e+y},u={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},h={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},l=function(){function l(n,r){i(this,l);this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(r);this._element=t(n)[0];this._indicatorsElement=t(this._element).find(h.INDICATORS)[0];this._addEventListeners()}return r(l,[{key:"next",value:function(){this._isSliding||this._slide(f.NEXT)}},{key:"nextWhenVisible",value:function(){document.hidden||this.next()}},{key:"prev",value:function(){this._isSliding||this._slide(f.PREV)}},{key:"pause",value:function(i){i||(this._isPaused=!0);t(this._element).find(h.NEXT_PREV)[0]&&n.supportsTransitionEnd()&&(n.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null}},{key:"cycle",value:function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function(n){var u=this,i,r;if(this._activeElement=t(this._element).find(h.ACTIVE_ITEM)[0],i=this._getItemIndex(this._activeElement),!(n>this._items.length-1)&&!(n<0)){if(this._isSliding){t(this._element).one(s.SLID,function(){return u.to(n)});return}if(i===n){this.pause();this.cycle();return}r=n>i?f.NEXT:f.PREV;this._slide(r,this._items[n])}}},{key:"dispose",value:function(){t(this._element).off(e);t.removeData(this._element,a);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null}},{key:"_getConfig",value:function(i){return i=t.extend({},v,i),n.typeCheckConfig(c,i,nt),i}},{key:"_addEventListeners",value:function(){var n=this;if(this._config.keyboard)t(this._element).on(s.KEYDOWN,function(t){return n._keydown(t)});if(this._config.pause==="hover"){t(this._element).on(s.MOUSEENTER,function(t){return n.pause(t)}).on(s.MOUSELEAVE,function(t){return n.cycle(t)});if("ontouchstart"in document.documentElement)t(this._element).on(s.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},g+n._config.interval)})}}},{key:"_keydown",value:function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case k:n.preventDefault();this.prev();break;case d:n.preventDefault();this.next();break;default:return}}},{key:"_getItemIndex",value:function(n){return this._items=t.makeArray(t(n).parent().find(h.ITEM)),this._items.indexOf(n)}},{key:"_getItemByDirection",value:function(n,t){var e=n===f.NEXT,o=n===f.PREV,i=this._getItemIndex(t),s=this._items.length-1,h=o&&i===0||e&&i===s,u,r;return h&&!this._config.wrap?t:(u=n===f.PREV?-1:1,r=(i+u)%this._items.length,r===-1?this._items[this._items.length-1]:this._items[r])}},{key:"_triggerSlideEvent",value:function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(t(this._element).find(h.ACTIVE_ITEM)[0]),r=t.Event(s.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r}},{key:"_setActiveIndicatorElement",value:function(n){if(this._indicatorsElement){t(this._indicatorsElement).find(h.ACTIVE).removeClass(u.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(n)];i&&t(i).addClass(u.ACTIVE)}}},{key:"_slide",value:function(i,r){var y=this,o=t(this._element).find(h.ACTIVE_ITEM)[0],k=this._getItemIndex(o),e=r||o&&this._getItemByDirection(i,o),d=this._getItemIndex(e),p=Boolean(this._interval),c=void 0,l=void 0,a=void 0,w,v;if(i===f.NEXT?(c=u.LEFT,l=u.NEXT,a=f.LEFT):(c=u.RIGHT,l=u.PREV,a=f.RIGHT),e&&t(e).hasClass(u.ACTIVE)){this._isSliding=!1;return}(w=this._triggerSlideEvent(e,a),w.isDefaultPrevented())||o&&e&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(e),v=t.Event(s.SLID,{relatedTarget:e,direction:a,from:k,to:d}),n.supportsTransitionEnd()&&t(this._element).hasClass(u.SLIDE)?(t(e).addClass(l),n.reflow(e),t(o).addClass(c),t(e).addClass(c),t(o).one(n.TRANSITION_END,function(){t(e).removeClass(c+" "+l).addClass(u.ACTIVE);t(o).removeClass(u.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return t(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(t(o).removeClass(u.ACTIVE),t(e).addClass(u.ACTIVE),this._isSliding=!1,t(this._element).trigger(v)),p&&this.cycle())}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var i=t(this).data(a),u=t.extend({},v,t(this).data()),r;if((typeof n=="undefined"?"undefined":o(n))==="object"&&t.extend(u,n),r=typeof n=="string"?n:u.slide,i||(i=new l(this,u),t(this).data(a,i)),typeof n=="number")i.to(n);else if(typeof r=="string"){if(i[r]===undefined)throw new Error('No method named "'+r+'"');i[r]()}else u.interval&&(i.pause(),i.cycle())})}},{key:"_dataApiClickHandler",value:function(i){var o=n.getSelectorFromElement(this),r,e,f;o&&(r=t(o)[0],r&&t(r).hasClass(u.CAROUSEL))&&(e=t.extend({},t(r).data(),t(this).data()),f=this.getAttribute("data-slide-to"),f&&(e.interval=!1),l._jQueryInterface.call(t(r),e),f&&t(r).data(a).to(f),i.preventDefault())}},{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return v}}]),l}();t(document).on(s.CLICK_DATA_API,h.DATA_SLIDE,l._dataApiClickHandler);t(window).on(s.LOAD_DATA_API,function(){t(h.DATA_RIDE).each(function(){var n=t(this);l._jQueryInterface.call(n,n.data())})});return t.fn[c]=l._jQueryInterface,t.fn[c].Constructor=l,t.fn[c].noConflict=function(){return t.fn[c]=w,l._jQueryInterface},l}(jQuery),g=function(t){var e="collapse",p="4.0.0-beta",f="bs.collapse",s="."+f,w=t.fn[e],y=600,l={toggle:!0,parent:""},b={toggle:"boolean",parent:"string"},h={SHOW:"show"+s,SHOWN:"shown"+s,HIDE:"hide"+s,HIDDEN:"hidden"+s,CLICK_DATA_API:"click"+s+".data-api"},u={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},a={WIDTH:"width",HEIGHT:"height"},v={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},c=function(){function s(r,u){var e,f,o,h;for(i(this,s),this._isTransitioning=!1,this._element=r,this._config=this._getConfig(u),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+r.id+'"],'+('[data-toggle="collapse"][data-target="#'+r.id+'"]'))),e=t(v.DATA_TOGGLE),f=0;f<e.length;f++)o=e[f],h=n.getSelectorFromElement(o),h!==null&&t(h).filter(r).length>0&&this._triggerArray.push(o);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}return r(s,[{key:"toggle",value:function(){t(this._element).hasClass(u.SHOW)?this.hide():this.show()}},{key:"show",value:function(){var o=this,i,e,c,r,l,a,p;if(!this._isTransitioning&&!t(this._element).hasClass(u.SHOW)&&(i=void 0,e=void 0,this._parent&&(i=t.makeArray(t(this._parent).children().children(v.ACTIVES)),i.length||(i=null)),!i||(e=t(i).data(f),!e||!e._isTransitioning))&&(c=t.Event(h.SHOW),t(this._element).trigger(c),!c.isDefaultPrevented())){if(i&&(s._jQueryInterface.call(t(i),"hide"),e||t(i).data(f,null)),r=this._getDimension(),t(this._element).removeClass(u.COLLAPSE).addClass(u.COLLAPSING),this._element.style[r]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(u.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){t(o._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).addClass(u.SHOW);o._element.style[r]="";o.setTransitioning(!1);t(o._element).trigger(h.SHOWN)},!n.supportsTransitionEnd()){l();return}a=r[0].toUpperCase()+r.slice(1);p="scroll"+a;t(this._element).one(n.TRANSITION_END,l).emulateTransitionEnd(y);this._element.style[r]=this._element[p]+"px"}}},{key:"hide",value:function(){var c=this,f,i,r,e,o,l,s;if(!this._isTransitioning&&t(this._element).hasClass(u.SHOW)&&(f=t.Event(h.HIDE),t(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",n.reflow(this._element),t(this._element).addClass(u.COLLAPSING).removeClass(u.COLLAPSE).removeClass(u.SHOW),this._triggerArray.length)for(r=0;r<this._triggerArray.length;r++)e=this._triggerArray[r],o=n.getSelectorFromElement(e),o!==null&&(l=t(o),l.hasClass(u.SHOW)||t(e).addClass(u.COLLAPSED).attr("aria-expanded",!1));if(this.setTransitioning(!0),s=function(){c.setTransitioning(!1);t(c._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).trigger(h.HIDDEN)},this._element.style[i]="",!n.supportsTransitionEnd()){s();return}t(this._element).one(n.TRANSITION_END,s).emulateTransitionEnd(y)}}},{key:"setTransitioning",value:function(n){this._isTransitioning=n}},{key:"dispose",value:function(){t.removeData(this._element,f);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null}},{key:"_getConfig",value:function(i){return i=t.extend({},l,i),i.toggle=Boolean(i.toggle),n.typeCheckConfig(e,i,b),i}},{key:"_getDimension",value:function(){var n=t(this._element).hasClass(a.WIDTH);return n?a.WIDTH:a.HEIGHT}},{key:"_getParent",value:function(){var i=this,n=t(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(r).each(function(n,t){i._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),n}},{key:"_addAriaAndCollapsedClass",value:function(n,i){if(n){var r=t(n).hasClass(u.SHOW);i.length&&t(i).toggleClass(u.COLLAPSED,!r).attr("aria-expanded",r)}}}],[{key:"_getTargetFromElement",value:function(i){var r=n.getSelectorFromElement(i);return r?t(r)[0]:null}},{key:"_jQueryInterface",value:function(n){return this.each(function(){var r=t(this),i=r.data(f),u=t.extend({},l,r.data(),(typeof n=="undefined"?"undefined":o(n))==="object"&&n);if(!i&&u.toggle&&/show|hide/.test(n)&&(u.toggle=!1),i||(i=new s(this,u),r.data(f,i)),typeof n=="string"){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n]()}})}},{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return l}}]),s}();t(document).on(h.CLICK_DATA_API,v.DATA_TOGGLE,function(i){/input|textarea/i.test(i.target.tagName)||i.preventDefault();var r=t(this),u=n.getSelectorFromElement(this);t(u).each(function(){var n=t(this),i=n.data(f),u=i?"toggle":r.data();c._jQueryInterface.call(n,u)})});return t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=w,c._jQueryInterface},c}(jQuery),nt=function(t){var h="modal",p="4.0.0-beta",c="bs.modal",e="."+c,w=t.fn[h],a=300,v=150,b=27,y={backdrop:!0,keyboard:!0,focus:!0,show:!0},k={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,FOCUSIN:"focusin"+e,RESIZE:"resize"+e,CLICK_DISMISS:"click.dismiss"+e,KEYDOWN_DISMISS:"keydown.dismiss"+e,MOUSEUP_DISMISS:"mouseup.dismiss"+e,MOUSEDOWN_DISMISS:"mousedown.dismiss"+e,CLICK_DATA_API:"click"+e+".data-api"},f={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},s={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},l=function(){function l(n,r){i(this,l);this._config=this._getConfig(r);this._element=n;this._dialog=t(n).find(s.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}return r(l,[{key:"toggle",value:function(n){return this._isShown?this.hide():this.show(n)}},{key:"show",value:function(i){var r=this,e;if(!this._isTransitioning&&(n.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE)&&(this._isTransitioning=!0),e=t.Event(u.SHOW,{relatedTarget:i}),t(this._element).trigger(e),!this._isShown&&!e.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();t(document.body).addClass(f.OPEN);this._setEscapeEvent();this._setResizeEvent();t(this._element).on(u.CLICK_DISMISS,s.DATA_DISMISS,function(n){return r.hide(n)});t(this._dialog).on(u.MOUSEDOWN_DISMISS,function(){t(r._element).one(u.MOUSEUP_DISMISS,function(n){t(n.target).is(r._element)&&(r._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return r._showElement(i)})}}},{key:"hide",value:function(i){var o=this,r,e;(i&&i.preventDefault(),!this._isTransitioning&&this._isShown)&&(r=n.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE),r&&(this._isTransitioning=!0),e=t.Event(u.HIDE),t(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented())&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(u.FOCUSIN),t(this._element).removeClass(f.SHOW),t(this._element).off(u.CLICK_DISMISS),t(this._dialog).off(u.MOUSEDOWN_DISMISS),r?t(this._element).one(n.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(a):this._hideModal())}},{key:"dispose",value:function(){t.removeData(this._element,c);t(window,document,this._element,this._backdrop).off(e);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null}},{key:"handleUpdate",value:function(){this._adjustDialog()}},{key:"_getConfig",value:function(i){return i=t.extend({},y,i),n.typeCheckConfig(h,i,k),i}},{key:"_showElement",value:function(i){var r=this,o=n.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE),s,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&n.reflow(this._element);t(this._element).addClass(f.SHOW);this._config.focus&&this._enforceFocus();s=t.Event(u.SHOWN,{relatedTarget:i});e=function(){r._config.focus&&r._element.focus();r._isTransitioning=!1;t(r._element).trigger(s)};o?t(this._dialog).one(n.TRANSITION_END,e).emulateTransitionEnd(a):e()}},{key:"_enforceFocus",value:function(){var n=this;t(document).off(u.FOCUSIN).on(u.FOCUSIN,function(i){document===i.target||n._element===i.target||t(n._element).has(i.target).length||n._element.focus()})}},{key:"_setEscapeEvent",value:function(){var n=this;if(this._isShown&&this._config.keyboard)t(this._element).on(u.KEYDOWN_DISMISS,function(t){t.which===b&&(t.preventDefault(),n.hide())});else this._isShown||t(this._element).off(u.KEYDOWN_DISMISS)}},{key:"_setResizeEvent",value:function(){var n=this;if(this._isShown)t(window).on(u.RESIZE,function(t){return n.handleUpdate(t)});else t(window).off(u.RESIZE)}},{key:"_hideModal",value:function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(f.OPEN);n._resetAdjustments();n._resetScrollbar();t(n._element).trigger(u.HIDDEN)})}},{key:"_removeBackdrop",value:function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(i){var r=this,e=t(this._element).hasClass(f.FADE)?f.FADE:"",o,s;if(this._isShown&&this._config.backdrop){o=n.supportsTransitionEnd()&&e;this._backdrop=document.createElement("div");this._backdrop.className=f.BACKDROP;e&&t(this._backdrop).addClass(e);t(this._backdrop).appendTo(document.body);t(this._element).on(u.CLICK_DISMISS,function(n){if(r._ignoreBackdropClick){r._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(r._config.backdrop==="static"?r._element.focus():r.hide())});if(o&&n.reflow(this._backdrop),t(this._backdrop).addClass(f.SHOW),!i)return;if(!o){i();return}t(this._backdrop).one(n.TRANSITION_END,i).emulateTransitionEnd(v)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(f.SHOW),s=function(){r._removeBackdrop();i&&i()},n.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE)?t(this._backdrop).one(n.TRANSITION_END,s).emulateTransitionEnd(v):s()):i&&i()}},{key:"_adjustDialog",value:function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var n=this,i,r;this._isBodyOverflowing&&(t(s.FIXED_CONTENT).each(function(i,r){var u=t(r)[0].style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(s.NAVBAR_TOGGLER).each(function(i,r){var u=t(r)[0].style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),i=document.body.style.paddingRight,r=t("body").css("padding-right"),t("body").data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px"))}},{key:"_resetScrollbar",value:function(){t(s.FIXED_CONTENT).each(function(n,i){var r=t(i).data("padding-right");typeof r!="undefined"&&t(i).css("padding-right",r).removeData("padding-right")});t(s.NAVBAR_TOGGLER).each(function(n,i){var r=t(i).data("margin-right");typeof r!="undefined"&&t(i).css("margin-right",r).removeData("margin-right")});var n=t("body").data("padding-right");typeof n!="undefined"&&t("body").css("padding-right",n).removeData("padding-right")}},{key:"_getScrollbarWidth",value:function(){var n=document.createElement("div"),t;return n.className=f.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t}}],[{key:"_jQueryInterface",value:function(n,i){return this.each(function(){var r=t(this).data(c),u=t.extend({},l.Default,t(this).data(),(typeof n=="undefined"?"undefined":o(n))==="object"&&n);if(r||(r=new l(this,u),t(this).data(c,r)),typeof n=="string"){if(r[n]===undefined)throw new Error('No method named "'+n+'"');r[n](i)}else u.show&&r.show(i)})}},{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return y}}]),l}();t(document).on(u.CLICK_DATA_API,s.DATA_TOGGLE,function(i){var f=this,r=void 0,e=n.getSelectorFromElement(this),o,s;e&&(r=t(e)[0]);o=t(r).data(c)?"toggle":t.extend({},t(r).data(),t(this).data());(this.tagName==="A"||this.tagName==="AREA")&&i.preventDefault();s=t(r).one(u.SHOW,function(n){if(!n.isDefaultPrevented())s.one(u.HIDDEN,function(){t(f).is(":visible")&&f.focus()})});l._jQueryInterface.call(t(r),o,this)});return t.fn[h]=l._jQueryInterface,t.fn[h].Constructor=l,t.fn[h].noConflict=function(){return t.fn[h]=w,l._jQueryInterface},l}(jQuery),h=function(t){if(typeof Popper=="undefined")throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var h="tooltip",y="4.0.0-beta",c="bs.tooltip",u="."+c,p=t.fn[h],w=150,a="bs-tooltip",b=new RegExp("(^|\\s)"+a+"\\S+","g"),k={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},g={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},s={SHOW:"show",OUT:"out"},nt={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},f={FADE:"fade",SHOW:"show"},v={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function l(n,t){i(this,l);this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}return r(l,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(n){if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(f.SHOW)){this._leave(null,this);return}this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null}},{key:"show",value:function(){var i=this,u,c,r,e,a,o,y,h;if(t(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(u=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(u),c=t.contains(this.element.ownerDocument.documentElement,this.element),u.isDefaultPrevented()||!c)return;if(r=this.getTipElement(),e=n.getUID(this.constructor.NAME),r.setAttribute("id",e),this.element.setAttribute("aria-describedby",e),this.setContent(),this.config.animation&&t(r).addClass(f.FADE),a=typeof this.config.placement=="function"?this.config.placement.call(this,r,this.element):this.config.placement,o=this._getAttachment(a),this.addAttachmentClass(o),y=this.config.container===!1?document.body:t(this.config.container),t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(y),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,r,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v.ARROW}},onCreate:function(n){n.originalPlacement!==n.placement&&i._handlePopperPlacementChange(n)},onUpdate:function(n){i._handlePopperPlacementChange(n)}}),t(r).addClass(f.SHOW),"ontouchstart"in document.documentElement)t("body").children().on("mouseover",null,t.noop);h=function(){i.config.animation&&i._fixTransition();var n=i._hoverState;i._hoverState=null;t(i.element).trigger(i.constructor.Event.SHOWN);n===s.OUT&&i._leave(null,i)};n.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(this.tip).one(n.TRANSITION_END,h).emulateTransitionEnd(l._TRANSITION_DURATION):h()}}},{key:"hide",value:function(i){var r=this,u=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),h=function(){r._hoverState!==s.SHOW&&u.parentNode&&u.parentNode.removeChild(u);r._cleanTipClass();r.element.removeAttribute("aria-describedby");t(r.element).trigger(r.constructor.Event.HIDDEN);r._popper!==null&&r._popper.destroy();i&&i()};(t(this.element).trigger(o),o.isDefaultPrevented())||(t(u).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,n.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(u).one(n.TRANSITION_END,h).emulateTransitionEnd(w):h(),this._hoverState="")}},{key:"update",value:function(){this._popper!==null&&this._popper.scheduleUpdate()}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"addAttachmentClass",value:function(n){t(this.getTipElement()).addClass(a+"-"+n)}},{key:"getTipElement",value:function(){return this.tip=this.tip||t(this.config.template)[0]}},{key:"setContent",value:function(){var n=t(this.getTipElement());this.setElementContent(n.find(v.TOOLTIP_INNER),this.getTitle());n.removeClass(f.FADE+" "+f.SHOW)}},{key:"setElementContent",value:function(n,i){var r=this.config.html;(typeof i=="undefined"?"undefined":o(i))==="object"&&(i.nodeType||i.jquery)?r?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text()):n[r?"html":"text"](i)}},{key:"getTitle",value:function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n}},{key:"_getAttachment",value:function(n){return d[n.toUpperCase()]}},{key:"_setListeners",value:function(){var n=this,i=this.config.trigger.split(" ");i.forEach(function(i){if(i==="click")t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==e.MANUAL){var r=i===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}t(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var n=o(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(n,i){var r=this.constructor.DATA_KEY;if(i=i||t(n.currentTarget).data(r),i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i)),n&&(i._activeTrigger[n.type==="focusin"?e.FOCUS:e.HOVER]=!0),t(i.getTipElement()).hasClass(f.SHOW)||i._hoverState===s.SHOW){i._hoverState=s.SHOW;return}if(clearTimeout(i._timeout),i._hoverState=s.SHOW,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===s.SHOW&&i.show()},i.config.delay.show)}},{key:"_leave",value:function(n,i){var r=this.constructor.DATA_KEY;if(i=i||t(n.currentTarget).data(r),i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i)),n&&(i._activeTrigger[n.type==="focusout"?e.FOCUS:e.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=s.OUT,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===s.OUT&&i.hide()},i.config.delay.hide)}}},{key:"_isWithActiveTrigger",value:function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1}},{key:"_getConfig",value:function(i){return i=t.extend({},this.constructor.Default,t(this.element).data(),i),i.delay&&typeof i.delay=="number"&&(i.delay={show:i.delay,hide:i.delay}),i.title&&typeof i.title=="number"&&(i.title=i.title.toString()),i.content&&typeof i.content=="number"&&(i.content=i.content.toString()),n.typeCheckConfig(h,i,this.constructor.DefaultType),i}},{key:"_getDelegateConfig",value:function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t}},{key:"_cleanTipClass",value:function(){var i=t(this.getTipElement()),n=i.attr("class").match(b);n!==null&&n.length>0&&i.removeClass(n.join(""))}},{key:"_handlePopperPlacementChange",value:function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))}},{key:"_fixTransition",value:function(){var n=this.getTipElement(),i=this.config.animation;n.getAttribute("x-placement")===null&&(t(n).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var i=t(this).data(c),r=(typeof n=="undefined"?"undefined":o(n))==="object"&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new l(this,r),t(this).data(c,i)),typeof n=="string")){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n]()}})}},{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return g}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return k}}]),l}();return t.fn[h]=l._jQueryInterface,t.fn[h].Constructor=l,t.fn[h].noConflict=function(){return t.fn[h]=p,l._jQueryInterface},l}(jQuery),tt=function(n){var e="popover",y="4.0.0-beta",s="bs.popover",t="."+s,p=n.fn[e],l="bs-popover",w=new RegExp("(^|\\s)"+l+"\\S+","g"),b=n.extend({},h.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),k=n.extend({},h.DefaultType,{content:"(string|element|function)"}),a={FADE:"fade",SHOW:"show"},v={TITLE:".popover-header",CONTENT:".popover-body"},d={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},c=function(h){function c(){return i(this,c),f(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return u(c,h),r(c,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"addAttachmentClass",value:function(t){n(this.getTipElement()).addClass(l+"-"+t)}},{key:"getTipElement",value:function(){return this.tip=this.tip||n(this.config.template)[0]}},{key:"setContent",value:function(){var t=n(this.getTipElement());this.setElementContent(t.find(v.TITLE),this.getTitle());this.setElementContent(t.find(v.CONTENT),this._getContent());t.removeClass(a.FADE+" "+a.SHOW)}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||(typeof this.config.content=="function"?this.config.content.call(this.element):this.config.content)}},{key:"_cleanTipClass",value:function(){var i=n(this.getTipElement()),t=i.attr("class").match(w);t!==null&&t.length>0&&i.removeClass(t.join(""))}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this).data(s),r=(typeof t=="undefined"?"undefined":o(t))==="object"?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new c(this,r),n(this).data(s,i)),typeof t=="string")){if(i[t]===undefined)throw new Error('No method named "'+t+'"');i[t]()}})}},{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return b}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return s}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return k}}]),c}(h);return n.fn[e]=c._jQueryInterface,n.fn[e].Constructor=c,n.fn[e].noConflict=function(){return n.fn[e]=p,c._jQueryInterface},c}(jQuery),it=function(t){var f="scrollspy",y="4.0.0-beta",h="bs.scrollspy",c="."+h,p=t.fn[f],v={offset:10,method:"auto",target:""},w={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+c,SCROLL:"scroll"+c,LOAD_DATA_API:"load"+c+".data-api"},e={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},a={OFFSET:"offset",POSITION:"position"},s=function(){function s(n,r){var f=this;i(this,s);this._element=n;this._scrollElement=n.tagName==="BODY"?window:n;this._config=this._getConfig(r);this._selector=this._config.target+" "+u.NAV_LINKS+","+(this._config.target+" "+u.LIST_ITEMS+",")+(this._config.target+" "+u.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(l.SCROLL,function(n){return f._process(n)});this.refresh();this._process()}return r(s,[{key:"refresh",value:function(){var i=this,f=this._scrollElement!==this._scrollElement.window?a.POSITION:a.OFFSET,r=this._config.method==="auto"?f:this._config.method,e=r===a.POSITION?this._getScrollTop():0,u;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u=t.makeArray(t(this._selector));u.map(function(i){var u=void 0,f=n.getSelectorFromElement(i),o;return(f&&(u=t(f)[0]),u&&(o=u.getBoundingClientRect(),o.width||o.height))?[t(u)[r]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){i._offsets.push(n[0]);i._targets.push(n[1])})}},{key:"dispose",value:function(){t.removeData(this._element,h);t(this._scrollElement).off(c);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null}},{key:"_getConfig",value:function(i){if(i=t.extend({},v,i),typeof i.target!="string"){var r=t(i.target).attr("id");r||(r=n.getUID(f),t(i.target).attr("id",r));i.target="#"+r}return n.typeCheckConfig(f,i,w),i}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(this._offsets[n+1]===undefined||t<this._offsets[n+1]),u&&this._activate(this._targets[n])}},{key:"_activate",value:function(n){var r,i;this._activeTarget=n;this._clear();r=this._selector.split(",");r=r.map(function(t){return t+'[data-target="'+n+'"],'+(t+'[href="'+n+'"]')});i=t(r.join(","));i.hasClass(e.DROPDOWN_ITEM)?(i.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(e.ACTIVE),i.addClass(e.ACTIVE)):(i.addClass(e.ACTIVE),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_LINKS+", "+u.LIST_ITEMS).addClass(e.ACTIVE));t(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:n})}},{key:"_clear",value:function(){t(this._selector).filter(u.ACTIVE).removeClass(e.ACTIVE)}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var i=t(this).data(h),r=(typeof n=="undefined"?"undefined":o(n))==="object"&&n;if(i||(i=new s(this,r),t(this).data(h,i)),typeof n=="string"){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n]()}})}},{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return v}}]),s}();t(window).on(l.LOAD_DATA_API,function(){for(var n,i=t.makeArray(t(u.DATA_SPY)),r=i.length;r--;)n=t(i[r]),s._jQueryInterface.call(n,n.data())});return t.fn[f]=s._jQueryInterface,t.fn[f].Constructor=s,t.fn[f].noConflict=function(){return t.fn[f]=p,s._jQueryInterface},s}(jQuery),rt=function(t){var e="tab",l="4.0.0-beta",c="bs.tab",o="."+c,a=t.fn[e],v=150,s={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK_DATA_API:"click"+o+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function e(n){i(this,e);this._element=n}return r(e,[{key:"show",value:function(){var l=this,o,h,c;if((!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!t(this._element).hasClass(u.ACTIVE))&&!t(this._element).hasClass(u.DISABLED)){var r=void 0,i=void 0,e=t(this._element).closest(f.NAV_LIST_GROUP)[0],a=n.getSelectorFromElement(this._element);(e&&(i=t.makeArray(t(e).find(f.ACTIVE)),i=i[i.length-1]),o=t.Event(s.HIDE,{relatedTarget:this._element}),h=t.Event(s.SHOW,{relatedTarget:i}),i&&t(i).trigger(o),t(this._element).trigger(h),h.isDefaultPrevented()||o.isDefaultPrevented())||(a&&(r=t(a)[0]),this._activate(this._element,e),c=function(){var n=t.Event(s.HIDDEN,{relatedTarget:l._element}),r=t.Event(s.SHOWN,{relatedTarget:i});t(i).trigger(n);t(l._element).trigger(r)},r?this._activate(r,r.parentNode,c):c())}}},{key:"dispose",value:function(){t.removeData(this._element,c);this._element=null}},{key:"_activate",value:function(i,r,e){var c=this,o=t(r).find(f.ACTIVE)[0],s=e&&n.supportsTransitionEnd()&&o&&t(o).hasClass(u.FADE),h=function(){return c._transitionComplete(i,o,s,e)};o&&s?t(o).one(n.TRANSITION_END,h).emulateTransitionEnd(v):h();o&&t(o).removeClass(u.SHOW)}},{key:"_transitionComplete",value:function(i,r,e,o){var s,h;r&&(t(r).removeClass(u.ACTIVE),s=t(r.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],s&&t(s).removeClass(u.ACTIVE),r.setAttribute("aria-expanded",!1));t(i).addClass(u.ACTIVE);i.setAttribute("aria-expanded",!0);e?(n.reflow(i),t(i).addClass(u.SHOW)):t(i).removeClass(u.FADE);i.parentNode&&t(i.parentNode).hasClass(u.DROPDOWN_MENU)&&(h=t(i).closest(f.DROPDOWN)[0],h&&t(h).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),i.setAttribute("aria-expanded",!0));o&&o()}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var r=t(this),i=r.data(c);if(i||(i=new e(this),r.data(c,i)),typeof n=="string"){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n]()}})}},{key:"VERSION",get:function(){return l}}]),e}();t(document).on(s.CLICK_DATA_API,f.DATA_TOGGLE,function(n){n.preventDefault();h._jQueryInterface.call(t(this),"show")});return t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=a,h._jQueryInterface},h}(jQuery),t=function(){function r(){var i,t;if(window.QUnit)return!1;i=document.createElement("bmd");for(t in n)if(i.style[t]!==undefined)return n[t];return!1}function u(){t=r();for(var u in n)i+=" "+n[u]}var t=!1,i="",n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},f={transitionEndSupported:function(){return t},transitionEndSelector:function(){return i},isChar:function(n){return typeof n.which=="undefined"?!0:typeof n.which=="number"&&n.which>0?!n.ctrlKey&&!n.metaKey&&!n.altKey&&n.which!==8&&n.which!==9&&n.which!==13&&n.which!==16&&n.which!==17&&n.which!==20&&n.which!==27:!1},assert:function(n,t,i){if(t){!n===undefined&&n.css("border","1px solid red");console.error(i,n);throw i;}},describe:function(n){return n===undefined?"undefined":n.length===0?"(no matching elements)":n[0].outerHTML.split(">")[0]+">"}};return u(),f}(jQuery),s=function(n){var u={BMD_FORM_GROUP:"bmd-form-group",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused"},f={BMD_FORM_GROUP:"."+u.BMD_FORM_GROUP},e={};return function(){function o(t,r){var f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u;i(this,o);this.$element=t;this.config=n.extend(!0,{},e,r);for(u in f)this[u]=f[u]}return r(o,[{key:"dispose",value:function(n){this.$element.data(n,null);this.$element=null;this.config=null}},{key:"addFormGroupFocus",value:function(){this.$element.prop("disabled")||this.$bmdFormGroup.addClass(u.IS_FOCUSED)}},{key:"removeFormGroupFocus",value:function(){this.$bmdFormGroup.removeClass(u.IS_FOCUSED)}},{key:"removeIsFilled",value:function(){this.$bmdFormGroup.removeClass(u.IS_FILLED)}},{key:"addIsFilled",value:function(){this.$bmdFormGroup.addClass(u.IS_FILLED)}},{key:"findMdbFormGroup",value:function(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=this.$element.closest(f.BMD_FORM_GROUP);return i.length===0&&r&&n.error("Failed to find "+f.BMD_FORM_GROUP+" for "+t.describe(this.$element)),i}}]),o}()}(jQuery),c=function(n){var o={FORM_GROUP:"form-group",BMD_FORM_GROUP:"bmd-form-group",BMD_LABEL:"bmd-label",BMD_LABEL_STATIC:"bmd-label-static",BMD_LABEL_PLACEHOLDER:"bmd-label-placeholder",BMD_LABEL_FLOATING:"bmd-label-floating",HAS_DANGER:"has-danger",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused",INPUT_GROUP:"input-group"},h={FORM_GROUP:"."+o.FORM_GROUP,BMD_FORM_GROUP:"."+o.BMD_FORM_GROUP,BMD_LABEL_WILDCARD:"label[class^='"+o.BMD_LABEL+"'], label[class*=' "+o.BMD_LABEL+"']"},l={validate:!1,formGroup:{required:!1},bmdFormGroup:{template:"<span class='"+o.BMD_FORM_GROUP+"'><\/span>",create:!0,required:!0},label:{required:!1,selectors:[".form-control-label","> label"],className:o.BMD_LABEL_STATIC},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:!0},c={"form-control-lg":"bmd-form-group-lg","form-control-sm":"bmd-form-group-sm"};return function(s){function a(t,r){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u;return i(this,a),u=f(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,t,n.extend(!0,{},l,r),e)),u._rejectInvalidComponentMatches(),u.rejectWithoutRequiredStructure(),u._rejectWithoutRequiredClasses(),u.$formGroup=u.findFormGroup(u.config.formGroup.required),u.$bmdFormGroup=u.resolveMdbFormGroup(),u.$bmdLabel=u.resolveMdbLabel(),u.resolveMdbFormGroupSizing(),u.addFocusListener(),u.addChangeListener(),u.$element.val()!=""&&u.addIsFilled(),u}return u(a,s),r(a,[{key:"dispose",value:function(n){e(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"dispose",this).call(this,n);this.$bmdFormGroup=null;this.$formGroup=null}},{key:"rejectWithoutRequiredStructure",value:function(){}},{key:"addFocusListener",value:function(){var n=this;this.$element.on("focus",function(){n.addFormGroupFocus()}).on("blur",function(){n.removeFormGroupFocus()})}},{key:"addChangeListener",value:function(){var n=this;this.$element.on("keydown paste",function(i){t.isChar(i)&&n.addIsFilled()}).on("keyup change",function(){if(n.isEmpty()?n.removeIsFilled():n.addIsFilled(),n.config.validate){var t=typeof n.$element[0].checkValidity=="undefined"||n.$element[0].checkValidity();t?n.removeHasDanger():n.addHasDanger()}})}},{key:"addHasDanger",value:function(){this.$bmdFormGroup.addClass(o.HAS_DANGER)}},{key:"removeHasDanger",value:function(){this.$bmdFormGroup.removeClass(o.HAS_DANGER)}},{key:"isEmpty",value:function(){return this.$element.val()===null||this.$element.val()===undefined||this.$element.val()===""}},{key:"resolveMdbFormGroup",value:function(){var n=this.findMdbFormGroup(!1);return(n===undefined||n.length===0)&&(this.config.bmdFormGroup.create&&(this.$formGroup===undefined||this.$formGroup.length===0)?this.outerElement().parent().hasClass(o.INPUT_GROUP)?this.outerElement().parent().wrap(this.config.bmdFormGroup.template):this.outerElement().wrap(this.config.bmdFormGroup.template):this.$formGroup.addClass(o.BMD_FORM_GROUP),n=this.findMdbFormGroup(this.config.bmdFormGroup.required)),n}},{key:"outerElement",value:function(){return this.$element}},{key:"resolveMdbLabel",value:function(){var n=this.$bmdFormGroup.find(h.BMD_LABEL_WILDCARD);return(n===undefined||n.length===0)&&(n=this.findMdbLabel(this.config.label.required),n===undefined||n.length===0||n.addClass(this.config.label.className)),n}},{key:"findMdbLabel",value:function(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=null,f=!0,e=!1,o=undefined,r,s,u;try{for(r=this.config.label.selectors[Symbol.iterator]();!(f=(s=r.next()).done);f=!0)if(u=s.value,i=n.isFunction(u)?u(this):this.$bmdFormGroup.find(u),i!==undefined&&i.length>0)break}catch(l){e=!0;o=l}finally{try{!f&&r.return&&r.return()}finally{if(e)throw o;}}return i.length===0&&c&&n.error("Failed to find "+h.BMD_LABEL_WILDCARD+" within form-group for "+t.describe(this.$element)),i}},{key:"findFormGroup",value:function(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=this.$element.closest(h.FORM_GROUP);return i.length===0&&r&&n.error("Failed to find "+h.FORM_GROUP+" for "+t.describe(this.$element)),i}},{key:"resolveMdbFormGroupSizing",value:function(){if(this.config.convertInputSizeVariations)for(var n in c)this.$element.hasClass(n)&&this.$bmdFormGroup.addClass(c[n])}},{key:"_rejectInvalidComponentMatches",value:function(){var t=!0,i=!1,r=undefined,n,u,f;try{for(n=this.config.invalidComponentMatches[Symbol.iterator]();!(t=(u=n.next()).done);t=!0)f=u.value,f.rejectMatch(this.constructor.name,this.$element)}catch(e){i=!0;r=e}finally{try{!t&&n.return&&n.return()}finally{if(i)throw r;}}}},{key:"_rejectWithoutRequiredClasses",value:function(){var e=!0,s=!1,h=undefined,r,c,i,u,f,v,y;try{for(r=this.config.requiredClasses[Symbol.iterator]();!(e=(c=r.next()).done);e=!0){if(i=c.value,u=!1,i.indexOf("||")!==-1){var w=i.split("||"),o=!0,l=!1,a=undefined;try{for(f=w[Symbol.iterator]();!(o=(v=f.next()).done);o=!0)if(y=v.value,this.$element.hasClass(y)){u=!0;break}}catch(p){l=!0;a=p}finally{try{!o&&f.return&&f.return()}finally{if(l)throw a;}}}else this.$element.hasClass(i)&&(u=!0);u||n.error(this.constructor.name+" element: "+t.describe(this.$element)+" requires class: "+i)}}catch(p){s=!0;h=p}finally{try{!e&&r.return&&r.return()}finally{if(s)throw h;}}}}]),a}(s)}(jQuery),a=function(n){var e={label:{required:!1}},o={LABEL:"label"};return function(s){function h(t,r,u){i(this,h);var o=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,n.extend(!0,{},e,r),u));return o.decorateMarkup(),o}return u(h,s),r(h,[{key:"decorateMarkup",value:function(){var t=n(this.config.template);this.$element.after(t);this.config.ripples!==!1&&t.bmdRipples()}},{key:"outerElement",value:function(){return this.$element.parent().closest("."+this.outerClass)}},{key:"rejectWithoutRequiredStructure",value:function(){t.assert(this.$element,!1,this.constructor.name+"'s "+t.describe(this.$element)+" parent element should be <label>.");t.assert(this.$element,!this.outerElement().hasClass(this.outerClass),this.constructor.name+"'s "+t.describe(this.$element)+" outer element should have class "+this.outerClass+".")}},{key:"addFocusListener",value:function(){var n=this;this.$element.closest(o.LABEL).hover(function(){n.addFormGroupFocus()},function(){n.removeFormGroupFocus()})}},{key:"addChangeListener",value:function(){var n=this;this.$element.change(function(){n.$element.blur()})}}]),h}(c)}(jQuery),v=function(n){var o="checkbox",c="bmd."+o,s="bmd"+(o.charAt(0).toUpperCase()+o.slice(1)),l=n.fn[s],v={template:"<span class='checkbox-decorator'><span class='check'><\/span><\/span>"},h=function(s){function h(t,r){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{inputType:o,outerClass:o};return i(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,n.extend(!0,v,r),u))}return u(h,s),r(h,[{key:"dispose",value:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c;e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"dispose",this).call(this,n)}}],[{key:"matches",value:function(n){return n.attr("type")==="checkbox"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for type='checkbox'.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new h(i,t),i.data(c,r))})}}]),h}(a);return n.fn[s]=h._jQueryInterface,n.fn[s].Constructor=h,n.fn[s].noConflict=function(){return n.fn[s]=l,h._jQueryInterface},h}(jQuery),ut=function(n){var s="checkboxInline",h="bmd."+s,t="bmd"+(s.charAt(0).toUpperCase()+s.slice(1)),c=n.fn[t],l={bmdFormGroup:{create:!1,required:!1}},o=function(t){function o(t,r){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{inputType:"checkbox",outerClass:"checkbox-inline"};return i(this,o),f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t,n.extend(!0,{},l,r),u))}return u(o,t),r(o,[{key:"dispose",value:function(){e(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"dispose",this).call(this,h)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(h);r||(r=new o(i,t),i.data(h,r))})}}]),o}(v);return n.fn[t]=o._jQueryInterface,n.fn[t].Constructor=o,n.fn[t].noConflict=function(){return n.fn[t]=c,o._jQueryInterface},o}(jQuery),ft=function(n){var l="collapseInline",a="bmd."+l,o="bmd"+(l.charAt(0).toUpperCase()+l.slice(1)),v=n.fn[o],y={ANY_INPUT:"input, select, textarea"},h={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed",WIDTH:"width"},p={},c=function(o){function s(r,u){var e,c,o;if(i(this,s),e=f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,r,n.extend(!0,{},p,u))),e.$bmdFormGroup=e.findMdbFormGroup(!0),c=r.data("target"),e.$collapse=n(c),t.assert(r,e.$collapse.length===0,"Cannot find collapse target for "+t.describe(r)),t.assert(e.$collapse,!e.$collapse.hasClass(h.COLLAPSE),t.describe(e.$collapse)+" is expected to have the '"+h.COLLAPSE+"' class.  It is being targeted by "+t.describe(r)),o=e.$bmdFormGroup.find(y.ANY_INPUT),o.length>0&&(e.$input=o.first()),e.$collapse.hasClass(h.WIDTH)||e.$collapse.addClass(h.WIDTH),e.$input){e.$collapse.on("shown.bs.collapse",function(){e.$input.focus()});e.$input.blur(function(){e.$collapse.collapse("hide")})}return e}return u(s,o),r(s,[{key:"dispose",value:function(){e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,a);this.$bmdFormGroup=null;this.$collapse=null;this.$input=null}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(a);r||(r=new s(i,t),i.data(a,r))})}}]),s}(s);return n.fn[o]=c._jQueryInterface,n.fn[o].Constructor=c,n.fn[o].noConflict=function(){return n.fn[o]=v,c._jQueryInterface},c}(jQuery),et=function(n){var s="file",a="bmd."+s,o="bmd"+(s.charAt(0).toUpperCase()+s.slice(1)),v=n.fn[o],y={},h={FILE:s,IS_FILE:"is-file"},p={FILENAMES:"input.form-control[readonly]"},l=function(o){function s(t,r){i(this,s);var u=f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,n.extend(!0,y,r)));return u.$bmdFormGroup.addClass(h.IS_FILE),u}return u(s,o),r(s,[{key:"dispose",value:function(){e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,a)}},{key:"outerElement",value:function(){return this.$element.parent().closest("."+h.FILE)}},{key:"rejectWithoutRequiredStructure",value:function(){t.assert(this.$element,!1,this.constructor.name+"'s "+t.describe(this.$element)+" parent element "+t.describe(this.outerElement())+" should be <label>.");t.assert(this.$element,!this.outerElement().hasClass(h.FILE),this.constructor.name+"'s "+t.describe(this.$element)+" parent element "+t.describe(this.outerElement())+" should have class ."+h.FILE+".")}},{key:"addFocusListener",value:function(){var n=this;this.$bmdFormGroup.on("focus",function(){n.addFormGroupFocus()}).on("blur",function(){n.removeFormGroupFocus()})}},{key:"addChangeListener",value:function(){var t=this;this.$element.on("change",function(){var i="";n.each(t.$element.files,function(n,t){i+=t.name+"  , "});i=i.substring(0,i.length-2);i?t.addIsFilled():t.removeIsFilled();t.$bmdFormGroup.find(p.FILENAMES).val(i)})}}],[{key:"matches",value:function(n){return n.attr("type")==="file"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for type='file'.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(a);r||(r=new s(i,t),i.data(a,r))})}}]),s}(c);return n.fn[o]=l._jQueryInterface,n.fn[o].Constructor=l,n.fn[o].noConflict=function(){return n.fn[o]=v,l._jQueryInterface},l}(jQuery),y=function(n){var o="radio",c="bmd."+o,s="bmd"+(o.charAt(0).toUpperCase()+o.slice(1)),l=n.fn[s],v={template:"<span class='bmd-radio'><\/span>"},h=function(s){function h(t,r){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{inputType:o,outerClass:o};return i(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,n.extend(!0,v,r),u))}return u(h,s),r(h,[{key:"dispose",value:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c;e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"dispose",this).call(this,n)}}],[{key:"matches",value:function(n){return n.attr("type")==="radio"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for type='radio'.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new h(i,t),i.data(c,r))})}}]),h}(a);return n.fn[s]=h._jQueryInterface,n.fn[s].Constructor=h,n.fn[s].noConflict=function(){return n.fn[s]=l,h._jQueryInterface},h}(jQuery),ot=function(n){var s="radioInline",h="bmd."+s,t="bmd"+(s.charAt(0).toUpperCase()+s.slice(1)),c=n.fn[t],l={bmdFormGroup:{create:!1,required:!1}},o=function(t){function o(t,r){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{inputType:"radio",outerClass:"radio-inline"};return i(this,o),f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t,n.extend(!0,{},l,r),u))}return u(o,t),r(o,[{key:"dispose",value:function(){e(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"dispose",this).call(this,h)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(h);r||(r=new o(i,t),i.data(h,r))})}}]),o}(y);return n.fn[t]=o._jQueryInterface,n.fn[t].Constructor=o,n.fn[t].noConflict=function(){return n.fn[t]=c,o._jQueryInterface},o}(jQuery),l=function(n){var t={requiredClasses:["form-control"]};return function(r){function e(r,u){i(this,e);var o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n.extend(!0,t,u)));return o.isEmpty()&&o.removeIsFilled(),o}return u(e,r),e}(c)}(jQuery),st=function(n){var h="select",c="bmd."+h,o="bmd"+(h.charAt(0).toUpperCase()+h.slice(1)),a=n.fn[o],v={requiredClasses:["form-control||custom-select"]},s=function(o){function s(t,r){i(this,s);var u=f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,n.extend(!0,v,r)));return u.addIsFilled(),u}return u(s,o),r(s,[{key:"dispose",value:function(){e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,c)}}],[{key:"matches",value:function(n){return n.prop("tagName")==="select"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for <select>.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new s(i,t),i.data(c,r))})}}]),s}(l);return n.fn[o]=s._jQueryInterface,n.fn[o].Constructor=s,n.fn[o].noConflict=function(){return n.fn[o]=a,s._jQueryInterface},s}(jQuery),ht=function(n){var s="switch",h="bmd."+s,t="bmd"+(s.charAt(0).toUpperCase()+s.slice(1)),c=n.fn[t],l={template:"<span class='bmd-switch-track'><\/span>"},o=function(t){function o(t,r){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{inputType:"checkbox",outerClass:"switch"};return i(this,o),f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t,n.extend(!0,{},l,r),u))}return u(o,t),r(o,[{key:"dispose",value:function(){e(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"dispose",this).call(this,h)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(h);r||(r=new o(i,t),i.data(h,r))})}}]),o}(v);return n.fn[t]=o._jQueryInterface,n.fn[t].Constructor=o,n.fn[t].noConflict=function(){return n.fn[t]=c,o._jQueryInterface},o}(jQuery),ct=function(n){var h="text",c="bmd."+h,o="bmd"+(h.charAt(0).toUpperCase()+h.slice(1)),a=n.fn[o],v={},s=function(o){function s(t,r){return i(this,s),f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,n.extend(!0,v,r)))}return u(s,o),r(s,[{key:"dispose",value:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c;e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,n)}}],[{key:"matches",value:function(n){return n.attr("type")==="text"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for type='text'.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new s(i,t),i.data(c,r))})}}]),s}(l);return n.fn[o]=s._jQueryInterface,n.fn[o].Constructor=s,n.fn[o].noConflict=function(){return n.fn[o]=a,s._jQueryInterface},s}(jQuery),lt=function(n){var h="textarea",c="bmd."+h,o="bmd"+(h.charAt(0).toUpperCase()+h.slice(1)),a=n.fn[o],v={},s=function(o){function s(t,r){return i(this,s),f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,n.extend(!0,v,r)))}return u(s,o),r(s,[{key:"dispose",value:function(){e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,c)}}],[{key:"matches",value:function(n){return n.prop("tagName")==="textarea"?!0:!1}},{key:"rejectMatch",value:function(n,i){t.assert(this.$element,this.matches(i),n+" component element "+t.describe(i)+" is invalid for <textarea>.")}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new s(i,t),i.data(c,r))})}}]),s}(l);return n.fn[o]=s._jQueryInterface,n.fn[o].Constructor=s,n.fn[o].noConflict=function(){return n.fn[o]=a,s._jQueryInterface},s}(jQuery),at=function(t){if(typeof Popper=="undefined")throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var c="dropdown",d="4.0.0-beta",a="bs.dropdown",e="."+a,y=".data-api",g=t.fn[c],v=27,p=32,w=9,b=38,k=40,nt=3,tt=new RegExp(b+"|"+k+"|"+v),f={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK:"click"+e,CLICK_DATA_API:"click"+e+y,KEYDOWN_DATA_API:"keydown"+e+y,KEYUP_DATA_API:"keyup"+e+y,TRANSITION_END:"transitionend webkitTransitionEnd oTransitionEnd animationend webkitAnimationEnd oAnimationEnd"},u={DISABLED:"disabled",SHOW:"show",SHOWING:"showing",HIDING:"hiding",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},s={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},it={placement:l.BOTTOM,offset:0,flip:!0},rt={placement:"string",offset:"(number|string)",flip:"boolean"},h=function(){function h(n,t){i(this,h);this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}return r(h,[{key:"toggle",value:function(){var c=this,n,o,i,r,e;if(!this._element.disabled&&!t(this._element).hasClass(u.DISABLED)&&(n=h._getParentFromElement(this._element),o=t(this._menu).hasClass(u.SHOW),h._clearMenus(),!o)&&(i={relatedTarget:this._element},r=t.Event(f.SHOW,i),t(n).trigger(r),!r.isDefaultPrevented())){if(e=this._element,t(n).hasClass(u.DROPUP)&&(t(this._menu).hasClass(u.MENULEFT)||t(this._menu).hasClass(u.MENURIGHT))&&(e=n),this._popper=new Popper(e,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!t(n).closest(s.NAVBAR_NAV).length)t("body").children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).one(f.TRANSITION_END,function(){t(n).trigger(t.Event(f.SHOWN,i));t(c._menu).removeClass(u.SHOWING)});t(this._menu).addClass(u.SHOW+" "+u.SHOWING);t(n).addClass(u.SHOW)}}},{key:"dispose",value:function(){t.removeData(this._element,a);t(this._element).off(e);this._element=null;this._menu=null;this._popper!==null&&this._popper.destroy();this._popper=null}},{key:"update",value:function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()}},{key:"_addEventListeners",value:function(){var n=this;t(this._element).on(f.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})}},{key:"_getConfig",value:function(i){var r=t(this._element).data();return r.placement!==undefined&&(r.placement=l[r.placement.toUpperCase()]),i=t.extend({},this.constructor.Default,t(this._element).data(),i),n.typeCheckConfig(c,i,this.constructor.DefaultType),i}},{key:"_getMenuElement",value:function(){if(!this._menu){var n=h._getParentFromElement(this._element);this._menu=t(n).find(s.MENU)[0]}return this._menu}},{key:"_getPlacement",value:function(){var i=t(this._element).parent(),n=this._config.placement;return i.hasClass(u.DROPUP)||this._config.placement===l.TOP?(n=l.TOP,t(this._menu).hasClass(u.MENURIGHT)&&(n=l.TOPEND)):t(this._menu).hasClass(u.MENURIGHT)&&(n=l.BOTTOMEND),n}},{key:"_detectNavbar",value:function(){return t(this._element).closest(".navbar").length>0}},{key:"_getPopperConfig",value:function(){var n={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(n.modifiers.applyStyle={enabled:!this._inNavbar}),n}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var i=t(this).data(a),r=(typeof n=="undefined"?"undefined":o(n))==="object"?n:null;if(i||(i=new h(this,r),t(this).data(a,i)),typeof n=="string"){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n]()}})}},{key:"_clearMenus",value:function(n){var i,e,r,o;if(!n||n.which!==nt&&(n.type!=="keyup"||n.which===w))for(i=t.makeArray(t(s.DATA_TOGGLE)),e=function(r){var e=h._getParentFromElement(i[r]),c=t(i[r]).data(a),l={relatedTarget:i[r]},o,s;if(!c||(o=c._menu,!t(e).hasClass(u.SHOW))||n&&(n.type==="click"&&/input|textarea/i.test(n.target.tagName)||n.type==="keyup"&&n.which===w)&&t.contains(e,n.target)||(s=t.Event(f.HIDE,l),t(e).trigger(s),s.isDefaultPrevented()))return"continue";"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop);i[r].setAttribute("aria-expanded","false");t(o).addClass(u.HIDING).removeClass(u.SHOW);t(e).removeClass(u.SHOW);t(o).one(f.TRANSITION_END,function(){t(e).trigger(t.Event(f.HIDDEN,l));t(o).removeClass(u.HIDING)})},r=0;r<i.length;r++)o=e(r),o==="continue"}},{key:"_getParentFromElement",value:function(i){var r=void 0,u=n.getSelectorFromElement(i);return u&&(r=t(u)[0]),r||i.parentNode}},{key:"_dataApiKeydownHandler",value:function(n){var f,e,o,r,i;if(tt.test(n.which)&&(!/button/i.test(n.target.tagName)||n.which!==p)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(u.DISABLED))){if(f=h._getParentFromElement(this),e=t(f).hasClass(u.SHOW),!e&&(n.which!==v||n.which!==p)||e&&(n.which===v||n.which===p)){n.which===v&&(o=t(f).find(s.DATA_TOGGLE)[0],t(o).trigger("focus"));t(this).trigger("click");return}(r=t(f).find(s.VISIBLE_ITEMS).get(),r.length)&&(i=r.indexOf(n.target),n.which===b&&i>0&&i--,n.which===k&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus())}}},{key:"VERSION",get:function(){return d}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return rt}}]),h}();t(document).on(f.KEYDOWN_DATA_API,s.DATA_TOGGLE,h._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,s.MENU,h._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,h._clearMenus).on(f.CLICK_DATA_API,s.DATA_TOGGLE,function(n){n.preventDefault();n.stopPropagation();h._jQueryInterface.call(t(this),"toggle")}).on(f.CLICK_DATA_API,s.FORM_CHILD,function(n){n.stopPropagation()});return t.fn[c]=h._jQueryInterface,t.fn[c].Constructor=h,t.fn[c].noConflict=function(){return t.fn[c]=g,h._jQueryInterface},h}(jQuery),p=function(n){var h={CANVAS:"bmd-layout-canvas",CONTAINER:"bmd-layout-container",BACKDROP:"bmd-layout-backdrop"},o={CANVAS:"."+h.CANVAS,CONTAINER:"."+h.CONTAINER,BACKDROP:"."+h.BACKDROP},c={canvas:{create:!0,required:!0,template:'<div class="'+h.CANVAS+'"><\/div>'},backdrop:{create:!0,required:!0,template:'<div class="'+h.BACKDROP+'"><\/div>'}};return function(s){function h(t,r){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u;return i(this,h),u=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,n.extend(!0,{},c,r),e)),u.$container=u.findContainer(!0),u.$backdrop=u.resolveBackdrop(),u.resolveCanvas(),u}return u(h,s),r(h,[{key:"dispose",value:function(n){e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"dispose",this).call(this,n);this.$container=null;this.$backdrop=null}},{key:"resolveCanvas",value:function(){var n=this.findCanvas(!1);return(n===undefined||n.length===0)&&(this.config.canvas.create&&this.$container.wrap(this.config.canvas.template),n=this.findCanvas(this.config.canvas.required)),n}},{key:"findCanvas",value:function(){var u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.$container,r=i.closest(o.CANVAS);return r.length===0&&u&&n.error("Failed to find "+o.CANVAS+" for "+t.describe(i)),r}},{key:"resolveBackdrop",value:function(){var n=this.findBackdrop(!1);return(n===undefined||n.length===0)&&(this.config.backdrop.create&&this.$container.append(this.config.backdrop.template),n=this.findBackdrop(this.config.backdrop.required)),n}},{key:"findBackdrop",value:function(){var u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.$container,r=i.find("> "+o.BACKDROP);return r.length===0&&u&&n.error("Failed to find "+o.BACKDROP+" for "+t.describe(i)),r}},{key:"findContainer",value:function(){var u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.$element,r=i.closest(o.CONTAINER);return r.length===0&&u&&n.error("Failed to find "+o.CONTAINER+" for "+t.describe(i)),r}}]),h}(s)}(jQuery),vt=function(n){var h="drawer",c="bmd."+h,o="bmd"+(h.charAt(0).toUpperCase()+h.slice(1)),a=n.fn[o],l={ESCAPE:27},t={IN:"in",DRAWER_IN:"bmd-drawer-in",DRAWER_OUT:"bmd-drawer-out",DRAWER:"bmd-layout-drawer",CONTAINER:"bmd-layout-container"},v={focusSelector:"a, button, input"},s=function(o){function s(t,r){i(this,s);var u=f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,n.extend(!0,{},v,r)));return u.$toggles=n('[data-toggle="drawer"][href="#'+u.$element[0].id+'"], [data-toggle="drawer"][data-target="#'+u.$element[0].id+'"]'),u._addAria(),u.$backdrop.keydown(function(n){n.which===l.ESCAPE&&u.hide()}).click(function(){u.hide()}),u.$element.keydown(function(n){n.which===l.ESCAPE&&u.hide()}),u.$toggles.click(function(){u.toggle()}),u}return u(s,o),r(s,[{key:"dispose",value:function(){e(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"dispose",this).call(this,c);this.$toggles=null}},{key:"toggle",value:function(){this._isOpen()?this.hide():this.show()}},{key:"show",value:function(){if(!this._isForcedClosed()&&!this._isOpen()){this.$toggles.attr("aria-expanded",!0);this.$element.attr("aria-expanded",!0);this.$element.attr("aria-hidden",!1);var n=this.$element.find(this.config.focusSelector);n.length>0&&n.first().focus();this.$container.addClass(t.DRAWER_IN);this.$backdrop.addClass(t.IN)}}},{key:"hide",value:function(){this._isOpen()&&(this.$toggles.attr("aria-expanded",!1),this.$element.attr("aria-expanded",!1),this.$element.attr("aria-hidden",!0),this.$container.removeClass(t.DRAWER_IN),this.$backdrop.removeClass(t.IN))}},{key:"_isOpen",value:function(){return this.$container.hasClass(t.DRAWER_IN)}},{key:"_isForcedClosed",value:function(){return this.$container.hasClass(t.DRAWER_OUT)}},{key:"_addAria",value:function(){var n=this._isOpen();this.$element.attr("aria-expanded",n);this.$element.attr("aria-hidden",n);this.$toggles.length&&this.$toggles.attr("aria-expanded",n)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new s(i,t),i.data(c,r))})}}]),s}(p);return n.fn[o]=s._jQueryInterface,n.fn[o].Constructor=s,n.fn[o].noConflict=function(){return n.fn[o]=a,s._jQueryInterface},s}(jQuery),yt=function(n){var o="ripples",s="bmd."+o,u="bmd"+(o.charAt(0).toUpperCase()+o.slice(1)),c=n.fn[u],f={CONTAINER:"ripple-container",DECORATOR:"ripple-decorator"},h={CONTAINER:"."+f.CONTAINER,DECORATOR:"."+f.DECORATOR},l={container:{template:"<div class='"+f.CONTAINER+"'><\/div>"},decorator:{template:"<div class='"+f.DECORATOR+"'><\/div>"},trigger:{start:"mousedown touchstart",end:"mouseup mouseleave touchend"},touchUserAgentRegex:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,duration:500},e=function(){function u(t,r){var f=this;i(this,u);this.$element=t;this.config=n.extend(!0,{},l,r);this.$element.on(this.config.trigger.start,function(n){f._onStartRipple(n)})}return r(u,[{key:"dispose",value:function(){this.$element.data(s,null);this.$element=null;this.$container=null;this.$decorator=null;this.config=null}},{key:"_onStartRipple",value:function(n){var t=this,i,r;if((!this._isTouch()||n.type!=="mousedown")&&(this._findOrCreateContainer(),i=this._getRelY(n),r=this._getRelX(n),i||r)){this.$decorator.css({left:r,top:i,"background-color":this._getRipplesColor()});this._forceStyleApplication();this.rippleOn();setTimeout(function(){t.rippleEnd()},this.config.duration);this.$element.on(this.config.trigger.end,function(){t.$decorator&&(t.$decorator.data("mousedown","off"),t.$decorator.data("animating")==="off"&&t.rippleOut())})}}},{key:"_findOrCreateContainer",value:function(){(!this.$container||!this.$container.length>0)&&(this.$element.append(this.config.container.template),this.$container=this.$element.find(h.CONTAINER));this.$container.append(this.config.decorator.template);this.$decorator=this.$container.find(h.DECORATOR)}},{key:"_forceStyleApplication",value:function(){return window.getComputedStyle(this.$decorator[0]).opacity}},{key:"_getRelX",value:function(n){var i=this.$container.offset(),t=null;return this._isTouch()?(n=n.originalEvent,t=n.touches.length===1?n.touches[0].pageX-i.left:!1):t=n.pageX-i.left,t}},{key:"_getRelY",value:function(n){var i=this.$container.offset(),t=null;return this._isTouch()?(n=n.originalEvent,t=n.touches.length===1?n.touches[0].pageY-i.top:!1):t=n.pageY-i.top,t}},{key:"_getRipplesColor",value:function(){return this.$element.data("ripple-color")?this.$element.data("ripple-color"):window.getComputedStyle(this.$element[0]).color}},{key:"_isTouch",value:function(){return this.config.touchUserAgentRegex.test(navigator.userAgent)}},{key:"rippleEnd",value:function(){this.$decorator&&(this.$decorator.data("animating","off"),this.$decorator.data("mousedown")==="off"&&this.rippleOut(this.$decorator))}},{key:"rippleOut",value:function(){var n=this;this.$decorator.off();t.transitionEndSupported()?this.$decorator.addClass("ripple-out"):this.$decorator.animate({opacity:0},100,function(){n.$decorator.trigger("transitionend")});this.$decorator.on(t.transitionEndSelector(),function(){n.$decorator&&(n.$decorator.remove(),n.$decorator=null)})}},{key:"rippleOn",value:function(){var i=this,n=this._getNewSize();t.transitionEndSupported()?this.$decorator.css({"-ms-transform":"scale("+n+")","-moz-transform":"scale("+n+")","-webkit-transform":"scale("+n+")",transform:"scale("+n+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on"):this.$decorator.animate({width:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,height:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,"margin-left":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,"margin-top":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,opacity:.2},this.config.duration,function(){i.$decorator.trigger("transitionend")})}},{key:"_getNewSize",value:function(){return Math.max(this.$element.outerWidth(),this.$element.outerHeight())/this.$decorator.outerWidth()*2.5}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(s);r||(r=new u(i,t),i.data(s,r))})}}]),u}();return n.fn[u]=e._jQueryInterface,n.fn[u].Constructor=e,n.fn[u].noConflict=function(){return n.fn[u]=c,e._jQueryInterface},e}(jQuery),pt=function(n){var h="autofill",c="bmd."+h,t="bmd"+(h.charAt(0).toUpperCase()+h.slice(1)),l=n.fn[t],a={},o=function(t){function o(t,r){i(this,o);var u=f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t,n.extend(!0,{},a,r)));return u._watchLoading(),u._attachEventHandlers(),u}return u(o,t),r(o,[{key:"dispose",value:function(){e(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"dispose",this).call(this,c)}},{key:"_watchLoading",value:function(){var n=this;setTimeout(function(){clearInterval(n._onLoading)},1e4)}},{key:"_onLoading",value:function(){setInterval(function(){n("input[type!=checkbox]").each(function(t,i){var r=n(i);r.val()&&r.val()!==r.attr("value")&&r.trigger("change")})},100)}},{key:"_attachEventHandlers",value:function(){var t=null;n(document).on("focus","input",function(i){var r=n(i.currentTarget).closest("form").find("input").not("[type=file]");t=setInterval(function(){r.each(function(t,i){var r=n(i);r.val()!==r.attr("value")&&r.trigger("change")})},100)}).on("blur",".form-group input",function(){clearInterval(t)})}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=n(this),r=i.data(c);r||(r=new o(i,t),i.data(c,r))})}}]),o}(s);return n.fn[t]=o._jQueryInterface,n.fn[t].Constructor=o,n.fn[t].noConflict=function(){return n.fn[t]=l,o._jQueryInterface},o}(jQuery),w;Popper.Defaults.modifiers.computeStyle.gpuAcceleration=!1;w=function(n){var e="bootstrapMaterialDesign",f="bmd."+e,t=e,o=n.fn[t],s={global:{validate:!1,label:{className:"bmd-label-static"}},autofill:{selector:"body"},checkbox:{selector:".checkbox > label > input[type=checkbox]"},checkboxInline:{selector:"label.checkbox-inline > input[type=checkbox]"},collapseInline:{selector:'.bmd-collapse-inline [data-toggle="collapse"]'},drawer:{selector:".bmd-layout-drawer"},file:{selector:"input[type=file]"},radio:{selector:".radio > label > input[type=radio]"},radioInline:{selector:"label.radio-inline > input[type=radio]"},ripples:{selector:[".btn:not(.btn-link):not(.ripple-none)",".card-image:not(.ripple-none)",".navbar a:not(.ripple-none)",".dropdown-menu a:not(.ripple-none)",".nav-tabs a:not(.ripple-none)",".pagination li:not(.active):not(.disabled) a:not(.ripple-none)",".ripple"]},select:{selector:["select"]},"switch":{selector:".switch > label > input[type=checkbox]"},text:{selector:["input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])"]},textarea:{selector:["textarea"]},arrive:!0,instantiation:["ripples","checkbox","checkboxInline","collapseInline","drawer","radio","radioInline","switch","text","textarea","select","autofill"]},u=function(){function t(r,u){var f=this,l,e,a;i(this,t);this.$element=r;this.config=n.extend(!0,{},s,u);var v=n(document),o=!0,h=!1,c=undefined;try{for(l=function(){var i=a.value,t=f.config[i],r,e,u;if(t){r=f._resolveSelector(t);t=n.extend(!0,{},f.config.global,t);e=""+(i.charAt(0).toUpperCase()+i.slice(1));u="bmd"+e;try{n(r)[u](t);document.arrive&&f.config.arrive&&v.arrive(r,function(){n(this)[u](t)})}catch(o){return}}},e=this.config.instantiation[Symbol.iterator]();!(o=(a=e.next()).done);o=!0)l()}catch(y){h=!0;c=y}finally{try{!o&&e.return&&e.return()}finally{if(h)throw c;}}}return r(t,[{key:"dispose",value:function(){this.$element.data(f,null);this.$element=null;this.config=null}},{key:"_resolveSelector",value:function(n){var t=n.selector;return Array.isArray(t)&&(t=t.join(", ")),t}}],[{key:"_jQueryInterface",value:function(i){return this.each(function(){var r=n(this),u=r.data(f);u||(u=new t(r,i),r.data(f,u))})}}]),t}();return n.fn[t]=u._jQueryInterface,n.fn[t].Constructor=u,n.fn[t].noConflict=function(){return n.fn[t]=o,u._jQueryInterface},u}(jQuery)}()