/* * # Fomantic UI - 2.8.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2022 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(p,h,v,b){p.isFunction=p.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},p.site=p.fn.site=function(e){var s,i=(new Date).getTime(),o=[],r=e,d="string"==typeof r,f=[].slice.call(arguments,1),l=p.isPlainObject(e)?p.extend(!0,{},p.site.settings,e):p.extend({},p.site.settings),a=l.namespace,m=l.error,t="module-"+a,n=p(v),g=this,c=n.data(t),u={initialize:function(){u.instantiate()},instantiate:function(){u.verbose("Storing instance of site",u),c=u,n.data(t,u)},normalize:function(){u.fix.console(),u.fix.requestAnimationFrame()},fix:{console:function(){u.debug("Normalizing window.console"),console!==b&&console.log!==b||(u.verbose("Console not available, normalizing events"),u.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(u.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(u.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){u.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){u.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(u.debug("RequestAnimationFrame not available, normalizing event"),h.requestAnimationFrame=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return p.fn[e]!==b&&p.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||l.modules,p.each(e,function(e,t){u.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||l.modules,p.each(e,function(e,t){u.moduleExists(t)||n.push(t)}),n}},change:{setting:function(o,a,e,r){e="string"==typeof e?"all"===e?l.modules:[e]:e||l.modules,r=r===b||r,p.each(e,function(e,t){var n,i=!u.moduleExists(t)||(p.fn[t].settings.namespace||!1);u.moduleExists(t)&&(u.verbose("Changing default setting",o,a,t),p.fn[t].settings[o]=a,r&&i&&0<(n=p(":data(module-"+i+")")).length&&(u.verbose("Modifying existing settings",n),n[t]("setting",o,a)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||l.modules,o=o===b||o,p.each(e,function(e,t){var n;u.moduleExists(t)&&(u.verbose("Changing default setting",i,t),p.extend(!0,p.fn[t].settings,i),o&&a&&0<(n=p(":data(module-"+a+")")).length&&(u.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){u.console(!0)},debug:function(e,t){e=e||l.modules,u.debug("Enabling debug for modules",e),u.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||l.modules,u.debug("Enabling verbose debug for modules",e),u.change.setting("verbose",!0,e,t)}},disable:{console:function(){u.console(!1)},debug:function(e,t){e=e||l.modules,u.debug("Disabling debug for modules",e),u.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||l.modules,u.debug("Disabling verbose debug for modules",e),u.change.setting("verbose",!1,e,t)}},console:function(e){e?c.cache.console!==b?(u.debug("Restoring console function"),h.console=c.cache.console):u.error(m.console):(u.debug("Disabling console function"),c.cache.console=h.console,h.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}})},destroy:function(){u.verbose("Destroying previous site for",n),n.removeData(t)},cache:{},setting:function(e,t){if(p.isPlainObject(e))p.extend(!0,l,e);else{if(t===b)return l[e];l[e]=t}},internal:function(e,t){if(p.isPlainObject(e))p.extend(!0,u,e);else{if(t===b)return u[e];u[e]=t}},debug:function(){l.debug&&(l.performance?u.performance.log(arguments):(u.debug=Function.prototype.bind.call(console.info,console,l.name+":"),u.debug.apply(console,arguments)))},verbose:function(){l.verbose&&l.debug&&(l.performance?u.performance.log(arguments):(u.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),u.verbose.apply(console,arguments)))},error:function(){u.error=Function.prototype.bind.call(console.error,console,l.name+":"),u.error.apply(console,arguments)},performance:{log:function(e){var t,n;l.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:g,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(u.performance.timer),u.performance.timer=setTimeout(u.performance.display,500)},display:function(){var e=l.name+":",n=0;i=!1,clearTimeout(u.performance.timer),p.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0")},fields:function(e){var n=M();return M.each(e,function(e,t){n=n.add(h.get.field(t))}),n},validation:function(i){var o,a;return!!l&&(M.each(l,function(e,n){a=n.identifier||e,M.each(h.get.field(a),function(e,t){if(t==i[0])return n.identifier=a,o=n,!1})}),o||!1)},value:function(e){var t=[];return t.push(e),h.get.values.call(b,t)[e]},values:function(e){var e=Array.isArray(e)?h.get.fields(e):n,d={};return e.each(function(u,e){var e=M(e),t=e.closest(g.uiCalendar),n=e.prop("name"),i=e.val(),o=e.is(g.checkbox),a=e.is(g.radio),r=-1!==n.indexOf("[]"),s=0"}),M(n+="")},prompt:function(e,t){return M("
").addClass(t).html(e[0])}},formatter:{date:function(e){return Intl.DateTimeFormat("en-GB").format(e)},datetime:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},time:function(e){return Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},month:function(e){return Intl.DateTimeFormat("en-GB",{month:"2-digit",year:"numeric"}).format(e)},year:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric"}).format(e)}},rules:{empty:function(e){return!(e===L||""===e||Array.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==L&&e.length>=t},exactLength:function(e,t){return e!==L&&e.length==t},maxLength:function(e,t){return e!==L&&e.length<=t},match:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()==i.toString()},different:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()!==i.toString()},creditCard:function(n,e){var i,o,a={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},r=!1,e="string"==typeof e&&e.split(",");if("string"==typeof n&&0!==n.length){if(n=n.replace(/[\s\-]/g,""),e&&(M.each(e,function(e,t){(o=a[t])&&(i={length:-1!==M.inArray(n.length,o.length),pattern:-1!==n.search(o.pattern)}).length&&i.pattern&&(r=!0)}),!r))return!1;if((e={number:-1!==M.inArray(n.length,a.unionPay.length),pattern:-1!==n.search(a.unionPay.pattern)}).number&&e.pattern)return!0;for(var t=n.length,s=0,l=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],c=0;t--;)c+=l[s][parseInt(n.charAt(t),10)],s^=1;return c%10==0&&0=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(k,T,S){"use strict";k.isFunction=k.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},T=void 0!==T&&T.Math==Math?T:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k.fn.accordion=function(p){var h,v=k(this),b=(new Date).getTime(),y=[],x=p,C="string"==typeof x,w=[].slice.call(arguments,1);return v.each(function(){var t,a=k.isPlainObject(p)?k.extend(!0,{},k.fn.accordion.settings,p):k.extend({},k.fn.accordion.settings),r=a.className,n=a.namespace,s=a.selector,g=a.error,i="."+n,e="module-"+n,o=v.selector||"",l=k(this),c=l.find(s.title),u=l.find(s.content),d=this,f=l.data(e),m={initialize:function(){m.debug("Initializing",l),m.bind.events(),a.observeChanges&&m.observeChanges(),m.instantiate()},instantiate:function(){f=m,l.data(e,m)},destroy:function(){m.debug("Destroying previous instance",l),l.off(i).removeData(e)},refresh:function(){c=l.find(s.title),u=l.find(s.content)},observeChanges:function(){"MutationObserver"in T&&((t=new MutationObserver(function(e){m.debug("DOM tree modified, updating selector cache"),m.refresh()})).observe(d,{childList:!0,subtree:!0}),m.debug("Setting up mutation observer",t))},bind:{events:function(){m.debug("Binding delegated events"),l.on(a.on+i,s.trigger,m.event.click)}},event:{click:function(){m.toggle.call(this)}},toggle:function(e){var e=e!==S?"number"==typeof e?c.eq(e):k(e).closest(s.title):k(this).closest(s.title),t=e.next(u),n=t.hasClass(r.animating),t=t.hasClass(r.active),i=t&&!n,t=!t&&n;m.debug("Toggling visibility of content",e),i||t?a.collapsible?m.close.call(e):m.debug("Cannot close accordion content collapsing is disabled"):m.open.call(e)},open:function(e){var e=e!==S?"number"==typeof e?c.eq(e):k(e).closest(s.title):k(this).closest(s.title),t=e.next(u),n=t.hasClass(r.animating);t.hasClass(r.active)||n?m.debug("Accordion already open, skipping",t):(m.debug("Opening accordion content",e),a.onOpening.call(t),a.onChanging.call(t),a.exclusive&&m.closeOthers.call(e),e.addClass(r.active),t.stop(!0,!0).addClass(r.animating),a.animateChildren&&(k.fn.transition!==S&&l.transition("is supported")?t.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,duration:a.duration,skipInlineHidden:!0,onComplete:function(){t.children().removeClass(r.transition)}}):t.children().stop(!0,!0).animate({opacity:1},a.duration,m.resetOpacity)),t.slideDown(a.duration,a.easing,function(){t.removeClass(r.animating).addClass(r.active),m.reset.display.call(this),a.onOpen.call(this),a.onChange.call(this)}))},close:function(e){var e=e!==S?"number"==typeof e?c.eq(e):k(e).closest(s.title):k(this).closest(s.title),t=e.next(u),n=t.hasClass(r.animating),i=t.hasClass(r.active);!i&&!(!i&&n)||i&&n||(m.debug("Closing accordion content",t),a.onClosing.call(t),a.onChanging.call(t),e.removeClass(r.active),t.stop(!0,!0).addClass(r.animating),a.animateChildren&&(k.fn.transition!==S&&l.transition("is supported")?t.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,duration:a.duration,skipInlineHidden:!0}):t.children().stop(!0,!0).animate({opacity:0},a.duration,m.resetOpacity)),t.slideUp(a.duration,a.easing,function(){t.removeClass(r.animating).removeClass(r.active),m.reset.display.call(this),a.onClose.call(this),a.onChange.call(this)}))},closeOthers:function(e){var t,e=e!==S?c.eq(e):k(this).closest(s.title),n=e.parents(s.content).prev(s.title),e=e.closest(s.accordion),i=s.title+"."+r.active+":visible",o=s.content+"."+r.active+":visible",o=a.closeNested?(t=e.find(i).not(n)).next(u):(t=e.find(i).not(n),e=e.find(o).find(i).not(n),(t=t.not(e)).next(u));0").addClass(G.popup)[e](t)),_.addClass(G.calendar),ne&&_.addClass(G.inverted),e=function(){return ee.refreshTooltips(),$.onVisible.apply(_,arguments)},t=$.onHidden,r.length||(_.attr("tabindex","0"),e=function(){return ee.refreshTooltips(),ee.focus(),$.onVisible.apply(_,arguments)},t=function(){return ee.blur(),$.onHidden.apply(_,arguments)}),n=ee.setting("on"),n=oe.extend({},$.popupOptions,{popup:_,on:n,hoverable:"hover"===n,closable:"click"===n,onShow:function(){return ee.set.focusDate(ee.get.date()),ee.set.mode(ee.get.validatedMode($.startMode)),$.onShow.apply(_,arguments)},onVisible:e,onHide:$.onHide,onHidden:t}),ee.popup(n)):ee.error(l.popup))},inline:function(){u.length&&!$.inline||($.inline=!0,_=oe("
").addClass(G.calendar).appendTo(o),r.length||_.attr("tabindex","0"))},input:function(){$.touchReadonly&&r.length&&d&&r.prop("readonly",!0),ee.check.disabled()},date:function(){var e;$.initialDate?e=a.date($.initialDate,$):o.data(Z.date)!==ae?e=a.date(o.data(Z.date),$):r.length&&(e=a.date(r.val(),$)),ee.set.date(e,$.formatInput,!1),ee.set.mode(ee.get.mode(),!1)}},trigger:{change:function(){var e,t=r[0];t&&(e=D.createEvent("HTMLEvents"),ee.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{calendar:function(){var u,d,f,e=ee.get.mode(),m=new Date,g=ee.get.date(),p=ee.get.focusDate(),h=ee.helper.dateInRange(p||g||$.initialDate||m),t=(p||ee.set.focusDate(p=h,!1,!1),"year"===e),v="month"===e,n="day"===e,b="hour"===e,y="minute"===e,x="time"===$.type,C=Math.max($.multiMonth,1),w=n?ee.get.monthOffset():0,k=h.getMinutes(),T=h.getHours(),S=h.getDate(),D=h.getMonth()+w,i=h.getFullYear(),A=n?$.showWeekNumbers?8:7:b?4:te.column,E=n||b?6:te.row,F=n?C:1,P=(O=_).hasClass("left")?"right center":"left center";for(O.empty(),1").addClass(G.grid).appendTo(O)),d=0;d").addClass(G.column).appendTo(f));var O,o=D+d,R=(new Date(i,o,1).getDay()-$.firstDayOfWeek%7+7)%7,M=(!$.constantHeight&&n&&(M=new Date(i,o+1,0).getDate()+R,E=Math.ceil(M/7)),t?10:v?1:0),I=n?1:0,j=b||y?1:0,L=b||y?S:1,V=new Date(i-M,o-I,L-j,T),I=new Date(i+M,o+I,L+j,T),L=t?new Date(10*Math.ceil(i/10)-9,0,0):v?new Date(i,0,0):n?new Date(i,o,0):new Date(i,o,S,-1),j=t?new Date(10*Math.ceil(i/10)+1,0,1):v?new Date(i+1,0,1):n?new Date(i,o+1,1):new Date(i,o,S+1),q=e,q=(n&&$.showWeekNumbers&&(q+=" andweek"),oe("").addClass(G.table).addClass(q).addClass(ie[A]+" column").appendTo(O)),z=(ne&&q.addClass(G.inverted),A);if(!x){var N=oe("").appendTo(q),H=oe("").appendTo(N),a=oe("").appendTo(N),$.showWeekNumbers&&((a=oe("").appendTo(q),r=t?10*Math.ceil(i/10)-9:n?1-R:0,Y=0;Y").appendTo(W),n&&$.showWeekNumbers&&((a=oe("").appendTo(W),(L=oe("
").attr("colspan",""+A).appendTo(H),U=t||v?new Date(i,0,1):n?new Date(i,o,1):new Date(i,o,S,T,k),B=oe("").addClass(G.link).appendTo(a),U=(B.text(J.header(U,e,$)),v?$.disableYear?"day":"year":n?$.disableMonth?"year":"month":"day");if(B.data(Z.mode,U),0===d&&((B=oe("").addClass(G.prev).appendTo(a)).data(Z.focusDate,V),B.toggleClass(G.disabledCell,!ee.helper.isDateInRange(L,e)),oe("").addClass(G.prevIcon).appendTo(B)),d===F-1&&((U=oe("").addClass(G.next).appendTo(a)).data(Z.focusDate,I),U.toggleClass(G.disabledCell,!ee.helper.isDateInRange(j,e)),oe("").addClass(G.nextIcon).appendTo(U)),n)for(H=oe("
").appendTo(H)).text($.text.weekNo),a.addClass(G.weekCell),z--),r=0;r").appendTo(H)).text(J.dayColumnHeader((r+$.firstDayOfWeek)%7,$))}for(var W=oe("
").appendTo(H)).text(ee.get.weekOfYear(i,o,r+1-$.firstDayOfWeek)),a.addClass(G.weekCell)),u=0;u").addClass(G.cell).appendTo(H)).text(Q),a.data(Z.date,l),n&&l.getMonth()!==(o+12)%12),X=!$.selectAdjacentDays&&Q||!ee.helper.isDateInRange(l,e)||$.isDisabled(l,e)||ee.helper.isDisabled(l,e)||!ee.helper.isEnabled(l,e),c=(X?null!==(c=ee.helper.findDayAsObject(l,e,$.disabledDates))&&c[Z.message]&&(a.attr("data-tooltip",c[Z.message]),a.attr("data-position",c[Z.position]||P),(c[Z.inverted]||ne&&c[Z.inverted]===ae)&&a.attr("data-inverted",""),c[Z.variation]&&a.attr("data-variation",c[Z.variation])):null!==(s=ee.helper.findDayAsObject(l,e,$.eventDates))&&(a.addClass(s[Z.class]||$.eventClass),s[Z.message]&&(a.attr("data-tooltip",s[Z.message]),a.attr("data-position",s[Z.position]||P),(s[Z.inverted]||ne&&s[Z.inverted]===ae)&&a.attr("data-inverted",""),s[Z.variation]&&a.attr("data-variation",s[Z.variation]))),ee.helper.dateEqual(l,g,e)),K=ee.helper.dateEqual(l,m,e),Q=(a.toggleClass(G.adjacentCell,Q&&!s),a.toggleClass(G.disabledCell,X),a.toggleClass(G.activeCell,c&&!(Q&&X)),b||y||a.toggleClass(G.todayCell,!Q&&K),{mode:e,adjacent:Q,disabled:X,active:c,today:K});J.cell(a,l,Q),ee.helper.dateEqual(l,p,e)&&ee.set.focusDate(l,!1,!1)}$.today&&(V=oe("
").attr("colspan",""+A).addClass(G.today).appendTo(V)).text(J.today($)),L.data(Z.date,m)),ee.update.focus(!1,q),$.inline&&ee.refreshTooltips()}}},update:{focus:function(e,t){t=t||_;var r=ee.get.mode(),n=ee.get.date(),s=ee.get.focusDate(),l=ee.get.startDate(),c=ee.get.endDate(),u=(e?s:null)||n||(d?null:s);t.find("td").each(function(){var e,t,n,i,o=oe(this),a=o.data(Z.date);a&&(e=o.hasClass(G.disabledCell),t=o.hasClass(G.activeCell),n=o.hasClass(G.adjacentCell),i=ee.helper.dateEqual(a,s,r),a=!!u&&(!!l&&ee.helper.isDateInRange(a,r,l,u)||!!c&&ee.helper.isDateInRange(a,r,u,c)),o.toggleClass(G.focusCell,i&&(!d||m)&&(!n||$.selectAdjacentDays&&n)&&!e),ee.helper.isTodayButton(o)||o.toggleClass(G.rangeCell,a&&!t&&!e))})}},refresh:function(){ee.create.calendar()},refreshTooltips:function(){var i=oe(S).width();_.find("td[data-position]").each(function(){var e=oe(this),t=S.getComputedStyle(e[0],":after").width.replace(/[^0-9\.]/g,""),n=e.attr("data-position"),t=i-e.width()-(parseInt(t,10)||250)>e.offset().left?"right":"left";-1===n.indexOf(t)&&e.attr("data-position",n.replace(/(left|right)/,t))})},bind:{events:function(){ee.debug("Binding events"),_.on("mousedown"+e,ee.event.mousedown),_.on("touchstart"+e,ee.event.mousedown),_.on("mouseup"+e,ee.event.mouseup),_.on("touchend"+e,ee.event.mouseup),_.on("mouseover"+e,ee.event.mouseover),r.length?(r.on("input"+e,ee.event.inputChange),r.on("focus"+e,ee.event.inputFocus),r.on("blur"+e,ee.event.inputBlur),r.on("keydown"+e,ee.event.keydown)):_.on("keydown"+e,ee.event.keydown)}},unbind:{events:function(){ee.debug("Unbinding events"),_.off(e),r.length&&r.off(e)}},event:{mouseover:function(e){var t=oe(e.target).data(Z.date),e=1===e.buttons;t&&ee.set.focusDate(t,!1,!0,e)},mousedown:function(e){r.length&&e.preventDefault(),m=0<=e.type.indexOf("touch");e=oe(e.target).data(Z.date);e&&ee.set.focusDate(e,!1,!0,!0)},mouseup:function(e){ee.focus(),e.preventDefault(),e.stopPropagation(),m=!1;var t,n,i,e=oe(e.target);e.hasClass("disabled")||(t=(e=(t=e.parent()).data(Z.date)||t.data(Z.focusDate)||t.data(Z.mode)?t:e).data(Z.date),n=e.data(Z.focusDate),i=e.data(Z.mode),t&&!1!==$.onSelect.call(s,t,ee.get.mode())?(e=e.hasClass(G.today),ee.selectDate(t,e)):n?ee.set.focusDate(n):i&&ee.set.mode(i))},keydown:function(e){var t,n,i,o,a,r,s,l=e.which;27!==l&&9!==l||ee.popup("hide"),ee.popup("is visible")&&(37===l||38===l||39===l||40===l?(o="day"===(r=ee.get.mode())?7:"hour"===r?4:"minute"===r?te.column:3,o=37===l?-1:38===l?-o:39==l?1:o,o*="minute"===r?$.minTimeGap:1,a=(t=ee.get.focusDate()||ee.get.date()||new Date).getFullYear()+("year"===r?o:0),s=t.getMonth()+("month"===r?o:0),n=t.getDate()+("day"===r?o:0),i=t.getHours()+("hour"===r?o:0),o=t.getMinutes()+("minute"===r?o:0),a=new Date(a,s,n,i,o),"time"===$.type&&(a=ee.helper.mergeDateTime(t,a)),ee.helper.isDateInRange(a,r)&&ee.set.focusDate(a)):13===l&&(r=ee.get.mode(),(s=ee.get.focusDate())&&!$.isDisabled(s,r)&&!ee.helper.isDisabled(s,r)&&ee.helper.isEnabled(s,r)&&ee.selectDate(s),e.preventDefault(),e.stopPropagation())),38!==l&&40!==l||(e.preventDefault(),ee.popup("show"))},inputChange:function(){var e=r.val(),e=a.date(e,$);ee.set.date(e,!1)},inputFocus:function(){_.addClass(G.active)},inputBlur:function(){var e;_.removeClass(G.active),$.formatInput&&(e=ee.get.date(),e=J.datetime(e,$),r.val(e)),p&&(ee.trigger.change(),p=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&ee.check.disabled()})}}},observeChanges:function(){"MutationObserver"in S&&(t=new MutationObserver(ee.event.class.mutation),ee.debug("Setting up mutation observer",t),ee.observe.class())},disconnect:{classObserver:function(){r.length&&t&&t.disconnect()}},observe:{class:function(){r.length&&t&&t.observe(o[0],{attributes:!0})}},is:{disabled:function(){return o.hasClass(G.disabled)}},check:{disabled:function(){r.attr("tabindex",ee.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,n){return e=Date.UTC(e,t,n+3)/864e5,e=Math.floor(e/7),t=new Date(6048e5*e).getUTCFullYear(),e-Math.floor(Date.UTC(t,0,7)/6048e5)+1},date:function(){return ee.helper.sanitiseDate(o.data(Z.date))||null},inputDate:function(){return r.val()},focusDate:function(){return o.data(Z.focusDate)||null},startDate:function(){var e=ee.get.calendarModule($.startCalendar);return(e?e.get.date():o.data(Z.startDate))||null},endDate:function(){var e=ee.get.calendarModule($.endCalendar);return(e?e.get.date():o.data(Z.endDate))||null},minDate:function(){return o.data(Z.minDate)||null},maxDate:function(){return o.data(Z.maxDate)||null},monthOffset:function(){return o.data(Z.monthOffset)||0},mode:function(){var e=o.data(Z.mode)||$.startMode;return ee.get.validatedMode(e)},validatedMode:function(e){var t=ee.get.validModes();return 0<=oe.inArray(e,t)?e:"time"===$.type?"hour":"month"===$.type?"month":"year"===$.type?"year":"day"},type:function(){return o.data(Z.type)||$.type},validModes:function(){var e=[];return"time"!==$.type&&($.disableYear&&"year"!==$.type||e.push("year"),($.disableMonth||"year"===$.type)&&"month"!==$.type||e.push("month"),0<=$.type.indexOf("date")&&e.push("day")),0<=$.type.indexOf("time")&&(e.push("hour"),$.disableMinute||e.push("minute")),e},isTouch:function(){try{return D.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=e instanceof oe?e:oe(e).first()).data(c):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=ee.helper.sanitiseDate(e),e=ee.helper.dateInRange(e);var i=ee.get.mode(),o=J.datetime(e,$);if(n&&!1===$.onBeforeChange.call(s,e,o,i))return!1;if(ee.set.focusDate(e),$.isDisabled(e,i))return!1;var a=ee.get.endDate();a&&e&&a=e?ee.verbose("Unable to set maxDate variable lower that minDate variable",e,$.minDate):(ee.setting("maxDate",e),ee.set.dataKeyValue(Z.maxDate,e))},monthOffset:function(e,t){var n=Math.max($.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),ee.set.dataKeyValue(Z.monthOffset,e,t)},mode:function(e,t){ee.set.dataKeyValue(Z.mode,e,t)},dataKeyValue:function(e,t,n){var i=o.data(e),i=i===t||i<=t&&t<=i;return t?o.data(e,t):o.removeData(e),(n=!1!==n&&!i)&&ee.refresh(),!i}},selectDate:function(e,t){ee.verbose("New date selection",e);var n=ee.get.mode();t||"minute"===n||$.disableMinute&&"hour"===n||"date"===$.type&&"day"===n||"month"===$.type&&"month"===n||"year"===$.type&&"year"===n?!1===ee.set.date(e)||(p=!0,$.closable&&(ee.popup("hide"),(t=ee.get.calendarModule($.endCalendar))&&("focus"!==t.setting("on")&&t.popup("show"),t.focus()))):(t="year"===n?$.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute",ee.set.mode(t),"hour"===n||"day"===n&&ee.get.date()?ee.set.date(e,!0,!1):ee.set.focusDate(e))},changeDate:function(e){ee.set.date(e)},clear:function(){ee.set.date(ae)},popup:function(){return u.popup.apply(u,arguments)},focus:function(){(r.length?r:_).focus()},blur:function(){(r.length?r:_).blur()},helper:{isDisabled:function(n,i){return("day"===i||"month"===i||"year"===i)&&("day"===i&&-1!==$.disabledDaysOfWeek.indexOf(n.getDay())||$.disabledDates.some(function(e){return(e="string"==typeof e?ee.helper.sanitiseDate(e):e)instanceof Date?ee.helper.dateEqual(n,e,i):null!==e&&"object"==typeof e?e[Z.year]?"number"==typeof e[Z.year]?n.getFullYear()==e[Z.year]:Array.isArray(e[Z.year])?-1=t.centuryBreak&&n===c.length-1){i<=99&&(i+=t.currentCentury-100),l=i,c.splice(n,1);break}if(s<0)for(n=0;n adjusting invoked element"),p=p.closest(g.checkbox),b.refresh())}},setup:function(){b.set.initialLoad(),b.is.indeterminate()?(b.debug("Initial value is indeterminate"),b.indeterminate()):b.is.checked()?(b.debug("Initial value is checked"),b.check()):(b.debug("Initial value is unchecked"),b.uncheck()),b.remove.initialLoad()},refresh:function(){e=p.children(g.label),h=p.children(g.input),v=h[0]},hide:{input:function(){b.verbose("Modifying z-index to be unselectable"),h.addClass(t.hidden)}},show:{input:function(){b.verbose("Modifying z-index to be selectable"),h.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in D&&((n=new MutationObserver(function(e){b.debug("DOM tree modified, updating selector cache"),b.refresh()})).observe(c,{childList:!0,subtree:!0}),b.debug("Setting up mutation observer",n))},attachEvents:function(e,t){var n=S(e);t=S.isFunction(b[t])?b[t]:b.toggle,0").insertAfter(h),b.debug("Creating label",e))}},has:{label:function(){return 0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(e){var t,n=k("
").addClass("ui dimmer");return e.displayLoader&&(t=k("
").addClass(e.className.loader).addClass(e.loaderVariation),e.loaderText&&(t.text(e.loaderText),t.addClass("text")),n.append(t)),n}}}}(jQuery,window,document),function(te,ne,ie,oe){"use strict";te.isFunction=te.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},ne=void 0!==ne&&ne.Math==Math?ne:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),te.fn.dropdown=function(B){var W,Y=te(this),Q=te(ie),X=Y.selector||"",K="ontouchstart"in ie.documentElement,$=K?"touchstart":"click",G=(new Date).getTime(),J=[],Z=B,_="string"==typeof Z,ee=[].slice.call(arguments,1);return Y.each(function(n){var d,e,i,o,a,r,s,c,u,f=te.isPlainObject(B)?te.extend(!0,{},te.fn.dropdown.settings,B):te.extend({},te.fn.dropdown.settings),m=f.className,x=f.message,C=f.fields,w=f.keys,g=f.metadata,k=f.namespace,T=f.regExp,p=f.selector,S=f.error,D=f.templates,t="."+k,A="module-"+k,h=te(this),E=te(f.context),F=h.find(p.text),P=h.find(p.search),O=h.find(p.sizer),l=h.find(p.input),R=h.find(p.icon),M=h.find(p.clearIcon),I=0").html(i).attr("data-"+g.value,t).attr("data-"+g.text,t).addClass(m.addition).addClass(m.item),f.hideAdditions&&i.addClass(m.hidden),n=n===oe?i:n.add(i),y.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=y.get.userValues();t&&(y.debug("Adding user labels",t),te.each(t,function(e,t){y.verbose("Adding custom user value"),y.add.label(t,t)}))},menu:function(){v=te("
").addClass(m.menu).appendTo(h)},sizer:function(){O=te("").addClass(m.sizer).insertAfter(P)}},search:function(e){e=e!==oe?e:y.get.query(),y.verbose("Searching for query",e),!1===f.fireOnInit&&y.is.initialLoad()?y.verbose("Skipping callback on initial load",f.onSearch):y.has.minCharacters(e)&&!1!==f.onSearch.call(N,e)?y.filter(e):y.hide(null,!0)},select:{firstUnfiltered:function(){y.verbose("Selecting first non-filtered element"),y.remove.selectedItem(),b.not(p.unselectable).not(p.addition+p.hidden).eq(0).addClass(m.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(p.item).not(p.unselectable).eq(0),e=e.prevAll(p.item).not(p.unselectable).eq(0);0").addClass("remove icon").insertBefore(F)),y.is.search()&&!y.has.search()&&(y.verbose("Adding search input"),P=te("").addClass(m.search).prop("autocomplete",y.is.chrome()?"fomantic-search":"off").insertBefore(F)),y.is.multiple()&&y.is.searchSelection()&&!y.has.sizer()&&y.create.sizer(),f.allowTab&&y.set.tabbable()},select:function(){var e=y.get.selectValues();y.debug("Dropdown initialized on a select",e),0<(l=h.is("select")?h:l).parent(p.dropdown).length?(y.debug("UI dropdown already exists. Creating dropdown menu only"),h=l.closest(p.dropdown),y.has.menu()||y.create.menu(),v=h.children(p.menu),y.setup.menu(e)):(y.debug("Creating entire dropdown from select"),h=te("
").attr("class",l.attr("class")).addClass(m.selection).addClass(m.dropdown).html(D.dropdown(e,C,f.preserveHTML,f.className)).insertBefore(l),l.hasClass(m.multiple)&&!1===l.prop("multiple")&&(y.error(S.missingMultiple),l.prop("multiple",!0)),l.is("[multiple]")&&y.set.multiple(),l.prop("disabled")&&(y.debug("Disabling dropdown"),h.addClass(m.disabled)),l.removeAttr("required").removeAttr("class").detach().prependTo(h)),y.refresh()},menu:function(e){v.html(D.menu(e,C,f.preserveHTML,f.className)),b=v.find(p.item),j=f.hideDividers?b.parent().children(p.divider):te()},reference:function(){y.debug("Dropdown behavior was called on select, replacing with closest dropdown"),h=h.parent(p.dropdown),U=h.data(A),N=h.get(0),y.refresh(),y.setup.returnedObject()},returnedObject:function(){var e=Y.slice(0,n),t=Y.slice(n+1);Y=e.add(h).add(t)}},refresh:function(){y.refreshSelectors(),y.refreshData()},refreshItems:function(){b=v.find(p.item),j=f.hideDividers?b.parent().children(p.divider):te()},refreshSelectors:function(){y.verbose("Refreshing selector cache"),F=h.find(p.text),P=h.find(p.search),l=h.find(p.input),R=h.find(p.icon),I=0"),te.each(e,function(e,t){var n=f.templates.deQuote(t[C.value]),t=f.templates.escape(t[C.name]||"",f.preserveHTML);l.append('")}),y.observe.select())}},event:{change:function(){q||(y.debug("Input changed, updating selection"),y.set.selected())},focus:function(){f.showOnFocus&&!L&&y.is.hidden()&&!i&&(H=!0,y.show())},blur:function(e){i=ie.activeElement===this,L||i||(y.remove.activeLabel(),y.hide())},mousedown:function(){y.is.searchSelection()?o=!0:L=!0},mouseup:function(){y.is.searchSelection()?o=!1:L=!1},click:function(e){te(e.target).is(h)&&(y.is.focusedOnSearch()?y.show():y.focusSearch())},search:{focus:function(e){L=!0,y.is.multiple()&&y.remove.activeLabel(),H||y.is.active()||!(f.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||(H=!0,y.search())},blur:function(e){i=ie.activeElement===this,y.is.searchSelection()&&!o&&(V||i||(f.forceSelection?y.forceSelection():f.allowAdditions||y.remove.searchTerm(),y.hide())),o=!1}},clearIcon:{click:function(e){y.clear(),y.is.searchSelection()&&y.remove.searchTerm(),y.hide(),e.stopPropagation()}},icon:{click:function(e){z=!0,y.has.search()?y.is.active()?y.blurSearch():f.showOnFocus?y.focusSearch():y.toggle():y.toggle(),e.stopPropagation()}},text:{focus:function(e){L=!0,y.focusSearch()}},input:function(e){(y.is.multiple()||y.is.searchSelection())&&y.set.filtered(),clearTimeout(y.timer),y.timer=setTimeout(y.search,f.delay.search)},label:{click:function(e){var t=te(this),n=h.find(p.label),i=n.filter("."+m.active),o=t.nextAll("."+m.active),a=t.prevAll("."+m.active),o=(0 modified, recreating menu"),y.is.selectMutation(e)&&(y.disconnect.selectObserver(),y.refresh(),y.setup.select(),y.set.selected(),y.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?te(e.addedNodes[0]):te(!1),e=e.removedNodes?te(e.removedNodes[0]):te(!1),t=t.add(e),e=t.is(p.addition)||0=f.maxSelections?(y.debug("Maximum selection count reached"),f.useLabels&&(b.addClass(m.filtered),y.add.message(x.maxSelections)),!0):(y.verbose("No longer at maximum selection count"),y.remove.message(),y.remove.filteredItem(),y.is.searchSelection()&&y.filterItems(),!1))},disabled:function(){P.attr("tabindex",y.is.disabled()?-1:0)}},restore:{defaults:function(e){y.clear(e),y.restore.defaultText(),y.restore.defaultValue()},defaultText:function(){var e=y.get.defaultText();e===y.get.placeholderText?(y.debug("Restoring default placeholder text",e),y.set.placeholderText(e)):(y.debug("Restoring default text",e),y.set.text(e))},placeholderText:function(){y.set.placeholderText()},defaultValue:function(){var e=y.get.defaultValue();e!==oe&&(y.debug("Restoring default value",e),""!==e?(y.set.value(e),y.set.selected()):(y.remove.activeItem(),y.remove.selectedItem()))},labels:function(){f.allowAdditions&&(f.useLabels||(y.error(S.labels),f.useLabels=!0),y.debug("Restoring selected values"),y.create.userLabels()),y.check.maxSelections()},selected:function(){y.restore.values(),y.is.multiple()?(y.debug("Restoring previously selected values and labels"),y.restore.labels()):y.debug("Restoring previously selected values")},values:function(){y.set.initialLoad(),f.apiSettings&&f.saveRemoteData&&y.get.remoteValues()?y.restore.remoteValues():y.set.selected();var e=y.get.value();!e||""===e||Array.isArray(e)&&0===e.length?l.addClass(m.noselection):l.removeClass(m.noselection),y.remove.initialLoad()},remoteValues:function(){var e=y.get.remoteValues();y.debug("Recreating selected from session data",e),e&&(y.is.single()?te.each(e,function(e,t){y.set.text(t)}):te.each(e,function(e,t){y.add.label(e,t)}))}},read:{remoteData:function(e){if(ne.Storage!==oe)return(e=sessionStorage.getItem(e))!==oe&&e;y.error(S.noStorage)}},save:{defaults:function(){y.save.defaultText(),y.save.placeholderText(),y.save.defaultValue()},defaultValue:function(){var e=y.get.value();y.verbose("Saving default value as",e),h.data(g.defaultValue,e)},defaultText:function(){var e=y.get.text();y.verbose("Saving default text as",e),h.data(g.defaultText,e)},placeholderText:function(){var e;!1!==f.placeholder&&F.hasClass(m.placeholder)&&(e=y.get.text(),y.verbose("Saving placeholder text as",e),h.data(g.placeholderText,e))},remoteData:function(e,t){ne.Storage!==oe?(y.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):y.error(S.noStorage)}},clear:function(e){y.is.multiple()&&f.useLabels?y.remove.labels(h.find(p.label),e):(y.remove.activeItem(),y.remove.selectedItem(),y.remove.filteredItem()),y.set.placeholderText(),y.clearValue(e)},clearValue:function(e){y.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||y.get.selectedItem(),n=t.closest(p.menu),i=n.outerHeight(),o=n.scrollTop(),a=b.eq(0).outerHeight(),i=Math.floor(i/a),o=(n.prop("scrollHeight"),"up"==e?o-a*i:o+a*i),a=b.not(p.unselectable),i="up"==e?a.index(t)-i:a.index(t)+i,i=("up"==e?0<=i:i").addClass(m.label).attr("data-"+g.value,a).html(D.label(a,t,f.preserveHTML,f.className)),i=f.onLabelCreate.call(i,a,t),y.has.label(e)?y.debug("User selection already exists, skipping",a):(f.label.variation&&i.addClass(f.label.variation),!0===n?(y.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(o).transition({animation:f.label.transition,debug:f.debug,verbose:f.verbose,duration:f.label.duration})):(y.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=v.children(p.message),e=f.templates.message(y.add.variables(e));0").html(e).addClass(m.message).appendTo(v)},optionValue:function(e){var t=y.escape.value(e);0").prop("value",t).addClass(m.addition).html(e).appendTo(l),y.verbose("Adding user addition as an