/*
* # 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(te,ne,ie,ae){"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 K,W=te(this),Q=te(ie),Y=W.selector||"",$="ontouchstart"in ie.documentElement,X=$?"touchstart":"click",G=(new Date).getTime(),J=[],Z=B,_="string"==typeof Z,ee=[].slice.call(arguments,1);return W.each(function(n){var d,e,i,a,s,o,r,c,u,v=te.isPlainObject(B)?te.extend(!0,{},te.fn.dropdown.settings,B):te.extend({},te.fn.dropdown.settings),m=v.className,C=v.message,y=v.fields,x=v.keys,h=v.metadata,S=v.namespace,A=v.regExp,f=v.selector,T=v.error,L=v.templates,t="."+S,I="module-"+S,g=te(this),D=te(v.context),k=g.find(f.text),O=g.find(f.search),q=g.find(f.sizer),l=g.find(f.input),R=g.find(f.icon),V=g.find(f.clearIcon),E=0").html(i).attr("data-"+h.value,t).attr("data-"+h.text,t).addClass(m.addition).addClass(m.item),v.hideAdditions&&i.addClass(m.hidden),n=n===ae?i:n.add(i),w.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=w.get.userValues();t&&(w.debug("Adding user labels",t),te.each(t,function(e,t){w.verbose("Adding custom user value"),w.add.label(t,t)}))},menu:function(){p=te("
").addClass(m.menu).appendTo(g)},sizer:function(){q=te("").addClass(m.sizer).insertAfter(O)}},search:function(e){e=e!==ae?e:w.get.query(),w.verbose("Searching for query",e),!1===v.fireOnInit&&w.is.initialLoad()?w.verbose("Skipping callback on initial load",v.onSearch):w.has.minCharacters(e)&&!1!==v.onSearch.call(H,e)?w.filter(e):w.hide(null,!0)},select:{firstUnfiltered:function(){w.verbose("Selecting first non-filtered element"),w.remove.selectedItem(),b.not(f.unselectable).not(f.addition+f.hidden).eq(0).addClass(m.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(f.item).not(f.unselectable).eq(0),e=e.prevAll(f.item).not(f.unselectable).eq(0);0").addClass("remove icon").insertBefore(k)),w.is.search()&&!w.has.search()&&(w.verbose("Adding search input"),O=te("").addClass(m.search).prop("autocomplete",w.is.chrome()?"fomantic-search":"off").insertBefore(k)),w.is.multiple()&&w.is.searchSelection()&&!w.has.sizer()&&w.create.sizer(),v.allowTab&&w.set.tabbable()},select:function(){var e=w.get.selectValues();w.debug("Dropdown initialized on a select",e),0<(l=g.is("select")?g:l).parent(f.dropdown).length?(w.debug("UI dropdown already exists. Creating dropdown menu only"),g=l.closest(f.dropdown),w.has.menu()||w.create.menu(),p=g.children(f.menu),w.setup.menu(e)):(w.debug("Creating entire dropdown from select"),g=te("").attr("class",l.attr("class")).addClass(m.selection).addClass(m.dropdown).html(L.dropdown(e,y,v.preserveHTML,v.className)).insertBefore(l),l.hasClass(m.multiple)&&!1===l.prop("multiple")&&(w.error(T.missingMultiple),l.prop("multiple",!0)),l.is("[multiple]")&&w.set.multiple(),l.prop("disabled")&&(w.debug("Disabling dropdown"),g.addClass(m.disabled)),l.removeAttr("required").removeAttr("class").detach().prependTo(g)),w.refresh()},menu:function(e){p.html(L.menu(e,y,v.preserveHTML,v.className)),b=p.find(f.item),M=v.hideDividers?b.parent().children(f.divider):te()},reference:function(){w.debug("Dropdown behavior was called on select, replacing with closest dropdown"),g=g.parent(f.dropdown),U=g.data(I),H=g.get(0),w.refresh(),w.setup.returnedObject()},returnedObject:function(){var e=W.slice(0,n),t=W.slice(n+1);W=e.add(g).add(t)}},refresh:function(){w.refreshSelectors(),w.refreshData()},refreshItems:function(){b=p.find(f.item),M=v.hideDividers?b.parent().children(f.divider):te()},refreshSelectors:function(){w.verbose("Refreshing selector cache"),k=g.find(f.text),O=g.find(f.search),l=g.find(f.input),R=g.find(f.icon),E=0"),te.each(e,function(e,t){var n=v.templates.deQuote(t[y.value]),t=v.templates.escape(t[y.name]||"",v.preserveHTML);l.append('")}),w.observe.select())}},event:{change:function(){P||(w.debug("Input changed, updating selection"),w.set.selected())},focus:function(){v.showOnFocus&&!z&&w.is.hidden()&&!i&&(j=!0,w.show())},blur:function(e){i=ie.activeElement===this,z||i||(w.remove.activeLabel(),w.hide())},mousedown:function(){w.is.searchSelection()?a=!0:z=!0},mouseup:function(){w.is.searchSelection()?a=!1:z=!1},click:function(e){te(e.target).is(g)&&(w.is.focusedOnSearch()?w.show():w.focusSearch())},search:{focus:function(e){z=!0,w.is.multiple()&&w.remove.activeLabel(),j||w.is.active()||!(v.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||(j=!0,w.search())},blur:function(e){i=ie.activeElement===this,w.is.searchSelection()&&!a&&(F||i||(v.forceSelection?w.forceSelection():v.allowAdditions||w.remove.searchTerm(),w.hide())),a=!1}},clearIcon:{click:function(e){w.clear(),w.is.searchSelection()&&w.remove.searchTerm(),w.hide(),e.stopPropagation()}},icon:{click:function(e){N=!0,w.has.search()?w.is.active()?w.blurSearch():v.showOnFocus?w.focusSearch():w.toggle():w.toggle(),e.stopPropagation()}},text:{focus:function(e){z=!0,w.focusSearch()}},input:function(e){(w.is.multiple()||w.is.searchSelection())&&w.set.filtered(),clearTimeout(w.timer),w.timer=setTimeout(w.search,v.delay.search)},label:{click:function(e){var t=te(this),n=g.find(f.label),i=n.filter("."+m.active),a=t.nextAll("."+m.active),s=t.prevAll("."+m.active),a=(0 modified, recreating menu"),w.is.selectMutation(e)&&(w.disconnect.selectObserver(),w.refresh(),w.setup.select(),w.set.selected(),w.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(f.addition)||0=v.maxSelections?(w.debug("Maximum selection count reached"),v.useLabels&&(b.addClass(m.filtered),w.add.message(C.maxSelections)),!0):(w.verbose("No longer at maximum selection count"),w.remove.message(),w.remove.filteredItem(),w.is.searchSelection()&&w.filterItems(),!1))},disabled:function(){O.attr("tabindex",w.is.disabled()?-1:0)}},restore:{defaults:function(e){w.clear(e),w.restore.defaultText(),w.restore.defaultValue()},defaultText:function(){var e=w.get.defaultText();e===w.get.placeholderText?(w.debug("Restoring default placeholder text",e),w.set.placeholderText(e)):(w.debug("Restoring default text",e),w.set.text(e))},placeholderText:function(){w.set.placeholderText()},defaultValue:function(){var e=w.get.defaultValue();e!==ae&&(w.debug("Restoring default value",e),""!==e?(w.set.value(e),w.set.selected()):(w.remove.activeItem(),w.remove.selectedItem()))},labels:function(){v.allowAdditions&&(v.useLabels||(w.error(T.labels),v.useLabels=!0),w.debug("Restoring selected values"),w.create.userLabels()),w.check.maxSelections()},selected:function(){w.restore.values(),w.is.multiple()?(w.debug("Restoring previously selected values and labels"),w.restore.labels()):w.debug("Restoring previously selected values")},values:function(){w.set.initialLoad(),v.apiSettings&&v.saveRemoteData&&w.get.remoteValues()?w.restore.remoteValues():w.set.selected();var e=w.get.value();!e||""===e||Array.isArray(e)&&0===e.length?l.addClass(m.noselection):l.removeClass(m.noselection),w.remove.initialLoad()},remoteValues:function(){var e=w.get.remoteValues();w.debug("Recreating selected from session data",e),e&&(w.is.single()?te.each(e,function(e,t){w.set.text(t)}):te.each(e,function(e,t){w.add.label(e,t)}))}},read:{remoteData:function(e){if(ne.Storage!==ae)return(e=sessionStorage.getItem(e))!==ae&&e;w.error(T.noStorage)}},save:{defaults:function(){w.save.defaultText(),w.save.placeholderText(),w.save.defaultValue()},defaultValue:function(){var e=w.get.value();w.verbose("Saving default value as",e),g.data(h.defaultValue,e)},defaultText:function(){var e=w.get.text();w.verbose("Saving default text as",e),g.data(h.defaultText,e)},placeholderText:function(){var e;!1!==v.placeholder&&k.hasClass(m.placeholder)&&(e=w.get.text(),w.verbose("Saving placeholder text as",e),g.data(h.placeholderText,e))},remoteData:function(e,t){ne.Storage!==ae?(w.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):w.error(T.noStorage)}},clear:function(e){w.is.multiple()&&v.useLabels?w.remove.labels(g.find(f.label),e):(w.remove.activeItem(),w.remove.selectedItem(),w.remove.filteredItem()),w.set.placeholderText(),w.clearValue(e)},clearValue:function(e){w.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||w.get.selectedItem(),n=t.closest(f.menu),i=n.outerHeight(),a=n.scrollTop(),s=b.eq(0).outerHeight(),i=Math.floor(i/s),a=(n.prop("scrollHeight"),"up"==e?a-s*i:a+s*i),s=b.not(f.unselectable),i="up"==e?s.index(t)-i:s.index(t)+i,i=("up"==e?0<=i:i").addClass(m.label).attr("data-"+h.value,s).html(L.label(s,t,v.preserveHTML,v.className)),i=v.onLabelCreate.call(i,s,t),w.has.label(e)?w.debug("User selection already exists, skipping",s):(v.label.variation&&i.addClass(v.label.variation),!0===n?(w.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(a).transition({animation:v.label.transition,debug:v.debug,verbose:v.verbose,duration:v.label.duration})):(w.debug("Adding selection label",i),i.insertBefore(a)))},message:function(e){var t=p.children(f.message),e=v.templates.message(w.add.variables(e));0").html(e).addClass(m.message).appendTo(p)},optionValue:function(e){var t=w.escape.value(e);0").prop("value",t).addClass(m.addition).html(e).appendTo(l),w.verbose("Adding user addition as an