app/assets/bundle/trestle/bundle.js in trestle-0.9.4 vs app/assets/bundle/trestle/bundle.js in trestle-0.9.5
- old
+ new
@@ -1,7 +1,7 @@
var Trestle=function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=13)}([function(t,e,n){(function(e){t.exports=e.jQuery=n(7)}).call(this,n(2))},function(e,t,n){
-/* flatpickr v4.6.6, @license MIT */
+/* flatpickr v4.6.9, @license MIT */
e.exports=function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
@@ -12,17 +12,17 @@
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var Te=function(){Te=Object.assign||function e(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))t[o]=n[o]}return t};return Te.apply(this,arguments)};function De(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var Se=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ke={_disable:[],_enable:[],allowInput:false,allowInvalidPreload:false,altFormat:"F j, Y",altInput:false,altInputClass:"form-control input",animate:typeof window==="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:true,clickOpens:true,closeOnSelect:true,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:false,enable:[],enableSeconds:false,enableTime:false,errorHandler:function(e){return typeof console!=="undefined"&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0);t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:false,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false},Ae={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false},Oe=function(e,t){if(t===void 0){t=2}return("000"+e).slice(t*-1)},Ie=function(e){return e===true?1:0};function Me(n,i,r){if(r===void 0){r=false}var o;return function(){var e=this,t=arguments;o!==null&&clearTimeout(o);o=window.setTimeout(function(){o=null;if(!r)n.apply(e,t)},i);if(r&&!o)n.apply(e,t)}}var Ne=function(e){return e instanceof Array?e:[e]};function je(e,t,n){if(n===true)return e.classList.add(t);e.classList.remove(t)}function Le(e,t,n){var i=window.document.createElement(e);t=t||"";n=n||"";i.className=t;if(n!==undefined)i.textContent=n;return i}function Pe(e){while(e.firstChild)e.removeChild(e.firstChild)}function $e(e,t){if(t(e))return e;else if(e.parentNode)return $e(e.parentNode,t);return undefined}function He(e,t){var n=Le("div","numInputWrapper"),i=Le("input","numInput "+e),r=Le("span","arrowUp"),o=Le("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(t!==undefined)for(var a in t)i.setAttribute(a,t[a]);n.appendChild(i);n.appendChild(r);n.appendChild(o);return n}function Fe(t){try{if(typeof t.composedPath==="function"){var e=t.composedPath();return e[0]}return t.target}catch(e){return t.target}}var e=function(){return undefined},qe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},w={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Ie(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(parseFloat(t)*1e3)},W:function(e,t,n){var i=parseInt(t);var r=new Date(e.getFullYear(),0,2+(i-1)*7,0,0,0,0);r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek);return r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},Re={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return qe(l.n(e,t,n)-1,false,t)},G:function(e,t,n){return Oe(l.h(e,t,n))},H:function(e){return Oe(e.getHours())},J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Ie(e.getHours()>11)]},M:function(e,t){return qe(e.getMonth(),true,t)},S:function(e){return Oe(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return Oe(e.getFullYear(),4)},d:function(e){return Oe(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Oe(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Oe(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},Be=function(e){var t=e.config,o=t===void 0?ke:t,n=e.l10n,a=n===void 0?Ae:n,i=e.isMobile,s=i===void 0?false:i;return function(i,e,t){var r=t||a;if(o.formatDate!==undefined&&!s){return o.formatDate(i,e,r)}return e.split("").map(function(e,t,n){return l[e]&&n[t-1]!=="\\"?l[e](i,r,o):e!=="\\"?e:""}).join("")}},We=function(e){var t=e.config,y=t===void 0?ke:t,n=e.l10n,b=n===void 0?Ae:n;return function(e,t,n,i){if(e!==0&&!e)return undefined;var r=i||b;var o;var a=e;if(e instanceof Date)o=new Date(e.getTime());else if(typeof e!=="string"&&e.toFixed!==undefined)o=new Date(e);else if(typeof e==="string"){var s=t||(y||ke).dateFormat;var l=String(e).trim();if(l==="today"){o=new Date;n=true}else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(y&&y.parseDate)o=y.parseDate(e,s);else{o=!y||!y.noCalendar?new Date((new Date).getFullYear(),0,1,0,0,0,0):new Date((new Date).setHours(0,0,0,0));var u=void 0,c=[];for(var f=0,d=0,p="";f<s.length;f++){var h=s[f];var m=h==="\\";var g=s[f-1]==="\\"||m;if(Re[h]&&!g){p+=Re[h];var v=new RegExp(p).exec(e);if(v&&(u=true)){c[h!=="Y"?"push":"unshift"]({fn:w[h],val:v[++d]})}}else if(!m)p+=".";c.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,r)||o})}o=u?o:undefined}}if(!(o instanceof Date&&!isNaN(o.getTime()))){y.errorHandler(new Error("Invalid date provided: "+a));return undefined}if(n===true)o.setHours(0,0,0,0);return o}};function Ue(e,t,n){if(n===void 0){n=true}if(n!==false){return new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0)}return e.getTime()-t.getTime()}var ze=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},Ye={DAY:864e5};if(typeof Object.assign!=="function"){Object.assign=function(n){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}if(!n){throw TypeError("Cannot convert undefined or null to object")}var i=function(t){if(t){Object.keys(t).forEach(function(e){return n[e]=t[e]})}};for(var r=0,o=e;r<o.length;r++){var a=o[r];i(a)}return n}}var Ke=300;function a(d,c){var E={config:Te(Te({},ke),Ge.defaultConfig),l10n:Ae};E.parseDate=We({config:E.config,l10n:E.l10n});E._handlers=[];E.pluginElements=[];E.loadedPlugins=[];E._bind=a;E._setHoursFromDate=o;E._positionCalendar=te;E.changeMonth=$;E.changeYear=W;E.clear=H;E.close=F;E._createElement=Le;E.destroy=q;E.isEnabled=U;E.jumpToDate=v;E.open=X;E.redraw=re;E.set=le;E.setDate=ce;E.toggle=me;function t(){E.utils={getDaysInMonth:function(e,t){if(e===void 0){e=E.currentMonth}if(t===void 0){t=E.currentYear}if(e===1&&(t%4===0&&t%100!==0||t%400===0))return 29;return E.l10n.daysInMonth[e]}}}function e(){E.element=E.input=d;E.isOpen=false;J();ee();pe();de();t();if(!E.isMobile)w();g();if(E.selectedDates.length||E.config.noCalendar){if(E.config.enableTime){o(E.config.noCalendar?E.latestSelectedDateObj||E.config.minDate:undefined)}Ce(false)}n();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(!E.isMobile&&e){te()}ge("onReady")}function f(e){return e.bind(E)}function n(){var t=E.config;if(t.weekNumbers===false&&t.showMonths===1){return}else if(t.noCalendar!==true){window.requestAnimationFrame(function(){if(E.calendarContainer!==undefined){E.calendarContainer.style.visibility="hidden";E.calendarContainer.style.display="block"}if(E.daysContainer!==undefined){var e=(E.days.offsetWidth+1)*t.showMonths;E.daysContainer.style.width=e+"px";E.calendarContainer.style.width=e+(E.weekWrapper!==undefined?E.weekWrapper.offsetWidth:0)+"px";E.calendarContainer.style.removeProperty("visibility");E.calendarContainer.style.removeProperty("display")}})}}function p(e){if(E.selectedDates.length===0){var t=E.config.minDate!==undefined?new Date(E.config.minDate.getTime()):new Date;var n=l(),i=n.hours,r=n.minutes,o=n.seconds;t.setHours(i,r,o,0);E.setDate(t,false)}if(e!==undefined&&e.type!=="blur"){Ee(e)}var a=E._input.value;h();Ce();if(E._input.value!==a){E._debouncedChange()}}function s(e,t){return e%12+12*Ie(t===E.l10n.amPM[1])}function r(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function h(){if(E.hourElement===undefined||E.minuteElement===undefined)return;var e=(parseInt(E.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(E.minuteElement.value,10)||0)%60,n=E.secondElement!==undefined?(parseInt(E.secondElement.value,10)||0)%60:0;if(E.amPM!==undefined){e=s(e,E.amPM.textContent)}var i=E.config.minTime!==undefined||E.config.minDate&&E.minDateHasTime&&E.latestSelectedDateObj&&Ue(E.latestSelectedDateObj,E.config.minDate,true)===0;var r=E.config.maxTime!==undefined||E.config.maxDate&&E.maxDateHasTime&&E.latestSelectedDateObj&&Ue(E.latestSelectedDateObj,E.config.maxDate,true)===0;if(r){var o=E.config.maxTime!==undefined?E.config.maxTime:E.config.maxDate;e=Math.min(e,o.getHours());if(e===o.getHours())t=Math.min(t,o.getMinutes());if(t===o.getMinutes())n=Math.min(n,o.getSeconds())}if(i){var a=E.config.minTime!==undefined?E.config.minTime:E.config.minDate;e=Math.max(e,a.getHours());if(e===a.getHours())t=Math.max(t,a.getMinutes());if(t===a.getMinutes())n=Math.max(n,a.getSeconds())}u(e,t,n)}function o(e){var t=e||E.latestSelectedDateObj;if(t){u(t.getHours(),t.getMinutes(),t.getSeconds())}}function l(){var e=E.config.defaultHour;var t=E.config.defaultMinute;var n=E.config.defaultSeconds;if(E.config.minDate!==undefined){var i=E.config.minDate.getHours();var r=E.config.minDate.getMinutes();e=Math.max(e,i);if(e===i)t=Math.max(r,t);if(e===i&&t===r)n=E.config.minDate.getSeconds()}if(E.config.maxDate!==undefined){var o=E.config.maxDate.getHours();var a=E.config.maxDate.getMinutes();e=Math.min(e,o);if(e===o)t=Math.min(a,t);if(e===o&&t===a)n=E.config.maxDate.getSeconds()}return{hours:e,minutes:t,seconds:n}}function u(e,t,n){if(E.latestSelectedDateObj!==undefined){E.latestSelectedDateObj.setHours(e%24,t,n||0,0)}if(!E.hourElement||!E.minuteElement||E.isMobile)return;E.hourElement.value=Oe(!E.config.time_24hr?(12+e)%12+12*Ie(e%12===0):e);E.minuteElement.value=Oe(t);if(E.amPM!==undefined)E.amPM.textContent=E.l10n.amPM[Ie(e>=12)];if(E.secondElement!==undefined)E.secondElement.value=Oe(n)}function i(e){var t=Fe(e);var n=parseInt(t.value)+(e.delta||0);if(n/1e3>1||e.key==="Enter"&&!/[^\d]/.test(n.toString())){W(n)}}function a(t,n,i,r){if(n instanceof Array)return n.forEach(function(e){return a(t,e,i,r)});if(t instanceof Array)return t.forEach(function(e){return a(e,n,i,r)});t.addEventListener(n,i,r);E._handlers.push({element:t,event:n,handler:i,options:r})}function m(){ge("onChange")}function g(){if(E.config.wrap){["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(E.element.querySelectorAll("[data-"+t+"]"),function(e){return a(e,"click",E[t])})})}if(E.isMobile){he();return}var e=Me(Q,50);E._debouncedChange=Me(m,Ke);if(E.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))a(E.daysContainer,"mouseover",function(e){if(E.config.mode==="range")G(Fe(e))});a(window.document.body,"keydown",K);if(!E.config.inline&&!E.config.static)a(window,"resize",e);if(window.ontouchstart!==undefined)a(window.document,"touchstart",B);else a(window.document,"click",B);a(window.document,"focus",B,{capture:true});if(E.config.clickOpens===true){a(E._input,"focus",E.open);a(E._input,"click",E.open)}if(E.daysContainer!==undefined){a(E.monthNav,"click",xe);a(E.monthNav,["keyup","increment"],i);a(E.daysContainer,"click",ae)}if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined){var t=function(e){return Fe(e).select()};a(E.timeContainer,["increment"],p);a(E.timeContainer,"blur",p,{capture:true});a(E.timeContainer,"click",y);a([E.hourElement,E.minuteElement],["focus","click"],t);if(E.secondElement!==undefined)a(E.secondElement,"focus",function(){return E.secondElement&&E.secondElement.select()});if(E.amPM!==undefined){a(E.amPM,"click",function(e){p(e);m()})}}if(E.config.allowInput)a(E._input,"blur",Y)}function v(e,t){var n=e!==undefined?E.parseDate(e):E.latestSelectedDateObj||(E.config.minDate&&E.config.minDate>E.now?E.config.minDate:E.config.maxDate&&E.config.maxDate<E.now?E.config.maxDate:E.now);var i=E.currentYear;var r=E.currentMonth;try{if(n!==undefined){E.currentYear=n.getFullYear();E.currentMonth=n.getMonth()}}catch(e){e.message="Invalid date supplied: "+n;E.config.errorHandler(e)}if(t&&E.currentYear!==i){ge("onYearChange");A()}if(t&&(E.currentYear!==i||E.currentMonth!==r)){ge("onMonthChange")}E.redraw()}function y(e){var t=Fe(e);if(~t.className.indexOf("arrow"))b(e,t.classList.contains("arrowUp")?1:-1)}function b(e,t,n){var i=e&&Fe(e);var r=n||i&&i.parentNode&&i.parentNode.firstChild;var o=ve("increment");o.delta=t;r&&r.dispatchEvent(o)}function w(){var e=window.document.createDocumentFragment();E.calendarContainer=Le("div","flatpickr-calendar");E.calendarContainer.tabIndex=-1;if(!E.config.noCalendar){e.appendChild(M());E.innerContainer=Le("div","flatpickr-innerContainer");if(E.config.weekNumbers){var t=P(),n=t.weekWrapper,i=t.weekNumbers;E.innerContainer.appendChild(n);E.weekNumbers=i;E.weekWrapper=n}E.rContainer=Le("div","flatpickr-rContainer");E.rContainer.appendChild(j());if(!E.daysContainer){E.daysContainer=Le("div","flatpickr-days");E.daysContainer.tabIndex=-1}k();E.rContainer.appendChild(E.daysContainer);E.innerContainer.appendChild(E.rContainer);e.appendChild(E.innerContainer)}if(E.config.enableTime){e.appendChild(N())}je(E.calendarContainer,"rangeMode",E.config.mode==="range");je(E.calendarContainer,"animate",E.config.animate===true);je(E.calendarContainer,"multiMonth",E.config.showMonths>1);E.calendarContainer.appendChild(e);var r=E.config.appendTo!==undefined&&E.config.appendTo.nodeType!==undefined;if(E.config.inline||E.config.static){E.calendarContainer.classList.add(E.config.inline?"inline":"static");if(E.config.inline){if(!r&&E.element.parentNode)E.element.parentNode.insertBefore(E.calendarContainer,E._input.nextSibling);else if(E.config.appendTo!==undefined)E.config.appendTo.appendChild(E.calendarContainer)}if(E.config.static){var o=Le("div","flatpickr-wrapper");if(E.element.parentNode)E.element.parentNode.insertBefore(o,E.element);o.appendChild(E.element);if(E.altInput)o.appendChild(E.altInput);o.appendChild(E.calendarContainer)}}if(!E.config.static&&!E.config.inline)(E.config.appendTo!==undefined?E.config.appendTo:window.document.body).appendChild(E.calendarContainer)}function _(e,t,n,i){var r=U(t,true),o=Le("span","flatpickr-day "+e,t.getDate().toString());o.dateObj=t;o.$i=i;o.setAttribute("aria-label",E.formatDate(t,E.config.ariaDateFormat));if(e.indexOf("hidden")===-1&&Ue(t,E.now)===0){E.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(r){o.tabIndex=-1;if(ye(t)){o.classList.add("selected");E.selectedDateElem=o;if(E.config.mode==="range"){je(o,"startRange",E.selectedDates[0]&&Ue(t,E.selectedDates[0],true)===0);je(o,"endRange",E.selectedDates[1]&&Ue(t,E.selectedDates[1],true)===0);if(e==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(E.config.mode==="range"){if(be(t)&&!ye(t))o.classList.add("inRange")}if(E.weekNumbers&&E.config.showMonths===1&&e!=="prevMonthDay"&&n%7===1){E.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+E.config.getWeek(t)+"</span>")}ge("onDayCreate",o);return o}function C(e){e.focus();if(E.config.mode==="range")G(e)}function x(e){var t=e>0?0:E.config.showMonths-1;var n=e>0?E.config.showMonths:-1;for(var i=t;i!=n;i+=e){var r=E.daysContainer.children[i];var o=e>0?0:r.children.length-1;var a=e>0?r.children.length:-1;for(var s=o;s!=a;s+=e){var l=r.children[s];if(l.className.indexOf("hidden")===-1&&U(l.dateObj))return l}}return undefined}function T(e,t){var n=e.className.indexOf("Month")===-1?e.dateObj.getMonth():E.currentMonth;var i=t>0?E.config.showMonths:-1;var r=t>0?1:-1;for(var o=n-E.currentMonth;o!=i;o+=r){var a=E.daysContainer.children[o];var s=n-E.currentMonth===o?e.$i+t:t<0?a.children.length-1:0;var l=a.children.length;for(var u=s;u>=0&&u<l&&u!=(t>0?l:-1);u+=r){var c=a.children[u];if(c.className.indexOf("hidden")===-1&&U(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return C(c)}}E.changeMonth(r);D(x(r),0);return undefined}function D(e,t){var n=z(document.activeElement||document.body);var i=e!==undefined?e:n?document.activeElement:E.selectedDateElem!==undefined&&z(E.selectedDateElem)?E.selectedDateElem:E.todayDateElem!==undefined&&z(E.todayDateElem)?E.todayDateElem:x(t>0?1:-1);if(i===undefined){E._input.focus()}else if(!n){C(i)}else{T(i,t)}}function S(e,t){var n=(new Date(e,t,1).getDay()-E.l10n.firstDayOfWeek+7)%7;var i=E.utils.getDaysInMonth((t-1+12)%12,e);var r=E.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),a=E.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay";var u=i+1-n,c=0;for(;u<=i;u++,c++){o.appendChild(_(s,new Date(e,t-1,u),u,c))}for(u=1;u<=r;u++,c++){o.appendChild(_("",new Date(e,t,u),u,c))}for(var f=r+1;f<=42-n&&(E.config.showMonths===1||c%7!==0);f++,c++){o.appendChild(_(l,new Date(e,t+1,f%r),f,c))}var d=Le("div","dayContainer");d.appendChild(o);return d}function k(){if(E.daysContainer===undefined){return}Pe(E.daysContainer);if(E.weekNumbers)Pe(E.weekNumbers);var e=document.createDocumentFragment();for(var t=0;t<E.config.showMonths;t++){var n=new Date(E.currentYear,E.currentMonth,1);n.setMonth(E.currentMonth+t);e.appendChild(S(n.getFullYear(),n.getMonth()))}E.daysContainer.appendChild(e);E.days=E.daysContainer.firstChild;if(E.config.mode==="range"&&E.selectedDates.length===1){G()}}function A(){if(E.config.showMonths>1||E.config.monthSelectorType!=="dropdown")return;var e=function(e){if(E.config.minDate!==undefined&&E.currentYear===E.config.minDate.getFullYear()&&e<E.config.minDate.getMonth()){return false}return!(E.config.maxDate!==undefined&&E.currentYear===E.config.maxDate.getFullYear()&&e>E.config.maxDate.getMonth())};E.monthsDropdownContainer.tabIndex=-1;E.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++){if(!e(t))continue;var n=Le("option","flatpickr-monthDropdown-month");n.value=new Date(E.currentYear,t).getMonth().toString();n.textContent=qe(t,E.config.shorthandCurrentMonth,E.l10n);n.tabIndex=-1;if(E.currentMonth===t){n.selected=true}E.monthsDropdownContainer.appendChild(n)}}function O(){var e=Le("div","flatpickr-month");var t=window.document.createDocumentFragment();var n;if(E.config.showMonths>1||E.config.monthSelectorType==="static"){n=Le("span","cur-month")}else{E.monthsDropdownContainer=Le("select","flatpickr-monthDropdown-months");E.monthsDropdownContainer.setAttribute("aria-label",E.l10n.monthAriaLabel);a(E.monthsDropdownContainer,"change",function(e){var t=Fe(e);var n=parseInt(t.value,10);E.changeMonth(n-E.currentMonth);ge("onMonthChange")});A();n=E.monthsDropdownContainer}var i=He("cur-year",{tabindex:"-1"});var r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",E.l10n.yearAriaLabel);if(E.config.minDate){r.setAttribute("min",E.config.minDate.getFullYear().toString())}if(E.config.maxDate){r.setAttribute("max",E.config.maxDate.getFullYear().toString());r.disabled=!!E.config.minDate&&E.config.minDate.getFullYear()===E.config.maxDate.getFullYear()}var o=Le("div","flatpickr-current-month");o.appendChild(n);o.appendChild(i);t.appendChild(o);e.appendChild(t);return{container:e,yearElement:r,monthElement:n}}function I(){Pe(E.monthNav);E.monthNav.appendChild(E.prevMonthNav);if(E.config.showMonths){E.yearElements=[];E.monthElements=[]}for(var e=E.config.showMonths;e--;){var t=O();E.yearElements.push(t.yearElement);E.monthElements.push(t.monthElement);E.monthNav.appendChild(t.container)}E.monthNav.appendChild(E.nextMonthNav)}function M(){E.monthNav=Le("div","flatpickr-months");E.yearElements=[];E.monthElements=[];E.prevMonthNav=Le("span","flatpickr-prev-month");E.prevMonthNav.innerHTML=E.config.prevArrow;E.nextMonthNav=Le("span","flatpickr-next-month");E.nextMonthNav.innerHTML=E.config.nextArrow;I();Object.defineProperty(E,"_hidePrevMonthArrow",{get:function(){return E.__hidePrevMonthArrow},set:function(e){if(E.__hidePrevMonthArrow!==e){je(E.prevMonthNav,"flatpickr-disabled",e);E.__hidePrevMonthArrow=e}}});Object.defineProperty(E,"_hideNextMonthArrow",{get:function(){return E.__hideNextMonthArrow},set:function(e){if(E.__hideNextMonthArrow!==e){je(E.nextMonthNav,"flatpickr-disabled",e);E.__hideNextMonthArrow=e}}});E.currentYearElement=E.yearElements[0];we();return E.monthNav}function N(){E.calendarContainer.classList.add("hasTime");if(E.config.noCalendar)E.calendarContainer.classList.add("noCalendar");E.timeContainer=Le("div","flatpickr-time");E.timeContainer.tabIndex=-1;var e=Le("span","flatpickr-time-separator",":");var t=He("flatpickr-hour",{"aria-label":E.l10n.hourAriaLabel});E.hourElement=t.getElementsByTagName("input")[0];var n=He("flatpickr-minute",{"aria-label":E.l10n.minuteAriaLabel});E.minuteElement=n.getElementsByTagName("input")[0];E.hourElement.tabIndex=E.minuteElement.tabIndex=-1;E.hourElement.value=Oe(E.latestSelectedDateObj?E.latestSelectedDateObj.getHours():E.config.time_24hr?E.config.defaultHour:r(E.config.defaultHour));E.minuteElement.value=Oe(E.latestSelectedDateObj?E.latestSelectedDateObj.getMinutes():E.config.defaultMinute);E.hourElement.setAttribute("step",E.config.hourIncrement.toString());E.minuteElement.setAttribute("step",E.config.minuteIncrement.toString());E.hourElement.setAttribute("min",E.config.time_24hr?"0":"1");E.hourElement.setAttribute("max",E.config.time_24hr?"23":"12");E.minuteElement.setAttribute("min","0");E.minuteElement.setAttribute("max","59");E.timeContainer.appendChild(t);E.timeContainer.appendChild(e);E.timeContainer.appendChild(n);if(E.config.time_24hr)E.timeContainer.classList.add("time24hr");if(E.config.enableSeconds){E.timeContainer.classList.add("hasSeconds");var i=He("flatpickr-second");E.secondElement=i.getElementsByTagName("input")[0];E.secondElement.value=Oe(E.latestSelectedDateObj?E.latestSelectedDateObj.getSeconds():E.config.defaultSeconds);E.secondElement.setAttribute("step",E.minuteElement.getAttribute("step"));E.secondElement.setAttribute("min","0");E.secondElement.setAttribute("max","59");E.timeContainer.appendChild(Le("span","flatpickr-time-separator",":"));E.timeContainer.appendChild(i)}if(!E.config.time_24hr){E.amPM=Le("span","flatpickr-am-pm",E.l10n.amPM[Ie((E.latestSelectedDateObj?E.hourElement.value:E.config.defaultHour)>11)]);E.amPM.title=E.l10n.toggleTitle;E.amPM.tabIndex=-1;E.timeContainer.appendChild(E.amPM)}return E.timeContainer}function j(){if(!E.weekdayContainer)E.weekdayContainer=Le("div","flatpickr-weekdays");else Pe(E.weekdayContainer);for(var e=E.config.showMonths;e--;){var t=Le("div","flatpickr-weekdaycontainer");E.weekdayContainer.appendChild(t)}L();return E.weekdayContainer}function L(){if(!E.weekdayContainer){return}var e=E.l10n.firstDayOfWeek;var t=De(E.l10n.weekdays.shorthand);if(e>0&&e<t.length){t=De(t.splice(e,t.length),t.splice(0,e))}for(var n=E.config.showMonths;n--;){E.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function P(){E.calendarContainer.classList.add("hasWeeks");var e=Le("div","flatpickr-weekwrapper");e.appendChild(Le("span","flatpickr-weekday",E.l10n.weekAbbreviation));var t=Le("div","flatpickr-weeks");e.appendChild(t);return{weekWrapper:e,weekNumbers:t}}function $(e,t){if(t===void 0){t=true}var n=t?e:e-E.currentMonth;if(n<0&&E._hidePrevMonthArrow===true||n>0&&E._hideNextMonthArrow===true)return;E.currentMonth+=n;if(E.currentMonth<0||E.currentMonth>11){E.currentYear+=E.currentMonth>11?1:-1;E.currentMonth=(E.currentMonth+12)%12;ge("onYearChange");A()}k();ge("onMonthChange");we()}function H(e,t){if(e===void 0){e=true}if(t===void 0){t=true}E.input.value="";if(E.altInput!==undefined)E.altInput.value="";if(E.mobileInput!==undefined)E.mobileInput.value="";E.selectedDates=[];E.latestSelectedDateObj=undefined;if(t===true){E.currentYear=E._initialDate.getFullYear();E.currentMonth=E._initialDate.getMonth()}if(E.config.enableTime===true){var n=l(),i=n.hours,r=n.minutes,o=n.seconds;u(i,r,o)}E.redraw();if(e)ge("onChange")}function F(){E.isOpen=false;if(!E.isMobile){if(E.calendarContainer!==undefined){E.calendarContainer.classList.remove("open")}if(E._input!==undefined){E._input.classList.remove("active")}}ge("onClose")}function q(){if(E.config!==undefined)ge("onDestroy");for(var e=E._handlers.length;e--;){var t=E._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}E._handlers=[];if(E.mobileInput){if(E.mobileInput.parentNode)E.mobileInput.parentNode.removeChild(E.mobileInput);E.mobileInput=undefined}else if(E.calendarContainer&&E.calendarContainer.parentNode){if(E.config.static&&E.calendarContainer.parentNode){var n=E.calendarContainer.parentNode;n.lastChild&&n.removeChild(n.lastChild);if(n.parentNode){while(n.firstChild)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else E.calendarContainer.parentNode.removeChild(E.calendarContainer)}if(E.altInput){E.input.type="text";if(E.altInput.parentNode)E.altInput.parentNode.removeChild(E.altInput);delete E.altInput}if(E.input){E.input.type=E.input._type;E.input.classList.remove("flatpickr-input");E.input.removeAttribute("readonly")}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete E[e]}catch(e){}})}function R(e){if(E.config.appendTo&&E.config.appendTo.contains(e))return true;return E.calendarContainer.contains(e)}function B(e){if(E.isOpen&&!E.config.inline){var t=Fe(e);var n=R(t);var i=t===E.input||t===E.altInput||E.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(E.input)||~e.path.indexOf(E.altInput));var r=e.type==="blur"?i&&e.relatedTarget&&!R(e.relatedTarget):!i&&!n&&!R(e.relatedTarget);var o=!E.config.ignoredFocusElements.some(function(e){return e.contains(t)});if(r&&o){if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined&&E.input.value!==""&&E.input.value!==undefined){p()}E.close();if(E.config&&E.config.mode==="range"&&E.selectedDates.length===1){E.clear(false);E.redraw()}}}}function W(e){if(!e||E.config.minDate&&e<E.config.minDate.getFullYear()||E.config.maxDate&&e>E.config.maxDate.getFullYear())return;var t=e,n=E.currentYear!==t;E.currentYear=t||E.currentYear;if(E.config.maxDate&&E.currentYear===E.config.maxDate.getFullYear()){E.currentMonth=Math.min(E.config.maxDate.getMonth(),E.currentMonth)}else if(E.config.minDate&&E.currentYear===E.config.minDate.getFullYear()){E.currentMonth=Math.max(E.config.minDate.getMonth(),E.currentMonth)}if(n){E.redraw();ge("onYearChange");A()}}function U(e,t){if(t===void 0){t=true}var n=E.parseDate(e,undefined,t);if(E.config.minDate&&n&&Ue(n,E.config.minDate,t!==undefined?t:!E.minDateHasTime)<0||E.config.maxDate&&n&&Ue(n,E.config.maxDate,t!==undefined?t:!E.maxDateHasTime)>0)return false;if(E.config.enable.length===0&&E.config.disable.length===0)return true;if(n===undefined)return false;var i=E.config.enable.length>0,r=i?E.config.enable:E.config.disable;for(var o=0,a=void 0;o<r.length;o++){a=r[o];if(typeof a==="function"&&a(n))return i;else if(a instanceof Date&&n!==undefined&&a.getTime()===n.getTime())return i;else if(typeof a==="string"&&n!==undefined){var s=E.parseDate(a,undefined,true);return s&&s.getTime()===n.getTime()?i:!i}else if(typeof a==="object"&&n!==undefined&&a.from&&a.to&&n.getTime()>=a.from.getTime()&&n.getTime()<=a.to.getTime())return i}return!i}function z(e){if(E.daysContainer!==undefined)return e.className.indexOf("hidden")===-1&&e.className.indexOf("flatpickr-disabled")===-1&&E.daysContainer.contains(e);return false}function Y(e){var t=e.target===E._input;if(t&&!(e.relatedTarget&&R(e.relatedTarget))){E.setDate(E._input.value,true,e.target===E.altInput?E.config.altFormat:E.config.dateFormat)}}function K(e){var t=Fe(e);var n=E.config.wrap?d.contains(t):t===E._input;var i=E.config.allowInput;var r=E.isOpen&&(!i||!n);var o=E.config.inline&&n&&!i;if(e.keyCode===13&&n){if(i){E.setDate(E._input.value,true,t===E.altInput?E.config.altFormat:E.config.dateFormat);return t.blur()}else{E.open()}}else if(R(t)||r||o){var a=!!E.timeContainer&&E.timeContainer.contains(t);switch(e.keyCode){case 13:if(a){e.preventDefault();p();oe()}else ae(e);break;case 27:e.preventDefault();oe();break;case 8:case 46:if(n&&!E.config.allowInput){e.preventDefault();E.clear()}break;case 37:case 39:if(!a&&!n){e.preventDefault();if(E.daysContainer!==undefined&&(i===false||document.activeElement&&z(document.activeElement))){var s=e.keyCode===39?1:-1;if(!e.ctrlKey)D(undefined,s);else{e.stopPropagation();$(s);D(x(1),0)}}}else if(E.hourElement)E.hourElement.focus();break;case 38:case 40:e.preventDefault();var l=e.keyCode===40?1:-1;if(E.daysContainer&&t.$i!==undefined||t===E.input||t===E.altInput){if(e.ctrlKey){e.stopPropagation();W(E.currentYear-l);D(x(1),0)}else if(!a)D(undefined,l*7)}else if(t===E.currentYearElement){W(E.currentYear-l)}else if(E.config.enableTime){if(!a&&E.hourElement)E.hourElement.focus();p(e);E._debouncedChange()}break;case 9:if(a){var u=[E.hourElement,E.minuteElement,E.secondElement,E.amPM].concat(E.pluginElements).filter(function(e){return e});var c=u.indexOf(t);if(c!==-1){var f=u[c+(e.shiftKey?-1:1)];e.preventDefault();(f||E._input).focus()}}else if(!E.config.noCalendar&&E.daysContainer&&E.daysContainer.contains(t)&&e.shiftKey){e.preventDefault();E._input.focus()}break}}if(E.amPM!==undefined&&t===E.amPM){switch(e.key){case E.l10n.amPM[0].charAt(0):case E.l10n.amPM[0].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[0];h();Ce();break;case E.l10n.amPM[1].charAt(0):case E.l10n.amPM[1].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[1];h();Ce();break}}if(n||R(t)){ge("onKeyDown",e)}}function G(a){if(E.selectedDates.length!==1||a&&(!a.classList.contains("flatpickr-day")||a.classList.contains("flatpickr-disabled")))return;var s=a?a.dateObj.getTime():E.days.firstElementChild.dateObj.getTime(),l=E.parseDate(E.selectedDates[0],undefined,true).getTime(),e=Math.min(s,E.selectedDates[0].getTime()),t=Math.max(s,E.selectedDates[0].getTime());var u=false;var c=0,f=0;for(var n=e;n<t;n+=Ye.DAY){if(!U(new Date(n),true)){u=u||n>e&&n<t;if(n<l&&(!c||n>c))c=n;else if(n>l&&(!f||n<f))f=n}}for(var i=0;i<E.config.showMonths;i++){var d=E.daysContainer.children[i];var r=function(e,t){var n=d.children[e],i=n.dateObj;var r=i.getTime();var o=c>0&&r<c||f>0&&r>f;if(o){n.classList.add("notAllowed");["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)});return"continue"}else if(u&&!o)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)});if(a!==undefined){a.classList.add(s<=E.selectedDates[0].getTime()?"startRange":"endRange");if(l<s&&r===l)n.classList.add("startRange");else if(l>s&&r===l)n.classList.add("endRange");if(r>=c&&(f===0||r<=f)&&ze(r,l,s))n.classList.add("inRange")}};for(var o=0,p=d.children.length;o<p;o++){r(o,p)}}}function Q(){if(E.isOpen&&!E.config.static&&!E.config.inline)te()}function X(e,t){if(t===void 0){t=E._positionElement}if(E.isMobile===true){if(e){e.preventDefault();var n=Fe(e);n&&n.blur()}if(E.mobileInput!==undefined){E.mobileInput.focus();E.mobileInput.click()}ge("onOpen");return}if(E._input.disabled||E.config.inline)return;var i=E.isOpen;E.isOpen=true;if(!i){E.calendarContainer.classList.add("open");E._input.classList.add("active");ge("onOpen");te(t)}if(E.config.enableTime===true&&E.config.noCalendar===true){if(E.config.allowInput===false&&(e===undefined||!E.timeContainer.contains(e.relatedTarget))){setTimeout(function(){return E.hourElement.select()},50)}}}function V(i){return function(e){var t=E.config["_"+i+"Date"]=E.parseDate(e,E.config.dateFormat);var n=E.config["_"+(i==="min"?"max":"min")+"Date"];if(t!==undefined){E[i==="min"?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0}if(E.selectedDates){E.selectedDates=E.selectedDates.filter(function(e){return U(e)});if(!E.selectedDates.length&&i==="min")o(t);Ce()}if(E.daysContainer){re();if(t!==undefined)E.currentYearElement[i]=t.getFullYear().toString();else E.currentYearElement.removeAttribute(i);E.currentYearElement.disabled=!!n&&t!==undefined&&n.getFullYear()===t.getFullYear()}}}function J(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var t=Te(Te({},JSON.parse(JSON.stringify(d.dataset||{}))),c);var n={};E.config.parseDate=t.parseDate;E.config.formatDate=t.formatDate;Object.defineProperty(E.config,"enable",{get:function(){return E.config._enable},set:function(e){E.config._enable=fe(e)}});Object.defineProperty(E.config,"disable",{get:function(){return E.config._disable},set:function(e){E.config._disable=fe(e)}});var i=t.mode==="time";if(!t.dateFormat&&(t.enableTime||i)){var r=Ge.defaultConfig.dateFormat||ke.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):r+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var o=Ge.defaultConfig.altFormat||ke.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):o+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(E.config,"minDate",{get:function(){return E.config._minDate},set:V("min")});Object.defineProperty(E.config,"maxDate",{get:function(){return E.config._maxDate},set:V("max")});var a=function(t){return function(e){E.config[t==="min"?"_minTime":"_maxTime"]=E.parseDate(e,"H:i:S")}};Object.defineProperty(E.config,"minTime",{get:function(){return E.config._minTime},set:a("min")});Object.defineProperty(E.config,"maxTime",{get:function(){return E.config._maxTime},set:a("max")});if(t.mode==="time"){E.config.noCalendar=true;E.config.enableTime=true}Object.assign(E.config,n,t);for(var s=0;s<e.length;s++)E.config[e[s]]=E.config[e[s]]===true||E.config[e[s]]==="true";Se.filter(function(e){return E.config[e]!==undefined}).forEach(function(e){E.config[e]=Ne(E.config[e]||[]).map(f)});E.isMobile=!E.config.disableMobile&&!E.config.inline&&E.config.mode==="single"&&!E.config.disable.length&&!E.config.enable.length&&!E.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var s=0;s<E.config.plugins.length;s++){var l=E.config.plugins[s](E)||{};for(var u in l){if(Se.indexOf(u)>-1){E.config[u]=Ne(l[u]).map(f).concat(E.config[u])}else if(typeof t[u]==="undefined")E.config[u]=l[u]}}if(!t.altInputClass){E.config.altInputClass=Z().className+" "+E.config.altInputClass}ge("onParseConfig")}function Z(){return E.config.wrap?d.querySelector("[data-input]"):d}function ee(){if(typeof E.config.locale!=="object"&&typeof Ge.l10ns[E.config.locale]==="undefined")E.config.errorHandler(new Error("flatpickr: invalid locale "+E.config.locale));E.l10n=Te(Te({},Ge.l10ns.default),typeof E.config.locale==="object"?E.config.locale:E.config.locale!=="default"?Ge.l10ns[E.config.locale]:undefined);Re.K="("+E.l10n.amPM[0]+"|"+E.l10n.amPM[1]+"|"+E.l10n.amPM[0].toLowerCase()+"|"+E.l10n.amPM[1].toLowerCase()+")";var e=Te(Te({},c),JSON.parse(JSON.stringify(d.dataset||{})));if(e.time_24hr===undefined&&Ge.defaultConfig.time_24hr===undefined){E.config.time_24hr=E.l10n.time_24hr}E.formatDate=Be(E);E.parseDate=We({config:E.config,l10n:E.l10n})}function te(e){if(E.calendarContainer===undefined)return;ge("onPreCalendarPosition");var t=e||E._positionElement;var n=Array.prototype.reduce.call(E.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=E.calendarContainer.offsetWidth,r=E.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u=o==="above"||o!=="below"&&l<n&&s.top>n;var c=window.pageYOffset+s.top+(!u?t.offsetHeight+2:-n-2);je(E.calendarContainer,"arrowTop",!u);je(E.calendarContainer,"arrowBottom",u);if(E.config.inline)return;var f=window.pageXOffset+s.left;var d=false;var p=false;if(a==="center"){f-=(i-s.width)/2;d=true}else if(a==="right"){f-=i-s.width;p=true}je(E.calendarContainer,"arrowLeft",!d&&!p);je(E.calendarContainer,"arrowCenter",d);je(E.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right);var m=f+i>window.document.body.offsetWidth;var g=h+i>window.document.body.offsetWidth;je(E.calendarContainer,"rightMost",m);if(E.config.static)return;E.calendarContainer.style.top=c+"px";if(!m){E.calendarContainer.style.left=f+"px";E.calendarContainer.style.right="auto"}else if(!g){E.calendarContainer.style.left="auto";E.calendarContainer.style.right=h+"px"}else{var v=ne();if(v===undefined)return;var y=window.document.body.offsetWidth;var b=Math.max(0,y/2-i/2);var w=".flatpickr-calendar.centerMost:before";var _=".flatpickr-calendar.centerMost:after";var C=v.cssRules.length;var x="{left:"+s.left+"px;right:auto;}";je(E.calendarContainer,"rightMost",false);je(E.calendarContainer,"centerMost",true);v.insertRule(w+","+_+x,C);E.calendarContainer.style.left=b+"px";E.calendarContainer.style.right="auto"}}function ne(){var e=null;for(var t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return e!=null?e:ie()}function ie(){var e=document.createElement("style");document.head.appendChild(e);return e.sheet}function re(){if(E.config.noCalendar||E.isMobile)return;A();we();k()}function oe(){E._input.focus();if(window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==undefined){setTimeout(E.close,0)}else{E.close()}}function ae(e){e.preventDefault();e.stopPropagation();var t=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")};var n=$e(Fe(e),t);if(n===undefined)return;var i=n;var r=E.latestSelectedDateObj=new Date(i.dateObj.getTime());var o=(r.getMonth()<E.currentMonth||r.getMonth()>E.currentMonth+E.config.showMonths-1)&&E.config.mode!=="range";E.selectedDateElem=i;if(E.config.mode==="single")E.selectedDates=[r];else if(E.config.mode==="multiple"){var a=ye(r);if(a)E.selectedDates.splice(parseInt(a),1);else E.selectedDates.push(r)}else if(E.config.mode==="range"){if(E.selectedDates.length===2){E.clear(false,false)}E.latestSelectedDateObj=r;E.selectedDates.push(r);if(Ue(r,E.selectedDates[0],true)!==0)E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}h();if(o){var s=E.currentYear!==r.getFullYear();E.currentYear=r.getFullYear();E.currentMonth=r.getMonth();if(s){ge("onYearChange");A()}ge("onMonthChange")}we();k();Ce();if(!o&&E.config.mode!=="range"&&E.config.showMonths===1)C(i);else if(E.selectedDateElem!==undefined&&E.hourElement===undefined){E.selectedDateElem&&E.selectedDateElem.focus()}if(E.hourElement!==undefined)E.hourElement!==undefined&&E.hourElement.focus();if(E.config.closeOnSelect){var l=E.config.mode==="single"&&!E.config.enableTime;var u=E.config.mode==="range"&&E.selectedDates.length===2&&!E.config.enableTime;if(l||u){oe()}}m()}var se={locale:[ee,L],showMonths:[I,n,j],minDate:[v],maxDate:[v]};function le(e,t){if(e!==null&&typeof e==="object"){Object.assign(E.config,e);for(var n in e){if(se[n]!==undefined)se[n].forEach(function(e){return e()})}}else{E.config[e]=t;if(se[e]!==undefined)se[e].forEach(function(e){return e()});else if(Se.indexOf(e)>-1)E.config[e]=Ne(t)}E.redraw();Ce(true)}function ue(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return E.parseDate(e,t)});else if(e instanceof Date||typeof e==="number")n=[E.parseDate(e,t)];else if(typeof e==="string"){switch(E.config.mode){case"single":case"time":n=[E.parseDate(e,t)];break;case"multiple":n=e.split(E.config.conjunction).map(function(e){return E.parseDate(e,t)});break;case"range":n=e.split(E.l10n.rangeSeparator).map(function(e){return E.parseDate(e,t)});break}}else E.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));E.selectedDates=E.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&U(e,false)});if(E.config.mode==="range")E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ce(e,t,n){if(t===void 0){t=false}if(n===void 0){n=E.config.dateFormat}if(e!==0&&!e||e instanceof Array&&e.length===0)return E.clear(t);ue(e,n);E.latestSelectedDateObj=E.selectedDates[E.selectedDates.length-1];E.redraw();v(undefined,t);o();if(E.selectedDates.length===0){E.clear(false)}Ce(t);if(t)ge("onChange")}function fe(e){return e.slice().map(function(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){return E.parseDate(e,undefined,true)}else if(e&&typeof e==="object"&&e.from&&e.to)return{from:E.parseDate(e.from,undefined),to:E.parseDate(e.to,undefined)};return e}).filter(function(e){return e})}function de(){E.selectedDates=[];E.now=E.parseDate(E.config.now)||new Date;var e=E.config.defaultDate||((E.input.nodeName==="INPUT"||E.input.nodeName==="TEXTAREA")&&E.input.placeholder&&E.input.value===E.input.placeholder?null:E.input.value);if(e)ue(e,E.config.dateFormat);E._initialDate=E.selectedDates.length>0?E.selectedDates[0]:E.config.minDate&&E.config.minDate.getTime()>E.now.getTime()?E.config.minDate:E.config.maxDate&&E.config.maxDate.getTime()<E.now.getTime()?E.config.maxDate:E.now;E.currentYear=E._initialDate.getFullYear();E.currentMonth=E._initialDate.getMonth();if(E.selectedDates.length>0)E.latestSelectedDateObj=E.selectedDates[0];if(E.config.minTime!==undefined)E.config.minTime=E.parseDate(E.config.minTime,"H:i");if(E.config.maxTime!==undefined)E.config.maxTime=E.parseDate(E.config.maxTime,"H:i");E.minDateHasTime=!!E.config.minDate&&(E.config.minDate.getHours()>0||E.config.minDate.getMinutes()>0||E.config.minDate.getSeconds()>0);E.maxDateHasTime=!!E.config.maxDate&&(E.config.maxDate.getHours()>0||E.config.maxDate.getMinutes()>0||E.config.maxDate.getSeconds()>0)}function pe(){E.input=Z();if(!E.input){E.config.errorHandler(new Error("Invalid input element specified"));return}E.input._type=E.input.type;E.input.type="text";E.input.classList.add("flatpickr-input");E._input=E.input;if(E.config.altInput){E.altInput=Le(E.input.nodeName,E.config.altInputClass);E._input=E.altInput;E.altInput.placeholder=E.input.placeholder;E.altInput.disabled=E.input.disabled;E.altInput.required=E.input.required;E.altInput.tabIndex=E.input.tabIndex;E.altInput.type="text";E.input.setAttribute("type","hidden");if(!E.config.static&&E.input.parentNode)E.input.parentNode.insertBefore(E.altInput,E.input.nextSibling)}if(!E.config.allowInput)E._input.setAttribute("readonly","readonly");E._positionElement=E.config.positionElement||E._input}function he(){var e=E.config.enableTime?E.config.noCalendar?"time":"datetime-local":"date";E.mobileInput=Le("input",E.input.className+" flatpickr-mobile");E.mobileInput.tabIndex=1;E.mobileInput.type=e;E.mobileInput.disabled=E.input.disabled;E.mobileInput.required=E.input.required;E.mobileInput.placeholder=E.input.placeholder;E.mobileFormatStr=e==="datetime-local"?"Y-m-d\\TH:i:S":e==="date"?"Y-m-d":"H:i:S";if(E.selectedDates.length>0){E.mobileInput.defaultValue=E.mobileInput.value=E.formatDate(E.selectedDates[0],E.mobileFormatStr)}if(E.config.minDate)E.mobileInput.min=E.formatDate(E.config.minDate,"Y-m-d");if(E.config.maxDate)E.mobileInput.max=E.formatDate(E.config.maxDate,"Y-m-d");if(E.input.getAttribute("step"))E.mobileInput.step=String(E.input.getAttribute("step"));E.input.type="hidden";if(E.altInput!==undefined)E.altInput.type="hidden";try{if(E.input.parentNode)E.input.parentNode.insertBefore(E.mobileInput,E.input.nextSibling)}catch(e){}a(E.mobileInput,"change",function(e){E.setDate(Fe(e).value,false,E.mobileFormatStr);ge("onChange");ge("onClose")})}function me(e){if(E.isOpen===true)return E.close();E.open(e)}function ge(e,t){if(E.config===undefined)return;var n=E.config[e];if(n!==undefined&&n.length>0){for(var i=0;n[i]&&i<n.length;i++)n[i](E.selectedDates,E.input.value,E,t)}if(e==="onChange"){E.input.dispatchEvent(ve("change"));E.input.dispatchEvent(ve("input"))}}function ve(e){var t=document.createEvent("Event");t.initEvent(e,true,true);return t}function ye(e){for(var t=0;t<E.selectedDates.length;t++){if(Ue(E.selectedDates[t],e)===0)return""+t}return false}function be(e){if(E.config.mode!=="range"||E.selectedDates.length<2)return false;return Ue(e,E.selectedDates[0])>=0&&Ue(e,E.selectedDates[1])<=0}function we(){if(E.config.noCalendar||E.isMobile||!E.monthNav)return;E.yearElements.forEach(function(e,t){var n=new Date(E.currentYear,E.currentMonth,1);n.setMonth(E.currentMonth+t);if(E.config.showMonths>1||E.config.monthSelectorType==="static"){E.monthElements[t].textContent=qe(n.getMonth(),E.config.shorthandCurrentMonth,E.l10n)+" "}else{E.monthsDropdownContainer.value=n.getMonth().toString()}e.value=n.getFullYear().toString()});E._hidePrevMonthArrow=E.config.minDate!==undefined&&(E.currentYear===E.config.minDate.getFullYear()?E.currentMonth<=E.config.minDate.getMonth():E.currentYear<E.config.minDate.getFullYear());E._hideNextMonthArrow=E.config.maxDate!==undefined&&(E.currentYear===E.config.maxDate.getFullYear()?E.currentMonth+1>E.config.maxDate.getMonth():E.currentYear>E.config.maxDate.getFullYear())}function _e(t){return E.selectedDates.map(function(e){return E.formatDate(e,t)}).filter(function(e,t,n){return E.config.mode!=="range"||E.config.enableTime||n.indexOf(e)===t}).join(E.config.mode!=="range"?E.config.conjunction:E.l10n.rangeSeparator)}function Ce(e){if(e===void 0){e=true}if(E.mobileInput!==undefined&&E.mobileFormatStr){E.mobileInput.value=E.latestSelectedDateObj!==undefined?E.formatDate(E.latestSelectedDateObj,E.mobileFormatStr):""}E.input.value=_e(E.config.dateFormat);if(E.altInput!==undefined){E.altInput.value=_e(E.config.altFormat)}if(e!==false)ge("onValueUpdate")}function xe(e){var t=Fe(e);var n=E.prevMonthNav.contains(t);var i=E.nextMonthNav.contains(t);if(n||i){$(n?-1:1)}else if(E.yearElements.indexOf(t)>=0){t.select()}else if(t.classList.contains("arrowUp")){E.changeYear(E.currentYear+1)}else if(t.classList.contains("arrowDown")){E.changeYear(E.currentYear-1)}}function Ee(e){e.preventDefault();var t=e.type==="keydown",n=Fe(e),i=n;if(E.amPM!==undefined&&n===E.amPM){E.amPM.textContent=E.l10n.amPM[Ie(E.amPM.textContent===E.l10n.amPM[0])]}var r=parseFloat(i.getAttribute("min")),o=parseFloat(i.getAttribute("max")),a=parseFloat(i.getAttribute("step")),s=parseInt(i.value,10),l=e.delta||(t?e.which===38?1:-1:0);var u=s+a*l;if(typeof i.value!=="undefined"&&i.value.length===2){var c=i===E.hourElement,f=i===E.minuteElement;if(u<r){u=o+u+Ie(!c)+(Ie(c)&&Ie(!E.amPM));if(f)b(undefined,-1,E.hourElement)}else if(u>o){u=i===E.hourElement?u-o-Ie(!E.amPM):r;if(f)b(undefined,1,E.hourElement)}if(E.amPM&&c&&(a===1?u+s===23:Math.abs(u-s)>a)){E.amPM.textContent=E.l10n.amPM[Ie(E.amPM.textContent===E.l10n.amPM[0])]}i.value=Oe(u)}}e();return E}function n(e,t){var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement});var i=[];for(var r=0;r<n.length;r++){var o=n[r];try{if(o.getAttribute("data-fp-omit")!==null)continue;if(o._flatpickr!==undefined){o._flatpickr.destroy();o._flatpickr=undefined}o._flatpickr=a(o,t||{});i.push(o._flatpickr)}catch(e){console.error(e)}}return i.length===1?i[0]:i}if(typeof HTMLElement!=="undefined"&&typeof HTMLCollection!=="undefined"&&typeof NodeList!=="undefined"){HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)};HTMLElement.prototype.flatpickr=function(e){return n([this],e)}}var Ge=function(e,t){if(typeof e==="string"){return n(window.document.querySelectorAll(e),t)}else if(e instanceof Node){return n([e],t)}else{return n(e,t)}};if(Ge.defaultConfig={},Ge.l10ns={en:Te({},Ae),default:Te({},Ae)},Ge.localize=function(e){Ge.l10ns.default=Te(Te({},Ge.l10ns.default),e)},Ge.setDefaults=function(e){Ge.defaultConfig=Te(Te({},Ge.defaultConfig),e)},Ge.parseDate=We({}),Ge.formatDate=Be({}),Ge.compareDates=Ue,typeof jQuery!=="undefined"&&typeof jQuery.fn!=="undefined"){jQuery.fn.flatpickr=function(e){return n(this,e)}}if(Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e==="string"?parseInt(e,10):e))},typeof window!=="undefined"){window.flatpickr=Ge}return Ge}()},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
+ ***************************************************************************** */var Ee=function(){Ee=Object.assign||function e(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))t[o]=n[o]}return t};return Ee.apply(this,arguments)};function Te(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var De=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Se={_disable:[],allowInput:false,allowInvalidPreload:false,altFormat:"F j, Y",altInput:false,altInputClass:"form-control input",animate:typeof window==="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:true,clickOpens:true,closeOnSelect:true,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:false,enableSeconds:false,enableTime:false,errorHandler:function(e){return typeof console!=="undefined"&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0);t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:false,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false},ke={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false},Ae=function(e,t){if(t===void 0){t=2}return("000"+e).slice(t*-1)},Oe=function(e){return e===true?1:0};function Ie(t,n){var i;return function(){var e=this;clearTimeout(i);i=setTimeout(function(){return t.apply(e,arguments)},n)}}var Me=function(e){return e instanceof Array?e:[e]};function Ne(e,t,n){if(n===true)return e.classList.add(t);e.classList.remove(t)}function je(e,t,n){var i=window.document.createElement(e);t=t||"";n=n||"";i.className=t;if(n!==undefined)i.textContent=n;return i}function Le(e){while(e.firstChild)e.removeChild(e.firstChild)}function Pe(e,t){if(t(e))return e;else if(e.parentNode)return Pe(e.parentNode,t);return undefined}function $e(e,t){var n=je("div","numInputWrapper"),i=je("input","numInput "+e),r=je("span","arrowUp"),o=je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(t!==undefined)for(var a in t)i.setAttribute(a,t[a]);n.appendChild(i);n.appendChild(r);n.appendChild(o);return n}function He(t){try{if(typeof t.composedPath==="function"){var e=t.composedPath();return e[0]}return t.target}catch(e){return t.target}}var e=function(){return undefined},Fe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},w={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Oe(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(parseFloat(t)*1e3)},W:function(e,t,n){var i=parseInt(t);var r=new Date(e.getFullYear(),0,2+(i-1)*7,0,0,0,0);r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek);return r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},qe={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return Fe(l.n(e,t,n)-1,false,t)},G:function(e,t,n){return Ae(l.h(e,t,n))},H:function(e){return Ae(e.getHours())},J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Oe(e.getHours()>11)]},M:function(e,t){return Fe(e.getMonth(),true,t)},S:function(e){return Ae(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return Ae(e.getFullYear(),4)},d:function(e){return Ae(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Ae(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Ae(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},Re=function(e){var t=e.config,o=t===void 0?Se:t,n=e.l10n,a=n===void 0?ke:n,i=e.isMobile,s=i===void 0?false:i;return function(i,e,t){var r=t||a;if(o.formatDate!==undefined&&!s){return o.formatDate(i,e,r)}return e.split("").map(function(e,t,n){return l[e]&&n[t-1]!=="\\"?l[e](i,r,o):e!=="\\"?e:""}).join("")}},Be=function(e){var t=e.config,y=t===void 0?Se:t,n=e.l10n,b=n===void 0?ke:n;return function(e,t,n,i){if(e!==0&&!e)return undefined;var r=i||b;var o;var a=e;if(e instanceof Date)o=new Date(e.getTime());else if(typeof e!=="string"&&e.toFixed!==undefined)o=new Date(e);else if(typeof e==="string"){var s=t||(y||Se).dateFormat;var l=String(e).trim();if(l==="today"){o=new Date;n=true}else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(y&&y.parseDate)o=y.parseDate(e,s);else{o=!y||!y.noCalendar?new Date((new Date).getFullYear(),0,1,0,0,0,0):new Date((new Date).setHours(0,0,0,0));var u=void 0,c=[];for(var f=0,d=0,p="";f<s.length;f++){var h=s[f];var m=h==="\\";var g=s[f-1]==="\\"||m;if(qe[h]&&!g){p+=qe[h];var v=new RegExp(p).exec(e);if(v&&(u=true)){c[h!=="Y"?"push":"unshift"]({fn:w[h],val:v[++d]})}}else if(!m)p+=".";c.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,r)||o})}o=u?o:undefined}}if(!(o instanceof Date&&!isNaN(o.getTime()))){y.errorHandler(new Error("Invalid date provided: "+a));return undefined}if(n===true)o.setHours(0,0,0,0);return o}};function We(e,t,n){if(n===void 0){n=true}if(n!==false){return new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0)}return e.getTime()-t.getTime()}var Ue=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},ze={DAY:864e5};function Ye(e){var t=e.defaultHour;var n=e.defaultMinute;var i=e.defaultSeconds;if(e.minDate!==undefined){var r=e.minDate.getHours();var o=e.minDate.getMinutes();var a=e.minDate.getSeconds();if(t<r){t=r}if(t===r&&n<o){n=o}if(t===r&&n===o&&i<a)i=e.minDate.getSeconds()}if(e.maxDate!==undefined){var s=e.maxDate.getHours();var l=e.maxDate.getMinutes();t=Math.min(t,s);if(t===s)n=Math.min(l,n);if(t===s&&n===l)i=e.maxDate.getSeconds()}return{hours:t,minutes:n,seconds:i}}if(typeof Object.assign!=="function"){Object.assign=function(n){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}if(!n){throw TypeError("Cannot convert undefined or null to object")}var i=function(t){if(t){Object.keys(t).forEach(function(e){return n[e]=t[e]})}};for(var r=0,o=e;r<o.length;r++){var a=o[r];i(a)}return n}}var Ke=300;function a(d,c){var E={config:Ee(Ee({},Se),Ge.defaultConfig),l10n:ke};E.parseDate=Be({config:E.config,l10n:E.l10n});E._handlers=[];E.pluginElements=[];E.loadedPlugins=[];E._bind=a;E._setHoursFromDate=r;E._positionCalendar=ee;E.changeMonth=P;E.changeYear=B;E.clear=$;E.close=H;E._createElement=je;E.destroy=F;E.isEnabled=W;E.jumpToDate=g;E.open=Q;E.redraw=ie;E.set=se;E.setDate=ue;E.toggle=he;function t(){E.utils={getDaysInMonth:function(e,t){if(e===void 0){e=E.currentMonth}if(t===void 0){t=E.currentYear}if(e===1&&(t%4===0&&t%100!==0||t%400===0))return 29;return E.l10n.daysInMonth[e]}}}function e(){E.element=E.input=d;E.isOpen=false;V();Z();de();fe();t();if(!E.isMobile)b();u();if(E.selectedDates.length||E.config.noCalendar){if(E.config.enableTime){r(E.config.noCalendar?E.latestSelectedDateObj:undefined)}_e(false)}n();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(!E.isMobile&&e){ee()}me("onReady")}function f(e){return e.bind(E)}function n(){var t=E.config;if(t.weekNumbers===false&&t.showMonths===1){return}else if(t.noCalendar!==true){window.requestAnimationFrame(function(){if(E.calendarContainer!==undefined){E.calendarContainer.style.visibility="hidden";E.calendarContainer.style.display="block"}if(E.daysContainer!==undefined){var e=(E.days.offsetWidth+1)*t.showMonths;E.daysContainer.style.width=e+"px";E.calendarContainer.style.width=e+(E.weekWrapper!==undefined?E.weekWrapper.offsetWidth:0)+"px";E.calendarContainer.style.removeProperty("visibility");E.calendarContainer.style.removeProperty("display")}})}}function p(e){if(E.selectedDates.length===0){var t=E.config.minDate===undefined||We(new Date,E.config.minDate)>=0?new Date:new Date(E.config.minDate.getTime());var n=Ye(E.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds());E.selectedDates=[t];E.latestSelectedDateObj=t}if(e!==undefined&&e.type!=="blur"){xe(e)}var i=E._input.value;h();_e();if(E._input.value!==i){E._debouncedChange()}}function s(e,t){return e%12+12*Oe(t===E.l10n.amPM[1])}function o(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function h(){if(E.hourElement===undefined||E.minuteElement===undefined)return;var e=(parseInt(E.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(E.minuteElement.value,10)||0)%60,n=E.secondElement!==undefined?(parseInt(E.secondElement.value,10)||0)%60:0;if(E.amPM!==undefined){e=s(e,E.amPM.textContent)}var i=E.config.minTime!==undefined||E.config.minDate&&E.minDateHasTime&&E.latestSelectedDateObj&&We(E.latestSelectedDateObj,E.config.minDate,true)===0;var r=E.config.maxTime!==undefined||E.config.maxDate&&E.maxDateHasTime&&E.latestSelectedDateObj&&We(E.latestSelectedDateObj,E.config.maxDate,true)===0;if(r){var o=E.config.maxTime!==undefined?E.config.maxTime:E.config.maxDate;e=Math.min(e,o.getHours());if(e===o.getHours())t=Math.min(t,o.getMinutes());if(t===o.getMinutes())n=Math.min(n,o.getSeconds())}if(i){var a=E.config.minTime!==undefined?E.config.minTime:E.config.minDate;e=Math.max(e,a.getHours());if(e===a.getHours()&&t<a.getMinutes())t=a.getMinutes();if(t===a.getMinutes())n=Math.max(n,a.getSeconds())}l(e,t,n)}function r(e){var t=e||E.latestSelectedDateObj;if(t){l(t.getHours(),t.getMinutes(),t.getSeconds())}}function l(e,t,n){if(E.latestSelectedDateObj!==undefined){E.latestSelectedDateObj.setHours(e%24,t,n||0,0)}if(!E.hourElement||!E.minuteElement||E.isMobile)return;E.hourElement.value=Ae(!E.config.time_24hr?(12+e)%12+12*Oe(e%12===0):e);E.minuteElement.value=Ae(t);if(E.amPM!==undefined)E.amPM.textContent=E.l10n.amPM[Oe(e>=12)];if(E.secondElement!==undefined)E.secondElement.value=Ae(n)}function i(e){var t=He(e);var n=parseInt(t.value)+(e.delta||0);if(n/1e3>1||e.key==="Enter"&&!/[^\d]/.test(n.toString())){B(n)}}function a(t,n,i,r){if(n instanceof Array)return n.forEach(function(e){return a(t,e,i,r)});if(t instanceof Array)return t.forEach(function(e){return a(e,n,i,r)});t.addEventListener(n,i,r);E._handlers.push({remove:function(){return t.removeEventListener(n,i)}})}function m(){me("onChange")}function u(){if(E.config.wrap){["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(E.element.querySelectorAll("[data-"+t+"]"),function(e){return a(e,"click",E[t])})})}if(E.isMobile){pe();return}var e=Ie(G,50);E._debouncedChange=Ie(m,Ke);if(E.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))a(E.daysContainer,"mouseover",function(e){if(E.config.mode==="range")K(He(e))});a(window.document.body,"keydown",Y);if(!E.config.inline&&!E.config.static)a(window,"resize",e);if(window.ontouchstart!==undefined)a(window.document,"touchstart",R);else a(window.document,"mousedown",R);a(window.document,"focus",R,{capture:true});if(E.config.clickOpens===true){a(E._input,"focus",E.open);a(E._input,"click",E.open)}if(E.daysContainer!==undefined){a(E.monthNav,"click",Ce);a(E.monthNav,["keyup","increment"],i);a(E.daysContainer,"click",oe)}if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined){var t=function(e){return He(e).select()};a(E.timeContainer,["increment"],p);a(E.timeContainer,"blur",p,{capture:true});a(E.timeContainer,"click",v);a([E.hourElement,E.minuteElement],["focus","click"],t);if(E.secondElement!==undefined)a(E.secondElement,"focus",function(){return E.secondElement&&E.secondElement.select()});if(E.amPM!==undefined){a(E.amPM,"click",function(e){p(e);m()})}}if(E.config.allowInput){a(E._input,"blur",z)}}function g(e,t){var n=e!==undefined?E.parseDate(e):E.latestSelectedDateObj||(E.config.minDate&&E.config.minDate>E.now?E.config.minDate:E.config.maxDate&&E.config.maxDate<E.now?E.config.maxDate:E.now);var i=E.currentYear;var r=E.currentMonth;try{if(n!==undefined){E.currentYear=n.getFullYear();E.currentMonth=n.getMonth()}}catch(e){e.message="Invalid date supplied: "+n;E.config.errorHandler(e)}if(t&&E.currentYear!==i){me("onYearChange");k()}if(t&&(E.currentYear!==i||E.currentMonth!==r)){me("onMonthChange")}E.redraw()}function v(e){var t=He(e);if(~t.className.indexOf("arrow"))y(e,t.classList.contains("arrowUp")?1:-1)}function y(e,t,n){var i=e&&He(e);var r=n||i&&i.parentNode&&i.parentNode.firstChild;var o=ge("increment");o.delta=t;r&&r.dispatchEvent(o)}function b(){var e=window.document.createDocumentFragment();E.calendarContainer=je("div","flatpickr-calendar");E.calendarContainer.tabIndex=-1;if(!E.config.noCalendar){e.appendChild(I());E.innerContainer=je("div","flatpickr-innerContainer");if(E.config.weekNumbers){var t=L(),n=t.weekWrapper,i=t.weekNumbers;E.innerContainer.appendChild(n);E.weekNumbers=i;E.weekWrapper=n}E.rContainer=je("div","flatpickr-rContainer");E.rContainer.appendChild(N());if(!E.daysContainer){E.daysContainer=je("div","flatpickr-days");E.daysContainer.tabIndex=-1}S();E.rContainer.appendChild(E.daysContainer);E.innerContainer.appendChild(E.rContainer);e.appendChild(E.innerContainer)}if(E.config.enableTime){e.appendChild(M())}Ne(E.calendarContainer,"rangeMode",E.config.mode==="range");Ne(E.calendarContainer,"animate",E.config.animate===true);Ne(E.calendarContainer,"multiMonth",E.config.showMonths>1);E.calendarContainer.appendChild(e);var r=E.config.appendTo!==undefined&&E.config.appendTo.nodeType!==undefined;if(E.config.inline||E.config.static){E.calendarContainer.classList.add(E.config.inline?"inline":"static");if(E.config.inline){if(!r&&E.element.parentNode)E.element.parentNode.insertBefore(E.calendarContainer,E._input.nextSibling);else if(E.config.appendTo!==undefined)E.config.appendTo.appendChild(E.calendarContainer)}if(E.config.static){var o=je("div","flatpickr-wrapper");if(E.element.parentNode)E.element.parentNode.insertBefore(o,E.element);o.appendChild(E.element);if(E.altInput)o.appendChild(E.altInput);o.appendChild(E.calendarContainer)}}if(!E.config.static&&!E.config.inline)(E.config.appendTo!==undefined?E.config.appendTo:window.document.body).appendChild(E.calendarContainer)}function w(e,t,n,i){var r=W(t,true),o=je("span","flatpickr-day "+e,t.getDate().toString());o.dateObj=t;o.$i=i;o.setAttribute("aria-label",E.formatDate(t,E.config.ariaDateFormat));if(e.indexOf("hidden")===-1&&We(t,E.now)===0){E.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(r){o.tabIndex=-1;if(ve(t)){o.classList.add("selected");E.selectedDateElem=o;if(E.config.mode==="range"){Ne(o,"startRange",E.selectedDates[0]&&We(t,E.selectedDates[0],true)===0);Ne(o,"endRange",E.selectedDates[1]&&We(t,E.selectedDates[1],true)===0);if(e==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(E.config.mode==="range"){if(ye(t)&&!ve(t))o.classList.add("inRange")}if(E.weekNumbers&&E.config.showMonths===1&&e!=="prevMonthDay"&&n%7===1){E.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+E.config.getWeek(t)+"</span>")}me("onDayCreate",o);return o}function _(e){e.focus();if(E.config.mode==="range")K(e)}function C(e){var t=e>0?0:E.config.showMonths-1;var n=e>0?E.config.showMonths:-1;for(var i=t;i!=n;i+=e){var r=E.daysContainer.children[i];var o=e>0?0:r.children.length-1;var a=e>0?r.children.length:-1;for(var s=o;s!=a;s+=e){var l=r.children[s];if(l.className.indexOf("hidden")===-1&&W(l.dateObj))return l}}return undefined}function x(e,t){var n=e.className.indexOf("Month")===-1?e.dateObj.getMonth():E.currentMonth;var i=t>0?E.config.showMonths:-1;var r=t>0?1:-1;for(var o=n-E.currentMonth;o!=i;o+=r){var a=E.daysContainer.children[o];var s=n-E.currentMonth===o?e.$i+t:t<0?a.children.length-1:0;var l=a.children.length;for(var u=s;u>=0&&u<l&&u!=(t>0?l:-1);u+=r){var c=a.children[u];if(c.className.indexOf("hidden")===-1&&W(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return _(c)}}E.changeMonth(r);T(C(r),0);return undefined}function T(e,t){var n=U(document.activeElement||document.body);var i=e!==undefined?e:n?document.activeElement:E.selectedDateElem!==undefined&&U(E.selectedDateElem)?E.selectedDateElem:E.todayDateElem!==undefined&&U(E.todayDateElem)?E.todayDateElem:C(t>0?1:-1);if(i===undefined){E._input.focus()}else if(!n){_(i)}else{x(i,t)}}function D(e,t){var n=(new Date(e,t,1).getDay()-E.l10n.firstDayOfWeek+7)%7;var i=E.utils.getDaysInMonth((t-1+12)%12,e);var r=E.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),a=E.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay";var u=i+1-n,c=0;for(;u<=i;u++,c++){o.appendChild(w(s,new Date(e,t-1,u),u,c))}for(u=1;u<=r;u++,c++){o.appendChild(w("",new Date(e,t,u),u,c))}for(var f=r+1;f<=42-n&&(E.config.showMonths===1||c%7!==0);f++,c++){o.appendChild(w(l,new Date(e,t+1,f%r),f,c))}var d=je("div","dayContainer");d.appendChild(o);return d}function S(){if(E.daysContainer===undefined){return}Le(E.daysContainer);if(E.weekNumbers)Le(E.weekNumbers);var e=document.createDocumentFragment();for(var t=0;t<E.config.showMonths;t++){var n=new Date(E.currentYear,E.currentMonth,1);n.setMonth(E.currentMonth+t);e.appendChild(D(n.getFullYear(),n.getMonth()))}E.daysContainer.appendChild(e);E.days=E.daysContainer.firstChild;if(E.config.mode==="range"&&E.selectedDates.length===1){K()}}function k(){if(E.config.showMonths>1||E.config.monthSelectorType!=="dropdown")return;var e=function(e){if(E.config.minDate!==undefined&&E.currentYear===E.config.minDate.getFullYear()&&e<E.config.minDate.getMonth()){return false}return!(E.config.maxDate!==undefined&&E.currentYear===E.config.maxDate.getFullYear()&&e>E.config.maxDate.getMonth())};E.monthsDropdownContainer.tabIndex=-1;E.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++){if(!e(t))continue;var n=je("option","flatpickr-monthDropdown-month");n.value=new Date(E.currentYear,t).getMonth().toString();n.textContent=Fe(t,E.config.shorthandCurrentMonth,E.l10n);n.tabIndex=-1;if(E.currentMonth===t){n.selected=true}E.monthsDropdownContainer.appendChild(n)}}function A(){var e=je("div","flatpickr-month");var t=window.document.createDocumentFragment();var n;if(E.config.showMonths>1||E.config.monthSelectorType==="static"){n=je("span","cur-month")}else{E.monthsDropdownContainer=je("select","flatpickr-monthDropdown-months");E.monthsDropdownContainer.setAttribute("aria-label",E.l10n.monthAriaLabel);a(E.monthsDropdownContainer,"change",function(e){var t=He(e);var n=parseInt(t.value,10);E.changeMonth(n-E.currentMonth);me("onMonthChange")});k();n=E.monthsDropdownContainer}var i=$e("cur-year",{tabindex:"-1"});var r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",E.l10n.yearAriaLabel);if(E.config.minDate){r.setAttribute("min",E.config.minDate.getFullYear().toString())}if(E.config.maxDate){r.setAttribute("max",E.config.maxDate.getFullYear().toString());r.disabled=!!E.config.minDate&&E.config.minDate.getFullYear()===E.config.maxDate.getFullYear()}var o=je("div","flatpickr-current-month");o.appendChild(n);o.appendChild(i);t.appendChild(o);e.appendChild(t);return{container:e,yearElement:r,monthElement:n}}function O(){Le(E.monthNav);E.monthNav.appendChild(E.prevMonthNav);if(E.config.showMonths){E.yearElements=[];E.monthElements=[]}for(var e=E.config.showMonths;e--;){var t=A();E.yearElements.push(t.yearElement);E.monthElements.push(t.monthElement);E.monthNav.appendChild(t.container)}E.monthNav.appendChild(E.nextMonthNav)}function I(){E.monthNav=je("div","flatpickr-months");E.yearElements=[];E.monthElements=[];E.prevMonthNav=je("span","flatpickr-prev-month");E.prevMonthNav.innerHTML=E.config.prevArrow;E.nextMonthNav=je("span","flatpickr-next-month");E.nextMonthNav.innerHTML=E.config.nextArrow;O();Object.defineProperty(E,"_hidePrevMonthArrow",{get:function(){return E.__hidePrevMonthArrow},set:function(e){if(E.__hidePrevMonthArrow!==e){Ne(E.prevMonthNav,"flatpickr-disabled",e);E.__hidePrevMonthArrow=e}}});Object.defineProperty(E,"_hideNextMonthArrow",{get:function(){return E.__hideNextMonthArrow},set:function(e){if(E.__hideNextMonthArrow!==e){Ne(E.nextMonthNav,"flatpickr-disabled",e);E.__hideNextMonthArrow=e}}});E.currentYearElement=E.yearElements[0];be();return E.monthNav}function M(){E.calendarContainer.classList.add("hasTime");if(E.config.noCalendar)E.calendarContainer.classList.add("noCalendar");var e=Ye(E.config);E.timeContainer=je("div","flatpickr-time");E.timeContainer.tabIndex=-1;var t=je("span","flatpickr-time-separator",":");var n=$e("flatpickr-hour",{"aria-label":E.l10n.hourAriaLabel});E.hourElement=n.getElementsByTagName("input")[0];var i=$e("flatpickr-minute",{"aria-label":E.l10n.minuteAriaLabel});E.minuteElement=i.getElementsByTagName("input")[0];E.hourElement.tabIndex=E.minuteElement.tabIndex=-1;E.hourElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getHours():E.config.time_24hr?e.hours:o(e.hours));E.minuteElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getMinutes():e.minutes);E.hourElement.setAttribute("step",E.config.hourIncrement.toString());E.minuteElement.setAttribute("step",E.config.minuteIncrement.toString());E.hourElement.setAttribute("min",E.config.time_24hr?"0":"1");E.hourElement.setAttribute("max",E.config.time_24hr?"23":"12");E.hourElement.setAttribute("maxlength","2");E.minuteElement.setAttribute("min","0");E.minuteElement.setAttribute("max","59");E.minuteElement.setAttribute("maxlength","2");E.timeContainer.appendChild(n);E.timeContainer.appendChild(t);E.timeContainer.appendChild(i);if(E.config.time_24hr)E.timeContainer.classList.add("time24hr");if(E.config.enableSeconds){E.timeContainer.classList.add("hasSeconds");var r=$e("flatpickr-second");E.secondElement=r.getElementsByTagName("input")[0];E.secondElement.value=Ae(E.latestSelectedDateObj?E.latestSelectedDateObj.getSeconds():e.seconds);E.secondElement.setAttribute("step",E.minuteElement.getAttribute("step"));E.secondElement.setAttribute("min","0");E.secondElement.setAttribute("max","59");E.secondElement.setAttribute("maxlength","2");E.timeContainer.appendChild(je("span","flatpickr-time-separator",":"));E.timeContainer.appendChild(r)}if(!E.config.time_24hr){E.amPM=je("span","flatpickr-am-pm",E.l10n.amPM[Oe((E.latestSelectedDateObj?E.hourElement.value:E.config.defaultHour)>11)]);E.amPM.title=E.l10n.toggleTitle;E.amPM.tabIndex=-1;E.timeContainer.appendChild(E.amPM)}return E.timeContainer}function N(){if(!E.weekdayContainer)E.weekdayContainer=je("div","flatpickr-weekdays");else Le(E.weekdayContainer);for(var e=E.config.showMonths;e--;){var t=je("div","flatpickr-weekdaycontainer");E.weekdayContainer.appendChild(t)}j();return E.weekdayContainer}function j(){if(!E.weekdayContainer){return}var e=E.l10n.firstDayOfWeek;var t=Te(E.l10n.weekdays.shorthand);if(e>0&&e<t.length){t=Te(t.splice(e,t.length),t.splice(0,e))}for(var n=E.config.showMonths;n--;){E.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function L(){E.calendarContainer.classList.add("hasWeeks");var e=je("div","flatpickr-weekwrapper");e.appendChild(je("span","flatpickr-weekday",E.l10n.weekAbbreviation));var t=je("div","flatpickr-weeks");e.appendChild(t);return{weekWrapper:e,weekNumbers:t}}function P(e,t){if(t===void 0){t=true}var n=t?e:e-E.currentMonth;if(n<0&&E._hidePrevMonthArrow===true||n>0&&E._hideNextMonthArrow===true)return;E.currentMonth+=n;if(E.currentMonth<0||E.currentMonth>11){E.currentYear+=E.currentMonth>11?1:-1;E.currentMonth=(E.currentMonth+12)%12;me("onYearChange");k()}S();me("onMonthChange");be()}function $(e,t){if(e===void 0){e=true}if(t===void 0){t=true}E.input.value="";if(E.altInput!==undefined)E.altInput.value="";if(E.mobileInput!==undefined)E.mobileInput.value="";E.selectedDates=[];E.latestSelectedDateObj=undefined;if(t===true){E.currentYear=E._initialDate.getFullYear();E.currentMonth=E._initialDate.getMonth()}if(E.config.enableTime===true){var n=Ye(E.config),i=n.hours,r=n.minutes,o=n.seconds;l(i,r,o)}E.redraw();if(e)me("onChange")}function H(){E.isOpen=false;if(!E.isMobile){if(E.calendarContainer!==undefined){E.calendarContainer.classList.remove("open")}if(E._input!==undefined){E._input.classList.remove("active")}}me("onClose")}function F(){if(E.config!==undefined)me("onDestroy");for(var e=E._handlers.length;e--;){E._handlers[e].remove()}E._handlers=[];if(E.mobileInput){if(E.mobileInput.parentNode)E.mobileInput.parentNode.removeChild(E.mobileInput);E.mobileInput=undefined}else if(E.calendarContainer&&E.calendarContainer.parentNode){if(E.config.static&&E.calendarContainer.parentNode){var t=E.calendarContainer.parentNode;t.lastChild&&t.removeChild(t.lastChild);if(t.parentNode){while(t.firstChild)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else E.calendarContainer.parentNode.removeChild(E.calendarContainer)}if(E.altInput){E.input.type="text";if(E.altInput.parentNode)E.altInput.parentNode.removeChild(E.altInput);delete E.altInput}if(E.input){E.input.type=E.input._type;E.input.classList.remove("flatpickr-input");E.input.removeAttribute("readonly")}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete E[e]}catch(e){}})}function q(e){if(E.config.appendTo&&E.config.appendTo.contains(e))return true;return E.calendarContainer.contains(e)}function R(e){if(E.isOpen&&!E.config.inline){var t=He(e);var n=q(t);var i=t===E.input||t===E.altInput||E.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(E.input)||~e.path.indexOf(E.altInput));var r=e.type==="blur"?i&&e.relatedTarget&&!q(e.relatedTarget):!i&&!n&&!q(e.relatedTarget);var o=!E.config.ignoredFocusElements.some(function(e){return e.contains(t)});if(r&&o){if(E.timeContainer!==undefined&&E.minuteElement!==undefined&&E.hourElement!==undefined&&E.input.value!==""&&E.input.value!==undefined){p()}E.close();if(E.config&&E.config.mode==="range"&&E.selectedDates.length===1){E.clear(false);E.redraw()}}}}function B(e){if(!e||E.config.minDate&&e<E.config.minDate.getFullYear()||E.config.maxDate&&e>E.config.maxDate.getFullYear())return;var t=e,n=E.currentYear!==t;E.currentYear=t||E.currentYear;if(E.config.maxDate&&E.currentYear===E.config.maxDate.getFullYear()){E.currentMonth=Math.min(E.config.maxDate.getMonth(),E.currentMonth)}else if(E.config.minDate&&E.currentYear===E.config.minDate.getFullYear()){E.currentMonth=Math.max(E.config.minDate.getMonth(),E.currentMonth)}if(n){E.redraw();me("onYearChange");k()}}function W(e,t){var n;if(t===void 0){t=true}var i=E.parseDate(e,undefined,t);if(E.config.minDate&&i&&We(i,E.config.minDate,t!==undefined?t:!E.minDateHasTime)<0||E.config.maxDate&&i&&We(i,E.config.maxDate,t!==undefined?t:!E.maxDateHasTime)>0)return false;if(!E.config.enable&&E.config.disable.length===0)return true;if(i===undefined)return false;var r=!!E.config.enable,o=(n=E.config.enable)!==null&&n!==void 0?n:E.config.disable;for(var a=0,s=void 0;a<o.length;a++){s=o[a];if(typeof s==="function"&&s(i))return r;else if(s instanceof Date&&i!==undefined&&s.getTime()===i.getTime())return r;else if(typeof s==="string"){var l=E.parseDate(s,undefined,true);return l&&l.getTime()===i.getTime()?r:!r}else if(typeof s==="object"&&i!==undefined&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function U(e){if(E.daysContainer!==undefined)return e.className.indexOf("hidden")===-1&&e.className.indexOf("flatpickr-disabled")===-1&&E.daysContainer.contains(e);return false}function z(e){var t=e.target===E._input;if(t&&(E.selectedDates.length>0||E._input.value.length>0)&&!(e.relatedTarget&&q(e.relatedTarget))){E.setDate(E._input.value,true,e.target===E.altInput?E.config.altFormat:E.config.dateFormat)}}function Y(e){var t=He(e);var n=E.config.wrap?d.contains(t):t===E._input;var i=E.config.allowInput;var r=E.isOpen&&(!i||!n);var o=E.config.inline&&n&&!i;if(e.keyCode===13&&n){if(i){E.setDate(E._input.value,true,t===E.altInput?E.config.altFormat:E.config.dateFormat);return t.blur()}else{E.open()}}else if(q(t)||r||o){var a=!!E.timeContainer&&E.timeContainer.contains(t);switch(e.keyCode){case 13:if(a){e.preventDefault();p();re()}else oe(e);break;case 27:e.preventDefault();re();break;case 8:case 46:if(n&&!E.config.allowInput){e.preventDefault();E.clear()}break;case 37:case 39:if(!a&&!n){e.preventDefault();if(E.daysContainer!==undefined&&(i===false||document.activeElement&&U(document.activeElement))){var s=e.keyCode===39?1:-1;if(!e.ctrlKey)T(undefined,s);else{e.stopPropagation();P(s);T(C(1),0)}}}else if(E.hourElement)E.hourElement.focus();break;case 38:case 40:e.preventDefault();var l=e.keyCode===40?1:-1;if(E.daysContainer&&t.$i!==undefined||t===E.input||t===E.altInput){if(e.ctrlKey){e.stopPropagation();B(E.currentYear-l);T(C(1),0)}else if(!a)T(undefined,l*7)}else if(t===E.currentYearElement){B(E.currentYear-l)}else if(E.config.enableTime){if(!a&&E.hourElement)E.hourElement.focus();p(e);E._debouncedChange()}break;case 9:if(a){var u=[E.hourElement,E.minuteElement,E.secondElement,E.amPM].concat(E.pluginElements).filter(function(e){return e});var c=u.indexOf(t);if(c!==-1){var f=u[c+(e.shiftKey?-1:1)];e.preventDefault();(f||E._input).focus()}}else if(!E.config.noCalendar&&E.daysContainer&&E.daysContainer.contains(t)&&e.shiftKey){e.preventDefault();E._input.focus()}break}}if(E.amPM!==undefined&&t===E.amPM){switch(e.key){case E.l10n.amPM[0].charAt(0):case E.l10n.amPM[0].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[0];h();_e();break;case E.l10n.amPM[1].charAt(0):case E.l10n.amPM[1].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[1];h();_e();break}}if(n||q(t)){me("onKeyDown",e)}}function K(a){if(E.selectedDates.length!==1||a&&(!a.classList.contains("flatpickr-day")||a.classList.contains("flatpickr-disabled")))return;var s=a?a.dateObj.getTime():E.days.firstElementChild.dateObj.getTime(),l=E.parseDate(E.selectedDates[0],undefined,true).getTime(),e=Math.min(s,E.selectedDates[0].getTime()),t=Math.max(s,E.selectedDates[0].getTime());var u=false;var c=0,f=0;for(var n=e;n<t;n+=ze.DAY){if(!W(new Date(n),true)){u=u||n>e&&n<t;if(n<l&&(!c||n>c))c=n;else if(n>l&&(!f||n<f))f=n}}for(var i=0;i<E.config.showMonths;i++){var d=E.daysContainer.children[i];var r=function(e,t){var n=d.children[e],i=n.dateObj;var r=i.getTime();var o=c>0&&r<c||f>0&&r>f;if(o){n.classList.add("notAllowed");["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)});return"continue"}else if(u&&!o)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)});if(a!==undefined){a.classList.add(s<=E.selectedDates[0].getTime()?"startRange":"endRange");if(l<s&&r===l)n.classList.add("startRange");else if(l>s&&r===l)n.classList.add("endRange");if(r>=c&&(f===0||r<=f)&&Ue(r,l,s))n.classList.add("inRange")}};for(var o=0,p=d.children.length;o<p;o++){r(o,p)}}}function G(){if(E.isOpen&&!E.config.static&&!E.config.inline)ee()}function Q(e,t){if(t===void 0){t=E._positionElement}if(E.isMobile===true){if(e){e.preventDefault();var n=He(e);if(n){n.blur()}}if(E.mobileInput!==undefined){E.mobileInput.focus();E.mobileInput.click()}me("onOpen");return}else if(E._input.disabled||E.config.inline){return}var i=E.isOpen;E.isOpen=true;if(!i){E.calendarContainer.classList.add("open");E._input.classList.add("active");me("onOpen");ee(t)}if(E.config.enableTime===true&&E.config.noCalendar===true){if(E.config.allowInput===false&&(e===undefined||!E.timeContainer.contains(e.relatedTarget))){setTimeout(function(){return E.hourElement.select()},50)}}}function X(i){return function(e){var t=E.config["_"+i+"Date"]=E.parseDate(e,E.config.dateFormat);var n=E.config["_"+(i==="min"?"max":"min")+"Date"];if(t!==undefined){E[i==="min"?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0}if(E.selectedDates){E.selectedDates=E.selectedDates.filter(function(e){return W(e)});if(!E.selectedDates.length&&i==="min")r(t);_e()}if(E.daysContainer){ie();if(t!==undefined)E.currentYearElement[i]=t.getFullYear().toString();else E.currentYearElement.removeAttribute(i);E.currentYearElement.disabled=!!n&&t!==undefined&&n.getFullYear()===t.getFullYear()}}}function V(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var t=Ee(Ee({},JSON.parse(JSON.stringify(d.dataset||{}))),c);var n={};E.config.parseDate=t.parseDate;E.config.formatDate=t.formatDate;Object.defineProperty(E.config,"enable",{get:function(){return E.config._enable},set:function(e){E.config._enable=ce(e)}});Object.defineProperty(E.config,"disable",{get:function(){return E.config._disable},set:function(e){E.config._disable=ce(e)}});var i=t.mode==="time";if(!t.dateFormat&&(t.enableTime||i)){var r=Ge.defaultConfig.dateFormat||Se.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):r+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var o=Ge.defaultConfig.altFormat||Se.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):o+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(E.config,"minDate",{get:function(){return E.config._minDate},set:X("min")});Object.defineProperty(E.config,"maxDate",{get:function(){return E.config._maxDate},set:X("max")});var a=function(t){return function(e){E.config[t==="min"?"_minTime":"_maxTime"]=E.parseDate(e,"H:i:S")}};Object.defineProperty(E.config,"minTime",{get:function(){return E.config._minTime},set:a("min")});Object.defineProperty(E.config,"maxTime",{get:function(){return E.config._maxTime},set:a("max")});if(t.mode==="time"){E.config.noCalendar=true;E.config.enableTime=true}Object.assign(E.config,n,t);for(var s=0;s<e.length;s++)E.config[e[s]]=E.config[e[s]]===true||E.config[e[s]]==="true";De.filter(function(e){return E.config[e]!==undefined}).forEach(function(e){E.config[e]=Me(E.config[e]||[]).map(f)});E.isMobile=!E.config.disableMobile&&!E.config.inline&&E.config.mode==="single"&&!E.config.disable.length&&!E.config.enable&&!E.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var s=0;s<E.config.plugins.length;s++){var l=E.config.plugins[s](E)||{};for(var u in l){if(De.indexOf(u)>-1){E.config[u]=Me(l[u]).map(f).concat(E.config[u])}else if(typeof t[u]==="undefined")E.config[u]=l[u]}}if(!t.altInputClass){E.config.altInputClass=J().className+" "+E.config.altInputClass}me("onParseConfig")}function J(){return E.config.wrap?d.querySelector("[data-input]"):d}function Z(){if(typeof E.config.locale!=="object"&&typeof Ge.l10ns[E.config.locale]==="undefined")E.config.errorHandler(new Error("flatpickr: invalid locale "+E.config.locale));E.l10n=Ee(Ee({},Ge.l10ns.default),typeof E.config.locale==="object"?E.config.locale:E.config.locale!=="default"?Ge.l10ns[E.config.locale]:undefined);qe.K="("+E.l10n.amPM[0]+"|"+E.l10n.amPM[1]+"|"+E.l10n.amPM[0].toLowerCase()+"|"+E.l10n.amPM[1].toLowerCase()+")";var e=Ee(Ee({},c),JSON.parse(JSON.stringify(d.dataset||{})));if(e.time_24hr===undefined&&Ge.defaultConfig.time_24hr===undefined){E.config.time_24hr=E.l10n.time_24hr}E.formatDate=Re(E);E.parseDate=Be({config:E.config,l10n:E.l10n})}function ee(e){if(typeof E.config.position==="function"){return void E.config.position(E,e)}if(E.calendarContainer===undefined)return;me("onPreCalendarPosition");var t=e||E._positionElement;var n=Array.prototype.reduce.call(E.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=E.calendarContainer.offsetWidth,r=E.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u=o==="above"||o!=="below"&&l<n&&s.top>n;var c=window.pageYOffset+s.top+(!u?t.offsetHeight+2:-n-2);Ne(E.calendarContainer,"arrowTop",!u);Ne(E.calendarContainer,"arrowBottom",u);if(E.config.inline)return;var f=window.pageXOffset+s.left;var d=false;var p=false;if(a==="center"){f-=(i-s.width)/2;d=true}else if(a==="right"){f-=i-s.width;p=true}Ne(E.calendarContainer,"arrowLeft",!d&&!p);Ne(E.calendarContainer,"arrowCenter",d);Ne(E.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right);var m=f+i>window.document.body.offsetWidth;var g=h+i>window.document.body.offsetWidth;Ne(E.calendarContainer,"rightMost",m);if(E.config.static)return;E.calendarContainer.style.top=c+"px";if(!m){E.calendarContainer.style.left=f+"px";E.calendarContainer.style.right="auto"}else if(!g){E.calendarContainer.style.left="auto";E.calendarContainer.style.right=h+"px"}else{var v=te();if(v===undefined)return;var y=window.document.body.offsetWidth;var b=Math.max(0,y/2-i/2);var w=".flatpickr-calendar.centerMost:before";var _=".flatpickr-calendar.centerMost:after";var C=v.cssRules.length;var x="{left:"+s.left+"px;right:auto;}";Ne(E.calendarContainer,"rightMost",false);Ne(E.calendarContainer,"centerMost",true);v.insertRule(w+","+_+x,C);E.calendarContainer.style.left=b+"px";E.calendarContainer.style.right="auto"}}function te(){var e=null;for(var t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return e!=null?e:ne()}function ne(){var e=document.createElement("style");document.head.appendChild(e);return e.sheet}function ie(){if(E.config.noCalendar||E.isMobile)return;k();be();S()}function re(){E._input.focus();if(window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==undefined){setTimeout(E.close,0)}else{E.close()}}function oe(e){e.preventDefault();e.stopPropagation();var t=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")};var n=Pe(He(e),t);if(n===undefined)return;var i=n;var r=E.latestSelectedDateObj=new Date(i.dateObj.getTime());var o=(r.getMonth()<E.currentMonth||r.getMonth()>E.currentMonth+E.config.showMonths-1)&&E.config.mode!=="range";E.selectedDateElem=i;if(E.config.mode==="single")E.selectedDates=[r];else if(E.config.mode==="multiple"){var a=ve(r);if(a)E.selectedDates.splice(parseInt(a),1);else E.selectedDates.push(r)}else if(E.config.mode==="range"){if(E.selectedDates.length===2){E.clear(false,false)}E.latestSelectedDateObj=r;E.selectedDates.push(r);if(We(r,E.selectedDates[0],true)!==0)E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}h();if(o){var s=E.currentYear!==r.getFullYear();E.currentYear=r.getFullYear();E.currentMonth=r.getMonth();if(s){me("onYearChange");k()}me("onMonthChange")}be();S();_e();if(!o&&E.config.mode!=="range"&&E.config.showMonths===1)_(i);else if(E.selectedDateElem!==undefined&&E.hourElement===undefined){E.selectedDateElem&&E.selectedDateElem.focus()}if(E.hourElement!==undefined)E.hourElement!==undefined&&E.hourElement.focus();if(E.config.closeOnSelect){var l=E.config.mode==="single"&&!E.config.enableTime;var u=E.config.mode==="range"&&E.selectedDates.length===2&&!E.config.enableTime;if(l||u){re()}}m()}var ae={locale:[Z,j],showMonths:[O,n,N],minDate:[g],maxDate:[g],clickOpens:[function(){if(E.config.clickOpens===true){a(E._input,"focus",E.open);a(E._input,"click",E.open)}else{E._input.removeEventListener("focus",E.open);E._input.removeEventListener("click",E.open)}}]};function se(e,t){if(e!==null&&typeof e==="object"){Object.assign(E.config,e);for(var n in e){if(ae[n]!==undefined)ae[n].forEach(function(e){return e()})}}else{E.config[e]=t;if(ae[e]!==undefined)ae[e].forEach(function(e){return e()});else if(De.indexOf(e)>-1)E.config[e]=Me(t)}E.redraw();_e(true)}function le(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return E.parseDate(e,t)});else if(e instanceof Date||typeof e==="number")n=[E.parseDate(e,t)];else if(typeof e==="string"){switch(E.config.mode){case"single":case"time":n=[E.parseDate(e,t)];break;case"multiple":n=e.split(E.config.conjunction).map(function(e){return E.parseDate(e,t)});break;case"range":n=e.split(E.l10n.rangeSeparator).map(function(e){return E.parseDate(e,t)});break}}else E.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));E.selectedDates=E.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&W(e,false)});if(E.config.mode==="range")E.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ue(e,t,n){if(t===void 0){t=false}if(n===void 0){n=E.config.dateFormat}if(e!==0&&!e||e instanceof Array&&e.length===0)return E.clear(t);le(e,n);E.latestSelectedDateObj=E.selectedDates[E.selectedDates.length-1];E.redraw();g(undefined,t);r();if(E.selectedDates.length===0){E.clear(false)}_e(t);if(t)me("onChange")}function ce(e){return e.slice().map(function(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){return E.parseDate(e,undefined,true)}else if(e&&typeof e==="object"&&e.from&&e.to)return{from:E.parseDate(e.from,undefined),to:E.parseDate(e.to,undefined)};return e}).filter(function(e){return e})}function fe(){E.selectedDates=[];E.now=E.parseDate(E.config.now)||new Date;var e=E.config.defaultDate||((E.input.nodeName==="INPUT"||E.input.nodeName==="TEXTAREA")&&E.input.placeholder&&E.input.value===E.input.placeholder?null:E.input.value);if(e)le(e,E.config.dateFormat);E._initialDate=E.selectedDates.length>0?E.selectedDates[0]:E.config.minDate&&E.config.minDate.getTime()>E.now.getTime()?E.config.minDate:E.config.maxDate&&E.config.maxDate.getTime()<E.now.getTime()?E.config.maxDate:E.now;E.currentYear=E._initialDate.getFullYear();E.currentMonth=E._initialDate.getMonth();if(E.selectedDates.length>0)E.latestSelectedDateObj=E.selectedDates[0];if(E.config.minTime!==undefined)E.config.minTime=E.parseDate(E.config.minTime,"H:i");if(E.config.maxTime!==undefined)E.config.maxTime=E.parseDate(E.config.maxTime,"H:i");E.minDateHasTime=!!E.config.minDate&&(E.config.minDate.getHours()>0||E.config.minDate.getMinutes()>0||E.config.minDate.getSeconds()>0);E.maxDateHasTime=!!E.config.maxDate&&(E.config.maxDate.getHours()>0||E.config.maxDate.getMinutes()>0||E.config.maxDate.getSeconds()>0)}function de(){E.input=J();if(!E.input){E.config.errorHandler(new Error("Invalid input element specified"));return}E.input._type=E.input.type;E.input.type="text";E.input.classList.add("flatpickr-input");E._input=E.input;if(E.config.altInput){E.altInput=je(E.input.nodeName,E.config.altInputClass);E._input=E.altInput;E.altInput.placeholder=E.input.placeholder;E.altInput.disabled=E.input.disabled;E.altInput.required=E.input.required;E.altInput.tabIndex=E.input.tabIndex;E.altInput.type="text";E.input.setAttribute("type","hidden");if(!E.config.static&&E.input.parentNode)E.input.parentNode.insertBefore(E.altInput,E.input.nextSibling)}if(!E.config.allowInput)E._input.setAttribute("readonly","readonly");E._positionElement=E.config.positionElement||E._input}function pe(){var e=E.config.enableTime?E.config.noCalendar?"time":"datetime-local":"date";E.mobileInput=je("input",E.input.className+" flatpickr-mobile");E.mobileInput.tabIndex=1;E.mobileInput.type=e;E.mobileInput.disabled=E.input.disabled;E.mobileInput.required=E.input.required;E.mobileInput.placeholder=E.input.placeholder;E.mobileFormatStr=e==="datetime-local"?"Y-m-d\\TH:i:S":e==="date"?"Y-m-d":"H:i:S";if(E.selectedDates.length>0){E.mobileInput.defaultValue=E.mobileInput.value=E.formatDate(E.selectedDates[0],E.mobileFormatStr)}if(E.config.minDate)E.mobileInput.min=E.formatDate(E.config.minDate,"Y-m-d");if(E.config.maxDate)E.mobileInput.max=E.formatDate(E.config.maxDate,"Y-m-d");if(E.input.getAttribute("step"))E.mobileInput.step=String(E.input.getAttribute("step"));E.input.type="hidden";if(E.altInput!==undefined)E.altInput.type="hidden";try{if(E.input.parentNode)E.input.parentNode.insertBefore(E.mobileInput,E.input.nextSibling)}catch(e){}a(E.mobileInput,"change",function(e){E.setDate(He(e).value,false,E.mobileFormatStr);me("onChange");me("onClose")})}function he(e){if(E.isOpen===true)return E.close();E.open(e)}function me(e,t){if(E.config===undefined)return;var n=E.config[e];if(n!==undefined&&n.length>0){for(var i=0;n[i]&&i<n.length;i++)n[i](E.selectedDates,E.input.value,E,t)}if(e==="onChange"){E.input.dispatchEvent(ge("change"));E.input.dispatchEvent(ge("input"))}}function ge(e){var t=document.createEvent("Event");t.initEvent(e,true,true);return t}function ve(e){for(var t=0;t<E.selectedDates.length;t++){if(We(E.selectedDates[t],e)===0)return""+t}return false}function ye(e){if(E.config.mode!=="range"||E.selectedDates.length<2)return false;return We(e,E.selectedDates[0])>=0&&We(e,E.selectedDates[1])<=0}function be(){if(E.config.noCalendar||E.isMobile||!E.monthNav)return;E.yearElements.forEach(function(e,t){var n=new Date(E.currentYear,E.currentMonth,1);n.setMonth(E.currentMonth+t);if(E.config.showMonths>1||E.config.monthSelectorType==="static"){E.monthElements[t].textContent=Fe(n.getMonth(),E.config.shorthandCurrentMonth,E.l10n)+" "}else{E.monthsDropdownContainer.value=n.getMonth().toString()}e.value=n.getFullYear().toString()});E._hidePrevMonthArrow=E.config.minDate!==undefined&&(E.currentYear===E.config.minDate.getFullYear()?E.currentMonth<=E.config.minDate.getMonth():E.currentYear<E.config.minDate.getFullYear());E._hideNextMonthArrow=E.config.maxDate!==undefined&&(E.currentYear===E.config.maxDate.getFullYear()?E.currentMonth+1>E.config.maxDate.getMonth():E.currentYear>E.config.maxDate.getFullYear())}function we(t){return E.selectedDates.map(function(e){return E.formatDate(e,t)}).filter(function(e,t,n){return E.config.mode!=="range"||E.config.enableTime||n.indexOf(e)===t}).join(E.config.mode!=="range"?E.config.conjunction:E.l10n.rangeSeparator)}function _e(e){if(e===void 0){e=true}if(E.mobileInput!==undefined&&E.mobileFormatStr){E.mobileInput.value=E.latestSelectedDateObj!==undefined?E.formatDate(E.latestSelectedDateObj,E.mobileFormatStr):""}E.input.value=we(E.config.dateFormat);if(E.altInput!==undefined){E.altInput.value=we(E.config.altFormat)}if(e!==false)me("onValueUpdate")}function Ce(e){var t=He(e);var n=E.prevMonthNav.contains(t);var i=E.nextMonthNav.contains(t);if(n||i){P(n?-1:1)}else if(E.yearElements.indexOf(t)>=0){t.select()}else if(t.classList.contains("arrowUp")){E.changeYear(E.currentYear+1)}else if(t.classList.contains("arrowDown")){E.changeYear(E.currentYear-1)}}function xe(e){e.preventDefault();var t=e.type==="keydown",n=He(e),i=n;if(E.amPM!==undefined&&n===E.amPM){E.amPM.textContent=E.l10n.amPM[Oe(E.amPM.textContent===E.l10n.amPM[0])]}var r=parseFloat(i.getAttribute("min")),o=parseFloat(i.getAttribute("max")),a=parseFloat(i.getAttribute("step")),s=parseInt(i.value,10),l=e.delta||(t?e.which===38?1:-1:0);var u=s+a*l;if(typeof i.value!=="undefined"&&i.value.length===2){var c=i===E.hourElement,f=i===E.minuteElement;if(u<r){u=o+u+Oe(!c)+(Oe(c)&&Oe(!E.amPM));if(f)y(undefined,-1,E.hourElement)}else if(u>o){u=i===E.hourElement?u-o-Oe(!E.amPM):r;if(f)y(undefined,1,E.hourElement)}if(E.amPM&&c&&(a===1?u+s===23:Math.abs(u-s)>a)){E.amPM.textContent=E.l10n.amPM[Oe(E.amPM.textContent===E.l10n.amPM[0])]}i.value=Ae(u)}}e();return E}function n(e,t){var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement});var i=[];for(var r=0;r<n.length;r++){var o=n[r];try{if(o.getAttribute("data-fp-omit")!==null)continue;if(o._flatpickr!==undefined){o._flatpickr.destroy();o._flatpickr=undefined}o._flatpickr=a(o,t||{});i.push(o._flatpickr)}catch(e){console.error(e)}}return i.length===1?i[0]:i}if(typeof HTMLElement!=="undefined"&&typeof HTMLCollection!=="undefined"&&typeof NodeList!=="undefined"){HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)};HTMLElement.prototype.flatpickr=function(e){return n([this],e)}}var Ge=function(e,t){if(typeof e==="string"){return n(window.document.querySelectorAll(e),t)}else if(e instanceof Node){return n([e],t)}else{return n(e,t)}};if(Ge.defaultConfig={},Ge.l10ns={en:Ee({},ke),default:Ee({},ke)},Ge.localize=function(e){Ge.l10ns.default=Ee(Ee({},Ge.l10ns.default),e)},Ge.setDefaults=function(e){Ge.defaultConfig=Ee(Ee({},Ge.defaultConfig),e)},Ge.parseDate=Be({}),Ge.formatDate=Re({}),Ge.compareDates=We,typeof jQuery!=="undefined"&&typeof jQuery.fn!=="undefined"){jQuery.fn.flatpickr=function(e){return n(this,e)}}if(Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e==="string"?parseInt(e,10):e))},typeof window!=="undefined"){window.flatpickr=Ge}return Ge}()},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
/*!
- * Bootstrap v4.5.3 (https://getbootstrap.com/)
- * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
+ * Bootstrap v4.6.0 (https://getbootstrap.com/)
+ * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
-!function(e,t,n){"use strict";function i(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var g=i(t),d=i(n);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function o(e,t,n){if(t)r(e.prototype,t);if(n)r(e,n);return e}function s(){s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};return s.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var l="transitionend",u=1e6,c=1e3;function f(e){if(e===null||typeof e==="undefined"){return""+e}return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function p(){return{bindType:l,delegateType:l,handle:function e(t){if(g["default"](t.target).is(this)){return t.handleObj.handler.apply(this,arguments)}return undefined}}}function h(e){var t=this;var n=false;g["default"](this).one(v.TRANSITION_END,function(){n=true});setTimeout(function(){if(!n){v.triggerTransitionEnd(t)}},e);return this}function m(){g["default"].fn.emulateTransitionEnd=h;g["default"].event.special[v.TRANSITION_END]=p()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function e(t){do{t+=~~(Math.random()*u)}while(document.getElementById(t));return t},getSelectorFromElement:function e(t){var n=t.getAttribute("data-target");if(!n||n==="#"){var i=t.getAttribute("href");n=i&&i!=="#"?i.trim():""}try{return document.querySelector(n)?n:null}catch(e){return null}},getTransitionDurationFromElement:function e(t){if(!t){return 0}var n=g["default"](t).css("transition-duration");var i=g["default"](t).css("transition-delay");var r=parseFloat(n);var o=parseFloat(i);if(!r&&!o){return 0}n=n.split(",")[0];i=i.split(",")[0];return(parseFloat(n)+parseFloat(i))*c},reflow:function e(t){return t.offsetHeight},triggerTransitionEnd:function e(t){g["default"](t).trigger(l)},supportsTransitionEnd:function e(){return Boolean(l)},isElement:function e(t){return(t[0]||t).nodeType},typeCheckConfig:function e(t,n,i){for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){var o=i[r];var a=n[r];var s=a&&v.isElement(a)?"element":f(a);if(!new RegExp(o).test(s)){throw new Error(t.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'))}}}},findShadowRoot:function e(t){if(!document.documentElement.attachShadow){return null}if(typeof t.getRootNode==="function"){var n=t.getRootNode();return n instanceof ShadowRoot?n:null}if(t instanceof ShadowRoot){return t}if(!t.parentNode){return null}return v.findShadowRoot(t.parentNode)},jQueryDetection:function e(){if(typeof g["default"]==="undefined"){throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.")}var t=g["default"].fn.jquery.split(" ")[0].split(".");var n=1;var i=2;var r=9;var o=1;var a=4;if(t[0]<i&&t[1]<r||t[0]===n&&t[1]===r&&t[2]<o||t[0]>=a){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}}};v.jQueryDetection(),m();var y="alert",b="4.5.3",w="bs.alert",_="."+w,C=".data-api",x=g["default"].fn[y],E='[data-dismiss="alert"]',T="close"+_,D="closed"+_,S="click"+_+C,k="alert",A="fade",O="show",I=function(){function i(e){this._element=e}var e=i.prototype;e.close=function e(t){var n=this._element;if(t){n=this._getRootElement(t)}var i=this._triggerCloseEvent(n);if(i.isDefaultPrevented()){return}this._removeElement(n)};e.dispose=function e(){g["default"].removeData(this._element,w);this._element=null};e._getRootElement=function e(t){var n=v.getSelectorFromElement(t);var i=false;if(n){i=document.querySelector(n)}if(!i){i=g["default"](t).closest("."+k)[0]}return i};e._triggerCloseEvent=function e(t){var n=g["default"].Event(T);g["default"](t).trigger(n);return n};e._removeElement=function e(t){var n=this;g["default"](t).removeClass(O);if(!g["default"](t).hasClass(A)){this._destroyElement(t);return}var i=v.getTransitionDurationFromElement(t);g["default"](t).one(v.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(i)};e._destroyElement=function e(t){g["default"](t).detach().trigger(D).remove()};i._jQueryInterface=function e(n){return this.each(function(){var e=g["default"](this);var t=e.data(w);if(!t){t=new i(this);e.data(w,t)}if(n==="close"){t[n](this)}})};i._handleDismiss=function e(t){return function(e){if(e){e.preventDefault()}t.close(this)}};o(i,null,[{key:"VERSION",get:function e(){return b}}]);return i}();g["default"](document).on(S,E,I._handleDismiss(new I)),g["default"].fn[y]=I._jQueryInterface,g["default"].fn[y].Constructor=I,g["default"].fn[y].noConflict=function(){g["default"].fn[y]=x;return I._jQueryInterface};var M="button",N="4.5.3",j="bs.button",L="."+j,P=".data-api",$=g["default"].fn[M],H="active",F="btn",q="focus",R='[data-toggle^="button"]',B='[data-toggle="buttons"]',W='[data-toggle="button"]',U='[data-toggle="buttons"] .btn',z='input:not([type="hidden"])',Y=".active",K=".btn",G="click"+L+P,Q="focus"+L+P+" "+("blur"+L+P),X="load"+L+P,V=function(){function r(e){this._element=e;this.shouldAvoidTriggerChange=false}var e=r.prototype;e.toggle=function e(){var t=true;var n=true;var i=g["default"](this._element).closest(B)[0];if(i){var r=this._element.querySelector(z);if(r){if(r.type==="radio"){if(r.checked&&this._element.classList.contains(H)){t=false}else{var o=i.querySelector(Y);if(o){g["default"](o).removeClass(H)}}}if(t){if(r.type==="checkbox"||r.type==="radio"){r.checked=!this._element.classList.contains(H)}if(!this.shouldAvoidTriggerChange){g["default"](r).trigger("change")}}r.focus();n=false}}if(!(this._element.hasAttribute("disabled")||this._element.classList.contains("disabled"))){if(n){this._element.setAttribute("aria-pressed",!this._element.classList.contains(H))}if(t){g["default"](this._element).toggleClass(H)}}};e.dispose=function e(){g["default"].removeData(this._element,j);this._element=null};r._jQueryInterface=function e(n,i){return this.each(function(){var e=g["default"](this);var t=e.data(j);if(!t){t=new r(this);e.data(j,t)}t.shouldAvoidTriggerChange=i;if(n==="toggle"){t[n]()}})};o(r,null,[{key:"VERSION",get:function e(){return N}}]);return r}();g["default"](document).on(G,R,function(e){var t=e.target;var n=t;if(!g["default"](t).hasClass(F)){t=g["default"](t).closest(K)[0]}if(!t||t.hasAttribute("disabled")||t.classList.contains("disabled")){e.preventDefault()}else{var i=t.querySelector(z);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled"))){e.preventDefault();return}if(n.tagName==="INPUT"||t.tagName!=="LABEL"){V._jQueryInterface.call(g["default"](t),"toggle",n.tagName==="INPUT")}}}).on(Q,R,function(e){var t=g["default"](e.target).closest(K)[0];g["default"](t).toggleClass(q,/^focus(in)?$/.test(e.type))}),g["default"](window).on(X,function(){var e=[].slice.call(document.querySelectorAll(U));for(var t=0,n=e.length;t<n;t++){var i=e[t];var r=i.querySelector(z);if(r.checked||r.hasAttribute("checked")){i.classList.add(H)}else{i.classList.remove(H)}}e=[].slice.call(document.querySelectorAll(W));for(var o=0,a=e.length;o<a;o++){var s=e[o];if(s.getAttribute("aria-pressed")==="true"){s.classList.add(H)}else{s.classList.remove(H)}}}),g["default"].fn[M]=V._jQueryInterface,g["default"].fn[M].Constructor=V,g["default"].fn[M].noConflict=function(){g["default"].fn[M]=$;return V._jQueryInterface};var J="carousel",Z="4.5.3",ee="bs.carousel",te="."+ee,ne=".data-api",ie=g["default"].fn[J],re=37,oe=39,ae=500,se=40,le={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true,touch:true},ue={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ce="next",fe="prev",de="left",pe="right",he="slide"+te,me="slid"+te,ge="keydown"+te,ve="mouseenter"+te,ye="mouseleave"+te,be="touchstart"+te,we="touchmove"+te,_e="touchend"+te,Ce="pointerdown"+te,xe="pointerup"+te,Ee="dragstart"+te,Te="load"+te+ne,De="click"+te+ne,Se="carousel",ke="active",Ae="slide",Oe="carousel-item-right",Ie="carousel-item-left",Me="carousel-item-next",Ne="carousel-item-prev",je="pointer-event",Le=".active",Pe=".active.carousel-item",$e=".carousel-item",He=".carousel-item img",Fe=".carousel-item-next, .carousel-item-prev",qe=".carousel-indicators",Re="[data-slide], [data-slide-to]",Be='[data-ride="carousel"]',We={TOUCH:"touch",PEN:"pen"},Ue=function(){function a(e,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=false;this._isSliding=false;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=e;this._indicatorsElement=this._element.querySelector(qe);this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var e=a.prototype;e.next=function e(){if(!this._isSliding){this._slide(ce)}};e.nextWhenVisible=function e(){var t=g["default"](this._element);if(!document.hidden&&t.is(":visible")&&t.css("visibility")!=="hidden"){this.next()}};e.prev=function e(){if(!this._isSliding){this._slide(fe)}};e.pause=function e(t){if(!t){this._isPaused=true}if(this._element.querySelector(Fe)){v.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};e.cycle=function e(t){if(!t){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};e.to=function e(t){var n=this;this._activeElement=this._element.querySelector(Pe);var i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0){return}if(this._isSliding){g["default"](this._element).one(me,function(){return n.to(t)});return}if(i===t){this.pause();this.cycle();return}var r=t>i?ce:fe;this._slide(r,this._items[t])};e.dispose=function e(){g["default"](this._element).off(te);g["default"].removeData(this._element,ee);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};e._getConfig=function e(t){t=s({},le,t);v.typeCheckConfig(J,t,ue);return t};e._handleSwipe=function e(){var t=Math.abs(this.touchDeltaX);if(t<=se){return}var n=t/this.touchDeltaX;this.touchDeltaX=0;if(n>0){this.prev()}if(n<0){this.next()}};e._addEventListeners=function e(){var t=this;if(this._config.keyboard){g["default"](this._element).on(ge,function(e){return t._keydown(e)})}if(this._config.pause==="hover"){g["default"](this._element).on(ve,function(e){return t.pause(e)}).on(ye,function(e){return t.cycle(e)})}if(this._config.touch){this._addTouchEventListeners()}};e._addTouchEventListeners=function e(){var n=this;if(!this._touchSupported){return}var t=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchStartX=t.originalEvent.clientX}else if(!n._pointerEvent){n.touchStartX=t.originalEvent.touches[0].clientX}};var i=function e(t){if(t.originalEvent.touches&&t.originalEvent.touches.length>1){n.touchDeltaX=0}else{n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}};var r=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchDeltaX=t.originalEvent.clientX-n.touchStartX}n._handleSwipe();if(n._config.pause==="hover"){n.pause();if(n.touchTimeout){clearTimeout(n.touchTimeout)}n.touchTimeout=setTimeout(function(e){return n.cycle(e)},ae+n._config.interval)}};g["default"](this._element.querySelectorAll(He)).on(Ee,function(e){return e.preventDefault()});if(this._pointerEvent){g["default"](this._element).on(Ce,function(e){return t(e)});g["default"](this._element).on(xe,function(e){return r(e)});this._element.classList.add(je)}else{g["default"](this._element).on(be,function(e){return t(e)});g["default"](this._element).on(we,function(e){return i(e)});g["default"](this._element).on(_e,function(e){return r(e)})}};e._keydown=function e(t){if(/input|textarea/i.test(t.target.tagName)){return}switch(t.which){case re:t.preventDefault();this.prev();break;case oe:t.preventDefault();this.next();break}};e._getItemIndex=function e(t){this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll($e)):[];return this._items.indexOf(t)};e._getItemByDirection=function e(t,n){var i=t===ce;var r=t===fe;var o=this._getItemIndex(n);var a=this._items.length-1;var s=r&&o===0||i&&o===a;if(s&&!this._config.wrap){return n}var l=t===fe?-1:1;var u=(o+l)%this._items.length;return u===-1?this._items[this._items.length-1]:this._items[u]};e._triggerSlideEvent=function e(t,n){var i=this._getItemIndex(t);var r=this._getItemIndex(this._element.querySelector(Pe));var o=g["default"].Event(he,{relatedTarget:t,direction:n,from:r,to:i});g["default"](this._element).trigger(o);return o};e._setActiveIndicatorElement=function e(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Le));g["default"](n).removeClass(ke);var i=this._indicatorsElement.children[this._getItemIndex(t)];if(i){g["default"](i).addClass(ke)}}};e._slide=function e(t,n){var i=this;var r=this._element.querySelector(Pe);var o=this._getItemIndex(r);var a=n||r&&this._getItemByDirection(t,r);var s=this._getItemIndex(a);var l=Boolean(this._interval);var u;var c;var f;if(t===ce){u=Ie;c=Me;f=de}else{u=Oe;c=Ne;f=pe}if(a&&g["default"](a).hasClass(ke)){this._isSliding=false;return}var d=this._triggerSlideEvent(a,f);if(d.isDefaultPrevented()){return}if(!r||!a){return}this._isSliding=true;if(l){this.pause()}this._setActiveIndicatorElement(a);var p=g["default"].Event(me,{relatedTarget:a,direction:f,from:o,to:s});if(g["default"](this._element).hasClass(Ae)){g["default"](a).addClass(c);v.reflow(a);g["default"](r).addClass(u);g["default"](a).addClass(u);var h=parseInt(a.getAttribute("data-interval"),10);if(h){this._config.defaultInterval=this._config.defaultInterval||this._config.interval;this._config.interval=h}else{this._config.interval=this._config.defaultInterval||this._config.interval}var m=v.getTransitionDurationFromElement(r);g["default"](r).one(v.TRANSITION_END,function(){g["default"](a).removeClass(u+" "+c).addClass(ke);g["default"](r).removeClass(ke+" "+c+" "+u);i._isSliding=false;setTimeout(function(){return g["default"](i._element).trigger(p)},0)}).emulateTransitionEnd(m)}else{g["default"](r).removeClass(ke);g["default"](a).addClass(ke);this._isSliding=false;g["default"](this._element).trigger(p)}if(l){this.cycle()}};a._jQueryInterface=function e(i){return this.each(function(){var e=g["default"](this).data(ee);var t=s({},le,g["default"](this).data());if(typeof i==="object"){t=s({},t,i)}var n=typeof i==="string"?i:t.slide;if(!e){e=new a(this,t);g["default"](this).data(ee,e)}if(typeof i==="number"){e.to(i)}else if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}else if(t.interval&&t.ride){e.pause();e.cycle()}})};a._dataApiClickHandler=function e(t){var n=v.getSelectorFromElement(this);if(!n){return}var i=g["default"](n)[0];if(!i||!g["default"](i).hasClass(Se)){return}var r=s({},g["default"](i).data(),g["default"](this).data());var o=this.getAttribute("data-slide-to");if(o){r.interval=false}a._jQueryInterface.call(g["default"](i),r);if(o){g["default"](i).data(ee).to(o)}t.preventDefault()};o(a,null,[{key:"VERSION",get:function e(){return Z}},{key:"Default",get:function e(){return le}}]);return a}();g["default"](document).on(De,Re,Ue._dataApiClickHandler),g["default"](window).on(Te,function(){var e=[].slice.call(document.querySelectorAll(Be));for(var t=0,n=e.length;t<n;t++){var i=g["default"](e[t]);Ue._jQueryInterface.call(i,i.data())}}),g["default"].fn[J]=Ue._jQueryInterface,g["default"].fn[J].Constructor=Ue,g["default"].fn[J].noConflict=function(){g["default"].fn[J]=ie;return Ue._jQueryInterface};var ze="collapse",Ye="4.5.3",Ke="bs.collapse",Ge="."+Ke,Qe=".data-api",Xe=g["default"].fn[ze],Ve={toggle:true,parent:""},Je={toggle:"boolean",parent:"(string|element)"},Ze="show"+Ge,et="shown"+Ge,tt="hide"+Ge,nt="hidden"+Ge,it="click"+Ge+Qe,rt="show",ot="collapse",at="collapsing",st="collapsed",lt="width",ut="height",ct=".show, .collapsing",ft='[data-toggle="collapse"]',dt=function(){function c(t,e){this._isTransitioning=false;this._element=t;this._config=this._getConfig(e);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]')));var n=[].slice.call(document.querySelectorAll(ft));for(var i=0,r=n.length;i<r;i++){var o=n[i];var a=v.getSelectorFromElement(o);var s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});if(a!==null&&s.length>0){this._selector=a;this._triggerArray.push(o)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var e=c.prototype;e.toggle=function e(){if(g["default"](this._element).hasClass(rt)){this.hide()}else{this.show()}};e.show=function e(){var t=this;if(this._isTransitioning||g["default"](this._element).hasClass(rt)){return}var n;var i;if(this._parent){n=[].slice.call(this._parent.querySelectorAll(ct)).filter(function(e){if(typeof t._config.parent==="string"){return e.getAttribute("data-parent")===t._config.parent}return e.classList.contains(ot)});if(n.length===0){n=null}}if(n){i=g["default"](n).not(this._selector).data(Ke);if(i&&i._isTransitioning){return}}var r=g["default"].Event(Ze);g["default"](this._element).trigger(r);if(r.isDefaultPrevented()){return}if(n){c._jQueryInterface.call(g["default"](n).not(this._selector),"hide");if(!i){g["default"](n).data(Ke,null)}}var o=this._getDimension();g["default"](this._element).removeClass(ot).addClass(at);this._element.style[o]=0;if(this._triggerArray.length){g["default"](this._triggerArray).removeClass(st).attr("aria-expanded",true)}this.setTransitioning(true);var a=function e(){g["default"](t._element).removeClass(at).addClass(ot+" "+rt);t._element.style[o]="";t.setTransitioning(false);g["default"](t._element).trigger(et)};var s=o[0].toUpperCase()+o.slice(1);var l="scroll"+s;var u=v.getTransitionDurationFromElement(this._element);g["default"](this._element).one(v.TRANSITION_END,a).emulateTransitionEnd(u);this._element.style[o]=this._element[l]+"px"};e.hide=function e(){var t=this;if(this._isTransitioning||!g["default"](this._element).hasClass(rt)){return}var n=g["default"].Event(tt);g["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px";v.reflow(this._element);g["default"](this._element).addClass(at).removeClass(ot+" "+rt);var r=this._triggerArray.length;if(r>0){for(var o=0;o<r;o++){var a=this._triggerArray[o];var s=v.getSelectorFromElement(a);if(s!==null){var l=g["default"]([].slice.call(document.querySelectorAll(s)));if(!l.hasClass(rt)){g["default"](a).addClass(st).attr("aria-expanded",false)}}}}this.setTransitioning(true);var u=function e(){t.setTransitioning(false);g["default"](t._element).removeClass(at).addClass(ot).trigger(nt)};this._element.style[i]="";var c=v.getTransitionDurationFromElement(this._element);g["default"](this._element).one(v.TRANSITION_END,u).emulateTransitionEnd(c)};e.setTransitioning=function e(t){this._isTransitioning=t};e.dispose=function e(){g["default"].removeData(this._element,Ke);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null};e._getConfig=function e(t){t=s({},Ve,t);t.toggle=Boolean(t.toggle);v.typeCheckConfig(ze,t,Je);return t};e._getDimension=function e(){var t=g["default"](this._element).hasClass(lt);return t?lt:ut};e._getParent=function e(){var n=this;var t;if(v.isElement(this._config.parent)){t=this._config.parent;if(typeof this._config.parent.jquery!=="undefined"){t=this._config.parent[0]}}else{t=document.querySelector(this._config.parent)}var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';var r=[].slice.call(t.querySelectorAll(i));g["default"](r).each(function(e,t){n._addAriaAndCollapsedClass(c._getTargetFromElement(t),[t])});return t};e._addAriaAndCollapsedClass=function e(t,n){var i=g["default"](t).hasClass(rt);if(n.length){g["default"](n).toggleClass(st,!i).attr("aria-expanded",i)}};c._getTargetFromElement=function e(t){var n=v.getSelectorFromElement(t);return n?document.querySelector(n):null};c._jQueryInterface=function e(i){return this.each(function(){var e=g["default"](this);var t=e.data(Ke);var n=s({},Ve,e.data(),typeof i==="object"&&i?i:{});if(!t&&n.toggle&&typeof i==="string"&&/show|hide/.test(i)){n.toggle=false}if(!t){t=new c(this,n);e.data(Ke,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i]()}})};o(c,null,[{key:"VERSION",get:function e(){return Ye}},{key:"Default",get:function e(){return Ve}}]);return c}();g["default"](document).on(it,ft,function(e){if(e.currentTarget.tagName==="A"){e.preventDefault()}var i=g["default"](this);var t=v.getSelectorFromElement(this);var n=[].slice.call(document.querySelectorAll(t));g["default"](n).each(function(){var e=g["default"](this);var t=e.data(Ke);var n=t?"toggle":i.data();dt._jQueryInterface.call(e,n)})}),g["default"].fn[ze]=dt._jQueryInterface,g["default"].fn[ze].Constructor=dt,g["default"].fn[ze].noConflict=function(){g["default"].fn[ze]=Xe;return dt._jQueryInterface};var pt="dropdown",ht="4.5.3",mt="bs.dropdown",gt="."+mt,vt=".data-api",yt=g["default"].fn[pt],bt=27,wt=32,_t=9,Ct=38,xt=40,Et=3,Tt=new RegExp(Ct+"|"+xt+"|"+bt),Dt="hide"+gt,St="hidden"+gt,kt="show"+gt,At="shown"+gt,Ot="click"+gt,It="click"+gt+vt,Mt="keydown"+gt+vt,Nt="keyup"+gt+vt,jt="disabled",Lt="show",Pt="dropup",$t="dropright",Ht="dropleft",Ft="dropdown-menu-right",qt="position-static",Rt='[data-toggle="dropdown"]',Bt=".dropdown form",Wt=".dropdown-menu",Ut=".navbar-nav",zt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Yt="top-start",Kt="top-end",Gt="bottom-start",Qt="bottom-end",Xt="right-start",Vt="left-start",Jt={offset:0,flip:true,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function c(e,t){this._element=e;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var e=c.prototype;e.toggle=function e(){if(this._element.disabled||g["default"](this._element).hasClass(jt)){return}var t=g["default"](this._menu).hasClass(Lt);c._clearMenus();if(t){return}this.show(true)};e.show=function e(t){if(t===void 0){t=false}if(this._element.disabled||g["default"](this._element).hasClass(jt)||g["default"](this._menu).hasClass(Lt)){return}var n={relatedTarget:this._element};var i=g["default"].Event(kt,n);var r=c._getParentFromElement(this._element);g["default"](r).trigger(i);if(i.isDefaultPrevented()){return}if(!this._inNavbar&&t){if(typeof d["default"]==="undefined"){throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)")}var o=this._element;if(this._config.reference==="parent"){o=r}else if(v.isElement(this._config.reference)){o=this._config.reference;if(typeof this._config.reference.jquery!=="undefined"){o=this._config.reference[0]}}if(this._config.boundary!=="scrollParent"){g["default"](r).addClass(qt)}this._popper=new d["default"](o,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&g["default"](r).closest(Ut).length===0){g["default"](document.body).children().on("mouseover",null,g["default"].noop)}this._element.focus();this._element.setAttribute("aria-expanded",true);g["default"](this._menu).toggleClass(Lt);g["default"](r).toggleClass(Lt).trigger(g["default"].Event(At,n))};e.hide=function e(){if(this._element.disabled||g["default"](this._element).hasClass(jt)||!g["default"](this._menu).hasClass(Lt)){return}var t={relatedTarget:this._element};var n=g["default"].Event(Dt,t);var i=c._getParentFromElement(this._element);g["default"](i).trigger(n);if(n.isDefaultPrevented()){return}if(this._popper){this._popper.destroy()}g["default"](this._menu).toggleClass(Lt);g["default"](i).toggleClass(Lt).trigger(g["default"].Event(St,t))};e.dispose=function e(){g["default"].removeData(this._element,mt);g["default"](this._element).off(gt);this._element=null;this._menu=null;if(this._popper!==null){this._popper.destroy();this._popper=null}};e.update=function e(){this._inNavbar=this._detectNavbar();if(this._popper!==null){this._popper.scheduleUpdate()}};e._addEventListeners=function e(){var t=this;g["default"](this._element).on(Ot,function(e){e.preventDefault();e.stopPropagation();t.toggle()})};e._getConfig=function e(t){t=s({},this.constructor.Default,g["default"](this._element).data(),t);v.typeCheckConfig(pt,t,this.constructor.DefaultType);return t};e._getMenuElement=function e(){if(!this._menu){var t=c._getParentFromElement(this._element);if(t){this._menu=t.querySelector(Wt)}}return this._menu};e._getPlacement=function e(){var t=g["default"](this._element.parentNode);var n=Gt;if(t.hasClass(Pt)){n=g["default"](this._menu).hasClass(Ft)?Kt:Yt}else if(t.hasClass($t)){n=Xt}else if(t.hasClass(Ht)){n=Vt}else if(g["default"](this._menu).hasClass(Ft)){n=Qt}return n};e._detectNavbar=function e(){return g["default"](this._element).closest(".navbar").length>0};e._getOffset=function e(){var t=this;var n={};if(typeof this._config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{});return e}}else{n.offset=this._config.offset}return n};e._getPopperConfig=function e(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){t.modifiers.applyStyle={enabled:false}}return s({},t,this._config.popperConfig)};c._jQueryInterface=function e(n){return this.each(function(){var e=g["default"](this).data(mt);var t=typeof n==="object"?n:null;if(!e){e=new c(this,t);g["default"](this).data(mt,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};c._clearMenus=function e(t){if(t&&(t.which===Et||t.type==="keyup"&&t.which!==_t)){return}var n=[].slice.call(document.querySelectorAll(Rt));for(var i=0,r=n.length;i<r;i++){var o=c._getParentFromElement(n[i]);var a=g["default"](n[i]).data(mt);var s={relatedTarget:n[i]};if(t&&t.type==="click"){s.clickEvent=t}if(!a){continue}var l=a._menu;if(!g["default"](o).hasClass(Lt)){continue}if(t&&(t.type==="click"&&/input|textarea/i.test(t.target.tagName)||t.type==="keyup"&&t.which===_t)&&g["default"].contains(o,t.target)){continue}var u=g["default"].Event(Dt,s);g["default"](o).trigger(u);if(u.isDefaultPrevented()){continue}if("ontouchstart"in document.documentElement){g["default"](document.body).children().off("mouseover",null,g["default"].noop)}n[i].setAttribute("aria-expanded","false");if(a._popper){a._popper.destroy()}g["default"](l).removeClass(Lt);g["default"](o).removeClass(Lt).trigger(g["default"].Event(St,s))}};c._getParentFromElement=function e(t){var n;var i=v.getSelectorFromElement(t);if(i){n=document.querySelector(i)}return n||t.parentNode};c._dataApiKeydownHandler=function e(t){if(/input|textarea/i.test(t.target.tagName)?t.which===wt||t.which!==bt&&(t.which!==xt&&t.which!==Ct||g["default"](t.target).closest(Wt).length):!Tt.test(t.which)){return}if(this.disabled||g["default"](this).hasClass(jt)){return}var n=c._getParentFromElement(this);var i=g["default"](n).hasClass(Lt);if(!i&&t.which===bt){return}t.preventDefault();t.stopPropagation();if(!i||t.which===bt||t.which===wt){if(t.which===bt){g["default"](n.querySelector(Rt)).trigger("focus")}g["default"](this).trigger("click");return}var r=[].slice.call(n.querySelectorAll(zt)).filter(function(e){return g["default"](e).is(":visible")});if(r.length===0){return}var o=r.indexOf(t.target);if(t.which===Ct&&o>0){o--}if(t.which===xt&&o<r.length-1){o++}if(o<0){o=0}r[o].focus()};o(c,null,[{key:"VERSION",get:function e(){return ht}},{key:"Default",get:function e(){return Jt}},{key:"DefaultType",get:function e(){return Zt}}]);return c}();g["default"](document).on(Mt,Rt,en._dataApiKeydownHandler).on(Mt,Wt,en._dataApiKeydownHandler).on(It+" "+Nt,en._clearMenus).on(It,Rt,function(e){e.preventDefault();e.stopPropagation();en._jQueryInterface.call(g["default"](this),"toggle")}).on(It,Bt,function(e){e.stopPropagation()}),g["default"].fn[pt]=en._jQueryInterface,g["default"].fn[pt].Constructor=en,g["default"].fn[pt].noConflict=function(){g["default"].fn[pt]=yt;return en._jQueryInterface};var tn="modal",nn="4.5.3",rn="bs.modal",on="."+rn,an=".data-api",sn=g["default"].fn[tn],ln=27,un={backdrop:true,keyboard:true,focus:true,show:true},cn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fn="hide"+on,dn="hidePrevented"+on,pn="hidden"+on,hn="show"+on,mn="shown"+on,gn="focusin"+on,vn="resize"+on,yn="click.dismiss"+on,bn="keydown.dismiss"+on,wn="mouseup.dismiss"+on,_n="mousedown.dismiss"+on,Cn="click"+on+an,xn="modal-dialog-scrollable",En="modal-scrollbar-measure",Tn="modal-backdrop",Dn="modal-open",Sn="fade",kn="show",An="modal-static",On=".modal-dialog",In=".modal-body",Mn='[data-toggle="modal"]',Nn='[data-dismiss="modal"]',jn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ln=".sticky-top",Pn=function(){function r(e,t){this._config=this._getConfig(t);this._element=e;this._dialog=e.querySelector(On);this._backdrop=null;this._isShown=false;this._isBodyOverflowing=false;this._ignoreBackdropClick=false;this._isTransitioning=false;this._scrollbarWidth=0}var e=r.prototype;e.toggle=function e(t){return this._isShown?this.hide():this.show(t)};e.show=function e(t){var n=this;if(this._isShown||this._isTransitioning){return}if(g["default"](this._element).hasClass(Sn)){this._isTransitioning=true}var i=g["default"].Event(hn,{relatedTarget:t});g["default"](this._element).trigger(i);if(this._isShown||i.isDefaultPrevented()){return}this._isShown=true;this._checkScrollbar();this._setScrollbar();this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();g["default"](this._element).on(yn,Nn,function(e){return n.hide(e)});g["default"](this._dialog).on(_n,function(){g["default"](n._element).one(wn,function(e){if(g["default"](e.target).is(n._element)){n._ignoreBackdropClick=true}})});this._showBackdrop(function(){return n._showElement(t)})};e.hide=function e(t){var n=this;if(t){t.preventDefault()}if(!this._isShown||this._isTransitioning){return}var i=g["default"].Event(fn);g["default"](this._element).trigger(i);if(!this._isShown||i.isDefaultPrevented()){return}this._isShown=false;var r=g["default"](this._element).hasClass(Sn);if(r){this._isTransitioning=true}this._setEscapeEvent();this._setResizeEvent();g["default"](document).off(gn);g["default"](this._element).removeClass(kn);g["default"](this._element).off(yn);g["default"](this._dialog).off(_n);if(r){var o=v.getTransitionDurationFromElement(this._element);g["default"](this._element).one(v.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(o)}else{this._hideModal()}};e.dispose=function e(){[window,this._element,this._dialog].forEach(function(e){return g["default"](e).off(on)});g["default"](document).off(gn);g["default"].removeData(this._element,rn);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null};e.handleUpdate=function e(){this._adjustDialog()};e._getConfig=function e(t){t=s({},un,t);v.typeCheckConfig(tn,t,cn);return t};e._triggerBackdropTransition=function e(){var t=this;if(this._config.backdrop==="static"){var n=g["default"].Event(dn);g["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._element.scrollHeight>document.documentElement.clientHeight;if(!i){this._element.style.overflowY="hidden"}this._element.classList.add(An);var r=v.getTransitionDurationFromElement(this._dialog);g["default"](this._element).off(v.TRANSITION_END);g["default"](this._element).one(v.TRANSITION_END,function(){t._element.classList.remove(An);if(!i){g["default"](t._element).one(v.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,r)}}).emulateTransitionEnd(r);this._element.focus()}else{this.hide()}};e._showElement=function e(t){var n=this;var i=g["default"](this._element).hasClass(Sn);var r=this._dialog?this._dialog.querySelector(In):null;if(!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.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");if(g["default"](this._dialog).hasClass(xn)&&r){r.scrollTop=0}else{this._element.scrollTop=0}if(i){v.reflow(this._element)}g["default"](this._element).addClass(kn);if(this._config.focus){this._enforceFocus()}var o=g["default"].Event(mn,{relatedTarget:t});var a=function e(){if(n._config.focus){n._element.focus()}n._isTransitioning=false;g["default"](n._element).trigger(o)};if(i){var s=v.getTransitionDurationFromElement(this._dialog);g["default"](this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else{a()}};e._enforceFocus=function e(){var t=this;g["default"](document).off(gn).on(gn,function(e){if(document!==e.target&&t._element!==e.target&&g["default"](t._element).has(e.target).length===0){t._element.focus()}})};e._setEscapeEvent=function e(){var t=this;if(this._isShown){g["default"](this._element).on(bn,function(e){if(t._config.keyboard&&e.which===ln){e.preventDefault();t.hide()}else if(!t._config.keyboard&&e.which===ln){t._triggerBackdropTransition()}})}else if(!this._isShown){g["default"](this._element).off(bn)}};e._setResizeEvent=function e(){var t=this;if(this._isShown){g["default"](window).on(vn,function(e){return t.handleUpdate(e)})}else{g["default"](window).off(vn)}};e._hideModal=function e(){var t=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._showBackdrop(function(){g["default"](document.body).removeClass(Dn);t._resetAdjustments();t._resetScrollbar();g["default"](t._element).trigger(pn)})};e._removeBackdrop=function e(){if(this._backdrop){g["default"](this._backdrop).remove();this._backdrop=null}};e._showBackdrop=function e(t){var n=this;var i=g["default"](this._element).hasClass(Sn)?Sn:"";if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=Tn;if(i){this._backdrop.classList.add(i)}g["default"](this._backdrop).appendTo(document.body);g["default"](this._element).on(yn,function(e){if(n._ignoreBackdropClick){n._ignoreBackdropClick=false;return}if(e.target!==e.currentTarget){return}n._triggerBackdropTransition()});if(i){v.reflow(this._backdrop)}g["default"](this._backdrop).addClass(kn);if(!t){return}if(!i){t();return}var r=v.getTransitionDurationFromElement(this._backdrop);g["default"](this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){g["default"](this._backdrop).removeClass(kn);var o=function e(){n._removeBackdrop();if(t){t()}};if(g["default"](this._element).hasClass(Sn)){var a=v.getTransitionDurationFromElement(this._backdrop);g["default"](this._backdrop).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}}else if(t){t()}};e._adjustDialog=function e(){var t=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&t){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!t){this._element.style.paddingRight=this._scrollbarWidth+"px"}};e._resetAdjustments=function e(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};e._checkScrollbar=function e(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()};e._setScrollbar=function e(){var r=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(jn));var n=[].slice.call(document.querySelectorAll(Ln));g["default"](t).each(function(e,t){var n=t.style.paddingRight;var i=g["default"](t).css("padding-right");g["default"](t).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")});g["default"](n).each(function(e,t){var n=t.style.marginRight;var i=g["default"](t).css("margin-right");g["default"](t).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var i=document.body.style.paddingRight;var o=g["default"](document.body).css("padding-right");g["default"](document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}g["default"](document.body).addClass(Dn)};e._resetScrollbar=function e(){var t=[].slice.call(document.querySelectorAll(jn));g["default"](t).each(function(e,t){var n=g["default"](t).data("padding-right");g["default"](t).removeData("padding-right");t.style.paddingRight=n?n:""});var n=[].slice.call(document.querySelectorAll(""+Ln));g["default"](n).each(function(e,t){var n=g["default"](t).data("margin-right");if(typeof n!=="undefined"){g["default"](t).css("margin-right",n).removeData("margin-right")}});var i=g["default"](document.body).data("padding-right");g["default"](document.body).removeData("padding-right");document.body.style.paddingRight=i?i:""};e._getScrollbarWidth=function e(){var t=document.createElement("div");t.className=En;document.body.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;document.body.removeChild(t);return n};r._jQueryInterface=function e(n,i){return this.each(function(){var e=g["default"](this).data(rn);var t=s({},un,g["default"](this).data(),typeof n==="object"&&n?n:{});if(!e){e=new r(this,t);g["default"](this).data(rn,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n](i)}else if(t.show){e.show(i)}})};o(r,null,[{key:"VERSION",get:function e(){return nn}},{key:"Default",get:function e(){return un}}]);return r}();g["default"](document).on(Cn,Mn,function(e){var t=this;var n;var i=v.getSelectorFromElement(this);if(i){n=document.querySelector(i)}var r=g["default"](n).data(rn)?"toggle":s({},g["default"](n).data(),g["default"](this).data());if(this.tagName==="A"||this.tagName==="AREA"){e.preventDefault()}var o=g["default"](n).one(hn,function(e){if(e.isDefaultPrevented()){return}o.one(pn,function(){if(g["default"](t).is(":visible")){t.focus()}})});Pn._jQueryInterface.call(g["default"](n),r,this)}),g["default"].fn[tn]=Pn._jQueryInterface,g["default"].fn[tn].Constructor=Pn,g["default"].fn[tn].noConflict=function(){g["default"].fn[tn]=sn;return Pn._jQueryInterface};var $n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Hn,Fn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},qn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Rn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Bn(e,t){var n=e.nodeName.toLowerCase();if(t.indexOf(n)!==-1){if($n.indexOf(n)!==-1){return Boolean(e.nodeValue.match(qn)||e.nodeValue.match(Rn))}return true}var i=t.filter(function(e){return e instanceof RegExp});for(var r=0,o=i.length;r<o;r++){if(n.match(i[r])){return true}}return false}function Wn(e,s,t){if(e.length===0){return e}if(t&&typeof t==="function"){return t(e)}var n=new window.DOMParser;var i=n.parseFromString(e,"text/html");var l=Object.keys(s);var u=[].slice.call(i.body.querySelectorAll("*"));var r=function e(t,n){var i=u[t];var r=i.nodeName.toLowerCase();if(l.indexOf(i.nodeName.toLowerCase())===-1){i.parentNode.removeChild(i);return"continue"}var o=[].slice.call(i.attributes);var a=[].concat(s["*"]||[],s[r]||[]);o.forEach(function(e){if(!Bn(e,a)){i.removeAttribute(e.nodeName)}})};for(var o=0,a=u.length;o<a;o++){var c=r(o);if(c==="continue")continue}return i.body.innerHTML}var Un="tooltip",zn="4.5.3",Yn="bs.tooltip",Kn="."+Yn,Gn=g["default"].fn[Un],Qn="bs-tooltip",Xn=new RegExp("(^|\\s)"+Qn+"\\S+","g"),Vn=["sanitize","whiteList","sanitizeFn"],Jn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Zn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ei={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:true,sanitizeFn:null,whiteList:Fn,popperConfig:null},ti="show",ni="out",ii={HIDE:"hide"+Kn,HIDDEN:"hidden"+Kn,SHOW:"show"+Kn,SHOWN:"shown"+Kn,INSERTED:"inserted"+Kn,CLICK:"click"+Kn,FOCUSIN:"focusin"+Kn,FOCUSOUT:"focusout"+Kn,MOUSEENTER:"mouseenter"+Kn,MOUSELEAVE:"mouseleave"+Kn},ri="fade",oi="show",ai=".tooltip-inner",si=".arrow",li="hover",ui="focus",ci="click",fi="manual",di=function(){function r(e,t){if(typeof d["default"]==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=e;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var e=r.prototype;e.enable=function e(){this._isEnabled=true};e.disable=function e(){this._isEnabled=false};e.toggleEnabled=function e(){this._isEnabled=!this._isEnabled};e.toggle=function e(t){if(!this._isEnabled){return}if(t){var n=this.constructor.DATA_KEY;var i=g["default"](t.currentTarget).data(n);if(!i){i=new this.constructor(t.currentTarget,this._getDelegateConfig());g["default"](t.currentTarget).data(n,i)}i._activeTrigger.click=!i._activeTrigger.click;if(i._isWithActiveTrigger()){i._enter(null,i)}else{i._leave(null,i)}}else{if(g["default"](this.getTipElement()).hasClass(oi)){this._leave(null,this);return}this._enter(null,this)}};e.dispose=function e(){clearTimeout(this._timeout);g["default"].removeData(this.element,this.constructor.DATA_KEY);g["default"](this.element).off(this.constructor.EVENT_KEY);g["default"](this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);if(this.tip){g["default"](this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};e.show=function e(){var n=this;if(g["default"](this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var t=g["default"].Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g["default"](this.element).trigger(t);var i=v.findShadowRoot(this.element);var r=g["default"].contains(i!==null?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r){return}var o=this.getTipElement();var a=v.getUID(this.constructor.NAME);o.setAttribute("id",a);this.element.setAttribute("aria-describedby",a);this.setContent();if(this.config.animation){g["default"](o).addClass(ri)}var s=typeof this.config.placement==="function"?this.config.placement.call(this,o,this.element):this.config.placement;var l=this._getAttachment(s);this.addAttachmentClass(l);var u=this._getContainer();g["default"](o).data(this.constructor.DATA_KEY,this);if(!g["default"].contains(this.element.ownerDocument.documentElement,this.tip)){g["default"](o).appendTo(u)}g["default"](this.element).trigger(this.constructor.Event.INSERTED);this._popper=new d["default"](this.element,o,this._getPopperConfig(l));g["default"](o).addClass(oi);if("ontouchstart"in document.documentElement){g["default"](document.body).children().on("mouseover",null,g["default"].noop)}var c=function e(){if(n.config.animation){n._fixTransition()}var t=n._hoverState;n._hoverState=null;g["default"](n.element).trigger(n.constructor.Event.SHOWN);if(t===ni){n._leave(null,n)}};if(g["default"](this.tip).hasClass(ri)){var f=v.getTransitionDurationFromElement(this.tip);g["default"](this.tip).one(v.TRANSITION_END,c).emulateTransitionEnd(f)}else{c()}}};e.hide=function e(t){var n=this;var i=this.getTipElement();var r=g["default"].Event(this.constructor.Event.HIDE);var o=function e(){if(n._hoverState!==ti&&i.parentNode){i.parentNode.removeChild(i)}n._cleanTipClass();n.element.removeAttribute("aria-describedby");g["default"](n.element).trigger(n.constructor.Event.HIDDEN);if(n._popper!==null){n._popper.destroy()}if(t){t()}};g["default"](this.element).trigger(r);if(r.isDefaultPrevented()){return}g["default"](i).removeClass(oi);if("ontouchstart"in document.documentElement){g["default"](document.body).children().off("mouseover",null,g["default"].noop)}this._activeTrigger[ci]=false;this._activeTrigger[ui]=false;this._activeTrigger[li]=false;if(g["default"](this.tip).hasClass(ri)){var a=v.getTransitionDurationFromElement(i);g["default"](i).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}this._hoverState=""};e.update=function e(){if(this._popper!==null){this._popper.scheduleUpdate()}};e.isWithContent=function e(){return Boolean(this.getTitle())};e.addAttachmentClass=function e(t){g["default"](this.getTipElement()).addClass(Qn+"-"+t)};e.getTipElement=function e(){this.tip=this.tip||g["default"](this.config.template)[0];return this.tip};e.setContent=function e(){var t=this.getTipElement();this.setElementContent(g["default"](t.querySelectorAll(ai)),this.getTitle());g["default"](t).removeClass(ri+" "+oi)};e.setElementContent=function e(t,n){if(typeof n==="object"&&(n.nodeType||n.jquery)){if(this.config.html){if(!g["default"](n).parent().is(t)){t.empty().append(n)}}else{t.text(g["default"](n).text())}return}if(this.config.html){if(this.config.sanitize){n=Wn(n,this.config.whiteList,this.config.sanitizeFn)}t.html(n)}else{t.text(n)}};e.getTitle=function e(){var t=this.element.getAttribute("data-original-title");if(!t){t=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return t};e._getPopperConfig=function e(t){var n=this;var i={placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:si},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function e(t){if(t.originalPlacement!==t.placement){n._handlePopperPlacementChange(t)}},onUpdate:function e(t){return n._handlePopperPlacementChange(t)}};return s({},i,this.config.popperConfig)};e._getOffset=function e(){var t=this;var n={};if(typeof this.config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{});return e}}else{n.offset=this.config.offset}return n};e._getContainer=function e(){if(this.config.container===false){return document.body}if(v.isElement(this.config.container)){return g["default"](this.config.container)}return g["default"](document).find(this.config.container)};e._getAttachment=function e(t){return Zn[t.toUpperCase()]};e._setListeners=function e(){var i=this;var t=this.config.trigger.split(" ");t.forEach(function(e){if(e==="click"){g["default"](i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)})}else if(e!==fi){var t=e===li?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN;var n=e===li?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g["default"](i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}});this._hideModalHandler=function(){if(i.element){i.hide()}};g["default"](this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);if(this.config.selector){this.config=s({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};e._fixTitle=function e(){var t=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||t!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};e._enter=function e(t,n){var i=this.constructor.DATA_KEY;n=n||g["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());g["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusin"?ui:li]=true}if(g["default"](n.getTipElement()).hasClass(oi)||n._hoverState===ti){n._hoverState=ti;return}clearTimeout(n._timeout);n._hoverState=ti;if(!n.config.delay||!n.config.delay.show){n.show();return}n._timeout=setTimeout(function(){if(n._hoverState===ti){n.show()}},n.config.delay.show)};e._leave=function e(t,n){var i=this.constructor.DATA_KEY;n=n||g["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());g["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusout"?ui:li]=false}if(n._isWithActiveTrigger()){return}clearTimeout(n._timeout);n._hoverState=ni;if(!n.config.delay||!n.config.delay.hide){n.hide();return}n._timeout=setTimeout(function(){if(n._hoverState===ni){n.hide()}},n.config.delay.hide)};e._isWithActiveTrigger=function e(){for(var t in this._activeTrigger){if(this._activeTrigger[t]){return true}}return false};e._getConfig=function e(t){var n=g["default"](this.element).data();Object.keys(n).forEach(function(e){if(Vn.indexOf(e)!==-1){delete n[e]}});t=s({},this.constructor.Default,n,typeof t==="object"&&t?t:{});if(typeof t.delay==="number"){t.delay={show:t.delay,hide:t.delay}}if(typeof t.title==="number"){t.title=t.title.toString()}if(typeof t.content==="number"){t.content=t.content.toString()}v.typeCheckConfig(Un,t,this.constructor.DefaultType);if(t.sanitize){t.template=Wn(t.template,t.whiteList,t.sanitizeFn)}return t};e._getDelegateConfig=function e(){var t={};if(this.config){for(var n in this.config){if(this.constructor.Default[n]!==this.config[n]){t[n]=this.config[n]}}}return t};e._cleanTipClass=function e(){var t=g["default"](this.getTipElement());var n=t.attr("class").match(Xn);if(n!==null&&n.length){t.removeClass(n.join(""))}};e._handlePopperPlacementChange=function e(t){this.tip=t.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(t.placement))};e._fixTransition=function e(){var t=this.getTipElement();var n=this.config.animation;if(t.getAttribute("x-placement")!==null){return}g["default"](t).removeClass(ri);this.config.animation=false;this.hide();this.show();this.config.animation=n};r._jQueryInterface=function e(i){return this.each(function(){var e=g["default"](this);var t=e.data(Yn);var n=typeof i==="object"&&i;if(!t&&/dispose|hide/.test(i)){return}if(!t){t=new r(this,n);e.data(Yn,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i]()}})};o(r,null,[{key:"VERSION",get:function e(){return zn}},{key:"Default",get:function e(){return ei}},{key:"NAME",get:function e(){return Un}},{key:"DATA_KEY",get:function e(){return Yn}},{key:"Event",get:function e(){return ii}},{key:"EVENT_KEY",get:function e(){return Kn}},{key:"DefaultType",get:function e(){return Jn}}]);return r}();g["default"].fn[Un]=di._jQueryInterface,g["default"].fn[Un].Constructor=di,g["default"].fn[Un].noConflict=function(){g["default"].fn[Un]=Gn;return di._jQueryInterface};var pi="popover",hi="4.5.3",mi="bs.popover",gi="."+mi,vi=g["default"].fn[pi],yi="bs-popover",bi=new RegExp("(^|\\s)"+yi+"\\S+","g"),wi=s({},di.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>'}),_i=s({},di.DefaultType,{content:"(string|element|function)"}),Ci="fade",xi="show",Ei=".popover-header",Ti=".popover-body",Di={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Si=function(e){a(i,e);function i(){return e.apply(this,arguments)||this}var t=i.prototype;t.isWithContent=function e(){return this.getTitle()||this._getContent()};t.addAttachmentClass=function e(t){g["default"](this.getTipElement()).addClass(yi+"-"+t)};t.getTipElement=function e(){this.tip=this.tip||g["default"](this.config.template)[0];return this.tip};t.setContent=function e(){var t=g["default"](this.getTipElement());this.setElementContent(t.find(Ei),this.getTitle());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(Ti),n);t.removeClass(Ci+" "+xi)};t._getContent=function e(){return this.element.getAttribute("data-content")||this.config.content};t._cleanTipClass=function e(){var t=g["default"](this.getTipElement());var n=t.attr("class").match(bi);if(n!==null&&n.length>0){t.removeClass(n.join(""))}};i._jQueryInterface=function e(n){return this.each(function(){var e=g["default"](this).data(mi);var t=typeof n==="object"?n:null;if(!e&&/dispose|hide/.test(n)){return}if(!e){e=new i(this,t);g["default"](this).data(mi,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return hi}},{key:"Default",get:function e(){return wi}},{key:"NAME",get:function e(){return pi}},{key:"DATA_KEY",get:function e(){return mi}},{key:"Event",get:function e(){return Di}},{key:"EVENT_KEY",get:function e(){return gi}},{key:"DefaultType",get:function e(){return _i}}]);return i}(di);g["default"].fn[pi]=Si._jQueryInterface,g["default"].fn[pi].Constructor=Si,g["default"].fn[pi].noConflict=function(){g["default"].fn[pi]=vi;return Si._jQueryInterface};var ki="scrollspy",Ai="4.5.3",Oi="bs.scrollspy",Ii="."+Oi,Mi=".data-api",Ni=g["default"].fn[ki],ji={offset:10,method:"auto",target:""},Li={offset:"number",method:"string",target:"(string|element)"},Pi="activate"+Ii,$i="scroll"+Ii,Hi="load"+Ii+Mi,Fi="dropdown-item",qi="active",Ri='[data-spy="scroll"]',Bi=".nav, .list-group",Wi=".nav-link",Ui=".nav-item",zi=".list-group-item",Yi=".dropdown",Ki=".dropdown-item",Gi=".dropdown-toggle",Qi="offset",Xi="position",Vi=function(){function i(e,t){var n=this;this._element=e;this._scrollElement=e.tagName==="BODY"?window:e;this._config=this._getConfig(t);this._selector=this._config.target+" "+Wi+","+(this._config.target+" "+zi+",")+(this._config.target+" "+Ki);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;g["default"](this._scrollElement).on($i,function(e){return n._process(e)});this.refresh();this._process()}var e=i.prototype;e.refresh=function e(){var t=this;var n=this._scrollElement===this._scrollElement.window?Qi:Xi;var r=this._config.method==="auto"?n:this._config.method;var o=r===Xi?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var i=[].slice.call(document.querySelectorAll(this._selector));i.map(function(e){var t;var n=v.getSelectorFromElement(e);if(n){t=document.querySelector(n)}if(t){var i=t.getBoundingClientRect();if(i.width||i.height){return[g["default"](t)[r]().top+o,n]}}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]);t._targets.push(e[1])})};e.dispose=function e(){g["default"].removeData(this._element,Oi);g["default"](this._scrollElement).off(Ii);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};e._getConfig=function e(t){t=s({},ji,typeof t==="object"&&t?t:{});if(typeof t.target!=="string"&&v.isElement(t.target)){var n=g["default"](t.target).attr("id");if(!n){n=v.getUID(ki);g["default"](t.target).attr("id",n)}t.target="#"+n}v.typeCheckConfig(ki,t,Li);return t};e._getScrollTop=function e(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};e._getScrollHeight=function e(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};e._getOffsetHeight=function e(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};e._process=function e(){var t=this._getScrollTop()+this._config.offset;var n=this._getScrollHeight();var i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n){this.refresh()}if(t>=i){var r=this._targets[this._targets.length-1];if(this._activeTarget!==r){this._activate(r)}return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(var o=this._offsets.length;o--;){var a=this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]==="undefined"||t<this._offsets[o+1]);if(a){this._activate(this._targets[o])}}};e._activate=function e(t){this._activeTarget=t;this._clear();var n=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=g["default"]([].slice.call(document.querySelectorAll(n.join(","))));if(i.hasClass(Fi)){i.closest(Yi).find(Gi).addClass(qi);i.addClass(qi)}else{i.addClass(qi);i.parents(Bi).prev(Wi+", "+zi).addClass(qi);i.parents(Bi).prev(Ui).children(Wi).addClass(qi)}g["default"](this._scrollElement).trigger(Pi,{relatedTarget:t})};e._clear=function e(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(qi)}).forEach(function(e){return e.classList.remove(qi)})};i._jQueryInterface=function e(n){return this.each(function(){var e=g["default"](this).data(Oi);var t=typeof n==="object"&&n;if(!e){e=new i(this,t);g["default"](this).data(Oi,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return Ai}},{key:"Default",get:function e(){return ji}}]);return i}();g["default"](window).on(Hi,function(){var e=[].slice.call(document.querySelectorAll(Ri));var t=e.length;for(var n=t;n--;){var i=g["default"](e[n]);Vi._jQueryInterface.call(i,i.data())}}),g["default"].fn[ki]=Vi._jQueryInterface,g["default"].fn[ki].Constructor=Vi,g["default"].fn[ki].noConflict=function(){g["default"].fn[ki]=Ni;return Vi._jQueryInterface};var Ji="tab",Zi="4.5.3",er="bs.tab",tr="."+er,nr=".data-api",ir=g["default"].fn[Ji],rr="hide"+tr,or="hidden"+tr,ar="show"+tr,sr="shown"+tr,lr="click"+tr+nr,ur="dropdown-menu",cr="active",fr="disabled",dr="fade",pr="show",hr=".dropdown",mr=".nav, .list-group",gr=".active",vr="> li > .active",yr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',br=".dropdown-toggle",wr="> .dropdown-menu .active",_r=function(){function i(e){this._element=e}var e=i.prototype;e.show=function e(){var i=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g["default"](this._element).hasClass(cr)||g["default"](this._element).hasClass(fr)){return}var t;var r;var n=g["default"](this._element).closest(mr)[0];var o=v.getSelectorFromElement(this._element);if(n){var a=n.nodeName==="UL"||n.nodeName==="OL"?vr:gr;r=g["default"].makeArray(g["default"](n).find(a));r=r[r.length-1]}var s=g["default"].Event(rr,{relatedTarget:this._element});var l=g["default"].Event(ar,{relatedTarget:r});if(r){g["default"](r).trigger(s)}g["default"](this._element).trigger(l);if(l.isDefaultPrevented()||s.isDefaultPrevented()){return}if(o){t=document.querySelector(o)}this._activate(this._element,n);var u=function e(){var t=g["default"].Event(or,{relatedTarget:i._element});var n=g["default"].Event(sr,{relatedTarget:r});g["default"](r).trigger(t);g["default"](i._element).trigger(n)};if(t){this._activate(t,t.parentNode,u)}else{u()}};e.dispose=function e(){g["default"].removeData(this._element,er);this._element=null};e._activate=function e(t,n,i){var r=this;var o=n&&(n.nodeName==="UL"||n.nodeName==="OL")?g["default"](n).find(vr):g["default"](n).children(gr);var a=o[0];var s=i&&a&&g["default"](a).hasClass(dr);var l=function e(){return r._transitionComplete(t,a,i)};if(a&&s){var u=v.getTransitionDurationFromElement(a);g["default"](a).removeClass(pr).one(v.TRANSITION_END,l).emulateTransitionEnd(u)}else{l()}};e._transitionComplete=function e(t,n,i){if(n){g["default"](n).removeClass(cr);var r=g["default"](n.parentNode).find(wr)[0];if(r){g["default"](r).removeClass(cr)}if(n.getAttribute("role")==="tab"){n.setAttribute("aria-selected",false)}}g["default"](t).addClass(cr);if(t.getAttribute("role")==="tab"){t.setAttribute("aria-selected",true)}v.reflow(t);if(t.classList.contains(dr)){t.classList.add(pr)}if(t.parentNode&&g["default"](t.parentNode).hasClass(ur)){var o=g["default"](t).closest(hr)[0];if(o){var a=[].slice.call(o.querySelectorAll(br));g["default"](a).addClass(cr)}t.setAttribute("aria-expanded",true)}if(i){i()}};i._jQueryInterface=function e(n){return this.each(function(){var e=g["default"](this);var t=e.data(er);if(!t){t=new i(this);e.data(er,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return Zi}}]);return i}();g["default"](document).on(lr,yr,function(e){e.preventDefault();_r._jQueryInterface.call(g["default"](this),"show")}),g["default"].fn[Ji]=_r._jQueryInterface,g["default"].fn[Ji].Constructor=_r,g["default"].fn[Ji].noConflict=function(){g["default"].fn[Ji]=ir;return _r._jQueryInterface};var Cr="toast",xr="4.5.3",Er="bs.toast",Tr="."+Er,Dr=g["default"].fn[Cr],Sr="click.dismiss"+Tr,kr="hide"+Tr,Ar="hidden"+Tr,Or="show"+Tr,Ir="shown"+Tr,Mr="fade",Nr="hide",jr="show",Lr="showing",Pr={animation:"boolean",autohide:"boolean",delay:"number"},$r={animation:true,autohide:true,delay:500},Hr='[data-dismiss="toast"]',Fr=function(){function r(e,t){this._element=e;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var e=r.prototype;e.show=function e(){var t=this;var n=g["default"].Event(Or);g["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}this._clearTimeout();if(this._config.animation){this._element.classList.add(Mr)}var i=function e(){t._element.classList.remove(Lr);t._element.classList.add(jr);g["default"](t._element).trigger(Ir);if(t._config.autohide){t._timeout=setTimeout(function(){t.hide()},t._config.delay)}};this._element.classList.remove(Nr);v.reflow(this._element);this._element.classList.add(Lr);if(this._config.animation){var r=v.getTransitionDurationFromElement(this._element);g["default"](this._element).one(v.TRANSITION_END,i).emulateTransitionEnd(r)}else{i()}};e.hide=function e(){if(!this._element.classList.contains(jr)){return}var t=g["default"].Event(kr);g["default"](this._element).trigger(t);if(t.isDefaultPrevented()){return}this._close()};e.dispose=function e(){this._clearTimeout();if(this._element.classList.contains(jr)){this._element.classList.remove(jr)}g["default"](this._element).off(Sr);g["default"].removeData(this._element,Er);this._element=null;this._config=null};e._getConfig=function e(t){t=s({},$r,g["default"](this._element).data(),typeof t==="object"&&t?t:{});v.typeCheckConfig(Cr,t,this.constructor.DefaultType);return t};e._setListeners=function e(){var t=this;g["default"](this._element).on(Sr,Hr,function(){return t.hide()})};e._close=function e(){var t=this;var n=function e(){t._element.classList.add(Nr);g["default"](t._element).trigger(Ar)};this._element.classList.remove(jr);if(this._config.animation){var i=v.getTransitionDurationFromElement(this._element);g["default"](this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(i)}else{n()}};e._clearTimeout=function e(){clearTimeout(this._timeout);this._timeout=null};r._jQueryInterface=function e(i){return this.each(function(){var e=g["default"](this);var t=e.data(Er);var n=typeof i==="object"&&i;if(!t){t=new r(this,n);e.data(Er,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i](this)}})};o(r,null,[{key:"VERSION",get:function e(){return xr}},{key:"DefaultType",get:function e(){return Pr}},{key:"Default",get:function e(){return $r}}]);return r}();g["default"].fn[Cr]=Fr._jQueryInterface,g["default"].fn[Cr].Constructor=Fr,g["default"].fn[Cr].noConflict=function(){g["default"].fn[Cr]=Dr;return Fr._jQueryInterface},e.Alert=I,e.Button=V,e.Carousel=Ue,e.Collapse=dt,e.Dropdown=en,e.Modal=Pn,e.Popover=Si,e.Scrollspy=Vi,e.Tab=_r,e.Toast=Fr,e.Tooltip=di,e.Util=v,Object.defineProperty(e,"__esModule",{value:true})}(t,n(0),n(9))},function(e,t,n){var i,r;(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var y=this.Rails;(function(){(function(){var t=null;y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var i,n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},y.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n=y.$,i=y.csrfToken=function(){var e=document.querySelector("meta[name=csrf-token]");return e&&e.content},r=y.csrfParam=function(){var e=document.querySelector("meta[name=csrf-param]");return e&&e.content};y.CSRFProtection=function(e){var t=i();if(null!=t)return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var t=i(),e=r();if(null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var t,n,r=y.matches,o=window.CustomEvent;"function"!=typeof o&&((o=function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=o.prototype.preventDefault,o.prototype.preventDefault=function(){var e=n.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var i=new o(t,{bubbles:!0,cancelable:!0,detail:n});return e.dispatchEvent(i),!i.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){for(var t=e.target;t instanceof Element&&!r(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var e,t,r,o=y.cspNonce,i=y.CSRFProtection,n=(y.fire,{"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"});y.ajax=function(n){var i;return n=t(n),i=e(n,function(){var e,t=r(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type"));return 2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},t=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==n[e.dataType]&&(e.dataType="*"),e.accept=n[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n=new XMLHttpRequest;return n.open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},r=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(e){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",o()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(e){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n=document.createElement("a");n.href=location.href,t=document.createElement("a");try{return t.href=e,!((!t.protocol||":"===t.protocol)&&!t.host||n.protocol+"//"+n.host==t.protocol+"//"+t.host)}catch(e){return!0}}}.call(this),function(){var r=y.matches,o=function(e){return Array.prototype.slice.call(e)};y.serializeElement=function(e,t){var n,i=[e];return r(e,"form")&&(i=o(e.elements)),n=[],i.forEach(function(t){if(t.name&&!t.disabled&&!r(t,"fieldset[disabled] *"))return r(t,"select")?o(t.options).forEach(function(e){if(e.selected)return n.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?n.push({name:t.name,value:t.value}):void 0}),t&&n.push(t),n.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?o(e.elements).filter(function(e){return r(e,t)}):o(e.querySelectorAll(t))}}.call(this),function(){var t,r=y.fire,n=y.stopEverything;y.handleConfirm=function(e){if(!t(this))return n(e)},y.confirm=function(e,t){return confirm(e)},t=function(e){var t,n,i=e.getAttribute("data-confirm");if(!i)return!0;if(t=!1,r(e,"confirm")){try{t=y.confirm(i,e)}catch(e){}n=r(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,r,o,a,s,l,u=y.matches,c=y.getData,f=y.setData,d=y.stopEverything,t=y.formElements;y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;if(e instanceof Event){if(l(e))return;t=e.target}else t=e;return u(t,y.linkDisableSelector)?s(t):u(t,y.buttonDisableSelector)||u(t,y.formEnableSelector)?o(t):u(t,y.formSubmitSelector)?a(t):void 0},y.disableElement=function(e){var t=e instanceof Event?e.target:e;return u(t,y.linkDisableSelector)?r(t):u(t,y.buttonDisableSelector)||u(t,y.formDisableSelector)?n(t):u(t,y.formSubmitSelector)?i(t):void 0},r=function(e){var t;if(!c(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),f(e,"ujs:disabled",!0)},s=function(e){var t=c(e,"ujs:enable-with");return null!=t&&(e.innerHTML=t,f(e,"ujs:enable-with",null)),e.removeEventListener("click",d),f(e,"ujs:disabled",null)},i=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;if(!c(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(f(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,f(e,"ujs:disabled",!0)},a=function(e){return t(e,y.formEnableSelector).forEach(o)},o=function(e){var t=c(e,"ujs:enable-with");return null!=t&&(u(e,"button")?e.innerHTML=t:e.value=t,f(e,"ujs:enable-with",null)),e.disabled=!1,f(e,"ujs:disabled",null)},l=function(e){var t,n=null!=(t=e.detail)?t[0]:void 0;return null!=(null!=n?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var s=y.stopEverything;y.handleMethod=function(e){var t,n,i,r,o,a=this.getAttribute("data-method");if(a)return o=y.href(this),n=y.csrfToken(),t=y.csrfParam(),i=document.createElement("form"),r="<input name='_method' value='"+a+"' type='hidden' />",null==t||null==n||y.isCrossDomain(o)||(r+="<input name='"+t+"' value='"+n+"' type='hidden' />"),r+='<input type="submit" />',i.method="post",i.action=o,i.target=this.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),s(e)}}.call(this),function(){var l=[].slice,u=y.matches,c=y.getData,f=y.setData,d=y.fire,p=y.stopEverything,h=y.ajax,m=y.isCrossDomain,g=y.serializeElement,v=function(e){var t=e.getAttribute("data-remote");return null!=t&&"false"!==t};y.handleRemote=function(e){var t,n,i,r,o,a,s=this;return!v(s)||(d(s,"ajax:before")?(a=s.getAttribute("data-with-credentials"),i=s.getAttribute("data-type")||"script",u(s,y.formSubmitSelector)?(t=c(s,"ujs:submit-button"),r=c(s,"ujs:submit-button-formmethod")||s.method,o=c(s,"ujs:submit-button-formaction")||s.getAttribute("action")||location.href,"GET"===r.toUpperCase()&&(o=o.replace(/\?.*$/,"")),"multipart/form-data"===s.enctype?(n=new FormData(s),null!=t&&n.append(t.name,t.value)):n=g(s,t),f(s,"ujs:submit-button",null),f(s,"ujs:submit-button-formmethod",null),f(s,"ujs:submit-button-formaction",null)):n=u(s,y.buttonClickSelector)||u(s,y.inputChangeSelector)?(r=s.getAttribute("data-method"),o=s.getAttribute("data-url"),g(s,s.getAttribute("data-params"))):(r=s.getAttribute("data-method"),o=y.href(s),s.getAttribute("data-params")),h({type:r||"GET",url:o,data:n,dataType:i,beforeSend:function(e,t){return d(s,"ajax:beforeSend",[e,t])?d(s,"ajax:send",[e]):(d(s,"ajax:stopped"),!1)},success:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:success",e)},error:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:error",e)},complete:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:complete",e)},crossDomain:m(o),withCredentials:null!=a&&"false"!==a}),p(e)):(d(s,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(e){var t=this,n=t.form;if(n)return t.name&&f(n,"ujs:submit-button",{name:t.name,value:t.value}),f(n,"ujs:formnovalidate-button",t.formNoValidate),f(n,"ujs:submit-button-formaction",t.getAttribute("formaction")),f(n,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t=(this.getAttribute("data-method")||"GET").toUpperCase(),n=this.getAttribute("data-params"),i=(e.metaKey||e.ctrlKey)&&"GET"===t&&!n;if(null!=e.button&&0!==e.button||i)return e.stopImmediatePropagation()}}.call(this),function(){var e=y.fire,t=y.delegate,n=y.getData,i=y.$,r=y.refreshCSRFTokens,o=y.CSRFProtection,a=y.loadCSPNonce,s=y.enableElement,l=y.disableElement,u=y.handleDisabledElement,c=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,p=y.formSubmitButtonClick,h=y.handleMethod;if("undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return o(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return i(y.formEnableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)}),i(y.linkDisableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)})}),t(document,y.linkDisableSelector,"ajax:complete",s),t(document,y.linkDisableSelector,"ajax:stopped",s),t(document,y.buttonDisableSelector,"ajax:complete",s),t(document,y.buttonDisableSelector,"ajax:stopped",s),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",h),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",u),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",u),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",u),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return l(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",l),t(document,y.formSubmitSelector,"ajax:complete",s),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",u),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",p),document.addEventListener("DOMContentLoaded",r),document.addEventListener("DOMContentLoaded",a),window._rails_loaded=!0},window.Rails===y&&e(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),e.exports?e.exports=y:void 0===(r="function"==typeof(i=y)?i.call(t,n,t,e):i)||(e.exports=r)}).call(this)},function(e,t,n){
+!function(e,t,n){"use strict";function i(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var m=i(t),d=i(n);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function o(e,t,n){if(t)r(e.prototype,t);if(n)r(e,n);return e}function s(){s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};return s.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var l="transitionend",u=1e6,c=1e3;function f(e){if(e===null||typeof e==="undefined"){return""+e}return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function p(){return{bindType:l,delegateType:l,handle:function e(t){if(m["default"](t.target).is(this)){return t.handleObj.handler.apply(this,arguments)}return undefined}}}function h(e){var t=this;var n=false;m["default"](this).one(v.TRANSITION_END,function(){n=true});setTimeout(function(){if(!n){v.triggerTransitionEnd(t)}},e);return this}function g(){m["default"].fn.emulateTransitionEnd=h;m["default"].event.special[v.TRANSITION_END]=p()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function e(t){do{t+=~~(Math.random()*u)}while(document.getElementById(t));return t},getSelectorFromElement:function e(t){var n=t.getAttribute("data-target");if(!n||n==="#"){var i=t.getAttribute("href");n=i&&i!=="#"?i.trim():""}try{return document.querySelector(n)?n:null}catch(e){return null}},getTransitionDurationFromElement:function e(t){if(!t){return 0}var n=m["default"](t).css("transition-duration");var i=m["default"](t).css("transition-delay");var r=parseFloat(n);var o=parseFloat(i);if(!r&&!o){return 0}n=n.split(",")[0];i=i.split(",")[0];return(parseFloat(n)+parseFloat(i))*c},reflow:function e(t){return t.offsetHeight},triggerTransitionEnd:function e(t){m["default"](t).trigger(l)},supportsTransitionEnd:function e(){return Boolean(l)},isElement:function e(t){return(t[0]||t).nodeType},typeCheckConfig:function e(t,n,i){for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){var o=i[r];var a=n[r];var s=a&&v.isElement(a)?"element":f(a);if(!new RegExp(o).test(s)){throw new Error(t.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'))}}}},findShadowRoot:function e(t){if(!document.documentElement.attachShadow){return null}if(typeof t.getRootNode==="function"){var n=t.getRootNode();return n instanceof ShadowRoot?n:null}if(t instanceof ShadowRoot){return t}if(!t.parentNode){return null}return v.findShadowRoot(t.parentNode)},jQueryDetection:function e(){if(typeof m["default"]==="undefined"){throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.")}var t=m["default"].fn.jquery.split(" ")[0].split(".");var n=1;var i=2;var r=9;var o=1;var a=4;if(t[0]<i&&t[1]<r||t[0]===n&&t[1]===r&&t[2]<o||t[0]>=a){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}}};v.jQueryDetection(),g();var y="alert",b="4.6.0",w="bs.alert",_="."+w,C=".data-api",x=m["default"].fn[y],E='[data-dismiss="alert"]',T="close"+_,D="closed"+_,S="click"+_+C,k="alert",A="fade",O="show",I=function(){function i(e){this._element=e}var e=i.prototype;e.close=function e(t){var n=this._element;if(t){n=this._getRootElement(t)}var i=this._triggerCloseEvent(n);if(i.isDefaultPrevented()){return}this._removeElement(n)};e.dispose=function e(){m["default"].removeData(this._element,w);this._element=null};e._getRootElement=function e(t){var n=v.getSelectorFromElement(t);var i=false;if(n){i=document.querySelector(n)}if(!i){i=m["default"](t).closest("."+k)[0]}return i};e._triggerCloseEvent=function e(t){var n=m["default"].Event(T);m["default"](t).trigger(n);return n};e._removeElement=function e(t){var n=this;m["default"](t).removeClass(O);if(!m["default"](t).hasClass(A)){this._destroyElement(t);return}var i=v.getTransitionDurationFromElement(t);m["default"](t).one(v.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(i)};e._destroyElement=function e(t){m["default"](t).detach().trigger(D).remove()};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this);var t=e.data(w);if(!t){t=new i(this);e.data(w,t)}if(n==="close"){t[n](this)}})};i._handleDismiss=function e(t){return function(e){if(e){e.preventDefault()}t.close(this)}};o(i,null,[{key:"VERSION",get:function e(){return b}}]);return i}();m["default"](document).on(S,E,I._handleDismiss(new I)),m["default"].fn[y]=I._jQueryInterface,m["default"].fn[y].Constructor=I,m["default"].fn[y].noConflict=function(){m["default"].fn[y]=x;return I._jQueryInterface};var M="button",N="4.6.0",j="bs.button",L="."+j,P=".data-api",$=m["default"].fn[M],H="active",F="btn",q="focus",R='[data-toggle^="button"]',B='[data-toggle="buttons"]',W='[data-toggle="button"]',U='[data-toggle="buttons"] .btn',z='input:not([type="hidden"])',Y=".active",K=".btn",G="click"+L+P,Q="focus"+L+P+" "+("blur"+L+P),X="load"+L+P,V=function(){function r(e){this._element=e;this.shouldAvoidTriggerChange=false}var e=r.prototype;e.toggle=function e(){var t=true;var n=true;var i=m["default"](this._element).closest(B)[0];if(i){var r=this._element.querySelector(z);if(r){if(r.type==="radio"){if(r.checked&&this._element.classList.contains(H)){t=false}else{var o=i.querySelector(Y);if(o){m["default"](o).removeClass(H)}}}if(t){if(r.type==="checkbox"||r.type==="radio"){r.checked=!this._element.classList.contains(H)}if(!this.shouldAvoidTriggerChange){m["default"](r).trigger("change")}}r.focus();n=false}}if(!(this._element.hasAttribute("disabled")||this._element.classList.contains("disabled"))){if(n){this._element.setAttribute("aria-pressed",!this._element.classList.contains(H))}if(t){m["default"](this._element).toggleClass(H)}}};e.dispose=function e(){m["default"].removeData(this._element,j);this._element=null};r._jQueryInterface=function e(n,i){return this.each(function(){var e=m["default"](this);var t=e.data(j);if(!t){t=new r(this);e.data(j,t)}t.shouldAvoidTriggerChange=i;if(n==="toggle"){t[n]()}})};o(r,null,[{key:"VERSION",get:function e(){return N}}]);return r}();m["default"](document).on(G,R,function(e){var t=e.target;var n=t;if(!m["default"](t).hasClass(F)){t=m["default"](t).closest(K)[0]}if(!t||t.hasAttribute("disabled")||t.classList.contains("disabled")){e.preventDefault()}else{var i=t.querySelector(z);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled"))){e.preventDefault();return}if(n.tagName==="INPUT"||t.tagName!=="LABEL"){V._jQueryInterface.call(m["default"](t),"toggle",n.tagName==="INPUT")}}}).on(Q,R,function(e){var t=m["default"](e.target).closest(K)[0];m["default"](t).toggleClass(q,/^focus(in)?$/.test(e.type))}),m["default"](window).on(X,function(){var e=[].slice.call(document.querySelectorAll(U));for(var t=0,n=e.length;t<n;t++){var i=e[t];var r=i.querySelector(z);if(r.checked||r.hasAttribute("checked")){i.classList.add(H)}else{i.classList.remove(H)}}e=[].slice.call(document.querySelectorAll(W));for(var o=0,a=e.length;o<a;o++){var s=e[o];if(s.getAttribute("aria-pressed")==="true"){s.classList.add(H)}else{s.classList.remove(H)}}}),m["default"].fn[M]=V._jQueryInterface,m["default"].fn[M].Constructor=V,m["default"].fn[M].noConflict=function(){m["default"].fn[M]=$;return V._jQueryInterface};var J="carousel",Z="4.6.0",ee="bs.carousel",te="."+ee,ne=".data-api",ie=m["default"].fn[J],re=37,oe=39,ae=500,se=40,le={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true,touch:true},ue={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ce="next",fe="prev",de="left",pe="right",he="slide"+te,me="slid"+te,ge="keydown"+te,ve="mouseenter"+te,ye="mouseleave"+te,be="touchstart"+te,we="touchmove"+te,_e="touchend"+te,Ce="pointerdown"+te,xe="pointerup"+te,Ee="dragstart"+te,Te="load"+te+ne,De="click"+te+ne,Se="carousel",ke="active",Ae="slide",Oe="carousel-item-right",Ie="carousel-item-left",Me="carousel-item-next",Ne="carousel-item-prev",je="pointer-event",Le=".active",Pe=".active.carousel-item",$e=".carousel-item",He=".carousel-item img",Fe=".carousel-item-next, .carousel-item-prev",qe=".carousel-indicators",Re="[data-slide], [data-slide-to]",Be='[data-ride="carousel"]',We={TOUCH:"touch",PEN:"pen"},Ue=function(){function a(e,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=false;this._isSliding=false;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=e;this._indicatorsElement=this._element.querySelector(qe);this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var e=a.prototype;e.next=function e(){if(!this._isSliding){this._slide(ce)}};e.nextWhenVisible=function e(){var t=m["default"](this._element);if(!document.hidden&&t.is(":visible")&&t.css("visibility")!=="hidden"){this.next()}};e.prev=function e(){if(!this._isSliding){this._slide(fe)}};e.pause=function e(t){if(!t){this._isPaused=true}if(this._element.querySelector(Fe)){v.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};e.cycle=function e(t){if(!t){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._updateInterval();this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};e.to=function e(t){var n=this;this._activeElement=this._element.querySelector(Pe);var i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0){return}if(this._isSliding){m["default"](this._element).one(me,function(){return n.to(t)});return}if(i===t){this.pause();this.cycle();return}var r=t>i?ce:fe;this._slide(r,this._items[t])};e.dispose=function e(){m["default"](this._element).off(te);m["default"].removeData(this._element,ee);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};e._getConfig=function e(t){t=s({},le,t);v.typeCheckConfig(J,t,ue);return t};e._handleSwipe=function e(){var t=Math.abs(this.touchDeltaX);if(t<=se){return}var n=t/this.touchDeltaX;this.touchDeltaX=0;if(n>0){this.prev()}if(n<0){this.next()}};e._addEventListeners=function e(){var t=this;if(this._config.keyboard){m["default"](this._element).on(ge,function(e){return t._keydown(e)})}if(this._config.pause==="hover"){m["default"](this._element).on(ve,function(e){return t.pause(e)}).on(ye,function(e){return t.cycle(e)})}if(this._config.touch){this._addTouchEventListeners()}};e._addTouchEventListeners=function e(){var n=this;if(!this._touchSupported){return}var t=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchStartX=t.originalEvent.clientX}else if(!n._pointerEvent){n.touchStartX=t.originalEvent.touches[0].clientX}};var i=function e(t){if(t.originalEvent.touches&&t.originalEvent.touches.length>1){n.touchDeltaX=0}else{n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}};var r=function e(t){if(n._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]){n.touchDeltaX=t.originalEvent.clientX-n.touchStartX}n._handleSwipe();if(n._config.pause==="hover"){n.pause();if(n.touchTimeout){clearTimeout(n.touchTimeout)}n.touchTimeout=setTimeout(function(e){return n.cycle(e)},ae+n._config.interval)}};m["default"](this._element.querySelectorAll(He)).on(Ee,function(e){return e.preventDefault()});if(this._pointerEvent){m["default"](this._element).on(Ce,function(e){return t(e)});m["default"](this._element).on(xe,function(e){return r(e)});this._element.classList.add(je)}else{m["default"](this._element).on(be,function(e){return t(e)});m["default"](this._element).on(we,function(e){return i(e)});m["default"](this._element).on(_e,function(e){return r(e)})}};e._keydown=function e(t){if(/input|textarea/i.test(t.target.tagName)){return}switch(t.which){case re:t.preventDefault();this.prev();break;case oe:t.preventDefault();this.next();break}};e._getItemIndex=function e(t){this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll($e)):[];return this._items.indexOf(t)};e._getItemByDirection=function e(t,n){var i=t===ce;var r=t===fe;var o=this._getItemIndex(n);var a=this._items.length-1;var s=r&&o===0||i&&o===a;if(s&&!this._config.wrap){return n}var l=t===fe?-1:1;var u=(o+l)%this._items.length;return u===-1?this._items[this._items.length-1]:this._items[u]};e._triggerSlideEvent=function e(t,n){var i=this._getItemIndex(t);var r=this._getItemIndex(this._element.querySelector(Pe));var o=m["default"].Event(he,{relatedTarget:t,direction:n,from:r,to:i});m["default"](this._element).trigger(o);return o};e._setActiveIndicatorElement=function e(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Le));m["default"](n).removeClass(ke);var i=this._indicatorsElement.children[this._getItemIndex(t)];if(i){m["default"](i).addClass(ke)}}};e._updateInterval=function e(){var t=this._activeElement||this._element.querySelector(Pe);if(!t){return}var n=parseInt(t.getAttribute("data-interval"),10);if(n){this._config.defaultInterval=this._config.defaultInterval||this._config.interval;this._config.interval=n}else{this._config.interval=this._config.defaultInterval||this._config.interval}};e._slide=function e(t,n){var i=this;var r=this._element.querySelector(Pe);var o=this._getItemIndex(r);var a=n||r&&this._getItemByDirection(t,r);var s=this._getItemIndex(a);var l=Boolean(this._interval);var u;var c;var f;if(t===ce){u=Ie;c=Me;f=de}else{u=Oe;c=Ne;f=pe}if(a&&m["default"](a).hasClass(ke)){this._isSliding=false;return}var d=this._triggerSlideEvent(a,f);if(d.isDefaultPrevented()){return}if(!r||!a){return}this._isSliding=true;if(l){this.pause()}this._setActiveIndicatorElement(a);this._activeElement=a;var p=m["default"].Event(me,{relatedTarget:a,direction:f,from:o,to:s});if(m["default"](this._element).hasClass(Ae)){m["default"](a).addClass(c);v.reflow(a);m["default"](r).addClass(u);m["default"](a).addClass(u);var h=v.getTransitionDurationFromElement(r);m["default"](r).one(v.TRANSITION_END,function(){m["default"](a).removeClass(u+" "+c).addClass(ke);m["default"](r).removeClass(ke+" "+c+" "+u);i._isSliding=false;setTimeout(function(){return m["default"](i._element).trigger(p)},0)}).emulateTransitionEnd(h)}else{m["default"](r).removeClass(ke);m["default"](a).addClass(ke);this._isSliding=false;m["default"](this._element).trigger(p)}if(l){this.cycle()}};a._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this).data(ee);var t=s({},le,m["default"](this).data());if(typeof i==="object"){t=s({},t,i)}var n=typeof i==="string"?i:t.slide;if(!e){e=new a(this,t);m["default"](this).data(ee,e)}if(typeof i==="number"){e.to(i)}else if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}else if(t.interval&&t.ride){e.pause();e.cycle()}})};a._dataApiClickHandler=function e(t){var n=v.getSelectorFromElement(this);if(!n){return}var i=m["default"](n)[0];if(!i||!m["default"](i).hasClass(Se)){return}var r=s({},m["default"](i).data(),m["default"](this).data());var o=this.getAttribute("data-slide-to");if(o){r.interval=false}a._jQueryInterface.call(m["default"](i),r);if(o){m["default"](i).data(ee).to(o)}t.preventDefault()};o(a,null,[{key:"VERSION",get:function e(){return Z}},{key:"Default",get:function e(){return le}}]);return a}();m["default"](document).on(De,Re,Ue._dataApiClickHandler),m["default"](window).on(Te,function(){var e=[].slice.call(document.querySelectorAll(Be));for(var t=0,n=e.length;t<n;t++){var i=m["default"](e[t]);Ue._jQueryInterface.call(i,i.data())}}),m["default"].fn[J]=Ue._jQueryInterface,m["default"].fn[J].Constructor=Ue,m["default"].fn[J].noConflict=function(){m["default"].fn[J]=ie;return Ue._jQueryInterface};var ze="collapse",Ye="4.6.0",Ke="bs.collapse",Ge="."+Ke,Qe=".data-api",Xe=m["default"].fn[ze],Ve={toggle:true,parent:""},Je={toggle:"boolean",parent:"(string|element)"},Ze="show"+Ge,et="shown"+Ge,tt="hide"+Ge,nt="hidden"+Ge,it="click"+Ge+Qe,rt="show",ot="collapse",at="collapsing",st="collapsed",lt="width",ut="height",ct=".show, .collapsing",ft='[data-toggle="collapse"]',dt=function(){function c(t,e){this._isTransitioning=false;this._element=t;this._config=this._getConfig(e);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]')));var n=[].slice.call(document.querySelectorAll(ft));for(var i=0,r=n.length;i<r;i++){var o=n[i];var a=v.getSelectorFromElement(o);var s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});if(a!==null&&s.length>0){this._selector=a;this._triggerArray.push(o)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var e=c.prototype;e.toggle=function e(){if(m["default"](this._element).hasClass(rt)){this.hide()}else{this.show()}};e.show=function e(){var t=this;if(this._isTransitioning||m["default"](this._element).hasClass(rt)){return}var n;var i;if(this._parent){n=[].slice.call(this._parent.querySelectorAll(ct)).filter(function(e){if(typeof t._config.parent==="string"){return e.getAttribute("data-parent")===t._config.parent}return e.classList.contains(ot)});if(n.length===0){n=null}}if(n){i=m["default"](n).not(this._selector).data(Ke);if(i&&i._isTransitioning){return}}var r=m["default"].Event(Ze);m["default"](this._element).trigger(r);if(r.isDefaultPrevented()){return}if(n){c._jQueryInterface.call(m["default"](n).not(this._selector),"hide");if(!i){m["default"](n).data(Ke,null)}}var o=this._getDimension();m["default"](this._element).removeClass(ot).addClass(at);this._element.style[o]=0;if(this._triggerArray.length){m["default"](this._triggerArray).removeClass(st).attr("aria-expanded",true)}this.setTransitioning(true);var a=function e(){m["default"](t._element).removeClass(at).addClass(ot+" "+rt);t._element.style[o]="";t.setTransitioning(false);m["default"](t._element).trigger(et)};var s=o[0].toUpperCase()+o.slice(1);var l="scroll"+s;var u=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,a).emulateTransitionEnd(u);this._element.style[o]=this._element[l]+"px"};e.hide=function e(){var t=this;if(this._isTransitioning||!m["default"](this._element).hasClass(rt)){return}var n=m["default"].Event(tt);m["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px";v.reflow(this._element);m["default"](this._element).addClass(at).removeClass(ot+" "+rt);var r=this._triggerArray.length;if(r>0){for(var o=0;o<r;o++){var a=this._triggerArray[o];var s=v.getSelectorFromElement(a);if(s!==null){var l=m["default"]([].slice.call(document.querySelectorAll(s)));if(!l.hasClass(rt)){m["default"](a).addClass(st).attr("aria-expanded",false)}}}}this.setTransitioning(true);var u=function e(){t.setTransitioning(false);m["default"](t._element).removeClass(at).addClass(ot).trigger(nt)};this._element.style[i]="";var c=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,u).emulateTransitionEnd(c)};e.setTransitioning=function e(t){this._isTransitioning=t};e.dispose=function e(){m["default"].removeData(this._element,Ke);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null};e._getConfig=function e(t){t=s({},Ve,t);t.toggle=Boolean(t.toggle);v.typeCheckConfig(ze,t,Je);return t};e._getDimension=function e(){var t=m["default"](this._element).hasClass(lt);return t?lt:ut};e._getParent=function e(){var n=this;var t;if(v.isElement(this._config.parent)){t=this._config.parent;if(typeof this._config.parent.jquery!=="undefined"){t=this._config.parent[0]}}else{t=document.querySelector(this._config.parent)}var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';var r=[].slice.call(t.querySelectorAll(i));m["default"](r).each(function(e,t){n._addAriaAndCollapsedClass(c._getTargetFromElement(t),[t])});return t};e._addAriaAndCollapsedClass=function e(t,n){var i=m["default"](t).hasClass(rt);if(n.length){m["default"](n).toggleClass(st,!i).attr("aria-expanded",i)}};c._getTargetFromElement=function e(t){var n=v.getSelectorFromElement(t);return n?document.querySelector(n):null};c._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this);var t=e.data(Ke);var n=s({},Ve,e.data(),typeof i==="object"&&i?i:{});if(!t&&n.toggle&&typeof i==="string"&&/show|hide/.test(i)){n.toggle=false}if(!t){t=new c(this,n);e.data(Ke,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i]()}})};o(c,null,[{key:"VERSION",get:function e(){return Ye}},{key:"Default",get:function e(){return Ve}}]);return c}();m["default"](document).on(it,ft,function(e){if(e.currentTarget.tagName==="A"){e.preventDefault()}var i=m["default"](this);var t=v.getSelectorFromElement(this);var n=[].slice.call(document.querySelectorAll(t));m["default"](n).each(function(){var e=m["default"](this);var t=e.data(Ke);var n=t?"toggle":i.data();dt._jQueryInterface.call(e,n)})}),m["default"].fn[ze]=dt._jQueryInterface,m["default"].fn[ze].Constructor=dt,m["default"].fn[ze].noConflict=function(){m["default"].fn[ze]=Xe;return dt._jQueryInterface};var pt="dropdown",ht="4.6.0",mt="bs.dropdown",gt="."+mt,vt=".data-api",yt=m["default"].fn[pt],bt=27,wt=32,_t=9,Ct=38,xt=40,Et=3,Tt=new RegExp(Ct+"|"+xt+"|"+bt),Dt="hide"+gt,St="hidden"+gt,kt="show"+gt,At="shown"+gt,Ot="click"+gt,It="click"+gt+vt,Mt="keydown"+gt+vt,Nt="keyup"+gt+vt,jt="disabled",Lt="show",Pt="dropup",$t="dropright",Ht="dropleft",Ft="dropdown-menu-right",qt="position-static",Rt='[data-toggle="dropdown"]',Bt=".dropdown form",Wt=".dropdown-menu",Ut=".navbar-nav",zt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Yt="top-start",Kt="top-end",Gt="bottom-start",Qt="bottom-end",Xt="right-start",Vt="left-start",Jt={offset:0,flip:true,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function c(e,t){this._element=e;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var e=c.prototype;e.toggle=function e(){if(this._element.disabled||m["default"](this._element).hasClass(jt)){return}var t=m["default"](this._menu).hasClass(Lt);c._clearMenus();if(t){return}this.show(true)};e.show=function e(t){if(t===void 0){t=false}if(this._element.disabled||m["default"](this._element).hasClass(jt)||m["default"](this._menu).hasClass(Lt)){return}var n={relatedTarget:this._element};var i=m["default"].Event(kt,n);var r=c._getParentFromElement(this._element);m["default"](r).trigger(i);if(i.isDefaultPrevented()){return}if(!this._inNavbar&&t){if(typeof d["default"]==="undefined"){throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)")}var o=this._element;if(this._config.reference==="parent"){o=r}else if(v.isElement(this._config.reference)){o=this._config.reference;if(typeof this._config.reference.jquery!=="undefined"){o=this._config.reference[0]}}if(this._config.boundary!=="scrollParent"){m["default"](r).addClass(qt)}this._popper=new d["default"](o,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&m["default"](r).closest(Ut).length===0){m["default"](document.body).children().on("mouseover",null,m["default"].noop)}this._element.focus();this._element.setAttribute("aria-expanded",true);m["default"](this._menu).toggleClass(Lt);m["default"](r).toggleClass(Lt).trigger(m["default"].Event(At,n))};e.hide=function e(){if(this._element.disabled||m["default"](this._element).hasClass(jt)||!m["default"](this._menu).hasClass(Lt)){return}var t={relatedTarget:this._element};var n=m["default"].Event(Dt,t);var i=c._getParentFromElement(this._element);m["default"](i).trigger(n);if(n.isDefaultPrevented()){return}if(this._popper){this._popper.destroy()}m["default"](this._menu).toggleClass(Lt);m["default"](i).toggleClass(Lt).trigger(m["default"].Event(St,t))};e.dispose=function e(){m["default"].removeData(this._element,mt);m["default"](this._element).off(gt);this._element=null;this._menu=null;if(this._popper!==null){this._popper.destroy();this._popper=null}};e.update=function e(){this._inNavbar=this._detectNavbar();if(this._popper!==null){this._popper.scheduleUpdate()}};e._addEventListeners=function e(){var t=this;m["default"](this._element).on(Ot,function(e){e.preventDefault();e.stopPropagation();t.toggle()})};e._getConfig=function e(t){t=s({},this.constructor.Default,m["default"](this._element).data(),t);v.typeCheckConfig(pt,t,this.constructor.DefaultType);return t};e._getMenuElement=function e(){if(!this._menu){var t=c._getParentFromElement(this._element);if(t){this._menu=t.querySelector(Wt)}}return this._menu};e._getPlacement=function e(){var t=m["default"](this._element.parentNode);var n=Gt;if(t.hasClass(Pt)){n=m["default"](this._menu).hasClass(Ft)?Kt:Yt}else if(t.hasClass($t)){n=Xt}else if(t.hasClass(Ht)){n=Vt}else if(m["default"](this._menu).hasClass(Ft)){n=Qt}return n};e._detectNavbar=function e(){return m["default"](this._element).closest(".navbar").length>0};e._getOffset=function e(){var t=this;var n={};if(typeof this._config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{});return e}}else{n.offset=this._config.offset}return n};e._getPopperConfig=function e(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){t.modifiers.applyStyle={enabled:false}}return s({},t,this._config.popperConfig)};c._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this).data(mt);var t=typeof n==="object"?n:null;if(!e){e=new c(this,t);m["default"](this).data(mt,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};c._clearMenus=function e(t){if(t&&(t.which===Et||t.type==="keyup"&&t.which!==_t)){return}var n=[].slice.call(document.querySelectorAll(Rt));for(var i=0,r=n.length;i<r;i++){var o=c._getParentFromElement(n[i]);var a=m["default"](n[i]).data(mt);var s={relatedTarget:n[i]};if(t&&t.type==="click"){s.clickEvent=t}if(!a){continue}var l=a._menu;if(!m["default"](o).hasClass(Lt)){continue}if(t&&(t.type==="click"&&/input|textarea/i.test(t.target.tagName)||t.type==="keyup"&&t.which===_t)&&m["default"].contains(o,t.target)){continue}var u=m["default"].Event(Dt,s);m["default"](o).trigger(u);if(u.isDefaultPrevented()){continue}if("ontouchstart"in document.documentElement){m["default"](document.body).children().off("mouseover",null,m["default"].noop)}n[i].setAttribute("aria-expanded","false");if(a._popper){a._popper.destroy()}m["default"](l).removeClass(Lt);m["default"](o).removeClass(Lt).trigger(m["default"].Event(St,s))}};c._getParentFromElement=function e(t){var n;var i=v.getSelectorFromElement(t);if(i){n=document.querySelector(i)}return n||t.parentNode};c._dataApiKeydownHandler=function e(t){if(/input|textarea/i.test(t.target.tagName)?t.which===wt||t.which!==bt&&(t.which!==xt&&t.which!==Ct||m["default"](t.target).closest(Wt).length):!Tt.test(t.which)){return}if(this.disabled||m["default"](this).hasClass(jt)){return}var n=c._getParentFromElement(this);var i=m["default"](n).hasClass(Lt);if(!i&&t.which===bt){return}t.preventDefault();t.stopPropagation();if(!i||t.which===bt||t.which===wt){if(t.which===bt){m["default"](n.querySelector(Rt)).trigger("focus")}m["default"](this).trigger("click");return}var r=[].slice.call(n.querySelectorAll(zt)).filter(function(e){return m["default"](e).is(":visible")});if(r.length===0){return}var o=r.indexOf(t.target);if(t.which===Ct&&o>0){o--}if(t.which===xt&&o<r.length-1){o++}if(o<0){o=0}r[o].focus()};o(c,null,[{key:"VERSION",get:function e(){return ht}},{key:"Default",get:function e(){return Jt}},{key:"DefaultType",get:function e(){return Zt}}]);return c}();m["default"](document).on(Mt,Rt,en._dataApiKeydownHandler).on(Mt,Wt,en._dataApiKeydownHandler).on(It+" "+Nt,en._clearMenus).on(It,Rt,function(e){e.preventDefault();e.stopPropagation();en._jQueryInterface.call(m["default"](this),"toggle")}).on(It,Bt,function(e){e.stopPropagation()}),m["default"].fn[pt]=en._jQueryInterface,m["default"].fn[pt].Constructor=en,m["default"].fn[pt].noConflict=function(){m["default"].fn[pt]=yt;return en._jQueryInterface};var tn="modal",nn="4.6.0",rn="bs.modal",on="."+rn,an=".data-api",sn=m["default"].fn[tn],ln=27,un={backdrop:true,keyboard:true,focus:true,show:true},cn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fn="hide"+on,dn="hidePrevented"+on,pn="hidden"+on,hn="show"+on,mn="shown"+on,gn="focusin"+on,vn="resize"+on,yn="click.dismiss"+on,bn="keydown.dismiss"+on,wn="mouseup.dismiss"+on,_n="mousedown.dismiss"+on,Cn="click"+on+an,xn="modal-dialog-scrollable",En="modal-scrollbar-measure",Tn="modal-backdrop",Dn="modal-open",Sn="fade",kn="show",An="modal-static",On=".modal-dialog",In=".modal-body",Mn='[data-toggle="modal"]',Nn='[data-dismiss="modal"]',jn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ln=".sticky-top",Pn=function(){function r(e,t){this._config=this._getConfig(t);this._element=e;this._dialog=e.querySelector(On);this._backdrop=null;this._isShown=false;this._isBodyOverflowing=false;this._ignoreBackdropClick=false;this._isTransitioning=false;this._scrollbarWidth=0}var e=r.prototype;e.toggle=function e(t){return this._isShown?this.hide():this.show(t)};e.show=function e(t){var n=this;if(this._isShown||this._isTransitioning){return}if(m["default"](this._element).hasClass(Sn)){this._isTransitioning=true}var i=m["default"].Event(hn,{relatedTarget:t});m["default"](this._element).trigger(i);if(this._isShown||i.isDefaultPrevented()){return}this._isShown=true;this._checkScrollbar();this._setScrollbar();this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();m["default"](this._element).on(yn,Nn,function(e){return n.hide(e)});m["default"](this._dialog).on(_n,function(){m["default"](n._element).one(wn,function(e){if(m["default"](e.target).is(n._element)){n._ignoreBackdropClick=true}})});this._showBackdrop(function(){return n._showElement(t)})};e.hide=function e(t){var n=this;if(t){t.preventDefault()}if(!this._isShown||this._isTransitioning){return}var i=m["default"].Event(fn);m["default"](this._element).trigger(i);if(!this._isShown||i.isDefaultPrevented()){return}this._isShown=false;var r=m["default"](this._element).hasClass(Sn);if(r){this._isTransitioning=true}this._setEscapeEvent();this._setResizeEvent();m["default"](document).off(gn);m["default"](this._element).removeClass(kn);m["default"](this._element).off(yn);m["default"](this._dialog).off(_n);if(r){var o=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(o)}else{this._hideModal()}};e.dispose=function e(){[window,this._element,this._dialog].forEach(function(e){return m["default"](e).off(on)});m["default"](document).off(gn);m["default"].removeData(this._element,rn);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null};e.handleUpdate=function e(){this._adjustDialog()};e._getConfig=function e(t){t=s({},un,t);v.typeCheckConfig(tn,t,cn);return t};e._triggerBackdropTransition=function e(){var t=this;var n=m["default"].Event(dn);m["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._element.scrollHeight>document.documentElement.clientHeight;if(!i){this._element.style.overflowY="hidden"}this._element.classList.add(An);var r=v.getTransitionDurationFromElement(this._dialog);m["default"](this._element).off(v.TRANSITION_END);m["default"](this._element).one(v.TRANSITION_END,function(){t._element.classList.remove(An);if(!i){m["default"](t._element).one(v.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,r)}}).emulateTransitionEnd(r);this._element.focus()};e._showElement=function e(t){var n=this;var i=m["default"](this._element).hasClass(Sn);var r=this._dialog?this._dialog.querySelector(In):null;if(!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.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");if(m["default"](this._dialog).hasClass(xn)&&r){r.scrollTop=0}else{this._element.scrollTop=0}if(i){v.reflow(this._element)}m["default"](this._element).addClass(kn);if(this._config.focus){this._enforceFocus()}var o=m["default"].Event(mn,{relatedTarget:t});var a=function e(){if(n._config.focus){n._element.focus()}n._isTransitioning=false;m["default"](n._element).trigger(o)};if(i){var s=v.getTransitionDurationFromElement(this._dialog);m["default"](this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else{a()}};e._enforceFocus=function e(){var t=this;m["default"](document).off(gn).on(gn,function(e){if(document!==e.target&&t._element!==e.target&&m["default"](t._element).has(e.target).length===0){t._element.focus()}})};e._setEscapeEvent=function e(){var t=this;if(this._isShown){m["default"](this._element).on(bn,function(e){if(t._config.keyboard&&e.which===ln){e.preventDefault();t.hide()}else if(!t._config.keyboard&&e.which===ln){t._triggerBackdropTransition()}})}else if(!this._isShown){m["default"](this._element).off(bn)}};e._setResizeEvent=function e(){var t=this;if(this._isShown){m["default"](window).on(vn,function(e){return t.handleUpdate(e)})}else{m["default"](window).off(vn)}};e._hideModal=function e(){var t=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._showBackdrop(function(){m["default"](document.body).removeClass(Dn);t._resetAdjustments();t._resetScrollbar();m["default"](t._element).trigger(pn)})};e._removeBackdrop=function e(){if(this._backdrop){m["default"](this._backdrop).remove();this._backdrop=null}};e._showBackdrop=function e(t){var n=this;var i=m["default"](this._element).hasClass(Sn)?Sn:"";if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=Tn;if(i){this._backdrop.classList.add(i)}m["default"](this._backdrop).appendTo(document.body);m["default"](this._element).on(yn,function(e){if(n._ignoreBackdropClick){n._ignoreBackdropClick=false;return}if(e.target!==e.currentTarget){return}if(n._config.backdrop==="static"){n._triggerBackdropTransition()}else{n.hide()}});if(i){v.reflow(this._backdrop)}m["default"](this._backdrop).addClass(kn);if(!t){return}if(!i){t();return}var r=v.getTransitionDurationFromElement(this._backdrop);m["default"](this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){m["default"](this._backdrop).removeClass(kn);var o=function e(){n._removeBackdrop();if(t){t()}};if(m["default"](this._element).hasClass(Sn)){var a=v.getTransitionDurationFromElement(this._backdrop);m["default"](this._backdrop).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}}else if(t){t()}};e._adjustDialog=function e(){var t=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&t){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!t){this._element.style.paddingRight=this._scrollbarWidth+"px"}};e._resetAdjustments=function e(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};e._checkScrollbar=function e(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()};e._setScrollbar=function e(){var r=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(jn));var n=[].slice.call(document.querySelectorAll(Ln));m["default"](t).each(function(e,t){var n=t.style.paddingRight;var i=m["default"](t).css("padding-right");m["default"](t).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")});m["default"](n).each(function(e,t){var n=t.style.marginRight;var i=m["default"](t).css("margin-right");m["default"](t).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var i=document.body.style.paddingRight;var o=m["default"](document.body).css("padding-right");m["default"](document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}m["default"](document.body).addClass(Dn)};e._resetScrollbar=function e(){var t=[].slice.call(document.querySelectorAll(jn));m["default"](t).each(function(e,t){var n=m["default"](t).data("padding-right");m["default"](t).removeData("padding-right");t.style.paddingRight=n?n:""});var n=[].slice.call(document.querySelectorAll(""+Ln));m["default"](n).each(function(e,t){var n=m["default"](t).data("margin-right");if(typeof n!=="undefined"){m["default"](t).css("margin-right",n).removeData("margin-right")}});var i=m["default"](document.body).data("padding-right");m["default"](document.body).removeData("padding-right");document.body.style.paddingRight=i?i:""};e._getScrollbarWidth=function e(){var t=document.createElement("div");t.className=En;document.body.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;document.body.removeChild(t);return n};r._jQueryInterface=function e(n,i){return this.each(function(){var e=m["default"](this).data(rn);var t=s({},un,m["default"](this).data(),typeof n==="object"&&n?n:{});if(!e){e=new r(this,t);m["default"](this).data(rn,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n](i)}else if(t.show){e.show(i)}})};o(r,null,[{key:"VERSION",get:function e(){return nn}},{key:"Default",get:function e(){return un}}]);return r}();m["default"](document).on(Cn,Mn,function(e){var t=this;var n;var i=v.getSelectorFromElement(this);if(i){n=document.querySelector(i)}var r=m["default"](n).data(rn)?"toggle":s({},m["default"](n).data(),m["default"](this).data());if(this.tagName==="A"||this.tagName==="AREA"){e.preventDefault()}var o=m["default"](n).one(hn,function(e){if(e.isDefaultPrevented()){return}o.one(pn,function(){if(m["default"](t).is(":visible")){t.focus()}})});Pn._jQueryInterface.call(m["default"](n),r,this)}),m["default"].fn[tn]=Pn._jQueryInterface,m["default"].fn[tn].Constructor=Pn,m["default"].fn[tn].noConflict=function(){m["default"].fn[tn]=sn;return Pn._jQueryInterface};var $n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Hn,Fn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},qn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Rn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Bn(e,t){var n=e.nodeName.toLowerCase();if(t.indexOf(n)!==-1){if($n.indexOf(n)!==-1){return Boolean(e.nodeValue.match(qn)||e.nodeValue.match(Rn))}return true}var i=t.filter(function(e){return e instanceof RegExp});for(var r=0,o=i.length;r<o;r++){if(n.match(i[r])){return true}}return false}function Wn(e,s,t){if(e.length===0){return e}if(t&&typeof t==="function"){return t(e)}var n=new window.DOMParser;var i=n.parseFromString(e,"text/html");var l=Object.keys(s);var u=[].slice.call(i.body.querySelectorAll("*"));var r=function e(t,n){var i=u[t];var r=i.nodeName.toLowerCase();if(l.indexOf(i.nodeName.toLowerCase())===-1){i.parentNode.removeChild(i);return"continue"}var o=[].slice.call(i.attributes);var a=[].concat(s["*"]||[],s[r]||[]);o.forEach(function(e){if(!Bn(e,a)){i.removeAttribute(e.nodeName)}})};for(var o=0,a=u.length;o<a;o++){var c=r(o);if(c==="continue")continue}return i.body.innerHTML}var Un="tooltip",zn="4.6.0",Yn="bs.tooltip",Kn="."+Yn,Gn=m["default"].fn[Un],Qn="bs-tooltip",Xn=new RegExp("(^|\\s)"+Qn+"\\S+","g"),Vn=["sanitize","whiteList","sanitizeFn"],Jn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Zn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ei={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:true,sanitizeFn:null,whiteList:Fn,popperConfig:null},ti="show",ni="out",ii={HIDE:"hide"+Kn,HIDDEN:"hidden"+Kn,SHOW:"show"+Kn,SHOWN:"shown"+Kn,INSERTED:"inserted"+Kn,CLICK:"click"+Kn,FOCUSIN:"focusin"+Kn,FOCUSOUT:"focusout"+Kn,MOUSEENTER:"mouseenter"+Kn,MOUSELEAVE:"mouseleave"+Kn},ri="fade",oi="show",ai=".tooltip-inner",si=".arrow",li="hover",ui="focus",ci="click",fi="manual",di=function(){function r(e,t){if(typeof d["default"]==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=e;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var e=r.prototype;e.enable=function e(){this._isEnabled=true};e.disable=function e(){this._isEnabled=false};e.toggleEnabled=function e(){this._isEnabled=!this._isEnabled};e.toggle=function e(t){if(!this._isEnabled){return}if(t){var n=this.constructor.DATA_KEY;var i=m["default"](t.currentTarget).data(n);if(!i){i=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(n,i)}i._activeTrigger.click=!i._activeTrigger.click;if(i._isWithActiveTrigger()){i._enter(null,i)}else{i._leave(null,i)}}else{if(m["default"](this.getTipElement()).hasClass(oi)){this._leave(null,this);return}this._enter(null,this)}};e.dispose=function e(){clearTimeout(this._timeout);m["default"].removeData(this.element,this.constructor.DATA_KEY);m["default"](this.element).off(this.constructor.EVENT_KEY);m["default"](this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);if(this.tip){m["default"](this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};e.show=function e(){var n=this;if(m["default"](this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var t=m["default"].Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){m["default"](this.element).trigger(t);var i=v.findShadowRoot(this.element);var r=m["default"].contains(i!==null?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r){return}var o=this.getTipElement();var a=v.getUID(this.constructor.NAME);o.setAttribute("id",a);this.element.setAttribute("aria-describedby",a);this.setContent();if(this.config.animation){m["default"](o).addClass(ri)}var s=typeof this.config.placement==="function"?this.config.placement.call(this,o,this.element):this.config.placement;var l=this._getAttachment(s);this.addAttachmentClass(l);var u=this._getContainer();m["default"](o).data(this.constructor.DATA_KEY,this);if(!m["default"].contains(this.element.ownerDocument.documentElement,this.tip)){m["default"](o).appendTo(u)}m["default"](this.element).trigger(this.constructor.Event.INSERTED);this._popper=new d["default"](this.element,o,this._getPopperConfig(l));m["default"](o).addClass(oi);m["default"](o).addClass(this.config.customClass);if("ontouchstart"in document.documentElement){m["default"](document.body).children().on("mouseover",null,m["default"].noop)}var c=function e(){if(n.config.animation){n._fixTransition()}var t=n._hoverState;n._hoverState=null;m["default"](n.element).trigger(n.constructor.Event.SHOWN);if(t===ni){n._leave(null,n)}};if(m["default"](this.tip).hasClass(ri)){var f=v.getTransitionDurationFromElement(this.tip);m["default"](this.tip).one(v.TRANSITION_END,c).emulateTransitionEnd(f)}else{c()}}};e.hide=function e(t){var n=this;var i=this.getTipElement();var r=m["default"].Event(this.constructor.Event.HIDE);var o=function e(){if(n._hoverState!==ti&&i.parentNode){i.parentNode.removeChild(i)}n._cleanTipClass();n.element.removeAttribute("aria-describedby");m["default"](n.element).trigger(n.constructor.Event.HIDDEN);if(n._popper!==null){n._popper.destroy()}if(t){t()}};m["default"](this.element).trigger(r);if(r.isDefaultPrevented()){return}m["default"](i).removeClass(oi);if("ontouchstart"in document.documentElement){m["default"](document.body).children().off("mouseover",null,m["default"].noop)}this._activeTrigger[ci]=false;this._activeTrigger[ui]=false;this._activeTrigger[li]=false;if(m["default"](this.tip).hasClass(ri)){var a=v.getTransitionDurationFromElement(i);m["default"](i).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}this._hoverState=""};e.update=function e(){if(this._popper!==null){this._popper.scheduleUpdate()}};e.isWithContent=function e(){return Boolean(this.getTitle())};e.addAttachmentClass=function e(t){m["default"](this.getTipElement()).addClass(Qn+"-"+t)};e.getTipElement=function e(){this.tip=this.tip||m["default"](this.config.template)[0];return this.tip};e.setContent=function e(){var t=this.getTipElement();this.setElementContent(m["default"](t.querySelectorAll(ai)),this.getTitle());m["default"](t).removeClass(ri+" "+oi)};e.setElementContent=function e(t,n){if(typeof n==="object"&&(n.nodeType||n.jquery)){if(this.config.html){if(!m["default"](n).parent().is(t)){t.empty().append(n)}}else{t.text(m["default"](n).text())}return}if(this.config.html){if(this.config.sanitize){n=Wn(n,this.config.whiteList,this.config.sanitizeFn)}t.html(n)}else{t.text(n)}};e.getTitle=function e(){var t=this.element.getAttribute("data-original-title");if(!t){t=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return t};e._getPopperConfig=function e(t){var n=this;var i={placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:si},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function e(t){if(t.originalPlacement!==t.placement){n._handlePopperPlacementChange(t)}},onUpdate:function e(t){return n._handlePopperPlacementChange(t)}};return s({},i,this.config.popperConfig)};e._getOffset=function e(){var t=this;var n={};if(typeof this.config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{});return e}}else{n.offset=this.config.offset}return n};e._getContainer=function e(){if(this.config.container===false){return document.body}if(v.isElement(this.config.container)){return m["default"](this.config.container)}return m["default"](document).find(this.config.container)};e._getAttachment=function e(t){return Zn[t.toUpperCase()]};e._setListeners=function e(){var i=this;var t=this.config.trigger.split(" ");t.forEach(function(e){if(e==="click"){m["default"](i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)})}else if(e!==fi){var t=e===li?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN;var n=e===li?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;m["default"](i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}});this._hideModalHandler=function(){if(i.element){i.hide()}};m["default"](this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);if(this.config.selector){this.config=s({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};e._fixTitle=function e(){var t=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||t!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};e._enter=function e(t,n){var i=this.constructor.DATA_KEY;n=n||m["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusin"?ui:li]=true}if(m["default"](n.getTipElement()).hasClass(oi)||n._hoverState===ti){n._hoverState=ti;return}clearTimeout(n._timeout);n._hoverState=ti;if(!n.config.delay||!n.config.delay.show){n.show();return}n._timeout=setTimeout(function(){if(n._hoverState===ti){n.show()}},n.config.delay.show)};e._leave=function e(t,n){var i=this.constructor.DATA_KEY;n=n||m["default"](t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());m["default"](t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusout"?ui:li]=false}if(n._isWithActiveTrigger()){return}clearTimeout(n._timeout);n._hoverState=ni;if(!n.config.delay||!n.config.delay.hide){n.hide();return}n._timeout=setTimeout(function(){if(n._hoverState===ni){n.hide()}},n.config.delay.hide)};e._isWithActiveTrigger=function e(){for(var t in this._activeTrigger){if(this._activeTrigger[t]){return true}}return false};e._getConfig=function e(t){var n=m["default"](this.element).data();Object.keys(n).forEach(function(e){if(Vn.indexOf(e)!==-1){delete n[e]}});t=s({},this.constructor.Default,n,typeof t==="object"&&t?t:{});if(typeof t.delay==="number"){t.delay={show:t.delay,hide:t.delay}}if(typeof t.title==="number"){t.title=t.title.toString()}if(typeof t.content==="number"){t.content=t.content.toString()}v.typeCheckConfig(Un,t,this.constructor.DefaultType);if(t.sanitize){t.template=Wn(t.template,t.whiteList,t.sanitizeFn)}return t};e._getDelegateConfig=function e(){var t={};if(this.config){for(var n in this.config){if(this.constructor.Default[n]!==this.config[n]){t[n]=this.config[n]}}}return t};e._cleanTipClass=function e(){var t=m["default"](this.getTipElement());var n=t.attr("class").match(Xn);if(n!==null&&n.length){t.removeClass(n.join(""))}};e._handlePopperPlacementChange=function e(t){this.tip=t.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(t.placement))};e._fixTransition=function e(){var t=this.getTipElement();var n=this.config.animation;if(t.getAttribute("x-placement")!==null){return}m["default"](t).removeClass(ri);this.config.animation=false;this.hide();this.show();this.config.animation=n};r._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this);var t=e.data(Yn);var n=typeof i==="object"&&i;if(!t&&/dispose|hide/.test(i)){return}if(!t){t=new r(this,n);e.data(Yn,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i]()}})};o(r,null,[{key:"VERSION",get:function e(){return zn}},{key:"Default",get:function e(){return ei}},{key:"NAME",get:function e(){return Un}},{key:"DATA_KEY",get:function e(){return Yn}},{key:"Event",get:function e(){return ii}},{key:"EVENT_KEY",get:function e(){return Kn}},{key:"DefaultType",get:function e(){return Jn}}]);return r}();m["default"].fn[Un]=di._jQueryInterface,m["default"].fn[Un].Constructor=di,m["default"].fn[Un].noConflict=function(){m["default"].fn[Un]=Gn;return di._jQueryInterface};var pi="popover",hi="4.6.0",mi="bs.popover",gi="."+mi,vi=m["default"].fn[pi],yi="bs-popover",bi=new RegExp("(^|\\s)"+yi+"\\S+","g"),wi=s({},di.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>'}),_i=s({},di.DefaultType,{content:"(string|element|function)"}),Ci="fade",xi="show",Ei=".popover-header",Ti=".popover-body",Di={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Si=function(e){a(i,e);function i(){return e.apply(this,arguments)||this}var t=i.prototype;t.isWithContent=function e(){return this.getTitle()||this._getContent()};t.addAttachmentClass=function e(t){m["default"](this.getTipElement()).addClass(yi+"-"+t)};t.getTipElement=function e(){this.tip=this.tip||m["default"](this.config.template)[0];return this.tip};t.setContent=function e(){var t=m["default"](this.getTipElement());this.setElementContent(t.find(Ei),this.getTitle());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(Ti),n);t.removeClass(Ci+" "+xi)};t._getContent=function e(){return this.element.getAttribute("data-content")||this.config.content};t._cleanTipClass=function e(){var t=m["default"](this.getTipElement());var n=t.attr("class").match(bi);if(n!==null&&n.length>0){t.removeClass(n.join(""))}};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this).data(mi);var t=typeof n==="object"?n:null;if(!e&&/dispose|hide/.test(n)){return}if(!e){e=new i(this,t);m["default"](this).data(mi,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return hi}},{key:"Default",get:function e(){return wi}},{key:"NAME",get:function e(){return pi}},{key:"DATA_KEY",get:function e(){return mi}},{key:"Event",get:function e(){return Di}},{key:"EVENT_KEY",get:function e(){return gi}},{key:"DefaultType",get:function e(){return _i}}]);return i}(di);m["default"].fn[pi]=Si._jQueryInterface,m["default"].fn[pi].Constructor=Si,m["default"].fn[pi].noConflict=function(){m["default"].fn[pi]=vi;return Si._jQueryInterface};var ki="scrollspy",Ai="4.6.0",Oi="bs.scrollspy",Ii="."+Oi,Mi=".data-api",Ni=m["default"].fn[ki],ji={offset:10,method:"auto",target:""},Li={offset:"number",method:"string",target:"(string|element)"},Pi="activate"+Ii,$i="scroll"+Ii,Hi="load"+Ii+Mi,Fi="dropdown-item",qi="active",Ri='[data-spy="scroll"]',Bi=".nav, .list-group",Wi=".nav-link",Ui=".nav-item",zi=".list-group-item",Yi=".dropdown",Ki=".dropdown-item",Gi=".dropdown-toggle",Qi="offset",Xi="position",Vi=function(){function i(e,t){var n=this;this._element=e;this._scrollElement=e.tagName==="BODY"?window:e;this._config=this._getConfig(t);this._selector=this._config.target+" "+Wi+","+(this._config.target+" "+zi+",")+(this._config.target+" "+Ki);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;m["default"](this._scrollElement).on($i,function(e){return n._process(e)});this.refresh();this._process()}var e=i.prototype;e.refresh=function e(){var t=this;var n=this._scrollElement===this._scrollElement.window?Qi:Xi;var r=this._config.method==="auto"?n:this._config.method;var o=r===Xi?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var i=[].slice.call(document.querySelectorAll(this._selector));i.map(function(e){var t;var n=v.getSelectorFromElement(e);if(n){t=document.querySelector(n)}if(t){var i=t.getBoundingClientRect();if(i.width||i.height){return[m["default"](t)[r]().top+o,n]}}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]);t._targets.push(e[1])})};e.dispose=function e(){m["default"].removeData(this._element,Oi);m["default"](this._scrollElement).off(Ii);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};e._getConfig=function e(t){t=s({},ji,typeof t==="object"&&t?t:{});if(typeof t.target!=="string"&&v.isElement(t.target)){var n=m["default"](t.target).attr("id");if(!n){n=v.getUID(ki);m["default"](t.target).attr("id",n)}t.target="#"+n}v.typeCheckConfig(ki,t,Li);return t};e._getScrollTop=function e(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};e._getScrollHeight=function e(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};e._getOffsetHeight=function e(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};e._process=function e(){var t=this._getScrollTop()+this._config.offset;var n=this._getScrollHeight();var i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n){this.refresh()}if(t>=i){var r=this._targets[this._targets.length-1];if(this._activeTarget!==r){this._activate(r)}return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(var o=this._offsets.length;o--;){var a=this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]==="undefined"||t<this._offsets[o+1]);if(a){this._activate(this._targets[o])}}};e._activate=function e(t){this._activeTarget=t;this._clear();var n=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=m["default"]([].slice.call(document.querySelectorAll(n.join(","))));if(i.hasClass(Fi)){i.closest(Yi).find(Gi).addClass(qi);i.addClass(qi)}else{i.addClass(qi);i.parents(Bi).prev(Wi+", "+zi).addClass(qi);i.parents(Bi).prev(Ui).children(Wi).addClass(qi)}m["default"](this._scrollElement).trigger(Pi,{relatedTarget:t})};e._clear=function e(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(qi)}).forEach(function(e){return e.classList.remove(qi)})};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this).data(Oi);var t=typeof n==="object"&&n;if(!e){e=new i(this,t);m["default"](this).data(Oi,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return Ai}},{key:"Default",get:function e(){return ji}}]);return i}();m["default"](window).on(Hi,function(){var e=[].slice.call(document.querySelectorAll(Ri));var t=e.length;for(var n=t;n--;){var i=m["default"](e[n]);Vi._jQueryInterface.call(i,i.data())}}),m["default"].fn[ki]=Vi._jQueryInterface,m["default"].fn[ki].Constructor=Vi,m["default"].fn[ki].noConflict=function(){m["default"].fn[ki]=Ni;return Vi._jQueryInterface};var Ji="tab",Zi="4.6.0",er="bs.tab",tr="."+er,nr=".data-api",ir=m["default"].fn[Ji],rr="hide"+tr,or="hidden"+tr,ar="show"+tr,sr="shown"+tr,lr="click"+tr+nr,ur="dropdown-menu",cr="active",fr="disabled",dr="fade",pr="show",hr=".dropdown",mr=".nav, .list-group",gr=".active",vr="> li > .active",yr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',br=".dropdown-toggle",wr="> .dropdown-menu .active",_r=function(){function i(e){this._element=e}var e=i.prototype;e.show=function e(){var i=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&m["default"](this._element).hasClass(cr)||m["default"](this._element).hasClass(fr)){return}var t;var r;var n=m["default"](this._element).closest(mr)[0];var o=v.getSelectorFromElement(this._element);if(n){var a=n.nodeName==="UL"||n.nodeName==="OL"?vr:gr;r=m["default"].makeArray(m["default"](n).find(a));r=r[r.length-1]}var s=m["default"].Event(rr,{relatedTarget:this._element});var l=m["default"].Event(ar,{relatedTarget:r});if(r){m["default"](r).trigger(s)}m["default"](this._element).trigger(l);if(l.isDefaultPrevented()||s.isDefaultPrevented()){return}if(o){t=document.querySelector(o)}this._activate(this._element,n);var u=function e(){var t=m["default"].Event(or,{relatedTarget:i._element});var n=m["default"].Event(sr,{relatedTarget:r});m["default"](r).trigger(t);m["default"](i._element).trigger(n)};if(t){this._activate(t,t.parentNode,u)}else{u()}};e.dispose=function e(){m["default"].removeData(this._element,er);this._element=null};e._activate=function e(t,n,i){var r=this;var o=n&&(n.nodeName==="UL"||n.nodeName==="OL")?m["default"](n).find(vr):m["default"](n).children(gr);var a=o[0];var s=i&&a&&m["default"](a).hasClass(dr);var l=function e(){return r._transitionComplete(t,a,i)};if(a&&s){var u=v.getTransitionDurationFromElement(a);m["default"](a).removeClass(pr).one(v.TRANSITION_END,l).emulateTransitionEnd(u)}else{l()}};e._transitionComplete=function e(t,n,i){if(n){m["default"](n).removeClass(cr);var r=m["default"](n.parentNode).find(wr)[0];if(r){m["default"](r).removeClass(cr)}if(n.getAttribute("role")==="tab"){n.setAttribute("aria-selected",false)}}m["default"](t).addClass(cr);if(t.getAttribute("role")==="tab"){t.setAttribute("aria-selected",true)}v.reflow(t);if(t.classList.contains(dr)){t.classList.add(pr)}if(t.parentNode&&m["default"](t.parentNode).hasClass(ur)){var o=m["default"](t).closest(hr)[0];if(o){var a=[].slice.call(o.querySelectorAll(br));m["default"](a).addClass(cr)}t.setAttribute("aria-expanded",true)}if(i){i()}};i._jQueryInterface=function e(n){return this.each(function(){var e=m["default"](this);var t=e.data(er);if(!t){t=new i(this);e.data(er,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return Zi}}]);return i}();m["default"](document).on(lr,yr,function(e){e.preventDefault();_r._jQueryInterface.call(m["default"](this),"show")}),m["default"].fn[Ji]=_r._jQueryInterface,m["default"].fn[Ji].Constructor=_r,m["default"].fn[Ji].noConflict=function(){m["default"].fn[Ji]=ir;return _r._jQueryInterface};var Cr="toast",xr="4.6.0",Er="bs.toast",Tr="."+Er,Dr=m["default"].fn[Cr],Sr="click.dismiss"+Tr,kr="hide"+Tr,Ar="hidden"+Tr,Or="show"+Tr,Ir="shown"+Tr,Mr="fade",Nr="hide",jr="show",Lr="showing",Pr={animation:"boolean",autohide:"boolean",delay:"number"},$r={animation:true,autohide:true,delay:500},Hr='[data-dismiss="toast"]',Fr=function(){function r(e,t){this._element=e;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var e=r.prototype;e.show=function e(){var t=this;var n=m["default"].Event(Or);m["default"](this._element).trigger(n);if(n.isDefaultPrevented()){return}this._clearTimeout();if(this._config.animation){this._element.classList.add(Mr)}var i=function e(){t._element.classList.remove(Lr);t._element.classList.add(jr);m["default"](t._element).trigger(Ir);if(t._config.autohide){t._timeout=setTimeout(function(){t.hide()},t._config.delay)}};this._element.classList.remove(Nr);v.reflow(this._element);this._element.classList.add(Lr);if(this._config.animation){var r=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,i).emulateTransitionEnd(r)}else{i()}};e.hide=function e(){if(!this._element.classList.contains(jr)){return}var t=m["default"].Event(kr);m["default"](this._element).trigger(t);if(t.isDefaultPrevented()){return}this._close()};e.dispose=function e(){this._clearTimeout();if(this._element.classList.contains(jr)){this._element.classList.remove(jr)}m["default"](this._element).off(Sr);m["default"].removeData(this._element,Er);this._element=null;this._config=null};e._getConfig=function e(t){t=s({},$r,m["default"](this._element).data(),typeof t==="object"&&t?t:{});v.typeCheckConfig(Cr,t,this.constructor.DefaultType);return t};e._setListeners=function e(){var t=this;m["default"](this._element).on(Sr,Hr,function(){return t.hide()})};e._close=function e(){var t=this;var n=function e(){t._element.classList.add(Nr);m["default"](t._element).trigger(Ar)};this._element.classList.remove(jr);if(this._config.animation){var i=v.getTransitionDurationFromElement(this._element);m["default"](this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(i)}else{n()}};e._clearTimeout=function e(){clearTimeout(this._timeout);this._timeout=null};r._jQueryInterface=function e(i){return this.each(function(){var e=m["default"](this);var t=e.data(Er);var n=typeof i==="object"&&i;if(!t){t=new r(this,n);e.data(Er,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i](this)}})};o(r,null,[{key:"VERSION",get:function e(){return xr}},{key:"DefaultType",get:function e(){return Pr}},{key:"Default",get:function e(){return $r}}]);return r}();m["default"].fn[Cr]=Fr._jQueryInterface,m["default"].fn[Cr].Constructor=Fr,m["default"].fn[Cr].noConflict=function(){m["default"].fn[Cr]=Dr;return Fr._jQueryInterface},e.Alert=I,e.Button=V,e.Carousel=Ue,e.Collapse=dt,e.Dropdown=en,e.Modal=Pn,e.Popover=Si,e.Scrollspy=Vi,e.Tab=_r,e.Toast=Fr,e.Tooltip=di,e.Util=v,Object.defineProperty(e,"__esModule",{value:true})}(t,n(0),n(9))},function(e,t,n){var i,r;(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var y=this.Rails;(function(){(function(){var t=null;y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var i,n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},y.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n=y.$,i=y.csrfToken=function(){var e=document.querySelector("meta[name=csrf-token]");return e&&e.content},r=y.csrfParam=function(){var e=document.querySelector("meta[name=csrf-param]");return e&&e.content};y.CSRFProtection=function(e){var t=i();if(null!=t)return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var t=i(),e=r();if(null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var t,n,r=y.matches,o=window.CustomEvent;"function"!=typeof o&&((o=function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=o.prototype.preventDefault,o.prototype.preventDefault=function(){var e=n.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var i=new o(t,{bubbles:!0,cancelable:!0,detail:n});return e.dispatchEvent(i),!i.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){for(var t=e.target;t instanceof Element&&!r(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var e,t,r,o=y.cspNonce,i=y.CSRFProtection,n=(y.fire,{"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"});y.ajax=function(n){var i;return n=t(n),i=e(n,function(){var e,t=r(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type"));return 2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},t=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==n[e.dataType]&&(e.dataType="*"),e.accept=n[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n=new XMLHttpRequest;return n.open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n)),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},r=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(e){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",o()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(e){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n=document.createElement("a");n.href=location.href,t=document.createElement("a");try{return t.href=e,!((!t.protocol||":"===t.protocol)&&!t.host||n.protocol+"//"+n.host==t.protocol+"//"+t.host)}catch(e){return!0}}}.call(this),function(){var r=y.matches,o=function(e){return Array.prototype.slice.call(e)};y.serializeElement=function(e,t){var n,i=[e];return r(e,"form")&&(i=o(e.elements)),n=[],i.forEach(function(t){if(t.name&&!t.disabled&&!r(t,"fieldset[disabled] *"))return r(t,"select")?o(t.options).forEach(function(e){if(e.selected)return n.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?n.push({name:t.name,value:t.value}):void 0}),t&&n.push(t),n.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?o(e.elements).filter(function(e){return r(e,t)}):o(e.querySelectorAll(t))}}.call(this),function(){var t,r=y.fire,n=y.stopEverything;y.handleConfirm=function(e){if(!t(this))return n(e)},y.confirm=function(e,t){return confirm(e)},t=function(e){var t,n,i=e.getAttribute("data-confirm");if(!i)return!0;if(t=!1,r(e,"confirm")){try{t=y.confirm(i,e)}catch(e){}n=r(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,r,o,a,s,l,u=y.matches,c=y.getData,f=y.setData,d=y.stopEverything,t=y.formElements;y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;if(e instanceof Event){if(l(e))return;t=e.target}else t=e;return u(t,y.linkDisableSelector)?s(t):u(t,y.buttonDisableSelector)||u(t,y.formEnableSelector)?o(t):u(t,y.formSubmitSelector)?a(t):void 0},y.disableElement=function(e){var t=e instanceof Event?e.target:e;return u(t,y.linkDisableSelector)?r(t):u(t,y.buttonDisableSelector)||u(t,y.formDisableSelector)?n(t):u(t,y.formSubmitSelector)?i(t):void 0},r=function(e){var t;if(!c(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),f(e,"ujs:disabled",!0)},s=function(e){var t=c(e,"ujs:enable-with");return null!=t&&(e.innerHTML=t,f(e,"ujs:enable-with",null)),e.removeEventListener("click",d),f(e,"ujs:disabled",null)},i=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;if(!c(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(f(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,f(e,"ujs:disabled",!0)},a=function(e){return t(e,y.formEnableSelector).forEach(o)},o=function(e){var t=c(e,"ujs:enable-with");return null!=t&&(u(e,"button")?e.innerHTML=t:e.value=t,f(e,"ujs:enable-with",null)),e.disabled=!1,f(e,"ujs:disabled",null)},l=function(e){var t,n=null!=(t=e.detail)?t[0]:void 0;return null!=(null!=n?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var s=y.stopEverything;y.handleMethod=function(e){var t,n,i,r,o,a=this.getAttribute("data-method");if(a)return o=y.href(this),n=y.csrfToken(),t=y.csrfParam(),i=document.createElement("form"),r="<input name='_method' value='"+a+"' type='hidden' />",null==t||null==n||y.isCrossDomain(o)||(r+="<input name='"+t+"' value='"+n+"' type='hidden' />"),r+='<input type="submit" />',i.method="post",i.action=o,i.target=this.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),s(e)}}.call(this),function(){var l=[].slice,u=y.matches,c=y.getData,f=y.setData,d=y.fire,p=y.stopEverything,h=y.ajax,m=y.isCrossDomain,g=y.serializeElement,v=function(e){var t=e.getAttribute("data-remote");return null!=t&&"false"!==t};y.handleRemote=function(e){var t,n,i,r,o,a,s=this;return!v(s)||(d(s,"ajax:before")?(a=s.getAttribute("data-with-credentials"),i=s.getAttribute("data-type")||"script",u(s,y.formSubmitSelector)?(t=c(s,"ujs:submit-button"),r=c(s,"ujs:submit-button-formmethod")||s.method,o=c(s,"ujs:submit-button-formaction")||s.getAttribute("action")||location.href,"GET"===r.toUpperCase()&&(o=o.replace(/\?.*$/,"")),"multipart/form-data"===s.enctype?(n=new FormData(s),null!=t&&n.append(t.name,t.value)):n=g(s,t),f(s,"ujs:submit-button",null),f(s,"ujs:submit-button-formmethod",null),f(s,"ujs:submit-button-formaction",null)):n=u(s,y.buttonClickSelector)||u(s,y.inputChangeSelector)?(r=s.getAttribute("data-method"),o=s.getAttribute("data-url"),g(s,s.getAttribute("data-params"))):(r=s.getAttribute("data-method"),o=y.href(s),s.getAttribute("data-params")),h({type:r||"GET",url:o,data:n,dataType:i,beforeSend:function(e,t){return d(s,"ajax:beforeSend",[e,t])?d(s,"ajax:send",[e]):(d(s,"ajax:stopped"),!1)},success:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:success",e)},error:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:error",e)},complete:function(){var e=1<=arguments.length?l.call(arguments,0):[];return d(s,"ajax:complete",e)},crossDomain:m(o),withCredentials:null!=a&&"false"!==a}),p(e)):(d(s,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(e){var t=this,n=t.form;if(n)return t.name&&f(n,"ujs:submit-button",{name:t.name,value:t.value}),f(n,"ujs:formnovalidate-button",t.formNoValidate),f(n,"ujs:submit-button-formaction",t.getAttribute("formaction")),f(n,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t=(this.getAttribute("data-method")||"GET").toUpperCase(),n=this.getAttribute("data-params"),i=(e.metaKey||e.ctrlKey)&&"GET"===t&&!n;if(null!=e.button&&0!==e.button||i)return e.stopImmediatePropagation()}}.call(this),function(){var e=y.fire,t=y.delegate,n=y.getData,i=y.$,r=y.refreshCSRFTokens,o=y.CSRFProtection,a=y.loadCSPNonce,s=y.enableElement,l=y.disableElement,u=y.handleDisabledElement,c=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,p=y.formSubmitButtonClick,h=y.handleMethod;if("undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return o(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return i(y.formEnableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)}),i(y.linkDisableSelector).forEach(function(e){if(n(e,"ujs:disabled"))return s(e)})}),t(document,y.linkDisableSelector,"ajax:complete",s),t(document,y.linkDisableSelector,"ajax:stopped",s),t(document,y.buttonDisableSelector,"ajax:complete",s),t(document,y.buttonDisableSelector,"ajax:stopped",s),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",h),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",u),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",u),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",u),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return l(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",l),t(document,y.formSubmitSelector,"ajax:complete",s),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",u),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",p),document.addEventListener("DOMContentLoaded",r),document.addEventListener("DOMContentLoaded",a),window._rails_loaded=!0},window.Rails===y&&e(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),e.exports?e.exports=y:void 0===(r="function"==typeof(i=y)?i.call(t,n,t,e):i)||(e.exports=r)}).call(this)},function(e,t,n){
/*!
* bsCustomFileInput v1.3.4 (https://github.com/Johann-S/bs-custom-file-input)
* Copyright 2018 - 2020 Johann-S <johann.servoire@gmail.com>
* Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE)
*/
@@ -49,11 +49,11 @@
* Released under the MIT license
* https://js.foundation/
*
* Date: 2020-03-14
*/
-function(n){function f(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320))}function r(){C()}var e,p,w,o,a,h,d,m,_,l,u,C,x,s,E,g,c,v,y,T="sizzle"+ +new Date,b=n.document,D=0,i=0,S=le(),k=le(),A=le(),O=le(),I=function(e,t){return e===t&&(u=!0),0},M={}.hasOwnProperty,t=[],N=t.pop,j=t.push,L=t.push,P=t.slice,$=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+F+"*("+q+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+F+"*\\]",B=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",W=new RegExp(F+"+","g"),U=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),z=new RegExp("^"+F+"*,"+F+"*"),Y=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),K=new RegExp(F+"|>"),G=new RegExp(B),Q=new RegExp("^"+q+"$"),X={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(t=P.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){j.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(t,e,n,i){var r,o,a,s,l,u,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&(C(e),e=e||x,E)){if(11!==d&&(l=te.exec(t)))if(r=l[1]){if(9===d){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&y(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return L.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(r)),n}if(p.qsa&&!O[t+" "]&&(!g||!g.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===d&&(K.test(t)||Y.test(t))){for((f=ne.test(t)&&me(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute("id"))?s=s.replace(re,oe):e.setAttribute("id",s=T)),o=(u=h(t)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+ve(u[o]);c=u.join(",")}try{return L.apply(n,f.querySelectorAll(c)),n}catch(e){O(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function le(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function ue(e){return e[T]=!0,e}function ce(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!V.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!=x&&9===i.nodeType&&i.documentElement&&(s=(x=i).documentElement,E=!a(x),b!=x&&(n=x.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),p.scope=ce(function(e){return s.appendChild(e).appendChild(x.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(x.getElementsByClassName),p.getById=ce(function(e){return s.appendChild(e).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(ie,f);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(ie,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},c=[],g=[],(p.qsa=ee.test(x.querySelectorAll))&&(ce(function(e){var t;s.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(t=x.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==x||e.ownerDocument==b&&y(b,e)?-1:t==x||t.ownerDocument==b&&y(b,t)?1:l?$(l,e)-$(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==x?-1:t==x?1:r?-1:o?1:l?$(l,e)-$(l,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]==b?-1:s[i]==b?1:0}),x},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(C(e),p.matchesSelector&&E&&!O[t+" "]&&(!c||!c.test(t))&&(!g||!g.test(t)))try{var n=v.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){O(t,!0)}return 0<se(t,x,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=x&&C(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=x&&C(e);var n=w.attrHandle[t.toLowerCase()],i=n&&M.call(w.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==i?i:p.attributes||!E?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(I),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return l=null,e},o=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(w=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,f),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=se.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(W," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,m,g){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,f=b&&e.nodeName.toLowerCase(),d=!n&&!b,p=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;l=u="only"===h&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&d){for(p=(s=(i=(r=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===D&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(p=s=0)||l.pop();)if(1===a.nodeType&&++p&&a===e){r[h]=[D,s,p];break}}else if(d&&(p=s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===D&&i[1]),!1===p)for(;(a=++s&&a&&a[u]||(p=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++p||(d&&((r=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[D,p]),a!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=$(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ue(function(e){var i=[],r=[],s=d(e.replace(U,"$1"));return s[T]?ue(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ue(function(t){return function(e){return 0<se(t,e).length}}),contains:ue(function(t){return t=t.replace(ie,f),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return Q.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(ie,f).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:he(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(s,e,t){var l=e.dir,u=e.next,c=u||l,f=t&&"parentNode"===c,d=i++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var i,r,o,a=[D,d];if(n){for(;e=e[l];)if((1===e.nodeType||f)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||f)if(r=(o=e[T]||(e[T]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((i=r[c])&&i[0]===D&&i[1]===d)return a[2]=i[2];if((r[c]=a)[2]=s(e,t,n))return!0}return!1}}function be(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function we(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function _e(p,h,m,g,v,e){return g&&!g[T]&&(g=_e(g)),v&&!v[T]&&(v=_e(v,e)),ue(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:we(c,s,p,n,i),d=m?v||(e?p:u||g)?[]:t:f;if(m&&m(f,d,n,i),g)for(r=we(d,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(d[l[o]]=!(f[l[o]]=a));if(e){if(v||p){if(v){for(r=[],o=d.length;o--;)(a=d[o])&&r.push(f[o]=a);v(null,d=[],r,i)}for(o=d.length;o--;)(a=d[o])&&-1<(r=v?$(e,a):s[o])&&(e[r]=!(t[r]=a))}}else d=we(d===t?d.splice(u,d.length):d),v?v(null,t,d,i):L.apply(t,d)})}function Ce(g,v){function e(e,t,n,i,r){var o,a,s,l=0,u="0",c=e&&[],f=[],d=_,p=e||b&&w.find.TAG("*",r),h=D+=null==d?1:Math.random()||.1,m=p.length;for(r&&(_=t==x||t||r);u!==m&&null!=(o=p[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==x||(C(o),n=!E);s=g[a++];)if(s(o,t||x,n)){i.push(o);break}r&&(D=h)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,f,t,n);if(e){if(0<l)for(;u--;)c[u]||f[u]||(f[u]=N.call(i));f=we(f)}L.apply(i,f),r&&!e&&0<f.length&&1<l+v.length&&se.uniqueSort(i)}return r&&(D=h,_=d),c}var y=0<v.length,b=0<g.length;return y?ue(e):e}return ge.prototype=w.filters=w.pseudos,w.setFilters=new ge,h=se.tokenize=function(e,t){var n,i,r,o,a,s,l,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=w.preFilter;a;){for(o in n&&!(i=z.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Y.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(U," ")}),a=a.slice(n.length)),w.filter)!(i=X[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):k(e,s).slice(0)},d=se.compile=function(e,t){var n,i=[],r=[],o=A[e+" "];if(!o){for(n=(t=t||h(e)).length;n--;)(o=function e(t){for(var r,n,i,o=t.length,a=w.relative[t[0].type],s=a||w.relative[" "],l=a?1:0,u=ye(function(e){return e===r},s,!0),c=ye(function(e){return-1<$(r,e)},s,!0),f=[function(e,t,n){var i=!a&&(n||t!==_)||((r=t).nodeType?u:c)(e,t,n);return r=null,i}];l<o;l++)if(n=w.relative[t[l].type])f=[ye(be(f),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[T]){for(i=++l;i<o&&!w.relative[t[i].type];i++);return _e(1<l&&be(f),1<l&&ve(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(U,"$1"),n,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&ve(t))}f.push(n)}return be(f)}(t[n]))[T]?i.push(o):r.push(o);(o=A(e,Ce(r,i))).selector=e}return o},m=se.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,c=!i&&h(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ie,f),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=X.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((l=w.find[s])&&(i=l(a.matches[0].replace(ie,f),ne.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&ve(o)))return L.apply(n,i),n;break}}return(u||d(e,c))(i,t,!E,n,!t||ne.test(e)&&me(t.parentNode)||t),n},p.sortStable=T.split("").sort(I).join("")===T,p.detectDuplicates=!!u,C(),p.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(x.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(H,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(x);T.find=d,T.expr=d.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=d.uniqueSort,T.text=d.getText,T.isXMLDoc=d.isXML,T.contains=d.contains,T.escapeSelector=d.escape;function p(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&T(e).is(n))break;i.push(e)}return i}function h(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var C=T.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,n,i){return b(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?T.grep(e,function(e){return e===n!==i}):"string"!=typeof n?T.grep(e,function(e){return-1<r.call(n,e)!==i}):T.filter(n,e,i)}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<i;t++)if(T.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)T.find(e,r[t],n);return 1<i?T.uniqueSort(n):n},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&C.test(e)?T(e):e||[],!1).length}});var A,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),S.test(i[1])&&T.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=E.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=T.fn,A=T(E);var I=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&T(e);if(!C.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?r.call(T(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,n){return p(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,n){return p(e,"nextSibling",n)},prevUntil:function(e,t,n){return p(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(i,r){T.fn[i]=function(e,t){var n=T.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=T.filter(t,n)),1<this.length&&(M[i]||T.uniqueSort(n),I.test(i)&&n.reverse()),this.pushStack(n)}});var j=/[^\x20\t\r\n\f]+/g;function L(e){return e}function P(e){throw e}function $(e,t,n,i){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(n):e&&b(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},T.each(e.match(j)||[],function(e,t){n[t]=!0}),n):T.extend({},i);function r(){for(s=s||i.once,a=o=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=l.length,t=!1);i.memory||(t=!1),o=!1,s&&(l=t?[]:"")}var o,t,a,s,l=[],u=[],c=-1,f={add:function(){return l&&(t&&!o&&(c=l.length-1,u.push(t)),function n(e){T.each(e,function(e,t){b(t)?i.unique&&f.has(t)||l.push(t):t&&t.length&&"string"!==_(t)&&n(t)})}(arguments),t&&!o&&r()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<T.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=u=[],t||o||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||r()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},T.extend({Deferred:function(e){var o=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return T.Deferred(function(i){T.each(o,function(e,t){var n=b(r[t[4]])&&r[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,i){var l=0;function u(r,o,a,s){return function(){function e(){var e,t;if(!(r<l)){if((e=a.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,u(l,o,L,s),u(l,o,P,s)):(l++,t.call(e,u(l,o,L,s),u(l,o,P,s),u(l,o,L,o.notifyWith))):(a!==L&&(n=void 0,i=[e]),(s||o.resolveWith)(n,i))}}var n=this,i=arguments,t=s?e:function(){try{e()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(a!==P&&(n=void 0,i=[e]),o.rejectWith(n,i))}};r?t():(T.Deferred.getStackHook&&(t.stackTrace=T.Deferred.getStackHook()),x.setTimeout(t))}}return T.Deferred(function(e){o[0][3].add(u(0,e,b(i)?i:L,e.notifyWith)),o[1][3].add(u(0,e,b(t)?t:L)),o[2][3].add(u(0,e,b(n)?n:P))}).promise()},promise:function(e){return null!=e?T.extend(e,a):a}},s={};return T.each(o,function(e,t){var n=t[2],i=t[5];a[t[1]]=n.add,i&&n.add(function(){r=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){r[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=s.call(arguments),a=T.Deferred();if(n<=1&&($(e,a.done(t(i)).resolve,a.reject,!n),"pending"===a.state()||b(o[i]&&o[i].then)))return a.then();for(;i--;)$(o[i],t(i),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){x.console&&x.console.warn&&e&&H.test(e.name)&&x.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){x.setTimeout(function(){throw e})};var F=T.Deferred();function q(){E.removeEventListener("DOMContentLoaded",q),x.removeEventListener("load",q),T.ready()}T.fn.ready=function(e){return F.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||F.resolveWith(E,[T])}}),T.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?x.setTimeout(T.ready):(E.addEventListener("DOMContentLoaded",q),x.addEventListener("load",q));var R=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===_(n))for(s in r=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,b(i)||(a=!0),u&&(t=a?(t.call(e,i),null):(u=t,function(e,t,n){return u.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},B=/^-ms-/,W=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function z(e){return e.replace(B,"ms-").replace(W,U)}function Y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[z(t)]=n;else for(i in t)r[z(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!T.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var G=new K,Q=new K,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function J(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:X.test(r)?JSON.parse(r):r)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return Q.hasData(e)||G.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),T.fn.extend({data:function(n,e){var t,i,r,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Q.set(this,n)}):R(this,function(e){var t;return o&&void 0===e?void 0!==(t=Q.get(o,n))||void 0!==(t=J(o,n))?t:void 0:void this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=Q.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=z(i.slice(5)),J(o,i,r[i]));G.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),T.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=G.get(e,t),n&&(!i||Array.isArray(n)?i=G.access(e,t,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,r=n.shift(),o=T._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){T.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:T.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each(function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=T.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=G.get(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=E.documentElement,ie=function(e){return T.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(ie=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===T.css(e,"display")};function ae(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return T.css(e,t,"")},l=s(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&ee.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)T.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var se={};function le(e,t){for(var n,i,r,o,a,s,l,u=[],c=0,f=e.length;c<f;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=G.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&oe(i)&&(u[c]=(l=s=a=o=void 0,a=(r=i).ownerDocument,s=r.nodeName,(l=se[s])||(o=a.body.appendChild(a.createElement(s)),l=T.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),se[s]=l)))):"none"!==n&&(u[c]="none",G.set(i,"display",n)));for(c=0;c<f;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}T.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?T(this).show():T(this).hide()})}});var ue,ce,fe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=E.createDocumentFragment().appendChild(E.createElement("div")),(ce=E.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),ue.appendChild(ce),y.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",y.option=!!ue.lastChild;var he={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,"",""]};function me(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&D(e,t)?T.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n<i;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td,y.option||(he.optgroup=he.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function ye(e,t,n,i,r){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===_(o))T.merge(d,o.nodeType?[o]:o);else if(ve.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),l=he[s]||he._default,a.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;T.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(i&&-1<T.inArray(o,i))r&&r.push(o);else if(u=ie(o),a=me(f.appendChild(o),"script"),u&&ge(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function xe(){return!1}function Ee(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=xe;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,r,i,n)})}function De(e,r,o){o?(G.set(e,r,!1),T.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=G.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(T.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),G.set(this,r,i),t=o(this,r),this[r](),i!==(n=G.get(this,r))||t?G.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(G.set(this,r,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,r)&&T.event.add(e,r,Ce)}T.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,f,d,p,h,m,g=G.get(t);if(Y(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(ne,r),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(j)||[""]).length;u--;)p=m=(s=_e.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=T.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,h,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),T.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,p,h,m,g=G.hasData(e)&&G.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=m=(s=_e.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=T.event.special[p]||{},d=l[p=(i?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,i,!0);T.isEmptyObject(l)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=T.event.fix(e),u=(G.get(this,"events")||Object.create(null))[l.type]||[],c=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,u),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?-1<T(r,this).index(u):T.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&D(t,"input")&&De(t,"click",Ce),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&D(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&D(t,"input")&&G.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.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,code:!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(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){T.event.special[e]={setup:function(){return De(this,e,Ee),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){T.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||T.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),T.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){T.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(G.hasData(e)&&(s=G.get(e).events))for(r in G.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)T.event.add(t,r,s[r][n]);Q.hasData(e)&&(o=Q.access(e),a=T.extend({},o),Q.set(t,a))}}function je(n,i,r,o){i=g(i);var e,t,a,s,l,u,c=0,f=n.length,d=f-1,p=i[0],h=b(p);if(h||1<f&&"string"==typeof p&&!y.checkClone&&ke.test(p))return n.each(function(e){var t=n.eq(e);h&&(i[0]=p.call(this,e,t.html())),je(t,i,r,o)});if(f&&(t=(e=ye(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=T.map(me(e,"script"),Ie)).length;c<f;c++)l=e,c!==d&&(l=T.clone(l,!0,!0),s&&T.merge(a,me(l,"script"))),r.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Me),c=0;c<s;c++)l=a[c],pe.test(l.type||"")&&!G.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(Ae,""),l,u))}return n}function Le(e,t,n){for(var i,r=t?T.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(me(i)),i.parentNode&&(n&&ie(i)&&ge(me(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s,l,u,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=me(c),i=0,r=(o=me(e)).length;i<r;i++)s=o[i],l=a[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&fe.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(c),i=0,r=o.length;i<r;i++)Ne(o[i],a[i]);else Ne(e,c);return 0<(a=me(c,"script")).length&&ge(a,!f&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,r=T.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[G.expando]){if(t.events)for(i in t.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,t.handle);n[G.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return R(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Oe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!he[(de.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return je(this,arguments,function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(me(this)),t&&t.replaceChild(e,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){T.fn[e]=function(e){for(var t,n=[],i=T(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),T(i[o])[a](t),l.apply(n,t.get());return this.pushStack(n)}});function Pe(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i}var $e,He,Fe,qe,Re,Be,We,Ue,ze=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=x),t.getComputedStyle(e)},Ke=new RegExp(te.join("|"),"i");function Ge(){var e;Ue&&(We.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ue.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(We).appendChild(Ue),e=x.getComputedStyle(Ue),$e="1%"!==e.top,Be=12===Qe(e.marginLeft),Ue.style.right="60%",qe=36===Qe(e.right),He=36===Qe(e.width),Ue.style.position="absolute",Fe=12===Qe(Ue.offsetWidth/3),ne.removeChild(We),Ue=null)}function Qe(e){return Math.round(parseFloat(e))}function Xe(e,t,n){var i,r,o,a,s=e.style;return(n=n||Ye(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=T.style(e,t)),!y.pixelBoxStyles()&&ze.test(a)&&Ke.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}We=E.createElement("div"),(Ue=E.createElement("div")).style&&(Ue.style.backgroundClip="content-box",Ue.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Ue.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return Ge(),He},pixelBoxStyles:function(){return Ge(),qe},pixelPosition:function(){return Ge(),$e},reliableMarginLeft:function(){return Ge(),Be},scrollboxSize:function(){return Ge(),Fe},reliableTrDimensions:function(){var e,t,n,i;return null==Re&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",ne.appendChild(e).appendChild(t).appendChild(n),i=x.getComputedStyle(t),Re=3<parseInt(i.height),ne.removeChild(e)),Re}}));var Je=["Webkit","Moz","ms"],Ze=E.createElement("div").style,et={};function tt(e){var t=T.cssProps[e]||et[e];return t||(e in Ze?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in Ze)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,it=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var i=ee.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function st(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=T.css(e,n+te[a],!0,r)),i?("content"===n&&(l-=T.css(e,"padding"+te[a],!0,r)),"margin"!==n&&(l-=T.css(e,"border"+te[a]+"Width",!0,r))):(l+=T.css(e,"padding"+te[a],!0,r),"padding"!==n?l+=T.css(e,"border"+te[a]+"Width",!0,r):s+=T.css(e,"border"+te[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function lt(e,t,n){var i=Ye(e),r=(!y.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,i),o=r,a=Xe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&r||!y.reliableTrDimensions()&&D(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===T.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+st(e,t,n||(r?"border":"content"),o,i,a)+"px"}function ut(e,t,n,i,r){return new ut.prototype.init(e,t,n,i,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=z(t),l=it.test(t),u=e.style;if(l||(t=tt(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=ee.exec(n))&&r[1]&&(n=ae(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=z(t);return it.test(t)||(t=tt(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Xe(e,t,i)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),T.each(["height","width"],function(e,l){T.cssHooks[l]={get:function(e,t,n){if(t)return!nt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,l,n):Pe(e,rt,function(){return lt(e,l,n)})},set:function(e,t,n){var i,r=Ye(e),o=!y.scrollboxSize()&&"absolute"===r.position,a=(o||n)&&"border-box"===T.css(e,"boxSizing",!1,r),s=n?st(e,l,n,a,r):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(r[l])-st(e,l,"border",!1,r)-.5)),s&&(i=ee.exec(t))&&"px"!==(i[3]||"px")&&(e.style[l]=t,t=T.css(e,l)),at(0,t,s)}}}),T.cssHooks.marginLeft=Ve(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-Pe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(r,o){T.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+te[t]+o]=i[t]||i[t-2]||i[0];return n}},"margin"!==r&&(T.cssHooks[r+o].set=at)}),T.fn.extend({css:function(e,t){return R(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Ye(e),r=t.length;a<r;a++)o[t[a]]=T.css(e,t[a],!1,i);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)}}),(T.Tween=ut).prototype={constructor:ut,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ut.prototype.init,T.fx.step={};var ct,ft,dt,pt,ht=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ft&&(!1===E.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(gt):x.setTimeout(gt,T.fx.interval),T.fx.tick())}function vt(){return x.setTimeout(function(){ct=void 0}),ct=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=te[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function wt(o,e,t){var n,a,i=0,r=wt.prefilters.length,s=T.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=ct||vt(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(o,[u,n,t]),n<1&&r?t:(r||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:ct||vt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=T.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=z(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=T.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);i<r;i++)if(n=wt.prefilters[i].call(u,o,c,u.opts))return b(n.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return T.map(c,bt,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=b(e)?(t=e,["*"]):e.match(j)).length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&oe(e),g=G.get(e,"fxshow");for(i in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[i],ht.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||T.style(e,i)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(i in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=G.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(le([e],!0),u=e.style.display||u,c=T.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(d.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=G.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&le([e],!0),d.done(function(){for(i in m||le([e]),G.remove(e,"fxshow"),p)T.style(e,i,p[i])})),l=bt(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function r(){var e=wt(this,T.extend({},t),a);(o||G.get(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),a=T.speed(e,n,i);return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=T.timers,i=G.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&mt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||T.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=G.get(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=T.timers,o=n?n.length:0;for(t.finish=!0,T.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,i){var r=T.fn[i];T.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(i,!0),e,t,n)}}),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){T.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ct=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ft||(ft=!0,gt())},T.fx.stop=function(){ft=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,e){return i=T.fx&&T.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(n)}})},dt=E.createElement("input"),pt=E.createElement("select").appendChild(E.createElement("option")),dt.type="checkbox",y.checkOn=""!==dt.value,y.optSelected=pt.selected,(dt=E.createElement("input")).value="t",dt.type="radio",y.radioValue="t"===dt.value;var _t,Ct=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return R(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(r=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(r&&"get"in r&&null!==(i=r.get(e,t)))&&null==(i=T.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ct[t]||T.find.attr;Ct[t]=function(e,t,n){var i,r,o=t.toLowerCase();return n||(r=Ct[o],Ct[o]=i,i=null!=a(e,t,n)?o:null,Ct[o]=r),i}});var xt=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;function Tt(e){return(e.match(j)||[]).join(" ")}function Dt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}T.fn.extend({prop:function(e,t){return R(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){T(this).addClass(t.call(this,e,Dt(this)))});if((e=St(t)).length)for(;n=this[l++];)if(r=Dt(n),i=1===n.nodeType&&" "+Tt(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=Tt(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){T(this).removeClass(t.call(this,e,Dt(this)))});if(!arguments.length)return this.attr("class","");if((e=St(t)).length)for(;n=this[l++];)if(r=Dt(n),i=1===n.nodeType&&" "+Tt(r)+" "){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=Tt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(r,t){var o=typeof r,a="string"==o||Array.isArray(r);return"boolean"==typeof t&&a?t?this.addClass(r):this.removeClass(r):b(r)?this.each(function(e){T(this).toggleClass(r.call(this,e,Dt(this),t),t)}):this.each(function(){var e,t,n,i;if(a)for(t=0,n=T(this),i=St(r);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=o||((e=Dt(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&G.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Tt(Dt(t))+" ").indexOf(i))return!0;return!1}});var kt=/\r/g;T.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=b(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,T(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=T.map(t,function(e){return null==e?"":e+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=T.valHooks[t.type]||T.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(kt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(((n=i[l]).selected||l===r)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=T.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<T.inArray(T.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},y.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in x;function At(e){e.stopPropagation()}var Ot=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(e,t,n,i){var r,o,a,s,l,u,c,f=[n||E],d=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[],h=c=o=n=n||E;if(3!==n.nodeType&&8!==n.nodeType&&!Ot.test(d+T.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[T.expando]?e:new T.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),u=T.event.special[d]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!m(n)){for(a=u.delegateType||d,Ot.test(a+d)||(h=h.parentNode);h;h=h.parentNode)f.push(h),o=h;o===(n.ownerDocument||E)&&f.push(o.defaultView||o.parentWindow||x)}for(r=0;(h=f[r++])&&!e.isPropagationStopped();)c=h,e.type=1<r?a:u.bindType||d,(l=(G.get(h,"events")||Object.create(null))[e.type]&&G.get(h,"handle"))&&l.apply(h,t),(l=s&&h[s])&&l.apply&&Y(h)&&(e.result=l.apply(h,t),!1===e.result&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!Y(n)||s&&b(n[d])&&!m(n)&&((o=n[s])&&(n[s]=null),T.event.triggered=d,e.isPropagationStopped()&&c.addEventListener(d,At),n[d](),e.isPropagationStopped()&&c.removeEventListener(d,At),T.event.triggered=void 0,o&&(n[s]=o)),e.result}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function r(e){T.event.simulate(i,e.target,T.event.fix(e))}T.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,i);t||e.addEventListener(n,r,!0),G.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,i)-1;t?G.access(e,i,t):(e.removeEventListener(n,r,!0),G.remove(e,i))}}});var It=x.location,Mt={guid:Date.now()},Nt=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var jt=/\[\]$/,Lt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;T.param=function(e,t){function n(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var i,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,r,o){var t;if(Array.isArray(e))T.each(e,function(e,t){r||jt.test(i)?o(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,o)});else if(r||"object"!==_(e))o(i,e);else for(t in e)n(i+"["+t+"]",e[t],r,o)}(i,e[i],t,n);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&$t.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Ht=/%20/g,Ft=/#.*$/,qt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,Wt=/^\/\//,Ut={},zt={},Yt="*/".concat("*"),Kt=E.createElement("a");function Gt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(j)||[];if(b(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Qt(t,r,o,a){var s={},l=t===zt;function u(e){var i;return s[e]=!0,T.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||l||s[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),u(n),!1)}),i}return u(r.dataTypes[0])||!s["*"]&&u("*")}function Xt(e,t){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i=i||{})[n]=t[n]);return i&&T.extend(!0,e,i),e}Kt.href=It.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,T.ajaxSettings),t):Xt(T.ajaxSettings,e)},ajaxPrefilter:Gt(Ut),ajaxTransport:Gt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,d,n,p,i,h,m,r,o,g=T.ajaxSetup({},t),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?T(v):T.event,b=T.Deferred(),w=T.Callbacks("once memory"),_=g.statusCode||{},a={},s={},l="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Rt.exec(d);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),u(0,t),this}};if(b.promise(C),g.url=((e||g.url||It.href)+"").replace(Wt,It.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(j)||[""],null==g.crossDomain){i=E.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Kt.protocol+"//"+Kt.host!=i.protocol+"//"+i.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=T.param(g.data,g.traditional)),Qt(Ut,g,t,C),h)return C;for(r in(m=T.event&&g.global)&&0==T.active++&&T.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Bt.test(g.type),f=g.url.replace(Ft,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Ht,"+")):(o=g.url.slice(f.length),g.data&&(g.processData||"string"==typeof g.data)&&(f+=(Nt.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(f=f.replace(qt,"$1"),o=(Nt.test(f)?"&":"?")+"_="+Mt.guid+++o),g.url=f+o),g.ifModified&&(T.lastModified[f]&&C.setRequestHeader("If-Modified-Since",T.lastModified[f]),T.etag[f]&&C.setRequestHeader("If-None-Match",T.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&C.setRequestHeader("Content-Type",g.contentType),C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Yt+"; q=0.01":""):g.accepts["*"]),g.headers)C.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(v,C,g)||h))return C.abort();if(l="abort",w.add(g.complete),C.done(g.success),C.fail(g.error),c=Qt(zt,g,t,C)){if(C.readyState=1,m&&y.trigger("ajaxSend",[C,g]),h)return C;g.async&&0<g.timeout&&(p=x.setTimeout(function(){C.abort("timeout")},g.timeout));try{h=!1,c.send(a,u)}catch(e){if(h)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,i){var r,o,a,s,l,u=t;h||(h=!0,p&&x.clearTimeout(p),c=void 0,d=i||"",C.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(g,C,n)),!r&&-1<T.inArray("script",g.dataTypes)&&(g.converters["text script"]=function(){}),s=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(g,s,C,r),r?(g.ifModified&&((l=C.getResponseHeader("Last-Modified"))&&(T.lastModified[f]=l),(l=C.getResponseHeader("etag"))&&(T.etag[f]=l)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,r=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),C.status=e,C.statusText=(t||u)+"",r?b.resolveWith(v,[o,u,C]):b.rejectWith(v,[C,u,a]),C.statusCode(_),_=void 0,m&&y.trigger(r?"ajaxSuccess":"ajaxError",[C,g,r?o:a]),w.fireWith(v,[C,u]),m&&(y.trigger("ajaxComplete",[C,g]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,r){T[r]=function(e,t,n,i){return b(t)&&(i=i||n,n=t,t=void 0),T.ajax(T.extend({url:e,type:r,dataType:i,data:t,success:n},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(e){T(this).wrapInner(n.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=b(t);return this.each(function(e){T(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Jt=T.ajaxSettings.xhr();y.cors=!!Jt&&"withCredentials"in Jt,y.ajax=Jt=!!Jt,T.ajaxTransport(function(r){var o,a;if(y.cors||Jt&&!r.crossDomain)return{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Vt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(i[0])},abort:function(){r&&r()}}});var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||T.expando+"_"+Mt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(tn,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?T(x).removeProp(i):x[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,en.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((Zt=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(i)):t=E),o=!n&&[],(r=S.exec(e))?[t.createElement(r[1])]:(r=ye([e],t,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=Tt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=T.css(e,"position"),c=T(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ne})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;T.fn[t]=function(e){return R(this,function(e,t,n){var i;return m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n?i?i[r]:e[t]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ve(y.pixelPosition,function(e,t){if(t)return t=Xe(e,n),ze.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(a,s){T.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){T.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var i;return m(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?T.css(e,t,r):T.style(e,t,n,r)},s,n?e:void 0,n)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.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(e,n){T.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var nn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=s.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||T.guid++,r},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=D,T.isFunction=b,T.isWindow=m,T.camelCase=z,T.type=_,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(nn,"")},void 0===(ln=function(){return T}.apply(sn,[]))||(an.exports=ln);var rn=x.jQuery,on=x.$;return T.noConflict=function(e){return x.$===T&&(x.$=on),e&&x.jQuery===T&&(x.jQuery=rn),T},void 0===e&&(x.jQuery=x.$=T),T})},function(e,ne,t){"use strict";t.r(ne),function(e){
+function(n){function f(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320))}function r(){C()}var e,p,w,o,a,h,d,m,_,l,u,C,x,s,E,g,c,v,y,T="sizzle"+ +new Date,b=n.document,D=0,i=0,S=le(),k=le(),A=le(),O=le(),I=function(e,t){return e===t&&(u=!0),0},M={}.hasOwnProperty,t=[],N=t.pop,j=t.push,L=t.push,P=t.slice,$=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+F+"*("+q+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+F+"*\\]",B=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",W=new RegExp(F+"+","g"),U=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),z=new RegExp("^"+F+"*,"+F+"*"),Y=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),K=new RegExp(F+"|>"),G=new RegExp(B),Q=new RegExp("^"+q+"$"),X={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(t=P.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){j.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(t,e,n,i){var r,o,a,s,l,u,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&(C(e),e=e||x,E)){if(11!==d&&(l=te.exec(t)))if(r=l[1]){if(9===d){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&y(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return L.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(r)),n}if(p.qsa&&!O[t+" "]&&(!g||!g.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===d&&(K.test(t)||Y.test(t))){for((f=ne.test(t)&&me(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute("id"))?s=s.replace(re,oe):e.setAttribute("id",s=T)),o=(u=h(t)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+ve(u[o]);c=u.join(",")}try{return L.apply(n,f.querySelectorAll(c)),n}catch(e){O(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function le(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function ue(e){return e[T]=!0,e}function ce(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!V.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!=x&&9===i.nodeType&&i.documentElement&&(s=(x=i).documentElement,E=!a(x),b!=x&&(n=x.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),p.scope=ce(function(e){return s.appendChild(e).appendChild(x.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(x.getElementsByClassName),p.getById=ce(function(e){return s.appendChild(e).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(ie,f);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(ie,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},c=[],g=[],(p.qsa=ee.test(x.querySelectorAll))&&(ce(function(e){var t;s.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(t=x.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==x||e.ownerDocument==b&&y(b,e)?-1:t==x||t.ownerDocument==b&&y(b,t)?1:l?$(l,e)-$(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==x?-1:t==x?1:r?-1:o?1:l?$(l,e)-$(l,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]==b?-1:s[i]==b?1:0}),x},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(C(e),p.matchesSelector&&E&&!O[t+" "]&&(!c||!c.test(t))&&(!g||!g.test(t)))try{var n=v.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){O(t,!0)}return 0<se(t,x,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=x&&C(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=x&&C(e);var n=w.attrHandle[t.toLowerCase()],i=n&&M.call(w.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==i?i:p.attributes||!E?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(I),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return l=null,e},o=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(w=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,f),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=se.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(W," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,m,g){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,f=b&&e.nodeName.toLowerCase(),d=!n&&!b,p=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;l=u="only"===h&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&d){for(p=(s=(i=(r=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===D&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(p=s=0)||l.pop();)if(1===a.nodeType&&++p&&a===e){r[h]=[D,s,p];break}}else if(d&&(p=s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===D&&i[1]),!1===p)for(;(a=++s&&a&&a[u]||(p=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++p||(d&&((r=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[D,p]),a!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=$(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ue(function(e){var i=[],r=[],s=d(e.replace(U,"$1"));return s[T]?ue(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ue(function(t){return function(e){return 0<se(t,e).length}}),contains:ue(function(t){return t=t.replace(ie,f),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return Q.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(ie,f).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:he(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(s,e,t){var l=e.dir,u=e.next,c=u||l,f=t&&"parentNode"===c,d=i++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var i,r,o,a=[D,d];if(n){for(;e=e[l];)if((1===e.nodeType||f)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||f)if(r=(o=e[T]||(e[T]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((i=r[c])&&i[0]===D&&i[1]===d)return a[2]=i[2];if((r[c]=a)[2]=s(e,t,n))return!0}return!1}}function be(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function we(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function _e(p,h,m,g,v,e){return g&&!g[T]&&(g=_e(g)),v&&!v[T]&&(v=_e(v,e)),ue(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:we(c,s,p,n,i),d=m?v||(e?p:u||g)?[]:t:f;if(m&&m(f,d,n,i),g)for(r=we(d,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(d[l[o]]=!(f[l[o]]=a));if(e){if(v||p){if(v){for(r=[],o=d.length;o--;)(a=d[o])&&r.push(f[o]=a);v(null,d=[],r,i)}for(o=d.length;o--;)(a=d[o])&&-1<(r=v?$(e,a):s[o])&&(e[r]=!(t[r]=a))}}else d=we(d===t?d.splice(u,d.length):d),v?v(null,t,d,i):L.apply(t,d)})}function Ce(g,v){function e(e,t,n,i,r){var o,a,s,l=0,u="0",c=e&&[],f=[],d=_,p=e||b&&w.find.TAG("*",r),h=D+=null==d?1:Math.random()||.1,m=p.length;for(r&&(_=t==x||t||r);u!==m&&null!=(o=p[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==x||(C(o),n=!E);s=g[a++];)if(s(o,t||x,n)){i.push(o);break}r&&(D=h)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,f,t,n);if(e){if(0<l)for(;u--;)c[u]||f[u]||(f[u]=N.call(i));f=we(f)}L.apply(i,f),r&&!e&&0<f.length&&1<l+v.length&&se.uniqueSort(i)}return r&&(D=h,_=d),c}var y=0<v.length,b=0<g.length;return y?ue(e):e}return ge.prototype=w.filters=w.pseudos,w.setFilters=new ge,h=se.tokenize=function(e,t){var n,i,r,o,a,s,l,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=w.preFilter;a;){for(o in n&&!(i=z.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Y.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(U," ")}),a=a.slice(n.length)),w.filter)!(i=X[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):k(e,s).slice(0)},d=se.compile=function(e,t){var n,i=[],r=[],o=A[e+" "];if(!o){for(n=(t=t||h(e)).length;n--;)(o=function e(t){for(var r,n,i,o=t.length,a=w.relative[t[0].type],s=a||w.relative[" "],l=a?1:0,u=ye(function(e){return e===r},s,!0),c=ye(function(e){return-1<$(r,e)},s,!0),f=[function(e,t,n){var i=!a&&(n||t!==_)||((r=t).nodeType?u:c)(e,t,n);return r=null,i}];l<o;l++)if(n=w.relative[t[l].type])f=[ye(be(f),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[T]){for(i=++l;i<o&&!w.relative[t[i].type];i++);return _e(1<l&&be(f),1<l&&ve(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(U,"$1"),n,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&ve(t))}f.push(n)}return be(f)}(t[n]))[T]?i.push(o):r.push(o);(o=A(e,Ce(r,i))).selector=e}return o},m=se.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,c=!i&&h(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ie,f),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=X.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((l=w.find[s])&&(i=l(a.matches[0].replace(ie,f),ne.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&ve(o)))return L.apply(n,i),n;break}}return(u||d(e,c))(i,t,!E,n,!t||ne.test(e)&&me(t.parentNode)||t),n},p.sortStable=T.split("").sort(I).join("")===T,p.detectDuplicates=!!u,C(),p.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(x.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(H,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(x);T.find=d,T.expr=d.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=d.uniqueSort,T.text=d.getText,T.isXMLDoc=d.isXML,T.contains=d.contains,T.escapeSelector=d.escape;function p(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&T(e).is(n))break;i.push(e)}return i}function h(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var C=T.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,n,i){return b(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?T.grep(e,function(e){return e===n!==i}):"string"!=typeof n?T.grep(e,function(e){return-1<r.call(n,e)!==i}):T.filter(n,e,i)}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<i;t++)if(T.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)T.find(e,r[t],n);return 1<i?T.uniqueSort(n):n},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&C.test(e)?T(e):e||[],!1).length}});var A,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),S.test(i[1])&&T.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=E.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=T.fn,A=T(E);var I=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&T(e);if(!C.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?r.call(T(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,n){return p(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,n){return p(e,"nextSibling",n)},prevUntil:function(e,t,n){return p(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(i,r){T.fn[i]=function(e,t){var n=T.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=T.filter(t,n)),1<this.length&&(M[i]||T.uniqueSort(n),I.test(i)&&n.reverse()),this.pushStack(n)}});var j=/[^\x20\t\r\n\f]+/g;function L(e){return e}function P(e){throw e}function $(e,t,n,i){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(n):e&&b(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},T.each(e.match(j)||[],function(e,t){n[t]=!0}),n):T.extend({},i);function r(){for(s=s||i.once,a=o=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=l.length,t=!1);i.memory||(t=!1),o=!1,s&&(l=t?[]:"")}var o,t,a,s,l=[],u=[],c=-1,f={add:function(){return l&&(t&&!o&&(c=l.length-1,u.push(t)),function n(e){T.each(e,function(e,t){b(t)?i.unique&&f.has(t)||l.push(t):t&&t.length&&"string"!==_(t)&&n(t)})}(arguments),t&&!o&&r()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<T.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=u=[],t||o||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||r()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},T.extend({Deferred:function(e){var o=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return T.Deferred(function(i){T.each(o,function(e,t){var n=b(r[t[4]])&&r[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,i){var l=0;function u(r,o,a,s){return function(){function e(){var e,t;if(!(r<l)){if((e=a.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,u(l,o,L,s),u(l,o,P,s)):(l++,t.call(e,u(l,o,L,s),u(l,o,P,s),u(l,o,L,o.notifyWith))):(a!==L&&(n=void 0,i=[e]),(s||o.resolveWith)(n,i))}}var n=this,i=arguments,t=s?e:function(){try{e()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(a!==P&&(n=void 0,i=[e]),o.rejectWith(n,i))}};r?t():(T.Deferred.getStackHook&&(t.stackTrace=T.Deferred.getStackHook()),x.setTimeout(t))}}return T.Deferred(function(e){o[0][3].add(u(0,e,b(i)?i:L,e.notifyWith)),o[1][3].add(u(0,e,b(t)?t:L)),o[2][3].add(u(0,e,b(n)?n:P))}).promise()},promise:function(e){return null!=e?T.extend(e,a):a}},s={};return T.each(o,function(e,t){var n=t[2],i=t[5];a[t[1]]=n.add,i&&n.add(function(){r=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){r[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=s.call(arguments),a=T.Deferred();if(n<=1&&($(e,a.done(t(i)).resolve,a.reject,!n),"pending"===a.state()||b(o[i]&&o[i].then)))return a.then();for(;i--;)$(o[i],t(i),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){x.console&&x.console.warn&&e&&H.test(e.name)&&x.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){x.setTimeout(function(){throw e})};var F=T.Deferred();function q(){E.removeEventListener("DOMContentLoaded",q),x.removeEventListener("load",q),T.ready()}T.fn.ready=function(e){return F.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||F.resolveWith(E,[T])}}),T.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?x.setTimeout(T.ready):(E.addEventListener("DOMContentLoaded",q),x.addEventListener("load",q));var R=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===_(n))for(s in r=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,b(i)||(a=!0),u&&(t=a?(t.call(e,i),null):(u=t,function(e,t,n){return u.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},B=/^-ms-/,W=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function z(e){return e.replace(B,"ms-").replace(W,U)}function Y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[z(t)]=n;else for(i in t)r[z(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!T.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var G=new K,Q=new K,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function J(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:X.test(r)?JSON.parse(r):r)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return Q.hasData(e)||G.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),T.fn.extend({data:function(n,e){var t,i,r,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Q.set(this,n)}):R(this,function(e){var t;return o&&void 0===e?void 0!==(t=Q.get(o,n))||void 0!==(t=J(o,n))?t:void 0:void this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=Q.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=z(i.slice(5)),J(o,i,r[i]));G.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),T.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=G.get(e,t),n&&(!i||Array.isArray(n)?i=G.access(e,t,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,r=n.shift(),o=T._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){T.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:T.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each(function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=T.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=G.get(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=E.documentElement,ie=function(e){return T.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(ie=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===T.css(e,"display")};function ae(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return T.css(e,t,"")},l=s(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&ee.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)T.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var se={};function le(e,t){for(var n,i,r,o,a,s,l,u=[],c=0,f=e.length;c<f;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=G.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&oe(i)&&(u[c]=(l=s=a=o=void 0,a=(r=i).ownerDocument,s=r.nodeName,(l=se[s])||(o=a.body.appendChild(a.createElement(s)),l=T.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),se[s]=l)))):"none"!==n&&(u[c]="none",G.set(i,"display",n)));for(c=0;c<f;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}T.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?T(this).show():T(this).hide()})}});var ue,ce,fe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=E.createDocumentFragment().appendChild(E.createElement("div")),(ce=E.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),ue.appendChild(ce),y.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",y.option=!!ue.lastChild;var he={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,"",""]};function me(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&D(e,t)?T.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n<i;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td,y.option||(he.optgroup=he.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function ye(e,t,n,i,r){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===_(o))T.merge(d,o.nodeType?[o]:o);else if(ve.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),l=he[s]||he._default,a.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;T.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(i&&-1<T.inArray(o,i))r&&r.push(o);else if(u=ie(o),a=me(f.appendChild(o),"script"),u&&ge(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function xe(){return!1}function Ee(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=xe;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,r,i,n)})}function De(e,r,o){o?(G.set(e,r,!1),T.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=G.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(T.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),G.set(this,r,i),t=o(this,r),this[r](),i!==(n=G.get(this,r))||t?G.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(G.set(this,r,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,r)&&T.event.add(e,r,Ce)}T.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,f,d,p,h,m,g=G.get(t);if(Y(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(ne,r),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(j)||[""]).length;u--;)p=m=(s=_e.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=T.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,h,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),T.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,p,h,m,g=G.hasData(e)&&G.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=m=(s=_e.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=T.event.special[p]||{},d=l[p=(i?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,i,!0);T.isEmptyObject(l)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=T.event.fix(e),u=(G.get(this,"events")||Object.create(null))[l.type]||[],c=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,u),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?-1<T(r,this).index(u):T.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&D(t,"input")&&De(t,"click",Ce),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&D(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&D(t,"input")&&G.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.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,code:!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(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){T.event.special[e]={setup:function(){return De(this,e,Ee),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){T.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||T.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),T.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){T.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(G.hasData(e)&&(s=G.get(e).events))for(r in G.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)T.event.add(t,r,s[r][n]);Q.hasData(e)&&(o=Q.access(e),a=T.extend({},o),Q.set(t,a))}}function je(n,i,r,o){i=g(i);var e,t,a,s,l,u,c=0,f=n.length,d=f-1,p=i[0],h=b(p);if(h||1<f&&"string"==typeof p&&!y.checkClone&&ke.test(p))return n.each(function(e){var t=n.eq(e);h&&(i[0]=p.call(this,e,t.html())),je(t,i,r,o)});if(f&&(t=(e=ye(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=T.map(me(e,"script"),Ie)).length;c<f;c++)l=e,c!==d&&(l=T.clone(l,!0,!0),s&&T.merge(a,me(l,"script"))),r.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Me),c=0;c<s;c++)l=a[c],pe.test(l.type||"")&&!G.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(Ae,""),l,u))}return n}function Le(e,t,n){for(var i,r=t?T.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(me(i)),i.parentNode&&(n&&ie(i)&&ge(me(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s,l,u,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=me(c),i=0,r=(o=me(e)).length;i<r;i++)s=o[i],l=a[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&fe.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(c),i=0,r=o.length;i<r;i++)Ne(o[i],a[i]);else Ne(e,c);return 0<(a=me(c,"script")).length&&ge(a,!f&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,r=T.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[G.expando]){if(t.events)for(i in t.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,t.handle);n[G.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return R(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Oe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!he[(de.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return je(this,arguments,function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(me(this)),t&&t.replaceChild(e,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){T.fn[e]=function(e){for(var t,n=[],i=T(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),T(i[o])[a](t),l.apply(n,t.get());return this.pushStack(n)}});function Pe(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i}var $e,He,Fe,qe,Re,Be,We,Ue,ze=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=x),t.getComputedStyle(e)},Ke=new RegExp(te.join("|"),"i");function Ge(){var e;Ue&&(We.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ue.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(We).appendChild(Ue),e=x.getComputedStyle(Ue),$e="1%"!==e.top,Be=12===Qe(e.marginLeft),Ue.style.right="60%",qe=36===Qe(e.right),He=36===Qe(e.width),Ue.style.position="absolute",Fe=12===Qe(Ue.offsetWidth/3),ne.removeChild(We),Ue=null)}function Qe(e){return Math.round(parseFloat(e))}function Xe(e,t,n){var i,r,o,a,s=e.style;return(n=n||Ye(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=T.style(e,t)),!y.pixelBoxStyles()&&ze.test(a)&&Ke.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}We=E.createElement("div"),(Ue=E.createElement("div")).style&&(Ue.style.backgroundClip="content-box",Ue.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Ue.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return Ge(),He},pixelBoxStyles:function(){return Ge(),qe},pixelPosition:function(){return Ge(),$e},reliableMarginLeft:function(){return Ge(),Be},scrollboxSize:function(){return Ge(),Fe},reliableTrDimensions:function(){var e,t,n,i;return null==Re&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",ne.appendChild(e).appendChild(t).appendChild(n),i=x.getComputedStyle(t),Re=3<parseInt(i.height),ne.removeChild(e)),Re}}));var Je=["Webkit","Moz","ms"],Ze=E.createElement("div").style,et={};function tt(e){var t=T.cssProps[e]||et[e];return t||(e in Ze?e:et[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in Ze)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,it=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var i=ee.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function st(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=T.css(e,n+te[a],!0,r)),i?("content"===n&&(l-=T.css(e,"padding"+te[a],!0,r)),"margin"!==n&&(l-=T.css(e,"border"+te[a]+"Width",!0,r))):(l+=T.css(e,"padding"+te[a],!0,r),"padding"!==n?l+=T.css(e,"border"+te[a]+"Width",!0,r):s+=T.css(e,"border"+te[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function lt(e,t,n){var i=Ye(e),r=(!y.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,i),o=r,a=Xe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&r||!y.reliableTrDimensions()&&D(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===T.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+st(e,t,n||(r?"border":"content"),o,i,a)+"px"}function ut(e,t,n,i,r){return new ut.prototype.init(e,t,n,i,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=z(t),l=it.test(t),u=e.style;if(l||(t=tt(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=ee.exec(n))&&r[1]&&(n=ae(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=z(t);return it.test(t)||(t=tt(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Xe(e,t,i)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),T.each(["height","width"],function(e,l){T.cssHooks[l]={get:function(e,t,n){if(t)return!nt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,l,n):Pe(e,rt,function(){return lt(e,l,n)})},set:function(e,t,n){var i,r=Ye(e),o=!y.scrollboxSize()&&"absolute"===r.position,a=(o||n)&&"border-box"===T.css(e,"boxSizing",!1,r),s=n?st(e,l,n,a,r):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(r[l])-st(e,l,"border",!1,r)-.5)),s&&(i=ee.exec(t))&&"px"!==(i[3]||"px")&&(e.style[l]=t,t=T.css(e,l)),at(0,t,s)}}}),T.cssHooks.marginLeft=Ve(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-Pe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(r,o){T.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+te[t]+o]=i[t]||i[t-2]||i[0];return n}},"margin"!==r&&(T.cssHooks[r+o].set=at)}),T.fn.extend({css:function(e,t){return R(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Ye(e),r=t.length;a<r;a++)o[t[a]]=T.css(e,t[a],!1,i);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)}}),(T.Tween=ut).prototype={constructor:ut,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[tt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ut.prototype.init,T.fx.step={};var ct,ft,dt,pt,ht=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ft&&(!1===E.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(gt):x.setTimeout(gt,T.fx.interval),T.fx.tick())}function vt(){return x.setTimeout(function(){ct=void 0}),ct=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=te[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function wt(o,e,t){var n,a,i=0,r=wt.prefilters.length,s=T.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=ct||vt(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(o,[u,n,t]),n<1&&r?t:(r||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:ct||vt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=T.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=z(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=T.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);i<r;i++)if(n=wt.prefilters[i].call(u,o,c,u.opts))return b(n.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return T.map(c,bt,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=b(e)?(t=e,["*"]):e.match(j)).length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&oe(e),g=G.get(e,"fxshow");for(i in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[i],ht.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||T.style(e,i)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(i in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=G.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(le([e],!0),u=e.style.display||u,c=T.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(d.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=G.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&le([e],!0),d.done(function(){for(i in m||le([e]),G.remove(e,"fxshow"),p)T.style(e,i,p[i])})),l=bt(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function r(){var e=wt(this,T.extend({},t),a);(o||G.get(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),a=T.speed(e,n,i);return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=T.timers,i=G.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&mt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||T.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=G.get(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=T.timers,o=n?n.length:0;for(t.finish=!0,T.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,i){var r=T.fn[i];T.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(i,!0),e,t,n)}}),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){T.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ct=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ft||(ft=!0,gt())},T.fx.stop=function(){ft=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,e){return i=T.fx&&T.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(n)}})},dt=E.createElement("input"),pt=E.createElement("select").appendChild(E.createElement("option")),dt.type="checkbox",y.checkOn=""!==dt.value,y.optSelected=pt.selected,(dt=E.createElement("input")).value="t",dt.type="radio",y.radioValue="t"===dt.value;var _t,Ct=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return R(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(r=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(r&&"get"in r&&null!==(i=r.get(e,t)))&&null==(i=T.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ct[t]||T.find.attr;Ct[t]=function(e,t,n){var i,r,o=t.toLowerCase();return n||(r=Ct[o],Ct[o]=i,i=null!=a(e,t,n)?o:null,Ct[o]=r),i}});var xt=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;function Tt(e){return(e.match(j)||[]).join(" ")}function Dt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}T.fn.extend({prop:function(e,t){return R(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){T(this).addClass(t.call(this,e,Dt(this)))});if((e=St(t)).length)for(;n=this[l++];)if(r=Dt(n),i=1===n.nodeType&&" "+Tt(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=Tt(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){T(this).removeClass(t.call(this,e,Dt(this)))});if(!arguments.length)return this.attr("class","");if((e=St(t)).length)for(;n=this[l++];)if(r=Dt(n),i=1===n.nodeType&&" "+Tt(r)+" "){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=Tt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(r,t){var o=typeof r,a="string"==o||Array.isArray(r);return"boolean"==typeof t&&a?t?this.addClass(r):this.removeClass(r):b(r)?this.each(function(e){T(this).toggleClass(r.call(this,e,Dt(this),t),t)}):this.each(function(){var e,t,n,i;if(a)for(t=0,n=T(this),i=St(r);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=o||((e=Dt(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&G.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Tt(Dt(t))+" ").indexOf(i))return!0;return!1}});var kt=/\r/g;T.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=b(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,T(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=T.map(t,function(e){return null==e?"":e+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=T.valHooks[t.type]||T.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(kt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(((n=i[l]).selected||l===r)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=T.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<T.inArray(T.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},y.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in x;function At(e){e.stopPropagation()}var Ot=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(e,t,n,i){var r,o,a,s,l,u,c,f=[n||E],d=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[],h=c=o=n=n||E;if(3!==n.nodeType&&8!==n.nodeType&&!Ot.test(d+T.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[T.expando]?e:new T.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),u=T.event.special[d]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!m(n)){for(a=u.delegateType||d,Ot.test(a+d)||(h=h.parentNode);h;h=h.parentNode)f.push(h),o=h;o===(n.ownerDocument||E)&&f.push(o.defaultView||o.parentWindow||x)}for(r=0;(h=f[r++])&&!e.isPropagationStopped();)c=h,e.type=1<r?a:u.bindType||d,(l=(G.get(h,"events")||Object.create(null))[e.type]&&G.get(h,"handle"))&&l.apply(h,t),(l=s&&h[s])&&l.apply&&Y(h)&&(e.result=l.apply(h,t),!1===e.result&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!Y(n)||s&&b(n[d])&&!m(n)&&((o=n[s])&&(n[s]=null),T.event.triggered=d,e.isPropagationStopped()&&c.addEventListener(d,At),n[d](),e.isPropagationStopped()&&c.removeEventListener(d,At),T.event.triggered=void 0,o&&(n[s]=o)),e.result}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function r(e){T.event.simulate(i,e.target,T.event.fix(e))}T.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,i);t||e.addEventListener(n,r,!0),G.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,i)-1;t?G.access(e,i,t):(e.removeEventListener(n,r,!0),G.remove(e,i))}}});var It=x.location,Mt={guid:Date.now()},Nt=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var jt=/\[\]$/,Lt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;T.param=function(e,t){function n(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var i,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,r,o){var t;if(Array.isArray(e))T.each(e,function(e,t){r||jt.test(i)?o(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,o)});else if(r||"object"!==_(e))o(i,e);else for(t in e)n(i+"["+t+"]",e[t],r,o)}(i,e[i],t,n);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&$t.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Ht=/%20/g,Ft=/#.*$/,qt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,Wt=/^\/\//,Ut={},zt={},Yt="*/".concat("*"),Kt=E.createElement("a");function Gt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(j)||[];if(b(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Qt(t,r,o,a){var s={},l=t===zt;function u(e){var i;return s[e]=!0,T.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||l||s[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),u(n),!1)}),i}return u(r.dataTypes[0])||!s["*"]&&u("*")}function Xt(e,t){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i=i||{})[n]=t[n]);return i&&T.extend(!0,e,i),e}Kt.href=It.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,T.ajaxSettings),t):Xt(T.ajaxSettings,e)},ajaxPrefilter:Gt(Ut),ajaxTransport:Gt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,d,n,p,i,h,m,r,o,g=T.ajaxSetup({},t),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?T(v):T.event,b=T.Deferred(),w=T.Callbacks("once memory"),_=g.statusCode||{},a={},s={},l="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Rt.exec(d);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),u(0,t),this}};if(b.promise(C),g.url=((e||g.url||It.href)+"").replace(Wt,It.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(j)||[""],null==g.crossDomain){i=E.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Kt.protocol+"//"+Kt.host!=i.protocol+"//"+i.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=T.param(g.data,g.traditional)),Qt(Ut,g,t,C),h)return C;for(r in(m=T.event&&g.global)&&0==T.active++&&T.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Bt.test(g.type),f=g.url.replace(Ft,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Ht,"+")):(o=g.url.slice(f.length),g.data&&(g.processData||"string"==typeof g.data)&&(f+=(Nt.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(f=f.replace(qt,"$1"),o=(Nt.test(f)?"&":"?")+"_="+Mt.guid+++o),g.url=f+o),g.ifModified&&(T.lastModified[f]&&C.setRequestHeader("If-Modified-Since",T.lastModified[f]),T.etag[f]&&C.setRequestHeader("If-None-Match",T.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&C.setRequestHeader("Content-Type",g.contentType),C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Yt+"; q=0.01":""):g.accepts["*"]),g.headers)C.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(v,C,g)||h))return C.abort();if(l="abort",w.add(g.complete),C.done(g.success),C.fail(g.error),c=Qt(zt,g,t,C)){if(C.readyState=1,m&&y.trigger("ajaxSend",[C,g]),h)return C;g.async&&0<g.timeout&&(p=x.setTimeout(function(){C.abort("timeout")},g.timeout));try{h=!1,c.send(a,u)}catch(e){if(h)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,i){var r,o,a,s,l,u=t;h||(h=!0,p&&x.clearTimeout(p),c=void 0,d=i||"",C.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(g,C,n)),!r&&-1<T.inArray("script",g.dataTypes)&&(g.converters["text script"]=function(){}),s=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(g,s,C,r),r?(g.ifModified&&((l=C.getResponseHeader("Last-Modified"))&&(T.lastModified[f]=l),(l=C.getResponseHeader("etag"))&&(T.etag[f]=l)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,r=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),C.status=e,C.statusText=(t||u)+"",r?b.resolveWith(v,[o,u,C]):b.rejectWith(v,[C,u,a]),C.statusCode(_),_=void 0,m&&y.trigger(r?"ajaxSuccess":"ajaxError",[C,g,r?o:a]),w.fireWith(v,[C,u]),m&&(y.trigger("ajaxComplete",[C,g]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,r){T[r]=function(e,t,n,i){return b(t)&&(i=i||n,n=t,t=void 0),T.ajax(T.extend({url:e,type:r,dataType:i,data:t,success:n},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(e){T(this).wrapInner(n.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=b(t);return this.each(function(e){T(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Jt=T.ajaxSettings.xhr();y.cors=!!Jt&&"withCredentials"in Jt,y.ajax=Jt=!!Jt,T.ajaxTransport(function(r){var o,a;if(y.cors||Jt&&!r.crossDomain)return{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Vt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(i[0])},abort:function(){r&&r()}}});var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||T.expando+"_"+Mt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(tn,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?T(x).removeProp(i):x[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,en.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((Zt=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(i)):t=E),o=!n&&[],(r=S.exec(e))?[t.createElement(r[1])]:(r=ye([e],t,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=Tt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=T.css(e,"position"),c=T(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ne})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;T.fn[t]=function(e){return R(this,function(e,t,n){var i;return m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n?i?i[r]:e[t]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ve(y.pixelPosition,function(e,t){if(t)return t=Xe(e,n),ze.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(a,s){T.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){T.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var i;return m(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?T.css(e,t,r):T.style(e,t,n,r)},s,n?e:void 0,n)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.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(e,n){T.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var nn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=s.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||T.guid++,r},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=D,T.isFunction=b,T.isWindow=m,T.camelCase=z,T.type=_,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(nn,"")},void 0===(ln=function(){return T}.apply(sn,[]))||(an.exports=ln);var rn=x.jQuery,on=x.$;return T.noConflict=function(e){return x.$===T&&(x.$=on),e&&x.jQuery===T&&(x.jQuery=rn),T},void 0===e&&(x.jQuery=x.$=T),T})},function(e,t,n){(function(De){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
@@ -74,18 +74,18 @@
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function m(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:m(h(e))}function g(e){return e&&e.referenceNode?e.referenceNode:e}var t=n&&!(!window.MSInputMethodContext||!document.documentMode),r=n&&/MSIE 10/.test(navigator.userAgent);function v(e){return 11===e?t:10!==e&&t||r}function b(e){if(!e)return document.documentElement;for(var t=v(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?b(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&b(a.firstElementChild)!==a?b(l):l;var u=c(e);return u.host?y(u.host,t):y(e,c(t).host)}function _(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[n]}function f(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function s(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],v(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function C(e){var t=e.body,n=e.documentElement,i=v(10)&&getComputedStyle(n);return{height:s("Height",t,n,i),width:s("Width",t,n,i)}}var l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e};function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function T(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function D(e){var t,n,i={};try{v(10)?(i=e.getBoundingClientRect(),t=_(e,"top"),n=_(e,"left"),i.top+=t,i.left+=n,i.bottom+=t,i.right+=n):i=e.getBoundingClientRect()}catch(e){}var r,o={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===e.nodeName?C(e.ownerDocument):{},s=a.width||e.clientWidth||o.width,l=a.height||e.clientHeight||o.height,u=e.offsetWidth-s,c=e.offsetHeight-l;return(u||c)&&(u-=f(r=w(e),"x"),c-=f(r,"y"),o.width-=u,o.height-=c),T(o)}function S(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=v(10),o="HTML"===t.nodeName,a=D(e),s=D(t),l=m(e),u=w(t),c=parseFloat(u.borderTopWidth),f=parseFloat(u.borderLeftWidth);i&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d,p,h=T({top:a.top-s.top-c,left:a.left-s.left-f,width:a.width,height:a.height});return h.marginTop=0,h.marginLeft=0,!r&&o&&(d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft),h.top-=c-d,h.bottom-=c-d,h.left-=f-p,h.right-=f-p,h.marginTop=d,h.marginLeft=p),(r&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=_(t,"top"),o=_(t,"left"),a=i?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function k(e){if(!e||!e.parentElement||v())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function p(e,t,n,i,r){var o,a,s,l,u,c=4<arguments.length&&void 0!==r&&r,f={top:0,left:0},d=c?k(e):y(e,g(t));"viewport"===i?f=function(e,t){var n=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,r=S(e,i),o=Math.max(i.clientWidth,window.innerWidth||0),a=Math.max(i.clientHeight,window.innerHeight||0),s=n?0:_(i),l=n?0:_(i,"left");return T({top:s-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:a})}(d,c):(o=void 0,"scrollParent"===i?"BODY"===(o=m(h(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===i?e.ownerDocument.documentElement:i,a=S(o,d,c),"HTML"!==o.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===w(t,"position"))return!0;var i=h(t);return!!i&&e(i)}(d)?f=a:(l=(s=C(e.ownerDocument)).height,u=s.width,f.top+=a.top-a.marginTop,f.bottom=l+a.top,f.left+=a.left-a.marginLeft,f.right=u+a.left));var p="number"==typeof(n=n||0);return f.left+=p?n:n.left||0,f.top+=p?n:n.top||0,f.right-=p?n:n.right||0,f.bottom-=p?n:n.bottom||0,f}function A(e,t,i,n,r,o){var a=5<arguments.length&&void 0!==o?o:0;if(-1===e.indexOf("auto"))return e;var s=p(i,n,a,r),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(l).map(function(e){return E({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),f=0<c.length?c[0].key:u[0].key,d=e.split("-")[1];return f+(d?"-"+d:"")}function O(e,t,n,i){var r=3<arguments.length&&void 0!==i?i:null;return S(n,r?k(t):y(t,g(n)),r)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var i=I(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[u]:t[M(s)],r}function j(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=j(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(n.offsets.popper=T(n.offsets.popper),n.offsets.reference=T(n.offsets.reference),n=t(n,e))}),n}function P(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function F(e,t,n,i){n.updateBound=i,H(e).addEventListener("resize",n.updateBound,{passive:!0});var r=m(e);return function e(t,n,i,r){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,i,{passive:!0}),o||e(m(a.parentNode),n,i,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function R(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function B(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&R(i[e])&&(t="px"),n.style[e]=i[e]+t})}function W(e,t){function n(e){return e}var i=e.offsets,r=i.popper,o=i.reference,a=Math.round,s=Math.floor,l=a(o.width),u=a(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||l%2==u%2?a:s:n,p=t?a:n;return{left:d(l%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}var U=n&&/Firefox/i.test(navigator.userAgent);function z(e,t,n){var i,r,o=j(e,function(e){return e.name===t}),a=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});return a||(i="`"+t+"`",r="`"+n+"`",console.warn(r+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")),a}var Y=["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"],K=Y.slice(3);function G(e,t){var n=1<arguments.length&&void 0!==t&&t,i=K.indexOf(e),r=K.slice(i+1).concat(K.slice(0,i));return n?r.reverse():r}var Q="flip",X="clockwise",V="counterclockwise";function J(e,r,o,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(j(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/;return(-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n]).map(function(e,t){var n=(1===t?!s:s)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?o:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return T(s)[t]/100*o}(e,n,r,o)})}).forEach(function(n,i){n.forEach(function(e,t){R(e)&&(a[i]+=e*("-"===n[t-1]?-1:1))})}),a}var Z={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,i,r,o,a,s,l=e.placement,u=l.split("-")[0],c=l.split("-")[1];return c&&(n=(t=e.offsets).reference,i=t.popper,a=(r=-1!==["bottom","top"].indexOf(u))?"width":"height",s={start:x({},o=r?"left":"top",n[o]),end:x({},o,n[o]+n[a]-i[a])},e.offsets.popper=E({},i,s[c])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0,l=R(+n)?[+n,0]:J(n,o,a,s);return"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||b(e.instance.popper);e.instance.reference===t&&(t=b(t));var n=$("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[n];r.top="",r.left="",r[n]="";var l=p(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);r.top=o,r.left=a,r[n]=s,i.boundaries=l;var u=i.priority,c=e.offsets.popper,f={primary:function(e){var t=c[e];return c[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(c[e],l[e])),x({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),x({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=E({},c,f[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!z(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",h=I(i)[u];s[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-h)),s[f]+h>a[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=T(e.offsets.popper);var m=s[f]+s[u]/2-h/2,g=w(e.instance.popper),v=parseFloat(g["margin"+c]),y=parseFloat(g["border"+c+"Width"]),b=m-e.offsets.popper[f]-v-y,b=Math.max(Math.min(a[u]-h,b),0);return e.arrowElement=i,e.offsets.arrow=(x(n={},f,Math.round(b)),x(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,v){if(P(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var y=p(g.instance.popper,g.instance.reference,v.padding,v.boundariesElement,g.positionFixed),b=g.placement.split("-")[0],w=M(b),_=g.placement.split("-")[1]||"",C=[];switch(v.behavior){case Q:C=[b,w];break;case X:C=G(b);break;case V:C=G(b,!0);break;default:C=v.behavior}return C.forEach(function(e,t){if(b!==e||C.length===t+1)return g;b=g.placement.split("-")[0],w=M(b);var n,i=g.offsets.popper,r=g.offsets.reference,o=Math.floor,a="left"===b&&o(i.right)>o(r.left)||"right"===b&&o(i.left)<o(r.right)||"top"===b&&o(i.bottom)>o(r.top)||"bottom"===b&&o(i.top)<o(r.bottom),s=o(i.left)<o(y.left),l=o(i.right)>o(y.right),u=o(i.top)<o(y.top),c=o(i.bottom)>o(y.bottom),f="left"===b&&s||"right"===b&&l||"top"===b&&u||"bottom"===b&&c,d=-1!==["top","bottom"].indexOf(b),p=!!v.flipVariations&&(d&&"start"===_&&s||d&&"end"===_&&l||!d&&"start"===_&&u||!d&&"end"===_&&c),h=!!v.flipVariationsByContent&&(d&&"start"===_&&l||d&&"end"===_&&s||!d&&"start"===_&&c||!d&&"end"===_&&u),m=p||h;(a||f||m)&&(g.flipped=!0,(a||f)&&(b=C[t+1]),m&&(_="end"===(n=_)?"start":"start"===n?"end":n),g.placement=b+(_?"-"+_:""),g.offsets.popper=E({},g.offsets.popper,N(g.instance.popper,g.offsets.reference,g.placement)),g=L(g.instance.modifiers,g,"flip"))}),g},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=M(t),e.offsets.popper=T(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=j(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=j(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==o?o:t.gpuAcceleration,u=b(e.instance.popper),c=D(u),f={position:r.position},d=W(e,window.devicePixelRatio<2||!U),p="bottom"===n?"top":"bottom",h="right"===i?"left":"right",m=$("transform"),g=void 0,v=void 0,v="bottom"==p?"HTML"===u.nodeName?-u.clientHeight+d.bottom:-c.height+d.bottom:d.top,g="right"==h?"HTML"===u.nodeName?-u.clientWidth+d.right:-c.width+d.right:d.left;l&&m?(f[m]="translate3d("+g+"px, "+v+"px, 0)",f[p]=0,f[h]=0,f.willChange="transform"):(a="bottom"==p?-1:1,s="right"==h?-1:1,f[p]=v*a,f[h]=g*s,f.willChange=p+", "+h);var y={"x-placement":e.placement};return e.attributes=E({},y,e.attributes),e.styles=E({},f,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return B(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&B(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=O(r,t,e,n.positionFixed),a=A(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),B(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ee=(u(te,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),te);function te(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};l(this,te),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=E({},te.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(E({},te.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=E({},te.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return E({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}ee.Utils=("undefined"!=typeof window?window:e).PopperUtils,ee.placements=Y,ee.Defaults=Z,ne.default=ee}.call(this,t(2))},function(e,t,n){
+e.exports=function(){"use strict";var n=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined",i=function(){var e=["Edge","Trident","Firefox"];for(var t=0;t<e.length;t+=1){if(n&&navigator.userAgent.indexOf(e[t])>=0){return 1}}return 0}();function e(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function t(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},i)}}}var r,a=n&&window.Promise?e:t;function s(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function w(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function p(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function h(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,i=t.overflowX,r=t.overflowY;if(/(auto|scroll|overlay)/.test(n+r+i)){return e}return h(p(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var o=n&&!!(window.MSInputMethodContext&&document.documentMode),l=n&&/MSIE 10/.test(navigator.userAgent);function g(e){if(e===11){return o}if(e===10){return l}return o||l}function b(e){if(!e){return document.documentElement}var t=g(10)?document.body:null;var n=e.offsetParent||null;while(n===t&&e.nextElementSibling){n=(e=e.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&w(n,"position")==="static"){return b(n)}return n}function u(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||b(e.firstElementChild)===e}function c(e){if(e.parentNode!==null){return c(e.parentNode)}return e}function v(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?e:t;var r=n?t:e;var o=document.createRange();o.setStart(i,0);o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r)){if(u(a)){return a}return b(a)}var s=c(e);if(s.host){return v(s.host,t)}else{return v(e,c(t).host)}}function f(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=t==="top"?"scrollTop":"scrollLeft";var i=e.nodeName;if(i==="BODY"||i==="HTML"){var r=e.ownerDocument.documentElement;var o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function y(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=f(t,"top");var r=f(t,"left");var o=n?-1:1;e.top+=i*o;e.bottom+=i*o;e.left+=r*o;e.right+=r*o;return e}function d(e,t){var n=t==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function _(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function C(e){var t=e.body;var n=e.documentElement;var i=g(10)&&getComputedStyle(n);return{height:_("Height",t,n,i),width:_("Width",t,n,i)}}var x=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}},E=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}(),T=function(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};function S(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=f(e,"top");var i=f(e,"left");t.top+=n;t.left+=i;t.bottom+=n;t.right+=i}else{t=e.getBoundingClientRect()}}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top};var o=e.nodeName==="HTML"?C(e.ownerDocument):{};var a=o.width||e.clientWidth||r.width;var s=o.height||e.clientHeight||r.height;var l=e.offsetWidth-a;var u=e.offsetHeight-s;if(l||u){var c=w(e);l-=d(c,"x");u-=d(c,"y");r.width-=l;r.height-=u}return S(r)}function A(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=g(10);var r=t.nodeName==="HTML";var o=k(e);var a=k(t);var s=h(e);var l=w(t);var u=parseFloat(l.borderTopWidth);var c=parseFloat(l.borderLeftWidth);if(n&&r){a.top=Math.max(a.top,0);a.left=Math.max(a.left,0)}var f=S({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});f.marginTop=0;f.marginLeft=0;if(!i&&r){var d=parseFloat(l.marginTop);var p=parseFloat(l.marginLeft);f.top-=u-d;f.bottom-=u-d;f.left-=c-p;f.right-=c-p;f.marginTop=d;f.marginLeft=p}if(i&&!n?t.contains(s):t===s&&s.nodeName!=="BODY"){f=y(f,t)}return f}function O(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=A(e,n);var r=Math.max(n.clientWidth,window.innerWidth||0);var o=Math.max(n.clientHeight,window.innerHeight||0);var a=!t?f(n):0;var s=!t?f(n,"left"):0;var l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return S(l)}function I(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(w(e,"position")==="fixed"){return true}var n=p(e);if(!n){return false}return I(n)}function M(e){if(!e||!e.parentElement||g()){return document.documentElement}var t=e.parentElement;while(t&&w(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function N(e,t,n,i){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var o={top:0,left:0};var a=r?M(e):v(e,m(t));if(i==="viewport"){o=O(a,r)}else{var s=void 0;if(i==="scrollParent"){s=h(p(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=A(s,a,r);if(s.nodeName==="HTML"&&!I(a)){var u=C(e.ownerDocument),c=u.height,f=u.width;o.top+=l.top-l.marginTop;o.bottom=c+l.top;o.left+=l.left-l.marginLeft;o.right=f+l.left}else{o=l}}n=n||0;var d=typeof n==="number";o.left+=d?n:n.left||0;o.top+=d?n:n.top||0;o.right-=d?n:n.right||0;o.bottom-=d?n:n.bottom||0;return o}function j(e){var t=e.width,n=e.height;return t*n}function L(e,t,i,n,r){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var a=N(i,n,o,r);var s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}};var l=Object.keys(s).map(function(e){return D({key:e},s[e],{area:j(s[e])})}).sort(function(e,t){return t.area-e.area});var u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight});var c=u.length>0?u[0].key:l[0].key;var f=e.split("-")[1];return c+(f?"-"+f:"")}function P(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=i?M(t):v(t,m(n));return A(n,r,i)}function $(e){var t=e.ownerDocument.defaultView;var n=t.getComputedStyle(e);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var o={width:e.offsetWidth+r,height:e.offsetHeight+i};return o}function H(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function F(e,t,n){n=n.split("-")[0];var i=$(e);var r={width:i.width,height:i.height};var o=["right","left"].indexOf(n)!==-1;var a=o?"top":"left";var s=o?"left":"top";var l=o?"height":"width";var u=!o?"height":"width";r[a]=t[a]+t[l]/2-i[l]/2;if(n===s){r[s]=t[s]-i[u]}else{r[s]=t[H(s)]}return r}function q(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function R(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=q(e,function(e){return e[t]===n});return e.indexOf(i)}function B(e,n,t){var i=t===undefined?e:e.slice(0,R(e,"name",t));i.forEach(function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var t=e["function"]||e.fn;if(e.enabled&&s(t)){n.offsets.popper=S(n.offsets.popper);n.offsets.reference=S(n.offsets.reference);n=t(n,e)}});return n}function W(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=F(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=B(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function U(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function z(e){var t=[false,"ms","Webkit","Moz","O"];var n=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0;i<t.length;i++){var r=t[i];var o=r?""+r+n:e;if(typeof document.body.style[o]!=="undefined"){return o}}return null}function Y(){this.state.isDestroyed=true;if(U(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[z("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,i){var r=e.nodeName==="BODY";var o=r?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:true});if(!r){G(h(o.parentNode),t,n,i)}i.push(o)}function Q(e,t,n,i){n.updateBound=i;K(e).addEventListener("resize",n.updateBound,{passive:true});var r=h(e);G(r,"scroll",n.updateBound,n.scrollParents);n.scrollElement=r;n.eventsEnabled=true;return n}function X(){if(!this.state.eventsEnabled){this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate)}}function V(e,t){K(e).removeEventListener("resize",t.updateBound);t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)});t.updateBound=null;t.scrollParents=[];t.scrollElement=null;t.eventsEnabled=false;return t}function J(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=V(this.reference,this.state)}}function Z(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function ee(n,i){Object.keys(i).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&Z(i[e])){t="px"}n.style[e]=i[e]+t})}function te(n,i){Object.keys(i).forEach(function(e){var t=i[e];if(t!==false){n.setAttribute(e,i[e])}else{n.removeAttribute(e)}})}function ne(e){ee(e.instance.popper,e.styles);te(e.instance.popper,e.attributes);if(e.arrowElement&&Object.keys(e.arrowStyles).length){ee(e.arrowElement,e.arrowStyles)}return e}function ie(e,t,n,i,r){var o=P(r,t,e,n.positionFixed);var a=L(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);t.setAttribute("x-placement",a);ee(t,{position:n.positionFixed?"fixed":"absolute"});return n}function re(e,t){var n=e.offsets,i=n.popper,r=n.reference;var o=Math.round,a=Math.floor;var s=function e(t){return t};var l=o(r.width);var u=o(i.width);var c=["left","right"].indexOf(e.placement)!==-1;var f=e.placement.indexOf("-")!==-1;var d=l%2===u%2;var p=l%2===1&&u%2===1;var h=!t?s:c||f||d?o:a;var m=!t?s:o;return{left:h(p&&!f&&t?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:h(i.right)}}var oe=n&&/Firefox/i.test(navigator.userAgent);function ae(e,t){var n=t.x,i=t.y;var r=e.offsets.popper;var o=q(e.instance.modifiers,function(e){return e.name==="applyStyle"}).gpuAcceleration;if(o!==undefined){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var a=o!==undefined?o:t.gpuAcceleration;var s=b(e.instance.popper);var l=k(s);var u={position:r.position};var c=re(e,window.devicePixelRatio<2||!oe);var f=n==="bottom"?"top":"bottom";var d=i==="right"?"left":"right";var p=z("transform");var h=void 0,m=void 0;if(f==="bottom"){if(s.nodeName==="HTML"){m=-s.clientHeight+c.bottom}else{m=-l.height+c.bottom}}else{m=c.top}if(d==="right"){if(s.nodeName==="HTML"){h=-s.clientWidth+c.right}else{h=-l.width+c.right}}else{h=c.left}if(a&&p){u[p]="translate3d("+h+"px, "+m+"px, 0)";u[f]=0;u[d]=0;u.willChange="transform"}else{var g=f==="bottom"?-1:1;var v=d==="right"?-1:1;u[f]=m*g;u[d]=h*v;u.willChange=f+", "+d}var y={"x-placement":e.placement};e.attributes=D({},y,e.attributes);e.styles=D({},u,e.styles);e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles);return e}function se(e,n,t){var i=q(e,function(e){var t=e.name;return t===n});var r=!!i&&e.some(function(e){return e.name===t&&e.enabled&&e.order<i.order});if(!r){var o="`"+n+"`";var a="`"+t+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function le(e,t){var n;if(!se(e.instance.modifiers,"arrow","keepTogether")){return e}var i=t.element;if(typeof i==="string"){i=e.instance.popper.querySelector(i);if(!i){return e}}else{if(!e.instance.popper.contains(i)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return e}}var r=e.placement.split("-")[0];var o=e.offsets,a=o.popper,s=o.reference;var l=["left","right"].indexOf(r)!==-1;var u=l?"height":"width";var c=l?"Top":"Left";var f=c.toLowerCase();var d=l?"left":"top";var p=l?"bottom":"right";var h=$(i)[u];if(s[p]-h<a[f]){e.offsets.popper[f]-=a[f]-(s[p]-h)}if(s[f]+h>a[p]){e.offsets.popper[f]+=s[f]+h-a[p]}e.offsets.popper=S(e.offsets.popper);var m=s[f]+s[u]/2-h/2;var g=w(e.instance.popper);var v=parseFloat(g["margin"+c]);var y=parseFloat(g["border"+c+"Width"]);var b=m-e.offsets.popper[f]-v-y;b=Math.max(Math.min(a[u]-h,b),0);e.arrowElement=i;e.offsets.arrow=(n={},T(n,f,Math.round(b)),T(n,d,""),n);return e}function ue(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var ce=["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"],fe=ce.slice(3);function de(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=fe.indexOf(e);var i=fe.slice(n+1).concat(fe.slice(0,n));return t?i.reverse():i}var pe={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function he(m,g){if(U(m.instance.modifiers,"inner")){return m}if(m.flipped&&m.placement===m.originalPlacement){return m}var v=N(m.instance.popper,m.instance.reference,g.padding,g.boundariesElement,m.positionFixed);var y=m.placement.split("-")[0];var b=H(y);var w=m.placement.split("-")[1]||"";var _=[];switch(g.behavior){case pe.FLIP:_=[y,b];break;case pe.CLOCKWISE:_=de(y);break;case pe.COUNTERCLOCKWISE:_=de(y,true);break;default:_=g.behavior}_.forEach(function(e,t){if(y!==e||_.length===t+1){return m}y=m.placement.split("-")[0];b=H(y);var n=m.offsets.popper;var i=m.offsets.reference;var r=Math.floor;var o=y==="left"&&r(n.right)>r(i.left)||y==="right"&&r(n.left)<r(i.right)||y==="top"&&r(n.bottom)>r(i.top)||y==="bottom"&&r(n.top)<r(i.bottom);var a=r(n.left)<r(v.left);var s=r(n.right)>r(v.right);var l=r(n.top)<r(v.top);var u=r(n.bottom)>r(v.bottom);var c=y==="left"&&a||y==="right"&&s||y==="top"&&l||y==="bottom"&&u;var f=["top","bottom"].indexOf(y)!==-1;var d=!!g.flipVariations&&(f&&w==="start"&&a||f&&w==="end"&&s||!f&&w==="start"&&l||!f&&w==="end"&&u);var p=!!g.flipVariationsByContent&&(f&&w==="start"&&s||f&&w==="end"&&a||!f&&w==="start"&&u||!f&&w==="end"&&l);var h=d||p;if(o||c||h){m.flipped=true;if(o||c){y=_[t+1]}if(h){w=ue(w)}m.placement=y+(w?"-"+w:"");m.offsets.popper=D({},m.offsets.popper,F(m.instance.popper,m.offsets.reference,m.placement));m=B(m.instance.modifiers,m,"flip")}});return m}function me(e){var t=e.offsets,n=t.popper,i=t.reference;var r=e.placement.split("-")[0];var o=Math.floor;var a=["top","bottom"].indexOf(r)!==-1;var s=a?"right":"bottom";var l=a?"left":"top";var u=a?"width":"height";if(n[s]<o(i[l])){e.offsets.popper[l]=o(i[l])-n[u]}if(n[l]>o(i[s])){e.offsets.popper[l]=o(i[s])}return e}function ge(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var o=+r[1];var a=r[2];if(!o){return e}if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}var l=S(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var u=void 0;if(a==="vh"){u=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{u=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return u/100*o}else{return o}}function ve(e,r,o,t){var a=[0,0];var s=["right","left"].indexOf(t)!==-1;var n=e.split(/(\+|\-)/).map(function(e){return e.trim()});var i=n.indexOf(q(n,function(e){return e.search(/,|\s/)!==-1}));if(n[i]&&n[i].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var l=/\s*,\s*|\s+/;var u=i!==-1?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];u=u.map(function(e,t){var n=(t===1?!s:s)?"height":"width";var i=false;return e.reduce(function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;i=true;return e}else if(i){e[e.length-1]+=t;i=false;return e}else{return e.concat(t)}},[]).map(function(e){return ge(e,n,r,o)})});u.forEach(function(n,i){n.forEach(function(e,t){if(Z(e)){a[i]+=e*(n[t-1]==="-"?-1:1)}})});return a}function ye(e,t){var n=t.offset;var i=e.placement,r=e.offsets,o=r.popper,a=r.reference;var s=i.split("-")[0];var l=void 0;if(Z(+n)){l=[+n,0]}else{l=ve(n,o,a,s)}if(s==="left"){o.top+=l[0];o.left-=l[1]}else if(s==="right"){o.top+=l[0];o.left+=l[1]}else if(s==="top"){o.left+=l[0];o.top-=l[1]}else if(s==="bottom"){o.left+=l[0];o.top+=l[1]}e.popper=o;return e}function be(e,r){var t=r.boundariesElement||b(e.instance.popper);if(e.instance.reference===t){t=b(t)}var n=z("transform");var i=e.instance.popper.style;var o=i.top,a=i.left,s=i[n];i.top="";i.left="";i[n]="";var l=N(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o;i.left=a;i[n]=s;r.boundaries=l;var u=r.priority;var c=e.offsets.popper;var f={primary:function e(t){var n=c[t];if(c[t]<l[t]&&!r.escapeWithReference){n=Math.max(c[t],l[t])}return T({},t,n)},secondary:function e(t){var n=t==="right"?"left":"top";var i=c[n];if(c[t]>l[t]&&!r.escapeWithReference){i=Math.min(c[n],l[t]-(t==="right"?c.width:c.height))}return T({},n,i)}};u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";c=D({},c,f[t](e))});e.offsets.popper=c;return e}function we(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper;var s=["bottom","top"].indexOf(n)!==-1;var l=s?"left":"top";var u=s?"width":"height";var c={start:T({},l,o[l]),end:T({},l,o[l]+o[u]-a[u])};e.offsets.popper=D({},a,c[i])}return e}function _e(e){if(!se(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=q(e.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===true){return e}e.hide=true;e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===false){return e}e.hide=false;e.attributes["x-out-of-boundaries"]=false}return e}function Ce(e){var t=e.placement;var n=t.split("-")[0];var i=e.offsets,r=i.popper,o=i.reference;var a=["left","right"].indexOf(n)!==-1;var s=["top","left"].indexOf(n)===-1;r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0);e.placement=H(t);e.offsets.popper=S(r);return e}var xe,Ee={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function e(){},onUpdate:function e(){},modifiers:{shift:{order:100,enabled:true,fn:we},offset:{order:200,enabled:true,fn:ye,offset:0},preventOverflow:{order:300,enabled:true,fn:be,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:me},arrow:{order:500,enabled:true,fn:le,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:he,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:Ce},hide:{order:800,enabled:true,fn:_e},computeStyle:{order:850,enabled:true,fn:ae,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:ne,onLoad:ie,gpuAcceleration:undefined}}},Te=function(){function o(e,t){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};x(this,o);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=a(this.update.bind(this));this.options=D({},o.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(D({},o.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=D({},o.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(e){return D({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order});this.modifiers.forEach(function(e){if(e.enabled&&s(e.onLoad)){e.onLoad(n.reference,n.popper,n.options,e,n.state)}});this.update();var r=this.options.eventsEnabled;if(r){this.enableEventListeners()}this.state.eventsEnabled=r}E(o,[{key:"update",value:function e(){return W.call(this)}},{key:"destroy",value:function e(){return Y.call(this)}},{key:"enableEventListeners",value:function e(){return X.call(this)}},{key:"disableEventListeners",value:function e(){return J.call(this)}}]);return o}();return Te.Utils=("undefined"!=typeof window?window:De).PopperUtils,Te.placements=ce,Te.Defaults=Ee,Te}()}).call(this,n(2))},function(e,t,n){
/*!
- * Bootstrap Confirmation (v4.1.0)
+ * Bootstrap Confirmation (v4.2.0)
* @copyright 2013 Nimit Suwannagate <ethaizone@hotmail.com>
- * @copyright 2014-2018 Damien "Mistic" Sorel <contact@git.strangeplanet.fr>
+ * @copyright 2014-2020 Damien "Mistic" Sorel <contact@git.strangeplanet.fr>
* @licence Apache License, Version 2.0
*/
-!function(s){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function t(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function r(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var i=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}i.forEach(function(e){r(t,e,n[e])})}return t}function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}if(typeof(s=s&&s.hasOwnProperty("default")?s["default"]:s).fn.popover==="undefined"||s.fn.popover.Constructor.VERSION.split(".").shift()!=="4"){throw new Error("Bootstrap Confirmation 4 requires Bootstrap Popover 4")}var o=s.fn.popover.Constructor,a="confirmation",l="4.1.0",u="bs."+a,c="."+u,f=s.fn[a],d="h-100 d-flex align-items-center",p="btn btn-sm",h=e({},o.DefaultType,{singleton:"boolean",popout:"boolean",copyAttributes:"(string|array)",onConfirm:"function",onCancel:"function",btnOkClass:"string",btnOkLabel:"string",btnOkIconClass:"string",btnOkIconContent:"string",btnCancelClass:"string",btnCancelLabel:"string",btnCancelIconClass:"string",btnCancelIconContent:"string",buttons:"array"}),m=e({},o.Default,{_attributes:{},_selector:null,placement:"top",title:"Are you sure?",trigger:"click",confirmationEvent:undefined,content:"",singleton:false,popout:false,copyAttributes:"href target",onConfirm:s.noop,onCancel:s.noop,btnOkClass:p+" btn-primary",btnOkLabel:"Yes",btnOkIconClass:"",btnOkIconContent:"",btnCancelClass:p+" btn-secondary",btnCancelLabel:"No",btnCancelIconClass:"",btnCancelIconContent:"",buttons:[],template:'\n<div class="popover confirmation">\n <div class="arrow"></div>\n <h3 class="popover-header"></h3>\n <div class="popover-body">\n <p class="confirmation-content"></p>\n <div class="confirmation-buttons text-center">\n <div class="btn-group"></div>\n </div>\n </div>\n</div>'});if(m.whiteList){m.whiteList["*"].push("data-apply","data-dismiss")}var g={FADE:"fade",SHOW:"show"},v={TITLE:".popover-header",CONTENT:".confirmation-content",BUTTONS:".confirmation-buttons .btn-group"},y={13:"Enter",27:"Escape",39:"ArrowRight",40:"ArrowDown"},b={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,INSERTED:"inserted"+c,CLICK:"click"+c,FOCUSIN:"focusin"+c,FOCUSOUT:"focusout"+c,MOUSEENTER:"mouseenter"+c,MOUSELEAVE:"mouseleave"+c,CONFIRMED:"confirmed"+c,CANCELED:"canceled"+c,KEYUP:"keyup"+c},w,_=function(i){n(r,i);t(r,null,[{key:"VERSION",get:function e(){return l}},{key:"Default",get:function e(){return m}},{key:"NAME",get:function e(){return a}},{key:"DATA_KEY",get:function e(){return u}},{key:"Event",get:function e(){return b}},{key:"EVENT_KEY",get:function e(){return c}},{key:"DefaultType",get:function e(){return h}}]);function r(e,t){var n;n=i.call(this,e,t)||this;if((n.config.popout||n.config.singleton)&&!n.config.rootSelector){throw new Error("The rootSelector option is required to use popout and singleton features since jQuery 3.")}n._isDelegate=false;if(t.selector){t._selector=t.rootSelector+" "+t.selector;n.config._selector=t._selector}else if(t._selector){n.config._selector=t._selector;n._isDelegate=true}else{n.config._selector=t.rootSelector}if(n.config.confirmationEvent===undefined){n.config.confirmationEvent=n.config.trigger}if(!n.config.selector){n._copyAttributes()}n._setConfirmationListeners();return n}var e=r.prototype;e.isWithContent=function e(){return true};e.setContent=function e(){var t=s(this.getTipElement());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(v.TITLE),this.getTitle());t.find(v.CONTENT).toggle(!!n);if(n){this.setElementContent(t.find(v.CONTENT),n)}if(this.config.buttons.length>0){this._setButtons(t,this.config.buttons)}else{this._setStandardButtons(t)}t.removeClass(g.FADE+" "+g.SHOW);this._setupKeyupEvent()};e.dispose=function e(){s("body").off(b.CLICK+"."+this.uid);this.eventBody=false;this._cleanKeyupEvent();i.prototype.dispose.call(this)};e.hide=function e(t){this._cleanKeyupEvent();i.prototype.hide.call(this,t)};e._copyAttributes=function e(){var t=this;this.config._attributes={};if(this.config.copyAttributes){if(typeof this.config.copyAttributes==="string"){this.config.copyAttributes=this.config.copyAttributes.split(" ")}}else{this.config.copyAttributes=[]}this.config.copyAttributes.forEach(function(e){t.config._attributes[e]=s(t.element).attr(e)})};e._setConfirmationListeners=function e(){var t=this;if(!this.config.selector){s(this.element).on(this.config.trigger,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}});s(this.element).on(b.SHOWN,function(){if(t.config.singleton){s(t.config._selector).not(s(this)).filter(function(){return s(this).data(u)!==undefined}).confirmation("hide")}})}else{s(this.element).on(this.config.trigger,this.config.selector,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}})}if(!this._isDelegate){this.eventBody=false;this.uid=this.element.id||r.getUID(a+"_group");s(this.element).on(b.SHOWN,function(){if(t.config.popout&&!t.eventBody){t.eventBody=s("body").on(b.CLICK+"."+t.uid,function(e){if(s(t.config._selector).is(e.target)||s(t.config._selector).has(e.target).length>0){return}s(t.config._selector).filter(function(){return s(this).data(u)!==undefined}).confirmation("hide");s("body").off(b.CLICK+"."+t.uid);t.eventBody=false})}})}};e._setStandardButtons=function e(t){var n=[{class:this.config.btnOkClass,label:this.config.btnOkLabel,iconClass:this.config.btnOkIconClass,iconContent:this.config.btnOkIconContent,attr:this.config._attributes},{class:this.config.btnCancelClass,label:this.config.btnCancelLabel,iconClass:this.config.btnCancelIconClass,iconContent:this.config.btnCancelIconContent,cancel:true}];this._setButtons(t,n)};e._setButtons=function e(t,n){var i=this;var r=t.find(v.BUTTONS).empty();n.forEach(function(t){var e=s('<a href="#"></a>').addClass(d).addClass(t.class||p+" btn-secondary").html(t.label||"").attr(t.attr||{});if(t.iconClass||t.iconContent){e.prepend(s("<i></i>").addClass(t.iconClass||"").text(t.iconContent||""))}e.one("click",function(e){if(s(this).attr("href")==="#"){e.preventDefault()}if(t.onClick){t.onClick.call(s(i.element))}if(t.cancel){i.config.onCancel.call(i.element,t.value);s(i.element).trigger(b.CANCELED,[t.value])}else{i.config.onConfirm.call(i.element,t.value);s(i.element).trigger(b.CONFIRMED,[t.value]);s(i.element).trigger(i.config.confirmationEvent,[true])}i.hide()});r.append(e)})};e._setupKeyupEvent=function e(){w=this;s(window).off(b.KEYUP).on(b.KEYUP,this._onKeyup.bind(this))};e._cleanKeyupEvent=function e(){if(w===this){w=undefined;s(window).off(b.KEYUP)}};e._onKeyup=function e(t){if(!this.tip){this._cleanKeyupEvent();return}var n=s(this.getTipElement());var i=t.key||y[t.keyCode||t.which];var r=n.find(v.BUTTONS);var o=r.find(".active");var a;switch(i){case"Escape":this.hide();break;case"ArrowRight":if(o.length&&o.next().length){a=o.next()}else{a=r.children().first()}o.removeClass("active");a.addClass("active").focus();break;case"ArrowLeft":if(o.length&&o.prev().length){a=o.prev()}else{a=r.children().last()}o.removeClass("active");a.addClass("active").focus();break;default:break}};r.getUID=function e(t){var n=t;do{n+=~~(Math.random()*1e6)}while(document.getElementById(n));return n};r._jQueryInterface=function e(n){return this.each(function(){var e=s(this).data(u);var t=typeof n==="object"?n:{};t.rootSelector=s(this).selector||t.rootSelector;if(!e&&/destroy|hide/.test(n)){return}if(!e){e=new r(this,t);s(this).data(u,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};return r}(o);s.fn[a]=_._jQueryInterface,s.fn[a].Constructor=_,s.fn[a].noConflict=function(){s.fn[a]=f;return _._jQueryInterface}}(n(0),n(3))},function(e,t,n){var i,r,o;
+!function(s){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function t(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function e(){e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};return e.apply(this,arguments)}function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}if(typeof s.fn.popover==="undefined"||s.fn.popover.Constructor.VERSION.split(".").shift()!=="4"){throw new Error("Bootstrap Confirmation 4 requires Bootstrap Popover 4")}var r=s.fn.popover.Constructor,o="confirmation",a="4.2.0",l="bs."+o,u="."+l,c=s.fn[o],f="h-100 d-flex align-items-center",d="btn btn-sm",p=e({},r.DefaultType,{singleton:"boolean",popout:"boolean",copyAttributes:"(string|array)",onConfirm:"function",onCancel:"function",btnOkClass:"string",btnOkLabel:"string",btnOkIconClass:"string",btnOkIconContent:"string",btnCancelClass:"string",btnCancelLabel:"string",btnCancelIconClass:"string",btnCancelIconContent:"string",buttons:"array"}),h=e({},r.Default,{_attributes:{},_selector:null,placement:"top",title:"Are you sure?",trigger:"click",confirmationEvent:undefined,content:"",singleton:false,popout:false,copyAttributes:"href target",onConfirm:s.noop,onCancel:s.noop,btnOkClass:d+" btn-primary",btnOkLabel:"Yes",btnOkIconClass:"",btnOkIconContent:"",btnCancelClass:d+" btn-secondary",btnCancelLabel:"No",btnCancelIconClass:"",btnCancelIconContent:"",buttons:[],template:'\n<div class="popover confirmation">\n <div class="arrow"></div>\n <h3 class="popover-header"></h3>\n <div class="popover-body">\n <p class="confirmation-content"></p>\n <div class="confirmation-buttons text-center">\n <div class="btn-group"></div>\n </div>\n </div>\n</div>'});if(h.whiteList){h.whiteList["*"].push("data-apply","data-dismiss")}var m={FADE:"fade",SHOW:"show"},g={TITLE:".popover-header",CONTENT:".confirmation-content",BUTTONS:".confirmation-buttons .btn-group"},v={13:"Enter",27:"Escape",39:"ArrowRight",40:"ArrowDown"},y={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,CONFIRMED:"confirmed"+u,CANCELED:"canceled"+u,KEYUP:"keyup"+u},b,w=function(i){n(r,i);t(r,null,[{key:"VERSION",get:function e(){return a}},{key:"Default",get:function e(){return h}},{key:"NAME",get:function e(){return o}},{key:"DATA_KEY",get:function e(){return l}},{key:"Event",get:function e(){return y}},{key:"EVENT_KEY",get:function e(){return u}},{key:"DefaultType",get:function e(){return p}}]);function r(e,t){var n;n=i.call(this,e,t)||this;if((n.config.popout||n.config.singleton)&&!n.config.rootSelector){throw new Error("The rootSelector option is required to use popout and singleton features since jQuery 3.")}n._isDelegate=false;if(t.selector){t._selector=t.rootSelector+" "+t.selector;n.config._selector=t._selector}else if(t._selector){n.config._selector=t._selector;n._isDelegate=true}else{n.config._selector=t.rootSelector}if(n.config.confirmationEvent===undefined){n.config.confirmationEvent=n.config.trigger}if(!n.config.selector){n._copyAttributes()}n._setConfirmationListeners();return n}var e=r.prototype;e.isWithContent=function e(){return true};e.setContent=function e(){var t=s(this.getTipElement());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(g.TITLE),this.getTitle());t.find(g.CONTENT).toggle(!!n);if(n){this.setElementContent(t.find(g.CONTENT),n)}if(this.config.buttons.length>0){this._setButtons(t,this.config.buttons)}else{this._setStandardButtons(t)}t.removeClass(m.FADE+" "+m.SHOW);this._setupKeyupEvent()};e.dispose=function e(){s("body").off(y.CLICK+"."+this.uid);this.eventBody=false;this._cleanKeyupEvent();i.prototype.dispose.call(this)};e.hide=function e(t){this._cleanKeyupEvent();i.prototype.hide.call(this,t)};e._copyAttributes=function e(){var t=this;this.config._attributes={};if(this.config.copyAttributes){if(typeof this.config.copyAttributes==="string"){this.config.copyAttributes=this.config.copyAttributes.split(" ")}}else{this.config.copyAttributes=[]}this.config.copyAttributes.forEach(function(e){t.config._attributes[e]=s(t.element).attr(e)})};e._setConfirmationListeners=function e(){var t=this;if(!this.config.selector){s(this.element).on(this.config.trigger,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}});s(this.element).on(y.SHOWN,function(){if(t.config.singleton){s(t.config._selector).not(s(this)).filter(function(){return s(this).data(l)!==undefined}).confirmation("hide")}})}else{s(this.element).on(this.config.trigger,this.config.selector,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}})}if(!this._isDelegate){this.eventBody=false;this.uid=this.element.id||r.getUID(o+"_group");s(this.element).on(y.SHOWN,function(){if(t.config.popout&&!t.eventBody){t.eventBody=s("body").on(y.CLICK+"."+t.uid,function(e){if(s(t.config._selector).is(e.target)||s(t.config._selector).has(e.target).length>0){return}s(t.config._selector).filter(function(){return s(this).data(l)!==undefined}).confirmation("hide");s("body").off(y.CLICK+"."+t.uid);t.eventBody=false})}})}};e._setStandardButtons=function e(t){var n=[{class:this.config.btnOkClass,label:this.config.btnOkLabel,iconClass:this.config.btnOkIconClass,iconContent:this.config.btnOkIconContent,attr:this.config._attributes},{class:this.config.btnCancelClass,label:this.config.btnCancelLabel,iconClass:this.config.btnCancelIconClass,iconContent:this.config.btnCancelIconContent,cancel:true}];this._setButtons(t,n)};e._setButtons=function e(t,n){var i=this;var r=t.find(g.BUTTONS).empty();n.forEach(function(t){var e=s('<a href="#"></a>').addClass(f).addClass(t["class"]||d+" btn-secondary").html(t.label||"").attr(t.attr||(t.cancel?{}:i.config._attributes));if(t.iconClass||t.iconContent){e.prepend(s("<i></i>").addClass(t.iconClass||"").text(t.iconContent||""))}e.one("click",function(e){if(s(this).attr("href")==="#"){e.preventDefault()}if(t.onClick){t.onClick.call(s(i.element))}if(t.cancel){i.config.onCancel.call(i.element,t.value);s(i.element).trigger(y.CANCELED,[t.value])}else{i.config.onConfirm.call(i.element,t.value);s(i.element).trigger(y.CONFIRMED,[t.value]);s(i.element).trigger(i.config.confirmationEvent,[true])}i.hide()});r.append(e)})};e._setupKeyupEvent=function e(){b=this;s(window).off(y.KEYUP).on(y.KEYUP,this._onKeyup.bind(this))};e._cleanKeyupEvent=function e(){if(b===this){b=undefined;s(window).off(y.KEYUP)}};e._onKeyup=function e(t){if(!this.tip){this._cleanKeyupEvent();return}var n=s(this.getTipElement());var i=t.key||v[t.keyCode||t.which];var r=n.find(g.BUTTONS);var o=r.find(".active");var a;switch(i){case"Escape":this.hide();break;case"ArrowRight":if(o.length&&o.next().length){a=o.next()}else{a=r.children().first()}o.removeClass("active");a.addClass("active").focus();break;case"ArrowLeft":if(o.length&&o.prev().length){a=o.prev()}else{a=r.children().last()}o.removeClass("active");a.addClass("active").focus();break}};r.getUID=function e(t){var n=t;do{n+=~~(Math.random()*1e6)}while(document.getElementById(n));return n};r._jQueryInterface=function e(n){return this.each(function(){var e=s(this).data(l);var t=typeof n==="object"?n:{};t.rootSelector=s(this).selector||t.rootSelector;if(!e&&/destroy|hide/.test(n)){return}if(!e){e=new r(this,t);s(this).data(l,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};return r}(r);s.fn[o]=w._jQueryInterface,s.fn[o].Constructor=w,s.fn[o].noConflict=function(){s.fn[o]=c;return w._jQueryInterface}}(n(0),n(3))},function(e,t,n){var i,r,o;
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */r=[n(0)],void 0===(o="function"==typeof(i=function(c){var l="Close",u="BeforeClose",n="AfterClose",i="BeforeAppend",f="MarkupParse",d="Open",r="Change",o="mfp",p="."+o,h="mfp-ready",a="mfp-removing",s="mfp-prevent-close",m,e=function(){},g=!!window.jQuery,v,y=c(window),b,w,_,t,C=function(e,t){m.ev.on(o+e+p,t)},x=function(e,t,n,i){var r=document.createElement("div");r.className="mfp-"+e;if(n){r.innerHTML=n}if(!i){r=c(r);if(t){r.appendTo(t)}}else if(t){t.appendChild(r)}return r},E=function(e,t){m.ev.triggerHandler(o+e,t);if(m.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(m.st.callbacks[e]){m.st.callbacks[e].apply(m,c.isArray(t)?t:[t])}}},T=function(e){if(e!==t||!m.currTemplate.closeBtn){m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose));t=e}return m.currTemplate.closeBtn},D=function(){if(!c.magnificPopup.instance){m=new e;m.init();c.magnificPopup.instance=m}},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(e["transition"]!==undefined){return true}while(t.length){if(t.pop()+"Transition"in e){return true}}return false};e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener;m.isAndroid=/android/gi.test(e);m.isIOS=/iphone|ipad|ipod/gi.test(e);m.supportsTransition=S();m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);b=c(document);m.popupsCache={}},open:function(e){var t;if(e.isObj===false){m.items=e.items.toArray();m.index=0;var n=e.items,i;for(t=0;t<n.length;t++){i=n[t];if(i.parsed){i=i.el[0]}if(i===e.el[0]){m.index=t;break}}}else{m.items=c.isArray(e.items)?e.items:[e.items];m.index=e.index||0}if(m.isOpen){m.updateItemHTML();return}m.types=[];_="";if(e.mainEl&&e.mainEl.length){m.ev=e.mainEl.eq(0)}else{m.ev=b}if(e.key){if(!m.popupsCache[e.key]){m.popupsCache[e.key]={}}m.currTemplate=m.popupsCache[e.key]}else{m.currTemplate={}}m.st=c.extend(true,{},c.magnificPopup.defaults,e);m.fixedContentPos=m.st.fixedContentPos==="auto"?!m.probablyMobile:m.st.fixedContentPos;if(m.st.modal){m.st.closeOnContentClick=false;m.st.closeOnBgClick=false;m.st.showCloseBtn=false;m.st.enableEscapeKey=false}if(!m.bgOverlay){m.bgOverlay=x("bg").on("click"+p,function(){m.close()});m.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(e){if(m._checkIfClose(e.target)){m.close()}});m.container=x("container",m.wrap)}m.contentContainer=x("content");if(m.st.preloader){m.preloader=x("preloader",m.container,m.st.tLoading)}var r=c.magnificPopup.modules;for(t=0;t<r.length;t++){var o=r[t];o=o.charAt(0).toUpperCase()+o.slice(1);m["init"+o].call(m)}E("BeforeOpen");if(m.st.showCloseBtn){if(!m.st.closeBtnInside){m.wrap.append(T())}else{C(f,function(e,t,n,i){n.close_replaceWith=T(i.type)});_+=" mfp-close-btn-in"}}if(m.st.alignTop){_+=" mfp-align-top"}if(m.fixedContentPos){m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY})}else{m.wrap.css({top:y.scrollTop(),position:"absolute"})}if(m.st.fixedBgPos===false||m.st.fixedBgPos==="auto"&&!m.fixedContentPos){m.bgOverlay.css({height:b.height(),position:"absolute"})}if(m.st.enableEscapeKey){b.on("keyup"+p,function(e){if(e.keyCode===27){m.close()}})}y.on("resize"+p,function(){m.updateSize()});if(!m.st.closeOnContentClick){_+=" mfp-auto-cursor"}if(_)m.wrap.addClass(_);var a=m.wH=y.height();var s={};if(m.fixedContentPos){if(m._hasScrollBar(a)){var l=m._getScrollbarSize();if(l){s.marginRight=l}}}if(m.fixedContentPos){if(!m.isIE7){s.overflow="hidden"}else{c("body, html").css("overflow","hidden")}}var u=m.st.mainClass;if(m.isIE7){u+=" mfp-ie7"}if(u){m._addClassToMFP(u)}m.updateItemHTML();E("BuildControls");c("html").css(s);m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body));m._lastFocusedEl=document.activeElement;setTimeout(function(){if(m.content){m._addClassToMFP(h);m._setFocus()}else{m.bgOverlay.addClass(h)}b.on("focusin"+p,m._onFocusIn)},16);m.isOpen=true;m.updateSize(a);E(d);return e},close:function(){if(!m.isOpen)return;E(u);m.isOpen=false;if(m.st.removalDelay&&!m.isLowIE&&m.supportsTransition){m._addClassToMFP(a);setTimeout(function(){m._close()},m.st.removalDelay)}else{m._close()}},_close:function(){E(l);var e=a+" "+h+" ";m.bgOverlay.detach();m.wrap.detach();m.container.empty();if(m.st.mainClass){e+=m.st.mainClass+" "}m._removeClassFromMFP(e);if(m.fixedContentPos){var t={marginRight:""};if(m.isIE7){c("body, html").css("overflow","")}else{t.overflow=""}c("html").css(t)}b.off("keyup"+p+" focusin"+p);m.ev.off(p);m.wrap.attr("class","mfp-wrap").removeAttr("style");m.bgOverlay.attr("class","mfp-bg");m.container.attr("class","mfp-container");if(m.st.showCloseBtn&&(!m.st.closeBtnInside||m.currTemplate[m.currItem.type]===true)){if(m.currTemplate.closeBtn)m.currTemplate.closeBtn.detach()}if(m.st.autoFocusLast&&m._lastFocusedEl){c(m._lastFocusedEl).focus()}m.currItem=null;m.content=null;m.currTemplate=null;m.prevHeight=0;E(n)},updateSize:function(e){if(m.isIOS){var t=document.documentElement.clientWidth/window.innerWidth;var n=window.innerHeight*t;m.wrap.css("height",n);m.wH=n}else{m.wH=e||y.height()}if(!m.fixedContentPos){m.wrap.css("height",m.wH)}E("Resize")},updateItemHTML:function(){var e=m.items[m.index];m.contentContainer.detach();if(m.content)m.content.detach();if(!e.parsed){e=m.parseEl(m.index)}var t=e.type;E("BeforeChange",[m.currItem?m.currItem.type:"",t]);m.currItem=e;if(!m.currTemplate[t]){var n=m.st[t]?m.st[t].markup:false;E("FirstMarkupParse",n);if(n){m.currTemplate[t]=c(n)}else{m.currTemplate[t]=true}}if(w&&w!==e.type){m.container.removeClass("mfp-"+w+"-holder")}var i=m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]);m.appendContent(i,t);e.preloaded=true;E(r,e);w=e.type;m.container.prepend(m.contentContainer);E("AfterChange")},appendContent:function(e,t){m.content=e;if(e){if(m.st.showCloseBtn&&m.st.closeBtnInside&&m.currTemplate[t]===true){if(!m.content.find(".mfp-close").length){m.content.append(T())}}else{m.content=e}}else{m.content=""}E(i);m.container.addClass("mfp-"+t+"-holder");m.contentContainer.append(m.content)},parseEl:function(e){var t=m.items[e],n;if(t.tagName){t={el:c(t)}}else{n=t.type;t={data:t,src:t.src}}if(t.el){var i=m.types;for(var r=0;r<i.length;r++){if(t.el.hasClass("mfp-"+i[r])){n=i[r];break}}t.src=t.el.attr("data-mfp-src");if(!t.src){t.src=t.el.attr("href")}}t.type=n||m.st.type||"inline";t.index=e;t.parsed=true;m.items[e]=t;E("ElementParse",t);return m.items[e]},addGroup:function(t,n){var e=function(e){e.mfpEl=this;m._openClick(e,t,n)};if(!n){n={}}var i="click.magnificPopup";n.mainEl=t;if(n.items){n.isObj=true;t.off(i).on(i,e)}else{n.isObj=false;if(n.delegate){t.off(i).on(i,n.delegate,e)}else{n.items=t;t.off(i).on(i,e)}}},_openClick:function(e,t,n){var i=n.midClick!==undefined?n.midClick:c.magnificPopup.defaults.midClick;if(!i&&(e.which===2||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){return}var r=n.disableOn!==undefined?n.disableOn:c.magnificPopup.defaults.disableOn;if(r){if(c.isFunction(r)){if(!r.call(m)){return true}}else{if(y.width()<r){return true}}}if(e.type){e.preventDefault();if(m.isOpen){e.stopPropagation()}}n.el=c(e.mfpEl);if(n.delegate){n.items=t.find(n.delegate)}m.open(n)},updateStatus:function(e,t){if(m.preloader){if(v!==e){m.container.removeClass("mfp-s-"+v)}if(!t&&e==="loading"){t=m.st.tLoading}var n={status:e,text:t};E("UpdateStatus",n);e=n.status;t=n.text;m.preloader.html(t);m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()});m.container.addClass("mfp-s-"+e);v=e}},_checkIfClose:function(e){if(c(e).hasClass(s)){return}var t=m.st.closeOnContentClick;var n=m.st.closeOnBgClick;if(t&&n){return true}else{if(!m.content||c(e).hasClass("mfp-close")||m.preloader&&e===m.preloader[0]){return true}if(e!==m.content[0]&&!c.contains(m.content[0],e)){if(n){if(c.contains(document,e)){return true}}}else if(t){return true}}return false},_addClassToMFP:function(e){m.bgOverlay.addClass(e);m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e);m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?b.height():document.body.scrollHeight)>(e||y.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!c.contains(m.wrap[0],e.target)){m._setFocus();return false}},_parseMarkup:function(r,e,t){var o;if(t.data){e=c.extend(t.data,e)}E(f,[r,e,t]);c.each(e,function(e,t){if(t===undefined||t===false){return true}o=e.split("_");if(o.length>1){var n=r.find(p+"-"+o[0]);if(n.length>0){var i=o[1];if(i==="replaceWith"){if(n[0]!==t[0]){n.replaceWith(t)}}else if(i==="img"){if(n.is("img")){n.attr("src",t)}else{n.replaceWith(c("<img>").attr("src",t).attr("class",n.attr("class")))}}else{n.attr(o[1],t)}}}else{r.find(p+"-"+e).html(t)}})},_getScrollbarSize:function(){if(m.scrollbarSize===undefined){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(e);m.scrollbarSize=e.offsetWidth-e.clientWidth;document.body.removeChild(e)}return m.scrollbarSize}},c.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){D();if(!e){e={}}else{e=c.extend(true,{},e)}e.isObj=true;e.index=t||0;return this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){if(t.options){c.magnificPopup.defaults[e]=t.options}c.extend(this.proto,t.proto);this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:true}},c.fn.magnificPopup=function(e){D();var t=c(this);if(typeof e==="string"){if(e==="open"){var n,i=g?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;if(i.items){n=i.items[r]}else{n=t;if(i.delegate){n=n.find(i.delegate)}n=n.eq(r)}m._openClick({mfpEl:n},t,i)}else{if(m.isOpen)m[e].apply(m,Array.prototype.slice.call(arguments,1))}}else{e=c.extend(true,{},e);if(g){t.data("magnificPopup",e)}else{t[0].magnificPopup=e}m.addGroup(t,e)}return t};var k="inline",A,O,I,M=function(){if(I){O.after(I.addClass(A)).detach();I=null}};c.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(k);C(l+"."+k,function(){M()})},getInline:function(e,t){M();if(e.src){var n=m.st.inline,i=c(e.src);if(i.length){var r=i[0].parentNode;if(r&&r.tagName){if(!O){A=n.hiddenClass;O=x(A);A="mfp-"+A}I=i.after(O).detach().removeClass(A)}m.updateStatus("ready")}else{m.updateStatus("error",n.tNotFound);i=c("<div>")}e.inlineElement=i;return i}m.updateStatus("ready");m._parseMarkup(t,{},e);return t}}});var N="ajax",j,L=function(){if(j){c(document.body).removeClass(j)}},P=function(){L();if(m.req){m.req.abort()}};c.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){m.types.push(N);j=m.st.ajax.cursor;C(l+"."+N,P);C("BeforeChange."+N,P)},getAjax:function(r){if(j){c(document.body).addClass(j)}m.updateStatus("loading");var e=c.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};E("ParseAjax",i);m.appendContent(c(i.data),N);r.finished=true;L();m._setFocus();setTimeout(function(){m.wrap.addClass(h)},16);m.updateStatus("ready");E("AjaxContentAdded")},error:function(){L();r.finished=r.loadError=true;m.updateStatus("error",m.st.ajax.tError.replace("%url%",r.src))}},m.st.ajax.settings);m.req=c.ajax(e);return""}}});var $,H=function(e){if(e.data&&e.data.title!==undefined)return e.data.title;var t=m.st.image.titleSrc;if(t){if(c.isFunction(t)){return t.call(m,e)}else if(e.el){return e.el.attr(t)||""}}return""};c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure">'+'<div class="mfp-close"></div>'+"<figure>"+'<div class="mfp-img"></div>'+"<figcaption>"+'<div class="mfp-bottom-bar">'+'<div class="mfp-title"></div>'+'<div class="mfp-counter"></div>'+"</div>"+"</figcaption>"+"</figure>"+"</div>",cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:true,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image");C(d+t,function(){if(m.currItem.type==="image"&&e.cursor){c(document.body).addClass(e.cursor)}});C(l+t,function(){if(e.cursor){c(document.body).removeClass(e.cursor)}y.off("resize"+p)});C("Resize"+t,m.resizeImage);if(m.isLowIE){C("AfterChange",m.resizeImage)}},resizeImage:function(){var e=m.currItem;if(!e||!e.img)return;if(m.st.image.verticalFit){var t=0;if(m.isLowIE){t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)}e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){if(e.img){e.hasSize=true;if($){clearInterval($)}e.isCheckingImgSize=false;E("ImageHasSize",e);if(e.imgHidden){if(m.content)m.content.removeClass("mfp-loading");e.imgHidden=false}}},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){if($){clearInterval($)}$=setInterval(function(){if(i.naturalWidth>0){m._onImageHasSize(t);return}if(n>200){clearInterval($)}n++;if(n===3){r(10)}else if(n===40){r(50)}else if(n===100){r(500)}},e)};r(1)},getImage:function(e,t){var n=0,i=function(){if(e){if(e.img[0].complete){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("ready")}e.hasSize=true;e.loaded=true;E("ImageLoadComplete")}else{n++;if(n<200){setTimeout(i,100)}else{r()}}}},r=function(){if(e){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("error",o.tError.replace("%url%",e.src))}e.hasSize=true;e.loaded=true;e.loadError=true}},o=m.st.image;var a=t.find(".mfp-img");if(a.length){var s=document.createElement("img");s.className="mfp-img";if(e.el&&e.el.find("img").length){s.alt=e.el.find("img").attr("alt")}e.img=c(s).on("load.mfploader",i).on("error.mfploader",r);s.src=e.src;if(a.is("img")){e.img=e.img.clone()}s=e.img[0];if(s.naturalWidth>0){e.hasSize=true}else if(!s.width){e.hasSize=false}}m._parseMarkup(t,{title:H(e),img_replaceWith:e.img},e);m.resizeImage();if(e.hasSize){if($)clearInterval($);if(e.loadError){t.addClass("mfp-loading");m.updateStatus("error",o.tError.replace("%url%",e.src))}else{t.removeClass("mfp-loading");m.updateStatus("ready")}return t}m.updateStatus("loading");e.loading=true;if(!e.hasSize){e.imgHidden=true;t.addClass("mfp-loading");m.findImageSize(e)}return t}}});var F,q=function(){if(F===undefined){F=document.createElement("p").style.MozTransform!==undefined}return F};c.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var o=m.st.zoom,e=".zoom",t;if(!o.enabled||!m.supportsTransition){return}var n=o.duration,i=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n;t.css(i);return t},r=function(){m.content.css("visibility","visible")},a,s;C("BuildControls"+e,function(){if(m._allowZoom()){clearTimeout(a);m.content.css("visibility","hidden");t=m._getItemToZoom();if(!t){r();return}s=i(t);s.css(m._getOffset());m.wrap.append(s);a=setTimeout(function(){s.css(m._getOffset(true));a=setTimeout(function(){r();setTimeout(function(){s.remove();t=s=null;E("ZoomAnimationEnded")},16)},n)},16)}});C(u+e,function(){if(m._allowZoom()){clearTimeout(a);m.st.removalDelay=n;if(!t){t=m._getItemToZoom();if(!t){return}s=i(t)}s.css(m._getOffset(true));m.wrap.append(s);m.content.css("visibility","hidden");setTimeout(function(){s.css(m._getOffset())},16)}});C(l+e,function(){if(m._allowZoom()){r();if(s){s.remove()}t=null}})},_allowZoom:function(){return m.currItem.type==="image"},_getItemToZoom:function(){if(m.currItem.hasSize){return m.currItem.img}else{return false}},_getOffset:function(e){var t;if(e){t=m.currItem.img}else{t=m.st.zoom.opener(m.currItem.el||m.currItem)}var n=t.offset();var i=parseInt(t.css("padding-top"),10);var r=parseInt(t.css("padding-bottom"),10);n.top-=c(window).scrollTop()-i;var o={width:t.width(),height:(g?t.innerHeight():t[0].offsetHeight)-r-i};if(q()){o["-moz-transform"]=o["transform"]="translate("+n.left+"px,"+n.top+"px)"}else{o.left=n.left;o.top=n.top}return o}}});var R="iframe",B="//about:blank",W=function(e){if(m.currTemplate[R]){var t=m.currTemplate[R].find("iframe");if(t.length){if(!e){t[0].src=B}if(m.isIE8){t.css("display",e?"block":"none")}}}};c.magnificPopup.registerModule(R,{options:{markup:'<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+"</div>",srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(R);C("BeforeChange",function(e,t,n){if(t!==n){if(t===R){W()}else if(n===R){W(true)}}});C(l+"."+R,function(){W()})},getIframe:function(e,t){var n=e.src;var i=m.st.iframe;c.each(i.patterns,function(){if(n.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){n=n.substr(n.lastIndexOf(this.id)+this.id.length,n.length)}else{n=this.id.call(this,n)}}n=this.src.replace("%id%",n);return false}});var r={};if(i.srcAction){r[i.srcAction]=n}m._parseMarkup(t,r,e);m.updateStatus("ready");return t}}});var U=function(e){var t=m.items.length;if(e>t-1){return e-t}else if(e<0){return t+e}return e},z=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};c.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,e=".mfp-gallery";m.direction=true;if(!o||!o.enabled)return false;_+=" mfp-gallery";C(d+e,function(){if(o.navigateByImgClick){m.wrap.on("click"+e,".mfp-img",function(){if(m.items.length>1){m.next();return false}})}b.on("keydown"+e,function(e){if(e.keyCode===37){m.prev()}else if(e.keyCode===39){m.next()}})});C("UpdateStatus"+e,function(e,t){if(t.text){t.text=z(t.text,m.currItem.index,m.items.length)}});C(f+e,function(e,t,n,i){var r=m.items.length;n.counter=r>1?z(o.tCounter,i.index,r):""});C("BuildControls"+e,function(){if(m.items.length>1&&o.arrows&&!m.arrowLeft){var e=o.arrowMarkup,t=m.arrowLeft=c(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(s),n=m.arrowRight=c(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(s);t.click(function(){m.prev()});n.click(function(){m.next()});m.container.append(t.add(n))}});C(r+e,function(){if(m._preloadTimeout)clearTimeout(m._preloadTimeout);m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages();m._preloadTimeout=null},16)});C(l+e,function(){b.off(e);m.wrap.off("click"+e);m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=true;m.index=U(m.index+1);m.updateItemHTML()},prev:function(){m.direction=false;m.index=U(m.index-1);m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index;m.index=e;m.updateItemHTML()},preloadNearbyImages:function(){var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),i;for(i=1;i<=(m.direction?n:t);i++){m._preloadItem(m.index+i)}for(i=1;i<=(m.direction?t:n);i++){m._preloadItem(m.index-i)}},_preloadItem:function(e){e=U(e);if(m.items[e].preloaded){return}var t=m.items[e];if(!t.parsed){t=m.parseEl(e)}E("LazyLoad",t);if(t.type==="image"){t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=true}).on("error.mfploader",function(){t.hasSize=true;t.loadError=true;E("LazyLoadError",t)}).attr("src",t.src)}t.preloaded=true}}});var Y="retina";c.magnificPopup.registerModule(Y,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=m.st.retina,i=n.ratio;i=!isNaN(i)?i:i();if(i>1){C("ImageHasSize"+"."+Y,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})});C("ElementParse"+"."+Y,function(e,t){t.src=n.replaceSrc(t,i)})}}}}}),D()})?i.apply(t,r):i)||(e.exports=o)},function(i,e,t){var n,r,o;r=[t(0)],void 0===(o="function"==typeof(n=function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd){var t=n.fn.select2.amd}var t;(function(){if(!t||!t.requirejs){if(!t){t={}}else{r=t}
/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
@@ -96,6 +96,6 @@
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*/
-(function(e){if(typeof t.define==="function"&&t.define.amd){t.define("jquery-mousewheel",["jquery"],e)}else if(true){i.exports=e}else{}})(function(d){var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice,h,m;if(d.event.fixHooks){for(var n=e.length;n;){d.event.fixHooks[e[--n]]=d.event.mouseHooks}}var g=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var e=t.length;e;){this.addEventListener(t[--e],i,false)}}else{this.onmousewheel=i}d.data(this,"mousewheel-line-height",g.getLineHeight(this));d.data(this,"mousewheel-page-height",g.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var e=t.length;e;){this.removeEventListener(t[--e],i,false)}}else{this.onmousewheel=null}d.removeData(this,"mousewheel-line-height");d.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=d(e),n=t["offsetParent"in d.fn?"offsetParent":"parent"]();if(!n.length){n=d("body")}return parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return d(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}});function i(e){var t=e||window.event,n=p.call(arguments,1),i=0,r=0,o=0,a=0,s=0,l=0;e=d.event.fix(t);e.type="mousewheel";if("detail"in t){o=t.detail*-1}if("wheelDelta"in t){o=t.wheelDelta}if("wheelDeltaY"in t){o=t.wheelDeltaY}if("wheelDeltaX"in t){r=t.wheelDeltaX*-1}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=o*-1;o=0}i=o===0?r:o;if("deltaY"in t){o=t.deltaY*-1;i=o}if("deltaX"in t){r=t.deltaX;if(o===0){i=r*-1}}if(o===0&&r===0){return}if(t.deltaMode===1){var u=d.data(this,"mousewheel-line-height");i*=u;o*=u;r*=u}else if(t.deltaMode===2){var c=d.data(this,"mousewheel-page-height");i*=c;o*=c;r*=c}a=Math.max(Math.abs(o),Math.abs(r));if(!m||a<m){m=a;if(y(t,a)){m/=40}}if(y(t,a)){i/=40;r/=40;o/=40}i=Math[i>=1?"floor":"ceil"](i/m);r=Math[r>=1?"floor":"ceil"](r/m);o=Math[o>=1?"floor":"ceil"](o/m);if(g.settings.normalizeOffset&&this.getBoundingClientRect){var f=this.getBoundingClientRect();s=e.clientX-f.left;l=e.clientY-f.top}e.deltaX=r;e.deltaY=o;e.deltaFactor=m;e.offsetX=s;e.offsetY=l;e.deltaMode=0;n.unshift(e,i,r,o);if(h){clearTimeout(h)}h=setTimeout(v,200);return(d.event.dispatch||d.event.handle).apply(this,n)}function v(){m=null}function y(e,t){return g.settings.adjustOldDeltas&&e.type==="mousewheel"&&t%120===0}});t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,a){if(r.fn.select2==null){var s=["open","close","destroy"];r.fn.select2=function(n){n=n||{};if(typeof n==="object"){this.each(function(){var e=r.extend(true,{},n);var t=new o(r(this),e)});return this}else if(typeof n==="string"){var t;var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=a.GetData(this,"select2");if(e==null&&window.console&&console.error){console.error("The select2('"+n+"') method was called on an "+"element that is not using Select2.")}t=e[n].apply(e,i)});if(r.inArray(n,s)>-1){return this}return t}else{throw new Error("Invalid arguments for Select2: "+n)}}}if(r.fn.select2.defaults==null){r.fn.select2.defaults=t}return o});return{define:t.define,require:t.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t})?n.apply(e,r):n)||(i.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"Trestle",function(){return P});n(6);var i=n(0),s=n.n(i),r=n(4),o=n.n(r),a=(n(3),n(10),n(11),n(1)),l=n.n(a),u=(n(12),"undefined"!=typeof Turbolinks&&Turbolinks.supported),c=s.a.Callbacks("unique");function f(e){c.add(e)}function d(e){c.fire(e)}var p=s.a.Callbacks("unique");function h(e){p.add(e)}function m(e){p.fire(e,e)}function g(t){var e=t.data("context");s.a.get(e,function(e){t.html(e),m(t)})}function v(){g(s()(".app-main[data-context]"))}f(function(){m(document)}),u?s()(document).on("turbolinks:load",d):s()(document).ready(d);var y={get:function(e){e+="=";for(var t=document.cookie.split(/;\s*/),n=t.length-1;0<=n;n--)if(!t[n].indexOf(e)){var i=t[n].replace(e,"");return decodeURIComponent(i)}return""},set:function(e,t){document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; path=/")},delete:function(e){document.cookie="".concat(e,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}},b={},w={ca:"cat",el:"gr",nb:"no",vi:"vn"};function _(e){u?Turbolinks.visit(e):document.location=e}function C(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function x(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?C(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function E(e,t,n){var i,r,o,a;i=n,(r=s()(i.input)).data("allow-clear")&&s()('<a href="#">').on("click",function(e){e.preventDefault(),r.is(":disabled")||r.hasClass("disabled")||i.clear()}).addClass("clear-datepicker").insertBefore(i.altInput),o=n,(a=s()(o.altInput)).on("input",function(e){var t=a.val(),n=o.parseDate(t,o.config.altFormat);t===o.formatDate(n,o.config.altFormat)&&o.setDate(t,!0,o.config.altFormat)})}function T(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}h(function(e){var t={singleton:!0,popout:!0,title:b["trestle.confirmation.title"]||"Are you sure?",btnOkClass:"btn btn-sm btn-primary",btnOkLabel:b["trestle.confirmation.ok"]||"OK",btnCancelClass:"btn btn-sm btn-light",btnCancelLabel:b["trestle.confirmation.cancel"]||"Cancel",copyAttributes:"href target data-remote data-method data-url data-params data-type"},n=x(x({},t),{},{rootSelector:'[data-toggle="confirm"]'}),i=x(x({},t),{},{rootSelector:'[data-toggle="confirm-delete"]',btnOkClass:"btn btn-sm btn-danger",btnOkLabel:b["trestle.confirmation.delete"]||"Delete"});s()(e).find('[data-toggle="confirm"]').confirmation(n),s()(e).find('[data-toggle="confirm-delete"]').confirmation(i)}),h(function(e){s()(e).find('input[type="date"][data-picker="true"]').flatpickr({allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.date"]||"m/d/Y",onReady:E}),s()(e).find('input[type="datetime"][data-picker="true"], input[type="datetime-local"][data-picker="true"]').flatpickr({enableTime:!0,allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.datetime"]||"m/d/Y h:i K",onReady:E}),s()(e).find('input[type="time"][data-picker="true"]').flatpickr({enableTime:!0,noCalendar:!0,allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.time"]||"h:i K",onReady:E})});var D='\n<div class="modal fade" tabindex="-1" role="dialog">\n <div class="modal-dialog" role="document">\n <div class="modal-content" data-context>\n </div>\n </div>\n</div>\n';function S(e,t){var n=new k({modalClass:"modal-lg"});return n.showError(e,s()("<pre>").addClass("exception").text(t)),n.show(),n}var k=function(){function n(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.options=t,this.$el=((e=s()(D).appendTo("body")).modal({show:!1,focus:!1}),e.on("hidden.bs.modal",function(){e.remove()}),e.on("hide.bs.modal",function(){e.prevAll(".modal.in").last().removeClass("background")}),e.on("ajax:beforeSend","[data-remote]",function(e){e.detail[0].setRequestHeader("X-Trestle-Dialog",!0)}),e),t.modalClass&&this.$el.find(".modal-dialog").addClass(t.modalClass)}var e,t,i;return e=n,(t=[{key:"load",value:function(e,t){var a=this;this.show(),this.setLoading(!0),s.a.ajax({url:e,dataType:"html",headers:{"X-Trestle-Dialog":!0},complete:function(){a.setLoading(!1)},success:function(e){a.setContent(e),t&&t.apply(a)},error:function(e,t,n){var i=b["trestle.dialog.error"]||"The request could not be completed.",r=n||i,o=s()("<p>").text(i);a.showError(r,o)}})}},{key:"setLoading",value:function(e){this.$el.toggleClass("loading",e)}},{key:"setContent",value:function(e){this.$el.find(".modal-content").html(e),m(this.$el)}},{key:"showError",value:function(e,t){this.$el.addClass("error"),this.setContent('\n <div class="modal-header">\n <h4 class="modal-title">'.concat(e,'</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>\n </div>\n\n <div class="modal-body">\n ').concat(t.prop("outerHTML"),'\n </div>\n\n <div class="modal-footer">\n <button type="button" class="btn btn-light" data-dismiss="modal" aria-label="OK">').concat(b["admin.buttons.ok"]||"OK","</button>\n </div>"))}},{key:"show",value:function(){this.$el.modal("show"),this.$el.prevAll(".modal.in").addClass("background")}},{key:"hide",value:function(){this.$el.modal("hide")}}])&&T(e.prototype,t),i&&T(e,i),n}();k.showError=S,s()(document).on("click",'[data-behavior="dialog"]',function(e){e.preventDefault();var t=s()(this).data("url")||s()(this).attr("href");new k({modalClass:s()(this).data("dialog-class")}).load(t)});var A=n(5),O=n.n(A);h(function(){O.a.init()});var I='a[data-toggle="tab"]',M='.is-invalid:not([type="hidden"])';function N(e){var t="".concat(I,"[href='#").concat(e,"']");s()(t).tab("show")}function j(){var e;"#!"===location.hash.substr(0,2)?N(location.hash.substr(2)):(e=s()("".concat(".tab-pane",":has(").concat(M,")"))).length&&N(e.first().attr("id"))}h(function(e){s()(e).find(I).on("shown.bs.tab",function(e){var t=s()(this).attr("href"),n=0<s()(this).closest(".modal").length;"#"!==t.substr(0,1)||n||history.replaceState({turbolinks:{}},"","#!"+t.substr(1))})}),h(function(){j()}),h(function(e){s()(e).find(".tab-pane").each(function(){var e,t,n,i=s()(this).find(M).length;0<i&&(e=s()("<span>").addClass("badge badge-danger badge-pill").text(i),t=s()(this).attr("id"),n="".concat(I,"[href='#").concat(t,"']"),s()(n).append(e))})});var L='form[data-behavior="trestle-form"]';s()(document).on("keypress","".concat(L," :input:not(textarea):not([type=submit])"),function(e){13===e.keyCode&&e.preventDefault()}),h(function(e){var t=s()(e).find(L);t.on("ajax:send",function(e){var t;e.target===this&&(s()(this).find(":submit").prop("disabled",!0),(t=s()(this).data("trestle:submitButton"))&&s()(t).addClass("loading"))}).on("ajax:complete",function(e){var t,n,i,r,o;e.target===this&&(t=e.detail[0],s()(this).find(":submit").prop("disabled",!1).removeClass("loading"),s()(this).removeData("trestle:submitButton"),"text/html"===(n=(t.getResponseHeader("Content-Type")||"").split(";")[0])?/<html/i.test(t.responseText)?(i=s()(this).closest("[data-context]"),r=s()("<iframe>").addClass("error-iframe").get(0),i.html(r),r.contentWindow.document.documentElement.innerHTML=t.responseText):((o=s()(this).closest("[data-context]")).html(t.responseText),m(o),j()):"text/plain"===n&&S("".concat(t.status," (").concat(t.statusText,")"),t.responseText))}).on("ajax:success",function(e){var t,n,i;e.target===this&&(t=e.detail[2],n=s()(this).closest("[data-context]"),(i=t.getResponseHeader("X-Trestle-Location"))&&(i+=document.location.hash,history.replaceState({},"",i),n.data("context",i)),n.hasClass("app-main")||v())}),t.find(":submit").click(function(){s()(this).closest("form").data("trestle:submitButton",this)})}),h(function(e){s()(e).find('[data-behavior~="zoom"]').magnificPopup({type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",zoom:{enabled:!0,duration:150}}),s()(e).find('[data-behavior~="gallery"]').each(function(){s()(this).magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",gallery:{enabled:!0},zoom:{enabled:!0,duration:150}})})});s()(document).on("ajax:send",function(e){s()(e.target).closest("[data-context]").find(".table-container").addClass("loading")}).on("ajax:complete",function(e){s()(e.target).closest("[data-context]").find(".table-container").removeClass("loading")}).on("ajax:success",".page-link[data-remote]",function(e){var t=s()(e.target),n=t.closest("[data-context]"),i=s()(e.detail[0]),r=i.find(".table-container");n.find(".table-container").replaceWith(r),m(r);var o=i.find(".pagination-container");n.find(".pagination-container").replaceWith(o);var a=t.attr("href");a&&n.data("context",a),r[0].scrollIntoView(!0)}),s.a.fn.select2.defaults.set("theme","bootstrap"),s.a.fn.select2.defaults.set("containerCssClass",":all:"),s.a.fn.select2.defaults.set("dropdownCssClass",function(e){return e[0].className.replace(/\s*form-control(-\w+)?\s*/g,"")}),h(function(e){s()(e).find("select[data-enable-select2]").select2()}),f(function(){var r=s()("body"),o=s()(".app-wrapper"),n=s()(".app-sidebar");n.find(".navbar-toggler").on("click",function(e){e.preventDefault(),o.addClass("animate"),r.toggleClass("mobile-nav-expanded")}),o.on("transitionend webkitTransitionEnd",function(){s()(this).removeClass("animate")}),o.on("click touchstart",function(e){var t=s()("body").hasClass("mobile-nav-expanded"),n=s()(e.target).closest(".app-header").length,i=s()(e.target).closest(".app-sidebar").length;!t||n||i||(e.stopPropagation(),e.preventDefault(),o.addClass("animate"),r.removeClass("mobile-nav-expanded"))}),n.find(".toggle-sidebar").on("click",function(e){e.preventDefault(),r.hasClass("sidebar-expanded")||r.hasClass("sidebar-collapsed")?(r.removeClass("sidebar-expanded").removeClass("sidebar-collapsed"),y.delete("trestle:sidebar")):1200<=s()(document).width()?(r.addClass("sidebar-collapsed"),y.set("trestle:sidebar","collapsed")):768<=s()(document).width()&&(r.addClass("sidebar-expanded"),y.set("trestle:sidebar","expanded"))}),n.find(".nav-header a").on("click",function(e){e.preventDefault(),s()(this).closest("ul").toggleClass("collapsed");var t=n.find(".collapsed .nav-header a").map(function(){return s()(this).attr("href").replace(/^#/,"")}).toArray();y.set("trestle:navigation:collapsed",t.join(","))});var e=n.find(".active");e.length&&n.find(".app-sidebar-inner").scrollTop(e.offset().top-100)}),s()(document).on("click",'tr[data-url]:not([data-behavior="dialog"])',function(e){var t=s()(e.currentTarget),n="auto"===t.data("url")?t.find("td:not(.actions) a:first").attr("href"):t.data("url");n&&(e.metaKey||e.ctrlKey?window.open(n,"_blank"):_(n))}),s()(document).on("click","tr[data-url] a, tr[data-url] input, .select-row",function(e){e.stopPropagation()}),s()(document).on("click","th.select-row input",function(e){var t=s()(this).closest("table"),n=s()(this).is(":checked");t.find("td.select-row input").prop("checked",n)}),s()(document).on("click","td.select-row input",function(e){var t=s()(this).closest("table"),n=t.find("td.select-row input"),i=n.filter(":checked"),r=t.find("th.select-row input");n.length===i.length?(r.prop("indeterminate",!1),r.prop("checked",!0)):0===i.length?(r.prop("indeterminate",!1),r.prop("checked",!1)):r.prop("indeterminate",!0)}),h(function(e){s()(e).find('[data-toggle="tooltip"]').tooltip(),s()(e).find('[data-toggle="popover"]').popover()}),"ontouchstart"in window||f(function(){s()(document).tooltip({selector:".app-nav a",trigger:"hover",placement:"right",boundary:"window",template:'<div class="tooltip nav-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',title:function(){return s()(this).find(".nav-label").text()}})}),o.a.start();var P={refreshContext:g,refreshMainContext:v,cookie:y,init:h,ready:f,triggerInit:m,triggerReady:d,i18n:b,localize:function(){for(var e=0;e<arguments.length;++e){var t=arguments[e],n=w[t]||t;if(l.a.l10ns[n]){l.a.localize(l.a.l10ns[n]);break}}},turbolinks:u,visit:_,Dialog:k,focusTab:N,focusActiveTab:j}}]).Trestle;
+(function(e){if(typeof t.define==="function"&&t.define.amd){t.define("jquery-mousewheel",["jquery"],e)}else if(true){i.exports=e}else{}})(function(d){var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice,h,m;if(d.event.fixHooks){for(var n=e.length;n;){d.event.fixHooks[e[--n]]=d.event.mouseHooks}}var g=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var e=t.length;e;){this.addEventListener(t[--e],i,false)}}else{this.onmousewheel=i}d.data(this,"mousewheel-line-height",g.getLineHeight(this));d.data(this,"mousewheel-page-height",g.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var e=t.length;e;){this.removeEventListener(t[--e],i,false)}}else{this.onmousewheel=null}d.removeData(this,"mousewheel-line-height");d.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=d(e),n=t["offsetParent"in d.fn?"offsetParent":"parent"]();if(!n.length){n=d("body")}return parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return d(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}});function i(e){var t=e||window.event,n=p.call(arguments,1),i=0,r=0,o=0,a=0,s=0,l=0;e=d.event.fix(t);e.type="mousewheel";if("detail"in t){o=t.detail*-1}if("wheelDelta"in t){o=t.wheelDelta}if("wheelDeltaY"in t){o=t.wheelDeltaY}if("wheelDeltaX"in t){r=t.wheelDeltaX*-1}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){r=o*-1;o=0}i=o===0?r:o;if("deltaY"in t){o=t.deltaY*-1;i=o}if("deltaX"in t){r=t.deltaX;if(o===0){i=r*-1}}if(o===0&&r===0){return}if(t.deltaMode===1){var u=d.data(this,"mousewheel-line-height");i*=u;o*=u;r*=u}else if(t.deltaMode===2){var c=d.data(this,"mousewheel-page-height");i*=c;o*=c;r*=c}a=Math.max(Math.abs(o),Math.abs(r));if(!m||a<m){m=a;if(y(t,a)){m/=40}}if(y(t,a)){i/=40;r/=40;o/=40}i=Math[i>=1?"floor":"ceil"](i/m);r=Math[r>=1?"floor":"ceil"](r/m);o=Math[o>=1?"floor":"ceil"](o/m);if(g.settings.normalizeOffset&&this.getBoundingClientRect){var f=this.getBoundingClientRect();s=e.clientX-f.left;l=e.clientY-f.top}e.deltaX=r;e.deltaY=o;e.deltaFactor=m;e.offsetX=s;e.offsetY=l;e.deltaMode=0;n.unshift(e,i,r,o);if(h){clearTimeout(h)}h=setTimeout(v,200);return(d.event.dispatch||d.event.handle).apply(this,n)}function v(){m=null}function y(e,t){return g.settings.adjustOldDeltas&&e.type==="mousewheel"&&t%120===0}});t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,a){if(r.fn.select2==null){var s=["open","close","destroy"];r.fn.select2=function(n){n=n||{};if(typeof n==="object"){this.each(function(){var e=r.extend(true,{},n);var t=new o(r(this),e)});return this}else if(typeof n==="string"){var t;var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=a.GetData(this,"select2");if(e==null&&window.console&&console.error){console.error("The select2('"+n+"') method was called on an "+"element that is not using Select2.")}t=e[n].apply(e,i)});if(r.inArray(n,s)>-1){return this}return t}else{throw new Error("Invalid arguments for Select2: "+n)}}}if(r.fn.select2.defaults==null){r.fn.select2.defaults=t}return o});return{define:t.define,require:t.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t})?n.apply(e,r):n)||(i.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"Trestle",function(){return U});n(6);var i=n(0),s=n.n(i),r=n(4),o=n.n(r),a=(n(3),n(10),n(11),n(1)),l=n.n(a),u=(n(12),"undefined"!=typeof Turbolinks&&Turbolinks.supported),c=s.a.Callbacks("unique");function f(e){c.add(e)}function d(e){c.fire(e)}var p=s.a.Callbacks("unique");function h(e){p.add(e)}function m(e){p.fire(e,e)}function g(t){var e=t.data("context");s.a.get(e,function(e){t.html(e),m(t)})}function v(){g(s()(".app-main[data-context]"))}f(function(){m(document)}),u?s()(document).on("turbolinks:load",d):s()(document).ready(d);var y={get:function(e){e+="=";for(var t=document.cookie.split(/;\s*/),n=t.length-1;0<=n;n--)if(!t[n].indexOf(e)){var i=t[n].replace(e,"");return decodeURIComponent(i)}return""},set:function(e,t){document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; path=/")},delete:function(e){document.cookie="".concat(e,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}},b={},w={ca:"cat",el:"gr",nb:"no",vi:"vn"};function _(e){u?Turbolinks.visit(e):document.location=e}function C(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function x(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?C(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function E(e,t,n){var i,r,o,a;i=n,(r=s()(i.input)).data("allow-clear")&&s()('<a href="#">').on("click",function(e){e.preventDefault(),r.is(":disabled")||r.hasClass("disabled")||i.clear()}).addClass("clear-datepicker").insertBefore(i.altInput),o=n,(a=s()(o.altInput)).on("input",function(e){var t=a.val(),n=o.parseDate(t,o.config.altFormat);t===o.formatDate(n,o.config.altFormat)&&o.setDate(t,!0,o.config.altFormat)})}function T(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}h(function(e){var t={singleton:!0,popout:!0,title:b["trestle.confirmation.title"]||"Are you sure?",btnOkClass:"btn btn-sm btn-primary",btnOkLabel:b["trestle.confirmation.ok"]||"OK",btnCancelClass:"btn btn-sm btn-light",btnCancelLabel:b["trestle.confirmation.cancel"]||"Cancel",copyAttributes:"href target data-remote data-method data-url data-params data-type"},n=x(x({},t),{},{rootSelector:'[data-toggle="confirm"]'}),i=x(x({},t),{},{rootSelector:'[data-toggle="confirm-delete"]',btnOkClass:"btn btn-sm btn-danger",btnOkLabel:b["trestle.confirmation.delete"]||"Delete"});s()(e).find('[data-toggle="confirm"]').confirmation(n),s()(e).find('[data-toggle="confirm-delete"]').confirmation(i)}),h(function(e){s()(e).find('input[type="date"][data-picker="true"]').flatpickr({allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.date"]||"m/d/Y",onReady:E}),s()(e).find('input[type="datetime"][data-picker="true"], input[type="datetime-local"][data-picker="true"]').flatpickr({enableTime:!0,allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.datetime"]||"m/d/Y h:i K",onReady:E}),s()(e).find('input[type="time"][data-picker="true"]').flatpickr({enableTime:!0,noCalendar:!0,allowInput:!0,altInput:!0,altFormat:b["admin.datepicker.formats.time"]||"h:i K",onReady:E})});var D='\n<div class="modal fade" tabindex="-1" role="dialog">\n <div class="modal-dialog" role="document">\n <div class="modal-content" data-context>\n </div>\n </div>\n</div>\n';function S(e,t){var n=new k({modalClass:"modal-lg"});return n.showError(e,s()("<pre>").addClass("exception").text(t)),n.show(),n}var k=function(){function n(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.options=t,this.$el=((e=s()(D).appendTo("body")).modal({show:!1,focus:!1}),e.on("hidden.bs.modal",function(){e.remove()}),e.on("hide.bs.modal",function(){e.prevAll(".modal.in").last().removeClass("background")}),e.on("ajax:beforeSend","[data-remote]",function(e){e.detail[0].setRequestHeader("X-Trestle-Dialog",!0)}),e),t.modalClass&&this.$el.find(".modal-dialog").addClass(t.modalClass)}var e,t,i;return e=n,(t=[{key:"load",value:function(e,t){var a=this;this.show(),this.setLoading(!0),s.a.ajax({url:e,dataType:"html",headers:{"X-Trestle-Dialog":!0},complete:function(){a.setLoading(!1)},success:function(e){a.setContent(e),t&&t.apply(a)},error:function(e,t,n){var i=b["trestle.dialog.error"]||"The request could not be completed.",r=n||i,o=s()("<p>").text(i);a.showError(r,o)}})}},{key:"setLoading",value:function(e){this.$el.toggleClass("loading",e)}},{key:"setContent",value:function(e){this.$el.find(".modal-content").html(e),m(this.$el)}},{key:"showError",value:function(e,t){this.$el.addClass("error"),this.setContent('\n <div class="modal-header">\n <h4 class="modal-title">'.concat(e,'</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>\n </div>\n\n <div class="modal-body">\n ').concat(t.prop("outerHTML"),'\n </div>\n\n <div class="modal-footer">\n <button type="button" class="btn btn-light" data-dismiss="modal" aria-label="OK">').concat(b["admin.buttons.ok"]||"OK","</button>\n </div>"))}},{key:"show",value:function(){this.$el.modal("show"),this.$el.prevAll(".modal.in").addClass("background")}},{key:"hide",value:function(){this.$el.modal("hide")}}])&&T(e.prototype,t),i&&T(e,i),n}();k.showError=S,s()(document).on("click",'[data-behavior="dialog"]',function(e){e.preventDefault();var t=s()(this).data("url")||s()(this).attr("href");new k({modalClass:s()(this).data("dialog-class")}).load(t)});var A=n(5),O=n.n(A);h(function(){O.a.init()});var I='a[data-toggle="tab"]',M='.is-invalid:not([type="hidden"])';function N(e){var t="".concat(I,"[href='#").concat(e,"']");s()(t).tab("show")}function j(){var e;"#!"===location.hash.substr(0,2)?N(location.hash.substr(2)):(e=s()("".concat(".tab-pane",":has(").concat(M,")"))).length&&N(e.first().attr("id"))}h(function(e){s()(e).find(I).on("shown.bs.tab",function(e){var t=s()(this).attr("href"),n=0<s()(this).closest(".modal").length;"#"!==t.substr(0,1)||n||history.replaceState({turbolinks:{}},"","#!"+t.substr(1))})}),h(function(){j()}),h(function(e){s()(e).find(".tab-pane").each(function(){var e,t,n,i=s()(this).find(M).length;0<i&&(e=s()("<span>").addClass("badge badge-danger badge-pill").text(i),t=s()(this).attr("id"),n="".concat(I,"[href='#").concat(t,"']"),s()(n).append(e))})});var L='form[data-behavior="trestle-form"]';s()(document).on("keypress","".concat(L," :input:not(textarea):not([type=submit])"),function(e){13===e.keyCode&&e.preventDefault()}),h(function(e){var t=s()(e).find(L);t.on("ajax:send",function(e){var t;e.target===this&&(s()(this).find(":submit").prop("disabled",!0),(t=s()(this).data("trestle:submitButton"))&&s()(t).addClass("loading"))}).on("ajax:complete",function(e){var t,n,i,r,o;e.target===this&&(t=e.detail[0],s()(this).find(":submit").prop("disabled",!1).removeClass("loading"),s()(this).removeData("trestle:submitButton"),"text/html"===(n=(t.getResponseHeader("Content-Type")||"").split(";")[0])?/<html/i.test(t.responseText)?(i=s()(this).closest("[data-context]"),r=s()("<iframe>").addClass("error-iframe").get(0),i.html(r),r.contentWindow.document.documentElement.innerHTML=t.responseText):((o=s()(this).closest("[data-context]")).html(t.responseText),m(o),j()):"text/plain"===n&&S("".concat(t.status," (").concat(t.statusText,")"),t.responseText))}).on("ajax:success",function(e){var t,n,i;e.target===this&&(t=e.detail[2],n=s()(this).closest("[data-context]"),(i=t.getResponseHeader("X-Trestle-Location"))&&(i+=document.location.hash,history.replaceState({},"",i),n.data("context",i)),n.hasClass("app-main")||v())}),t.find(":submit").click(function(){s()(this).closest("form").data("trestle:submitButton",this)})}),h(function(e){s()(e).find('[data-behavior~="zoom"]').magnificPopup({type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",zoom:{enabled:!0,duration:150}}),s()(e).find('[data-behavior~="gallery"]').each(function(){s()(this).magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",gallery:{enabled:!0},zoom:{enabled:!0,duration:150}})})});function P(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function q(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),e}s()(document).on("ajax:send",function(e){s()(e.target).closest("[data-context]").find(".table-container").addClass("loading")}).on("ajax:complete",function(e){s()(e.target).closest("[data-context]").find(".table-container").removeClass("loading")}).on("ajax:success",".page-link[data-remote]",function(e){var t=s()(e.target),n=t.closest("[data-context]"),i=s()(e.detail[0]),r=i.find(".table-container");n.find(".table-container").replaceWith(r),m(r);var o=i.find(".pagination-container");n.find(".pagination-container").replaceWith(o);var a=t.attr("href");a&&n.data("context",a),r[0].scrollIntoView(!0)}),s.a.fn.select2.defaults.set("theme","bootstrap"),s.a.fn.select2.defaults.set("containerCssClass",":all:"),s.a.fn.select2.defaults.set("dropdownCssClass",function(e){return e[0].className.replace(/\s*form-control(-\w+)?\s*/g,"")}),h(function(e){s()(e).find("select[data-enable-select2]").select2()});var R="trestle:navigation",B=function(){function e(){H(this,e)}return q(e,[{key:"addGroup",value:function(t,e){this.updateState(e,function(e){return e.add(t)})}},{key:"removeGroup",value:function(t,e){this.updateState(e,function(e){return e.delete(t)})}},{key:"updateState",value:function(e,t){var n=this.getState(e);t(n),this.saveState(e,n)}},{key:"getState",value:function(e){var t=y.get("".concat(R,":").concat(e));return new Set(t.length?t.split(","):[])}},{key:"saveState",value:function(e,t){y.set("".concat(R,":").concat(e),P(t).join(","))}}]),e}(),W=new(function(){function e(){H(this,e),this.store=new B}return q(e,[{key:"toggle",value:function(e){e.hasClass("collapsed")?this.expand(e):this.collapse(e)}},{key:"expand",value:function(e){e.removeClass("collapsed");var t=e.data("group");this.store.addGroup(t,"expanded"),this.store.removeGroup(t,"collapsed")}},{key:"collapse",value:function(e){e.addClass("collapsed");var t=e.data("group");this.store.addGroup(t,"collapsed"),this.store.removeGroup(t,"expanded")}}]),e}());f(function(){var r=s()("body"),o=s()(".app-wrapper"),e=s()(".app-sidebar");e.find(".navbar-toggler").on("click",function(e){e.preventDefault(),o.addClass("animate"),r.toggleClass("mobile-nav-expanded")}),o.on("transitionend webkitTransitionEnd",function(){s()(this).removeClass("animate")}),o.on("click touchstart",function(e){var t=s()("body").hasClass("mobile-nav-expanded"),n=s()(e.target).closest(".app-header").length,i=s()(e.target).closest(".app-sidebar").length;!t||n||i||(e.stopPropagation(),e.preventDefault(),o.addClass("animate"),r.removeClass("mobile-nav-expanded"))}),e.find(".toggle-sidebar").on("click",function(e){e.preventDefault(),r.hasClass("sidebar-expanded")||r.hasClass("sidebar-collapsed")?(r.removeClass("sidebar-expanded").removeClass("sidebar-collapsed"),y.delete("trestle:sidebar")):1200<=s()(document).width()?(r.addClass("sidebar-collapsed"),y.set("trestle:sidebar","collapsed")):768<=s()(document).width()&&(r.addClass("sidebar-expanded"),y.set("trestle:sidebar","expanded"))}),e.find(".nav-header a").on("click",function(e){e.preventDefault();var t=s()(this).closest("ul");W.toggle(t)});var t=e.find(".active");t.length&&e.find(".app-sidebar-inner").scrollTop(t.offset().top-100)}),s()(document).on("click",'tr[data-url]:not([data-behavior="dialog"])',function(e){var t=s()(e.currentTarget),n="auto"===t.data("url")?t.find("td:not(.actions) a:first").attr("href"):t.data("url");n&&(e.metaKey||e.ctrlKey?window.open(n,"_blank"):_(n))}),s()(document).on("click","tr[data-url] a, tr[data-url] input, .select-row",function(e){e.stopPropagation()}),s()(document).on("click","th.select-row input",function(e){var t=s()(this).closest("table"),n=s()(this).is(":checked");t.find("td.select-row input").prop("checked",n)}),s()(document).on("click","td.select-row input",function(e){var t=s()(this).closest("table"),n=t.find("td.select-row input"),i=n.filter(":checked"),r=t.find("th.select-row input");n.length===i.length?(r.prop("indeterminate",!1),r.prop("checked",!0)):0===i.length?(r.prop("indeterminate",!1),r.prop("checked",!1)):r.prop("indeterminate",!0)}),h(function(e){s()(e).find('[data-toggle="tooltip"]').tooltip(),s()(e).find('[data-toggle="popover"]').popover()}),"ontouchstart"in window||f(function(){s()(document).tooltip({selector:".app-nav a",trigger:"hover",placement:"right",boundary:"window",template:'<div class="tooltip nav-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',title:function(){return s()(this).find(".nav-label").text()}})}),o.a.start();var U={refreshContext:g,refreshMainContext:v,cookie:y,init:h,ready:f,triggerInit:m,triggerReady:d,i18n:b,localize:function(){for(var e=0;e<arguments.length;++e){var t=arguments[e],n=w[t]||t;if(l.a.l10ns[n]){l.a.localize(l.a.l10ns[n]);break}}},turbolinks:u,visit:_,Dialog:k,focusTab:N,focusActiveTab:j}}]).Trestle;
\ No newline at end of file