function(e){"function"==typeofdefine&&define.amd?define(["jquery"],e):e("object"==typeofmodule&&"object"==typeofmodule.exports?require("jquery"):jQuery)}(function(e){functiont(){vart=r.settings;if(t.autoDispose&&!e.contains(document.documentElement,this))returne(this).timeago("dispose"),this;vara=n(this);returnisNaN(a.datetime)||(0==t.cutoff||Math.abs(o(a.datetime))<t.cutoff?e(this).text(i(a.datetime)):e(this).attr("title").length>0&&e(this).text(e(this).attr("title"))),this}functionn(t){if(t=e(t),!t.data("timeago")){t.data("timeago",{datetime:r.datetime(t)});varn=e.trim(t.text());r.settings.localeTitle?t.attr("title",t.data("timeago").datetime.toLocaleString()):!(n.length>0)||r.isTime(t)&&t.attr("title")||t.attr("title",n)}returnt.data("timeago")}functioni(e){returnr.inWords(o(e))}functiono(e){return(newDate).getTime()-e.getTime()}e.timeago=function(t){returni(tinstanceofDate?t:"string"==typeoft?e.timeago.parse(t):"number"==typeoft?newDate(t):e.timeago.datetime(t))};varr=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){functionn(n,o){varr=e.isFunction(n)?n(o,t):n,a=i.numbers&&i.numbers[o]||o;returnr.replace(/%d/i,a)}if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";vari=this.settings.strings,o=i.prefixAgo,r=i.suffixAgo;if(this.settings.allowFuture&&t<0&&(o=i.prefixFromNow,r=i.suffixFromNow),!this.settings.allowPast&&t>=0)returnthis.settings.strings.inPast;vara=Math.abs(t)/1e3,s=a/60,l=s/60,c=l/24,u=c/365,d=a<45&&n(i.seconds,Math.round(a))||a<90&&n(i.minute,1)||s<45&&n(i.minutes,Math.round(s))||s<90&&n(i.hour,1)||l<24&&n(i.hours,Math.round(l))||l<42&&n(i.day,1)||c<30&&n(i.days,Math.round(c))||c<45&&n(i.month,1)||c<365&&n(i.months,Math.round(c/30))||u<1.5&&n(i.year,1)||n(i.years,Math.round(u)),f=i.wordSeparator||"";returnvoid0===i.wordSeparator&&(f=" "),e.trim([o,d,r].join(f))},parse:function(t){varn=e.trim(t);returnn=n.replace(/\.\d+/,""),n=n.replace(/-/,"/").replace(/-/,"/"),n=n.replace(/T/," ").replace(/Z/," UTC"),n=n.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),n=n.replace(/([\+\-]\d\d)$/," $100"),newDate(n)},datetime:function(t){varn=r.isTime(t)?e(t).attr("datetime"):e(t).attr("title");returnr.parse(n)},isTime:function(t){return"time"===e(t).get(0).tagName.toLowerCase()}});vara={init:function(){varn=e.proxy(t,this);n();vari=r.settings;i.refreshMillis>0&&(this._timeagoInterval=setInterval(n,i.refreshMillis))},update:function(n){vari=ninstanceofDate?n:r.parse(n);e(this).data("timeago",{datetime:i}),r.settings.localeTitle&&e(this).attr("title",i.toLocaleString()),t.apply(this)},updateFromDOM:function(){e(this).data("timeago",{datetime:r.parse(r.isTime(this)?e(this).attr("datetime"):e(this).attr("title"))}),t.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};e.fn.timeago=function(e,t){varn=e?a[e]:a.init;if(!n)thrownewError("Unknown function name '"+e+"' for timeago");returnthis.each(function(){n.call(this,t)}),this},document.createElement("abbr"),document.createElement("time")}),/*
*#SemanticUI-2.2.6
*https://github.com/Semantic-Org/Semantic-UI
*http://www.semantic-ui.com/
*
*Copyright2014Contributors
*ReleasedundertheMITlicense
*http://opensource.org/licenses/MIT
*
*/
!function(e,t,n,i){e.site=e.fn.site=function(o){varr,a,s=(newDate).getTime(),l=[],c=arguments[0],u="string"==typeofc,d=[].slice.call(arguments,1),f=e.isPlainObject(o)?e.extend(!0,{},e.site.settings,o):e.extend({},e.site.settings),p=f.namespace,h=f.error,g="module-"+p,m=e(n),v=m,b=this,y=v.data(g);returnr={initialize:function(){r.instantiate()},instantiate:function(){r.verbose("Storing instance of site",r),y=r,v.data(g,r)},normalize:function(){r.fix.console(),r.fix.requestAnimationFrame()},fix:{console:function(){r.debug("Normalizing window.console"),console!==i&&console.log!==i||(r.verbose("Console not available, normalizing events"),r.disable.console()),"undefined"!=typeofconsole.group&&"undefined"!=typeofconsole.groupEnd&&"undefined"!=typeofconsole.groupCollapsed||(r.verbose("Console group not available, normalizing events"),t.console.group=function(){},t.console.groupEnd=function(){},t.console.groupCollapsed=function(){}),"undefined"==typeofconsole.markTimeline&&(r.verbose("Mark timeline not available, normalizing events"),t.console.markTimeline=function(){})},consoleClear:function(){r.debug("Disabling programmatic console clearing"),t.console.clear=function(){}},requestAnimationFrame:function(){r.debug("Normalizing requestAnimationFrame"),t.requestAnimationFrame===i&&(r.debug("RequestAnimationFrame not available, normalizing event"),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(t){returne.fn[t]!==i&&e.fn[t].settings!==i},enabled:{modules:function(t){varn=[];returnt=t||f.modules,e.each(t,function(e,t){r.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(t){varn=[];returnt=t||f.modules,e.each(t,function(e,t){r.moduleExists(t)||n.push(t)}),n}},change:{setting:function(t,n,o,a){o="string"==typeofo?"all"===o?f.modules:[o]:o||f.modules,a=a===i||a,e.each(o,function(i,o){vars,l=!r.moduleExists(o)||e.fn[o].settings.namespace||!1;r.moduleExists(o)&&(r.verbose("Changing default setting",t,n,o),e.fn[o].settings[t]=n,a&&l&&(s=e(":data(module-"+l+")"),s.length>0&&(r.verbose("Modifying existing settings",s),s[o]("setting",t,n))))})},settings:function(t,n,o){n="string"==typeofn?[n]:n||f.modules,o=o===i||o,e.each(n,function(n,i){vara;r.moduleExists(i)&&(r.verbose("Changing default setting",t,i),e.extend(!0,e.fn[i].settings,t),o&&p&&(a=e(":data(module-"+p+")"),a.length>0&&(r.verbose("Modifying existing settings",a),a[i]("setting",t))))})}},enable:{console:function(){r.console(!0)},debug:function(e,t){e=e||f.modules,r.debug("Enabling debug for modules",e),r.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||f.modules,r.debug("Enabling verbose debug for modules",e),r.change.setting("verbose",!0,e,t)}},disable:{console:function(){r.console(!1)},debug:function(e,t){e=e||f.modules,r.debug("Disabling debug for modules",e),r.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||f.modules,r.debug("Disabling verbose debug for modules",e),r.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(y.cache.console===i)returnvoidr.error(h.console);r.debug("Restoring console function"),t.console=y.cache.console}elser.debug("Disabling console function"),y.cache.console=t.console,t.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){r.verbose("Destroying previous site for",v),v.removeData(g)},cache:{},setting:function(t,n){if(e.isPlainObject(t))e.extend(!0,f,t);else{if(n===i)returnf[t];f[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,r,t);else{if(n===i)returnr[t];r[t]=n}},debug:function(){f.debug&&(f.performance?r.performance.log(arguments):(r.debug=Function.prototype.bind.call(console.info,console,f.name+":"),r.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?r.performance.log(arguments):(r.verbose=Function.prototype.bind.call(console.info,co
onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},e.extend(e.easing,{easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n}})}(jQuery,window,document),function(e,t,n,i){"use strict";t="undefined"!=typeoft&&t.Math==Math?t:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")(),e.fn.checkbox=function(o){varr,a=e(this),s=a.selector||"",l=(newDate).getTime(),c=[],u=arguments[0],d="string"==typeofu,f=[].slice.call(arguments,1);returna.each(function(){vara,p,h=e.extend(!0,{},e.fn.checkbox.settings,o),g=h.className,m=h.namespace,v=h.selector,b=h.error,y="."+m,x="module-"+m,w=e(this),C=e(this).children(v.label),k=e(this).children(v.input),T=k[0],S=!1,A=!1,E=w.data(x),j=this;p={initialize:function(){p.verbose("Initializing checkbox",h),p.create.label(),p.bind.events(),p.set.tabbable(),p.hide.input(),p.observeChanges(),p.instantiate(),p.setup()},instantiate:function(){p.verbose("Storing instance of module",p),E=p,w.data(x,p)},destroy:function(){p.verbose("Destroying module"),p.unbind.events(),p.show.input(),w.removeData(x)},fix:{reference:function(){w.is(v.input)&&(p.debug("Behavior called on <input> adjusting invoked element"),w=w.closest(v.checkbox),p.refresh())}},setup:function(){p.set.initialLoad(),p.is.indeterminate()?(p.debug("Initial value is indeterminate"),p.indeterminate()):p.is.checked()?(p.debug("Initial value is checked"),p.check()):(p.debug("Initial value is unchecked"),p.uncheck()),p.remove.initialLoad()},refresh:function(){C=w.children(v.label),k=w.children(v.input),T=k[0]},hide:{input:function(){p.verbose("Modifying <input> z-index to be unselectable"),k.addClass(g.hidden)}},show:{input:function(){p.verbose("Modifying <input> z-index to be selectable"),k.removeClass(g.hidden)}},observeChanges:function(){"MutationObserver"int&&(a=newMutationObserver(function(e){p.debug("DOM tree modified, updating selector cache"),p.refresh()}),a.observe(j,{childList:!0,subtree:!0}),p.debug("Setting up mutation observer",a))},attachEvents:function(t,n){vari=e(t);n=e.isFunction(p[n])?p[n]:p.toggle,i.length>0?(p.debug("Attaching checkbox events to element",t,n),i.on("click"+y,n)):p.error(b.notFound)},event:{click:function(t){varn=e(t.target);returnn.is(v.input)?voidp.verbose("Using default check action on initialized checkbox"):n.is(v.link)?voidp.debug("Clicking link inside checkbox, skipping toggle"):(p.toggle(),k.focus(),voidt.preventDefault())},keydown:function(e){vart=e.which,n={enter:13,space:32,escape:27};t==n.escape?(p.verbose("Escape key pressed blurring field"),k.blur(),A=!0):e.ctrlKey||t!=n.space&&t!=n.enter?A=!1:(p.verbose("Enter/space key pressed, toggling checkbox"),p.toggle(),A=!0)},keyup:function(e){A&&e.preventDefault()}},check:function(){p.should.allowCheck()&&(p.debug("Checking checkbox",k),p.set.checked(),p.should.ignoreCallbacks()||(h.onChecked.call(T),h.onChange.call(T)))},uncheck:function(){p.should.allowUncheck()&&(p.debug("Unchecking checkbox"),p.set.unchecked(),p.should.ignoreCallbacks()||(h.onUnchecked.call(T),h.onChange.call(T)))},indeterminate:function(){returnp.should.allowIndeterminate()?voidp.debug("Checkbox is already indeterminate"):(p.debug("Making checkbox indeterminate"),p.set.indeterminate(),void(p.should.ignoreCallbacks()||(h.onIndeterminate.call(T),h.onChange.call(T))))},determinate:function(){returnp.should.allowDeterminate()?voidp.debug("Checkbox is already determinate"):(p.debug("Making checkbox determinate"),p.set.determinate(),void(p.should.ignoreCallbacks()||(h.onDeterminate.call(T),h.onChange.call(T))))},enable:function(){returnp.is.enabled()?voidp.debug("Checkbox is already enabled"):(p.debug("Enabling checkbox"),p.set.enabled(),h.onEnable.call(T),voidh.onEnabled.call(T))},disable:function(){returnp.is.disabled()?voidp.debug("Checkbox is already disabled"):(p.debug("Disabling checkbox"),p.set.disabled(),h.onDisable.call(T),voidh.onDisabled.call(T))},get:{radios:fu
},label:{click:function(t){varn=e(this),i=M.find(P.label),o=i.filter("."+S.active),r=n.nextAll("."+S.active),a=n.prevAll("."+S.active),s=r.length>0?n.nextUntil(r).add(o).add(n):n.prevUntil(a).add(o).add(n);t.shiftKey?(o.removeClass(S.active),s.addClass(S.active)):t.ctrlKey?n.toggleClass(S.active):(o.removeClass(S.active),n.addClass(S.active)),T.onLabelSelect.apply(this,i.filter("."+S.active))}},remove:{click:function(){vart=e(this).parent();t.hasClass(S.active)?k.remove.activeLabels():k.remove.activeLabels(t)}},test:{toggle:function(e){vart=k.is.multiple()?k.show:k.toggle;k.is.bubbledLabelClick(e)||k.is.bubbledIconClick(e)||k.determine.eventOnElement(e,t)&&e.preventDefault()},touch:function(e){k.determine.eventOnElement(e,function(){"touchstart"==e.type?k.timer=setTimeout(function(){k.hide()},T.delay.touch):"touchmove"==e.type&&clearTimeout(k.timer)}),e.stopPropagation()},hide:function(e){k.determine.eventInModule(e,k.hide)}},select:{mutation:function(e){k.debug("<select> modified, recreating menu"),k.setup.select()}},menu:{mutation:function(t){varn=t[0],i=e(!!n.addedNodes&&n.addedNodes[0]),o=e(!!n.removedNodes&&n.removedNodes[0]),r=i.add(o),a=r.is(P.addition)||r.closest(P.addition).length>0,s=r.is(P.message)||r.closest(P.message).length>0;a||s?(k.debug("Updating item selector cache"),k.refreshItems()):(k.debug("Menu modified, updating selector cache"),k.refresh())},mousedown:function(){X=!0},mouseup:function(){X=!1}},item:{mouseenter:function(t){varn=e(t.target),i=e(this),o=i.children(P.menu),r=i.siblings(P.item).children(P.menu),a=o.length>0,s=o.find(n).length>0;!s&&a&&(clearTimeout(k.itemTimer),k.itemTimer=setTimeout(function(){k.verbose("Showing sub-menu",o),e.each(r,function(){k.animate.hide(!1,e(this))}),k.animate.show(!1,o)},T.delay.show),t.preventDefault())},mouseleave:function(t){varn=e(this).children(P.menu);n.length>0&&(clearTimeout(k.itemTimer),k.itemTimer=setTimeout(function(){k.verbose("Hiding sub-menu",n),k.animate.hide(!1,n)},T.delay.hide))},click:function(t,n){vari=e(this),o=e(t?t.target:""),r=i.find(P.menu),a=k.get.choiceText(i),s=k.get.choiceValue(i,a),l=r.length>0,c=r.find(o).length>0;c||l&&!T.allowCategorySelection||(k.is.searchSelection()&&(T.allowAdditions&&k.remove.userAddition(),k.remove.searchTerm(),k.is.focusedOnSearch()||1==n||k.focusSearch(!0)),T.useLabels||(k.remove.filteredItem(),k.set.scrollPosition(i)),k.determine.selectAction.call(this,a,s))}},document:{keydown:function(e){vart=e.which,n=k.is.inObject(t,j);if(n){vari=M.find(P.label),o=i.filter("."+S.active),r=(o.data(R.value),i.index(o)),a=i.length,s=o.length>0,l=o.length>1,c=0===r,u=r+1==a,d=k.is.searchSelection(),f=k.is.focusedOnSearch(),p=k.is.focused(),h=f&&0===k.get.caretPosition();if(d&&!s&&!f)return;t==j.leftArrow?!p&&!h||s?s&&(e.shiftKey?k.verbose("Adding previous label to selection"):(k.verbose("Selecting previous label"),i.removeClass(S.active)),c&&!l?o.addClass(S.active):o.prev(P.siblingLabel).addClass(S.active).end(),e.preventDefault()):(k.verbose("Selecting previous label"),i.last().addClass(S.active)):t==j.rightArrow?(p&&!s&&i.first().addClass(S.active),s&&(e.shiftKey?k.verbose("Adding next label to selection"):(k.verbose("Selecting next label"),i.removeClass(S.active)),u?d?f?i.removeClass(S.active):k.focusSearch():l?o.next(P.siblingLabel).addClass(S.active):o.addClass(S.active):o.next(P.siblingLabel).addClass(S.active),e.preventDefault())):t==j.deleteKey||t==j.backspace?s?(k.verbose("Removing active labels"),u&&d&&!f&&k.focusSearch(),o.last().next(P.siblingLabel).addClass(S.active),k.remove.activeLabels(o),e.preventDefault()):h&&!s&&t==j.backspace&&(k.verbose("Removing last label on input backspace"),o=i.last().addClass(S.active),k.remove.activeLabels(o)):o.removeClass(S.active)}}},keydown:function(e){vart=e.which,n=k.is.inObject(t,j);if(n){vari,o,r=_.not(P.unselectable).filter("."+S.selected).eq(0),a=B.children("."+S.active).eq(0),s=r.length>0?r:a,l=s.length>0?s.siblings(":not(."+S.filtered+")").addBack():B.children(":not(."+S.filtered+")"),c=s.children(P.menu),u=s.closest(P.menu),d=u.hasClass(S.visible)||u.ha
k.initialize())}),r!==i?r:a},e.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",apiSettings:!1,selectOnKeydown:!0,minCharacters:0,saveRemoteData:!0,throttle:200,context:t,direction:"auto",keepOnScreen:!0,match:"both",fullTextSearch:!1,placeholder:"auto",preserveHTML:!0,sortSelect:!1,forceSelection:!0,allowAdditions:!1,hideAdditions:!0,maxSelections:!1,useLabels:!0,delimiter:",",showOnFocus:!0,allowReselection:!1,allowTab:!0,allowCategorySelection:!1,fireOnInit:!1,transition:"auto",duration:200,glyphWidth:1.037,label:{transition:"scale",duration:200,variation:!1},delay:{hide:300,show:200,search:20,touch:50},onChange:function(e,t,n){},onAdd:function(e,t,n){},onRemove:function(e,t,n){},onLabelSelect:function(e){},onLabelCreate:function(t,n){returne(this)},onLabelRemove:function(e){return!0},onNoResults:function(e){return!0},onShow:function(){},onHide:function(){},name:"Dropdown",namespace:"dropdown",message:{addResult:"Add <b>{term}</b>",count:"{count} selected",maxSelections:"Max {maxCount} selections",noResults:"No results found.",serverError:"There was an error contacting the server"},error:{action:"You called a dropdown action that was not defined",alreadySetup:"Once a select has been initialized behaviors must be called on the created ui dropdown",labels:"Allowing user additions currently requires the use of labels.",missingMultiple:"<select> requires multiple property to be set to correctly preserve multiple values",method:"The method you called is not defined.",noAPI:"The API module is required to load resources remotely",noStorage:"Saving remote data requires session storage",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s]/g,quote:/"/g},metadata:{defaultText:"defaultText",defaultValue:"defaultValue",placeholderText:"placeholder",text:"text",value:"value"},fields:{remoteValues:"results",values:"values",disabled:"disabled",name:"name",value:"value",text:"text"},keys:{backspace:8,delimiter:188,deleteKey:46,enter:13,escape:27,pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},selector:{addition:".addition",dropdown:".ui.dropdown",hidden:".hidden",icon:"> .dropdown.icon",input:'> input[type="hidden"], > select',item:".item",label:"> .label",remove:"> .label > .delete.icon",siblingLabel:".label",menu:".menu",message:".message",menuIcon:".dropdown.icon",search:"input.search, .menu > .search > input, .menu input.search",sizer:"> input.sizer",text:"> .text:not(.icon)",unselectable:".disabled, .filtered"},className:{active:"active",addition:"addition",animating:"animating",disabled:"disabled",empty:"empty",dropdown:"ui dropdown",filtered:"filtered",hidden:"hidden transition",item:"item",label:"ui label",loading:"loading",menu:"menu",message:"message",multiple:"multiple",placeholder:"default",sizer:"sizer",search:"search",selected:"selected",selection:"selection",upward:"upward",visible:"visible"}},e.fn.dropdown.settings.templates={dropdown:function(t){varn=t.placeholder||!1,i=(t.values||{},"");returni+='<i class="dropdown icon"></i>',i+=t.placeholder?'<div class="default text">'+n+"</div>":'<div class="text"></div>',i+='<div class="menu">',e.each(t.values,function(e,t){i+=t.disabled?'<div class="disabled item" data-value="'+t.value+'">'+t.name+"</div>":'<div class="item" data-value="'+t.value+'">'+t.name+"</div>"}),i+="</div>"},menu:function(t,n){vari=t[n.values]||{},o="";returne.each(i,function(e,t){vari=t[n.text]?'data-text="'+t[n.text]+'"':"",r=t[n.disabled]?"disabled ":"";o+='<div class="'+r+'item" data-value="'+t[n.value]+'"'+i+">",o+=t[n.name],o+="</div>"}),o},label:function(e,t){returnt+'<i class="delete icon"></i>'},message:function(e){returne},addition:function(e){returne}}}(jQuery,window,document),function(e,t,n,i){"use strict";t="undefined"!=typeoft&&t.Math==Math?t:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")(),e.fn.embed=function(n){varo,r=e(this),a=r.selector||"",s=(newDate).getTime(),l=[],c=arguments[0],u="string"=
w.hide())},show:function(e){if(e=e||function(){},w.debug("Showing pop-up",C.transition),w.is.hidden()&&(!w.is.active()||!w.is.dropdown())){if(w.exists()||w.create(),C.onShow.call(a,I)===!1)returnvoidw.debug("onShow callback returned false, cancelling popup animation");C.preserve||C.popup||w.refresh(),a&&w.set.position()&&(w.save.conditions(),C.exclusive&&w.hideAll(),w.animate.show(e))}},hide:function(e){if(e=e||function(){},w.is.visible()||w.is.animating()){if(C.onHide.call(a,I)===!1)returnvoidw.debug("onHide callback returned false, cancelling popup animation");w.remove.visible(),w.unbind.close(),w.restore.conditions(),w.animate.hide(e)}},hideAll:function(){e(k.popup).filter("."+T.visible).each(function(){e(this).data(A.activator).popup("hide")})},exists:function(){return!!a&&(C.inline||C.popup?w.has.popup():a.closest(O).length>=1)},removePopup:function(){w.has.popup()&&!C.popup&&(w.debug("Removing popup",a),a.remove(),a=i,C.onRemove.call(a,I))},save:{conditions:function(){w.cache={title:D.attr("title")},w.cache.title&&D.removeAttr("title"),w.verbose("Saving original attributes",w.cache.title)}},restore:{conditions:function(){returnw.cache&&w.cache.title&&(D.attr("title",w.cache.title),w.verbose("Restoring original attributes",w.cache.title)),!0}},supports:{svg:function(){returntypeofSVGGraphicsElement===i}},animate:{show:function(t){t=e.isFunction(t)?t:function(){},C.transition&&e.fn.transition!==i&&D.transition("is supported")?(w.set.visible(),a.transition({animation:C.transition+" in",queue:!1,debug:C.debug,verbose:C.verbose,duration:C.duration,onComplete:function(){w.bind.close(),t.call(a,I),C.onVisible.call(a,I)}})):w.error(S.noTransition)},hide:function(t){returnt=e.isFunction(t)?t:function(){},w.debug("Hiding pop-up"),C.onHide.call(a,I)===!1?voidw.debug("onHide callback returned false, cancelling popup animation"):void(C.transition&&e.fn.transition!==i&&D.transition("is supported")?a.transition({animation:C.transition+" out",queue:!1,duration:C.duration,debug:C.debug,verbose:C.verbose,onComplete:function(){w.reset(),t.call(a,I),C.onHidden.call(a,I)}}):w.error(S.noTransition))}},change:{content:function(e){a.html(e)}},get:{html:function(){returnD.removeData(A.html),D.data(A.html)||C.html},title:function(){returnD.removeData(A.title),D.data(A.title)||C.title},content:function(){returnD.removeData(A.content),D.data(A.content)||D.attr("title")||C.content},variation:function(){returnD.removeData(A.variation),D.data(A.variation)||C.variation},popup:function(){returna},popupOffset:function(){returna.offset()},calculations:function(){vare,n=L[0],i=F[0]==t,o=C.inline||C.popup&&C.movePopup?L.position():L.offset(),r=i?{top:0,left:0}:F.offset(),s={},c=i?{top:l.scrollTop(),left:l.scrollLeft()}:{top:0,left:0};returns={target:{element:L[0],width:L.outerWidth(),height:L.outerHeight(),top:o.top,left:o.left,margin:{}},popup:{width:a.outerWidth(),height:a.outerHeight()},parent:{width:v.outerWidth(),height:v.outerHeight()},screen:{top:r.top,left:r.left,scroll:{top:c.top,left:c.left},width:F.width(),height:F.height()}},C.setFluidWidth&&w.is.fluid()&&(s.container={width:a.parent().outerWidth()},s.popup.width=s.container.width),s.target.margin.top=C.inline?parseInt(t.getComputedStyle(n).getPropertyValue("margin-top"),10):0,s.target.margin.left=C.inline?w.is.rtl()?parseInt(t.getComputedStyle(n).getPropertyValue("margin-right"),10):parseInt(t.getComputedStyle(n).getPropertyValue("margin-left"),10):0,e=s.screen,s.boundary={top:e.top+e.scroll.top,bottom:e.top+e.scroll.top+e.height,left:e.left+e.scroll.left,right:e.left+e.scroll.left+e.width},s},id:function(){returnx},startEvent:function(){return"hover"==C.on?"mouseenter":"focus"==C.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==C.on?"mouseleave":"focus"==C.on&&"blur"},distanceFromBoundary:function(e,t){varn,i,o={};returnt=t||w.get.calculations(),n=t.popup,i=t.boundary,e&&(o={top:e.top-i.top,left:e.left-i.left,right:i.right-(e.left+n.width),bottom:i.bottom-(e.top+n.height)},w.verbose("Distance from boundaries determined",e,o)),o},
e.each(n,function(n,i){if(e.isArray(i.results)&&(r=p.search.object(t,i.results,o)[0]))return!1})):(p.debug("Finding result in results object",t),r=p.search.object(t,n,o)[0]),r||!1}},select:{firstResult:function(){p.verbose("Selecting first result"),j.first().addClass(g.active)}},set:{focus:function(){T.addClass(g.focus)},loading:function(){T.addClass(g.loading)},value:function(e){p.verbose("Setting search input value",e),S.val(e)},type:function(e){e=e||h.type,"category"==h.type&&T.addClass(h.type)},buttonPressed:function(){A.addClass(g.pressed)}},remove:{loading:function(){T.removeClass(g.loading)},focus:function(){T.removeClass(g.focus)},buttonPressed:function(){A.removeClass(g.pressed)}},query:function(){vart=p.get.value(),n=p.read.cache(t);p.has.minimumCharacters()?(n?(p.debug("Reading result from cache",t),p.save.results(n.results),p.addResults(n.html),p.inject.id(n.results)):(p.debug("Querying for",t),e.isPlainObject(h.source)||e.isArray(h.source)?p.search.local(t):p.can.useAPI()?p.search.remote(t):p.error(x.source)),h.onSearchQuery.call(D,t)):p.hideResults()},search:{local:function(e){vart,n=p.search.object(e,h.content);p.set.loading(),p.save.results(n),p.debug("Returned local search results",n),t=p.generateResults({results:n}),p.remove.loading(),p.addResults(t),p.inject.id(n),p.write.cache(e,{html:t,results:n})},remote:function(e){T.api("is loading")&&T.api("abort"),p.setup.api(e),T.api("query")},object:function(t,n,o){varr=[],a=[],s=t.toString().replace(v.escape,"\\$&"),l=newRegExp(v.beginsWith+s,"i"),c=function(t,n){vari=e.inArray(n,r)==-1,o=e.inArray(n,a)==-1;i&&o&&t.push(n)};returnn=n||h.source,o=o!==i?o:h.searchFields,e.isArray(o)||(o=[o]),n===i||n===!1?(p.error(x.source),[]):(e.each(o,function(i,o){e.each(n,function(e,n){vari="string"==typeofn[o];i&&(n[o].search(l)!==-1?c(r,n):h.searchFullText&&p.fuzzySearch(t,n[o])&&c(a,n))})}),e.merge(r,a))}},fuzzySearch:function(e,t){varn=t.length,i=e.length;if("string"!=typeofe)return!1;if(e=e.toLowerCase(),t=t.toLowerCase(),i>n)return!1;if(i===n)returne===t;e:for(varo=0,r=0;o<i;o++){for(vara=e.charCodeAt(o);r<n;)if(t.charCodeAt(r++)===a)continuee;return!1}return!0},parse:{response:function(e,t){varn=p.generateResults(e);p.verbose("Parsing server response",e),e!==i&&t!==i&&e[b.results]!==i&&(p.addResults(n),p.inject.id(e[b.results]),p.write.cache(t,{html:n,results:e[b.results]}),p.save.results(e[b.results]))}},cancel:{query:function(){p.can.useAPI()&&T.api("abort")}},has:{minimumCharacters:function(){vare=p.get.value(),t=e.length;returnt>=h.minCharacters}},clear:{cache:function(e){vart=T.data(m.cache);e?e&&t&&t[e]&&(p.debug("Removing value from cache",e),deletet[e],T.data(m.cache,t)):(p.debug("Clearing cache",e),T.removeData(m.cache))}},read:{cache:function(e){vart=T.data(m.cache);return!!h.cache&&(p.verbose("Checking cache for generated html for query",e),"object"==typeoft&&t[e]!==i&&t[e])}},create:{id:function(e,t){varn,o,r=e+1;returnt!==i?(n=String.fromCharCode(97+t),o=n+r,p.verbose("Creating category result id",o)):(o=r,p.verbose("Creating result id",o)),o},results:function(){0===E.length&&(E=e("<div />").addClass(g.results).appendTo(T))}},inject:{result:function(e,t,n){p.verbose("Injecting result into results");varo=n!==i?E.children().eq(n).children(y.result).eq(t):E.children(y.result).eq(t);p.verbose("Injecting results metadata",o),o.data(m.result,e)},id:function(t){p.debug("Injecting unique ids into results");varn=0,o=0;return"category"===h.type?e.each(t,function(t,r){o=0,e.each(r.results,function(e,t){vara=r.results[e];a.id===i&&(a.id=p.create.id(o,n)),p.inject.result(a,o,n),o++}),n++}):e.each(t,function(e,n){varr=t[e];r.id===i&&(r.id=p.create.id(o)),p.inject.result(r,o),o++}),t}},save:{results:function(e){p.verbose("Saving current search results to metadata",e),T.data(m.results,e)}},write:{cache:function(e,t){varn=T.data(m.cache)!==i?T.data(m.cache):{};h.cache&&(p.verbose("Writing generated html to cache",e,t),n[e]=t,T.data(m.cache,n))}},addResults:function(t){returne.isFunction(h.onResultsAdd)&&h.onResultsAdd.call(E,t)===!1?(p.debu
vart=a.filter("[data-"+C.tab+'^="'+e+'/"]').eq(0),n=t.data(C.tab)||!1;if(n){if(b.debug("Found default tab",n),D<x.maxDepth)returnD++,b.get.defaultPath(n);b.error(T.recursion)}elseb.debug("No default tabs found for",e,g);returnD=0,e},navElement:function(e){returne=e||m,a.filter("[data-"+C.tab+'="'+e+'"]')},tabElement:function(e){vart,n,i,o;returne=e||m,i=b.utilities.pathToArray(e),o=b.utilities.last(i),t=g.filter("[data-"+C.tab+'="'+e+'"]'),n=g.filter("[data-"+C.tab+'="'+o+'"]'),t.length>0?t:n},tab:function(){returnm}},utilities:{filterArray:function(t,n){returne.grep(t,function(t){returne.inArray(t,n)==-1})},last:function(t){return!!e.isArray(t)&&t[t.length-1]},pathToArray:function(e){returne===i&&(e=m),"string"==typeofe?e.split("/"):[e]},arrayToPath:function(t){return!!e.isArray(t)&&t.join("/")}},setting:function(t,n){if(b.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,x,t);else{if(n===i)returnx[t];e.isPlainObject(x[t])?e.extend(!0,x[t],n):x[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,b,t);else{if(n===i)returnb[t];b[t]=n}},debug:function(){!x.silent&&x.debug&&(x.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,x.name+":"),b.debug.apply(console,arguments)))},verbose:function(){!x.silent&&x.verbose&&x.debug&&(x.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,x.name+":"),b.verbose.apply(console,arguments)))},error:function(){x.silent||(b.error=Function.prototype.bind.call(console.error,console,x.name+":"),b.error.apply(console,arguments))},performance:{log:function(e){vart,n,i;x.performance&&(t=(newDate).getTime(),i=l||t,n=t-i,l=t,c.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:O,"Execution Time":n})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,500)},display:function(){vart=x.name+":",n=0;l=!1,clearTimeout(b.performance.timer),e.each(c,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",s&&(t+=" '"+s+"'"),(console.group!==i||console.table!==i)&&c.length>0&&(console.groupCollapsed(t),console.table?console.table(c):e.each(c,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),c=[]}},invoke:function(t,n,o){vara,s,l,c=P;returnn=n||f,o=O||o,"string"==typeoft&&c!==i&&(t=t.split(/[\. ]/),a=t.length-1,e.each(t,function(n,o){varr=n!=a?o+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(c[r])&&n!=a)c=c[r];else{if(c[r]!==i)returns=c[r],!1;if(!e.isPlainObject(c[o])||n==a)returnc[o]!==i?(s=c[o],!1):(b.error(T.method,t),!1);c=c[o]}})),e.isFunction(s)?l=s.apply(o,n):s!==i&&(l=s),e.isArray(r)?r.push(l):r!==i?r=[r,l]:l!==i&&(r=l),s}},d?(P===i&&b.initialize(),b.invoke(u)):(P!==i&&P.invoke("destroy"),b.initialize())}),r!==i?r:this},e.tab=function(){e(t).tab.apply(this,arguments)},e.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(e,t,n){},onLoad:function(e,t,n){},onVisible:function(e,t,n){},onRequest:function(e,t,n){},templates:{determineTitle:function(e){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(e,t,n,i
return"aborted"==t?(m.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",t,n),v.onAbort.call(R,t,S,e),!0):("invalid"==t?m.debug("JSON did not pass success test. A server-side error has most likely occurred",o):"error"==t&&e!==i&&(m.debug("XHR produced a server error",t,n),200!=e.status&&n!==i&&""!==n&&m.error(w.statusMessage+n,r.url),v.onError.call(R,a,S,e)),v.errorDuration&&"aborted"!==t&&(m.debug("Adding error state"),m.set.error(),m.should.removeError()&&setTimeout(m.remove.error,v.errorDuration)),m.debug("API Request failed",a,e),voidv.onFailure.call(R,o,S,e))}}},create:{request:function(){returne.Deferred().always(m.event.request.complete).done(m.event.request.done).fail(m.event.request.fail)},mockedXHR:function(){vart,n,i,o=!1,r=!1,a=!1,s=v.mockResponse||v.response,l=v.mockResponseAsync||v.responseAsync;returni=e.Deferred().always(m.event.xhr.complete).done(m.event.xhr.done).fail(m.event.xhr.fail),s?(e.isFunction(s)?(m.debug("Using specified synchronous callback",s),n=s.call(R,f)):(m.debug("Using settings specified response",s),n=s),i.resolveWith(R,[n,o,{responseText:n}])):e.isFunction(l)&&(t=function(e){m.debug("Async callback returned response",e),e?i.resolveWith(R,[e,o,{responseText:e}]):i.rejectWith(R,[{responseText:e},r,a])},m.debug("Using specified async response callback",l),l.call(R,f,t)),i},xhr:function(){vart;returnt=e.ajax(r).always(m.event.xhr.always).done(m.event.xhr.done).fail(m.event.xhr.fail),m.verbose("Created server request",t,r),t}},set:{error:function(){m.verbose("Adding error state to element",E),E.addClass(C.error)},loading:function(){m.verbose("Adding loading state to element",E),E.addClass(C.loading),g=(newDate).getTime()}},remove:{error:function(){m.verbose("Removing error state from element",E),E.removeClass(C.error)},loading:function(){m.verbose("Removing loading state from element",E),E.removeClass(C.loading)}},get:{responseFromXHR:function(t){return!!e.isPlainObject(t)&&(m.is.expectingJSON()?m.decode.json(t.responseText):t.responseText)},errorFromRequest:function(t,n,o){returne.isPlainObject(t)&&t.error!==i?t.error:v.error[n]!==i?v.error[n]:o},request:function(){returnm.request||!1},xhr:function(){returnm.xhr||!1},settings:function(){vart;returnt=v.beforeSend.call(R,v),t&&(t.success!==i&&(m.debug("Legacy success callback detected",t),m.error(w.legacyParameters,t.success),t.onSuccess=t.success),t.failure!==i&&(m.debug("Legacy failure callback detected",t),m.error(w.legacyParameters,t.failure),t.onFailure=t.failure),t.complete!==i&&(m.debug("Legacy complete callback detected",t),m.error(w.legacyParameters,t.complete),t.onComplete=t.complete)),t===i&&m.error(w.noReturnedValue),t===!1?t:t!==i?e.extend(!0,{},t):e.extend(!0,{},v)},urlEncodedValue:function(e){varn=t.decodeURIComponent(e),i=t.encodeURIComponent(e),o=n!==e;returno?(m.debug("URL value is already encoded, avoiding double encoding",e),e):(m.verbose("Encoding value using encodeURIComponent",e,i),i)},defaultData:function(){vart={};returne.isWindow(j)||(m.is.input()?t.value=S.val():m.is.form()||(t.text=S.text())),t},event:function(){returne.isWindow(j)||"now"==v.on?(m.debug("API called without element, no events attached"),!1):"auto"==v.on?S.is("input")?j.oninput!==i?"input":j.onpropertychange!==i?"propertychange":"keyup":S.is("form")?"submit":"click":v.on},templatedURL:function(e){if(e=e||S.data(y.action)||v.action||!1,p=S.data(y.url)||v.url||!1)returnm.debug("Using specified url",p),p;if(e){if(m.debug("Looking up url for action",e,v.api),v.api[e]===i&&!m.is.mocked())returnvoidm.error(w.missingAction,v.action,v.api);p=v.api[e]}elsem.is.form()&&(p=S.attr("action")||E.attr("action")||!1,m.debug("No url or action specified, defaulting to form action",p));returnp}},abort:function(){vare=m.get.xhr();e&&"resolved"!==e.state()&&(m.debug("Cancelling API request"),e.abort())},reset:function(){m.remove.error(),m.remove.loading()},setting:function(t,n){if(m.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,v,t);else{if(n===i)returnv[t];e.isPlainObject(v[t])?e.extend(!0,v[t],n):v[t]=n}}
"string"!=typeofa&&(a=e(a)),a||(this.logger.warn("missed to pass in variable "+r[1]+" for interpolating "+t),a=""),t=t.replace(r[0],a),this.regexp.lastIndex=0;returnt},t}(),H=function(e){functiont(n,i,o){varr=arguments.length>3&&void0!==arguments[3]?arguments[3]:{};w(this,t);vara=T(this,e.call(this));returna.backend=n,a.store=i,a.services=o,a.options=r,a.logger=j.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,r.backend,r),a}returnk(t,e),t.prototype.queueLoad=function(e,t,n){vari=this,o=[],r=[],a=[],s=[];returne.forEach(function(e){varn=!0;t.forEach(function(t){vara=e+"|"+t;i.store.hasResourceBundle(e,t)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?r.indexOf(a)<0&&r.push(a):(i.state[a]=1,n=!1,r.indexOf(a)<0&&r.push(a),o.indexOf(a)<0&&o.push(a),s.indexOf(t)<0&&s.push(t)))}),n||a.push(e)}),(o.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:n}),{toLoad:o,pending:r,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){vari=this,r=e.split("|"),a=S(r,2),s=a[0],l=a[1];t&&this.emit("failedLoading",s,l,t),n&&this.store.addResourceBundle(s,l,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){o(n.loaded,[s],l),m(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(i.emit("loaded",n.loaded),n.errors.length?n.callback(n.errors):n.callback(),n.done=!0)}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n,i,o,r){vara=this;returni||(i=0),o||(o=250),e.length?voidthis.backend[n](e,t,function(s,l){returns&&l&&i<5?voidsetTimeout(function(){a.read.call(a,e,t,n,++i,2*o,r)},o):voidr(s,l)}):r(null,{})},t.prototype.load=function(e,t,n){vari=this;if(!this.backend)returnthis.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();varo=C({},this.backend.options,this.options.backend);"string"==typeofe&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeoft&&(t=[t]);vara=this.queueLoad(e,t,n);if(!a.toLoad.length)returnvoid(a.pending.length||n());if(o.allowMultiLoading&&this.backend.readMulti)this.read(a.toLoadLanguages,a.toLoadNamespaces,"readMulti",null,null,function(e,t){e&&i.logger.warn("loading namespaces "+a.toLoadNamespaces.join(", ")+" for languages "+a.toLoadLanguages.join(", ")+" via multiloading failed",e),!e&&t&&i.logger.log("loaded namespaces "+a.toLoadNamespaces.join(", ")+" for languages "+a.toLoadLanguages.join(", ")+" via multiloading",t),a.toLoad.forEach(function(n){varo=n.split("|"),a=S(o,2),s=a[0],l=a[1],c=r(t,[s,l]);if(c)i.loaded(n,e,c);else{varu="loading namespace "+l+" for language "+s+" via multiloading failed";i.loaded(n,u),i.logger.error(u)}})});else{vars=function(e){vart=this,n=e.split("|"),i=S(n,2),o=i[0],r=i[1];this.read(o,r,"read",null,null,function(n,i){n&&t.logger.warn("loading namespace "+r+" for language "+o+" failed",n),!n&&i&&t.logger.log("loaded namespace "+r+" for language "+o,i),t.loaded(e,n,i)})};a.toLoad.forEach(function(e){s.call(i,e)})}},t.prototype.reload=function(e,t){varn=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources.");vari=C({},this.backend.options,this.options.backend);if("string"==typeofe&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeoft&&(t=[t]),i.allowMultiLoading&&this.backend.readMulti)this.read(e,t,"readMulti",null,null,function(i,o){i&&n.logger.warn("reloading namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading failed",i),!i&&o&&n.logger.log("reloaded namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading",o),e.forEach(function(e){t.forEach(function(t){vara=r(o,[e,t]);if(a)n.loaded(e+"|"+t,i,a);else{vars="reloading namespace "+t+" for language "+e+" via multiloading failed";n.loaded(e+"|"+t,s),n.logger.error(s)}})})});else{varo=function(e){vart=this,n=e.split("|"),i=S(n,2),o=i[0],r=i[1];this.read(o,r,"read",null,null,function(n,i){n&&t.logger.warn("reloading namespace "+r+" for language "+o+" failed",n),!n&&i&&t.logger.log("reloaded namespace "+r+"for