/*
* # Fomantic UI - 2.9.0-beta.301+42e68bc
* https://github.com/fomantic/Fomantic-UI
* http://fomantic-ui.com/
*
* Copyright 2022 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(g,h,v,b){g.isFunction=g.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g.site=g.fn.site=function(e){var s,i=(new Date).getTime(),a=[],t=e,n="string"==typeof t,l=[].slice.call(arguments,1),r=g.isPlainObject(e)?g.extend(!0,{},g.site.settings,e):g.extend({},g.site.settings),o=r.namespace,c=r.error,u="module-"+o,d=g(v),f=this,p=d.data(u),m={initialize:function(){m.instantiate()},instantiate:function(){m.verbose("Storing instance of site",m),p=m,d.data(u,m)},normalize:function(){m.fix.console(),m.fix.requestAnimationFrame()},fix:{console:function(){m.debug("Normalizing window.console"),console!==b&&console.log!==b||(m.verbose("Console not available, normalizing events"),m.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(m.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(m.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){m.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){m.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(m.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 g.fn[e]!==b&&g.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){m.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){m.moduleExists(t)||n.push(t)}),n}},change:{setting:function(i,a,e,o){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,o=o===b||o,g.each(e,function(e,t){var n=!m.moduleExists(t)||(g.fn[t].settings.namespace||!1);m.moduleExists(t)&&(m.verbose("Changing default setting",i,a,t),g.fn[t].settings[i]=a,o&&n&&0<(n=g(":data(module-"+n+")")).length&&(m.verbose("Modifying existing settings",n),n[t]("setting",i,a)))})},settings:function(i,e,a){e="string"==typeof e?[e]:e||r.modules,a=a===b||a,g.each(e,function(e,t){var n;m.moduleExists(t)&&(m.verbose("Changing default setting",i,t),g.extend(!0,g.fn[t].settings,i),a&&o&&0<(n=g(":data(module-"+o+")")).length&&(m.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){m.console(!0)},debug:function(e,t){e=e||r.modules,m.debug("Enabling debug for modules",e),m.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||r.modules,m.debug("Enabling verbose debug for modules",e),m.change.setting("verbose",!0,e,t)}},disable:{console:function(){m.console(!1)},debug:function(e,t){e=e||r.modules,m.debug("Disabling debug for modules",e),m.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||r.modules,m.debug("Disabling verbose debug for modules",e),m.change.setting("verbose",!1,e,t)}},console:function(e){e?p.cache.console===b?m.error(c.console):(m.debug("Restoring console function"),h.console=p.cache.console):(m.debug("Disabling console function"),p.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(){m.verbose("Destroying previous site for",d),d.removeData(u)},cache:{},setting:function(e,t){if(g.isPlainObject(e))g.extend(!0,r,e);else{if(t===b)return r[e];r[e]=t}},internal:function(e,t){if(g.isPlainObject(e))g.extend(!0,m,e);else{if(t===b)return m[e];m[e]=t}},debug:function(){r.debug&&(r.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,r.name+":"),m.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),m.verbose.apply(console,arguments)))},error:function(){m.error=Function.prototype.bind.call(console.error,console,r.name+":"),m.error.apply(console,arguments)},performance:{log:function(e){var t,n;r.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,a.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=r.name+":",n=0;i=!1,clearTimeout(m.performance.timer),g.each(a,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0").addClass(X.popup)[e](t)),ee.addClass(X.calendar),te&&ee.addClass(X.inverted),e=function(){return ne.refreshTooltips(),G.onVisible.apply(ee,arguments)},l.length||(ee.attr("tabindex","0"),e=function(){return ne.refreshTooltips(),ne.focus(),G.onVisible.apply(ee,arguments)}),t=ne.setting("on"),t=ae.extend({},G.popupOptions,{popup:ee,on:t,hoverable:"hover"===t,closable:"click"===t,onShow:function(){return ne.set.focusDate(ne.get.date()),ne.set.mode(ne.get.validatedMode(G.startMode)),G.onShow.apply(ee,arguments)},onVisible:e,onHide:G.onHide,onHidden:function(){return ne.blur(),G.onHidden.apply(ee,arguments)}}),ne.popup(t)))},inline:function(){c.length&&!G.inline||(G.inline=!0,ee=ae("
").addClass(X.calendar).appendTo(r),l.length||ee.attr("tabindex","0"))},input:function(){G.touchReadonly&&l.length&&d&&l.prop("readonly",!0),ne.check.disabled()},date:function(){var e;G.initialDate?e=i.date(G.initialDate,G):r.data(_.date)!==oe?e=i.date(r.data(_.date),G):l.length&&(e=i.date(l.val(),G)),ne.set.date(e,G.formatInput,!1),ne.set.mode(ne.get.mode(),!1)}},trigger:{change:function(){var e,t=l[0];t&&(e=S.createEvent("HTMLEvents"),ne.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{calendar:function(){var e,t,L,n=ne.get.mode(),i=new Date,j=ne.get.date(),a=ne.get.focusDate(),o=ne.helper.dateInRange(a||j||G.initialDate||i),r=(a||ne.set.focusDate(a=o,!1,!1),"year"===n),s="month"===n,l="day"===n,c="hour"===n,u="minute"===n,H="time"===G.type,N=Math.max(G.multiMonth,1),V=l?ne.get.monthOffset():0,d=o.getMinutes(),f=o.getHours(),p=o.getDate(),z=o.getMonth()+V,m=o.getFullYear(),g=l?G.showWeekNumbers?8:7:c?4:Z.column,U=l||c?6:Z.row,h=l?N:1,v=(b=ee).hasClass("left")?"right center":"left center";for(b.empty(),1").addClass(X.grid).appendTo(b)),t=0;t").addClass(X.column).appendTo(L));var b,y=z+t,Y=(new Date(m,y,1).getDay()-G.firstDayOfWeek%7+7)%7,x=(!G.constantHeight&&l&&(x=new Date(m,y+1,0).getDate()+Y,U=Math.ceil(x/7)),r?10:s?1:0),w=l?1:0,C=c||u?1:0,k=c||u?p:1,T=new Date(m-x,y-w,k-C,f),w=new Date(m+x,y+w,k+C,f),k=r?new Date(10*Math.ceil(m/10)-9,0,0):s?new Date(m,0,0):l?new Date(m,y,0):new Date(m,y,p,-1),C=r?new Date(10*Math.ceil(m/10)+1,0,1):s?new Date(m+1,0,1):l?new Date(m,y+1,1):new Date(m,y,p+1),D=n,D=(l&&G.showWeekNumbers&&(D+=" andweek"),ae("").addClass(X.table).addClass(D).addClass(ie[g]+" column").appendTo(b)),W=(te&&D.addClass(X.inverted),g);if(!H){var B=ae("").appendTo(D),S=ae("
").appendTo(B),A=ae(" | ").attr("colspan",""+g).appendTo(S),E=r||s?new Date(m,0,1):l?new Date(m,y,1):new Date(m,y,p,f,d),F=ae("").addClass(X.link).appendTo(A),E=(F.text(ne.helper.dateFormat(J[n+"Header"],E)),s?G.disableYear?"day":"year":l?G.disableMonth?"year":"month":"day");if(F.data(_.mode,E),0===t&&((F=ae("").addClass(X.prev).appendTo(A)).data(_.focusDate,T),F.toggleClass(X.disabledCell,!ne.helper.isDateInRange(k,n)),ae("").addClass(X.prevIcon).appendTo(F)),t===h-1&&((E=ae("").addClass(X.next).appendTo(A)).data(_.focusDate,w),E.toggleClass(X.disabledCell,!ne.helper.isDateInRange(C,n)),ae("").addClass(X.nextIcon).appendTo(E)),l)for(S=ae("
").appendTo(B),G.showWeekNumbers&&((A=ae(" | ").appendTo(S)).text(G.text.weekNo),A.addClass(X.weekCell),W--),M=0;M").appendTo(S)).text(J.dayColumnHeader((M+G.firstDayOfWeek)%7,G))}for(var $=ae("").appendTo(D),M=r?10*Math.ceil(m/10)-9:l?1-Y:0,K=0;K").appendTo($),l&&G.showWeekNumbers&&((A=ae(" | ").appendTo(S)).text(ne.get.weekOfYear(m,y,M+1-G.firstDayOfWeek)),A.addClass(X.weekCell)),e=0;e").addClass(X.cell).appendTo(S)).text(R),A.data(_.date,P),l&&P.getMonth()!==(y+12)%12),I=!G.selectAdjacentDays&&R||!ne.helper.isDateInRange(P,n)||G.isDisabled(P,n)||ne.helper.isDisabled(P,n)||!ne.helper.isEnabled(P,n),q=(I?(null!==(q=ne.helper.findDayAsObject(P,n,G.disabledDates))&&q[_.message]&&(A.attr("data-tooltip",q[_.message]),A.attr("data-position",q[_.position]||v),(q[_.inverted]||te&&q[_.inverted]===oe)&&A.attr("data-inverted",""),q[_.variation]&&A.attr("data-variation",q[_.variation])),"hour"===n&&null!==(q=ne.helper.findHourAsObject(P,n,G.disabledHours))&&q[_.message]&&(A.attr("data-tooltip",q[_.message]),A.attr("data-position",q[_.position]||v),(q[_.inverted]||te&&q[_.inverted]===oe)&&A.attr("data-inverted",""),q[_.variation]&&A.attr("data-variation",q[_.variation]))):null!==(O=ne.helper.findDayAsObject(P,n,G.eventDates))&&(A.addClass(O[_.class]||G.eventClass),O[_.message]&&(A.attr("data-tooltip",O[_.message]),A.attr("data-position",O[_.position]||v),(O[_.inverted]||te&&O[_.inverted]===oe)&&A.attr("data-inverted",""),O[_.variation]&&A.attr("data-variation",O[_.variation]))),ne.helper.dateEqual(P,j,n)),Q=ne.helper.dateEqual(P,i,n),R=(A.toggleClass(X.adjacentCell,R&&!O),A.toggleClass(X.disabledCell,I),A.toggleClass(X.activeCell,q&&!(R&&I)),c||u||A.toggleClass(X.todayCell,!R&&Q),{mode:n,adjacent:R,disabled:I,active:q,today:Q});J.cell(A,P,R),ne.helper.dateEqual(P,a,n)&&ne.set.focusDate(P,!1,!1)}G.today&&(T=ae("
").appendTo($),(k=ae(" | ").attr("colspan",""+g).addClass(X.today).appendTo(T)).text(J.today(G)),k.data(_.date,i)),ne.update.focus(!1,D),G.inline&&ne.refreshTooltips()}}},update:{focus:function(e,t){t=t||ee;var r=ne.get.mode(),n=ne.get.date(),s=ne.get.focusDate(),l=ne.get.startDate(),c=ne.get.endDate(),u=(e?s:null)||n||(d?null:s);t.find("td").each(function(){var e,t,n,i,a=ae(this),o=a.data(_.date);o&&(e=a.hasClass(X.disabledCell),t=a.hasClass(X.activeCell),n=a.hasClass(X.adjacentCell),i=ne.helper.dateEqual(o,s,r),o=!!u&&(!!l&&ne.helper.isDateInRange(o,r,l,u)||!!c&&ne.helper.isDateInRange(o,r,u,c)),a.toggleClass(X.focusCell,i&&(!d||p)&&(!n||G.selectAdjacentDays&&n)&&!e),ne.helper.isTodayButton(a)||a.toggleClass(X.rangeCell,o&&!t&&!e))})}},refresh:function(){ne.create.calendar()},refreshTooltips:function(){var i=ae(D).width();ee.find("td[data-position]").each(function(){var e=ae(this),t=D.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(){ne.debug("Binding events"),ee.on("mousedown"+a,ne.event.mousedown),ee.on("touchstart"+a,ne.event.mousedown),ee.on("mouseup"+a,ne.event.mouseup),ee.on("touchend"+a,ne.event.mouseup),ee.on("mouseover"+a,ne.event.mouseover),l.length?(l.on("input"+a,ne.event.inputChange),l.on("focus"+a,ne.event.inputFocus),l.on("blur"+a,ne.event.inputBlur),l.on("keydown"+a,ne.event.keydown)):ee.on("keydown"+a,ne.event.keydown)}},unbind:{events:function(){ne.debug("Unbinding events"),ee.off(a),l.length&&l.off(a)}},event:{mouseover:function(e){var t=ae(e.target).data(_.date),e=1===e.buttons;t&&ne.set.focusDate(t,!1,!0,e)},mousedown:function(e){l.length&&e.preventDefault(),p=0<=e.type.indexOf("touch");e=ae(e.target).data(_.date);e&&ne.set.focusDate(e,!1,!0,!0)},mouseup:function(e){ne.focus(),e.preventDefault(),e.stopPropagation(),p=!1;var t,n,i,e=ae(e.target);e.hasClass("disabled")||(t=(e=(t=e.parent()).data(_.date)||t.data(_.focusDate)||t.data(_.mode)?t:e).data(_.date),n=e.data(_.focusDate),i=e.data(_.mode),t&&!1!==G.onSelect.call(u,t,ne.get.mode())?(e=e.hasClass(X.today),ne.selectDate(t,e)):n?ne.set.focusDate(n):i&&ne.set.mode(i))},keydown:function(e){var t,n,i,a,o,r,s,l=e.which;27!==l&&9!==l||ne.popup("hide"),ne.popup("is visible")&&(37===l||38===l||39===l||40===l?(a="day"===(r=ne.get.mode())?7:"hour"===r?4:"minute"===r?Z.column:3,a=37===l?-1:38===l?-a:39==l?1:a,a*="minute"===r?G.minTimeGap:1,o=(t=ne.get.focusDate()||ne.get.date()||new Date).getFullYear()+("year"===r?a:0),s=t.getMonth()+("month"===r?a:0),n=t.getDate()+("day"===r?a:0),i=t.getHours()+("hour"===r?a:0),a=t.getMinutes()+("minute"===r?a:0),o=new Date(o,s,n,i,a),"time"===G.type&&(o=ne.helper.mergeDateTime(t,o)),ne.helper.isDateInRange(o,r)&&ne.set.focusDate(o)):13===l&&(r=ne.get.mode(),(s=ne.get.focusDate())&&!G.isDisabled(s,r)&&!ne.helper.isDisabled(s,r)&&ne.helper.isEnabled(s,r)&&!1!==G.onSelect.call(u,s,ne.get.mode())&&ne.selectDate(s),e.preventDefault(),e.stopPropagation())),38!==l&&40!==l||(e.preventDefault(),ne.popup("show"))},inputChange:function(){var e=l.val(),e=i.date(e,G);ne.set.date(e,!1)},inputFocus:function(){ee.addClass(X.active)},inputBlur:function(){var e;ee.removeClass(X.active),G.formatInput&&(e=ne.get.date(),e=ne.helper.dateFormat(J[G.type],e),l.val(e)),g&&(ne.trigger.change(),g=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&ne.check.disabled()})}}},observeChanges:function(){"MutationObserver"in D&&(e=new MutationObserver(ne.event.class.mutation),ne.debug("Setting up mutation observer",e),ne.observe.class())},disconnect:{classObserver:function(){l.length&&e&&e.disconnect()}},observe:{class:function(){l.length&&e&&e.observe(r[0],{attributes:!0})}},is:{disabled:function(){return r.hasClass(X.disabled)}},check:{disabled:function(){l.attr("tabindex",ne.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},formattedDate:function(e,t){return ne.helper.dateFormat(e||J[G.type],t||ne.get.date())},date:function(){return ne.helper.sanitiseDate(r.data(_.date))||null},inputDate:function(){return l.val()},focusDate:function(){return r.data(_.focusDate)||null},startDate:function(){var e=ne.get.calendarModule(G.startCalendar);return(e?e.get.date():r.data(_.startDate))||null},endDate:function(){var e=ne.get.calendarModule(G.endCalendar);return(e?e.get.date():r.data(_.endDate))||null},minDate:function(){return r.data(_.minDate)||null},maxDate:function(){return r.data(_.maxDate)||null},monthOffset:function(){return r.data(_.monthOffset)||G.monthOffset||0},mode:function(){var e=r.data(_.mode)||G.startMode;return ne.get.validatedMode(e)},validatedMode:function(e){var t=ne.get.validModes();return 0<=ae.inArray(e,t)?e:"time"===G.type?"hour":"month"===G.type?"month":"year"===G.type?"year":"day"},type:function(){return r.data(_.type)||G.type},validModes:function(){var e=[];return"time"!==G.type&&(G.disableYear&&"year"!==G.type||e.push("year"),(G.disableMonth||"year"===G.type)&&"month"!==G.type||e.push("month"),0<=G.type.indexOf("date")&&e.push("day")),0<=G.type.indexOf("time")&&(e.push("hour"),G.disableMinute||e.push("minute")),e},isTouch:function(){try{return S.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=e instanceof ae?e:ae(S).find(e).first()).data(o):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=ne.helper.sanitiseDate(e),e=ne.helper.dateInRange(e);var i=ne.get.mode(),a=ne.helper.dateFormat(J[G.type],e);if(n&&!1===G.onBeforeChange.call(u,e,a,i))return!1;if(ne.set.focusDate(e),G.isDisabled(e,i))return!1;var o=ne.get.endDate();o&&e&&o=e?ne.verbose("Unable to set maxDate variable lower that minDate variable",e,G.minDate):(ne.setting("maxDate",e),ne.set.dataKeyValue(_.maxDate,e))},monthOffset:function(e,t){var n=Math.max(G.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),ne.set.dataKeyValue(_.monthOffset,e,t)},mode:function(e,t){ne.set.dataKeyValue(_.mode,e,t)},dataKeyValue:function(e,t,n){var i=r.data(e),i=i===t||i<=t&&t<=i;return t?r.data(e,t):r.removeData(e),(n=!1!==n&&!i)&&ne.refresh(),!i}},selectDate:function(e,t){ne.verbose("New date selection",e);var n=ne.get.mode();t||"minute"===n||G.disableMinute&&"hour"===n||"date"===G.type&&"day"===n||"month"===G.type&&"month"===n||"year"===G.type&&"year"===n?!1!==ne.set.date(e)&&(g=!0,G.closable&&(ne.popup("hide"),(t=ne.get.calendarModule(G.endCalendar))&&(t.refresh(),"focus"!==t.setting("on")&&t.popup("show"),t.focus()))):(t="year"===n?G.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute",ne.set.mode(t),"hour"===n||"day"===n&&ne.get.date()?ne.set.date(e,!0,!1):ne.set.focusDate(e))},changeDate:function(e){ne.set.date(e)},clear:function(){ne.set.date(oe)},popup:function(){return c.popup.apply(c,arguments)},focus:function(){(l.length?l:ee).focus()},blur:function(){(l.length?l:ee).blur()},helper:{dateFormat:function(e,t){if(!(t instanceof Date))return"";if("function"==typeof e)return e.call(ne,t,G);var n=t.getDate(),i=t.getMonth(),a=t.getFullYear(),o=t.getDay(),r=t.getHours(),s=t.getMinutes(),t=t.getSeconds(),l=ne.get.weekOfYear(a,i,n+1-G.firstDayOfWeek),c=r%12||12,u=(r<12?G.text.am:G.text.pm).toLowerCase(),d={D:n,DD:("0"+n).slice(-2),M:i+1,MM:("0"+(i+1)).slice(-2),MMM:G.text.monthsShort[i],MMMM:G.text.months[i],Y:a,YY:String(a).slice(2),YYYY:a,d:o,dd:G.text.dayNamesShort[o].slice(0,2),ddd:G.text.dayNamesShort[o],dddd:G.text.dayNames[o],h:c,hh:("0"+c).slice(-2),H:r,HH:("0"+r).slice(-2),m:s,mm:("0"+s).slice(-2),s:t,ss:("0"+t).slice(-2),a:u,A:u.toUpperCase(),S:["th","st","nd","rd"][3=t.centuryBreak&&n===v.length-1){i<=99&&(i+=t.currentCentury-100),p=i,v.splice(n,1);break}if(f<0)for(n=0;n adjusting invoked element"),g=g.closest(m.checkbox),y.refresh())}},setup:function(){y.set.initialLoad(),y.is.indeterminate()?(y.debug("Initial value is indeterminate"),y.indeterminate()):y.is.checked()?(y.debug("Initial value is checked"),y.check()):(y.debug("Initial value is unchecked"),y.uncheck()),y.remove.initialLoad()},refresh:function(){o=g.children(m.label),h=g.children(m.input),v=h[0]},hide:{input:function(){y.verbose("Modifying z-index to be unselectable"),h.addClass(t.hidden)}},show:{input:function(){y.verbose("Modifying z-index to be selectable"),h.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in S&&((e=new MutationObserver(function(e){y.debug("DOM tree modified, updating selector cache"),y.refresh()})).observe(c,{childList:!0,subtree:!0}),y.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=D(e);t=D.isFunction(y[t])?y[t]:y.toggle,0").insertAfter(h),y.debug("Creating label",o))}},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(Z,ee,te,ne){"use strict";Z.isFunction=Z.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},ee=void 0!==ee&&ee.Math==Math?ee:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Z.fn.dropdown=function(Y){var W,B=Z(this),$=Z(te),K=B.selector||"",Q=(new Date).getTime(),G=[],X=Y,J="string"==typeof X,_=[].slice.call(arguments,1);return B.each(function(L){var f,e,t,n,i,a,o,r,s,p=Z.isPlainObject(Y)?Z.extend(!0,{},Z.fn.dropdown.settings,Y):Z.extend({},Z.fn.dropdown.settings),m=p.className,g=p.message,l=p.fields,h=p.keys,v=p.metadata,j=p.namespace,c=p.regExp,b=p.selector,u=p.error,H=p.templates,d="."+j,y="module-"+j,x=Z(this),w=[ee,te].indexOf(p.context)<0?Z(te).find(p.context):Z(p.context),C=x.find(b.text),k=x.find(b.search),T=x.find(b.sizer),D=x.find(b.input),N=x.find(b.icon),V=x.find(b.clearIcon),S=0").html(i).attr("data-"+v.value,t).attr("data-"+v.text,t).addClass(m.addition).addClass(m.item),p.hideAdditions&&i.addClass(m.hidden),n=n===ne?i:n.add(i),q.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=q.get.userValues();t&&(q.debug("Adding user labels",t),Z.each(t,function(e,t){q.verbose("Adding custom user value"),q.add.label(t,t)}))},menu:function(){A=Z("").addClass(m.menu).appendTo(x)},sizer:function(){T=Z("").addClass(m.sizer).insertAfter(k)}},search:function(e){e=e!==ne?e:q.get.query(),q.verbose("Searching for query",e),!1===p.fireOnInit&&q.is.initialLoad()?q.verbose("Skipping callback on initial load",p.onSearch):q.has.minCharacters(e)&&!1!==p.onSearch.call(P,e)?q.filter(e):q.hide(null,!0)},select:{firstUnfiltered:function(){q.verbose("Selecting first non-filtered element"),q.remove.selectedItem(),E.not(b.unselectable).not(b.addition+b.hidden).eq(0).addClass(m.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(b.item).not(b.unselectable).eq(0),e=e.prevAll(b.item).not(b.unselectable).eq(0);0").addClass("remove icon").insertBefore(C)),q.is.search()&&!q.has.search()&&(q.verbose("Adding search input"),k=Z("").addClass(m.search).prop("autocomplete",q.is.chrome()?"fomantic-search":"off").insertBefore(C)),q.is.multiple()&&q.is.searchSelection()&&!q.has.sizer()&&q.create.sizer(),p.allowTab&&q.set.tabbable()},select:function(){var e=q.get.selectValues();q.debug("Dropdown initialized on a select",e),0<(D=x.is("select")?x:D).parent(b.dropdown).length?(q.debug("UI dropdown already exists. Creating dropdown menu only"),x=D.closest(b.dropdown),q.has.menu()||q.create.menu(),A=x.children(b.menu),q.setup.menu(e)):(q.debug("Creating entire dropdown from select"),x=Z("").attr("class",D.attr("class")).addClass(m.selection).addClass(m.dropdown).html(H.dropdown(e,l,p.preserveHTML,p.className)).insertBefore(D),D.hasClass(m.multiple)&&!1===D.prop("multiple")&&(q.error(u.missingMultiple),D.prop("multiple",!0)),D.is("[multiple]")&&q.set.multiple(),D.prop("disabled")&&(q.debug("Disabling dropdown"),x.addClass(m.disabled)),D.is("[required]")&&(p.forceSelection=!0),D.removeAttr("required").removeAttr("class").detach().prependTo(x)),q.refresh()},menu:function(e){A.html(H.menu(e,l,p.preserveHTML,p.className)),E=A.find(b.item),F=p.hideDividers?E.parent().children(b.divider):Z()},reference:function(){q.debug("Dropdown behavior was called on select, replacing with closest dropdown"),x=x.parent(b.dropdown),I=x.data(y),P=x.get(0),q.refresh(),q.setup.returnedObject()},returnedObject:function(){var e=B.slice(0,L),t=B.slice(L+1);B=e.add(x).add(t)}},refresh:function(){q.refreshSelectors(),q.refreshData()},refreshItems:function(){E=A.find(b.item),F=p.hideDividers?E.parent().children(b.divider):Z()},refreshSelectors:function(){q.verbose("Refreshing selector cache"),C=x.find(b.text),k=x.find(b.search),D=x.find(b.input),N=x.find(b.icon),S=0"),Z.each(e,function(e,t){var n=p.templates.deQuote(t[l.value]),i=p.templates.escape(t[l.name]||"",p.preserveHTML);D.append('")}),q.observe.select())}},event:{paste:function(e){(e.originalEvent.clipboardData||ee.clipboardData).getData("text").split(p.delimiter).forEach(function(e){q.set.selected(q.escape.htmlEntities(e.trim()),null,!0,!0)}),e.preventDefault()},change:function(){U||(q.debug("Input changed, updating selection"),q.set.selected())},focus:function(){p.showOnFocus&&!M&&q.is.hidden()&&!t&&(R=!0,q.show())},blur:function(e){t=te.activeElement===this,M||t||(q.remove.activeLabel(),q.hide())},mousedown:function(){q.is.searchSelection()?n=!0:M=!0},mouseup:function(){q.is.searchSelection()?n=!1:M=!1},click:function(e){Z(e.target).is(x)&&(q.is.focusedOnSearch()?q.show():q.focusSearch())},search:{focus:function(e){M=!0,q.is.multiple()&&q.remove.activeLabel(),R||q.is.active()||!(p.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||"touchstart"===e.type||(R=!0,q.search())},blur:function(e){t=te.activeElement===this,!q.is.searchSelection()||n||z||t||(p.forceSelection?q.forceSelection():p.allowAdditions||q.remove.searchTerm(),q.hide()),n=!1}},clearIcon:{click:function(e){q.clear(),q.is.searchSelection()&&q.remove.searchTerm(),q.hide(),e.stopPropagation()}},icon:{click:function(e){O=!0,q.has.search()?q.is.active()?q.blurSearch():p.showOnFocus?q.focusSearch():q.toggle():q.toggle(),e.stopPropagation()}},text:{focus:function(e){M=!0,q.focusSearch()}},input:function(e){(q.is.multiple()||q.is.searchSelection())&&q.set.filtered(),clearTimeout(q.timer),q.timer=setTimeout(q.search,p.delay.search)},label:{click:function(e){var t=Z(this),n=x.find(b.label),i=n.filter("."+m.active),a=t.nextAll("."+m.active),o=t.prevAll("."+m.active),a=(0 modified, recreating menu"),q.disconnect.selectObserver(),q.refresh(),q.setup.select(),q.set.selected(),q.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?Z(e.addedNodes[0]):Z(!1),e=e.removedNodes?Z(e.removedNodes[0]):Z(!1),t=t.add(e),e=t.is(b.addition)||0=p.maxSelections?(q.debug("Maximum selection count reached"),p.useLabels&&(E.addClass(m.filtered),q.add.message(g.maxSelections)),!0):(q.verbose("No longer at maximum selection count"),q.remove.message(),q.remove.filteredItem(),q.is.searchSelection()&&q.filterItems(),!1))},disabled:function(){k.attr("tabindex",q.is.disabled()?-1:0)}},restore:{defaults:function(e){q.clear(e),q.restore.defaultText(),q.restore.defaultValue()},defaultText:function(){var e=q.get.defaultText();e===q.get.placeholderText?(q.debug("Restoring default placeholder text",e),q.set.placeholderText(e)):(q.debug("Restoring default text",e),q.set.text(e))},placeholderText:function(){q.set.placeholderText()},defaultValue:function(){var e=q.get.defaultValue();e!==ne&&(q.debug("Restoring default value",e),""!==e?(q.set.value(e),q.set.selected()):(q.remove.activeItem(),q.remove.selectedItem()))},labels:function(){p.allowAdditions&&(p.useLabels||(q.error(u.labels),p.useLabels=!0),q.debug("Restoring selected values"),q.create.userLabels()),q.check.maxSelections()},selected:function(){q.restore.values(),q.is.multiple()?(q.debug("Restoring previously selected values and labels"),q.restore.labels()):q.debug("Restoring previously selected values")},values:function(){q.set.initialLoad(),p.apiSettings&&p.saveRemoteData&&q.get.remoteValues()?q.restore.remoteValues():q.set.selected();var e=q.get.value();!e||""===e||Array.isArray(e)&&0===e.length?D.addClass(m.noselection):D.removeClass(m.noselection),q.remove.initialLoad()},remoteValues:function(){var e=q.get.remoteValues();q.debug("Recreating selected from session data",e),e&&(q.is.single()?Z.each(e,function(e,t){q.set.text(t)}):Z.each(e,function(e,t){q.add.label(e,t)}))}},read:{remoteData:function(e){if(ee.Storage!==ne)return(e=sessionStorage.getItem(e+i))!==ne&&e;q.error(u.noStorage)}},save:{defaults:function(){q.save.defaultText(),q.save.placeholderText(),q.save.defaultValue()},defaultValue:function(){var e=q.get.value();q.verbose("Saving default value as",e),x.data(v.defaultValue,e)},defaultText:function(){var e=q.get.text();q.verbose("Saving default text as",e),x.data(v.defaultText,e)},placeholderText:function(){var e;!1!==p.placeholder&&C.hasClass(m.placeholder)&&(e=q.get.text(),q.verbose("Saving placeholder text as",e),x.data(v.placeholderText,e))},remoteData:function(e,t){ee.Storage===ne?q.error(u.noStorage):(q.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t+i,e))}},clear:function(e){q.is.multiple()&&p.useLabels?q.remove.labels(x.find(b.label),e):(q.remove.activeItem(),q.remove.selectedItem(),q.remove.filteredItem()),q.set.placeholderText(),q.clearValue(e)},clearValue:function(e){q.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||q.get.selectedItem(),n=t.closest(b.menu),i=n.outerHeight(),a=n.scrollTop(),o=E.eq(0).outerHeight(),i=Math.floor(i/o),a=(n.prop("scrollHeight"),"up"==e?a-o*i:a+o*i),o=E.not(b.unselectable),i="up"==e?o.index(t)-i:o.index(t)+i,i=("up"==e?0<=i:i").addClass(m.label).attr("data-"+v.value,o).html(H.label(o,t,p.preserveHTML,p.className)),i=p.onLabelCreate.call(i,o,t),q.has.label(e)?q.debug("User selection already exists, skipping",o):(p.label.variation&&i.addClass(p.label.variation),!0===n?(q.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(a).transition({animation:p.label.transition,debug:p.debug,verbose:p.verbose,duration:p.label.duration})):(q.debug("Adding selection label",i),i.insertBefore(a)))},message:function(e){var t=A.children(b.message),e=p.templates.message(q.add.variables(e));0").html(e).addClass(m.message).appendTo(A)},optionValue:function(e){var t=q.escape.value(e);0").prop("value",t).addClass(m.addition).text(e).appendTo(D),q.verbose("Adding user addition as an