!function(n,t,i){n.site=n.fn.site=function(r){var u,e,c=(new Date).getTime(),s=[],v=arguments[0],w="string"==typeof v,b=[].slice.call(arguments,1),f=n.isPlainObject(r)?n.extend(!0,{},n.site.settings,r):n.extend({},n.site.settings),l=f.namespace,y=f.error,a="module-"+l,k=n(i),h=k,p=this,o=h.data(a);return u={initialize:function(){u.instantiate()},instantiate:function(){u.verbose("Storing instance of site",u);o=u;h.data(a,u)},normalize:function(){u.fix.console();u.fix.requestAnimationFrame()},fix:{console:function(){u.debug("Normalizing window.console");void 0!==console&&void 0!==console.log||(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"),t.console.group=function(){},t.console.groupEnd=function(){},t.console.groupCollapsed=function(){});void 0===console.markTimeline&&(u.verbose("Mark timeline not available, normalizing events"),t.console.markTimeline=function(){})},consoleClear:function(){u.debug("Disabling programmatic console clearing");t.console.clear=function(){}},requestAnimationFrame:function(){u.debug("Normalizing requestAnimationFrame");void 0===t.requestAnimationFrame&&(u.debug("RequestAnimationFrame not available, normalizing event"),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)})}},moduleExists:function(t){return void 0!==n.fn[t]&&void 0!==n.fn[t].settings},enabled:{modules:function(t){var i=[];return t=t||f.modules,n.each(t,function(n,t){u.moduleExists(t)&&i.push(t)}),i}},disabled:{modules:function(t){var i=[];return t=t||f.modules,n.each(t,function(n,t){u.moduleExists(t)||i.push(t)}),i}},change:{setting:function(t,i,r,e){r="string"==typeof r?"all"===r?f.modules:[r]:r||f.modules;e=void 0===e||e;n.each(r,function(r,f){var o,s=!u.moduleExists(f)||n.fn[f].settings.namespace||!1;u.moduleExists(f)&&(u.verbose("Changing default setting",t,i,f),n.fn[f].settings[t]=i,e&&s&&(o=n(":data(module-"+s+")"),o.length>0&&(u.verbose("Modifying existing settings",o),o[f]("setting",t,i))))})},settings:function(t,i,r){i="string"==typeof i?[i]:i||f.modules;r=void 0===r||r;n.each(i,function(i,f){var e;u.moduleExists(f)&&(u.verbose("Changing default setting",t,f),n.extend(!0,n.fn[f].settings,t),r&&l&&(e=n(":data(module-"+l+")"),e.length>0&&(u.verbose("Modifying existing settings",e),e[f]("setting",t))))})}},enable:{console:function(){u.console(!0)},debug:function(n,t){n=n||f.modules;u.debug("Enabling debug for modules",n);u.change.setting("debug",!0,n,t)},verbose:function(n,t){n=n||f.modules;u.debug("Enabling verbose debug for modules",n);u.change.setting("verbose",!0,n,t)}},disable:{console:function(){u.console(!1)},debug:function(n,t){n=n||f.modules;u.debug("Disabling debug for modules",n);u.change.setting("debug",!1,n,t)},verbose:function(n,t){n=n||f.modules;u.debug("Disabling verbose debug for modules",n);u.change.setting("verbose",!1,n,t)}},console:function(n){if(n){if(void 0===o.cache.console)return void u.error(y.console);u.debug("Restoring console function");t.console=o.cache.console}else u.debug("Disabling console function"),o.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(){u.verbose("Destroying previous site for",h);h.removeData(a)},cache:{},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,f,t);else{if(void 0===i)return f[t];f[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,u,t);else{if(void 0===i)return u[t];u[t]=i}},debug:function(){f.debug&&(f.performance?u.performance.log(arguments):(u.debug=Function.prototype.bind.call(console.info,console,f.name+":"),u.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?u.performance.log(arguments):(u.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),u.verbose.apply(console,arguments)))},error:function(){u.error=Function.prototype.bind.call(console.error,console,f.name+":");u.error.apply(console,arguments)},performance:{log:function(n){var t,i,r;f.performance&&(t=(new Date).getTime(),r=c||t,i=t-r,c=t,s.push({Element:p,Name:n[0],Arguments:[].slice.call(n,1)||"","Execution Time":i}));clearTimeout(u.performance.timer);u.performance.timer=setTimeout(u.performance.display,500)},display:function(){var t=f.name+":",i=0;c=!1;clearTimeout(u.performance.timer);n.each(s,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):n.each(s,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());s=[]}},invoke:function(t,i,r){var c,s,h,f=o;return i=i||b,r=p||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),c=t.length-1,n.each(t,function(i,r){var e=i!=c?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[e])&&i!=c)f=f[e];else{if(void 0!==f[e])return s=f[e],!1;if(!n.isPlainObject(f[r])||i==c)return void 0!==f[r]?(s=f[r],!1):(u.error(y.method,t),!1);f=f[r]}})),n.isFunction(s)?h=s.apply(r,i):void 0!==s&&(h=s),n.isArray(e)?e.push(h):void 0!==e?e=[e,h]:void 0!==h&&(e=h),s}},w?(void 0===o&&u.initialize(),u.invoke(v)):(void 0!==o&&u.destroy(),u.initialize()),void 0!==e?e:this};n.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}};n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.form=function(t){var r,f=n(this),o=f.selector||"",e=(new Date).getTime(),u=[],s=arguments[0],h=arguments[1],c="string"==typeof s,l=[].slice.call(arguments,1);return f.each(function(){var w,g,st,lt,ht,at,vt,v,d,nt,y,k,ct,et,ot,ut,b,tt,a,p=n(this),it=this,rt=[],ft=!1;a={initialize:function(){a.get.settings();c?(void 0===tt&&a.instantiate(),a.invoke(s)):(void 0!==tt&&tt.invoke("destroy"),a.verbose("Initializing form validation",p,v),a.bindEvents(),a.set.defaults(),a.instantiate())},instantiate:function(){a.verbose("Storing instance of module",a);tt=a;p.data(ut,a)},destroy:function(){a.verbose("Destroying previous module",tt);a.removeEvents();p.removeData(ut)},refresh:function(){a.verbose("Refreshing selector cache");w=p.find(y.field);g=p.find(y.group);st=p.find(y.message);lt=p.find(y.prompt);ht=p.find(y.submit);at=p.find(y.clear);vt=p.find(y.reset)},submit:function(){a.verbose("Submitting form",p);p.submit()},attachEvents:function(t,i){i=i||"submit";n(t).on("click"+b,function(n){a[i]();n.preventDefault()})},bindEvents:function(){a.verbose("Attaching form events");p.on("submit"+b,a.validate.form).on("blur"+b,y.field,a.event.field.blur).on("click"+b,y.submit,a.submit).on("click"+b,y.reset,a.reset).on("click"+b,y.clear,a.clear);v.keyboardShortcuts&&p.on("keydown"+b,y.field,a.event.field.keydown);w.each(function(){var t=n(this),i=t.prop("type"),r=a.get.changeEvent(i,t);n(this).on(r+b,a.event.field.change)})},clear:function(){w.each(function(){var t=n(this),i=t.parent(),r=t.closest(g),f=r.find(y.prompt),u=t.data(nt.defaultValue)||"",e=i.is(y.uiCheckbox),o=i.is(y.uiDropdown);r.hasClass(k.error)&&(a.verbose("Resetting error on field",r),r.removeClass(k.error),f.remove());o?(a.verbose("Resetting dropdown value",i,u),i.dropdown("clear")):e?t.prop("checked",!1):(a.verbose("Resetting field value",t,u),t.val(""))})},reset:function(){w.each(function(){var t=n(this),r=t.parent(),u=t.closest(g),f=u.find(y.prompt),i=t.data(nt.defaultValue),e=r.is(y.uiCheckbox),o=r.is(y.uiDropdown),s=u.hasClass(k.error);void 0!==i&&(s&&(a.verbose("Resetting error on field",u),u.removeClass(k.error),f.remove()),o?(a.verbose("Resetting dropdown value",r,i),r.dropdown("restore defaults")):e?(a.verbose("Resetting checkbox value",r,i),t.prop("checked",i)):(a.verbose("Resetting field value",t,i),t.val(i)))})},determine:{isValid:function(){var t=!0;return n.each(d,function(n,i){a.validate.field(i,n,!0)||(t=!1)}),t}},is:{bracketedRule:function(n){return n.type&&n.type.match(v.regExp.bracket)},empty:function(n){return!n||0===n.length||(n.is('input[type="checkbox"]')?!n.is(":checked"):a.is.blank(n))},blank:function(t){return""===n.trim(t.val())},valid:function(t){var i=!0;return t?(a.verbose("Checking if field is valid",t),a.validate.field(d[t],t,!1)):(a.verbose("Checking if form is valid"),n.each(d,function(n){a.is.valid(n)||(i=!1)}),i)}},removeEvents:function(){p.off(b);w.off(b);ht.off(b);w.off(b)},event:{field:{keydown:function(t){var i=n(this),r=t.which,f=i.is(y.input),e=i.is(y.checkbox),o=i.closest(y.uiDropdown).length>0,u={enter:13,escape:27};r==u.escape&&(a.verbose("Escape key pressed blurring field"),i.blur());t.ctrlKey||r!=u.enter||!f||o||e||(ft||(i.one("keyup"+b,a.event.field.keyup),a.submit(),a.debug("Enter pressed on input submitting form")),ft=!0)},keyup:function(){ft=!1},blur:function(){var i=n(this),r=i.closest(g),t=a.get.validation(i);r.hasClass(k.error)?(a.debug("Revalidating field",i,t),t&&a.validate.field(t)):"blur"!=v.on&&"change"!=v.on||t&&a.validate.field(t)},change:function(){var t=n(this),r=t.closest(g),i=a.get.validation(t);i&&("change"==v.on||r.hasClass(k.error)&&v.revalidate)&&(clearTimeout(a.timer),a.timer=setTimeout(function(){a.debug("Revalidating field",t,a.get.validation(t));a.validate.field(i)},v.delay))}}},get:{ancillaryValue:function(n){return!(!n.type||!n.value&&!a.is.bracketedRule(n))&&(void 0!==n.value?n.value:n.type.match(v.regExp.bracket)[1]+"")},ruleName:function(n){return a.is.bracketedRule(n)?n.type.replace(n.type.match(v.regExp.bracket)[0],""):n.type},changeEvent:function(n,t){return"checkbox"==n||"radio"==n||"hidden"==n||t.is("select")?"change":a.get.inputEvent()},inputEvent:function(){return void 0!==i.createElement("input").oninput?"input":void 0!==i.createElement("input").onpropertychange?"propertychange":"keyup"},prompt:function(n,t){var u,r,f,e=a.get.ruleName(n),h=a.get.ancillaryValue(n),i=n.prompt||v.prompt[e]||v.text.unspecifiedRule,o=i.search("{value}")!==-1,s=i.search("{name}")!==-1;return(s||o)&&(r=a.get.field(t.identifier)),o&&(i=i.replace("{value}",r.val())),s&&(u=r.closest(y.group).find("label").eq(0),f=1==u.length?u.text():r.prop("placeholder")||v.text.unspecifiedField,i=i.replace("{name}",f)),i=i.replace("{identifier}",t.identifier),i=i.replace("{ruleValue}",h),n.prompt||a.verbose("Using default validation prompt for type",i,e),i},settings:function(){if(n.isPlainObject(t)){var i,r=Object.keys(t),u=r.length>0&&void 0!==t[r[0]].identifier&&void 0!==t[r[0]].rules;u?(v=n.extend(!0,{},n.fn.form.settings,h),d=n.extend({},n.fn.form.settings.defaults,t),a.error(v.error.oldSyntax,it),a.verbose("Extending settings from legacy parameters",d,v)):(t.fields&&(i=Object.keys(t.fields),("string"==typeof t.fields[i[0]]||n.isArray(t.fields[i[0]]))&&n.each(t.fields,function(i,r){"string"==typeof r&&(r=[r]);t.fields[i]={rules:[]};n.each(r,function(n,r){t.fields[i].rules.push({type:r})})})),v=n.extend(!0,{},n.fn.form.settings,t),d=n.extend({},n.fn.form.settings.defaults,v.fields),a.verbose("Extending settings",d,v))}else v=n.fn.form.settings,d=n.fn.form.settings.defaults,a.verbose("Using default form validation",d,v);ot=v.namespace;nt=v.metadata;y=v.selector;k=v.className;ct=v.regExp;et=v.error;ut="module-"+ot;b="."+ot;tt=p.data(ut);a.refresh()},field:function(t){return a.verbose("Finding field with identifier",t),t=a.escape.string(t),w.filter("#"+t).length>0?w.filter("#"+t):w.filter('[name="'+t+'"]').length>0?w.filter('[name="'+t+'"]'):w.filter('[name="'+t+'[]"]').length>0?w.filter('[name="'+t+'[]"]'):w.filter("[data-"+nt.validate+'="'+t+'"]').length>0?w.filter("[data-"+nt.validate+'="'+t+'"]'):n("<input/>")},fields:function(t){var i=n();return n.each(t,function(n,t){i=i.add(a.get.field(t))}),i},validation:function(t){var r,i;return!!d&&(n.each(d,function(n,u){i=u.identifier||n;a.get.field(i)[0]==t[0]&&(u.identifier=i,r=u)}),r||!1)},value:function(n){var t,i=[];return i.push(n),t=a.get.values.call(it,i),t[n]},values:function(t){var r=n.isArray(t)?a.get.fields(t):w,i={};return r.each(function(t,r){var f=n(r),u=(f.prop("type"),f.prop("name")),e=f.val(),o=f.is(y.checkbox),h=f.is(y.radio),c=u.indexOf("[]")!==-1,s=!!o&&f.is(":checked");u&&(c?(u=u.replace("[]",""),i[u]||(i[u]=[]),o?s?i[u].push(e||!0):i[u].push(!1):i[u].push(e)):h?s&&(i[u]=e):i[u]=o?!!s&&(e||!0):e)}),i}},has:{field:function(n){return a.verbose("Checking for existence of a field with identifier",n),n=a.escape.string(n),"string"!=typeof n&&a.error(et.identifier,n),w.filter("#"+n).length>0||w.filter('[name="'+n+'"]').length>0||w.filter("[data-"+nt.validate+'="'+n+'"]').length>0}},escape:{string:function(n){return n=String(n),n.replace(ct.escape,"\\$&")}},add:{prompt:function(t,i){var e=a.get.field(t),u=e.closest(g),r=u.children(y.prompt),f=0!==r.length;i="string"==typeof i?[i]:i;a.verbose("Adding field error state",t);u.addClass(k.error);v.inline&&(f||(r=v.templates.prompt(i),r.appendTo(u)),r.html(i[0]),f?a.verbose("Inline errors are disabled, no inline error added",t):v.transition&&void 0!==n.fn.transition&&p.transition("is supported")?(a.verbose("Displaying error with css transition",v.transition),r.transition(v.transition+" in",v.duration)):(a.verbose("Displaying error with fallback javascript animation"),r.fadeIn(v.duration)))},errors:function(n){a.debug("Adding form error messages",n);a.set.error();st.html(v.templates.error(n))}},remove:{prompt:function(t){var u=a.get.field(t),r=u.closest(g),i=r.children(y.prompt);r.removeClass(k.error);v.inline&&i.is(":visible")&&(a.verbose("Removing prompt for field",t),v.transition&&void 0!==n.fn.transition&&p.transition("is supported")?i.transition(v.transition+" out",v.duration,function(){i.remove()}):i.fadeOut(v.duration,function(){i.remove()}))}},set:{success:function(){p.removeClass(k.error).addClass(k.success)},defaults:function(){w.each(function(){var t=n(this),i=t.filter(y.checkbox).length>0,r=i?t.is(":checked"):t.val();t.data(nt.defaultValue,r)})},error:function(){p.removeClass(k.success).addClass(k.error)},value:function(n,t){var i={};return i[n]=t,a.set.values.call(it,i)},values:function(t){n.isEmptyObject(t)||n.each(t,function(t,i){var f,u=a.get.field(t),r=u.parent(),o=n.isArray(i),e=r.is(y.uiCheckbox),s=r.is(y.uiDropdown),h=u.is(y.radio)&&e,c=u.length>0;c&&(o&&e?(a.verbose("Selecting multiple",i,u),r.checkbox("uncheck"),n.each(i,function(n,t){f=u.filter('[value="'+t+'"]');r=f.parent();f.length>0&&r.checkbox("check")})):h?(a.verbose("Selecting radio value",i,u),u.filter('[value="'+i+'"]').parent(y.uiCheckbox).checkbox("check")):e?(a.verbose("Setting checkbox value",i,r),i===!0?r.checkbox("check"):r.checkbox("uncheck")):s?(a.verbose("Setting dropdown value",i,r),r.dropdown("set selected",i)):(a.verbose("Setting field value",i,u),u.val(i)))})}},validate:{form:function(n,t){var i=a.get.values();if(ft)return!1;if(rt=[],a.determine.isValid()){if(a.debug("Form has no validation errors, submitting"),a.set.success(),t!==!0)return v.onSuccess.call(it,n,i)}else if(a.debug("Form has errors"),a.set.error(),v.inline||a.add.errors(rt),void 0!==p.data("moduleApi")&&n.stopImmediatePropagation(),t!==!0)return v.onFailure.call(it,rt,i)},field:function(t,i,r){r=void 0===r||r;"string"==typeof t&&(a.verbose("Validating field",t),i=t,t=d[t]);var u=t.identifier||i,o=a.get.field(u),s=!!t.depends&&a.get.field(t.depends),f=!0,e=[];return t.identifier||(a.debug("Using field name as identifier",u),t.identifier=u),o.prop("disabled")?(a.debug("Field is disabled. Skipping",u),f=!0):t.optional&&a.is.blank(o)?(a.debug("Field is optional and blank. Skipping",u),f=!0):t.depends&&a.is.empty(s)?(a.debug("Field depends on another value that is not present or empty. Skipping",s),f=!0):void 0!==t.rules&&n.each(t.rules,function(n,i){a.has.field(u)&&!a.validate.rule(t,i)&&(a.debug("Field is invalid",u,i.type),e.push(a.get.prompt(i,t)),f=!1)}),f?(r&&(a.remove.prompt(u,e),v.onValid.call(o)),!0):(r&&(rt=rt.concat(e),a.add.prompt(u,e),v.onInvalid.call(o,e)),!1)},rule:function(t,i){var u=a.get.field(t.identifier),r=(i.type,u.val()),o=a.get.ancillaryValue(i),f=a.get.ruleName(i),e=v.rules[f];return n.isFunction(e)?(r=void 0===r||""===r||null===r?"":n.trim(r+""),e.call(u,r,o)):void a.error(et.noRule,f)}},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:it,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;e=!1;clearTimeout(a.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=tt;return i=i||l,u=it||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};a.initialize()}),void 0!==r?r:this};n.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} cannot contain "{ruleValue}"',containExactly:'{name} cannot contain exactly "{ruleValue}"',doesntContain:'{name} must contain  "{ruleValue}"',doesntContainExactly:'{name} must contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(t){var i='<ul class="list">';return n.each(t,function(n,t){i+="<li>"+t+"<\/li>"}),i+="<\/ul>",n(i)},prompt:function(t){return n("<div/>").addClass("ui basic red pointing prompt label").html(t[0])}},rules:{empty:function(t){return!(void 0===t||""===t||n.isArray(t)&&0===t.length)},checked:function(){return n(this).filter(":checked").length>0},email:function(t){return n.fn.form.settings.regExp.email.test(t)},url:function(t){return n.fn.form.settings.regExp.url.test(t)},regExp:function(t,i){if(i instanceof RegExp)return t.match(i);var u,r=i.match(n.fn.form.settings.regExp.flags);return r&&(i=r.length>=2?r[1]:i,u=r.length>=3?r[2]:""),t.match(new RegExp(i,u))},integer:function(t,i){var u,f,r,e=n.fn.form.settings.regExp.integer;return i&&["",".."].indexOf(i)===-1&&(i.indexOf("..")==-1?e.test(i)&&(u=f=+i):(r=i.split("..",2),e.test(r[0])&&(u=r[0]-0),e.test(r[1])&&(f=r[1]-0))),e.test(t)&&(void 0===u||t>=u)&&(void 0===f||t<=f)},decimal:function(t){return n.fn.form.settings.regExp.decimal.test(t)},number:function(t){return n.fn.form.settings.regExp.number.test(t)},is:function(n,t){return t="string"==typeof t?t.toLowerCase():t,(n="string"==typeof n?n.toLowerCase():n)==t},isExactly:function(n,t){return n==t},not:function(n,t){return n="string"==typeof n?n.toLowerCase():n,t="string"==typeof t?t.toLowerCase():t,n!=t},notExactly:function(n,t){return n!=t},contains:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i,"i"))!==-1},containsExactly:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i))!==-1},doesntContain:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i,"i"))===-1},doesntContainExactly:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i))===-1},minLength:function(n,t){return void 0!==n&&n.length>=t},length:function(n,t){return void 0!==n&&n.length>=t},exactLength:function(n,t){return void 0!==n&&n.length==t},maxLength:function(n,t){return void 0!==n&&n.length<=t},match:function(t,i){var r;return n(this),n('[data-validate="'+i+'"]').length>0?r=n('[data-validate="'+i+'"]').val():n("#"+i).length>0?r=n("#"+i).val():n('[name="'+i+'"]').length>0?r=n('[name="'+i+'"]').val():n('[name="'+i+'[]"]').length>0&&(r=n('[name="'+i+'[]"]')),void 0!==r&&t.toString()==r.toString()},different:function(t,i){var r;return n(this),n('[data-validate="'+i+'"]').length>0?r=n('[data-validate="'+i+'"]').val():n("#"+i).length>0?r=n("#"+i).val():n('[name="'+i+'"]').length>0?r=n('[name="'+i+'"]').val():n('[name="'+i+'[]"]').length>0&&(r=n('[name="'+i+'[]"]')),void 0!==r&&t.toString()!==r.toString()},creditCard:function(t,i){var r,u,f={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]}},e={},s=!1,h="string"==typeof i&&i.split(",");if("string"==typeof t&&0!==t.length){if(t=t.replace(/[\-]/g,""),h&&(n.each(h,function(i,r){(u=f[r])&&(e={length:n.inArray(t.length,u.length)!==-1,pattern:t.search(u.pattern)!==-1},e.length&&e.pattern&&(s=!0))}),!s))return!1;if(r={number:n.inArray(t.length,f.unionPay.length)!==-1,pattern:t.search(f.unionPay.pattern)!==-1},r.number&&r.pattern)return!0;for(var c=t.length,l=0,a=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],o=0;c--;)o+=a[l][parseInt(t.charAt(c),10)],l^=1;return o%10==0&&o>0}},minCount:function(n,t){return 0==t||(1==t?""!==n:n.split(",").length>=t)},exactCount:function(n,t){return 0==t?""===n:1==t?""!==n&&n.search(",")===-1:n.split(",").length==t},maxCount:function(n,t){return 0!=t&&(1==t?n.search(",")===-1:n.split(",").length<=t)}}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.accordion=function(i){var r,e=n(this),f=(new Date).getTime(),u=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,e.each(function(){var k,l,c=n.isPlainObject(i)?n.extend(!0,{},n.fn.accordion.settings,i):n.extend({},n.fn.accordion.settings),a=c.className,nt=c.namespace,v=c.selector,rt=c.error,tt="."+nt,d="module-"+nt,it=e.selector||"",y=n(this),w=y.find(v.title),p=y.find(v.content),g=this,b=y.data(d);l={initialize:function(){l.debug("Initializing",y);l.bind.events();c.observeChanges&&l.observeChanges();l.instantiate()},instantiate:function(){b=l;y.data(d,l)},destroy:function(){l.debug("Destroying previous instance",y);y.off(tt).removeData(d)},refresh:function(){w=y.find(v.title);p=y.find(v.content)},observeChanges:function(){"MutationObserver"in t&&(k=new MutationObserver(function(){l.debug("DOM tree modified, updating selector cache");l.refresh()}),k.observe(g,{childList:!0,subtree:!0}),l.debug("Setting up mutation observer",k))},bind:{events:function(){l.debug("Binding delegated events");y.on(c.on+tt,v.trigger,l.event.click)}},event:{click:function(){l.toggle.call(this)}},toggle:function(t){var i=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),r=i.next(p),u=r.hasClass(a.animating),f=r.hasClass(a.active),e=f&&!u,o=!f&&u;l.debug("Toggling visibility of content",i);e||o?c.collapsible?l.close.call(i):l.debug("Cannot close accordion content collapsing is disabled"):l.open.call(i)},open:function(t){var r=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),i=r.next(p),u=i.hasClass(a.animating);if(i.hasClass(a.active)||u)return void l.debug("Accordion already open, skipping",i);l.debug("Opening accordion content",r);c.onOpening.call(i);c.exclusive&&l.closeOthers.call(r);r.addClass(a.active);i.stop(!0,!0).addClass(a.animating);c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?i.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):i.children().stop(!0,!0).animate({opacity:1},c.duration,l.resetOpacity));i.slideDown(c.duration,c.easing,function(){i.removeClass(a.animating).addClass(a.active);l.reset.display.call(this);c.onOpen.call(this);c.onChange.call(this)})},close:function(t){var u=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),i=u.next(p),f=i.hasClass(a.animating),r=i.hasClass(a.active),e=!r&&f,o=r&&f;(r||e)&&!o&&(l.debug("Closing accordion content",i),c.onClosing.call(i),u.removeClass(a.active),i.stop(!0,!0).addClass(a.animating),c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?i.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):i.children().stop(!0,!0).animate({opacity:0},c.duration,l.resetOpacity)),i.slideUp(c.duration,c.easing,function(){i.removeClass(a.animating).removeClass(a.active);l.reset.display.call(this);c.onClose.call(this);c.onChange.call(this)}))},closeOthers:function(t){var i,o,r,s=void 0!==t?w.eq(t):n(this).closest(v.title),u=s.parents(v.content).prev(v.title),f=s.closest(v.accordion),e=v.title+"."+a.active+":visible",h=v.content+"."+a.active+":visible";c.closeNested?(i=f.find(e).not(u),r=i.next(p)):(i=f.find(e).not(u),o=f.find(h).find(e).not(u),i=i.not(o),r=i.next(p));i.length>0&&(l.debug("Exclusive enabled, closing other content",i),i.removeClass(a.active),r.removeClass(a.animating).stop(!0,!0),c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?r.children().transition({animation:"fade out",useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):r.children().stop(!0,!0).animate({opacity:0},c.duration,l.resetOpacity)),r.slideUp(c.duration,c.easing,function(){n(this).removeClass(a.active);l.reset.display.call(this)}))},reset:{display:function(){l.verbose("Removing inline display from element",this);n(this).css("display","");""===n(this).attr("style")&&n(this).attr("style","").removeAttr("style")},opacity:function(){l.verbose("Removing inline opacity from element",this);n(this).css("opacity","");""===n(this).attr("style")&&n(this).attr("style","").removeAttr("style")}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];n.isPlainObject(c[t])?n.extend(!0,c[t],i):c[t]=i}},internal:function(t,i){if(l.debug("Changing internal",t,i),void 0===i)return l[t];n.isPlainObject(t)?n.extend(!0,l,t):l[t]=i},debug:function(){!c.silent&&c.debug&&(c.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,c.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),l.verbose.apply(console,arguments)))},error:function(){c.silent||(l.error=Function.prototype.bind.call(console.error,console,c.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;c.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=c.name+":",i=0;f=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";it&&(t+=" '"+it+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=b;return i=i||h,u=g||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(rt.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};s?(void 0===b&&l.initialize(),l.invoke(o)):(void 0!==b&&b.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onOpen:function(){},onClosing:function(){},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"}};n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.checkbox=function(r){var u,o=n(this),s=o.selector||"",e=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return o.each(function(){var it,o,a=n.extend(!0,{},n.fn.checkbox.settings,r),w=a.className,ft=a.namespace,b=a.selector,et=a.error,k="."+ft,rt="module-"+ft,y=n(this),d=n(this).children(b.label),v=n(this).children(b.input),p=v[0],nt=!1,tt=!1,g=y.data(rt),ut=this;o={initialize:function(){o.verbose("Initializing checkbox",a);o.create.label();o.bind.events();o.set.tabbable();o.hide.input();o.observeChanges();o.instantiate();o.setup()},instantiate:function(){o.verbose("Storing instance of module",o);g=o;y.data(rt,o)},destroy:function(){o.verbose("Destroying module");o.unbind.events();o.show.input();y.removeData(rt)},fix:{reference:function(){y.is(b.input)&&(o.debug("Behavior called on <input> adjusting invoked element"),y=y.closest(b.checkbox),o.refresh())}},setup:function(){o.set.initialLoad();o.is.indeterminate()?(o.debug("Initial value is indeterminate"),o.indeterminate()):o.is.checked()?(o.debug("Initial value is checked"),o.check()):(o.debug("Initial value is unchecked"),o.uncheck());o.remove.initialLoad()},refresh:function(){d=y.children(b.label);v=y.children(b.input);p=v[0]},hide:{input:function(){o.verbose("Modifying <input> z-index to be unselectable");v.addClass(w.hidden)}},show:{input:function(){o.verbose("Modifying <input> z-index to be selectable");v.removeClass(w.hidden)}},observeChanges:function(){"MutationObserver"in t&&(it=new MutationObserver(function(){o.debug("DOM tree modified, updating selector cache");o.refresh()}),it.observe(ut,{childList:!0,subtree:!0}),o.debug("Setting up mutation observer",it))},attachEvents:function(t,i){var r=n(t);i=n.isFunction(o[i])?o[i]:o.toggle;r.length>0?(o.debug("Attaching checkbox events to element",t,i),r.on("click"+k,i)):o.error(et.notFound)},event:{click:function(t){var i=n(t.target);return i.is(b.input)?void o.verbose("Using default check action on initialized checkbox"):i.is(b.link)?void o.debug("Clicking link inside checkbox, skipping toggle"):(o.toggle(),v.focus(),void t.preventDefault())},keydown:function(n){var t=n.which,i={enter:13,space:32,escape:27};t==i.escape?(o.verbose("Escape key pressed blurring field"),v.blur(),tt=!0):n.ctrlKey||t!=i.space&&t!=i.enter?tt=!1:(o.verbose("Enter/space key pressed, toggling checkbox"),o.toggle(),tt=!0)},keyup:function(n){tt&&n.preventDefault()}},check:function(){o.should.allowCheck()&&(o.debug("Checking checkbox",v),o.set.checked(),o.should.ignoreCallbacks()||(a.onChecked.call(p),a.onChange.call(p)))},uncheck:function(){o.should.allowUncheck()&&(o.debug("Unchecking checkbox"),o.set.unchecked(),o.should.ignoreCallbacks()||(a.onUnchecked.call(p),a.onChange.call(p)))},indeterminate:function(){if(o.should.allowIndeterminate())return void o.debug("Checkbox is already indeterminate");o.debug("Making checkbox indeterminate");o.set.indeterminate();o.should.ignoreCallbacks()||(a.onIndeterminate.call(p),a.onChange.call(p))},determinate:function(){if(o.should.allowDeterminate())return void o.debug("Checkbox is already determinate");o.debug("Making checkbox determinate");o.set.determinate();o.should.ignoreCallbacks()||(a.onDeterminate.call(p),a.onChange.call(p))},enable:function(){if(o.is.enabled())return void o.debug("Checkbox is already enabled");o.debug("Enabling checkbox");o.set.enabled();a.onEnable.call(p);a.onEnabled.call(p)},disable:function(){if(o.is.disabled())return void o.debug("Checkbox is already disabled");o.debug("Disabling checkbox");o.set.disabled();a.onDisable.call(p);a.onDisabled.call(p)},get:{radios:function(){var t=o.get.name();return n('input[name="'+t+'"]').closest(b.checkbox)},otherRadios:function(){return o.get.radios().not(y)},name:function(){return v.attr("name")}},is:{initialLoad:function(){return nt},radio:function(){return v.hasClass(w.radio)||"radio"==v.attr("type")},indeterminate:function(){return void 0!==v.prop("indeterminate")&&v.prop("indeterminate")},checked:function(){return void 0!==v.prop("checked")&&v.prop("checked")},disabled:function(){return void 0!==v.prop("disabled")&&v.prop("disabled")},enabled:function(){return!o.is.disabled()},determinate:function(){return!o.is.indeterminate()},unchecked:function(){return!o.is.checked()}},should:{allowCheck:function(){return o.is.determinate()&&o.is.checked()&&!o.should.forceCallbacks()?(o.debug("Should not allow check, checkbox is already checked"),!1):a.beforeChecked.apply(p)!==!1||(o.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return o.is.determinate()&&o.is.unchecked()&&!o.should.forceCallbacks()?(o.debug("Should not allow uncheck, checkbox is already unchecked"),!1):a.beforeUnchecked.apply(p)!==!1||(o.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return o.is.indeterminate()&&!o.should.forceCallbacks()?(o.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):a.beforeIndeterminate.apply(p)!==!1||(o.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return o.is.determinate()&&!o.should.forceCallbacks()?(o.debug("Should not allow determinate, checkbox is already determinate"),!1):a.beforeDeterminate.apply(p)!==!1||(o.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return o.is.initialLoad()&&a.fireOnInit},ignoreCallbacks:function(){return nt&&!a.fireOnInit}},can:{change:function(){return!(y.hasClass(w.disabled)||y.hasClass(w.readOnly)||v.prop("disabled")||v.prop("readonly"))},uncheck:function(){return"boolean"==typeof a.uncheckable?a.uncheckable:!o.is.radio()}},set:{initialLoad:function(){nt=!0},checked:function(){if(o.verbose("Setting class to checked"),y.removeClass(w.indeterminate).addClass(w.checked),o.is.radio()&&o.uncheckOthers(),!o.is.indeterminate()&&o.is.checked())return void o.debug("Input is already checked, skipping input property change");o.verbose("Setting state to checked",p);v.prop("indeterminate",!1).prop("checked",!0);o.trigger.change()},unchecked:function(){if(o.verbose("Removing checked class"),y.removeClass(w.indeterminate).removeClass(w.checked),!o.is.indeterminate()&&o.is.unchecked())return void o.debug("Input is already unchecked");o.debug("Setting state to unchecked");v.prop("indeterminate",!1).prop("checked",!1);o.trigger.change()},indeterminate:function(){if(o.verbose("Setting class to indeterminate"),y.addClass(w.indeterminate),o.is.indeterminate())return void o.debug("Input is already indeterminate, skipping input property change");o.debug("Setting state to indeterminate");v.prop("indeterminate",!0);o.trigger.change()},determinate:function(){if(o.verbose("Removing indeterminate class"),y.removeClass(w.indeterminate),o.is.determinate())return void o.debug("Input is already determinate, skipping input property change");o.debug("Setting state to determinate");v.prop("indeterminate",!1)},disabled:function(){if(o.verbose("Setting class to disabled"),y.addClass(w.disabled),o.is.disabled())return void o.debug("Input is already disabled, skipping input property change");o.debug("Setting state to disabled");v.prop("disabled","disabled");o.trigger.change()},enabled:function(){if(o.verbose("Removing disabled class"),y.removeClass(w.disabled),o.is.enabled())return void o.debug("Input is already enabled, skipping input property change");o.debug("Setting state to enabled");v.prop("disabled",!1);o.trigger.change()},tabbable:function(){o.verbose("Adding tabindex to checkbox");void 0===v.attr("tabindex")&&v.attr("tabindex",0)}},remove:{initialLoad:function(){nt=!1}},trigger:{change:function(){var n=i.createEvent("HTMLEvents"),t=v[0];t&&(o.verbose("Triggering native change event"),n.initEvent("change",!0,!1),t.dispatchEvent(n))}},create:{label:function(){v.prevAll(b.label).length>0?(v.prev(b.label).detach().insertAfter(v),o.debug("Moving existing label",d)):o.has.label()||(d=n("<label>").insertAfter(v),o.debug("Creating label",d))}},has:{label:function(){return d.length>0}},bind:{events:function(){o.verbose("Attaching checkbox events");y.on("click"+k,o.event.click).on("keydown"+k,b.input,o.event.keydown).on("keyup"+k,b.input,o.event.keyup)}},unbind:{events:function(){o.debug("Removing events");y.off(k)}},uncheckOthers:function(){var n=o.get.otherRadios();o.debug("Unchecking other radios",n);n.removeClass(w.checked)},toggle:function(){if(!o.can.change())return void(o.is.radio()||o.debug("Checkbox is read-only or disabled, ignoring toggle"));o.is.indeterminate()||o.is.unchecked()?(o.debug("Currently unchecked"),o.check()):o.is.checked()&&o.can.uncheck()&&(o.debug("Currently checked"),o.uncheck())},setting:function(t,i){if(o.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];n.isPlainObject(a[t])?n.extend(!0,a[t],i):a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,o,t);else{if(void 0===i)return o[t];o[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,a.name+":"),o.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),o.verbose.apply(console,arguments)))},error:function(){a.silent||(o.error=Function.prototype.bind.call(console.error,console,a.name+":"),o.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:ut,"Execution Time":i}));clearTimeout(o.performance.timer);o.performance.timer=setTimeout(o.performance.display,500)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(o.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var h,e,s,f=g;return i=i||l,r=ut||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(e=f[r],!1):(o.error(et.method,t),!1);f=f[r]}})),n.isFunction(e)?s=e.apply(r,i):void 0!==e&&(s=e),n.isArray(u)?u.push(s):void 0!==u?u=[u,s]:void 0!==s&&(u=s),e}};c?(void 0===g&&o.initialize(),o.invoke(h)):(void 0!==g&&g.invoke("destroy"),o.initialize())}),void 0!==u?u:this};n.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.dimmer=function(t){var r,f=n(this),e=(new Date).getTime(),u=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return f.each(function(){var a,v,c,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.dimmer.settings,t):n.extend({},n.fn.dimmer.settings),w=l.selector,nt=l.namespace,y=l.className,rt=l.error,b="."+nt,g="module-"+nt,tt=f.selector||"",it="ontouchstart"in i.documentElement?"touchstart":"click",p=n(this),k=this,d=p.data(g);c={preinitialize:function(){c.is.dimmer()?(v=p.parent(),a=p):(v=p,a=c.has.dimmer()?l.dimmerName?v.find(w.dimmer).filter("."+l.dimmerName):v.find(w.dimmer):c.create(),c.set.variation())},initialize:function(){c.debug("Initializing dimmer",l);c.bind.events();c.set.dimmable();c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c);d=c;p.data(g,d)},destroy:function(){c.verbose("Destroying previous module",a);c.unbind.events();c.remove.variation();v.off(b)},bind:{events:function(){"hover"==l.on?v.on("mouseenter"+b,c.show).on("mouseleave"+b,c.hide):"click"==l.on&&v.on(it+b,c.toggle);c.is.page()&&(c.debug("Setting as a page dimmer",v),c.set.pageDimmer());c.is.closable()&&(c.verbose("Adding dimmer close event",a),v.on(it+b,w.dimmer,c.event.click))}},unbind:{events:function(){p.removeData(g);v.off(b)}},event:{click:function(t){c.verbose("Determining if event occured on dimmer",t);(0===a.find(t.target).length||n(t.target).is(w.content))&&(c.hide(),t.stopImmediatePropagation())}},addContent:function(t){var i=n(t);c.debug("Add content to dimmer",i);i.parent()[0]!==a[0]&&i.detach().appendTo(a)},create:function(){var t=n(l.template.dimmer());return l.dimmerName&&(c.debug("Creating named dimmer",l.dimmerName),t.addClass(l.dimmerName)),t.appendTo(v),t},show:function(t){t=n.isFunction(t)?t:function(){};c.debug("Showing dimmer",a,l);c.is.dimmed()&&!c.is.animating()||!c.is.enabled()?c.debug("Dimmer is already shown or disabled"):(c.animate.show(t),l.onShow.call(k),l.onChange.call(k))},hide:function(t){t=n.isFunction(t)?t:function(){};c.is.dimmed()||c.is.animating()?(c.debug("Hiding dimmer",a),c.animate.hide(t),l.onHide.call(k),l.onChange.call(k)):c.debug("Dimmer is not visible")},toggle:function(){c.verbose("Toggling dimmer visibility",a);c.is.dimmed()?c.hide():c.show()},animate:{show:function(t){t=n.isFunction(t)?t:function(){};l.useCSS&&void 0!==n.fn.transition&&a.transition("is supported")?("auto"!==l.opacity&&c.set.opacity(),a.transition({animation:l.transition+" in",queue:!1,duration:c.get.duration(),useFailSafe:!0,onStart:function(){c.set.dimmed()},onComplete:function(){c.set.active();t()}})):(c.verbose("Showing dimmer animation with javascript"),c.set.dimmed(),"auto"==l.opacity&&(l.opacity=.8),a.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(c.get.duration(),l.opacity,function(){a.removeAttr("style");c.set.active();t()}))},hide:function(t){t=n.isFunction(t)?t:function(){};l.useCSS&&void 0!==n.fn.transition&&a.transition("is supported")?(c.verbose("Hiding dimmer with css"),a.transition({animation:l.transition+" out",queue:!1,duration:c.get.duration(),useFailSafe:!0,onStart:function(){c.remove.dimmed()},onComplete:function(){c.remove.active();t()}})):(c.verbose("Hiding dimmer with javascript"),c.remove.dimmed(),a.stop().fadeOut(c.get.duration(),function(){c.remove.active();a.removeAttr("style");t()}))}},get:{dimmer:function(){return a},duration:function(){return"object"==typeof l.duration?c.is.active()?l.duration.hide:l.duration.show:l.duration}},has:{dimmer:function(){return l.dimmerName?p.find(w.dimmer).filter("."+l.dimmerName).length>0:p.find(w.dimmer).length>0}},is:{active:function(){return a.hasClass(y.active)},animating:function(){return a.is(":animated")||a.hasClass(y.animating)},closable:function(){return"auto"==l.closable?"hover"!=l.on:l.closable},dimmer:function(){return p.hasClass(y.dimmer)},dimmable:function(){return p.hasClass(y.dimmable)},dimmed:function(){return v.hasClass(y.dimmed)},disabled:function(){return v.hasClass(y.disabled)},enabled:function(){return!c.is.disabled()},page:function(){return v.is("body")},pageDimmer:function(){return a.hasClass(y.pageDimmer)}},can:{show:function(){return!a.hasClass(y.disabled)}},set:{opacity:function(n){var i=a.css("background-color"),t=i.split(","),r=t&&3==t.length,u=t&&4==t.length;n=0===l.opacity?0:l.opacity||n;r||u?(t[3]=n+")",i=t.join(",")):i="rgba(0, 0, 0, "+n+")";c.debug("Setting opacity to",n);a.css("background-color",i)},active:function(){a.addClass(y.active)},dimmable:function(){v.addClass(y.dimmable)},dimmed:function(){v.addClass(y.dimmed)},pageDimmer:function(){a.addClass(y.pageDimmer)},disabled:function(){a.addClass(y.disabled)},variation:function(n){(n=n||l.variation)&&a.addClass(n)}},remove:{active:function(){a.removeClass(y.active)},dimmed:function(){v.removeClass(y.dimmed)},disabled:function(){a.removeClass(y.disabled)},variation:function(n){(n=n||l.variation)&&a.removeClass(n)}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,l.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),c.verbose.apply(console,arguments)))},error:function(){l.silent||(c.error=Function.prototype.bind.call(console.error,console,l.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=l.name+":",i=0;e=!1;clearTimeout(c.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";tt&&(t+=" '"+tt+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=d;return i=i||h,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(c.error(rt.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};c.preinitialize();s?(void 0===d&&c.initialize(),c.invoke(o)):(void 0!==d&&d.invoke("destroy"),c.initialize())}),void 0!==r?r:this};n.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return n("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.dropdown=function(r){var u,f=n(this),e=n(i),l=f.selector||"",s="ontouchstart"in i.documentElement,h=(new Date).getTime(),o=[],c=arguments[0],a="string"==typeof c,v=[].slice.call(arguments,1);return f.each(function(y){var ti,yt,wt,st,bt,ht,pt,p,w=n.isPlainObject(r)?n.extend(!0,{},n.fn.dropdown.settings,r):n.extend({},n.fn.dropdown.settings),b=w.className,lt=w.message,ei=w.fields,ut=w.keys,it=w.metadata,oi=w.namespace,kt=w.regExp,k=w.selector,ct=w.error,ii=w.templates,nt="."+oi,ri="module-"+oi,d=n(this),dt=n(w.context),ot=d.find(k.text),ft=d.find(k.search),gt=d.find(k.sizer),rt=d.find(k.input),si=d.find(k.icon),ni=d.prev().find(k.text).length>0?d.prev().find(k.text):d.prev(),g=d.children(k.menu),tt=g.find(k.item),at=!1,ui=!1,fi=!1,et=this,vt=d.data(ri);p={initialize:function(){p.debug("Initializing dropdown",w);p.is.alreadySetup()?p.setup.reference():(p.setup.layout(),p.refreshData(),p.save.defaults(),p.restore.selected(),p.create.id(),p.bind.events(),p.observeChanges(),p.instantiate())},instantiate:function(){p.verbose("Storing instance of dropdown",p);vt=p;d.data(ri,p)},destroy:function(){p.verbose("Destroying previous dropdown",d);p.remove.tabbable();d.off(nt).removeData(ri);g.off(nt);e.off(st);p.disconnect.menuObserver();p.disconnect.selectObserver()},observeChanges:function(){"MutationObserver"in t&&(ht=new MutationObserver(p.event.select.mutation),pt=new MutationObserver(p.event.menu.mutation),p.debug("Setting up mutation observer",ht,pt),p.observe.select(),p.observe.menu())},disconnect:{menuObserver:function(){pt&&pt.disconnect()},selectObserver:function(){ht&&ht.disconnect()}},observe:{select:function(){p.has.input()&&ht.observe(rt[0],{childList:!0,subtree:!0})},menu:function(){p.has.menu()&&pt.observe(g[0],{childList:!0,subtree:!0})}},create:{id:function(){bt=(Math.random().toString(16)+"000000000").substr(2,8);st="."+bt;p.verbose("Creating unique id for element",bt)},userChoice:function(t){var r,i,u;return!!(t=t||p.get.userValues())&&(t=n.isArray(t)?t:[t],n.each(t,function(t,f){p.get.item(f)===!1&&(u=w.templates.addition(p.add.variables(lt.addResult,f)),i=n("<div />").html(u).attr("data-"+it.value,f).attr("data-"+it.text,f).addClass(b.addition).addClass(b.item),w.hideAdditions&&i.addClass(b.hidden),r=void 0===r?i:r.add(i),p.verbose("Creating user choices for value",f,i))}),r)},userLabels:function(){var t=p.get.userValues();t&&(p.debug("Adding user labels",t),n.each(t,function(n,t){p.verbose("Adding custom user value");p.add.label(t,t)}))},menu:function(){g=n("<div />").addClass(b.menu).appendTo(d)},sizer:function(){gt=n("<span />").addClass(b.sizer).insertAfter(ft)}},search:function(n){n=void 0!==n?n:p.get.query();p.verbose("Searching for query",n);p.has.minCharacters(n)?p.filter(n):p.hide()},select:{firstUnfiltered:function(){p.verbose("Selecting first non-filtered element");p.remove.selectedItem();tt.not(k.unselectable).not(k.addition+k.hidden).eq(0).addClass(b.selected)},nextAvailable:function(n){n=n.eq(0);var t=n.nextAll(k.item).not(k.unselectable).eq(0),i=n.prevAll(k.item).not(k.unselectable).eq(0);t.length>0?(p.verbose("Moving selection to",t),t.addClass(b.selected)):(p.verbose("Moving selection to",i),i.addClass(b.selected))}},setup:{api:function(){var n={debug:w.debug,urlData:{value:p.get.value(),query:p.get.query()},on:!1};p.verbose("First request, initializing API");d.api(n)},layout:function(){d.is("select")&&(p.setup.select(),p.setup.returnedObject());p.has.menu()||p.create.menu();p.is.search()&&!p.has.search()&&(p.verbose("Adding search input"),ft=n("<input />").addClass(b.search).prop("autocomplete","off").insertBefore(ot));p.is.multiple()&&p.is.searchSelection()&&!p.has.sizer()&&p.create.sizer();w.allowTab&&p.set.tabbable()},select:function(){var t=p.get.selectValues();p.debug("Dropdown initialized on a select",t);d.is("select")&&(rt=d);rt.parent(k.dropdown).length>0?(p.debug("UI dropdown already exists. Creating dropdown menu only"),d=rt.closest(k.dropdown),p.has.menu()||p.create.menu(),g=d.children(k.menu),p.setup.menu(t)):(p.debug("Creating entire dropdown from select"),d=n("<div />").attr("class",rt.attr("class")).addClass(b.selection).addClass(b.dropdown).html(ii.dropdown(t)).insertBefore(rt),rt.hasClass(b.multiple)&&rt.prop("multiple")===!1&&(p.error(ct.missingMultiple),rt.prop("multiple",!0)),rt.is("[multiple]")&&p.set.multiple(),rt.prop("disabled")&&(p.debug("Disabling dropdown"),d.addClass(b.disabled)),rt.removeAttr("class").detach().prependTo(d));p.refresh()},menu:function(n){g.html(ii.menu(n,ei));tt=g.find(k.item)},reference:function(){p.debug("Dropdown behavior was called on select, replacing with closest dropdown");d=d.parent(k.dropdown);p.refresh();p.setup.returnedObject();a&&(vt=p,p.invoke(c))},returnedObject:function(){var n=f.slice(0,y),t=f.slice(y+1);f=n.add(d).add(t)}},refresh:function(){p.refreshSelectors();p.refreshData()},refreshItems:function(){tt=g.find(k.item)},refreshSelectors:function(){p.verbose("Refreshing selector cache");ot=d.find(k.text);ft=d.find(k.search);rt=d.find(k.input);si=d.find(k.icon);ni=d.prev().find(k.text).length>0?d.prev().find(k.text):d.prev();g=d.children(k.menu);tt=g.find(k.item)},refreshData:function(){p.verbose("Refreshing cached metadata");tt.removeData(it.text).removeData(it.value)},clearData:function(){p.verbose("Clearing metadata");tt.removeData(it.text).removeData(it.value);d.removeData(it.defaultText).removeData(it.defaultValue).removeData(it.placeholderText)},toggle:function(){p.verbose("Toggling menu visibility");p.is.active()?p.hide():p.show()},show:function(t){if(t=n.isFunction(t)?t:function(){},!p.can.show()&&p.is.remote()&&(p.debug("No API results retrieved, searching before show"),p.queryRemote(p.get.query(),p.show)),p.can.show()&&!p.is.active()){if(p.debug("Showing dropdown"),!p.has.message()||p.has.maxSelections()||p.has.allResultsFiltered()||p.remove.message(),p.is.allFiltered())return!0;w.onShow.call(et)!==!1&&p.animate.show(function(){p.can.click()&&p.bind.intent();p.has.menuSearch()&&p.focusSearch();p.set.visible();t.call(et)})}},hide:function(t){t=n.isFunction(t)?t:function(){};p.is.active()&&(p.debug("Hiding dropdown"),w.onHide.call(et)!==!1&&p.animate.hide(function(){p.remove.visible();t.call(et)}))},hideOthers:function(){p.verbose("Finding other dropdowns to hide");f.not(d).has(k.menu+"."+b.visible).dropdown("hide")},hideMenu:function(){p.verbose("Hiding menu  instantaneously");p.remove.active();p.remove.visible();g.transition("hide")},hideSubMenus:function(){var n=g.children(k.item).find(k.menu);p.verbose("Hiding sub menus",n);n.transition("hide")},bind:{events:function(){s&&p.bind.touchEvents();p.bind.keyboardEvents();p.bind.inputEvents();p.bind.mouseEvents()},touchEvents:function(){p.debug("Touch device detected binding additional touch events");p.is.searchSelection()||p.is.single()&&d.on("touchstart"+nt,p.event.test.toggle);g.on("touchstart"+nt,k.item,p.event.item.mouseenter)},keyboardEvents:function(){p.verbose("Binding keyboard events");d.on("keydown"+nt,p.event.keydown);p.has.search()&&d.on(p.get.inputEvent()+nt,k.search,p.event.input);p.is.multiple()&&e.on("keydown"+st,p.event.document.keydown)},inputEvents:function(){p.verbose("Binding input change events");d.on("change"+nt,k.input,p.event.change)},mouseEvents:function(){p.verbose("Binding mouse events");p.is.multiple()&&d.on("click"+nt,k.label,p.event.label.click).on("click"+nt,k.remove,p.event.remove.click);p.is.searchSelection()?(d.on("mousedown"+nt,p.event.mousedown).on("mouseup"+nt,p.event.mouseup).on("mousedown"+nt,k.menu,p.event.menu.mousedown).on("mouseup"+nt,k.menu,p.event.menu.mouseup).on("click"+nt,k.icon,p.event.icon.click).on("focus"+nt,k.search,p.event.search.focus).on("click"+nt,k.search,p.event.search.focus).on("blur"+nt,k.search,p.event.search.blur).on("click"+nt,k.text,p.event.text.focus),p.is.multiple()&&d.on("click"+nt,p.event.click)):("click"==w.on?d.on("click"+nt,k.icon,p.event.icon.click).on("click"+nt,p.event.test.toggle):"hover"==w.on?d.on("mouseenter"+nt,p.delay.show).on("mouseleave"+nt,p.delay.hide):d.on(w.on+nt,p.toggle),d.on("mousedown"+nt,p.event.mousedown).on("mouseup"+nt,p.event.mouseup).on("focus"+nt,p.event.focus),p.has.menuSearch()?d.on("blur"+nt,k.search,p.event.search.blur):d.on("blur"+nt,p.event.blur));g.on("mouseenter"+nt,k.item,p.event.item.mouseenter).on("mouseleave"+nt,k.item,p.event.item.mouseleave).on("click"+nt,k.item,p.event.item.click)},intent:function(){p.verbose("Binding hide intent event to document");s&&e.on("touchstart"+st,p.event.test.touch).on("touchmove"+st,p.event.test.touch);e.on("click"+st,p.event.test.hide)}},unbind:{intent:function(){p.verbose("Removing hide intent event from document");s&&e.off("touchstart"+st).off("touchmove"+st);e.off("click"+st)}},filter:function(n){var t=void 0!==n?n:p.get.query(),i=function(){p.is.multiple()&&p.filterActive();p.select.firstUnfiltered();p.has.allResultsFiltered()?w.onNoResults.call(et,t)?w.allowAdditions?w.hideAdditions&&(p.verbose("User addition with no menu, setting empty style"),p.set.empty(),p.hideMenu()):(p.verbose("All items filtered, showing message",t),p.add.message(lt.noResults)):(p.verbose("All items filtered, hiding dropdown",t),p.hideMenu()):(p.remove.empty(),p.remove.message());w.allowAdditions&&p.add.userSuggestion(n);p.is.searchSelection()&&p.can.show()&&p.is.focusedOnSearch()&&p.show()};w.useLabels&&p.has.maxSelections()||(w.apiSettings?p.can.useAPI()?p.queryRemote(t,function(){w.filterRemoteData&&p.filterItems(t);i()}):p.error(ct.noAPI):(p.filterItems(t),i()))},queryRemote:function(t,i){var r={errorDuration:!1,cache:"local",throttle:w.throttle,urlData:{query:t},onError:function(){p.add.message(lt.serverError);i()},onFailure:function(){p.add.message(lt.serverError);i()},onSuccess:function(n){p.remove.message();p.setup.menu({values:n[ei.remoteValues]});i()}};d.api("get request")||p.setup.api();r=n.extend(!0,{},r,w.apiSettings);d.api("setting",r).api("query")},filterItems:function(t){var r=void 0!==t?t:p.get.query(),i=null,f=p.escape.string(r),u=new RegExp("^"+f,"igm");p.has.query()&&(i=[],p.verbose("Searching for matching values",r),tt.each(function(){var t,f,e=n(this);return("both"==w.match||"text"==w.match)&&((t=String(p.get.choiceText(e,!1)),t.search(u)!==-1)||"exact"===w.fullTextSearch&&p.exactSearch(r,t)||w.fullTextSearch===!0&&p.fuzzySearch(r,t))?(i.push(this),!0):("both"==w.match||"value"==w.match)&&((f=String(p.get.choiceValue(e,t)),f.search(u)!==-1)||"exact"===w.fullTextSearch&&p.exactSearch(r,f)||w.fullTextSearch===!0&&p.fuzzySearch(r,f))?(i.push(this),!0):void 0}));p.debug("Showing only matched items",r);p.remove.filteredItem();i&&tt.not(i).addClass(b.filtered)},fuzzySearch:function(n,t){var r=t.length,u=n.length,i,f,e;if(n=n.toLowerCase(),t=t.toLowerCase(),u>r)return!1;if(u===r)return n===t;n:for(i=0,f=0;i<u;i++){for(e=n.charCodeAt(i);f<r;)if(t.charCodeAt(f++)===e)continue n;return!1}return!0},exactSearch:function(n,t){return n=n.toLowerCase(),t=t.toLowerCase(),t.indexOf(n)>-1},filterActive:function(){w.useLabels&&tt.filter("."+b.active).addClass(b.filtered)},focusSearch:function(n){p.has.search()&&!p.is.focusedOnSearch()&&(n?(d.off("focus"+nt,k.search),ft.focus(),d.on("focus"+nt,k.search,p.event.search.focus)):ft.focus())},forceSelection:function(){var t=tt.not(b.filtered).filter("."+b.selected).eq(0),i=tt.not(b.filtered).filter("."+b.active).eq(0),n=t.length>0?t:i;if(n.length>0&&!p.is.multiple())return p.debug("Forcing partial selection to selected item",n),void p.event.item.click.call(n,{},!0);w.allowAdditions?(p.set.selected(p.get.query()),p.remove.searchTerm()):p.remove.searchTerm()},event:{change:function(){fi||(p.debug("Input changed, updating selection"),p.set.selected())},focus:function(){w.showOnFocus&&!at&&p.is.hidden()&&!yt&&p.show()},blur:function(){yt=i.activeElement===this;at||yt||(p.remove.activeLabel(),p.hide())},mousedown:function(){p.is.searchSelection()?wt=!0:at=!0},mouseup:function(){p.is.searchSelection()?wt=!1:at=!1},click:function(t){n(t.target).is(d)&&(p.is.focusedOnSearch()?p.show():p.focusSearch())},search:{focus:function(){at=!0;p.is.multiple()&&p.remove.activeLabel();w.showOnFocus&&p.search()},blur:function(){yt=i.activeElement===this;p.is.searchSelection()&&!wt&&(ui||yt||(w.forceSelection&&p.forceSelection(),p.hide()));wt=!1}},icon:{click:function(){p.toggle()}},text:{focus:function(){at=!0;p.focusSearch()}},input:function(){(p.is.multiple()||p.is.searchSelection())&&p.set.filtered();clearTimeout(p.timer);p.timer=setTimeout(p.search,w.delay.search)},label:{click:function(t){var i=n(this),u=d.find(k.label),r=u.filter("."+b.active),f=i.nextAll("."+b.active),e=i.prevAll("."+b.active),o=f.length>0?i.nextUntil(f).add(r).add(i):i.prevUntil(e).add(r).add(i);t.shiftKey?(r.removeClass(b.active),o.addClass(b.active)):t.ctrlKey?i.toggleClass(b.active):(r.removeClass(b.active),i.addClass(b.active));w.onLabelSelect.apply(this,u.filter("."+b.active))}},remove:{click:function(){var t=n(this).parent();t.hasClass(b.active)?p.remove.activeLabels():p.remove.activeLabels(t)}},test:{toggle:function(n){var t=p.is.multiple()?p.show:p.toggle;p.is.bubbledLabelClick(n)||p.is.bubbledIconClick(n)||p.determine.eventOnElement(n,t)&&n.preventDefault()},touch:function(n){p.determine.eventOnElement(n,function(){"touchstart"==n.type?p.timer=setTimeout(function(){p.hide()},w.delay.touch):"touchmove"==n.type&&clearTimeout(p.timer)});n.stopPropagation()},hide:function(n){p.determine.eventInModule(n,p.hide)}},select:{mutation:function(){p.debug("<select> modified, recreating menu");p.setup.select()}},menu:{mutation:function(t){var i=t[0],u=n(i.addedNodes?i.addedNodes[0]:!1),f=n(i.removedNodes?i.removedNodes[0]:!1),r=u.add(f),e=r.is(k.addition)||r.closest(k.addition).length>0,o=r.is(k.message)||r.closest(k.message).length>0;e||o?(p.debug("Updating item selector cache"),p.refreshItems()):(p.debug("Menu modified, updating selector cache"),p.refresh())},mousedown:function(){ui=!0},mouseup:function(){ui=!1}},item:{mouseenter:function(t){var u=n(t.target),r=n(this),i=r.children(k.menu),f=r.siblings(k.item).children(k.menu),e=i.length>0;i.find(u).length>0||!e||(clearTimeout(p.itemTimer),p.itemTimer=setTimeout(function(){p.verbose("Showing sub-menu",i);n.each(f,function(){p.animate.hide(!1,n(this))});p.animate.show(!1,i)},w.delay.show),t.preventDefault())},mouseleave:function(){var t=n(this).children(k.menu);t.length>0&&(clearTimeout(p.itemTimer),p.itemTimer=setTimeout(function(){p.verbose("Hiding sub-menu",t);p.animate.hide(!1,t)},w.delay.hide))},click:function(t,r){var u=n(this),o=n(t?t.target:""),f=u.find(k.menu),e=p.get.choiceText(u),s=p.get.choiceValue(u,e),h=f.length>0,c=f.find(o).length>0;p.has.menuSearch()&&n(i.activeElement).blur();c||h&&!w.allowCategorySelection||(p.is.searchSelection()&&(w.allowAdditions&&p.remove.userAddition(),p.remove.searchTerm(),p.is.focusedOnSearch()||1==r||p.focusSearch(!0)),w.useLabels||(p.remove.filteredItem(),p.set.scrollPosition(u)),p.determine.selectAction.call(this,e,s))}},document:{keydown:function(n){var u=n.which;if(p.is.inObject(u,ut)){var i=d.find(k.label),t=i.filter("."+b.active),o=(t.data(it.value),i.index(t)),a=i.length,r=t.length>0,s=t.length>1,v=0===o,h=o+1==a,e=p.is.searchSelection(),f=p.is.focusedOnSearch(),c=p.is.focused(),l=f&&0===p.get.caretPosition();if(e&&!r&&!f)return;u==ut.leftArrow?!c&&!l||r?r&&(n.shiftKey?p.verbose("Adding previous label to selection"):(p.verbose("Selecting previous label"),i.removeClass(b.active)),v&&!s?t.addClass(b.active):t.prev(k.siblingLabel).addClass(b.active).end(),n.preventDefault()):(p.verbose("Selecting previous label"),i.last().addClass(b.active)):u==ut.rightArrow?(c&&!r&&i.first().addClass(b.active),r&&(n.shiftKey?p.verbose("Adding next label to selection"):(p.verbose("Selecting next label"),i.removeClass(b.active)),h?e?f?i.removeClass(b.active):p.focusSearch():s?t.next(k.siblingLabel).addClass(b.active):t.addClass(b.active):t.next(k.siblingLabel).addClass(b.active),n.preventDefault())):u==ut.deleteKey||u==ut.backspace?r?(p.verbose("Removing active labels"),h&&e&&!f&&p.focusSearch(),t.last().next(k.siblingLabel).addClass(b.active),p.remove.activeLabels(t),n.preventDefault()):l&&!r&&u==ut.backspace&&(p.verbose("Removing last label on input backspace"),t=i.last().addClass(b.active),p.remove.activeLabels(t)):t.removeClass(b.active)}}},keydown:function(n){var t=n.which;if(p.is.inObject(t,ut)){var r,s=tt.not(k.unselectable).filter("."+b.selected).eq(0),a=g.children("."+b.active).eq(0),i=s.length>0?s:a,v=i.length>0?i.siblings(":not(."+b.filtered+")").addBack():g.children(":not(."+b.filtered+")"),e=i.children(k.menu),u=i.closest(k.menu),h=u.hasClass(b.visible)||u.hasClass(b.animating)||u.parent(k.menu).length>0,c=e.length>0,f=i.length>0,l=i.not(k.unselectable).length>0,o=t==ut.delimiter&&w.allowAdditions&&p.is.multiple(),y=w.allowAdditions&&w.hideAdditions&&(t==ut.enter||o)&&l;if(y&&(p.verbose("Selecting item from keyboard shortcut",i),p.event.item.click.call(i,n),p.is.searchSelection()&&p.remove.searchTerm()),p.is.visible()){if((t==ut.enter||o)&&(t==ut.enter&&f&&c&&!w.allowCategorySelection?(p.verbose("Pressed enter on unselectable category, opening sub menu"),t=ut.rightArrow):l&&(p.verbose("Selecting item from keyboard shortcut",i),p.event.item.click.call(i,n),p.is.searchSelection()&&p.remove.searchTerm()),n.preventDefault()),f&&(t==ut.leftArrow&&u[0]!==g[0]&&(p.verbose("Left key pressed, closing sub-menu"),p.animate.hide(!1,u),i.removeClass(b.selected),u.closest(k.item).addClass(b.selected),n.preventDefault()),t==ut.rightArrow&&c&&(p.verbose("Right key pressed, opening sub-menu"),p.animate.show(!1,e),i.removeClass(b.selected),e.find(k.item).eq(0).addClass(b.selected),n.preventDefault())),t==ut.upArrow){if(r=f&&h?i.prevAll(k.item+":not("+k.unselectable+")").eq(0):tt.eq(0),v.index(r)<0)return p.verbose("Up key pressed but reached top of current menu"),void n.preventDefault();p.verbose("Up key pressed, changing active item");i.removeClass(b.selected);r.addClass(b.selected);p.set.scrollPosition(r);w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r);n.preventDefault()}if(t==ut.downArrow){if(r=f&&h?r=i.nextAll(k.item+":not("+k.unselectable+")").eq(0):tt.eq(0),0===r.length)return p.verbose("Down key pressed but reached bottom of current menu"),void n.preventDefault();p.verbose("Down key pressed, changing active item");tt.removeClass(b.selected);r.addClass(b.selected);p.set.scrollPosition(r);w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r);n.preventDefault()}t==ut.pageUp&&(p.scrollPage("up"),n.preventDefault());t==ut.pageDown&&(p.scrollPage("down"),n.preventDefault());t==ut.escape&&(p.verbose("Escape key pressed, closing dropdown"),p.hide())}else o&&n.preventDefault(),t!=ut.downArrow||p.is.visible()||(p.verbose("Down key pressed, showing dropdown"),p.select.firstUnfiltered(),p.show(),n.preventDefault())}else p.has.search()||p.set.selectedLetter(String.fromCharCode(t))}},trigger:{change:function(){var n=i.createEvent("HTMLEvents"),t=rt[0];t&&(p.verbose("Triggering native change event"),n.initEvent("change",!0,!1),t.dispatchEvent(n))}},determine:{selectAction:function(t,i){p.verbose("Determining action",w.action);n.isFunction(p.action[w.action])?(p.verbose("Triggering preset action",w.action,t,i),p.action[w.action].call(et,t,i,this)):n.isFunction(w.action)?(p.verbose("Triggering user action",w.action,t,i),w.action.call(et,t,i,this)):p.error(ct.action,w.action)},eventInModule:function(t,r){var u=n(t.target),f=u.closest(i.documentElement).length>0,e=u.closest(d).length>0;return r=n.isFunction(r)?r:function(){},f&&!e?(p.verbose("Triggering event",r),r(),!0):(p.verbose("Event occurred in dropdown, canceling callback"),!1)},eventOnElement:function(t,r){var u=n(t.target),f=u.closest(k.siblingLabel),e=i.body.contains(t.target),o=0===d.find(f).length,s=0===u.closest(g).length;return r=n.isFunction(r)?r:function(){},e&&o&&s?(p.verbose("Triggering event",r),r(),!0):(p.verbose("Event occurred in dropdown menu, canceling callback"),!1)}},action:{nothing:function(){},activate:function(t,i,r){if(i=void 0!==i?i:t,p.can.activate(n(r))){if(p.set.selected(i,n(r)),p.is.multiple()&&!p.is.allFiltered())return;p.hideAndClear()}},select:function(t,i,r){if(i=void 0!==i?i:t,p.can.activate(n(r))){if(p.set.value(i,n(r)),p.is.multiple()&&!p.is.allFiltered())return;p.hideAndClear()}},combo:function(t,i,r){i=void 0!==i?i:t;p.set.selected(i,n(r));p.hideAndClear()},hide:function(n,t){p.set.value(t,n);p.hideAndClear()}},get:{id:function(){return bt},defaultText:function(){return d.data(it.defaultText)},defaultValue:function(){return d.data(it.defaultValue)},placeholderText:function(){return d.data(it.placeholderText)||""},text:function(){return ot.text()},query:function(){return n.trim(ft.val())},searchWidth:function(n){return n=void 0!==n?n:ft.val(),gt.text(n),Math.ceil(gt.width()+1)},selectionCount:function(){var t=p.get.values();return p.is.multiple()?n.isArray(t)?t.length:0:""!==p.get.value()?1:0},transition:function(n){return"auto"==w.transition?p.is.upward(n)?"slide up":"slide down":w.transition},userValues:function(){var t=p.get.values();return!!t&&(t=n.isArray(t)?t:[t],n.grep(t,function(n){return p.get.item(n)===!1}))},uniqueArray:function(t){return n.grep(t,function(i,r){return n.inArray(i,t)===r})},caretPosition:function(){var n,r,t=ft.get(0);return"selectionStart"in t?t.selectionStart:i.selection?(t.focus(),n=i.selection.createRange(),r=n.text.length,n.moveStart("character",-t.value.length),n.text.length-r):void 0},value:function(){var t=rt.length>0?rt.val():d.data(it.value),i=n.isArray(t)&&1===t.length&&""===t[0];return void 0===t||i?"":t},values:function(){var n=p.get.value();return""===n?"":!p.has.selectInput()&&p.is.multiple()?"string"==typeof n?n.split(w.delimiter):"":n},remoteValues:function(){var t=p.get.values(),i=!1;return t&&("string"==typeof t&&(t=[t]),n.each(t,function(n,t){var r=p.read.remoteData(t);p.verbose("Restoring value from session data",r,t);r&&(i||(i={}),i[t]=r)})),i},choiceText:function(t,i){if(i=void 0!==i?i:w.preserveHTML,t)return t.find(k.menu).length>0&&(p.verbose("Retrieving text of element with sub-menu"),t=t.clone(),t.find(k.menu).remove(),t.find(k.menuIcon).remove()),void 0!==t.data(it.text)?t.data(it.text):i?n.trim(t.html()):n.trim(t.text())},choiceValue:function(t,i){return i=i||p.get.choiceText(t),!!t&&(void 0!==t.data(it.value)?String(t.data(it.value)):"string"==typeof i?n.trim(i.toLowerCase()):String(i))},inputEvent:function(){var n=ft[0];return!!n&&(void 0!==n.oninput?"input":void 0!==n.onpropertychange?"propertychange":"keyup")},selectValues:function(){var t={};return t.values=[],d.find("option").each(function(){var i=n(this),r=i.html(),f=i.attr("disabled"),u=void 0!==i.attr("value")?i.attr("value"):r;"auto"===w.placeholder&&""===u?t.placeholder=r:t.values.push({name:r,value:u,disabled:f})}),w.placeholder&&"auto"!==w.placeholder&&(p.debug("Setting placeholder value to",w.placeholder),t.placeholder=w.placeholder),w.sortSelect?(t.values.sort(function(n,t){return n.name>t.name?1:-1}),p.debug("Retrieved and sorted values from select",t)):p.debug("Retrieved values from select",t),t},activeItem:function(){return tt.filter("."+b.active)},selectedItem:function(){var n=tt.not(k.unselectable).filter("."+b.selected);return n.length>0?n:tt.eq(0)},itemWithAdditions:function(n){var t=p.get.item(n),i=p.create.userChoice(n);return i&&i.length>0&&(t=t.length>0?t.add(i):i),t},item:function(t,i){var f,u,r=!1;return t=void 0!==t?t:void 0!==p.get.values()?p.get.values():p.get.text(),f=u?t.length>0:void 0!==t&&null!==t,u=p.is.multiple()&&n.isArray(t),i=""===t||0===t||i||!1,f&&tt.each(function(){var f=n(this),o=p.get.choiceText(f),e=p.get.choiceValue(f,o);if(null!==e&&void 0!==e)if(u)n.inArray(String(e),t)===-1&&n.inArray(o,t)===-1||(r=r?r.add(f):f);else if(i){if(p.verbose("Ambiguous dropdown value using strict type check",f,t),e===t||o===t)return r=f,!0}else if(String(e)==String(t)||o==t)return p.verbose("Found select item by value",e,t),r=f,!0}),r}},check:{maxSelections:function(n){return!w.maxSelections||(n=void 0!==n?n:p.get.selectionCount(),n>=w.maxSelections?(p.debug("Maximum selection count reached"),w.useLabels&&(tt.addClass(b.filtered),p.add.message(lt.maxSelections)),!0):(p.verbose("No longer at maximum selection count"),p.remove.message(),p.remove.filteredItem(),p.is.searchSelection()&&p.filterItems(),!1))}},restore:{defaults:function(){p.clear();p.restore.defaultText();p.restore.defaultValue()},defaultText:function(){var n=p.get.defaultText();n===p.get.placeholderText?(p.debug("Restoring default placeholder text",n),p.set.placeholderText(n)):(p.debug("Restoring default text",n),p.set.text(n))},placeholderText:function(){p.set.placeholderText()},defaultValue:function(){var n=p.get.defaultValue();void 0!==n&&(p.debug("Restoring default value",n),""!==n?(p.set.value(n),p.set.selected()):(p.remove.activeItem(),p.remove.selectedItem()))},labels:function(){w.allowAdditions&&(w.useLabels||(p.error(ct.labels),w.useLabels=!0),p.debug("Restoring selected values"),p.create.userLabels());p.check.maxSelections()},selected:function(){p.restore.values();p.is.multiple()?(p.debug("Restoring previously selected values and labels"),p.restore.labels()):p.debug("Restoring previously selected values")},values:function(){p.set.initialLoad();w.apiSettings&&w.saveRemoteData&&p.get.remoteValues()?p.restore.remoteValues():p.set.selected();p.remove.initialLoad()},remoteValues:function(){var t=p.get.remoteValues();p.debug("Recreating selected from session data",t);t&&(p.is.single()?n.each(t,function(n,t){p.set.text(t)}):n.each(t,function(n,t){p.add.label(n,t)}))}},read:{remoteData:function(n){var i;return void 0===t.Storage?void p.error(ct.noStorage):void 0!==(i=sessionStorage.getItem(n))&&i}},save:{defaults:function(){p.save.defaultText();p.save.placeholderText();p.save.defaultValue()},defaultValue:function(){var n=p.get.value();p.verbose("Saving default value as",n);d.data(it.defaultValue,n)},defaultText:function(){var n=p.get.text();p.verbose("Saving default text as",n);d.data(it.defaultText,n)},placeholderText:function(){var n;w.placeholder!==!1&&ot.hasClass(b.placeholder)&&(n=p.get.text(),p.verbose("Saving placeholder text as",n),d.data(it.placeholderText,n))},remoteData:function(n,i){if(void 0===t.Storage)return void p.error(ct.noStorage);p.verbose("Saving remote data to session storage",i,n);sessionStorage.setItem(i,n)}},clear:function(){p.is.multiple()&&w.useLabels?p.remove.labels():(p.remove.activeItem(),p.remove.selectedItem());p.set.placeholderText();p.clearValue()},clearValue:function(){p.set.value("")},scrollPage:function(n,t){var h,r,u,f=t||p.get.selectedItem(),e=f.closest(k.menu),l=e.outerHeight(),c=e.scrollTop(),s=tt.eq(0).outerHeight(),o=Math.floor(l/s),a=(e.prop("scrollHeight"),"up"==n?c-s*o:c+s*o),i=tt.not(k.unselectable);u="up"==n?i.index(f)-o:i.index(f)+o;h="up"==n?u>=0:u<i.length;r=h?i.eq(u):"up"==n?i.first():i.last();r.length>0&&(p.debug("Scrolling page",n,r),f.removeClass(b.selected),r.addClass(b.selected),w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r),e.scrollTop(a))},set:{filtered:function(){var n=p.is.multiple(),i=p.is.searchSelection(),r=n&&i,t=i?p.get.query():"",u="string"==typeof t&&t.length>0,f=p.get.searchWidth(),e=""!==t;n&&u&&(p.verbose("Adjusting input width",f,w.glyphWidth),ft.css("width",f));u||r&&e?(p.verbose("Hiding placeholder text"),ot.addClass(b.filtered)):(!n||r&&!e)&&(p.verbose("Showing placeholder text"),ot.removeClass(b.filtered))},empty:function(){d.addClass(b.empty)},loading:function(){d.addClass(b.loading)},placeholderText:function(n){n=n||p.get.placeholderText();p.debug("Setting placeholder text",n);p.set.text(n);ot.addClass(b.placeholder)},tabbable:function(){p.is.searchSelection()?(p.debug("Added tabindex to searchable dropdown"),ft.val("").attr("tabindex",0),g.attr("tabindex",-1)):(p.debug("Added tabindex to dropdown"),void 0===d.attr("tabindex")&&(d.attr("tabindex",0),g.attr("tabindex",-1)))},initialLoad:function(){p.verbose("Setting initial load");ti=!0},activeItem:function(n){w.allowAdditions&&n.filter(k.addition).length>0?n.addClass(b.filtered):n.addClass(b.active)},partialSearch:function(n){var t=p.get.query().length;ft.val(n.substr(0,t))},scrollPosition:function(n,t){var i,e,r,f,o,u,s,h,c;n=n||p.get.selectedItem();i=n.closest(k.menu);e=n&&n.length>0;t=void 0!==t&&t;n&&i.length>0&&e&&(f=n.position().top,i.addClass(b.loading),u=i.scrollTop(),o=i.offset().top,f=n.offset().top,r=u-o+f,t||(s=i.height(),c=u+s<r+5,h=r-5<u),p.debug("Scrolling to active item",r),(t||h||c)&&i.scrollTop(r),i.removeClass(b.loading))},text:function(n){"select"!==w.action&&("combo"==w.action?(p.debug("Changing combo button text",n,ni),w.preserveHTML?ni.html(n):ni.text(n)):(n!==p.get.placeholderText()&&ot.removeClass(b.placeholder),p.debug("Changing text",n,ot),ot.removeClass(b.filtered),w.preserveHTML?ot.html(n):ot.text(n)))},selectedItem:function(n){var t=p.get.choiceValue(n),i=p.get.choiceText(n,!1),r=p.get.choiceText(n,!0);p.debug("Setting user selection to item",n);p.remove.activeItem();p.set.partialSearch(i);p.set.activeItem(n);p.set.selected(t,n);p.set.text(r)},selectedLetter:function(t){var u,r=tt.filter("."+b.selected),f=r.length>0&&p.has.firstLetter(r,t),i=!1;f&&(u=r.nextAll(tt).eq(0),p.has.firstLetter(u,t)&&(i=u));i||tt.each(function(){if(p.has.firstLetter(n(this),t))return i=n(this),!1});i&&(p.verbose("Scrolling to next value with letter",t),p.set.scrollPosition(i),r.removeClass(b.selected),i.addClass(b.selected),w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(i))},direction:function(n){"auto"==w.direction?p.is.onScreen(n)?p.remove.upward(n):p.set.upward(n):"upward"==w.direction&&p.set.upward(n)},upward:function(n){(n||d).addClass(b.upward)},value:function(n,t,i){var r=p.escape.value(n),e=rt.length>0,u=(p.has.value(n),p.get.values()),f=void 0!==n?String(n):n;if(e){if(!w.allowReselection&&f==u&&(p.verbose("Skipping value update already same value",n,u),!p.is.initialLoad()))return;p.is.single()&&p.has.selectInput()&&p.can.extendSelect()&&(p.debug("Adding user option",n),p.add.optionValue(n));p.debug("Updating input value",r,u);fi=!0;rt.val(r);w.fireOnInit===!1&&p.is.initialLoad()?p.debug("Input native change event ignored on initial load"):p.trigger.change();fi=!1}else p.verbose("Storing value in metadata",r,rt),r!==u&&d.data(it.value,f);w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("No callback on initial load",w.onChange):w.onChange.call(et,n,t,i)},active:function(){d.addClass(b.active)},multiple:function(){d.addClass(b.multiple)},visible:function(){d.addClass(b.visible)},exactly:function(n,t){p.debug("Setting selected to exact values");p.clear();p.set.selected(n,t)},selected:function(t,i){var r=p.is.multiple();(i=w.allowAdditions?i||p.get.itemWithAdditions(t):i||p.get.item(t))&&(p.debug("Setting selected menu item to",i),p.is.multiple()&&p.remove.searchWidth(),p.is.single()?(p.remove.activeItem(),p.remove.selectedItem()):w.useLabels&&p.remove.selectedItem(),i.each(function(){var t=n(this),u=p.get.choiceText(t),f=p.get.choiceValue(t,u),e=t.hasClass(b.filtered),o=t.hasClass(b.active),s=t.hasClass(b.addition),h=r&&1==i.length;r?!o||s?(w.apiSettings&&w.saveRemoteData&&p.save.remoteData(u,f),w.useLabels?(p.add.value(f,u,t),p.add.label(f,u,h),p.set.activeItem(t),p.filterActive(),p.select.nextAvailable(i)):(p.add.value(f,u,t),p.set.text(p.add.variables(lt.count)),p.set.activeItem(t))):e||(p.debug("Selected active value, removing label"),p.remove.selected(f)):(w.apiSettings&&w.saveRemoteData&&p.save.remoteData(u,f),p.set.text(u),p.set.value(f,u,t),t.addClass(b.active).addClass(b.selected))}))}},add:{label:function(t,i,r){var u,e=p.is.searchSelection()?ft:ot,f=p.escape.value(t);if(u=n("<a />").addClass(b.label).attr("data-"+it.value,f).html(ii.label(f,i)),u=w.onLabelCreate.call(u,f,i),p.has.label(t))return void p.debug("Label already exists, skipping",f);w.label.variation&&u.addClass(w.label.variation);r===!0?(p.debug("Animating in label",u),u.addClass(b.hidden).insertBefore(e).transition(w.label.transition,w.label.duration)):(p.debug("Adding selection label",u),u.insertBefore(e))},message:function(t){var i=g.children(k.message),r=w.templates.message(p.add.variables(t));i.length>0?i.html(r):i=n("<div/>").html(r).addClass(b.message).appendTo(g)},optionValue:function(t){var i=p.escape.value(t);rt.find('option[value="'+p.escape.string(i)+'"]').length>0||(p.disconnect.selectObserver(),p.is.single()&&(p.verbose("Removing previous user addition"),rt.find("option."+b.addition).remove()),n("<option/>").prop("value",i).addClass(b.addition).html(t).appendTo(rt),p.verbose("Adding user addition as an <option>",t),p.observe.select())},userSuggestion:function(n){var i,t=g.children(k.addition),r=p.get.item(n),u=r&&r.not(k.addition).length,f=t.length>0;if(!w.useLabels||!p.has.maxSelections()){if(""===n||u)return void t.remove();f?(t.data(it.value,n).data(it.text,n).attr("data-"+it.value,n).attr("data-"+it.text,n).removeClass(b.filtered),w.hideAdditions||(i=w.templates.addition(p.add.variables(lt.addResult,n)),t.html(i)),p.verbose("Replacing user suggestion with new value",t)):(t=p.create.userChoice(n),t.prependTo(g),p.verbose("Adding item choice to menu corresponding with user choice addition",t));w.hideAdditions&&!p.is.allFiltered()||t.addClass(b.selected).siblings().removeClass(b.selected);p.refreshItems()}},variables:function(n,t){var i,r,u=n.search("{count}")!==-1,f=n.search("{maxCount}")!==-1,e=n.search("{term}")!==-1;return p.verbose("Adding templated variables to message",n),u&&(i=p.get.selectionCount(),n=n.replace("{count}",i)),f&&(i=p.get.selectionCount(),n=n.replace("{maxCount}",w.maxSelections)),e&&(r=t||p.get.query(),n=n.replace("{term}",r)),n},value:function(t,i,r){var u,f=p.get.values();if(""===t)return void p.debug("Cannot select blank values from multiselect");n.isArray(f)?(u=f.concat([t]),u=p.get.uniqueArray(u)):u=[t];p.has.selectInput()?p.can.extendSelect()&&(p.debug("Adding value to select",t,u,rt),p.add.optionValue(t)):(u=u.join(w.delimiter),p.debug("Setting hidden input to delimited value",u,rt));w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("Skipping onadd callback on initial load",w.onAdd):w.onAdd.call(et,t,i,r);p.set.value(u,t,i,r);p.check.maxSelections()}},remove:{active:function(){d.removeClass(b.active)},activeLabel:function(){d.find(k.label).removeClass(b.active)},empty:function(){d.removeClass(b.empty)},loading:function(){d.removeClass(b.loading)},initialLoad:function(){ti=!1},upward:function(n){(n||d).removeClass(b.upward)},visible:function(){d.removeClass(b.visible)},activeItem:function(){tt.removeClass(b.active)},filteredItem:function(){w.useLabels&&p.has.maxSelections()||(w.useLabels&&p.is.multiple()?tt.not("."+b.active).removeClass(b.filtered):tt.removeClass(b.filtered),p.remove.empty())},optionValue:function(n){var i=p.escape.value(n),t=rt.find('option[value="'+p.escape.string(i)+'"]');t.length>0&&t.hasClass(b.addition)&&(ht&&(ht.disconnect(),p.verbose("Temporarily disconnecting mutation observer")),t.remove(),p.verbose("Removing user addition as an <option>",i),ht&&ht.observe(rt[0],{childList:!0,subtree:!0}))},message:function(){g.children(k.message).remove()},searchWidth:function(){ft.css("width","")},searchTerm:function(){p.verbose("Cleared search term");ft.val("");p.set.filtered()},userAddition:function(){tt.filter(k.addition).remove()},selected:function(t,i){if(!(i=w.allowAdditions?i||p.get.itemWithAdditions(t):i||p.get.item(t)))return!1;i.each(function(){var t=n(this),i=p.get.choiceText(t),r=p.get.choiceValue(t,i);p.is.multiple()?w.useLabels?(p.remove.value(r,i,t),p.remove.label(r)):(p.remove.value(r,i,t),0===p.get.selectionCount()?p.set.placeholderText():p.set.text(p.add.variables(lt.count))):p.remove.value(r,i,t);t.removeClass(b.filtered).removeClass(b.active);w.useLabels&&t.removeClass(b.selected)})},selectedItem:function(){tt.removeClass(b.selected)},value:function(n,t,i){var r,u=p.get.values();p.has.selectInput()?(p.verbose("Input is <select> removing selected option",n),r=p.remove.arrayValue(n,u),p.remove.optionValue(n)):(p.verbose("Removing from delimited values",n),r=p.remove.arrayValue(n,u),r=r.join(w.delimiter));w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("No callback on initial load",w.onRemove):w.onRemove.call(et,n,t,i);p.set.value(r,t,i);p.check.maxSelections()},arrayValue:function(t,i){return n.isArray(i)||(i=[i]),i=n.grep(i,function(n){return t!=n}),p.verbose("Removed value from delimited string",t,i),i},label:function(n){var i=d.find(k.label),t=i.filter("[data-"+it.value+'="'+p.escape.string(n)+'"]');p.verbose("Removing label",t);t.remove()},activeLabels:function(n){n=n||d.find(k.label).filter("."+b.active);p.verbose("Removing active label selections",n);p.remove.labels(n)},labels:function(t){t=t||d.find(k.label);p.verbose("Removing labels",t);t.each(function(){var r=n(this),t=r.data(it.value),i=void 0!==t?String(t):t,u=p.is.userValue(i);if(w.onLabelRemove.call(r,t)===!1)return void p.debug("Label remove callback cancelled removal");p.remove.message();u?(p.remove.value(i),p.remove.label(i)):p.remove.selected(i)})},tabbable:function(){p.is.searchSelection()?(p.debug("Searchable dropdown initialized"),ft.removeAttr("tabindex"),g.removeAttr("tabindex")):(p.debug("Simple selection dropdown initialized"),d.removeAttr("tabindex"),g.removeAttr("tabindex"))}},has:{menuSearch:function(){return p.has.search()&&ft.closest(g).length>0},search:function(){return ft.length>0},sizer:function(){return gt.length>0},selectInput:function(){return rt.is("select")},minCharacters:function(n){return!w.minCharacters||(n=void 0!==n?String(n):String(p.get.query()),n.length>=w.minCharacters)},firstLetter:function(n,t){var i,r;return!(!n||0===n.length||"string"!=typeof t)&&(i=p.get.choiceText(n,!1),t=t.toLowerCase(),r=String(i).charAt(0).toLowerCase(),t==r)},input:function(){return rt.length>0},items:function(){return tt.length>0},menu:function(){return g.length>0},message:function(){return 0!==g.children(k.message).length},label:function(n){var t=p.escape.value(n);return d.find(k.label).filter("[data-"+it.value+'="'+p.escape.string(t)+'"]').length>0},maxSelections:function(){return w.maxSelections&&p.get.selectionCount()>=w.maxSelections},allResultsFiltered:function(){var n=tt.not(k.addition);return n.filter(k.unselectable).length===n.length},userSuggestion:function(){return g.children(k.addition).length>0},query:function(){return""!==p.get.query()},value:function(t){var i=p.get.values();return!!(n.isArray(i)?i&&n.inArray(t,i)!==-1:i==t)}},is:{active:function(){return d.hasClass(b.active)},bubbledLabelClick:function(t){return n(t.target).is("select, input")&&d.closest("label").length>0},bubbledIconClick:function(t){return n(t.target).closest(si).length>0},alreadySetup:function(){return d.is("select")&&d.parent(k.dropdown).length>0&&0===d.prev().length},animating:function(n){return n?n.transition&&n.transition("is animating"):g.transition&&g.transition("is animating")},disabled:function(){return d.hasClass(b.disabled)},focused:function(){return i.activeElement===d[0]},focusedOnSearch:function(){return i.activeElement===ft[0]},allFiltered:function(){return(p.is.multiple()||p.has.search())&&!(0==w.hideAdditions&&p.has.userSuggestion())&&!p.has.message()&&p.has.allResultsFiltered()},hidden:function(n){return!p.is.visible(n)},initialLoad:function(){return ti},onScreen:function(n){var t,r=n||g,u=!0,i={};return r.addClass(b.loading),t={context:{scrollTop:dt.scrollTop(),height:dt.outerHeight()},menu:{offset:r.offset(),height:r.outerHeight()}},p.is.verticallyScrollableContext()&&(t.menu.offset.top+=t.context.scrollTop),i={above:t.context.scrollTop<=t.menu.offset.top-t.menu.height,below:t.context.scrollTop+t.context.height>=t.menu.offset.top+t.menu.height},i.below?(p.verbose("Dropdown can fit in context downward",i),u=!0):i.below||i.above?(p.verbose("Dropdown cannot fit below, opening upward",i),u=!1):(p.verbose("Dropdown cannot fit in either direction, favoring downward",i),u=!0),r.removeClass(b.loading),u},inObject:function(t,i){var r=!1;return n.each(i,function(n,i){if(i==t)return r=!0,!0}),r},multiple:function(){return d.hasClass(b.multiple)},remote:function(){return w.apiSettings&&p.can.useAPI()},single:function(){return!p.is.multiple()},selectMutation:function(t){var i=!1;return n.each(t,function(t,r){if(r.target&&n(r.target).is("select"))return i=!0,!0}),i},search:function(){return d.hasClass(b.search)},searchSelection:function(){return p.has.search()&&1===ft.parent(k.dropdown).length},selection:function(){return d.hasClass(b.selection)},userValue:function(t){return n.inArray(t,p.get.userValues())!==-1},upward:function(n){return(n||d).hasClass(b.upward)},visible:function(n){return n?n.hasClass(b.visible):g.hasClass(b.visible)},verticallyScrollableContext:function(){var n=dt.get(0)!==t&&dt.css("overflow-y");return"auto"==n||"scroll"==n}},can:{activate:function(n){return!!w.useLabels||!p.has.maxSelections()||!(!p.has.maxSelections()||!n.hasClass(b.active))},click:function(){return s||"click"==w.on},extendSelect:function(){return w.allowAdditions||w.apiSettings},show:function(){return!p.is.disabled()&&(p.has.items()||p.has.message())},useAPI:function(){return void 0!==n.fn.api}},animate:{show:function(t,i){var u,r=i||g,f=i?function(){}:function(){p.hideSubMenus();p.hideOthers();p.set.active()};t=n.isFunction(t)?t:function(){};p.verbose("Doing menu show animation",r);p.set.direction(i);u=p.get.transition(i);p.is.selection()&&p.set.scrollPosition(p.get.selectedItem(),!0);(p.is.hidden(r)||p.is.animating(r))&&("none"==u?(f(),r.transition("show"),t.call(et)):void 0!==n.fn.transition&&d.transition("is supported")?r.transition({animation:u+" in",debug:w.debug,verbose:w.verbose,duration:w.duration,queue:!0,onStart:f,onComplete:function(){t.call(et)}}):p.error(ct.noTransition,u))},hide:function(t,i){var r=i||g,u=(i?w.duration:w.duration,i?function(){}:function(){p.can.click()&&p.unbind.intent();p.remove.active()}),f=p.get.transition(i);t=n.isFunction(t)?t:function(){};(p.is.visible(r)||p.is.animating(r))&&(p.verbose("Doing menu hide animation",r),"none"==f?(u(),r.transition("hide"),t.call(et)):void 0!==n.fn.transition&&d.transition("is supported")?r.transition({animation:f+" out",duration:w.duration,debug:w.debug,verbose:w.verbose,queue:!0,onStart:u,onComplete:function(){"auto"==w.direction&&p.remove.upward(i);t.call(et)}}):p.error(ct.transition))}},hideAndClear:function(){p.remove.searchTerm();p.has.maxSelections()||(p.has.search()?p.hide(function(){p.remove.filteredItem()}):p.hide())},delay:{show:function(){p.verbose("Delaying show event to ensure user intent");clearTimeout(p.timer);p.timer=setTimeout(p.show,w.delay.show)},hide:function(){p.verbose("Delaying hide event to ensure user intent");clearTimeout(p.timer);p.timer=setTimeout(p.hide,w.delay.hide)}},escape:{value:function(t){var i=n.isArray(t),r="string"==typeof t,f=!r&&!i,e=r&&t.search(kt.quote)!==-1,u=[];return f||!e?t:(p.debug("Encoding quote values for use in select",t),i?(n.each(t,function(n,t){u.push(t.replace(kt.quote,"&quot;"))}),u):t.replace(kt.quote,"&quot;"))},string:function(n){return n=String(n),n.replace(kt.escape,"\\$&")}},setting:function(t,i){if(p.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,w,t);else{if(void 0===i)return w[t];n.isPlainObject(w[t])?n.extend(!0,w[t],i):w[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,p,t);else{if(void 0===i)return p[t];p[t]=i}},debug:function(){!w.silent&&w.debug&&(w.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,w.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!w.silent&&w.verbose&&w.debug&&(w.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,w.name+":"),p.verbose.apply(console,arguments)))},error:function(){w.silent||(p.error=Function.prototype.bind.call(console.error,console,w.name+":"),p.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;w.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,o.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:et,"Execution Time":i}));clearTimeout(p.performance.timer);p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var t=w.name+":",i=0;h=!1;clearTimeout(p.performance.timer);n.each(o,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&o.length>0&&(console.groupCollapsed(t),console.table?console.table(o):n.each(o,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());o=[]}},invoke:function(t,i,r){var s,e,o,f=vt;return i=i||v,r=et||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(p.error(ct.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};a?(void 0===vt&&p.initialize(),p.invoke(c)):(void 0!==vt&&vt.invoke("destroy"),p.initialize())}),void 0!==u?u:f};n.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",apiSettings:!1,selectOnKeydown:!0,minCharacters:0,filterRemoteData:!1,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(){},onAdd:function(){},onRemove:function(){},onLabelSelect:function(){},onLabelCreate:function(){return n(this)},onLabelRemove:function(){return!0},onNoResults:function(){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"}};n.fn.dropdown.settings.templates={dropdown:function(t){var r=t.placeholder||!1,i=(t.values,"");return i+='<i class="dropdown icon"><\/i>',i+=t.placeholder?'<div class="default text">'+r+"<\/div>":'<div class="text"><\/div>',i+='<div class="menu">',n.each(t.values,function(n,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,i){var u=t[i.values]||{},r="";return n.each(u,function(n,t){var u=t[i.text]?'data-text="'+t[i.text]+'"':"",f=t[i.disabled]?"disabled ":"";r+='<div class="'+f+'item" data-value="'+t[i.value]+'"'+u+">";r+=t[i.name];r+="<\/div>"}),r},label:function(n,t){return t+'<i class="delete icon"><\/i>'},message:function(n){return n},addition:function(n){return n}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.embed=function(i){var r,f=n(this),o=f.selector||"",e=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return f.each(function(){var l,a=n.isPlainObject(i)?n.extend(!0,{},n.fn.embed.settings,i):n.extend({},n.fn.embed.settings),w=a.selector,g=a.className,p=a.sources,it=a.error,y=a.metadata,rt=a.namespace,ut=a.templates,nt="."+rt,tt="module-"+rt,v=(n(t),n(this)),ft=v.find(w.placeholder),et=v.find(w.icon),b=v.find(w.embed),k=this,d=v.data(tt);l={initialize:function(){l.debug("Initializing embed");l.determine.autoplay();l.create();l.bind.events();l.instantiate()},instantiate:function(){l.verbose("Storing instance of module",l);d=l;v.data(tt,l)},destroy:function(){l.verbose("Destroying previous instance of embed");l.reset();v.removeData(tt).off(nt)},refresh:function(){l.verbose("Refreshing selector cache");ft=v.find(w.placeholder);et=v.find(w.icon);b=v.find(w.embed)},bind:{events:function(){l.has.placeholder()&&(l.debug("Adding placeholder events"),v.on("click"+nt,w.placeholder,l.createAndShow).on("click"+nt,w.icon,l.createAndShow))}},create:function(){l.get.placeholder()?l.createPlaceholder():l.createAndShow()},createPlaceholder:function(n){var t=l.get.icon(),i=l.get.url();l.generate.embed(i);n=n||l.get.placeholder();v.html(ut.placeholder(n,t));l.debug("Creating placeholder for embed",n,t)},createEmbed:function(t){l.refresh();t=t||l.get.url();b=n("<div/>").addClass(g.embed).html(l.generate.embed(t)).appendTo(v);a.onCreate.call(k,t);l.debug("Creating embed object",b)},changeEmbed:function(n){b.html(l.generate.embed(n))},createAndShow:function(){l.createEmbed();l.show()},change:function(n,t,i){l.debug("Changing video to ",n,t,i);v.data(y.source,n).data(y.id,t);i?v.data(y.url,i):v.removeData(y.url);l.has.embed()?l.changeEmbed():l.create()},reset:function(){l.debug("Clearing embed and showing placeholder");l.remove.active();l.remove.embed();l.showPlaceholder();a.onReset.call(k)},show:function(){l.debug("Showing embed");l.set.active();a.onDisplay.call(k)},hide:function(){l.debug("Hiding embed");l.showPlaceholder()},showPlaceholder:function(){l.debug("Showing placeholder image");l.remove.active();a.onPlaceholderDisplay.call(k)},get:{id:function(){return a.id||v.data(y.id)},placeholder:function(){return a.placeholder||v.data(y.placeholder)},icon:function(){return a.icon?a.icon:void 0!==v.data(y.icon)?v.data(y.icon):l.determine.icon()},source:function(){return a.source?a.source:void 0!==v.data(y.source)?v.data(y.source):l.determine.source()},type:function(){var n=l.get.source();return void 0!==p[n]&&p[n].type},url:function(){return a.url?a.url:void 0!==v.data(y.url)?v.data(y.url):l.determine.url()}},determine:{autoplay:function(){l.should.autoplay()&&(a.autoplay=!0)},source:function(t){var i=!1;return t=t||l.get.url(),t&&n.each(p,function(n,r){if(t.search(r.domain)!==-1)return i=n,!1}),i},icon:function(){var n=l.get.source();return void 0!==p[n]&&p[n].icon},url:function(){var n,i=a.id||v.data(y.id),t=a.source||v.data(y.source);return n=void 0!==p[t]&&p[t].url.replace("{id}",i),n&&v.data(y.url,n),n}},set:{active:function(){v.addClass(g.active)}},remove:{active:function(){v.removeClass(g.active)},embed:function(){b.empty()}},encode:{parameters:function(n){var t,i=[];for(t in n)i.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return i.join("&amp;")}},generate:{embed:function(n){l.debug("Generating embed html");var t,i,r=l.get.source();return n=l.get.url(n),n?(i=l.generate.parameters(r),t=ut.iframe(n,i)):l.error(it.noURL,v),t},parameters:function(t,i){var r=p[t]&&void 0!==p[t].parameters?p[t].parameters(a):{};return i=i||a.parameters,i&&(r=n.extend({},r,i)),r=a.onEmbed(r),l.encode.parameters(r)}},has:{embed:function(){return b.length>0},placeholder:function(){return a.placeholder||v.data(y.placeholder)}},should:{autoplay:function(){return"auto"===a.autoplay?a.placeholder||void 0!==v.data(y.placeholder):a.autoplay}},is:{video:function(){return"video"==l.get.type()}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];n.isPlainObject(a[t])?n.extend(!0,a[t],i):a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];l[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,a.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),l.verbose.apply(console,arguments)))},error:function(){a.silent||(l.error=Function.prototype.bind.call(console.error,console,a.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=d;return i=i||c,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(it.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};h?(void 0===d&&l.initialize(),l.invoke(s)):(void 0!==d&&d.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.embed.settings={name:"Embed",namespace:"embed",silent:!1,debug:!1,verbose:!1,performance:!0,icon:!1,source:!1,url:!1,id:!1,autoplay:"auto",color:"#444444",hd:!0,brandedUI:!1,parameters:!1,onDisplay:function(){},onPlaceholderDisplay:function(){},onReset:function(){},onCreate:function(){},onEmbed:function(n){return n},metadata:{id:"id",icon:"icon",placeholder:"placeholder",source:"source",url:"url"},error:{noURL:"No URL specified",method:"The method you called is not defined"},className:{active:"active",embed:"embed"},selector:{embed:".embed",placeholder:".placeholder",icon:".icon"},sources:{youtube:{name:"youtube",type:"video",icon:"video play",domain:"youtube.com",url:"//www.youtube.com/embed/{id}",parameters:function(n){return{autohide:!n.brandedUI,autoplay:n.autoplay,color:n.color||void 0,hq:n.hd,jsapi:n.api,modestbranding:!n.brandedUI}}},vimeo:{name:"vimeo",type:"video",icon:"video play",domain:"vimeo.com",url:"//player.vimeo.com/video/{id}",parameters:function(n){return{api:n.api,autoplay:n.autoplay,byline:n.brandedUI,color:n.color||void 0,portrait:n.brandedUI,title:n.brandedUI}}}},templates:{iframe:function(n,t){var i=n;return t&&(i+="?"+t),'<iframe src="'+i+'" width="100%" height="100%" frameborder="0" scrolling="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen><\/iframe>'},placeholder:function(n,t){var i="";return t&&(i+='<i class="'+t+' icon"><\/i>'),n&&(i+='<img class="placeholder" src="'+n+'">'),i}},api:!1,onPause:function(){},onPlay:function(){},onStop:function(){}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.modal=function(r){var u,h=n(this),c=n(t),o=n(i),e=n("body"),l=h.selector||"",s=(new Date).getTime(),f=[],a=arguments[0],v="string"==typeof a,y=[].slice.call(arguments,1),p=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return h.each(function(){var vt,tt,et,k,ot,it,ht,ct,h,w=n.isPlainObject(r)?n.extend(!0,{},n.fn.modal.settings,r):n.extend({},n.fn.modal.settings),rt=w.selector,d=w.className,yt=w.namespace,st=w.error,g="."+yt,lt="module-"+yt,b=n(this),at=n(w.context),pt=b.find(rt.close),nt=this,ut=b.data(lt),ft=!1;h={initialize:function(){h.verbose("Initializing dimmer",at);h.create.id();h.create.dimmer();h.refreshModals();h.bind.events();w.observeChanges&&h.observeChanges();h.instantiate()},instantiate:function(){h.verbose("Storing instance of modal");ut=h;b.data(lt,ut)},create:{dimmer:function(){var i={debug:w.debug,dimmerName:"modals",duration:{show:w.duration,hide:w.duration}},t=n.extend(!0,i,w.dimmerSettings);if(w.inverted&&(t.variation=void 0!==t.variation?t.variation+" inverted":"inverted"),void 0===n.fn.dimmer)return void h.error(st.dimmer);h.debug("Creating dimmer with settings",t);k=at.dimmer(t);w.detachable?(h.verbose("Modal is detachable, moving content into dimmer"),k.dimmer("add content",b)):h.set.undetached();w.blurring&&k.addClass(d.blurring);ot=k.dimmer("get dimmer")},id:function(){ht=(Math.random().toString(16)+"000000000").substr(2,8);it="."+ht;h.verbose("Creating unique id for element",ht)}},destroy:function(){h.verbose("Destroying previous modal");b.removeData(lt).off(g);c.off(it);ot.off(it);pt.off(g);at.dimmer("destroy")},observeChanges:function(){"MutationObserver"in t&&(ct=new MutationObserver(function(){h.debug("DOM tree modified, refreshing");h.refresh()}),ct.observe(nt,{childList:!0,subtree:!0}),h.debug("Setting up mutation observer",ct))},refresh:function(){h.remove.scrolling();h.cacheSizes();h.set.screenHeight();h.set.type();h.set.position()},refreshModals:function(){tt=b.siblings(rt.modal);vt=tt.add(b)},attachEvents:function(t,i){var r=n(t);i=n.isFunction(h[i])?h[i]:h.toggle;r.length>0?(h.debug("Attaching modal events to element",t,i),r.off(g).on("click"+g,i)):h.error(st.notFound,t)},bind:{events:function(){h.verbose("Attaching events");b.on("click"+g,rt.close,h.event.close).on("click"+g,rt.approve,h.event.approve).on("click"+g,rt.deny,h.event.deny);c.on("resize"+it,h.event.resize)}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){if(ft||w.onApprove.call(nt,n(this))===!1)return void h.verbose("Approve callback returned false cancelling hide");ft=!0;h.hide(function(){ft=!1})},deny:function(){if(ft||w.onDeny.call(nt,n(this))===!1)return void h.verbose("Deny callback returned false cancelling hide");ft=!0;h.hide(function(){ft=!1})},close:function(){h.hide()},click:function(t){var r=n(t.target),u=r.closest(rt.modal).length>0,f=n.contains(i.documentElement,t.target);!u&&f&&(h.debug("Dimmer clicked, hiding all modals"),h.is.active()&&(h.remove.clickaway(),w.allowMultiple?h.hide():h.hideAll()))},debounce:function(n,t){clearTimeout(h.timer);h.timer=setTimeout(n,t)},keyboard:function(n){27==n.which&&(w.closable?(h.debug("Escape key pressed hiding modal"),h.hide()):h.debug("Escape key pressed, but closable is set to false"),n.preventDefault())},resize:function(){k.dimmer("is active")&&p(h.refresh)}},toggle:function(){h.is.active()||h.is.animating()?h.hide():h.show()},show:function(t){t=n.isFunction(t)?t:function(){};h.refreshModals();h.showModal(t)},hide:function(t){t=n.isFunction(t)?t:function(){};h.refreshModals();h.hideModal(t)},showModal:function(t){t=n.isFunction(t)?t:function(){};h.is.animating()||!h.is.active()?(h.showDimmer(),h.cacheSizes(),h.set.position(),h.set.screenHeight(),h.set.type(),h.set.clickaway(),!w.allowMultiple&&h.others.active()?h.hideOthers(h.showModal):(w.onShow.call(nt),w.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(h.debug("Showing modal with css animations"),b.transition({debug:w.debug,animation:w.transition+" in",queue:w.queue,duration:w.duration,useFailSafe:!0,onComplete:function(){w.onVisible.apply(nt);w.keyboardShortcuts&&h.add.keyboardShortcuts();h.save.focus();h.set.active();w.autofocus&&h.set.autofocus();t()}})):h.error(st.noTransition))):h.debug("Modal is already visible")},hideModal:function(t,i){if(t=n.isFunction(t)?t:function(){},h.debug("Hiding modal"),w.onHide.call(nt,n(this))===!1)return void h.verbose("Hide callback returned false cancelling hide");(h.is.animating()||h.is.active())&&(w.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(h.remove.active(),b.transition({debug:w.debug,animation:w.transition+" out",queue:w.queue,duration:w.duration,useFailSafe:!0,onStart:function(){h.others.active()||i||h.hideDimmer();w.keyboardShortcuts&&h.remove.keyboardShortcuts()},onComplete:function(){w.onHidden.call(nt);h.restore.focus();t()}})):h.error(st.noTransition))},showDimmer:function(){k.dimmer("is animating")||!k.dimmer("is active")?(h.debug("Showing dimmer"),k.dimmer("show")):h.debug("Dimmer already visible")},hideDimmer:function(){if(!k.dimmer("is animating")&&!k.dimmer("is active"))return void h.debug("Dimmer is not visible cannot hide");k.dimmer("hide",function(){h.remove.clickaway();h.remove.screenHeight()})},hideAll:function(t){var i=vt.filter("."+d.active+", ."+d.animating);t=n.isFunction(t)?t:function(){};i.length>0&&(h.debug("Hiding all visible modals"),h.hideDimmer(),i.modal("hide modal",t))},hideOthers:function(t){var i=tt.filter("."+d.active+", ."+d.animating);t=n.isFunction(t)?t:function(){};i.length>0&&(h.debug("Hiding other modals",tt),i.modal("hide modal",t,!0))},others:{active:function(){return tt.filter("."+d.active).length>0},animating:function(){return tt.filter("."+d.animating).length>0}},add:{keyboardShortcuts:function(){h.verbose("Adding keyboard shortcuts");o.on("keyup"+g,h.event.keyboard)}},save:{focus:function(){et=n(i.activeElement).blur()}},restore:{focus:function(){et&&et.length>0&&et.focus()}},remove:{active:function(){b.removeClass(d.active)},clickaway:function(){w.closable&&ot.off("click"+it)},bodyStyle:function(){""===e.attr("style")&&(h.verbose("Removing style attribute"),e.removeAttr("style"))},screenHeight:function(){h.debug("Removing page height");e.css("height","")},keyboardShortcuts:function(){h.verbose("Removing keyboard shortcuts");o.off("keyup"+g)},scrolling:function(){k.removeClass(d.scrolling);b.removeClass(d.scrolling)}},cacheSizes:function(){var r=b.outerHeight();void 0!==h.cache&&0===r||(h.cache={pageHeight:n(i).outerHeight(),height:r+w.offset,contextHeight:"body"==w.context?n(t).height():k.height()});h.debug("Caching modal and container sizes",h.cache)},can:{fit:function(){return h.cache.height+2*w.padding<h.cache.contextHeight}},is:{active:function(){return b.hasClass(d.active)},animating:function(){return b.transition("is supported")?b.transition("is animating"):b.is(":visible")},scrolling:function(){return k.hasClass(d.scrolling)},modernBrowser:function(){return!(t.ActiveXObject||"ActiveXObject"in t)}},set:{autofocus:function(){var n=b.find("[tabindex], :input").filter(":visible"),t=n.filter("[autofocus]"),i=t.length>0?t.first():n.first();i.length>0&&i.focus()},clickaway:function(){w.closable&&ot.on("click"+it,h.event.click)},screenHeight:function(){h.can.fit()?e.css("height",""):(h.debug("Modal is taller than page content, resizing page height"),e.css("height",h.cache.height+2*w.padding))},active:function(){b.addClass(d.active)},scrolling:function(){k.addClass(d.scrolling);b.addClass(d.scrolling)},type:function(){h.can.fit()?(h.verbose("Modal fits on screen"),h.others.active()||h.others.animating()||h.remove.scrolling()):(h.verbose("Modal cannot fit on screen setting to scrolling"),h.set.scrolling())},position:function(){h.verbose("Centering modal on page",h.cache);h.can.fit()?b.css({top:"",marginTop:-(h.cache.height/2)}):b.css({marginTop:"",top:o.scrollTop()})},undetached:function(){k.addClass(d.undetached)}},setting:function(t,i){if(h.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,w,t);else{if(void 0===i)return w[t];n.isPlainObject(w[t])?n.extend(!0,w[t],i):w[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,h,t);else{if(void 0===i)return h[t];h[t]=i}},debug:function(){!w.silent&&w.debug&&(w.performance?h.performance.log(arguments):(h.debug=Function.prototype.bind.call(console.info,console,w.name+":"),h.debug.apply(console,arguments)))},verbose:function(){!w.silent&&w.verbose&&w.debug&&(w.performance?h.performance.log(arguments):(h.verbose=Function.prototype.bind.call(console.info,console,w.name+":"),h.verbose.apply(console,arguments)))},error:function(){w.silent||(h.error=Function.prototype.bind.call(console.error,console,w.name+":"),h.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;w.performance&&(t=(new Date).getTime(),r=s||t,i=t-r,s=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:nt,"Execution Time":i}));clearTimeout(h.performance.timer);h.performance.timer=setTimeout(h.performance.display,500)},display:function(){var t=w.name+":",i=0;s=!1;clearTimeout(h.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ut;return i=i||y,r=nt||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};v?(void 0===ut&&h.initialize(),h.invoke(a)):(void 0!==ut&&ut.invoke("destroy"),h.initialize())}),void 0!==u?u:this};n.fn.modal.settings={name:"Modal",namespace:"modal",silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,offset:0,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.nag=function(i){var r,e=n(this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var l,e=n.isPlainObject(i)?n.extend(!0,{},n.fn.nag.settings,i):n.extend({},n.fn.nag.settings),w=(e.className,e.selector),v=e.error,b=e.namespace,k="."+b,p=b+"-module",a=n(this),d=(a.find(w.close),n(e.context?e.context:"body")),g=this,y=a.data(p);t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame;l={initialize:function(){l.verbose("Initializing element");a.on("click"+k,w.close,l.dismiss).data(p,l);e.detachable&&a.parent()[0]!==d[0]&&a.detach().prependTo(d);e.displayTime>0&&setTimeout(l.hide,e.displayTime);l.show()},destroy:function(){l.verbose("Destroying instance");a.removeData(p).off(k)},show:function(){l.should.show()&&!a.is(":visible")&&(l.debug("Showing nag",e.animation.show),"fade"==e.animation.show?a.fadeIn(e.duration,e.easing):a.slideDown(e.duration,e.easing))},hide:function(){l.debug("Showing nag",e.animation.hide);"fade"==e.animation.show?a.fadeIn(e.duration,e.easing):a.slideUp(e.duration,e.easing)},onHide:function(){l.debug("Removing nag",e.animation.hide);a.remove();e.onHide&&e.onHide()},dismiss:function(n){e.storageMethod&&l.storage.set(e.key,e.value);l.hide();n.stopImmediatePropagation();n.preventDefault()},should:{show:function(){return e.persist?(l.debug("Persistent nag is set, can show nag"),!0):l.storage.get(e.key)!=e.value.toString()?(l.debug("Stored value is not set, can show nag",l.storage.get(e.key)),!0):(l.debug("Stored value is set, cannot show nag",l.storage.get(e.key)),!1)}},get:{storageOptions:function(){var n={};return e.expires&&(n.expires=e.expires),e.domain&&(n.domain=e.domain),e.path&&(n.path=e.path),n}},clear:function(){l.storage.remove(e.key)},storage:{set:function(i,r){var u=l.get.storageOptions();if("localstorage"==e.storageMethod&&void 0!==t.localStorage)t.localStorage.setItem(i,r),l.debug("Value stored using local storage",i,r);else if("sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage)t.sessionStorage.setItem(i,r),l.debug("Value stored using session storage",i,r);else{if(void 0===n.cookie)return void l.error(v.noCookieStorage);n.cookie(i,r,u);l.debug("Value stored using cookie",i,r,u)}},get:function(i){var r;return"localstorage"==e.storageMethod&&void 0!==t.localStorage?r=t.localStorage.getItem(i):"sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage?r=t.sessionStorage.getItem(i):void 0!==n.cookie?r=n.cookie(i):l.error(v.noCookieStorage),"undefined"!=r&&"null"!=r&&void 0!==r&&null!==r||(r=void 0),r},remove:function(i){var r=l.get.storageOptions();"localstorage"==e.storageMethod&&void 0!==t.localStorage?t.localStorage.removeItem(i):"sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage?t.sessionStorage.removeItem(i):void 0!==n.cookie?n.removeCookie(i,r):l.error(v.noStorage)}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];n.isPlainObject(e[t])?n.extend(!0,e[t],i):e[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];l[t]=i}},debug:function(){!e.silent&&e.debug&&(e.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,e.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!e.silent&&e.verbose&&e.debug&&(e.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,e.name+":"),l.verbose.apply(console,arguments)))},error:function(){e.silent||(l.error=Function.prototype.bind.call(console.error,console,e.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;e.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=e.name+":",i=0;f=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=y;return i=i||c,u=g||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(v.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};h?(void 0===y&&l.initialize(),l.invoke(s)):(void 0!==y&&y.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.nag.settings={name:"Nag",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"Nag",persist:!1,displayTime:0,animation:{show:"slide",hide:"slide"},context:!1,detachable:!1,expires:30,domain:!1,path:"/",storageMethod:"cookie",key:"nag",value:"dismiss",error:{noCookieStorage:"$.cookie is not included. A storage solution is required.",noStorage:"Neither $.cookie or store is defined. A storage solution is required for storing state",method:"The method you called is not defined."},className:{bottom:"bottom",fixed:"fixed"},selector:{close:".close.icon"},speed:500,easing:"easeOutQuad",onHide:function(){}};n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.popup=function(r){var u,c=n(this),o=n(i),e=n(t),s=n("body"),l=c.selector||"",h=(new Date).getTime(),f=[],a=arguments[0],v="string"==typeof a,y=[].slice.call(arguments,1);return c.each(function(){var w,tt,et,it,ht,c,p=n.isPlainObject(r)?n.extend(!0,{},n.fn.popup.settings,r):n.extend({},n.fn.popup.settings),ot=p.selector,d=p.className,st=p.error,g=p.metadata,wt=p.namespace,rt="."+p.namespace,at="module-"+wt,b=n(this),yt=n(p.context),pt=n(p.scrollContext),ct=n(p.boundary),nt=p.target?n(p.target):b,lt=0,ut=!1,vt=!1,k=this,ft=b.data(at);c={initialize:function(){c.debug("Initializing",b);c.createID();c.bind.events();!c.exists()&&p.preserve&&c.create();p.observeChanges&&c.observeChanges();c.instantiate()},instantiate:function(){c.verbose("Storing instance",c);ft=c;b.data(at,ft)},observeChanges:function(){"MutationObserver"in t&&(et=new MutationObserver(c.event.documentChanged),et.observe(i,{childList:!0,subtree:!0}),c.debug("Setting up mutation observer",et))},refresh:function(){p.popup?w=n(p.popup).eq(0):p.inline&&(w=nt.nextAll(ot.popup).eq(0),p.popup=w);p.popup?(w.addClass(d.loading),tt=c.get.offsetParent(),w.removeClass(d.loading),p.movePopup&&c.has.popup()&&c.get.offsetParent(w)[0]!==tt[0]&&(c.debug("Moving popup to the same offset parent as activating element"),w.detach().appendTo(tt))):tt=p.inline?c.get.offsetParent(nt):c.has.popup()?c.get.offsetParent(w):s;tt.is("html")&&tt[0]!==s[0]&&(c.debug("Setting page as offset parent"),tt=s);c.get.variation()&&c.set.variation()},reposition:function(){c.refresh();c.set.position()},destroy:function(){c.debug("Destroying previous module");et&&et.disconnect();w&&!p.preserve&&c.removePopup();clearTimeout(c.hideTimer);clearTimeout(c.showTimer);c.unbind.close();c.unbind.events();b.removeData(at)},event:{start:function(){var t=n.isPlainObject(p.delay)?p.delay.show:p.delay;clearTimeout(c.hideTimer);vt||(c.showTimer=setTimeout(c.show,t))},end:function(){var t=n.isPlainObject(p.delay)?p.delay.hide:p.delay;clearTimeout(c.showTimer);c.hideTimer=setTimeout(c.hide,t)},touchstart:function(){vt=!0;c.show()},resize:function(){c.is.visible()&&c.set.position()},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==k||n(t).find(k).length>0)&&(c.debug("Element removed from DOM, tearing down events"),c.destroy())})})},hideGracefully:function(t){var r=n(t.target),u=n.contains(i.documentElement,t.target),f=r.closest(ot.popup).length>0;t&&!f&&u?(c.debug("Click occurred outside popup hiding popup"),c.hide()):c.debug("Click was inside popup, keeping popup open")}},create:function(){var t=c.get.html(),i=c.get.title(),r=c.get.content();t||r||i?(c.debug("Creating pop-up html"),t||(t=p.templates.popup({title:i,content:r})),w=n("<div/>").addClass(d.popup).data(g.activator,b).html(t),p.inline?(c.verbose("Inserting popup element inline",w),w.insertAfter(b)):(c.verbose("Appending popup element to body",w),w.appendTo(yt)),c.refresh(),c.set.variation(),p.hoverable&&c.bind.popup(),p.onCreate.call(w,k)):0!==nt.next(ot.popup).length?(c.verbose("Pre-existing popup found"),p.inline=!0,p.popup=nt.next(ot.popup).data(g.activator,b),c.refresh(),p.hoverable&&c.bind.popup()):p.popup?(n(p.popup).data(g.activator,b),c.verbose("Used popup specified in settings"),c.refresh(),p.hoverable&&c.bind.popup()):c.debug("No content specified skipping display",k)},createID:function(){ht=(Math.random().toString(16)+"000000000").substr(2,8);it="."+ht;c.verbose("Creating unique id for element",ht)},toggle:function(){c.debug("Toggling pop-up");c.is.hidden()?(c.debug("Popup is hidden, showing pop-up"),c.unbind.close(),c.show()):(c.debug("Popup is visible, hiding pop-up"),c.hide())},show:function(n){if(n=n||function(){},c.debug("Showing pop-up",p.transition),c.is.hidden()&&(!c.is.active()||!c.is.dropdown())){if(c.exists()||c.create(),p.onShow.call(w,k)===!1)return void c.debug("onShow callback returned false, cancelling popup animation");p.preserve||p.popup||c.refresh();w&&c.set.position()&&(c.save.conditions(),p.exclusive&&c.hideAll(),c.animate.show(n))}},hide:function(n){if(n=n||function(){},c.is.visible()||c.is.animating()){if(p.onHide.call(w,k)===!1)return void c.debug("onHide callback returned false, cancelling popup animation");c.remove.visible();c.unbind.close();c.restore.conditions();c.animate.hide(n)}},hideAll:function(){n(ot.popup).filter("."+d.visible).each(function(){n(this).data(g.activator).popup("hide")})},exists:function(){return!!w&&(p.inline||p.popup?c.has.popup():w.closest(yt).length>=1)},removePopup:function(){c.has.popup()&&!p.popup&&(c.debug("Removing popup",w),w.remove(),w=void 0,p.onRemove.call(w,k))},save:{conditions:function(){c.cache={title:b.attr("title")};c.cache.title&&b.removeAttr("title");c.verbose("Saving original attributes",c.cache.title)}},restore:{conditions:function(){return c.cache&&c.cache.title&&(b.attr("title",c.cache.title),c.verbose("Restoring original attributes",c.cache.title)),!0}},supports:{svg:function(){return void 0===typeof SVGGraphicsElement}},animate:{show:function(t){t=n.isFunction(t)?t:function(){};p.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(c.set.visible(),w.transition({animation:p.transition+" in",queue:!1,debug:p.debug,verbose:p.verbose,duration:p.duration,onComplete:function(){c.bind.close();t.call(w,k);p.onVisible.call(w,k)}})):c.error(st.noTransition)},hide:function(t){if(t=n.isFunction(t)?t:function(){},c.debug("Hiding pop-up"),p.onHide.call(w,k)===!1)return void c.debug("onHide callback returned false, cancelling popup animation");p.transition&&void 0!==n.fn.transition&&b.transition("is supported")?w.transition({animation:p.transition+" out",queue:!1,duration:p.duration,debug:p.debug,verbose:p.verbose,onComplete:function(){c.reset();t.call(w,k);p.onHidden.call(w,k)}}):c.error(st.noTransition)}},change:{content:function(n){w.html(n)}},get:{html:function(){return b.removeData(g.html),b.data(g.html)||p.html},title:function(){return b.removeData(g.title),b.data(g.title)||p.title},content:function(){return b.removeData(g.content),b.data(g.content)||b.attr("title")||p.content},variation:function(){return b.removeData(g.variation),b.data(g.variation)||p.variation},popup:function(){return w},popupOffset:function(){return w.offset()},calculations:function(){var n,r=nt[0],u=ct[0]==t,f=p.inline||p.popup&&p.movePopup?nt.position():nt.offset(),o=u?{top:0,left:0}:ct.offset(),i={},s=u?{top:e.scrollTop(),left:e.scrollLeft()}:{top:0,left:0};return i={target:{element:nt[0],width:nt.outerWidth(),height:nt.outerHeight(),top:f.top,left:f.left,margin:{}},popup:{width:w.outerWidth(),height:w.outerHeight()},parent:{width:tt.outerWidth(),height:tt.outerHeight()},screen:{top:o.top,left:o.left,scroll:{top:s.top,left:s.left},width:ct.width(),height:ct.height()}},p.setFluidWidth&&c.is.fluid()&&(i.container={width:w.parent().outerWidth()},i.popup.width=i.container.width),i.target.margin.top=p.inline?parseInt(t.getComputedStyle(r).getPropertyValue("margin-top"),10):0,i.target.margin.left=p.inline?c.is.rtl()?parseInt(t.getComputedStyle(r).getPropertyValue("margin-right"),10):parseInt(t.getComputedStyle(r).getPropertyValue("margin-left"),10):0,n=i.screen,i.boundary={top:n.top+n.scroll.top,bottom:n.top+n.scroll.top+n.height,left:n.left+n.scroll.left,right:n.left+n.scroll.left+n.width},i},id:function(){return ht},startEvent:function(){return"hover"==p.on?"mouseenter":"focus"==p.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==p.on?"mouseleave":"focus"==p.on&&"blur"},distanceFromBoundary:function(n,t){var r,i,u={};return t=t||c.get.calculations(),r=t.popup,i=t.boundary,n&&(u={top:n.top-i.top,left:n.left-i.left,right:i.right-(n.left+r.width),bottom:i.bottom-(n.top+r.height)},c.verbose("Distance from boundaries determined",n,u)),u},offsetParent:function(t){var o=void 0!==t?t[0]:b[0],r=o.parentNode,i=n(r);if(r)for(var u="none"===i.css("transform"),f="static"===i.css("position"),e=i.is("html");r&&!e&&f&&u;)r=r.parentNode,i=n(r),u="none"===i.css("transform"),f="static"===i.css("position"),e=i.is("html");return i&&i.length>0?i:n()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center":!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(n){var r=n.split(" "),i=r[0],u=r[1],o="top"==i||"bottom"==i,f=!1,e=!1,t=!1;return ut||(c.verbose("All available positions available"),ut=c.get.positions()),c.debug("Recording last position tried",n),ut[n]=!0,"opposite"===p.prefer&&(t=[{top:"bottom",bottom:"top",left:"right",right:"left"}[i],u],t=t.join(" "),f=ut[t]===!0,c.debug("Trying opposite strategy",t)),"adjacent"===p.prefer&&o&&(t=[i,{left:"center",center:"right",right:"left"}[u]],t=t.join(" "),e=ut[t]===!0,c.debug("Trying adjacent strategy",t)),(e||f)&&(c.debug("Using backup position",t),t={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[n]),t}},set:{position:function(n,t){if(0===nt.length||0===w.length)return void c.error(st.notFound);var r,u,i,o,e,f,s,h;if(t=t||c.get.calculations(),n=n||b.data(g.position)||p.position,r=b.data(g.offset)||p.offset,u=p.distanceAway,i=t.target,o=t.popup,e=t.parent,0===i.width&&0===i.height&&!c.is.svg(i.element))return c.debug("Popup target is hidden, no action taken"),!1;switch(p.inline&&(c.debug("Adding margin to calculation",i.margin),"left center"==n||"right center"==n?(r+=i.margin.top,u+=-i.margin.left):"top left"==n||"top center"==n||"top right"==n?(r+=i.margin.left,u-=i.margin.top):(r+=i.margin.left,u+=i.margin.top)),c.debug("Determining popup position from calculations",n,t),c.is.rtl()&&(n=n.replace(/left|right/g,function(n){return"left"==n?"right":"left"}),c.debug("RTL: Popup position updated",n)),lt==p.maxSearchDepth&&"string"==typeof p.lastResort&&(n=p.lastResort),n){case"top left":f={top:"auto",bottom:e.height-i.top+u,left:i.left+r,right:"auto"};break;case"top center":f={bottom:e.height-i.top+u,left:i.left+i.width/2-o.width/2+r,top:"auto",right:"auto"};break;case"top right":f={bottom:e.height-i.top+u,right:e.width-i.left-i.width-r,top:"auto",left:"auto"};break;case"left center":f={top:i.top+i.height/2-o.height/2+r,right:e.width-i.left+u,left:"auto",bottom:"auto"};break;case"right center":f={top:i.top+i.height/2-o.height/2+r,left:i.left+i.width+u,bottom:"auto",right:"auto"};break;case"bottom left":f={top:i.top+i.height+u,left:i.left+r,bottom:"auto",right:"auto"};break;case"bottom center":f={top:i.top+i.height+u,left:i.left+i.width/2-o.width/2+r,bottom:"auto",right:"auto"};break;case"bottom right":f={top:i.top+i.height+u,right:e.width-i.left-i.width-r,left:"auto",bottom:"auto"}}if(void 0===f&&c.error(st.invalidPosition,n),c.debug("Calculated popup positioning values",f),w.css(f).removeClass(d.position).addClass(n).addClass(d.loading),s=c.get.popupOffset(),h=c.get.distanceFromBoundary(s,t),c.is.offstage(h,n)){if(c.debug("Position is outside viewport",n),lt<p.maxSearchDepth)return lt++,n=c.get.nextPosition(n),c.debug("Trying new position",n),!!w&&c.set.position(n,t);if(!p.lastResort)return c.debug("Popup could not find a position to display",w),c.error(st.cannotPlace,k),c.remove.attempts(),c.remove.loading(),c.reset(),p.onUnplaceable.call(w,k),!1;c.debug("No position found, showing with last position")}return c.debug("Position is on stage",n),c.remove.attempts(),c.remove.loading(),p.setFluidWidth&&c.is.fluid()&&c.set.fluidWidth(t),!0},fluidWidth:function(n){n=n||c.get.calculations();c.debug("Automatically setting element width to parent width",n.parent.width);w.css("width",n.container.width)},variation:function(n){(n=n||c.get.variation())&&c.has.popup()&&(c.verbose("Adding variation to popup",n),w.addClass(n))},visible:function(){b.addClass(d.visible)}},remove:{loading:function(){w.removeClass(d.loading)},variation:function(n){(n=n||c.get.variation())&&(c.verbose("Removing variation",n),w.removeClass(n))},visible:function(){b.removeClass(d.visible)},attempts:function(){c.verbose("Resetting all searched positions");lt=0;ut=!1}},bind:{events:function(){c.debug("Binding popup events to module");"click"==p.on&&b.on("click"+rt,c.toggle);"hover"==p.on&&b.on("touchstart"+rt,c.event.touchstart);c.get.startEvent()&&b.on(c.get.startEvent()+rt,c.event.start).on(c.get.endEvent()+rt,c.event.end);p.target&&c.debug("Target set to element",nt);e.on("resize"+it,c.event.resize)},popup:function(){c.verbose("Allowing hover events on popup to prevent closing");w&&c.has.popup()&&w.on("mouseenter"+rt,c.event.start).on("mouseleave"+rt,c.event.end)},close:function(){(p.hideOnScroll===!0||"auto"==p.hideOnScroll&&"click"!=p.on)&&pt.one(c.get.scrollEvent()+it,c.event.hideGracefully);"hover"==p.on&&vt&&(c.verbose("Binding popup close event to document"),o.on("touchstart"+it,function(n){c.verbose("Touched away from popup");c.event.hideGracefully.call(k,n)}));"click"==p.on&&p.closable&&(c.verbose("Binding popup close event to document"),o.on("click"+it,function(n){c.verbose("Clicked away from popup");c.event.hideGracefully.call(k,n)}))}},unbind:{events:function(){e.off(it);b.off(rt)},close:function(){o.off(it);pt.off(it)}},has:{popup:function(){return w&&w.length>0}},is:{offstage:function(t,i){var r=[];return n.each(t,function(n,t){t<-p.jitter&&(c.debug("Position exceeds allowable distance from edge",n,t,i),r.push(n))}),r.length>0},svg:function(n){return c.supports.svg()&&n instanceof SVGGraphicsElement},active:function(){return b.hasClass(d.active)},animating:function(){return void 0!==w&&w.hasClass(d.animating)},fluid:function(){return void 0!==w&&w.hasClass(d.fluid)},visible:function(){return void 0!==w&&w.hasClass(d.visible)},dropdown:function(){return b.hasClass(d.dropdown)},hidden:function(){return!c.is.visible()},rtl:function(){return"rtl"==b.css("direction")}},reset:function(){c.remove.visible();p.preserve?void 0!==n.fn.transition&&w.transition("remove transition"):c.removePopup()},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,p,t);else{if(void 0===i)return p[t];p[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!p.silent&&p.debug&&(p.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,p.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),c.verbose.apply(console,arguments)))},error:function(){p.silent||(c.error=Function.prototype.bind.call(console.error,console,p.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;p.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=p.name+":",i=0;h=!1;clearTimeout(c.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ft;return i=i||y,r=k||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};v?(void 0===ft&&c.initialize(),c.invoke(a)):(void 0!==ft&&ft.invoke("destroy"),c.initialize())}),void 0!==u?u:this};n.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:t,addTouchEvents:!0,position:"top left",variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:t,prefer:"opposite",lastResort:!1,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=function(n){return t[n]};return/[&<>"'`]/.test(n)?n.replace(/[&<>"'`]/g,i):n},popup:function(t){var i="",r=n.fn.popup.settings.templates.escape;return void 0!==typeof t&&(void 0!==typeof t.title&&t.title&&(t.title=r(t.title),i+='<div class="header">'+t.title+"<\/div>"),void 0!==typeof t.content&&t.content&&(t.content=r(t.content),i+='<div class="content">'+t.content+"<\/div>")),i}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();void 0!==t&&t.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")());n.fn.progress=function(t){var r,e=n(this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var rt,e,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.progress.settings,t):n.extend({},n.fn.progress.settings),v=l.className,d=l.metadata,it=l.namespace,g=l.selector,b=l.error,ut="."+it,nt="module-"+it,a=n(this),w=n(this).find(g.bar),tt=n(this).find(g.progress),ft=n(this).find(g.label),y=this,p=a.data(nt),k=!1;e={initialize:function(){e.debug("Initializing progress bar",l);e.set.duration();e.set.transitionEvent();e.read.metadata();e.read.settings();e.instantiate()},instantiate:function(){e.verbose("Storing instance of progress",e);p=e;a.data(nt,e)},destroy:function(){e.verbose("Destroying previous progress for",a);clearInterval(p.interval);e.remove.state();a.removeData(nt);p=void 0},reset:function(){e.remove.nextValue();e.update.progress(0)},complete:function(){(void 0===e.percent||e.percent<100)&&(e.remove.progressPoll(),e.set.percent(100))},read:{metadata:function(){var n={percent:a.data(d.percent),total:a.data(d.total),value:a.data(d.value)};n.percent&&(e.debug("Current percent value set from metadata",n.percent),e.set.percent(n.percent));n.total&&(e.debug("Total value set from metadata",n.total),e.set.total(n.total));n.value&&(e.debug("Current value set from metadata",n.value),e.set.value(n.value),e.set.progress(n.value))},settings:function(){l.total!==!1&&(e.debug("Current total set in settings",l.total),e.set.total(l.total));l.value!==!1&&(e.debug("Current value set in settings",l.value),e.set.value(l.value),e.set.progress(e.value));l.percent!==!1&&(e.debug("Current percent set in settings",l.percent),e.set.percent(l.percent))}},bind:{transitionEnd:function(n){var t=e.get.transitionEnd();w.one(t+ut,function(t){clearTimeout(e.failSafeTimer);n.call(this,t)});e.failSafeTimer=setTimeout(function(){w.triggerHandler(t)},l.duration+l.failSafeDelay);e.verbose("Adding fail safe timer",e.timer)}},increment:function(n){var i,t;e.has.total()?(i=e.get.value(),n=n||1,t=i+n):(i=e.get.percent(),n=n||e.get.randomValue(),t=i+n,e.debug("Incrementing percentage by",i,t));t=e.get.normalizedValue(t);e.set.progress(t)},decrement:function(n){var t,i,r=e.get.total();r?(t=e.get.value(),n=n||1,i=t-n,e.debug("Decrementing value by",n,t)):(t=e.get.percent(),n=n||e.get.randomValue(),i=t-n,e.debug("Decrementing percentage by",n,t));i=e.get.normalizedValue(i);e.set.progress(i)},has:{progressPoll:function(){return e.progressPoll},total:function(){return e.get.total()!==!1}},get:{text:function(n){var t=e.value||0,i=e.total||0,r=k?e.get.displayPercent():e.percent||0,u=e.total>0?i-t:100-r;return n=n||"",n=n.replace("{value}",t).replace("{total}",i).replace("{left}",u).replace("{percent}",r),e.verbose("Adding variables to progress bar text",n),n},normalizedValue:function(n){if(n<0)return e.debug("Value cannot decrement below 0"),0;if(e.has.total()){if(n>e.total)return e.debug("Value cannot increment above total",e.total),e.total}else if(n>100)return e.debug("Value cannot increment above 100 percent"),100;return n},updateInterval:function(){return"auto"==l.updateInterval?l.duration:l.updateInterval},randomValue:function(){return e.debug("Generating random increment percentage"),Math.floor(Math.random()*l.random.max+l.random.min)},numericValue:function(n){return"string"==typeof n?""!==n.replace(/[^\d.]/g,"")&&+n.replace(/[^\d.]/g,""):n},transitionEnd:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]},displayPercent:function(){var n=w.width(),i=a.width(),r=parseInt(w.css("min-width"),10),t=n>r?n/i*100:e.percent;return l.precision>0?Math.round(t*10*l.precision)/(10*l.precision):Math.round(t)},percent:function(){return e.percent||0},value:function(){return e.nextValue||e.value||0},total:function(){return e.total||!1}},create:{progressPoll:function(){e.progressPoll=setTimeout(function(){e.update.toNextValue();e.remove.progressPoll()},e.get.updateInterval())}},is:{complete:function(){return e.is.success()||e.is.warning()||e.is.error()},success:function(){return a.hasClass(v.success)},warning:function(){return a.hasClass(v.warning)},error:function(){return a.hasClass(v.error)},active:function(){return a.hasClass(v.active)},visible:function(){return a.is(":visible")}},remove:{progressPoll:function(){e.verbose("Removing progress poll timer");e.progressPoll&&(clearTimeout(e.progressPoll),delete e.progressPoll)},nextValue:function(){e.verbose("Removing progress value stored for next update");delete e.nextValue},state:function(){e.verbose("Removing stored state");delete e.total;delete e.percent;delete e.value},active:function(){e.verbose("Removing active state");a.removeClass(v.active)},success:function(){e.verbose("Removing success state");a.removeClass(v.success)},warning:function(){e.verbose("Removing warning state");a.removeClass(v.warning)},error:function(){e.verbose("Removing error state");a.removeClass(v.error)}},set:{barWidth:function(n){n>100?e.error(b.tooHigh,n):n<0?e.error(b.tooLow,n):(w.css("width",n+"%"),a.attr("data-percent",parseInt(n,10)))},duration:function(n){n=n||l.duration;n="number"==typeof n?n+"ms":n;e.verbose("Setting progress bar transition duration",n);w.css({"transition-duration":n})},percent:function(n){n="string"==typeof n?+n.replace("%",""):n;n=l.precision>0?Math.round(n*10*l.precision)/(10*l.precision):Math.round(n);e.percent=n;e.has.total()||(e.value=l.precision>0?Math.round(n/100*e.total*10*l.precision)/(10*l.precision):Math.round(n/100*e.total*10)/10,l.limitValues&&(e.value=e.value>100?100:e.value<0?0:e.value));e.set.barWidth(n);e.set.labelInterval();e.set.labels();l.onChange.call(y,n,e.value,e.total)},labelInterval:function(){var t=function(){e.verbose("Bar finished animating, removing continuous label updates");clearInterval(e.interval);k=!1;e.set.labels()};clearInterval(e.interval);e.bind.transitionEnd(t);k=!0;e.interval=setInterval(function(){n.contains(i.documentElement,y)||(clearInterval(e.interval),k=!1);e.set.labels()},l.framerate)},labels:function(){e.verbose("Setting both bar progress and outer label text");e.set.barLabel();e.set.state()},label:function(n){(n=n||"")&&(n=e.get.text(n),e.verbose("Setting label to text",n),ft.text(n))},state:function(n){n=void 0!==n?n:e.percent;100===n?l.autoSuccess&&!(e.is.warning()||e.is.error()||e.is.success())?(e.set.success(),e.debug("Automatically triggering success at 100%")):(e.verbose("Reached 100% removing active state"),e.remove.active(),e.remove.progressPoll()):n>0?(e.verbose("Adjusting active progress bar label",n),e.set.active()):(e.remove.active(),e.set.label(l.text.active))},barLabel:function(n){void 0!==n?tt.text(e.get.text(n)):"ratio"==l.label&&e.total?(e.verbose("Adding ratio to bar label"),tt.text(e.get.text(l.text.ratio))):"percent"==l.label&&(e.verbose("Adding percentage to bar label"),tt.text(e.get.text(l.text.percent)))},active:function(n){n=n||l.text.active;e.debug("Setting active state");l.showActivity&&!e.is.active()&&a.addClass(v.active);e.remove.warning();e.remove.error();e.remove.success();n=l.onLabelUpdate("active",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onActive.call(y,e.value,e.total)})},success:function(n){n=n||l.text.success||l.text.active;e.debug("Setting success state");a.addClass(v.success);e.remove.active();e.remove.warning();e.remove.error();e.complete();l.text.success?(n=l.onLabelUpdate("success",n,e.value,e.total),e.set.label(n)):(n=l.onLabelUpdate("active",n,e.value,e.total),e.set.label(n));e.bind.transitionEnd(function(){l.onSuccess.call(y,e.total)})},warning:function(n){n=n||l.text.warning;e.debug("Setting warning state");a.addClass(v.warning);e.remove.active();e.remove.success();e.remove.error();e.complete();n=l.onLabelUpdate("warning",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onWarning.call(y,e.value,e.total)})},error:function(n){n=n||l.text.error;e.debug("Setting error state");a.addClass(v.error);e.remove.active();e.remove.success();e.remove.warning();e.complete();n=l.onLabelUpdate("error",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onError.call(y,e.value,e.total)})},transitionEvent:function(){rt=e.get.transitionEnd()},total:function(n){e.total=n},value:function(n){e.value=n},progress:function(n){e.has.progressPoll()?(e.debug("Updated within interval, setting next update to use new value",n),e.set.nextValue(n)):(e.debug("First update in progress update interval, immediately updating",n),e.update.progress(n),e.create.progressPoll())},nextValue:function(n){e.nextValue=n}},update:{toNextValue:function(){var n=e.nextValue;n&&(e.debug("Update interval complete using last updated value",n),e.update.progress(n),e.remove.nextValue())},progress:function(n){var t;n=e.get.numericValue(n);n===!1&&e.error(b.nonNumeric,n);n=e.get.normalizedValue(n);e.has.total()?(e.set.value(n),t=n/e.total*100,e.debug("Calculating percent complete from total",t),e.set.percent(t)):(t=n,e.debug("Setting value to exact percentage value",t),e.set.percent(t))}},setting:function(t,i){if(e.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,l.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),e.verbose.apply(console,arguments)))},error:function(){l.silent||(e.error=Function.prototype.bind.call(console.error,console,l.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:y,"Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(e.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var h,o,s,f=p;return i=i||c,u=y||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(b.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(u,i):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===p&&e.initialize(),e.invoke(s)):(void 0!==p&&p.invoke("destroy"),e.initialize())}),void 0!==r?r:this};n.fn.progress.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(n,t){return t},onChange:function(){},onSuccess:function(){},onActive:function(){},onError:function(){},onWarning:function(){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.rating=function(t){var i,u=n(this),e=u.selector||"",f=(new Date).getTime(),r=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return u.each(function(){var d,c,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.rating.settings,t):n.extend({},n.fn.rating.settings),tt=l.namespace,v=l.className,p=l.metadata,b=l.selector,k=(l.error,"."+tt),g="module-"+tt,nt=this,w=n(this).data(g),a=n(this),y=a.find(b.icon);c={initialize:function(){c.verbose("Initializing rating module",l);0===y.length&&c.setup.layout();l.interactive?c.enable():c.disable();c.set.initialLoad();c.set.rating(c.get.initialRating());c.remove.initialLoad();c.instantiate()},instantiate:function(){c.verbose("Instantiating module",l);w=c;a.data(g,c)},destroy:function(){c.verbose("Destroying previous instance",w);c.remove.events();a.removeData(g)},refresh:function(){y=a.find(b.icon)},setup:{layout:function(){var t=c.get.maxRating(),i=n.fn.rating.settings.templates.icon(t);c.debug("Generating icon html dynamically");a.html(i);c.refresh()}},event:{mouseenter:function(){var t=n(this);t.nextAll().removeClass(v.selected);a.addClass(v.selected);t.addClass(v.selected).prevAll().addClass(v.selected)},mouseleave:function(){a.removeClass(v.selected);y.removeClass(v.selected)},click:function(){var i=n(this),r=c.get.rating(),t=y.index(i)+1;("auto"==l.clearable?1===y.length:l.clearable)&&r==t?c.clearRating():c.set.rating(t)}},clearRating:function(){c.debug("Clearing current rating");c.set.rating(0)},bind:{events:function(){c.verbose("Binding events");a.on("mouseenter"+k,b.icon,c.event.mouseenter).on("mouseleave"+k,b.icon,c.event.mouseleave).on("click"+k,b.icon,c.event.click)}},remove:{events:function(){c.verbose("Removing events");a.off(k)},initialLoad:function(){d=!1}},enable:function(){c.debug("Setting rating to interactive mode");c.bind.events();a.removeClass(v.disabled)},disable:function(){c.debug("Setting rating to read-only mode");c.remove.events();a.addClass(v.disabled)},is:{initialLoad:function(){return d}},get:{initialRating:function(){return void 0!==a.data(p.rating)?(a.removeData(p.rating),a.data(p.rating)):l.initialRating},maxRating:function(){return void 0!==a.data(p.maxRating)?(a.removeData(p.maxRating),a.data(p.maxRating)):l.maxRating},rating:function(){var n=y.filter("."+v.active).length;return c.verbose("Current rating retrieved",n),n}},set:{rating:function(n){var t=n-1>=0?n-1:0,i=y.eq(t);a.removeClass(v.selected);y.removeClass(v.selected).removeClass(v.active);n>0&&(c.verbose("Setting current rating to",n),i.prevAll().addBack().addClass(v.active));c.is.initialLoad()||l.onRate.call(nt,n)},initialLoad:function(){d=!0}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,l.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),c.verbose.apply(console,arguments)))},error:function(){l.silent||(c.error=Function.prototype.bind.call(console.error,console,l.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,u;l.performance&&(t=(new Date).getTime(),u=f||t,i=t-u,f=t,r.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:nt,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(c.performance.timer);n.each(r,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";e&&(t+=" '"+e+"'");u.length>1&&(t+=" ("+u.length+")");(void 0!==console.group||void 0!==console.table)&&r.length>0&&(console.groupCollapsed(t),console.table?console.table(r):n.each(r,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());r=[]}},invoke:function(t,r,u){var s,e,o,f=w;return r=r||h,u=nt||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,r):void 0!==e&&(o=e),n.isArray(i)?i.push(o):void 0!==i?i=[i,o]:void 0!==o&&(i=o),e}};s?(void 0===w&&c.initialize(),c.invoke(o)):(void 0!==w&&w.invoke("destroy"),c.initialize())}),void 0!==i?i:this};n.fn.rating.settings={name:"Rating",namespace:"rating",slent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(){},error:{method:"The method you called is not defined",noMaximum:"No maximum rating specified. Cannot generate HTML automatically"},metadata:{rating:"rating",maxRating:"maxRating"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading"},selector:{icon:".icon"},templates:{icon:function(n){for(var t=1,i="";t<=n;)i+='<i class="icon"><\/i>',t++;return i}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.search=function(r){var u,e=n(this),s=e.selector||"",o=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return n(this).each(function(){var a,v=n.isPlainObject(r)?n.extend(!0,{},n.fn.search.settings,r):n.extend({},n.fn.search.settings),w=v.className,k=v.metadata,ht=v.regExp,d=v.fields,p=v.selector,tt=v.error,ct=v.namespace,g="."+ct,ut=ct+"-module",y=n(this),nt=y.find(p.prompt),ft=y.find(p.searchButton),b=y.find(p.results),et=y.find(p.result),lt=y.find(p.category),it=this,rt=y.data(ut),ot=!1,st=!1;a={initialize:function(){a.verbose("Initializing module");a.determine.searchFields();a.bind.events();a.set.type();a.create.results();a.instantiate()},instantiate:function(){a.verbose("Storing instance of module",a);rt=a;y.data(ut,a)},destroy:function(){a.verbose("Destroying instance");y.off(g).removeData(ut)},refresh:function(){a.debug("Refreshing selector cache");nt=y.find(p.prompt);ft=y.find(p.searchButton);lt=y.find(p.category);b=y.find(p.results);et=y.find(p.result)},refreshResults:function(){b=y.find(p.results);et=y.find(p.result)},bind:{events:function(){a.verbose("Binding events to search");v.automatic&&(y.on(a.get.inputEvent()+g,p.prompt,a.event.input),nt.attr("autocomplete","off"));y.on("focus"+g,p.prompt,a.event.focus).on("blur"+g,p.prompt,a.event.blur).on("keydown"+g,p.prompt,a.handleKeyboard).on("click"+g,p.searchButton,a.query).on("mousedown"+g,p.results,a.event.result.mousedown).on("mouseup"+g,p.results,a.event.result.mouseup).on("click"+g,p.result,a.event.result.click)}},determine:{searchFields:function(){r&&void 0!==r.searchFields&&(v.searchFields=r.searchFields)}},event:{input:function(){clearTimeout(a.timer);a.timer=setTimeout(a.query,v.searchDelay)},focus:function(){a.set.focus();v.searchOnFocus&&a.has.minimumCharacters()&&a.query(function(){a.can.show()&&a.showResults()})},blur:function(){var t=i.activeElement===this,n=function(){a.cancel.query();a.remove.focus();a.timer=setTimeout(a.hideResults,v.hideDelay)};t||(st=!1,a.resultsClicked?(a.debug("Determining if user action caused search to close"),y.one("click.close"+g,p.results,function(t){if(a.is.inMessage(t)||ot)return void nt.focus();ot=!1;a.is.animating()||a.is.hidden()||n()})):(a.debug("Input blurred without user action, closing results"),n()))},result:{mousedown:function(){a.resultsClicked=!0},mouseup:function(){a.resultsClicked=!1},click:function(i){a.debug("Search result selected");var r=n(this),u=r.find(p.title).eq(0),f=r.is("a[href]")?r:r.find("a[href]").eq(0),e=f.attr("href")||!1,h=f.attr("target")||!1,o=(u.html(),u.length>0&&u.text()),s=a.get.results(),c=r.data(k.result)||a.get.result(o,s);if(n.isFunction(v.onSelect)&&v.onSelect.call(it,c,s)===!1)return a.debug("Custom onSelect callback cancelled default select action"),void(ot=!0);a.hideResults();o&&a.set.value(o);e&&(a.verbose("Opening search link found in result",f),"_blank"==h||i.ctrlKey?t.open(e):t.location.href=e)}}},handleKeyboard:function(n){var f,t=y.find(p.result),e=y.find(p.category),o=t.filter("."+w.active),i=t.index(o),s=t.length,h=o.length>0,r=n.which,u={backspace:8,enter:13,escape:27,upArrow:38,downArrow:40};if(r==u.escape&&(a.verbose("Escape key pressed, blurring search field"),a.hideResults(),st=!0),a.is.visible())if(r==u.enter){if(a.verbose("Enter key pressed, selecting active result"),t.filter("."+w.active).length>0)return a.event.result.click.call(t.filter("."+w.active),n),n.preventDefault(),!1}else r==u.upArrow&&h?(a.verbose("Up key pressed, changing active result"),f=i-1<0?i:i-1,e.removeClass(w.active),t.removeClass(w.active).eq(f).addClass(w.active).closest(e).addClass(w.active),n.preventDefault()):r==u.downArrow&&(a.verbose("Down key pressed, changing active result"),f=i+1>=s?i:i+1,e.removeClass(w.active),t.removeClass(w.active).eq(f).addClass(w.active).closest(e).addClass(w.active),n.preventDefault());else r==u.enter&&(a.verbose("Enter key pressed, executing query"),a.query(),a.set.buttonPressed(),nt.one("keyup",a.remove.buttonFocus))},setup:{api:function(t,i){var r={debug:v.debug,on:!1,cache:!0,action:"search",urlData:{query:t},onSuccess:function(n){a.parse.response.call(it,n,t);i()},onFailure:function(){a.displayMessage(tt.serverError);i()},onAbort:function(){},onError:a.error};n.extend(!0,r,v.apiSettings);a.verbose("Setting up API request",r);y.api(r)}},can:{useAPI:function(){return void 0!==n.fn.api},show:function(){return a.is.focused()&&!a.is.visible()&&!a.is.empty()},transition:function(){return v.transition&&void 0!==n.fn.transition&&y.transition("is supported")}},is:{animating:function(){return b.hasClass(w.animating)},hidden:function(){return b.hasClass(w.hidden)},inMessage:function(t){if(t.target){var r=n(t.target);return n.contains(i.documentElement,t.target)&&r.closest(p.message).length>0}},empty:function(){return""===b.html()},visible:function(){return b.filter(":visible").length>0},focused:function(){return nt.filter(":focus").length>0}},get:{inputEvent:function(){var n=nt[0];return void 0!==n&&void 0!==n.oninput?"input":void 0!==n&&void 0!==n.onpropertychange?"propertychange":"keyup"},value:function(){return nt.val()},results:function(){return y.data(k.results)},result:function(t,i){var u=["title","id"],r=!1;return t=void 0!==t?t:a.get.value(),i=void 0!==i?i:a.get.results(),"category"===v.type?(a.debug("Finding result that matches",t),n.each(i,function(i,f){if(n.isArray(f.results)&&(r=a.search.object(t,f.results,u)[0]))return!1})):(a.debug("Finding result in results object",t),r=a.search.object(t,i,u)[0]),r||!1}},select:{firstResult:function(){a.verbose("Selecting first result");et.first().addClass(w.active)}},set:{focus:function(){y.addClass(w.focus)},loading:function(){y.addClass(w.loading)},value:function(n){a.verbose("Setting search input value",n);nt.val(n)},type:function(n){n=n||v.type;"category"==v.type&&y.addClass(v.type)},buttonPressed:function(){ft.addClass(w.pressed)}},remove:{loading:function(){y.removeClass(w.loading)},focus:function(){y.removeClass(w.focus)},buttonPressed:function(){ft.removeClass(w.pressed)}},query:function(t){t=n.isFunction(t)?t:function(){};var i=a.get.value(),r=a.read.cache(i);t=t||function(){};a.has.minimumCharacters()?(r?(a.debug("Reading result from cache",i),a.save.results(r.results),a.addResults(r.html),a.inject.id(r.results),t()):(a.debug("Querying for",i),n.isPlainObject(v.source)||n.isArray(v.source)?(a.search.local(i),t()):a.can.useAPI()?a.search.remote(i,t):(a.error(tt.source),t())),v.onSearchQuery.call(it,i)):a.hideResults()},search:{local:function(n){var i,t=a.search.object(n,v.content);a.set.loading();a.save.results(t);a.debug("Returned local search results",t);i=a.generateResults({results:t});a.remove.loading();a.addResults(i);a.inject.id(t);a.write.cache(n,{html:i,results:t})},remote:function(t,i){i=n.isFunction(i)?i:function(){};y.api("is loading")&&y.api("abort");a.setup.api(t,i);y.api("query")},object:function(t,i,r){var u=[],f=[],o=t.toString().replace(ht.escape,"\\$&"),s=new RegExp(ht.beginsWith+o,"i"),e=function(t,i){var r=n.inArray(i,u)==-1,e=n.inArray(i,f)==-1;r&&e&&t.push(i)};return i=i||v.source,r=void 0!==r?r:v.searchFields,n.isArray(r)||(r=[r]),void 0===i||i===!1?(a.error(tt.source),[]):(n.each(r,function(r,o){n.each(i,function(n,i){"string"==typeof i[o]&&(i[o].search(s)!==-1?e(u,i):v.searchFullText&&a.fuzzySearch(t,i[o])&&e(f,i))})}),n.merge(u,f))}},fuzzySearch:function(n,t){var r=t.length,u=n.length,i,f,e;if("string"!=typeof n||(n=n.toLowerCase(),t=t.toLowerCase(),u>r))return!1;if(u===r)return n===t;n:for(i=0,f=0;i<u;i++){for(e=n.charCodeAt(i);f<r;)if(t.charCodeAt(f++)===e)continue n;return!1}return!0},parse:{response:function(n,t){var i=a.generateResults(n);a.verbose("Parsing server response",n);void 0!==n&&void 0!==t&&void 0!==n[d.results]&&(a.addResults(i),a.inject.id(n[d.results]),a.write.cache(t,{html:i,results:n[d.results]}),a.save.results(n[d.results]))}},cancel:{query:function(){a.can.useAPI()&&y.api("abort")}},has:{minimumCharacters:function(){return a.get.value().length>=v.minCharacters},results:function(){return 0!==b.length&&""!=b.html()}},clear:{cache:function(n){var t=y.data(k.cache);n?n&&t&&t[n]&&(a.debug("Removing value from cache",n),delete t[n],y.data(k.cache,t)):(a.debug("Clearing cache",n),y.removeData(k.cache))}},read:{cache:function(n){var t=y.data(k.cache);return!!v.cache&&(a.verbose("Checking cache for generated html for query",n),"object"==typeof t&&void 0!==t[n]&&t[n])}},create:{id:function(n,t){var r,i,u=n+1;return void 0!==t?(r=String.fromCharCode(97+t),i=r+u,a.verbose("Creating category result id",i)):(i=u,a.verbose("Creating result id",i)),i},results:function(){0===b.length&&(b=n("<div />").addClass(w.results).appendTo(y))}},inject:{result:function(n,t,i){a.verbose("Injecting result into results");var r=void 0!==i?b.children().eq(i).children(p.result).eq(t):b.children(p.result).eq(t);a.verbose("Injecting results metadata",r);r.data(k.result,n)},id:function(t){a.debug("Injecting unique ids into results");var r=0,i=0;return"category"===v.type?n.each(t,function(t,u){i=0;n.each(u.results,function(n){var t=u.results[n];void 0===t.id&&(t.id=a.create.id(i,r));a.inject.result(t,i,r);i++});r++}):n.each(t,function(n){var r=t[n];void 0===r.id&&(r.id=a.create.id(i));a.inject.result(r,i);i++}),t}},save:{results:function(n){a.verbose("Saving current search results to metadata",n);y.data(k.results,n)}},write:{cache:function(n,t){var i=void 0!==y.data(k.cache)?y.data(k.cache):{};v.cache&&(a.verbose("Writing generated html to cache",n,t),i[n]=t,y.data(k.cache,i))}},addResults:function(t){if(n.isFunction(v.onResultsAdd)&&v.onResultsAdd.call(b,t)===!1)return a.debug("onResultsAdd callback cancelled default action"),!1;t?(b.html(t),a.refreshResults(),v.selectFirstResult&&a.select.firstResult(),a.showResults()):a.hideResults(function(){b.empty()})},showResults:function(t){t=n.isFunction(t)?t:function(){};st||!a.is.visible()&&a.has.results()&&(a.can.transition()?(a.debug("Showing results with css animations"),b.transition({animation:v.transition+" in",debug:v.debug,verbose:v.verbose,duration:v.duration,onComplete:function(){t()},queue:!0})):(a.debug("Showing results with javascript"),b.stop().fadeIn(v.duration,v.easing)),v.onResultsOpen.call(b))},hideResults:function(t){t=n.isFunction(t)?t:function(){};a.is.visible()&&(a.can.transition()?(a.debug("Hiding results with css animations"),b.transition({animation:v.transition+" out",debug:v.debug,verbose:v.verbose,duration:v.duration,onComplete:function(){t()},queue:!0})):(a.debug("Hiding results with javascript"),b.stop().fadeOut(v.duration,v.easing)),v.onResultsClose.call(b))},generateResults:function(t){a.debug("Generating html from response",t);var r=v.templates[v.type],u=n.isPlainObject(t[d.results])&&!n.isEmptyObject(t[d.results]),f=n.isArray(t[d.results])&&t[d.results].length>0,i="";return u||f?(v.maxResults>0&&(u?"standard"==v.type&&a.error(tt.maxResults):t[d.results]=t[d.results].slice(0,v.maxResults)),n.isFunction(r)?i=r(t,d):a.error(tt.noTemplate,!1)):v.showNoResults&&(i=a.displayMessage(tt.noResults,"empty")),v.onResults.call(it,t),i},displayMessage:function(n,t){return t=t||"standard",a.debug("Displaying message",n,t),a.addResults(v.templates.message(n,t)),v.templates.message(n,t)},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:it,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;o=!1;clearTimeout(a.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");e.length>1&&(t+=" ("+e.length+")");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=rt;return i=i||l,r=it||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};c?(void 0===rt&&a.initialize(),a.invoke(h)):(void 0!==rt&&rt.invoke("destroy"),a.initialize())}),void 0!==u?u:this};n.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["title","description"],displayField:"",searchFullText:!0,automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(){},onResults:function(){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Semantic API module was not included",noResults:"Your search returned no results",logging:"Error in debug logging, exiting.",noEndpoint:"No search endpoint was specified",noTemplate:"A valid template name was not specified.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,beginsWith:"(?:s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=function(n){return t[n]};return/[&<>"'`]/.test(n)?n.replace(/[&<>"'`]/g,i):n},message:function(n,t){var i="";return void 0!==n&&void 0!==t&&(i+='<div class="message '+t+'">',i+="empty"==t?'<div class="header">No Results<\/div class="header"><div class="description">'+n+'<\/div class="description">':' <div class="description">'+n+"<\/div>",i+="<\/div>"),i},category:function(t,i){var r="";return n.fn.search.settings.templates.escape,void 0!==t[i.categoryResults]&&(n.each(t[i.categoryResults],function(t,u){void 0!==u[i.results]&&u.results.length>0&&(r+='<div class="category">',void 0!==u[i.categoryName]&&(r+='<div class="name">'+u[i.categoryName]+"<\/div>"),n.each(u.results,function(n,t){r+=t[i.url]?'<a class="result" href="'+t[i.url]+'">':'<a class="result">';void 0!==t[i.image]&&(r+='<div class="image"> <img src="'+t[i.image]+'"><\/div>');r+='<div class="content">';void 0!==t[i.price]&&(r+='<div class="price">'+t[i.price]+"<\/div>");void 0!==t[i.title]&&(r+='<div class="title">'+t[i.title]+"<\/div>");void 0!==t[i.description]&&(r+='<div class="description">'+t[i.description]+"<\/div>");r+="<\/div>";r+="<\/a>"}),r+="<\/div>")}),t[i.action]&&(r+='<a href="'+t[i.action][i.actionURL]+'" class="action">'+t[i.action][i.actionText]+"<\/a>"),r)},standard:function(t,i){var r="";return void 0!==t[i.results]&&(n.each(t[i.results],function(n,t){r+=t[i.url]?'<a class="result" href="'+t[i.url]+'">':'<a class="result">';void 0!==t[i.image]&&(r+='<div class="image"> <img src="'+t[i.image]+'"><\/div>');r+='<div class="content">';void 0!==t[i.price]&&(r+='<div class="price">'+t[i.price]+"<\/div>");void 0!==t[i.title]&&(r+='<div class="title">'+t[i.title]+"<\/div>");void 0!==t[i.description]&&(r+='<div class="description">'+t[i.description]+"<\/div>");r+="<\/div>";r+="<\/a>"}),t[i.action]&&(r+='<a href="'+t[i.action][i.actionURL]+'" class="action">'+t[i.action][i.actionText]+"<\/a>"),r)}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.shape=function(r){var u,e=n(this),o=(n("body"),(new Date).getTime()),f=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1),l=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return e.each(function(){var y,a,t,rt=e.selector||"",v=n.isPlainObject(r)?n.extend(!0,{},n.fn.shape.settings,r):n.extend({},n.fn.shape.settings),ut=v.namespace,b=v.selector,ft=v.error,w=v.className,et="."+ut,it="module-"+ut,p=n(this),k=p.find(b.sides),d=p.find(b.side),tt=!1,g=this,nt=p.data(it);t={initialize:function(){t.verbose("Initializing module for",g);t.set.defaultSide();t.instantiate()},instantiate:function(){t.verbose("Storing instance of module",t);nt=t;p.data(it,nt)},destroy:function(){t.verbose("Destroying previous module for",g);p.removeData(it).off(et)},refresh:function(){t.verbose("Refreshing selector cache for",g);p=n(g);k=n(this).find(b.shape);d=n(this).find(b.side)},repaint:function(){t.verbose("Forcing repaint event");var n=k[0]||i.createElement("div");n.offsetWidth},animate:function(n,i){t.verbose("Animating box with properties",n);i=i||function(n){t.verbose("Executing animation callback");void 0!==n&&n.stopPropagation();t.reset();t.set.active()};v.beforeChange.call(a[0]);t.get.transitionEvent()?(t.verbose("Starting CSS animation"),p.addClass(w.animating),k.css(n).one(t.get.transitionEvent(),i),t.set.duration(v.duration),l(function(){p.addClass(w.animating);y.addClass(w.hidden)})):i()},queue:function(n){t.debug("Queueing animation of",n);k.one(t.get.transitionEvent(),function(){t.debug("Executing queued animation");setTimeout(function(){p.shape(n)},0)})},reset:function(){t.verbose("Animating states reset");p.removeClass(w.animating).attr("style","").removeAttr("style");k.attr("style","").removeAttr("style");d.attr("style","").removeAttr("style").removeClass(w.hidden);a.removeClass(w.animating).attr("style","").removeAttr("style")},is:{complete:function(){return d.filter("."+w.active)[0]==a[0]},animating:function(){return p.hasClass(w.animating)}},set:{defaultSide:function(){y=p.find("."+v.className.active);a=y.next(b.side).length>0?y.next(b.side):p.find(b.side).first();tt=!1;t.verbose("Active side set to",y);t.verbose("Next side set to",a)},duration:function(n){n=n||v.duration;n="number"==typeof n?n+"ms":n;t.verbose("Setting animation duration",n);(v.duration||0===v.duration)&&k.add(d).css({"-webkit-transition-duration":n,"-moz-transition-duration":n,"-ms-transition-duration":n,"-o-transition-duration":n,"transition-duration":n})},currentStageSize:function(){var n=p.find("."+v.className.active),t=n.outerWidth(!0),i=n.outerHeight(!0);p.css({width:t,height:i})},stageSize:function(){var n=p.clone().addClass(w.loading),i=n.find("."+v.className.active),r=tt?n.find(b.side).eq(tt):i.next(b.side).length>0?i.next(b.side):n.find(b.side).first(),u="next"==v.width?r.outerWidth(!0):"initial"==v.width?p.width():v.width,f="next"==v.height?r.outerHeight(!0):"initial"==v.height?p.height():v.height;i.removeClass(w.active);r.addClass(w.active);n.insertAfter(p);n.remove();"auto"!=v.width&&(p.css("width",u+v.jitter),t.verbose("Specifying width during animation",u));"auto"!=v.height&&(p.css("height",f+v.jitter),t.verbose("Specifying height during animation",f))},nextSide:function(n){tt=n;a=d.filter(n);tt=d.index(a);0===a.length&&(t.set.defaultSide(),t.error(ft.side));t.verbose("Next side manually set to",a)},active:function(){t.verbose("Setting new side to active",a);d.removeClass(w.active);a.addClass(w.active);v.onChange.call(a[0]);t.set.defaultSide()}},flip:{up:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip up");else{t.debug("Flipping up",a);var n=t.get.transform.up();t.set.stageSize();t.stage.above();t.animate(n)}},down:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip down");else{t.debug("Flipping down",a);var n=t.get.transform.down();t.set.stageSize();t.stage.below();t.animate(n)}},left:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip left");else{t.debug("Flipping left",a);var n=t.get.transform.left();t.set.stageSize();t.stage.left();t.animate(n)}},right:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip right");else{t.debug("Flipping right",a);var n=t.get.transform.right();t.set.stageSize();t.stage.right();t.animate(n)}},over:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);t.is.animating()?t.queue("flip over"):(t.debug("Flipping over",a),t.set.stageSize(),t.stage.behind(),t.animate(t.get.transform.over()))},back:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);t.is.animating()?t.queue("flip back"):(t.debug("Flipping back",a),t.set.stageSize(),t.stage.behind(),t.animate(t.get.transform.back()))}},get:{transform:{up:function(){var n={y:-((y.outerHeight(!0)-a.outerHeight(!0))/2),z:-(y.outerHeight(!0)/2)};return{transform:"translateY("+n.y+"px) translateZ("+n.z+"px) rotateX(-90deg)"}},down:function(){var n={y:-((y.outerHeight(!0)-a.outerHeight(!0))/2),z:-(y.outerHeight(!0)/2)};return{transform:"translateY("+n.y+"px) translateZ("+n.z+"px) rotateX(90deg)"}},left:function(){var n={x:-((y.outerWidth(!0)-a.outerWidth(!0))/2),z:-(y.outerWidth(!0)/2)};return{transform:"translateX("+n.x+"px) translateZ("+n.z+"px) rotateY(90deg)"}},right:function(){var n={x:-((y.outerWidth(!0)-a.outerWidth(!0))/2),z:-(y.outerWidth(!0)/2)};return{transform:"translateX("+n.x+"px) translateZ("+n.z+"px) rotateY(-90deg)"}},over:function(){return{transform:"translateX("+{x:-((y.outerWidth(!0)-a.outerWidth(!0))/2)}.x+"px) rotateY(180deg)"}},back:function(){return{transform:"translateX("+{x:-((y.outerWidth(!0)-a.outerWidth(!0))/2)}.x+"px) rotateY(-180deg)"}}},transitionEvent:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]},nextSide:function(){return y.next(b.side).length>0?y.next(b.side):p.find(b.side).first()}},stage:{above:function(){var n={origin:(y.outerHeight(!0)-a.outerHeight(!0))/2,depth:{active:a.outerHeight(!0)/2,next:y.outerHeight(!0)/2}};t.verbose("Setting the initial animation position as above",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({top:n.origin+"px",transform:"rotateX(90deg) translateZ("+n.depth.next+"px)"})},below:function(){var n={origin:(y.outerHeight(!0)-a.outerHeight(!0))/2,depth:{active:a.outerHeight(!0)/2,next:y.outerHeight(!0)/2}};t.verbose("Setting the initial animation position as below",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({top:n.origin+"px",transform:"rotateX(-90deg) translateZ("+n.depth.next+"px)"})},left:function(){var i={active:y.outerWidth(!0),next:a.outerWidth(!0)},n={origin:(i.active-i.next)/2,depth:{active:i.next/2,next:i.active/2}};t.verbose("Setting the initial animation position as left",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({left:n.origin+"px",transform:"rotateY(-90deg) translateZ("+n.depth.next+"px)"})},right:function(){var i={active:y.outerWidth(!0),next:a.outerWidth(!0)},n={origin:(i.active-i.next)/2,depth:{active:i.next/2,next:i.active/2}};t.verbose("Setting the initial animation position as left",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({left:n.origin+"px",transform:"rotateY(90deg) translateZ("+n.depth.next+"px)"})},behind:function(){var n={active:y.outerWidth(!0),next:a.outerWidth(!0)},i={origin:(n.active-n.next)/2,depth:{active:n.next/2,next:n.active/2}};t.verbose("Setting the initial animation position as behind",a,i);y.css({transform:"rotateY(0deg)"});a.addClass(w.animating).css({left:i.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(i,r){if(t.debug("Changing setting",i,r),n.isPlainObject(i))n.extend(!0,v,i);else{if(void 0===r)return v[i];n.isPlainObject(v[i])?n.extend(!0,v[i],r):v[i]=r}},internal:function(i,r){if(n.isPlainObject(i))n.extend(!0,t,i);else{if(void 0===r)return t[i];t[i]=r}},debug:function(){!v.silent&&v.debug&&(v.performance?t.performance.log(arguments):(t.debug=Function.prototype.bind.call(console.info,console,v.name+":"),t.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?t.performance.log(arguments):(t.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),t.verbose.apply(console,arguments)))},error:function(){v.silent||(t.error=Function.prototype.bind.call(console.error,console,v.name+":"),t.error.apply(console,arguments))},performance:{log:function(n){var i,r,u;v.performance&&(i=(new Date).getTime(),u=o||i,r=i-u,o=i,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":r}));clearTimeout(t.performance.timer);t.performance.timer=setTimeout(t.performance.display,500)},display:function(){var i=v.name+":",r=0;o=!1;clearTimeout(t.performance.timer);n.each(f,function(n,t){r+=t["Execution Time"]});i+=" "+r+"ms";rt&&(i+=" '"+rt+"'");e.length>1&&(i+=" ("+e.length+")");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(i),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=nt;return i=i||c,r=g||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};h?(void 0===nt&&t.initialize(),t.invoke(s)):(void 0!==nt&&nt.invoke("destroy"),t.initialize())}),void 0!==u?u:this};n.fn.shape.settings={name:"Shape",silent:!1,debug:!1,verbose:!1,jitter:0,performance:!0,namespace:"shape",width:"initial",height:"initial",beforeChange:function(){},onChange:function(){},allowRepeats:!1,duration:!1,error:{side:"You tried to switch to a side that does not exist.",method:"The method you called is not defined"},className:{animating:"animating",hidden:"hidden",loading:"loading",active:"active"},selector:{sides:".sides",side:".side"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.sidebar=function(r){var u,c=n(this),o=n(t),s=n(i),l=n("html"),y=n("head"),a=c.selector||"",h=(new Date).getTime(),f=[],v=arguments[0],p="string"==typeof v,w=[].slice.call(arguments,1),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return c.each(function(){var ft,tt,ct,vt,ut,c,b=n.isPlainObject(r)?n.extend(!0,{},n.fn.sidebar.settings,r):n.extend({},n.fn.sidebar.settings),it=b.selector,d=b.className,yt=b.namespace,lt=b.regExp,ot=b.error,st="."+yt,at="module-"+yt,k=n(this),nt=n(b.context),et=k.children(it.sidebar),pt=nt.children(it.fixed),rt=nt.children(it.pusher),g=this,ht=k.data(at);c={initialize:function(){c.debug("Initializing sidebar",r);c.create.id();ut=c.get.transitionEvent();c.is.ios()&&c.set.ios();b.delaySetup?e(c.setup.layout):c.setup.layout();e(function(){c.setup.cache()});c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c);ht=c;k.data(at,c)},create:{id:function(){ct=(Math.random().toString(16)+"000000000").substr(2,8);tt="."+ct;c.verbose("Creating unique id for element",ct)}},destroy:function(){c.verbose("Destroying previous module for",k);k.off(st).removeData(at);c.is.ios()&&c.remove.ios();nt.off(tt);o.off(tt);s.off(tt)},event:{clickaway:function(n){var t=rt.find(n.target).length>0||rt.is(n.target),i=nt.is(n.target);t&&(c.verbose("User clicked on dimmed page"),c.hide());i&&(c.verbose("User clicked on dimmable context (scaled out page)"),c.hide())},touch:function(){},containScroll:function(){g.scrollTop<=0&&(g.scrollTop=1);g.scrollTop+g.offsetHeight>=g.scrollHeight&&(g.scrollTop=g.scrollHeight-g.offsetHeight-1)},scroll:function(t){0===n(t.target).closest(it.sidebar).length&&t.preventDefault()}},bind:{clickaway:function(){c.verbose("Adding clickaway events to context",nt);b.closable&&nt.on("click"+tt,c.event.clickaway).on("touchend"+tt,c.event.clickaway)},scrollLock:function(){b.scrollLock&&(c.debug("Disabling page scroll"),o.on("DOMMouseScroll"+tt,c.event.scroll));c.verbose("Adding events to contain sidebar scroll");s.on("touchmove"+tt,c.event.touch);k.on("scroll"+st,c.event.containScroll)}},unbind:{clickaway:function(){c.verbose("Removing clickaway events from context",nt);nt.off(tt)},scrollLock:function(){c.verbose("Removing scroll lock from page");s.off(tt);o.off(tt);k.off("scroll"+st)}},add:{inlineCSS:function(){var r,u=c.cache.width||k.outerWidth(),f=c.cache.height||k.outerHeight(),e=c.is.rtl(),t=c.get.direction(),i={left:u,right:-u,top:f,bottom:-f};e&&(c.verbose("RTL detected, flipping widths"),i.left=-u,i.right=u);r="<style>";"left"===t||"right"===t?(c.debug("Adding CSS rules for animation distance",u),r+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher {   -webkit-transform: translate3d("+i[t]+"px, 0, 0);           transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(r+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher {   -webkit-transform: translate3d(0, "+i[t]+"px, 0);           transform: translate3d(0, "+i[t]+"px, 0); }");c.is.ie()&&("left"===t||"right"===t?(c.debug("Adding CSS rules for animation distance",u),r+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher:after {   -webkit-transform: translate3d("+i[t]+"px, 0, 0);           transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(r+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher:after {   -webkit-transform: translate3d(0, "+i[t]+"px, 0);           transform: translate3d(0, "+i[t]+"px, 0); }"),r+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {   -webkit-transform: translate3d(0px, 0, 0);           transform: translate3d(0px, 0, 0); }");r+="<\/style>";ft=n(r).appendTo(y);c.debug("Adding sizing css to head",ft)}},refresh:function(){c.verbose("Refreshing selector cache");nt=n(b.context);et=nt.children(it.sidebar);rt=nt.children(it.pusher);pt=nt.children(it.fixed);c.clear.cache()},refreshSidebars:function(){c.verbose("Refreshing other sidebars");et=nt.children(it.sidebar)},repaint:function(){c.verbose("Forcing repaint event");g.style.display="none";g.offsetHeight;g.scrollTop=g.scrollTop;g.style.display=""},setup:{cache:function(){c.cache={width:k.outerWidth(),height:k.outerHeight(),rtl:"rtl"==k.css("direction")}},layout:function(){0===nt.children(it.pusher).length&&(c.debug("Adding wrapper element for sidebar"),c.error(ot.pusher),rt=n('<div class="pusher" />'),nt.children().not(it.omitted).not(et).wrapAll(rt),c.refresh());0!==k.nextAll(it.pusher).length&&k.nextAll(it.pusher)[0]===rt[0]||(c.debug("Moved sidebar to correct parent element"),c.error(ot.movedSidebar,g),k.detach().prependTo(nt),c.refresh());c.clear.cache();c.set.pushable();c.set.direction()}},attachEvents:function(t,i){var r=n(t);i=n.isFunction(c[i])?c[i]:c.toggle;r.length>0?(c.debug("Attaching sidebar events to element",t,i),r.on("click"+st,i)):c.error(ot.notFound,t)},show:function(t){if(t=n.isFunction(t)?t:function(){},c.is.hidden()){if(c.refreshSidebars(),b.overlay&&(c.error(ot.overlay),b.transition="overlay"),c.refresh(),c.othersActive())if(c.debug("Other sidebars currently visible"),b.exclusive){if("overlay"!=b.transition)return void c.hideOthers(c.show);c.hideOthers()}else b.transition="overlay";c.pushPage(function(){t.call(g);b.onShow.call(g)});b.onChange.call(g);b.onVisible.call(g)}else c.debug("Sidebar is already visible")},hide:function(t){t=n.isFunction(t)?t:function(){};(c.is.visible()||c.is.animating())&&(c.debug("Hiding sidebar",t),c.refreshSidebars(),c.pullPage(function(){t.call(g);b.onHidden.call(g)}),b.onChange.call(g),b.onHide.call(g))},othersAnimating:function(){return et.not(k).filter("."+d.animating).length>0},othersVisible:function(){return et.not(k).filter("."+d.visible).length>0},othersActive:function(){return c.othersVisible()||c.othersAnimating()},hideOthers:function(n){var t=et.not(k).filter("."+d.visible),i=t.length,r=0;n=n||function(){};t.sidebar("hide",function(){++r==i&&n()})},toggle:function(){c.verbose("Determining toggled direction");c.is.hidden()?c.show():c.hide()},pushPage:function(t){var u,f,r,o=c.get.transition(),i="overlay"===o||c.othersActive()?k:rt;t=n.isFunction(t)?t:function(){};"scale down"==b.transition&&c.scrollToTop();c.set.transition(o);c.repaint();u=function(){c.bind.clickaway();c.add.inlineCSS();c.set.animating();c.set.visible()};f=function(){c.set.dimmed()};r=function(n){n.target==i[0]&&(i.off(ut+tt,r),c.remove.animating(),c.bind.scrollLock(),t.call(g))};i.off(ut+tt);i.on(ut+tt,r);e(u);b.dimPage&&!c.othersVisible()&&e(f)},pullPage:function(t){var f,r,u=c.get.transition(),i="overlay"==u||c.othersActive()?k:rt;t=n.isFunction(t)?t:function(){};c.verbose("Removing context push state",c.get.direction());c.unbind.clickaway();c.unbind.scrollLock();f=function(){c.set.transition(u);c.set.animating();c.remove.visible();b.dimPage&&!c.othersVisible()&&rt.removeClass(d.dimmed)};r=function(n){n.target==i[0]&&(i.off(ut+tt,r),c.remove.animating(),c.remove.transition(),c.remove.inlineCSS(),("scale down"==u||b.returnScroll&&c.is.mobile())&&c.scrollBack(),t.call(g))};i.off(ut+tt);i.on(ut+tt,r);e(f)},scrollToTop:function(){c.verbose("Scrolling to top of page to avoid animation issues");vt=n(t).scrollTop();k.scrollTop(0);t.scrollTo(0,0)},scrollBack:function(){c.verbose("Scrolling back to original page position");t.scrollTo(0,vt)},clear:{cache:function(){c.verbose("Clearing cached dimensions");c.cache={}}},set:{ios:function(){l.addClass(d.ios)},pushed:function(){nt.addClass(d.pushed)},pushable:function(){nt.addClass(d.pushable)},dimmed:function(){rt.addClass(d.dimmed)},active:function(){k.addClass(d.active)},animating:function(){k.addClass(d.animating)},transition:function(n){n=n||c.get.transition();k.addClass(n)},direction:function(n){n=n||c.get.direction();k.addClass(d[n])},visible:function(){k.addClass(d.visible)},overlay:function(){k.addClass(d.overlay)}},remove:{inlineCSS:function(){c.debug("Removing inline css styles",ft);ft&&ft.length>0&&ft.remove()},ios:function(){l.removeClass(d.ios)},pushed:function(){nt.removeClass(d.pushed)},pushable:function(){nt.removeClass(d.pushable)},active:function(){k.removeClass(d.active)},animating:function(){k.removeClass(d.animating)},transition:function(n){n=n||c.get.transition();k.removeClass(n)},direction:function(n){n=n||c.get.direction();k.removeClass(d[n])},visible:function(){k.removeClass(d.visible)},overlay:function(){k.removeClass(d.overlay)}},get:{direction:function(){return k.hasClass(d.top)?d.top:k.hasClass(d.right)?d.right:k.hasClass(d.bottom)?d.bottom:d.left},transition:function(){var n,t=c.get.direction();return n=c.is.mobile()?"auto"==b.mobileTransition?b.defaultTransition.mobile[t]:b.mobileTransition:"auto"==b.transition?b.defaultTransition.computer[t]:b.transition,c.verbose("Determined transition",n),n},transitionEvent:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]}},is:{ie:function(){var n=!t.ActiveXObject&&"ActiveXObject"in t,i="ActiveXObject"in t;return n||i},ios:function(){var n=navigator.userAgent,t=n.match(lt.ios),i=n.match(lt.mobileChrome);return!(!t||i)&&(c.verbose("Browser was found to be iOS",n),!0)},mobile:function(){var n=navigator.userAgent;return n.match(lt.mobile)?(c.verbose("Browser was found to be mobile",n),!0):(c.verbose("Browser is not mobile, using regular transition",n),!1)},hidden:function(){return!c.is.visible()},visible:function(){return k.hasClass(d.visible)},open:function(){return c.is.visible()},closed:function(){return c.is.hidden()},vertical:function(){return k.hasClass(d.top)},animating:function(){return nt.hasClass(d.animating)},rtl:function(){return void 0===c.cache.rtl&&(c.cache.rtl="rtl"==k.css("direction")),c.cache.rtl}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,b,t);else{if(void 0===i)return b[t];n.isPlainObject(b[t])?n.extend(!0,b[t],i):b[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!b.silent&&b.debug&&(b.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,b.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!b.silent&&b.verbose&&b.debug&&(b.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,b.name+":"),c.verbose.apply(console,arguments)))},error:function(){b.silent||(c.error=Function.prototype.bind.call(console.error,console,b.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;b.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=b.name+":",i=0;h=!1;clearTimeout(c.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";a&&(t+=" '"+a+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ht;return i=i||w,r=g||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(c.error(ot.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};p?(void 0===ht&&c.initialize(),c.invoke(v)):(void 0!==ht&&c.invoke("destroy"),c.initialize())}),void 0!==u?u:this};n.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,duration:500,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",dimmed:"dimmed",ios:"ios",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.sticky=function(r){var u,o=n(this),s=o.selector||"",e=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return o.each(function(){var b,g,tt,d,o,a=n.isPlainObject(r)?n.extend(!0,{},n.fn.sticky.settings,r):n.extend({},n.fn.sticky.settings),y=a.className,ft=a.namespace,it=a.error,k="."+ft,rt="module-"+ft,v=n(this),et=n(t),w=n(a.scrollContext),nt=(v.selector,v.data(rt)),ut=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)},p=this;o={initialize:function(){o.determineContainer();o.determineContext();o.verbose("Initializing sticky",a,b);o.save.positions();o.checkErrors();o.bind.events();a.observeChanges&&o.observeChanges();o.instantiate()},instantiate:function(){o.verbose("Storing instance of module",o);nt=o;v.data(rt,o)},destroy:function(){o.verbose("Destroying previous instance");o.reset();tt&&tt.disconnect();d&&d.disconnect();et.off("load"+k,o.event.load).off("resize"+k,o.event.resize);w.off("scrollchange"+k,o.event.scrollchange);v.removeData(rt)},observeChanges:function(){"MutationObserver"in t&&(tt=new MutationObserver(o.event.documentChanged),d=new MutationObserver(o.event.changed),tt.observe(i,{childList:!0,subtree:!0}),d.observe(p,{childList:!0,subtree:!0}),d.observe(g[0],{childList:!0,subtree:!0}),o.debug("Setting up mutation observer",d))},determineContainer:function(){b=a.container?n(a.container):v.offsetParent()},determineContext:function(){g=a.context?n(a.context):b;0===g.length},checkErrors:function(){if(o.is.hidden()&&o.error(it.visible,v),o.cache.element.height>o.cache.context.height)return o.reset(),void o.error(it.elementSize,v)},bind:{events:function(){et.on("load"+k,o.event.load).on("resize"+k,o.event.resize);w.off("scroll"+k).on("scroll"+k,o.event.scroll).on("scrollchange"+k,o.event.scrollchange)}},event:{changed:function(n){clearTimeout(o.timer);o.timer=setTimeout(function(){o.verbose("DOM tree modified, updating sticky menu",n);o.refresh()},100)},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==p||n(t).find(p).length>0)&&(o.debug("Element removed from DOM, tearing down events"),o.destroy())})})},load:function(){o.verbose("Page contents finished loading");ut(o.refresh)},resize:function(){o.verbose("Window resized");ut(o.refresh)},scroll:function(){ut(function(){w.triggerHandler("scrollchange"+k,w.scrollTop())})},scrollchange:function(n,t){o.stick(t);a.onScroll.call(p)}},refresh:function(n){o.reset();a.context||o.determineContext();n&&o.determineContainer();o.save.positions();o.stick();a.onReposition.call(p)},supports:{sticky:function(){var t=n("<div/>");return t[0],t.addClass(y.supported),t.css("position").match("sticky")}},save:{lastScroll:function(n){o.lastScroll=n},elementScroll:function(n){o.elementScroll=n},positions:function(){var t={height:w.height()},n={margin:{top:parseInt(v.css("margin-top"),10),bottom:parseInt(v.css("margin-bottom"),10)},offset:v.offset(),width:v.outerWidth(),height:v.outerHeight()},i={offset:g.offset(),height:g.outerHeight()};b.outerHeight();o.is.standardScroll()||(o.debug("Non-standard scroll. Removing scroll offset from element offset"),t.top=w.scrollTop(),t.left=w.scrollLeft(),n.offset.top+=t.top,i.offset.top+=t.top,n.offset.left+=t.left,i.offset.left+=t.left);o.cache={fits:n.height<t.height,scrollContext:{height:t.height},element:{margin:n.margin,top:n.offset.top-n.margin.top,left:n.offset.left,width:n.width,height:n.height,bottom:n.offset.top+n.height},context:{top:i.offset.top,height:i.height,bottom:i.offset.top+i.height}};o.set.containerSize();o.set.size();o.stick();o.debug("Caching element positions",o.cache)}},get:{direction:function(n){var t="down";return n=n||w.scrollTop(),void 0!==o.lastScroll&&(o.lastScroll<n?t="down":o.lastScroll>n&&(t="up")),t},scrollChange:function(n){return n=n||w.scrollTop(),o.lastScroll?n-o.lastScroll:0},currentElementScroll:function(){return o.elementScroll?o.elementScroll:o.is.top()?Math.abs(parseInt(v.css("top"),10))||0:Math.abs(parseInt(v.css("bottom"),10))||0},elementScroll:function(n){n=n||w.scrollTop();var r=o.cache.element,u=o.cache.scrollContext,f=o.get.scrollChange(n),i=r.height-u.height+a.offset,e=o.get.currentElementScroll(),t=e+f;return o.cache.fits||t<0?0:t>i?i:t}},remove:{lastScroll:function(){delete o.lastScroll},elementScroll:function(){delete o.elementScroll},offset:function(){v.css("margin-top","")}},set:{offset:function(){o.verbose("Setting offset on element",a.offset);v.css("margin-top",a.offset)},containerSize:function(){var n=b.get(0).tagName;"HTML"===n||"body"==n?o.determineContainer():Math.abs(b.outerHeight()-o.cache.context.height)>a.jitter&&(o.debug("Context has padding, specifying exact height for container",o.cache.context.height),b.css({height:o.cache.context.height}))},minimumSize:function(){var n=o.cache.element;b.css("min-height",n.height)},scroll:function(n){o.debug("Setting scroll on element",n);o.elementScroll!=n&&(o.is.top()&&v.css("bottom","").css("top",-n),o.is.bottom()&&v.css("top","").css("bottom",n))},size:function(){0!==o.cache.element.height&&0!==o.cache.element.width&&(p.style.setProperty("width",o.cache.element.width+"px","important"),p.style.setProperty("height",o.cache.element.height+"px","important"))}},is:{standardScroll:function(){return w[0]==t},top:function(){return v.hasClass(y.top)},bottom:function(){return v.hasClass(y.bottom)},initialPosition:function(){return!o.is.fixed()&&!o.is.bound()},hidden:function(){return!v.is(":visible")},bound:function(){return v.hasClass(y.bound)},fixed:function(){return v.hasClass(y.fixed)}},stick:function(n){var f=n||w.scrollTop(),u=o.cache,e=u.fits,t=u.element,c=u.scrollContext,i=u.context,s=o.is.bottom()&&a.pushing?a.bottomOffset:a.offset,n={top:f+s,bottom:f+s+c.height},r=(o.get.direction(n.top),e?0:o.get.elementScroll(n.top)),h=!e;0!==t.height&&(o.is.initialPosition()?n.top>=i.bottom?(o.debug("Initial element position is bottom of container"),o.bindBottom()):n.top>t.top&&(t.height+n.top-r>=i.bottom?(o.debug("Initial element position is bottom of container"),o.bindBottom()):(o.debug("Initial element position is fixed"),o.fixTop())):o.is.fixed()?o.is.top()?n.top<=t.top?(o.debug("Fixed element reached top of container"),o.setInitialPosition()):t.height+n.top-r>=i.bottom?(o.debug("Fixed element reached bottom of container"),o.bindBottom()):h&&(o.set.scroll(r),o.save.lastScroll(n.top),o.save.elementScroll(r)):o.is.bottom()&&(n.bottom-t.height<=t.top?(o.debug("Bottom fixed rail has reached top of container"),o.setInitialPosition()):n.bottom>=i.bottom?(o.debug("Bottom fixed rail has reached bottom of container"),o.bindBottom()):h&&(o.set.scroll(r),o.save.lastScroll(n.top),o.save.elementScroll(r))):o.is.bottom()&&(n.top<=t.top?(o.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),o.setInitialPosition()):a.pushing?o.is.bound()&&n.bottom<=i.bottom&&(o.debug("Fixing bottom attached element to bottom of browser."),o.fixBottom()):o.is.bound()&&n.top<=i.bottom-t.height&&(o.debug("Fixing bottom attached element to top of browser."),o.fixTop())))},bindTop:function(){o.debug("Binding element to top of parent container");o.remove.offset();v.css({left:"",top:"",marginBottom:""}).removeClass(y.fixed).removeClass(y.bottom).addClass(y.bound).addClass(y.top);a.onTop.call(p);a.onUnstick.call(p)},bindBottom:function(){o.debug("Binding element to bottom of parent container");o.remove.offset();v.css({left:"",top:""}).removeClass(y.fixed).removeClass(y.top).addClass(y.bound).addClass(y.bottom);a.onBottom.call(p);a.onUnstick.call(p)},setInitialPosition:function(){o.debug("Returning to initial position");o.unfix();o.unbind()},fixTop:function(){o.debug("Fixing element to top of page");o.set.minimumSize();o.set.offset();v.css({left:o.cache.element.left,bottom:"",marginBottom:""}).removeClass(y.bound).removeClass(y.bottom).addClass(y.fixed).addClass(y.top);a.onStick.call(p)},fixBottom:function(){o.debug("Sticking element to bottom of page");o.set.minimumSize();o.set.offset();v.css({left:o.cache.element.left,bottom:"",marginBottom:""}).removeClass(y.bound).removeClass(y.top).addClass(y.fixed).addClass(y.bottom);a.onStick.call(p)},unbind:function(){o.is.bound()&&(o.debug("Removing container bound position on element"),o.remove.offset(),v.removeClass(y.bound).removeClass(y.top).removeClass(y.bottom))},unfix:function(){o.is.fixed()&&(o.debug("Removing fixed position on element"),o.remove.offset(),v.removeClass(y.fixed).removeClass(y.top).removeClass(y.bottom),a.onUnstick.call(p))},reset:function(){o.debug("Resetting elements position");o.unbind();o.unfix();o.resetCSS();o.remove.offset();o.remove.lastScroll()},resetCSS:function(){v.css({width:"",height:""});b.css({height:""})},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,o,t);else{if(void 0===i)return o[t];o[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,a.name+":"),o.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),o.verbose.apply(console,arguments)))},error:function(){a.silent||(o.error=Function.prototype.bind.call(console.error,console,a.name+":"),o.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:p,"Execution Time":i}));clearTimeout(o.performance.timer);o.performance.timer=setTimeout(o.performance.display,0)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(o.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=nt;return i=i||l,r=p||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};c?(void 0===nt&&o.initialize(),o.invoke(h)):(void 0!==nt&&nt.invoke("destroy"),o.initialize())}),void 0!==u?u:this};n.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:t,offset:0,bottomOffset:0,jitter:5,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{container:"Sticky element must be inside a relative container",visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."},className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.tab=function(r){var u,f=n(n.isFunction(this)?t:this),s=f.selector||"",o=(new Date).getTime(),e=[],h=arguments[0],l="string"==typeof h,a=[].slice.call(arguments,1),c=!1;return f.each(function(){var d,w,b,g,v,nt,y=n.isPlainObject(r)?n.extend(!0,{},n.fn.tab.settings,r):n.extend({},n.fn.tab.settings),p=y.className,tt=y.metadata,ut=y.selector,it=y.error,ht="."+y.namespace,ft="module-"+y.namespace,k=n(this),et={},ct=!0,ot=0,st=this,rt=k.data(ft);v={initialize:function(){v.debug("Initializing tab menu item",k);v.fix.callbacks();v.determineTabs();v.debug("Determining tabs",y.context,w);y.auto&&v.set.auto();v.bind.events();y.history&&!c&&(v.initializeHistory(),c=!0);v.instantiate()},instantiate:function(){v.verbose("Storing instance of module",v);rt=v;k.data(ft,v)},destroy:function(){v.debug("Destroying tabs",k);k.removeData(ft).off(ht)},bind:{events:function(){n.isWindow(st)||(v.debug("Attaching tab activation events to element",k),k.on("click"+ht,v.event.click))}},determineTabs:function(){var t;"parent"===y.context?(k.closest(ut.ui).length>0?(t=k.closest(ut.ui),v.verbose("Using closest UI element as parent",t)):t=k,d=t.parent(),v.verbose("Determined parent element for creating context",d)):y.context?(d=n(y.context),v.verbose("Using selector for tab context",y.context,d)):d=n("body");y.childrenOnly?(w=d.children(ut.tabs),v.debug("Searching tab context children for tabs",d,w)):(w=d.find(ut.tabs),v.debug("Searching tab context for tabs",d,w))},fix:{callbacks:function(){n.isPlainObject(r)&&(r.onTabLoad||r.onTabInit)&&(r.onTabLoad&&(r.onLoad=r.onTabLoad,delete r.onTabLoad,v.error(it.legacyLoad,r.onLoad)),r.onTabInit&&(r.onFirstLoad=r.onTabInit,delete r.onTabInit,v.error(it.legacyInit,r.onFirstLoad)),y=n.extend(!0,{},n.fn.tab.settings,r))}},initializeHistory:function(){if(v.debug("Initializing page state"),void 0===n.address)return v.error(it.state),!1;if("state"==y.historyType){if(v.debug("Using HTML5 to manage state"),y.path===!1)return v.error(it.path),!1;n.address.history(!0).state(y.path)}n.address.bind("change",v.event.history.change)},event:{click:function(t){var i=n(this).data(tt.tab);void 0!==i?(y.history?(v.verbose("Updating page state",t),n.address.value(i)):(v.verbose("Changing tab",t),v.changeTab(i)),t.preventDefault()):v.debug("No tab specified")},history:{change:function(t){var i=t.pathNames.join("/")||v.get.initialPath(),r=y.templates.determineTitle(i)||!1;v.performance.display();v.debug("History change event",i,t);nt=t;void 0!==i&&v.changeTab(i);r&&n.address.title(r)}}},refresh:function(){b&&(v.debug("Refreshing tab",b),v.changeTab(b))},cache:{read:function(n){return void 0!==n&&et[n]},add:function(n,t){n=n||b;v.debug("Adding cached content for",n);et[n]=t},remove:function(n){n=n||b;v.debug("Removing cached content for",n);delete et[n]}},set:{auto:function(){var t="string"==typeof y.path?y.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";v.verbose("Setting up automatic tab retrieval from server",t);n.isPlainObject(y.apiSettings)?y.apiSettings.url=t:y.apiSettings={url:t}},loading:function(n){var t=v.get.tabElement(n);t.hasClass(p.loading)||(v.verbose("Setting loading state for",t),t.addClass(p.loading).siblings(w).removeClass(p.active+" "+p.loading),t.length>0&&y.onRequest.call(t[0],n))},state:function(t){n.address.value(t)}},changeTab:function(i){var e=t.history&&t.history.pushState,u=e&&y.ignoreFirstLoad&&ct,f=y.auto||n.isPlainObject(y.apiSettings),r=f&&!u?v.utilities.pathToArray(i):v.get.defaultPathArray(i);i=v.utilities.arrayToPath(r);n.each(r,function(t,e){var h,c,a,l,w=r.slice(0,t+1),o=v.utilities.arrayToPath(w),rt=v.is.tab(o),ut=t+1==r.length,s=v.get.tabElement(o);if(v.verbose("Looking for tab",e),rt){if(v.verbose("Tab was found",e),b=o,g=v.utilities.filterArray(r,w),ut?l=!0:(c=r.slice(0,t+2),a=v.utilities.arrayToPath(c),(l=!v.is.tab(a))&&v.verbose("Tab parameters found",c)),l&&f)return u?(v.debug("Ignoring remote content on first tab load",o),ct=!1,v.cache.add(i,s.html()),v.activate.all(o),y.onFirstLoad.call(s[0],o,g,nt),y.onLoad.call(s[0],o,g,nt)):(v.activate.navigation(o),v.fetch.content(o,i)),!1;v.debug("Opened local tab",o);v.activate.all(o);v.cache.read(o)||(v.cache.add(o,!0),v.debug("First time tab loaded calling tab init"),y.onFirstLoad.call(s[0],o,g,nt));y.onLoad.call(s[0],o,g,nt)}else{if(i.search("/")!=-1||""===i)return v.error(it.missingTab,k,d,o),!1;if(h=n("#"+i+', a[name="'+i+'"]'),o=h.closest("[data-tab]").data(tt.tab),s=v.get.tabElement(o),h&&h.length>0&&o)return v.debug("Anchor link used, opening parent tab",s,h),s.hasClass(p.active)||setTimeout(function(){v.scrollTo(h)},0),v.activate.all(o),v.cache.read(o)||(v.cache.add(o,!0),v.debug("First time tab loaded calling tab init"),y.onFirstLoad.call(s[0],o,g,nt)),y.onLoad.call(s[0],o,g,nt),!1}})},scrollTo:function(t){var r=!!(t&&t.length>0)&&t.offset().top;r!==!1&&(v.debug("Forcing scroll to an in-page link in a hidden tab",r,t),n(i).scrollTop(r))},update:{content:function(t,i,r){var u=v.get.tabElement(t),f=u[0];r=void 0!==r?r:y.evaluateScripts;"string"==typeof y.cacheType&&"dom"==y.cacheType.toLowerCase()&&"string"!=typeof i?u.empty().append(n(i).clone(!0)):r?(v.debug("Updating HTML and evaluating inline scripts",t,i),u.html(i)):(v.debug("Updating HTML",t,i),f.innerHTML=i)}},fetch:{content:function(t,i){var f,u,r=v.get.tabElement(t),o={dataType:"html",encodeParameters:!1,on:"now",cache:y.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(n){"response"==y.cacheType&&v.cache.add(i,n);v.update.content(t,n);t==b?(v.debug("Content loaded",t),v.activate.tab(t)):v.debug("Content loaded in background",t);y.onFirstLoad.call(r[0],t,g,nt);y.onLoad.call(r[0],t,g,nt);y.loadOnce?v.cache.add(i,!0):"string"==typeof y.cacheType&&"dom"==y.cacheType.toLowerCase()&&r.children().length>0?setTimeout(function(){var n=r.children().clone(!0);n=n.not("script");v.cache.add(i,n)},0):v.cache.add(i,r.html())},urlData:{tab:i}},e=r.api("get request")||!1,s=e&&"pending"===e.state();i=i||t;u=v.cache.read(i);y.cache&&u?(v.activate.tab(t),v.debug("Adding cached content",i),y.loadOnce||("once"==y.evaluateScripts?v.update.content(t,u,!1):v.update.content(t,u)),y.onLoad.call(r[0],t,g,nt)):s?(v.set.loading(t),v.debug("Content is already loading",i)):void 0!==n.api?(f=n.extend(!0,{},y.apiSettings,o),v.debug("Retrieving remote content",i,f),v.set.loading(t),r.api(f)):v.error(it.api)}},activate:{all:function(n){v.activate.tab(n);v.activate.navigation(n)},tab:function(n){var t=v.get.tabElement(n),i="siblings"==y.deactivate?t.siblings(w):w.not(t),r=t.hasClass(p.active);v.verbose("Showing tab content for",t);r||(t.addClass(p.active),i.removeClass(p.active+" "+p.loading),t.length>0&&y.onVisible.call(t[0],n))},navigation:function(n){var t=v.get.navElement(n),i="siblings"==y.deactivate?t.siblings(f):f.not(t),r=t.hasClass(p.active);v.verbose("Activating tab navigation for",t,n);r||(t.addClass(p.active),i.removeClass(p.active+" "+p.loading))}},deactivate:{all:function(){v.deactivate.navigation();v.deactivate.tabs()},navigation:function(){f.removeClass(p.active)},tabs:function(){w.removeClass(p.active+" "+p.loading)}},is:{tab:function(n){return void 0!==n&&v.get.tabElement(n).length>0}},get:{initialPath:function(){return f.eq(0).data(tt.tab)||w.eq(0).data(tt.tab)},path:function(){return n.address.value()},defaultPathArray:function(n){return v.utilities.pathToArray(v.get.defaultPath(n))},defaultPath:function(n){var i=f.filter("[data-"+tt.tab+'^="'+n+'/"]').eq(0),t=i.data(tt.tab)||!1;if(t){if(v.debug("Found default tab",t),ot<y.maxDepth)return ot++,v.get.defaultPath(t);v.error(it.recursion)}else v.debug("No default tabs found for",n,w);return ot=0,n},navElement:function(n){return n=n||b,f.filter("[data-"+tt.tab+'="'+n+'"]')},tabElement:function(n){var t,i,r,u;return n=n||b,r=v.utilities.pathToArray(n),u=v.utilities.last(r),t=w.filter("[data-"+tt.tab+'="'+n+'"]'),i=w.filter("[data-"+tt.tab+'="'+u+'"]'),t.length>0?t:i},tab:function(){return b}},utilities:{filterArray:function(t,i){return n.grep(t,function(t){return n.inArray(t,i)==-1})},last:function(t){return!!n.isArray(t)&&t[t.length-1]},pathToArray:function(n){return void 0===n&&(n=b),"string"==typeof n?n.split("/"):[n]},arrayToPath:function(t){return!!n.isArray(t)&&t.join("/")}},setting:function(t,i){if(v.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,y,t);else{if(void 0===i)return y[t];n.isPlainObject(y[t])?n.extend(!0,y[t],i):y[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},debug:function(){!y.silent&&y.debug&&(y.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,y.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!y.silent&&y.verbose&&y.debug&&(y.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,y.name+":"),v.verbose.apply(console,arguments)))},error:function(){y.silent||(v.error=Function.prototype.bind.call(console.error,console,y.name+":"),v.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;y.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,e.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:st,"Execution Time":i}));clearTimeout(v.performance.timer);v.performance.timer=setTimeout(v.performance.display,500)},display:function(){var t=y.name+":",i=0;o=!1;clearTimeout(v.performance.timer);n.each(e,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&e.length>0&&(console.groupCollapsed(t),console.table?console.table(e):n.each(e,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());e=[]}},invoke:function(t,i,r){var s,e,o,f=rt;return i=i||a,r=st||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(v.error(it.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};l?(void 0===rt&&v.initialize(),v.invoke(h)):(void 0!==rt&&rt.invoke("destroy"),v.initialize())}),void 0!==u?u:this};n.tab=function(){n(t).tab.apply(this,arguments)};n.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,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(){},onLoad:function(){},onVisible:function(){},onRequest:function(){},templates:{determineTitle:function(){}},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(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.transition=function(){var r,f=n(this),s=f.selector||"",e=(new Date).getTime(),u=[],h=arguments,c=h[0],l=[].slice.call(arguments,1),o="string"==typeof c;return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,f.each(function(t){var v,k,tt,p,g,b,nt,d,a,y=n(this),w=this;a={initialize:function(){v=a.get.settings.apply(w,h);p=v.className;tt=v.error;g=v.metadata;d="."+v.namespace;nt="module-"+v.namespace;k=y.data(nt)||a;b=a.get.animationEndEvent();o&&(o=a.invoke(c));o===!1&&(a.verbose("Converted arguments into settings object",v),v.interval?a.delay(v.animate):a.animate(),a.instantiate())},instantiate:function(){a.verbose("Storing instance of module",a);k=a;y.data(nt,k)},destroy:function(){a.verbose("Destroying previous module for",w);y.removeData(nt)},refresh:function(){a.verbose("Refreshing display type on next animation");delete a.displayType},forceRepaint:function(){a.verbose("Forcing element repaint");var t=y.parent(),n=y.next();0===n.length?y.detach().appendTo(t):y.detach().insertBefore(n)},repaint:function(){a.verbose("Repainting element");w.offsetWidth},delay:function(n){var u,i,r=a.get.animationDirection();r||(r=a.can.transition()?a.get.direction():"static");n=void 0!==n?n:v.interval;u="auto"==v.reverse&&r==p.outward;i=u||1==v.reverse?(f.length-t)*v.interval:t*v.interval;a.debug("Delaying animation by",i);setTimeout(a.animate,i)},animate:function(n){if(v=n||v,!a.is.supported())return a.error(tt.support),!1;if(a.debug("Preparing animation",v.animation),a.is.animating()){if(v.queue)return!v.allowRepeats&&a.has.direction()&&a.is.occurring()&&a.queuing!==!0?a.debug("Animation is currently occurring, preventing queueing same animation",v.animation):a.queue(v.animation),!1;if(!v.allowRepeats&&a.is.occurring())return a.debug("Animation is already occurring, will not execute repeated animation",v.animation),!1;a.debug("New animation started, completing previous early",v.animation);k.complete()}a.can.animate()?a.set.animating(v.animation):a.error(tt.noAnimation,v.animation,w)},reset:function(){a.debug("Resetting animation to beginning conditions");a.remove.animationCallbacks();a.restore.conditions();a.remove.animating()},queue:function(n){a.debug("Queueing animation of",n);a.queuing=!0;y.one(b+".queue"+d,function(){a.queuing=!1;a.repaint();a.animate.apply(this,v)})},complete:function(){a.debug("Animation complete",v.animation);a.remove.completeCallback();a.remove.failSafe();a.is.looping()||(a.is.outward()?(a.verbose("Animation is outward, hiding element"),a.restore.conditions(),a.hide()):a.is.inward()?(a.verbose("Animation is outward, showing element"),a.restore.conditions(),a.show()):(a.verbose("Static animation completed"),a.restore.conditions(),v.onComplete.call(w)))},force:{visible:function(){var t=y.attr("style"),i=a.get.userStyle(),n=a.get.displayType(),r=i+"display: "+n+" !important;",u=y.css("display"),f=void 0===t||""===t;u!==n?(a.verbose("Overriding default display to show element",n),y.attr("style",r)):f&&y.removeAttr("style")},hidden:function(){var n=y.attr("style"),t=y.css("display"),i=void 0===n||""===n;"none"===t||a.is.hidden()?i&&y.removeAttr("style"):(a.verbose("Overriding default display to hide element"),y.css("display","none"))}},has:{direction:function(t){var i=!1;return t=t||v.animation,"string"==typeof t&&(t=t.split(" "),n.each(t,function(n,t){t!==p.inward&&t!==p.outward||(i=!0)})),i},inlineDisplay:function(){var t=y.attr("style")||"";return n.isArray(t.match(/display.*?;/,""))}},set:{animating:function(n){var t;a.remove.completeCallback();n=n||v.animation;t=a.get.animationClass(n);a.save.animation(t);a.force.visible();a.remove.hidden();a.remove.direction();a.start.animation(t)},duration:function(n,t){t=t||v.duration;((t="number"==typeof t?t+"ms":t)||0===t)&&(a.verbose("Setting animation duration",t),y.css({"animation-duration":t}))},direction:function(n){n=n||a.get.direction();n==p.inward?a.set.inward():a.set.outward()},looping:function(){a.debug("Transition set to loop");y.addClass(p.looping)},hidden:function(){y.addClass(p.transition).addClass(p.hidden)},inward:function(){a.debug("Setting direction to inward");y.removeClass(p.outward).addClass(p.inward)},outward:function(){a.debug("Setting direction to outward");y.removeClass(p.inward).addClass(p.outward)},visible:function(){y.addClass(p.transition).addClass(p.visible)}},start:{animation:function(n){n=n||a.get.animationClass();a.debug("Starting tween",n);y.addClass(n).one(b+".complete"+d,a.complete);v.useFailSafe&&a.add.failSafe();a.set.duration(v.duration);v.onStart.call(w)}},save:{animation:function(n){a.cache||(a.cache={});a.cache.animation=n},displayType:function(n){"none"!==n&&y.data(g.displayType,n)},transitionExists:function(t,i){n.fn.transition.exists[t]=i;a.verbose("Saving existence of transition",t,i)}},restore:{conditions:function(){var n=a.get.currentAnimation();n&&(y.removeClass(n),a.verbose("Removing animation class",a.cache));a.remove.duration()}},add:{failSafe:function(){var n=a.get.duration();a.timer=setTimeout(function(){y.triggerHandler(b)},n+v.failSafeDelay);a.verbose("Adding fail safe timer",a.timer)}},remove:{animating:function(){y.removeClass(p.animating)},animationCallbacks:function(){a.remove.queueCallback();a.remove.completeCallback()},queueCallback:function(){y.off(".queue"+d)},completeCallback:function(){y.off(".complete"+d)},display:function(){y.css("display","")},direction:function(){y.removeClass(p.inward).removeClass(p.outward)},duration:function(){y.css("animation-duration","")},failSafe:function(){a.verbose("Removing fail safe timer",a.timer);a.timer&&clearTimeout(a.timer)},hidden:function(){y.removeClass(p.hidden)},visible:function(){y.removeClass(p.visible)},looping:function(){a.debug("Transitions are no longer looping");a.is.looping()&&(a.reset(),y.removeClass(p.looping))},transition:function(){y.removeClass(p.visible).removeClass(p.hidden)}},get:{settings:function(t,i,r){return"object"==typeof t?n.extend(!0,{},n.fn.transition.settings,t):"function"==typeof r?n.extend({},n.fn.transition.settings,{animation:t,onComplete:r,duration:i}):"string"==typeof i||"number"==typeof i?n.extend({},n.fn.transition.settings,{animation:t,duration:i}):"object"==typeof i?n.extend({},n.fn.transition.settings,i,{animation:t}):"function"==typeof i?n.extend({},n.fn.transition.settings,{animation:t,onComplete:i}):n.extend({},n.fn.transition.settings,{animation:t})},animationClass:function(n){var t=n||v.animation,i=a.can.transition()&&!a.has.direction()?a.get.direction()+" ":"";return p.animating+" "+p.transition+" "+i+t},currentAnimation:function(){return!(!a.cache||void 0===a.cache.animation)&&a.cache.animation},currentDirection:function(){return a.is.inward()?p.inward:p.outward},direction:function(){return a.is.hidden()||!a.is.visible()?p.inward:p.outward},animationDirection:function(t){var i;return t=t||v.animation,"string"==typeof t&&(t=t.split(" "),n.each(t,function(n,t){t===p.inward?i=p.inward:t===p.outward&&(i=p.outward)})),i||!1},duration:function(n){return n=n||v.duration,n===!1&&(n=y.css("animation-duration")||0),"string"==typeof n?n.indexOf("ms")>-1?parseFloat(n):1e3*parseFloat(n):n},displayType:function(n){return n=void 0===n||n,v.displayType?v.displayType:(n&&void 0===y.data(g.displayType)&&a.can.transition(!0),y.data(g.displayType))},userStyle:function(n){return n=n||y.attr("style")||"",n.replace(/display.*?;/,"")},transitionExists:function(t){return n.fn.transition.exists[t]},animationStartEvent:function(){var n,r=i.createElement("div"),t={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(n in t)if(void 0!==r.style[n])return t[n];return!1},animationEndEvent:function(){var n,r=i.createElement("div"),t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==r.style[n])return t[n];return!1}},can:{transition:function(t){var o,h,r,f,c,e,i=v.animation,s=a.get.transitionExists(i),u=a.get.displayType(!1);if(void 0===s||t){if(a.verbose("Determining whether animation exists"),o=y.attr("class"),h=y.prop("tagName"),r=n("<"+h+" />").addClass(o).insertAfter(y),f=r.addClass(i).removeClass(p.inward).removeClass(p.outward).addClass(p.animating).addClass(p.transition).css("animationName"),c=r.addClass(p.inward).css("animationName"),u||(u=r.attr("class",o).removeAttr("style").removeClass(p.hidden).removeClass(p.visible).show().css("display"),a.verbose("Determining final display state",u),a.save.displayType(u)),r.remove(),f!=c)a.debug("Direction exists for animation",i),e=!0;else{if("none"==f||!f)return void a.debug("No animation defined in css",i);a.debug("Static animation found",i,u);e=!1}a.save.transitionExists(i,e)}return void 0!==s?s:e},animate:function(){return void 0!==a.can.transition()}},is:{animating:function(){return y.hasClass(p.animating)},inward:function(){return y.hasClass(p.inward)},outward:function(){return y.hasClass(p.outward)},looping:function(){return y.hasClass(p.looping)},occurring:function(n){return n=n||v.animation,n="."+n.replace(" ","."),y.filter(n).length>0},visible:function(){return y.is(":visible")},hidden:function(){return"hidden"===y.css("visibility")},supported:function(){return b!==!1}},hide:function(){a.verbose("Hiding element");a.is.animating()&&a.reset();w.blur();a.remove.display();a.remove.visible();a.set.hidden();a.force.hidden();v.onHide.call(w);v.onComplete.call(w)},show:function(n){a.verbose("Showing element",n);a.remove.hidden();a.set.visible();a.force.visible();v.onShow.call(w);v.onComplete.call(w)},toggle:function(){a.is.visible()?a.hide():a.show()},stop:function(){a.debug("Stopping current animation");y.triggerHandler(b)},stopAll:function(){a.debug("Stopping all animation");a.remove.queueCallback();y.triggerHandler(b)},clear:{queue:function(){a.debug("Clearing animation queue");a.remove.queueCallback()}},enable:function(){a.verbose("Starting animation");y.removeClass(p.disabled)},disable:function(){a.debug("Stopping animation");y.addClass(p.disabled)},setting:function(t,i){if(a.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];n.isPlainObject(v[t])?n.extend(!0,v[t],i):v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:w,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;e=!1;clearTimeout(a.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=k;return i=i||l,u=w||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),void 0!==e&&e}};a.initialize()}),void 0!==r?r:this};n.fn.transition.exists={};n.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document),function(n,t){"use strict";var t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.api=n.fn.api=function(i){var r,e=n(n.isFunction(this)?t:this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var b,g,v,tt,e,l=n.isPlainObject(i)?n.extend(!0,{},n.fn.api.settings,i):n.extend({},n.fn.api.settings),rt=l.namespace,ut=l.metadata,ft=l.selector,p=l.error,nt=l.className,et="."+rt,it="module-"+rt,a=n(this),ot=a.closest(ft.form),y=l.stateContext?n(l.stateContext):a,k=this,w=y[0],d=a.data(it);e={initialize:function(){h||e.bind.events();e.instantiate()},instantiate:function(){e.verbose("Storing instance of module",e);d=e;a.data(it,d)},destroy:function(){e.verbose("Destroying previous module for",k);a.removeData(it).off(et)},bind:{events:function(){var n=e.get.event();n?(e.verbose("Attaching API events to element",n),a.on(n+et,e.event.trigger)):"now"==l.on&&(e.debug("Querying API endpoint immediately"),e.query())}},decode:{json:function(n){if(void 0!==n&&"string"==typeof n)try{n=JSON.parse(n)}catch(n){}return n}},read:{cachedResponse:function(n){var i;return void 0===t.Storage?void e.error(p.noStorage):(i=sessionStorage.getItem(n),e.debug("Using cached response",n,i),i=e.decode.json(i))}},write:{cachedResponse:function(i,r){return r&&""===r?void e.debug("Response empty, not caching",r):void 0===t.Storage?void e.error(p.noStorage):(n.isPlainObject(r)&&(r=JSON.stringify(r)),sessionStorage.setItem(i,r),void e.verbose("Storing cached response for url",i,r))}},query:function(){if(e.is.disabled())return void e.debug("Element is disabled API request aborted");if(e.is.loading()){if(!l.interruptRequests)return void e.debug("Cancelling request, previous request is still pending");e.debug("Interrupting previous request");e.abort()}if(l.defaultData&&n.extend(!0,l.urlData,e.get.defaultData()),l.serializeForm&&(l.data=e.add.formData(l.data)),(g=e.get.settings())===!1)return e.cancelled=!0,void e.error(p.beforeSend);if(e.cancelled=!1,!(v=e.get.templatedURL())&&!e.is.mocked())return void e.error(p.missingURL);if((v=e.add.urlData(v))||e.is.mocked()){if(g.url=l.base+v,b=n.extend(!0,{},l,{type:l.method||l.type,data:void 0,url:l.base+v,beforeSend:l.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),e.debug("Querying URL",b.url),e.verbose("Using AJAX settings",b),"local"===l.cache&&e.read.cachedResponse(v))return e.debug("Response returned from local cache"),e.request=e.create.request(),void e.request.resolveWith(w,[e.read.cachedResponse(v)]);l.throttle?l.throttleFirstRequest||e.timer?(e.debug("Throttling request",l.throttle),clearTimeout(e.timer),e.timer=setTimeout(function(){e.timer&&delete e.timer;e.debug("Sending throttled request",void 0,b.method);e.send.request()},l.throttle)):(e.debug("Sending request",void 0,b.method),e.send.request(),e.timer=setTimeout(function(){},l.throttle)):(e.debug("Sending request",void 0,b.method),e.send.request())}},should:{removeError:function(){return l.hideError===!0||"auto"===l.hideError&&!e.is.form()}},is:{disabled:function(){return a.filter(ft.disabled).length>0},expectingJSON:function(){return"json"===l.dataType||"jsonp"===l.dataType},form:function(){return a.is("form")||y.is("form")},mocked:function(){return l.mockResponse||l.mockResponseAsync||l.response||l.responseAsync},input:function(){return a.is("input")},loading:function(){return!!e.request&&"pending"==e.request.state()},abortedRequest:function(n){return n&&void 0!==n.readyState&&0===n.readyState?(e.verbose("XHR request determined to be aborted"),!0):(e.verbose("XHR request was not aborted"),!1)},validResponse:function(t){return e.is.expectingJSON()&&n.isFunction(l.successTest)?(e.debug("Checking JSON returned success",l.successTest,t),l.successTest(t)?(e.debug("Response passed success test",t),!0):(e.debug("Response failed success test",t),!1)):(e.verbose("Response is not JSON, skipping validation",l.successTest,t),!0)}},was:{cancelled:function(){return e.cancelled||!1},succesful:function(){return e.request&&"resolved"==e.request.state()},failure:function(){return e.request&&"rejected"==e.request.state()},complete:function(){return e.request&&("resolved"==e.request.state()||"rejected"==e.request.state())}},add:{urlData:function(t,i){var r,u;return t&&(r=t.match(l.regExp.required),u=t.match(l.regExp.optional),i=i||l.urlData,r&&(e.debug("Looking for required URL variables",r),n.each(r,function(r,u){var f=u.indexOf("$")!==-1?u.substr(2,u.length-3):u.substr(1,u.length-2),o=n.isPlainObject(i)&&void 0!==i[f]?i[f]:void 0!==a.data(f)?a.data(f):void 0!==y.data(f)?y.data(f):i[f];if(void 0===o)return e.error(p.requiredParameter,f,t),t=!1,!1;e.verbose("Found required variable",f,o);o=l.encodeParameters?e.get.urlEncodedValue(o):o;t=t.replace(u,o)})),u&&(e.debug("Looking for optional URL variables",r),n.each(u,function(r,u){var f=u.indexOf("$")!==-1?u.substr(3,u.length-4):u.substr(2,u.length-3),o=n.isPlainObject(i)&&void 0!==i[f]?i[f]:void 0!==a.data(f)?a.data(f):void 0!==y.data(f)?y.data(f):i[f];void 0!==o?(e.verbose("Optional variable Found",f,o),t=t.replace(u,o)):(e.verbose("Optional variable not found",f),t=t.indexOf("/"+u)!==-1?t.replace("/"+u,""):t.replace(u,""))}))),t},formData:function(t){var r,u=void 0!==n.fn.serializeObject,i=u?ot.serializeObject():ot.serialize();return t=t||l.data,r=n.isPlainObject(t),r?u?(e.debug("Extending existing data with form data",t,i),t=n.extend(!0,{},t,i)):(e.error(p.missingSerialize),e.debug("Cant extend data. Replacing data with form data",t,i),t=i):(e.debug("Adding form data",i),t=i),t}},send:{request:function(){e.set.loading();e.request=e.create.request();e.is.mocked()?e.mockedXHR=e.create.mockedXHR():e.xhr=e.create.xhr();l.onRequest.call(w,e.request,e.xhr)}},event:{trigger:function(n){e.query();"submit"!=n.type&&"click"!=n.type||n.preventDefault()},xhr:{always:function(){},done:function(t,i,r){var f=this,s=(new Date).getTime()-tt,u=l.loadingDuration-s,o=!!n.isFunction(l.onResponse)&&(e.is.expectingJSON()?l.onResponse.call(f,n.extend(!0,{},t)):l.onResponse.call(f,t));u=u>0?u:0;o&&(e.debug("Modified API response in onResponse callback",l.onResponse,o,t),t=o);u>0&&e.debug("Response completed early delaying state change by",u);setTimeout(function(){e.is.validResponse(t)?e.request.resolveWith(f,[t,r]):e.request.rejectWith(f,[r,"invalid"])},u)},fail:function(n,t,i){var u=this,f=(new Date).getTime()-tt,r=l.loadingDuration-f;r=r>0?r:0;r>0&&e.debug("Response completed early delaying state change by",r);setTimeout(function(){e.is.abortedRequest(n)?e.request.rejectWith(u,[n,"aborted",i]):e.request.rejectWith(u,[n,"error",t,i])},r)}},request:{done:function(n,t){e.debug("Successful API Response",n);"local"===l.cache&&v&&(e.write.cachedResponse(v,n),e.debug("Saving server response locally",e.cache));l.onSuccess.call(w,n,a,t)},complete:function(n,t){var i,r;e.was.succesful()?(r=n,i=t):(i=n,r=e.get.responseFromXHR(i));e.remove.loading();l.onComplete.call(w,r,a,i)},fail:function(n,t,i){var r=e.get.responseFromXHR(n),u=e.get.errorFromRequest(r,t,i);if("aborted"==t)return e.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",t,i),l.onAbort.call(w,t,a,n),!0;"invalid"==t?e.debug("JSON did not pass success test. A server-side error has most likely occurred",r):"error"==t&&void 0!==n&&(e.debug("XHR produced a server error",t,i),200!=n.status&&void 0!==i&&""!==i&&e.error(p.statusMessage+i,b.url),l.onError.call(w,u,a,n));l.errorDuration&&"aborted"!==t&&(e.debug("Adding error state"),e.set.error(),e.should.removeError()&&setTimeout(e.remove.error,l.errorDuration));e.debug("API Request failed",u,n);l.onFailure.call(w,r,a,n)}}},create:{request:function(){return n.Deferred().always(e.event.request.complete).done(e.event.request.done).fail(e.event.request.fail)},mockedXHR:function(){var f,r,i,t=l.mockResponse||l.response,u=l.mockResponseAsync||l.responseAsync;return i=n.Deferred().always(e.event.xhr.complete).done(e.event.xhr.done).fail(e.event.xhr.fail),t?(n.isFunction(t)?(e.debug("Using specified synchronous callback",t),r=t.call(w,g)):(e.debug("Using settings specified response",t),r=t),i.resolveWith(w,[r,!1,{responseText:r}])):n.isFunction(u)&&(f=function(n){e.debug("Async callback returned response",n);n?i.resolveWith(w,[n,!1,{responseText:n}]):i.rejectWith(w,[{responseText:n},!1,!1])},e.debug("Using specified async response callback",u),u.call(w,g,f)),i},xhr:function(){var t;return t=n.ajax(b).always(e.event.xhr.always).done(e.event.xhr.done).fail(e.event.xhr.fail),e.verbose("Created server request",t,b),t}},set:{error:function(){e.verbose("Adding error state to element",y);y.addClass(nt.error)},loading:function(){e.verbose("Adding loading state to element",y);y.addClass(nt.loading);tt=(new Date).getTime()}},remove:{error:function(){e.verbose("Removing error state from element",y);y.removeClass(nt.error)},loading:function(){e.verbose("Removing loading state from element",y);y.removeClass(nt.loading)}},get:{responseFromXHR:function(t){return!!n.isPlainObject(t)&&(e.is.expectingJSON()?e.decode.json(t.responseText):t.responseText)},errorFromRequest:function(t,i,r){return n.isPlainObject(t)&&void 0!==t.error?t.error:void 0!==l.error[i]?l.error[i]:r},request:function(){return e.request||!1},xhr:function(){return e.xhr||!1},settings:function(){var t;return t=l.beforeSend.call(w,l),t&&(void 0!==t.success&&(e.debug("Legacy success callback detected",t),e.error(p.legacyParameters,t.success),t.onSuccess=t.success),void 0!==t.failure&&(e.debug("Legacy failure callback detected",t),e.error(p.legacyParameters,t.failure),t.onFailure=t.failure),void 0!==t.complete&&(e.debug("Legacy complete callback detected",t),e.error(p.legacyParameters,t.complete),t.onComplete=t.complete)),void 0===t&&e.error(p.noReturnedValue),t===!1?t:void 0!==t?n.extend(!0,{},t):n.extend(!0,{},l)},urlEncodedValue:function(n){var r=t.decodeURIComponent(n),i=t.encodeURIComponent(n);return r!==n?(e.debug("URL value is already encoded, avoiding double encoding",n),n):(e.verbose("Encoding value using encodeURIComponent",n,i),i)},defaultData:function(){var t={};return n.isWindow(k)||(e.is.input()?t.value=a.val():e.is.form()||(t.text=a.text())),t},event:function(){return n.isWindow(k)||"now"==l.on?(e.debug("API called without element, no events attached"),!1):"auto"==l.on?a.is("input")?void 0!==k.oninput?"input":void 0!==k.onpropertychange?"propertychange":"keyup":a.is("form")?"submit":"click":l.on},templatedURL:function(n){if(n=n||a.data(ut.action)||l.action||!1,v=a.data(ut.url)||l.url||!1)return e.debug("Using specified url",v),v;if(n){if(e.debug("Looking up url for action",n,l.api),void 0===l.api[n]&&!e.is.mocked())return void e.error(p.missingAction,l.action,l.api);v=l.api[n]}else e.is.form()&&(v=a.attr("action")||y.attr("action")||!1,e.debug("No url or action specified, defaulting to form action",v));return v}},abort:function(){var n=e.get.xhr();n&&"resolved"!==n.state()&&(e.debug("Cancelling API request"),n.abort())},reset:function(){e.remove.error();e.remove.loading()},setting:function(t,i){if(e.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,l.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),e.verbose.apply(console,arguments)))},error:function(){l.silent||(e.error=Function.prototype.bind.call(console.error,console,l.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"","Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(e.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var h,o,s,f=d;return i=i||c,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(p.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(u,i):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===d&&e.initialize(),e.invoke(s)):(void 0!==d&&d.invoke("destroy"),e.initialize())}),void 0!==r?r:this};n.api.settings={name:"API",namespace:"api",debug:!1,verbose:!1,performance:!0,api:{},cache:!0,interruptRequests:!0,on:"auto",stateContext:!1,loadingDuration:0,hideError:"auto",errorDuration:2e3,encodeParameters:!0,action:!1,url:!1,base:"",urlData:{},defaultData:!0,serializeForm:!1,throttle:0,throttleFirstRequest:!0,method:"get",data:{},dataType:"json",mockResponse:!1,mockResponseAsync:!1,response:!1,responseAsync:!1,beforeSend:function(n){return n},beforeXHR:function(){},onRequest:function(){},onResponse:!1,onSuccess:function(){},onComplete:function(){},onFailure:function(){},onError:function(){},onAbort:function(){},successTest:!1,error:{beforeSend:"The before send function has aborted the request",error:"There was an error with your request",exitConditions:"API Request Aborted. Exit conditions met",JSONParse:"JSON could not be parsed during error handling",legacyParameters:"You are using legacy API success callback names",method:"The method you called is not defined",missingAction:"API action used but no url was defined",missingSerialize:"jquery-serialize-object is required to add form data to an existing data object",missingURL:"No URL specified for api event",noReturnedValue:"The beforeSend callback must return a settings object, beforeSend ignored.",noStorage:"Caching responses locally requires session storage",parseError:"There was an error parsing your request",requiredParameter:"Missing a required URL parameter: ",statusMessage:"Server gave an error: ",timeout:"Your request timed out"},regExp:{required:/\{\$*[A-z0-9]+\}/g,optional:/\{\/\$*[A-z0-9]+\}/g},className:{loading:"loading",error:"error"},selector:{disabled:".disabled",form:"form"},metadata:{action:"action",url:"url"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.state=function(t){var r,e=n(this),u=e.selector||"",o=(i.documentElement,(new Date).getTime()),f=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var i,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.state.settings,t):n.extend({},n.fn.state.settings),tt=l.error,k=l.metadata,y=l.className,nt=l.namespace,d=l.states,v=l.text,w="."+nt,g=nt+"-module",a=n(this),p=this,b=a.data(g);i={initialize:function(){i.verbose("Initializing module");l.automatic&&i.add.defaults();l.context&&""!==u?n(l.context).on(u,"mouseenter"+w,i.change.text).on(u,"mouseleave"+w,i.reset.text).on(u,"click"+w,i.toggle.state):a.on("mouseenter"+w,i.change.text).on("mouseleave"+w,i.reset.text).on("click"+w,i.toggle.state);i.instantiate()},instantiate:function(){i.verbose("Storing instance of module",i);b=i;a.data(g,i)},destroy:function(){i.verbose("Destroying previous module",b);a.off(w).removeData(g)},refresh:function(){i.verbose("Refreshing selector cache");a=n(p)},add:{defaults:function(){var r=t&&n.isPlainObject(t.states)?t.states:{};n.each(l.defaults,function(t,u){void 0!==i.is[t]&&i.is[t]()&&(i.verbose("Adding default states",t,p),n.extend(l.states,u,r))})}},is:{active:function(){return a.hasClass(y.active)},loading:function(){return a.hasClass(y.loading)},inactive:function(){return!a.hasClass(y.active)},state:function(n){return void 0!==y[n]&&a.hasClass(y[n])},enabled:function(){return!a.is(l.filter.active)},disabled:function(){return a.is(l.filter.active)},textEnabled:function(){return!a.is(l.filter.text)},button:function(){return a.is(".button:not(a, .submit)")},input:function(){return a.is("input")},progress:function(){return a.is(".ui.progress")}},allow:function(n){i.debug("Now allowing state",n);d[n]=!0},disallow:function(n){i.debug("No longer allowing",n);d[n]=!1},allows:function(n){return d[n]||!1},enable:function(){a.removeClass(y.disabled)},disable:function(){a.addClass(y.disabled)},setState:function(n){i.allows(n)&&a.addClass(y[n])},removeState:function(n){i.allows(n)&&a.removeClass(y[n])},toggle:{state:function(){var t;if(i.allows("active")&&i.is.enabled()){if(i.refresh(),void 0!==n.fn.api)if(t=a.api("get request"),a.api("was cancelled"))i.debug("API Request cancelled by beforesend"),l.activateTest=function(){return!1},l.deactivateTest=function(){return!1};else if(t)return void i.listenTo(t);i.change.state()}}},listenTo:function(t){i.debug("API request detected, waiting for state signal",t);t&&(v.loading&&i.update.text(v.loading),n.when(t).then(function(){"resolved"==t.state()?(i.debug("API request succeeded"),l.activateTest=function(){return!0},l.deactivateTest=function(){return!0}):(i.debug("API request failed"),l.activateTest=function(){return!1},l.deactivateTest=function(){return!1});i.change.state()}))},change:{state:function(){i.debug("Determining state change direction");i.is.inactive()?i.activate():i.deactivate();l.sync&&i.sync();l.onChange.call(p)},text:function(){i.is.textEnabled()&&(i.is.disabled()?(i.verbose("Changing text to disabled text",v.hover),i.update.text(v.disabled)):i.is.active()?v.hover?(i.verbose("Changing text to hover text",v.hover),i.update.text(v.hover)):v.deactivate&&(i.verbose("Changing text to deactivating text",v.deactivate),i.update.text(v.deactivate)):v.hover?(i.verbose("Changing text to hover text",v.hover),i.update.text(v.hover)):v.activate&&(i.verbose("Changing text to activating text",v.activate),i.update.text(v.activate)))}},activate:function(){l.activateTest.call(p)&&(i.debug("Setting state to active"),a.addClass(y.active),i.update.text(v.active),l.onActivate.call(p))},deactivate:function(){l.deactivateTest.call(p)&&(i.debug("Setting state to inactive"),a.removeClass(y.active),i.update.text(v.inactive),l.onDeactivate.call(p))},sync:function(){i.verbose("Syncing other buttons to current state");i.is.active()?e.not(a).state("activate"):e.not(a).state("deactivate")},get:{text:function(){return l.selector.text?a.find(l.selector.text).text():a.html()},textFor:function(n){return v[n]||!1}},flash:{text:function(n,t,r){var u=i.get.text();i.debug("Flashing text message",n,t);n=n||l.text.flash;t=t||l.flashDuration;r=r||function(){};i.update.text(n);setTimeout(function(){i.update.text(u);r.call(p)},t)}},reset:{text:function(){var n=v.active||a.data(k.storedText),t=v.inactive||a.data(k.storedText);i.is.textEnabled()&&(i.is.active()&&n?(i.verbose("Resetting active text",n),i.update.text(n)):t&&(i.verbose("Resetting inactive text",n),i.update.text(t)))}},update:{text:function(n){var t=i.get.text();n&&n!==t?(i.debug("Updating text",n),l.selector.text?a.data(k.storedText,n).find(l.selector.text).text(n):a.data(k.storedText,n).html(n)):i.debug("Text is already set, ignoring update",n)}},setting:function(t,r){if(i.debug("Changing setting",t,r),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===r)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],r):l[t]=r}},internal:function(t,r){if(n.isPlainObject(t))n.extend(!0,i,t);else{if(void 0===r)return i[t];i[t]=r}},debug:function(){!l.silent&&l.debug&&(l.performance?i.performance.log(arguments):(i.debug=Function.prototype.bind.call(console.info,console,l.name+":"),i.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?i.performance.log(arguments):(i.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),i.verbose.apply(console,arguments)))},error:function(){l.silent||(i.error=Function.prototype.bind.call(console.error,console,l.name+":"),i.error.apply(console,arguments))},performance:{log:function(n){var t,r,u;l.performance&&(t=(new Date).getTime(),u=o||t,r=t-u,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:p,"Execution Time":r}));clearTimeout(i.performance.timer);i.performance.timer=setTimeout(i.performance.display,500)},display:function(){var t=l.name+":",r=0;o=!1;clearTimeout(i.performance.timer);n.each(f,function(n,t){r+=t["Execution Time"]});t+=" "+r+"ms";u&&(t+=" '"+u+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,u,f){var h,o,s,e=b;return u=u||c,f=p||f,"string"==typeof t&&void 0!==e&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(r,u){var f=r!=h?u+t[r+1].charAt(0).toUpperCase()+t[r+1].slice(1):t;if(n.isPlainObject(e[f])&&r!=h)e=e[f];else{if(void 0!==e[f])return o=e[f],!1;if(!n.isPlainObject(e[u])||r==h)return void 0!==e[u]?(o=e[u],!1):(i.error(tt.method,t),!1);e=e[u]}})),n.isFunction(o)?s=o.apply(f,u):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===b&&i.initialize(),i.invoke(s)):(void 0!==b&&b.invoke("destroy"),i.initialize())}),void 0!==r?r:this};n.fn.state.settings={name:"State",debug:!1,verbose:!1,namespace:"state",performance:!0,onActivate:function(){},onDeactivate:function(){},onChange:function(){},activateTest:function(){return!0},deactivateTest:function(){return!0},automatic:!0,sync:!1,flashDuration:1e3,filter:{text:".loading, .disabled",active:".disabled"},context:!1,error:{beforeSend:"The before send function has cancelled state change",method:"The method you called is not defined."},metadata:{promise:"promise",storedText:"stored-text"},className:{active:"active",disabled:"disabled",error:"error",loading:"loading",success:"success",warning:"warning"},selector:{text:!1},defaults:{input:{disabled:!0,loading:!0,active:!0},button:{disabled:!0,loading:!0,active:!0},progress:{active:!0,success:!0,warning:!0,error:!0}},states:{active:!0,disabled:!0,error:!0,loading:!0,success:!0,warning:!0},text:{disabled:!1,flash:!1,hover:!1,active:!1,inactive:!1,activate:!1,deactivate:!1}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.visibility=function(r){var u,e=n(this),s=e.selector||"",o=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,a=[].slice.call(arguments,1),v=e.length,l=0;return e.each(function(){var g,tt,nt,e,y=n.isPlainObject(r)?n.extend(!0,{},n.fn.visibility.settings,r):n.extend({},n.fn.visibility.settings),it=y.className,ot=y.namespace,st=y.error,ht=y.metadata,b="."+ot,rt="module-"+ot,ut=n(t),p=n(this),w=n(y.context),d=(p.selector,p.data(rt)),ft=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)},k=this,et=!1;e={initialize:function(){e.debug("Initializing",y);e.setup.cache();e.should.trackChanges()&&("image"==y.type&&e.setup.image(),"fixed"==y.type&&e.setup.fixed(),y.observeChanges&&e.observeChanges(),e.bind.events());e.save.position();e.is.visible()||e.error(st.visible,p);y.initialCheck&&e.checkVisibility();e.instantiate()},instantiate:function(){e.debug("Storing instance",e);p.data(rt,e);d=e},destroy:function(){e.verbose("Destroying previous module");nt&&nt.disconnect();tt&&tt.disconnect();ut.off("load"+b,e.event.load).off("resize"+b,e.event.resize);w.off("scroll"+b,e.event.scroll).off("scrollchange"+b,e.event.scrollchange);"fixed"==y.type&&(e.resetFixed(),e.remove.placeholder());p.off(b).removeData(rt)},observeChanges:function(){"MutationObserver"in t&&(tt=new MutationObserver(e.event.contextChanged),nt=new MutationObserver(e.event.changed),tt.observe(i,{childList:!0,subtree:!0}),nt.observe(k,{childList:!0,subtree:!0}),e.debug("Setting up mutation observer",nt))},bind:{events:function(){e.verbose("Binding visibility events to scroll and resize");y.refreshOnLoad&&ut.on("load"+b,e.event.load);ut.on("resize"+b,e.event.resize);w.off("scroll"+b).on("scroll"+b,e.event.scroll).on("scrollchange"+b,e.event.scrollchange)}},event:{changed:function(){e.verbose("DOM tree modified, updating visibility calculations");e.timer=setTimeout(function(){e.verbose("DOM tree modified, updating sticky menu");e.refresh()},100)},contextChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==k||n(t).find(k).length>0)&&(e.debug("Element removed from DOM, tearing down events"),e.destroy())})})},resize:function(){e.debug("Window resized");y.refreshOnResize&&ft(e.refresh)},load:function(){e.debug("Page finished loading");ft(e.refresh)},scroll:function(){y.throttle?(clearTimeout(e.timer),e.timer=setTimeout(function(){w.triggerHandler("scrollchange"+b,[w.scrollTop()])},y.throttle)):ft(function(){w.triggerHandler("scrollchange"+b,[w.scrollTop()])})},scrollchange:function(n,t){e.checkVisibility(t)}},precache:function(t,r){t instanceof Array||(t=[t]);for(var f=t.length,o=0,s=[],u=i.createElement("img"),e=function(){++o>=t.length&&n.isFunction(r)&&r()};f--;)u=i.createElement("img"),u.onload=e,u.onerror=e,u.src=t[f],s.push(u)},enableCallbacks:function(){e.debug("Allowing callbacks to occur");et=!1},disableCallbacks:function(){e.debug("Disabling all callbacks temporarily");et=!0},should:{trackChanges:function(){return c?(e.debug("One time query, no need to bind events"),!1):(e.debug("Callbacks being attached"),!0)}},setup:{cache:function(){e.cache={occurred:{},screen:{},element:{}}},image:function(){var n=p.data(ht.src);n&&(e.verbose("Lazy loading image",n),y.once=!0,y.observeChanges=!1,y.onOnScreen=function(){e.debug("Image on screen",k);e.precache(n,function(){e.set.image(n,function(){l++;l==v&&y.onAllLoaded.call(this);y.onLoad.call(this)})})})},fixed:function(){e.debug("Setting up fixed");y.once=!1;y.observeChanges=!1;y.initialCheck=!0;y.refreshOnLoad=!0;r.transition||(y.transition=!1);e.create.placeholder();e.debug("Added placeholder",g);y.onTopPassed=function(){e.debug("Element passed, adding fixed position",p);e.show.placeholder();e.set.fixed();y.transition&&void 0!==n.fn.transition&&p.transition(y.transition,y.duration)};y.onTopPassedReverse=function(){e.debug("Element returned to position, removing fixed",p);e.hide.placeholder();e.remove.fixed()}}},create:{placeholder:function(){e.verbose("Creating fixed position placeholder");g=p.clone(!1).css("display","none").addClass(it.placeholder).insertAfter(p)}},show:{placeholder:function(){e.verbose("Showing placeholder");g.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){e.verbose("Hiding placeholder");g.css("display","none").css("visibility","")}},set:{fixed:function(){e.verbose("Setting element to fixed position");p.addClass(it.fixed).css({position:"fixed",top:y.offset+"px",left:"auto",zIndex:y.zIndex});y.onFixed.call(k)},image:function(t,i){if(p.attr("src",t),y.transition)if(void 0!==n.fn.transition){if(p.hasClass(it.visible))return void e.debug("Transition already occurred on this image, skipping animation");p.transition(y.transition,y.duration,i)}else p.fadeIn(y.duration,i);else p.show()}},is:{onScreen:function(){return e.get.elementCalculations().onScreen},offScreen:function(){return e.get.elementCalculations().offScreen},visible:function(){return!(!e.cache||!e.cache.element)&&!(0===e.cache.element.width&&0===e.cache.element.offset.top)},verticallyScrollableContext:function(){var n=w.get(0)!==t&&w.css("overflow-y");return"auto"==n||"scroll"==n},horizontallyScrollableContext:function(){var n=w.get(0)!==t&&w.css("overflow-x");return"auto"==n||"scroll"==n}},refresh:function(){e.debug("Refreshing constants (width/height)");"fixed"==y.type&&e.resetFixed();e.reset();e.save.position();y.checkOnRefresh&&e.checkVisibility();y.onRefresh.call(k)},resetFixed:function(){e.remove.fixed();e.remove.occurred()},reset:function(){e.verbose("Resetting all cached values");n.isPlainObject(e.cache)&&(e.cache.screen={},e.cache.element={})},checkVisibility:function(n){e.verbose("Checking visibility of element",e.cache.element);!et&&e.is.visible()&&(e.save.scroll(n),e.save.calculations(),e.passed(),e.passingReverse(),e.topVisibleReverse(),e.bottomVisibleReverse(),e.topPassedReverse(),e.bottomPassedReverse(),e.onScreen(),e.offScreen(),e.passing(),e.topVisible(),e.bottomVisible(),e.topPassed(),e.bottomPassed(),y.onUpdate&&y.onUpdate.call(k,e.get.elementCalculations()))},passed:function(t,i){var r=e.get.elementCalculations();if(t&&i)y.onPassed[t]=i;else{if(void 0!==t)return e.get.pixelsPassed(t)>r.pixelsPassed;r.passing&&n.each(y.onPassed,function(n,t){r.bottomVisible||r.pixelsPassed>e.get.pixelsPassed(n)?e.execute(t,n):y.once||e.remove.occurred(t)})}},onScreen:function(n){var t=e.get.elementCalculations(),i=n||y.onOnScreen;if(n&&(e.debug("Adding callback for onScreen",n),y.onOnScreen=n),t.onScreen?e.execute(i,"onScreen"):y.once||e.remove.occurred("onScreen"),void 0!==n)return t.onOnScreen},offScreen:function(n){var t=e.get.elementCalculations(),i=n||y.onOffScreen;if(n&&(e.debug("Adding callback for offScreen",n),y.onOffScreen=n),t.offScreen?e.execute(i,"offScreen"):y.once||e.remove.occurred("offScreen"),void 0!==n)return t.onOffScreen},passing:function(n){var t=e.get.elementCalculations(),i=n||y.onPassing;if(n&&(e.debug("Adding callback for passing",n),y.onPassing=n),t.passing?e.execute(i,"passing"):y.once||e.remove.occurred("passing"),void 0!==n)return t.passing},topVisible:function(n){var t=e.get.elementCalculations(),i=n||y.onTopVisible;if(n&&(e.debug("Adding callback for top visible",n),y.onTopVisible=n),t.topVisible?e.execute(i,"topVisible"):y.once||e.remove.occurred("topVisible"),void 0===n)return t.topVisible},bottomVisible:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomVisible;if(n&&(e.debug("Adding callback for bottom visible",n),y.onBottomVisible=n),t.bottomVisible?e.execute(i,"bottomVisible"):y.once||e.remove.occurred("bottomVisible"),void 0===n)return t.bottomVisible},topPassed:function(n){var t=e.get.elementCalculations(),i=n||y.onTopPassed;if(n&&(e.debug("Adding callback for top passed",n),y.onTopPassed=n),t.topPassed?e.execute(i,"topPassed"):y.once||e.remove.occurred("topPassed"),void 0===n)return t.topPassed},bottomPassed:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomPassed;if(n&&(e.debug("Adding callback for bottom passed",n),y.onBottomPassed=n),t.bottomPassed?e.execute(i,"bottomPassed"):y.once||e.remove.occurred("bottomPassed"),void 0===n)return t.bottomPassed},passingReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onPassingReverse;if(n&&(e.debug("Adding callback for passing reverse",n),y.onPassingReverse=n),t.passing?y.once||e.remove.occurred("passingReverse"):e.get.occurred("passing")&&e.execute(i,"passingReverse"),void 0!==n)return!t.passing},topVisibleReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onTopVisibleReverse;if(n&&(e.debug("Adding callback for top visible reverse",n),y.onTopVisibleReverse=n),t.topVisible?y.once||e.remove.occurred("topVisibleReverse"):e.get.occurred("topVisible")&&e.execute(i,"topVisibleReverse"),void 0===n)return!t.topVisible},bottomVisibleReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomVisibleReverse;if(n&&(e.debug("Adding callback for bottom visible reverse",n),y.onBottomVisibleReverse=n),t.bottomVisible?y.once||e.remove.occurred("bottomVisibleReverse"):e.get.occurred("bottomVisible")&&e.execute(i,"bottomVisibleReverse"),void 0===n)return!t.bottomVisible},topPassedReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onTopPassedReverse;if(n&&(e.debug("Adding callback for top passed reverse",n),y.onTopPassedReverse=n),t.topPassed?y.once||e.remove.occurred("topPassedReverse"):e.get.occurred("topPassed")&&e.execute(i,"topPassedReverse"),void 0===n)return!t.onTopPassed},bottomPassedReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomPassedReverse;if(n&&(e.debug("Adding callback for bottom passed reverse",n),y.onBottomPassedReverse=n),t.bottomPassed?y.once||e.remove.occurred("bottomPassedReverse"):e.get.occurred("bottomPassed")&&e.execute(i,"bottomPassedReverse"),void 0===n)return!t.bottomPassed},execute:function(n,t){var i=e.get.elementCalculations(),r=e.get.screenCalculations();n=n||!1;n&&(y.continuous?(e.debug("Callback being called continuously",t,i),n.call(k,i,r)):e.get.occurred(t)||(e.debug("Conditions met",t,i),n.call(k,i,r)));e.save.occurred(t)},remove:{fixed:function(){e.debug("Removing fixed position");p.removeClass(it.fixed).css({position:"",top:"",left:"",zIndex:""});y.onUnfixed.call(k)},placeholder:function(){e.debug("Removing placeholder content");g&&g.remove()},occurred:function(n){if(n){var t=e.cache.occurred;void 0!==t[n]&&t[n]===!0&&(e.debug("Callback can now be called again",n),e.cache.occurred[n]=!1)}else e.cache.occurred={}}},save:{calculations:function(){e.verbose("Saving all calculations necessary to determine positioning");e.save.direction();e.save.screenCalculations();e.save.elementCalculations()},occurred:function(n){n&&(void 0!==e.cache.occurred[n]&&e.cache.occurred[n]===!0||(e.verbose("Saving callback occurred",n),e.cache.occurred[n]=!0))},scroll:function(n){n=n+y.offset||w.scrollTop()+y.offset;e.cache.scroll=n},direction:function(){var t,i=e.get.scroll(),n=e.get.lastScroll();return t=i>n&&n?"down":i<n&&n?"up":"static",e.cache.direction=t,e.cache.direction},elementPosition:function(){var n=e.cache.element,t=e.get.screenSize();return e.verbose("Saving element position"),n.fits=n.height<t.height,n.offset=p.offset(),n.width=p.outerWidth(),n.height=p.outerHeight(),e.is.verticallyScrollableContext()&&(n.offset.top+=w.scrollTop()-w.offset().top),e.is.horizontallyScrollableContext()&&(n.offset.left+=w.scrollLeft-w.offset().left),e.cache.element=n,n},elementCalculations:function(){var t=e.get.screenCalculations(),n=e.get.elementPosition();return y.includeMargin?(n.margin={},n.margin.top=parseInt(p.css("margin-top"),10),n.margin.bottom=parseInt(p.css("margin-bottom"),10),n.top=n.offset.top-n.margin.top,n.bottom=n.offset.top+n.height+n.margin.bottom):(n.top=n.offset.top,n.bottom=n.offset.top+n.height),n.topPassed=t.top>=n.top,n.bottomPassed=t.top>=n.bottom,n.topVisible=t.bottom>=n.top&&!n.bottomPassed,n.bottomVisible=t.bottom>=n.bottom&&!n.topPassed,n.pixelsPassed=0,n.percentagePassed=0,n.onScreen=n.topVisible&&!n.bottomPassed,n.passing=n.topPassed&&!n.bottomPassed,n.offScreen=!n.onScreen,n.passing&&(n.pixelsPassed=t.top-n.top,n.percentagePassed=(t.top-n.top)/n.height),e.cache.element=n,e.verbose("Updated element calculations",n),n},screenCalculations:function(){var n=e.get.scroll();return e.save.direction(),e.cache.screen.top=n,e.cache.screen.bottom=n+e.cache.screen.height,e.cache.screen},screenSize:function(){e.verbose("Saving window position");e.cache.screen={height:w.height()}},position:function(){e.save.screenSize();e.save.elementPosition()}},get:{pixelsPassed:function(n){var t=e.get.elementCalculations();return n.search("%")>-1?t.height*(parseInt(n,10)/100):parseInt(n,10)},occurred:function(n){return void 0!==e.cache.occurred&&(e.cache.occurred[n]||!1)},direction:function(){return void 0===e.cache.direction&&e.save.direction(),e.cache.direction},elementPosition:function(){return void 0===e.cache.element&&e.save.elementPosition(),e.cache.element},elementCalculations:function(){return void 0===e.cache.element&&e.save.elementCalculations(),e.cache.element},screenCalculations:function(){return void 0===e.cache.screen&&e.save.screenCalculations(),e.cache.screen},screenSize:function(){return void 0===e.cache.screen&&e.save.screenSize(),e.cache.screen},scroll:function(){return void 0===e.cache.scroll&&e.save.scroll(),e.cache.scroll},lastScroll:function(){return void 0===e.cache.screen?(e.debug("First scroll event, no last scroll could be found"),!1):e.cache.screen.top}},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,y,t);else{if(void 0===i)return y[t];y[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!y.silent&&y.debug&&(y.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,y.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!y.silent&&y.verbose&&y.debug&&(y.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,y.name+":"),e.verbose.apply(console,arguments)))},error:function(){y.silent||(e.error=Function.prototype.bind.call(console.error,console,y.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;y.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=y.name+":",i=0;o=!1;clearTimeout(e.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var h,o,s,f=d;return i=i||a,r=k||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(st.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(r,i):void 0!==o&&(s=o),n.isArray(u)?u.push(s):void 0!==u?u=[u,s]:void 0!==s&&(u=s),o}};c?(void 0===d&&e.initialize(),d.save.scroll(),d.save.calculations(),e.invoke(h)):(void 0!==d&&d.invoke("destroy"),e.initialize())}),void 0!==u?u:this};n.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:t,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"placeholder",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document),function(){"use strict";function t(n){var r=["Webkit","Moz","O","ms"],t,u=document.createElement("div"),i=n in u.style;if(!i)for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<r.length;t+=1)if(i=r[t]+n in u.style,i)break;return i}var n;t("fontFeatureSettings")||(n={home:"&#xe600;",building:"&#xe600;",home2:"&#xe601;",building2:"&#xe601;",home3:"&#xe602;",building3:"&#xe602;",home4:"&#xe603;",building4:"&#xe603;",home5:"&#xe604;",building5:"&#xe604;",home6:"&#xe605;",building6:"&#xe605;",bathtub:"&#xe606;",shower:"&#xe606;",toothbrush:"&#xe607;",hygiene:"&#xe607;",bed:"&#xe608;",hotel:"&#xe608;",couch:"&#xe609;",furniture:"&#xe609;",chair:"&#xe60a;",furniture2:"&#xe60a;",city:"&#xe60b;",building7:"&#xe60b;",apartment:"&#xe60c;",building8:"&#xe60c;",pencil:"&#xe60d;",write:"&#xe60d;",pencil2:"&#xe60e;",write2:"&#xe60e;",pen:"&#xe60f;",write3:"&#xe60f;",pencil3:"&#xe610;",write4:"&#xe610;",eraser:"&#xe611;",rubber:"&#xe611;",pencil4:"&#xe612;",write5:"&#xe612;",pencil5:"&#xe613;",write6:"&#xe613;",feather:"&#xe614;",write7:"&#xe614;",feather2:"&#xe615;",write8:"&#xe615;",feather3:"&#xe616;",write9:"&#xe616;",pen2:"&#xe617;",write10:"&#xe617;","pen-add":"&#xe618;","pen-remove":"&#xe619;",vector:"&#xe61a;",bezier:"&#xe61a;",pen3:"&#xe61b;",write11:"&#xe61b;",blog:"&#xe61c;",write12:"&#xe61c;",brush:"&#xe61d;",paint:"&#xe61d;",brush2:"&#xe61e;",paint2:"&#xe61e;",spray:"&#xe61f;",paint3:"&#xe61f;","paint-roller":"&#xe620;",paint4:"&#xe620;",stamp:"&#xe621;","rubber-stamp":"&#xe621;",tape:"&#xe622;",adhesive:"&#xe622;","desk-tape":"&#xe623;",adhesive2:"&#xe623;",texture:"&#xe624;",design:"&#xe624;","eye-dropper":"&#xe625;","color-picker":"&#xe625;",palette:"&#xe626;",design2:"&#xe626;","color-sampler":"&#xe627;",design3:"&#xe627;",bucket:"&#xe628;",paint5:"&#xe628;",gradient:"&#xe629;",gradient2:"&#xe62a;","magic-wand":"&#xe62b;",tool:"&#xe62b;",magnet:"&#xe62c;",attract:"&#xe62c;","pencil-ruler":"&#xe62d;",design4:"&#xe62d;","pencil-ruler2":"&#xe62e;",design5:"&#xe62e;",compass:"&#xe62f;",tool2:"&#xe62f;",aim:"&#xe630;",target:"&#xe630;",gun:"&#xe631;",weapon:"&#xe631;",bottle:"&#xe632;",water:"&#xe632;",drop:"&#xe633;",droplet:"&#xe633;","drop-crossed":"&#xe634;",droplet2:"&#xe634;",drop2:"&#xe635;",droplet3:"&#xe635;",snow:"&#xe636;",winter:"&#xe636;",snow2:"&#xe637;",winter2:"&#xe637;",fire:"&#xe638;",flame:"&#xe638;",lighter:"&#xe639;",fire2:"&#xe639;",knife:"&#xe63a;",tool3:"&#xe63a;",dagger:"&#xe63b;",weapon2:"&#xe63b;",tissue:"&#xe63c;",napkin:"&#xe63c;","toilet-paper":"&#xe63d;",toilet:"&#xe63d;",poop:"&#xe63e;",toilet2:"&#xe63e;",umbrella:"&#xe63f;",rain:"&#xe63f;",umbrella2:"&#xe640;",rain2:"&#xe640;",rain3:"&#xe641;",weather:"&#xe641;",tornado:"&#xe642;",weather2:"&#xe642;",wind:"&#xe643;",weather3:"&#xe643;",fan:"&#xe644;",cooling:"&#xe644;",contrast:"&#xe645;","sun-small":"&#xe646;",brightness:"&#xe646;",sun:"&#xe647;",brightness2:"&#xe647;",sun2:"&#xe648;","brightness-auto":"&#xe648;",moon:"&#xe649;",night:"&#xe649;",cloud:"&#xe64a;",weather4:"&#xe64a;","cloud-upload":"&#xe64b;",cloud2:"&#xe64b;","cloud-download":"&#xe64c;",cloud3:"&#xe64c;","cloud-rain":"&#xe64d;",weather5:"&#xe64d;","cloud-hailstones":"&#xe64e;",weather6:"&#xe64e;","cloud-snow":"&#xe64f;",weather7:"&#xe64f;","cloud-windy":"&#xe650;",weather8:"&#xe650;","sun-wind":"&#xe651;",weather9:"&#xe651;","cloud-fog":"&#xe652;",weather10:"&#xe652;","cloud-sun":"&#xe653;",weather11:"&#xe653;","cloud-lightning":"&#xe654;",weather12:"&#xe654;","cloud-sync":"&#xe655;",cloud4:"&#xe655;","cloud-lock":"&#xe656;",cloud5:"&#xe656;","cloud-gear":"&#xe657;",cloud6:"&#xe657;","cloud-alert":"&#xe658;",cloud7:"&#xe658;","cloud-check":"&#xe659;",cloud8:"&#xe659;","cloud-cross":"&#xe65a;",cloud9:"&#xe65a;","cloud-crossed":"&#xe65b;",cloud10:"&#xe65b;","cloud-database":"&#xe65c;",cloud11:"&#xe65c;",database:"&#xe65d;",storage:"&#xe65d;","database-add":"&#xe65e;",database2:"&#xe65e;","database-remove":"&#xe65f;",database3:"&#xe65f;","database-lock":"&#xe660;",database4:"&#xe660;","database-refresh":"&#xe661;",database5:"&#xe661;","database-check":"&#xe662;",database6:"&#xe662;","database-history":"&#xe663;",database7:"&#xe663;","database-upload":"&#xe664;",database8:"&#xe664;","database-download":"&#xe665;",database9:"&#xe665;",server:"&#xe666;",hosting:"&#xe666;",shield:"&#xe667;",security:"&#xe667;","shield-check":"&#xe668;",shield2:"&#xe668;","shield-alert":"&#xe669;",shield3:"&#xe669;","shield-cross":"&#xe66a;",shield4:"&#xe66a;",lock:"&#xe66b;",privacy:"&#xe66b;","rotation-lock":"&#xe66c;","screen-lock":"&#xe66c;",unlock:"&#xe66d;",lock2:"&#xe66d;",key:"&#xe66e;",unlock2:"&#xe66e;","key-hole":"&#xe66f;",lock3:"&#xe66f;","toggle-off":"&#xe670;",toggle:"&#xe670;","toggle-on":"&#xe671;",toggle2:"&#xe671;",cog:"&#xe672;",gear:"&#xe672;",cog2:"&#xe673;",gear2:"&#xe673;",wrench:"&#xe674;",tool4:"&#xe674;",screwdriver:"&#xe675;",tool5:"&#xe675;","hammer-wrench":"&#xe676;",tool6:"&#xe676;",hammer:"&#xe677;",tool7:"&#xe677;",saw:"&#xe678;",tool8:"&#xe678;",axe:"&#xe679;",tool9:"&#xe679;",axe2:"&#xe67a;",tool10:"&#xe67a;",shovel:"&#xe67b;",tool11:"&#xe67b;",pickaxe:"&#xe67c;",tool12:"&#xe67c;",factory:"&#xe67d;",build:"&#xe67d;",factory2:"&#xe67e;",build2:"&#xe67e;",recycle:"&#xe67f;",trash:"&#xe680;",bin:"&#xe680;",trash2:"&#xe681;",bin2:"&#xe681;",trash3:"&#xe682;",bin3:"&#xe682;",broom:"&#xe683;",sweep:"&#xe683;",game:"&#xe684;",retro:"&#xe684;",gamepad:"&#xe685;",game2:"&#xe685;",joystick:"&#xe686;",game3:"&#xe686;",dice:"&#xe687;",game4:"&#xe687;",spades:"&#xe688;",cards:"&#xe688;",diamonds:"&#xe689;",cards2:"&#xe689;",clubs:"&#xe68a;",cards3:"&#xe68a;",hearts:"&#xe68b;",cards4:"&#xe68b;",heart:"&#xe68c;",love:"&#xe68c;",star:"&#xe68d;",rating:"&#xe68d;","star-half":"&#xe68e;",rating2:"&#xe68e;","star-empty":"&#xe68f;",rating3:"&#xe68f;",flag:"&#xe690;",report:"&#xe690;",flag2:"&#xe691;",report2:"&#xe691;",flag3:"&#xe692;",report3:"&#xe692;","mailbox-full":"&#xe693;",mailbox:"&#xe693;","mailbox-empty":"&#xe694;",mailbox2:"&#xe694;","at-sign":"&#xe695;",mail:"&#xe695;",envelope:"&#xe696;",mail2:"&#xe696;","envelope-open":"&#xe697;",mail3:"&#xe697;",paperclip:"&#xe698;",attachment:"&#xe698;","paper-plane":"&#xe699;",mail4:"&#xe699;",reply:"&#xe69a;",left:"&#xe69a;","reply-all":"&#xe69b;",left2:"&#xe69b;",inbox:"&#xe69c;",drawer:"&#xe69c;",inbox2:"&#xe69d;",drawer2:"&#xe69d;",outbox:"&#xe69e;",drawer3:"&#xe69e;",box:"&#xe69f;",storage2:"&#xe69f;",archive:"&#xe6a0;",drawer4:"&#xe6a0;",archive2:"&#xe6a1;",drawer5:"&#xe6a1;",drawers:"&#xe6a2;",drawer6:"&#xe6a2;",drawers2:"&#xe6a3;",drawer7:"&#xe6a3;",drawers3:"&#xe6a4;",drawer8:"&#xe6a4;",eye:"&#xe6a5;",vision:"&#xe6a5;","eye-crossed":"&#xe6a6;",eye2:"&#xe6a6;","eye-plus":"&#xe6a7;",eye3:"&#xe6a7;","eye-minus":"&#xe6a8;",eye4:"&#xe6a8;",binoculars:"&#xe6a9;",lookup:"&#xe6a9;",binoculars2:"&#xe6aa;",lookup2:"&#xe6aa;",hdd:"&#xe6ab;",storage3:"&#xe6ab;","hdd-down":"&#xe6ac;",hdd2:"&#xe6ac;","hdd-up":"&#xe6ad;",hdd3:"&#xe6ad;","floppy-disk":"&#xe6ae;",storage4:"&#xe6ae;",disc:"&#xe6af;",storage5:"&#xe6af;",tape2:"&#xe6b0;",storage6:"&#xe6b0;",printer:"&#xe6b1;",print:"&#xe6b1;",shredder:"&#xe6b2;",remove:"&#xe6b2;","file-empty":"&#xe6b3;",file:"&#xe6b3;","file-add":"&#xe6b4;",file2:"&#xe6b4;","file-check":"&#xe6b5;",file3:"&#xe6b5;","file-lock":"&#xe6b6;",file4:"&#xe6b6;",files:"&#xe6b7;",stack:"&#xe6b7;",copy:"&#xe6b8;",files2:"&#xe6b8;",compare:"&#xe6b9;",diff:"&#xe6b9;",folder:"&#xe6ba;",directory:"&#xe6ba;","folder-search":"&#xe6bb;",folder2:"&#xe6bb;","folder-plus":"&#xe6bc;",folder3:"&#xe6bc;","folder-minus":"&#xe6bd;",folder4:"&#xe6bd;","folder-download":"&#xe6be;",folder5:"&#xe6be;","folder-upload":"&#xe6bf;",folder6:"&#xe6bf;","folder-star":"&#xe6c0;",folder7:"&#xe6c0;","folder-heart":"&#xe6c1;",folder8:"&#xe6c1;","folder-user":"&#xe6c2;",folder9:"&#xe6c2;","folder-shared":"&#xe6c3;",folder10:"&#xe6c3;","folder-music":"&#xe6c4;",folder11:"&#xe6c4;","folder-picture":"&#xe6c5;",folder12:"&#xe6c5;","folder-film":"&#xe6c6;",folder13:"&#xe6c6;",scissors:"&#xe6c7;",tool13:"&#xe6c7;",paste:"&#xe6c8;",clipboard:"&#xe6c8;","clipboard-empty":"&#xe6c9;",clipboard2:"&#xe6c9;","clipboard-pencil":"&#xe6ca;",clipboard3:"&#xe6ca;","clipboard-text":"&#xe6cb;",clipboard4:"&#xe6cb;","clipboard-check":"&#xe6cc;",clipboard5:"&#xe6cc;","clipboard-down":"&#xe6cd;",clipboard6:"&#xe6cd;","clipboard-left":"&#xe6ce;",clipboard7:"&#xe6ce;","clipboard-alert":"&#xe6cf;",clipboard8:"&#xe6cf;","clipboard-user":"&#xe6d0;",clipboard9:"&#xe6d0;",register:"&#xe6d1;",signature:"&#xe6d1;",enter:"&#xe6d2;",door:"&#xe6d2;",exit:"&#xe6d3;",door2:"&#xe6d3;",papers:"&#xe6d4;",stack2:"&#xe6d4;",news:"&#xe6d5;",newspaper:"&#xe6d5;",reading:"&#xe6d6;",library:"&#xe6d6;",typewriter:"&#xe6d7;",typing:"&#xe6d7;",document:"&#xe6d8;",file5:"&#xe6d8;",document2:"&#xe6d9;",file6:"&#xe6d9;","graduation-hat":"&#xe6da;",education:"&#xe6da;",license:"&#xe6db;",certificate:"&#xe6db;",license2:"&#xe6dc;",certificate2:"&#xe6dc;","medal-empty":"&#xe6dd;",medal:"&#xe6dd;","medal-first":"&#xe6de;",medal2:"&#xe6de;","medal-second":"&#xe6df;",medal3:"&#xe6df;","medal-third":"&#xe6e0;",medal4:"&#xe6e0;",podium:"&#xe6e1;",standings:"&#xe6e1;",trophy:"&#xe6e2;",cup:"&#xe6e2;",trophy2:"&#xe6e3;",cup2:"&#xe6e3;","music-note":"&#xe6e4;",music:"&#xe6e4;","music-note2":"&#xe6e5;",music2:"&#xe6e5;","music-note3":"&#xe6e6;",music3:"&#xe6e6;",playlist:"&#xe6e7;","playlist-add":"&#xe6e8;",guitar:"&#xe6e9;",music4:"&#xe6e9;",trumpet:"&#xe6ea;",music5:"&#xe6ea;",album:"&#xe6eb;",music6:"&#xe6eb;",shuffle:"&#xe6ec;",randomize:"&#xe6ec;","repeat-one":"&#xe6ed;",loop:"&#xe6ed;",repeat:"&#xe6ee;",loop2:"&#xe6ee;",headphones:"&#xe6ef;",music7:"&#xe6ef;",headset:"&#xe6f0;",headphones2:"&#xe6f0;",loudspeaker:"&#xe6f1;",music8:"&#xe6f1;",equalizer:"&#xe6f2;",settings:"&#xe6f2;",theater:"&#xe6f3;",drama:"&#xe6f3;","3d-glasses":"&#xe6f4;",glasses:"&#xe6f4;",ticket:"&#xe6f5;",theater2:"&#xe6f5;",presentation:"&#xe6f6;",board:"&#xe6f6;",play:"&#xe6f7;",video:"&#xe6f7;","film-play":"&#xe6f8;",video2:"&#xe6f8;","clapboard-play":"&#xe6f9;",video3:"&#xe6f9;",media:"&#xe6fa;","film-picture-music":"&#xe6fa;",film:"&#xe6fb;",video4:"&#xe6fb;",film2:"&#xe6fc;",photo:"&#xe6fc;",surveillance:"&#xe6fd;","security-camera":"&#xe6fd;",surveillance2:"&#xe6fe;","security-camera2":"&#xe6fe;",camera:"&#xe6ff;",video5:"&#xe6ff;","camera-crossed":"&#xe700;",video6:"&#xe700;","camera-play":"&#xe701;",video7:"&#xe701;","time-lapse":"&#xe702;",video8:"&#xe702;",record:"&#xe703;",video9:"&#xe703;",camera2:"&#xe704;",photo2:"&#xe704;","camera-flip":"&#xe705;",panorama:"&#xe706;",photo3:"&#xe706;","time-lapse2":"&#xe707;",photo4:"&#xe707;",shutter:"&#xe708;",camera3:"&#xe708;",shutter2:"&#xe709;","face-detection":"&#xe70a;",flare:"&#xe70b;",convex:"&#xe70c;",concave:"&#xe70d;",picture:"&#xe70e;",photo5:"&#xe70e;",picture2:"&#xe70f;",photo6:"&#xe70f;",picture3:"&#xe710;",photo7:"&#xe710;",pictures:"&#xe711;",photo8:"&#xe711;",book:"&#xe712;",read:"&#xe712;","audio-book":"&#xe713;",book2:"&#xe713;",book3:"&#xe714;",read2:"&#xe714;",bookmark:"&#xe715;",book4:"&#xe715;",bookmark2:"&#xe716;",ribbon:"&#xe716;",label:"&#xe717;",library2:"&#xe718;",book5:"&#xe718;",library3:"&#xe719;",building9:"&#xe719;",contacts:"&#xe71a;",book6:"&#xe71a;",profile:"&#xe71b;",card:"&#xe71b;",portrait:"&#xe71c;",photo9:"&#xe71c;",portrait2:"&#xe71d;",photo10:"&#xe71d;",user:"&#xe71e;",persona:"&#xe71e;","user-plus":"&#xe71f;",user2:"&#xe71f;","user-minus":"&#xe720;",user3:"&#xe720;","user-lock":"&#xe721;",user4:"&#xe721;",users:"&#xe722;",group:"&#xe722;",users2:"&#xe723;",group2:"&#xe723;","users-plus":"&#xe724;",group3:"&#xe724;","users-minus":"&#xe725;",group4:"&#xe725;","group-work":"&#xe726;",group5:"&#xe726;",woman:"&#xe727;",female:"&#xe727;",man:"&#xe728;",male:"&#xe728;",baby:"&#xe729;",girl:"&#xe729;",baby2:"&#xe72a;",boy:"&#xe72a;",baby3:"&#xe72b;",newborn:"&#xe72b;","baby-bottle":"&#xe72c;",baby4:"&#xe72c;",walk:"&#xe72d;",human:"&#xe72d;","hand-waving":"&#xe72e;",human2:"&#xe72e;",jump:"&#xe72f;",human3:"&#xe72f;",run:"&#xe730;",human4:"&#xe730;",woman2:"&#xe731;",female2:"&#xe731;",man2:"&#xe732;",male2:"&#xe732;","man-woman":"&#xe733;",gender:"&#xe733;",height:"&#xe734;",weight:"&#xe735;",scale:"&#xe735;",scale2:"&#xe736;",button:"&#xe737;",clothing:"&#xe737;","bow-tie":"&#xe738;",clothing2:"&#xe738;",tie:"&#xe739;",clothing3:"&#xe739;",socks:"&#xe73a;",clothing4:"&#xe73a;",shoe:"&#xe73b;",clothing5:"&#xe73b;",shoes:"&#xe73c;",clothing6:"&#xe73c;",hat:"&#xe73d;",clothing7:"&#xe73d;",pants:"&#xe73e;",clothing8:"&#xe73e;",shorts:"&#xe73f;",clothing9:"&#xe73f;","flip-flops":"&#xe740;",clothing10:"&#xe740;",shirt:"&#xe741;",clothing11:"&#xe741;",hanger:"&#xe742;",clothing12:"&#xe742;",laundry:"&#xe743;","washing-machine":"&#xe743;",store:"&#xe744;",shop:"&#xe744;",haircut:"&#xe745;","scissors-comb":"&#xe745;","store-24":"&#xe746;",shop2:"&#xe746;",barcode:"&#xe747;",price:"&#xe747;",barcode2:"&#xe748;",price2:"&#xe748;",barcode3:"&#xe749;",price3:"&#xe749;",cashier:"&#xe74a;",checkout:"&#xe74a;",bag:"&#xe74b;",shop3:"&#xe74b;",bag2:"&#xe74c;",shop4:"&#xe74c;",cart:"&#xe74d;",shop5:"&#xe74d;","cart-empty":"&#xe74e;",shop6:"&#xe74e;","cart-full":"&#xe74f;",shop7:"&#xe74f;","cart-plus":"&#xe750;",shop8:"&#xe750;","cart-plus2":"&#xe751;",shop9:"&#xe751;","cart-add":"&#xe752;",shop10:"&#xe752;","cart-remove":"&#xe753;",shop11:"&#xe753;","cart-exchange":"&#xe754;",shop12:"&#xe754;",tag:"&#xe755;",price4:"&#xe755;",tags:"&#xe756;",price5:"&#xe756;",receipt:"&#xe757;",price6:"&#xe757;",wallet:"&#xe758;",money:"&#xe758;","credit-card":"&#xe759;",money2:"&#xe759;","cash-dollar":"&#xe75a;",money3:"&#xe75a;","cash-euro":"&#xe75b;",money4:"&#xe75b;","cash-pound":"&#xe75c;",money5:"&#xe75c;","cash-yen":"&#xe75d;",money6:"&#xe75d;","bag-dollar":"&#xe75e;",money7:"&#xe75e;","bag-euro":"&#xe75f;",money8:"&#xe75f;","bag-pound":"&#xe760;",money9:"&#xe760;","bag-yen":"&#xe761;",money10:"&#xe761;","coin-dollar":"&#xe762;",money11:"&#xe762;","coin-euro":"&#xe763;",money12:"&#xe763;","coin-pound":"&#xe764;",money13:"&#xe764;","coin-yen":"&#xe765;",money14:"&#xe765;",calculator:"&#xe766;",arithmetic:"&#xe766;",calculator2:"&#xe767;",arithmetic2:"&#xe767;",abacus:"&#xe768;",arithmetic3:"&#xe768;",vault:"&#xe769;",safe:"&#xe769;",telephone:"&#xe76a;",phone:"&#xe76a;","phone-lock":"&#xe76b;",phone2:"&#xe76b;","phone-wave":"&#xe76c;",phone3:"&#xe76c;","phone-pause":"&#xe76d;",phone4:"&#xe76d;","phone-outgoing":"&#xe76e;",phone5:"&#xe76e;","phone-incoming":"&#xe76f;",phone6:"&#xe76f;","phone-in-out":"&#xe770;",phone7:"&#xe770;","phone-error":"&#xe771;",phone8:"&#xe771;","phone-sip":"&#xe772;",phone9:"&#xe772;","phone-plus":"&#xe773;",phone10:"&#xe773;","phone-minus":"&#xe774;",phone11:"&#xe774;",voicemail:"&#xe775;",message:"&#xe775;",dial:"&#xe776;","dial-pad":"&#xe776;",telephone2:"&#xe777;",phone12:"&#xe777;",pushpin:"&#xe778;",pin:"&#xe778;",pushpin2:"&#xe779;",pin2:"&#xe779;","map-marker":"&#xe77a;",pin3:"&#xe77a;","map-marker-user":"&#xe77b;",pin4:"&#xe77b;","map-marker-down":"&#xe77c;",pin5:"&#xe77c;","map-marker-check":"&#xe77d;",pin6:"&#xe77d;","map-marker-crossed":"&#xe77e;",pin7:"&#xe77e;",radar:"&#xe77f;",scanner:"&#xe77f;",compass2:"&#xe780;",guide:"&#xe780;",map:"&#xe781;",guide2:"&#xe781;",map2:"&#xe782;",guide3:"&#xe782;",location:"&#xe783;",compass3:"&#xe783;","road-sign":"&#xe784;",directions:"&#xe784;","calendar-empty":"&#xe785;",calendar:"&#xe785;","calendar-check":"&#xe786;",calendar2:"&#xe786;","calendar-cross":"&#xe787;",calendar3:"&#xe787;","calendar-31":"&#xe788;",calendar4:"&#xe788;","calendar-full":"&#xe789;",calendar5:"&#xe789;","calendar-insert":"&#xe78a;",calendar6:"&#xe78a;","calendar-text":"&#xe78b;",calendar7:"&#xe78b;","calendar-user":"&#xe78c;",calendar8:"&#xe78c;",mouse:"&#xe78d;",click:"&#xe78d;","mouse-left":"&#xe78e;",click2:"&#xe78e;","mouse-right":"&#xe78f;",click3:"&#xe78f;","mouse-both":"&#xe790;",click4:"&#xe790;",keyboard:"&#xe791;",type:"&#xe791;","keyboard-up":"&#xe792;",keyboard2:"&#xe792;","keyboard-down":"&#xe793;",keyboard3:"&#xe793;","delete":"&#xe794;",backspace:"&#xe794;","spell-check":"&#xe795;",spelling:"&#xe795;",escape:"&#xe796;",enter2:"&#xe797;",screen:"&#xe798;",monitor:"&#xe798;","aspect-ratio":"&#xe799;",screen2:"&#xe799;",signal:"&#xe79a;",bars:"&#xe79a;","signal-lock":"&#xe79b;",signal2:"&#xe79b;","signal-80":"&#xe79c;",signal3:"&#xe79c;","signal-60":"&#xe79d;",signal4:"&#xe79d;","signal-40":"&#xe79e;",signal5:"&#xe79e;","signal-20":"&#xe79f;",signal6:"&#xe79f;","signal-0":"&#xe7a0;",signal7:"&#xe7a0;","signal-blocked":"&#xe7a1;",signal8:"&#xe7a1;",sim:"&#xe7a2;","sim-card":"&#xe7a2;","flash-memory":"&#xe7a3;","usb-drive":"&#xe7a4;","flash-memory2":"&#xe7a4;",phone13:"&#xe7a5;",mobile:"&#xe7a5;",smartphone:"&#xe7a6;",mobile2:"&#xe7a6;","smartphone-notification":"&#xe7a7;",mobile3:"&#xe7a7;","smartphone-vibration":"&#xe7a8;",mobile4:"&#xe7a8;","smartphone-embed":"&#xe7a9;",mobile5:"&#xe7a9;","smartphone-waves":"&#xe7aa;",mobile6:"&#xe7aa;",tablet:"&#xe7ab;",mobile7:"&#xe7ab;",tablet2:"&#xe7ac;",mobile8:"&#xe7ac;",laptop:"&#xe7ad;",computer:"&#xe7ad;","laptop-phone":"&#xe7ae;",devices:"&#xe7ae;",desktop:"&#xe7af;",computer2:"&#xe7af;",launch:"&#xe7b0;",share:"&#xe7b0;","new-tab":"&#xe7b1;","window-tab":"&#xe7b1;",window:"&#xe7b2;",program:"&#xe7b2;",cable:"&#xe7b3;",plug:"&#xe7b3;",cable2:"&#xe7b4;",plug2:"&#xe7b4;",tv:"&#xe7b5;",television:"&#xe7b5;",radio:"&#xe7b6;",music9:"&#xe7b6;","remote-control":"&#xe7b7;","power-switch":"&#xe7b8;",toggle3:"&#xe7b8;",power:"&#xe7b9;",lightning:"&#xe7b9;","power-crossed":"&#xe7ba;",lightning2:"&#xe7ba;","flash-auto":"&#xe7bb;",lightning3:"&#xe7bb;",lamp:"&#xe7bc;",light:"&#xe7bc;",flashlight:"&#xe7bd;",light2:"&#xe7bd;",lampshade:"&#xe7be;",light3:"&#xe7be;",cord:"&#xe7bf;",plug3:"&#xe7bf;",outlet:"&#xe7c0;",socket:"&#xe7c0;","battery-power":"&#xe7c1;",battery:"&#xe7c1;","battery-empty":"&#xe7c2;",battery2:"&#xe7c2;","battery-alert":"&#xe7c3;",battery3:"&#xe7c3;","battery-error":"&#xe7c4;",battery4:"&#xe7c4;","battery-low1":"&#xe7c5;",battery5:"&#xe7c5;","battery-low2":"&#xe7c6;",battery6:"&#xe7c6;","battery-low3":"&#xe7c7;",battery7:"&#xe7c7;","battery-mid1":"&#xe7c8;",battery8:"&#xe7c8;","battery-mid2":"&#xe7c9;",battery9:"&#xe7c9;","battery-mid3":"&#xe7ca;",battery10:"&#xe7ca;","battery-full":"&#xe7cb;",battery11:"&#xe7cb;","battery-charging":"&#xe7cc;",battery12:"&#xe7cc;","battery-charging2":"&#xe7cd;",battery13:"&#xe7cd;","battery-charging3":"&#xe7ce;",battery14:"&#xe7ce;","battery-charging4":"&#xe7cf;",battery15:"&#xe7cf;","battery-charging5":"&#xe7d0;",battery16:"&#xe7d0;","battery-charging6":"&#xe7d1;",battery17:"&#xe7d1;","battery-charging7":"&#xe7d2;",battery18:"&#xe7d2;",chip:"&#xe7d3;",cpu:"&#xe7d3;","chip-x64":"&#xe7d4;",cpu2:"&#xe7d4;","chip-x86":"&#xe7d5;",cpu3:"&#xe7d5;",bubble:"&#xe7d6;",chat:"&#xe7d6;",bubbles:"&#xe7d7;",chat2:"&#xe7d7;","bubble-dots":"&#xe7d8;",chat3:"&#xe7d8;","bubble-alert":"&#xe7d9;",chat4:"&#xe7d9;","bubble-question":"&#xe7da;",chat5:"&#xe7da;","bubble-text":"&#xe7db;",chat6:"&#xe7db;","bubble-pencil":"&#xe7dc;",chat7:"&#xe7dc;","bubble-picture":"&#xe7dd;",chat8:"&#xe7dd;","bubble-video":"&#xe7de;",chat9:"&#xe7de;","bubble-user":"&#xe7df;",chat10:"&#xe7df;","bubble-quote":"&#xe7e0;",chat11:"&#xe7e0;","bubble-heart":"&#xe7e1;",chat12:"&#xe7e1;","bubble-emoticon":"&#xe7e2;",chat13:"&#xe7e2;","bubble-attachment":"&#xe7e3;",chat14:"&#xe7e3;","phone-bubble":"&#xe7e4;",phone14:"&#xe7e4;","quote-open":"&#xe7e5;","quote-close":"&#xe7e6;",dna:"&#xe7e7;",gene:"&#xe7e7;","heart-pulse":"&#xe7e8;",health:"&#xe7e8;",pulse:"&#xe7e9;",health2:"&#xe7e9;",syringe:"&#xe7ea;",health3:"&#xe7ea;",pills:"&#xe7eb;",health4:"&#xe7eb;","first-aid":"&#xe7ec;",health5:"&#xe7ec;",lifebuoy:"&#xe7ed;",help:"&#xe7ed;",bandage:"&#xe7ee;",health6:"&#xe7ee;",bandages:"&#xe7ef;",health7:"&#xe7ef;",thermometer:"&#xe7f0;",temperature:"&#xe7f0;",microscope:"&#xe7f1;",lab:"&#xe7f1;",brain:"&#xe7f2;",mind:"&#xe7f2;",beaker:"&#xe7f3;",lab2:"&#xe7f3;",skull:"&#xe7f4;",skeleton:"&#xe7f4;",bone:"&#xe7f5;",dog:"&#xe7f5;",construction:"&#xe7f6;","road-sign2":"&#xe7f6;","construction-cone":"&#xe7f7;",construction2:"&#xe7f7;","pie-chart":"&#xe7f8;",chart:"&#xe7f8;","pie-chart2":"&#xe7f9;",chart2:"&#xe7f9;",graph:"&#xe7fa;",chart3:"&#xe7fa;","chart-growth":"&#xe7fb;",chart4:"&#xe7fb;","chart-bars":"&#xe7fc;",chart5:"&#xe7fc;","chart-settings":"&#xe7fd;",chart6:"&#xe7fd;",cake:"&#xe7fe;",birthday:"&#xe7fe;",gift:"&#xe7ff;",birthday2:"&#xe7ff;",balloon:"&#xe800;",birthday3:"&#xe800;",rank:"&#xe801;",chevron:"&#xe801;",rank2:"&#xe802;",chevron2:"&#xe802;",rank3:"&#xe803;",chevron3:"&#xe803;",crown:"&#xe804;",king:"&#xe804;",lotus:"&#xe805;",flower:"&#xe805;",diamond:"&#xe806;",jewelry:"&#xe806;",diamond2:"&#xe807;",jewelry2:"&#xe807;",diamond3:"&#xe808;",jewelry3:"&#xe808;",diamond4:"&#xe809;",jewelry4:"&#xe809;",linearicons:"&#xe80a;",perxis:"&#xe80a;",Linearicons:"&#xe80a;",teacup:"&#xe80b;",drink:"&#xe80b;",teapot:"&#xe80c;",drink2:"&#xe80c;",glass:"&#xe80d;",drink3:"&#xe80d;",bottle2:"&#xe80e;",drink4:"&#xe80e;","glass-cocktail":"&#xe80f;",drink5:"&#xe80f;",glass2:"&#xe810;",drink6:"&#xe810;",dinner:"&#xe811;",food:"&#xe811;",dinner2:"&#xe812;",food2:"&#xe812;",chef:"&#xe813;",food3:"&#xe813;",scale3:"&#xe814;",weight2:"&#xe814;",egg:"&#xe815;",food4:"&#xe815;",egg2:"&#xe816;",food5:"&#xe816;",eggs:"&#xe817;",food6:"&#xe817;",platter:"&#xe818;",food7:"&#xe818;",steak:"&#xe819;",food8:"&#xe819;",hamburger:"&#xe81a;",food9:"&#xe81a;",hotdog:"&#xe81b;",food10:"&#xe81b;",pizza:"&#xe81c;",food11:"&#xe81c;",sausage:"&#xe81d;",food12:"&#xe81d;",chicken:"&#xe81e;",food13:"&#xe81e;",fish:"&#xe81f;",food14:"&#xe81f;",carrot:"&#xe820;",food15:"&#xe820;",cheese:"&#xe821;",food16:"&#xe821;",bread:"&#xe822;",food17:"&#xe822;","ice-cream":"&#xe823;",dessert:"&#xe823;","ice-cream2":"&#xe824;",dessert2:"&#xe824;",candy:"&#xe825;",dessert3:"&#xe825;",lollipop:"&#xe826;",dessert4:"&#xe826;","coffee-bean":"&#xe827;",coffee:"&#xe827;","coffee-cup":"&#xe828;",drink7:"&#xe828;",cherry:"&#xe829;",fruit:"&#xe829;",grapes:"&#xe82a;",fruit2:"&#xe82a;",citrus:"&#xe82b;",fruit3:"&#xe82b;",apple:"&#xe82c;",fruit4:"&#xe82c;",leaf:"&#xe82d;",nature:"&#xe82d;",landscape:"&#xe82e;",nature2:"&#xe82e;","pine-tree":"&#xe82f;",nature3:"&#xe82f;",tree:"&#xe830;",nature4:"&#xe830;",cactus:"&#xe831;",nature5:"&#xe831;",paw:"&#xe832;",pet:"&#xe832;",footprint:"&#xe833;",steps:"&#xe833;","speed-slow":"&#xe834;",gauge:"&#xe834;","speed-medium":"&#xe835;",gauge2:"&#xe835;","speed-fast":"&#xe836;",gauge3:"&#xe836;",rocket:"&#xe837;",spaceship:"&#xe837;",hammer2:"&#xe838;",justice:"&#xe838;",balance:"&#xe839;",justice2:"&#xe839;",briefcase:"&#xe83a;",suitcase:"&#xe83a;","luggage-weight":"&#xe83b;",scale4:"&#xe83b;",dolly:"&#xe83c;",luggage:"&#xe83c;",plane:"&#xe83d;",flight:"&#xe83d;","plane-crossed":"&#xe83e;",flight2:"&#xe83e;",helicopter:"&#xe83f;",flight3:"&#xe83f;","traffic-lights":"&#xe840;","traffic-signals":"&#xe840;",siren:"&#xe841;",alarm:"&#xe841;",road:"&#xe842;",travel:"&#xe842;",engine:"&#xe843;",motor:"&#xe843;","oil-pressure":"&#xe844;","coolant-temperature":"&#xe845;",thermometer2:"&#xe845;","car-battery":"&#xe846;",battery19:"&#xe846;",gas:"&#xe847;",fuel:"&#xe847;",gallon:"&#xe848;",gas2:"&#xe848;",transmission:"&#xe849;","stick-shift":"&#xe849;",car:"&#xe84a;",travel2:"&#xe84a;","car-wash":"&#xe84b;","car-wash2":"&#xe84c;",bus:"&#xe84d;",travel3:"&#xe84d;",bus2:"&#xe84e;",travel4:"&#xe84e;",car2:"&#xe84f;",travel5:"&#xe84f;",parking:"&#xe850;","car-lock":"&#xe851;",taxi:"&#xe852;",travel6:"&#xe852;","car-siren":"&#xe853;",police:"&#xe853;","car-wash3":"&#xe854;","car-wash4":"&#xe855;",ambulance:"&#xe856;",health8:"&#xe856;",truck:"&#xe857;",delivery:"&#xe857;",trailer:"&#xe858;",delivery2:"&#xe858;","scale-truck":"&#xe859;",weighbridge:"&#xe859;",train:"&#xe85a;",travel7:"&#xe85a;",ship:"&#xe85b;",travel8:"&#xe85b;",ship2:"&#xe85c;",travel9:"&#xe85c;",anchor:"&#xe85d;",sailing:"&#xe85d;",boat:"&#xe85e;",travel10:"&#xe85e;",bicycle:"&#xe85f;",travel11:"&#xe85f;",bicycle2:"&#xe860;",exercise:"&#xe860;",dumbbell:"&#xe861;",exercise2:"&#xe861;","bench-press":"&#xe862;",exercise3:"&#xe862;",swim:"&#xe863;",exercise4:"&#xe863;",football:"&#xe864;",sports:"&#xe864;","baseball-bat":"&#xe865;",sports2:"&#xe865;",baseball:"&#xe866;",sports3:"&#xe866;",tennis:"&#xe867;",sports4:"&#xe867;",tennis2:"&#xe868;",sports5:"&#xe868;","ping-pong":"&#xe869;",sports6:"&#xe869;",hockey:"&#xe86a;",sports7:"&#xe86a;","8ball":"&#xe86b;",sports8:"&#xe86b;",bowling:"&#xe86c;",sports9:"&#xe86c;","bowling-pins":"&#xe86d;",sports10:"&#xe86d;",golf:"&#xe86e;",sports11:"&#xe86e;",golf2:"&#xe86f;",sports12:"&#xe86f;",archery:"&#xe870;",sports13:"&#xe870;",slingshot:"&#xe871;",weapon3:"&#xe871;",soccer:"&#xe872;",sports14:"&#xe872;",basketball:"&#xe873;",sports15:"&#xe873;",cube:"&#xe874;",geometry:"&#xe874;","3d-rotate":"&#xe875;",puzzle:"&#xe876;",piece:"&#xe876;",glasses2:"&#xe877;",vision2:"&#xe877;",glasses3:"&#xe878;",vision3:"&#xe878;",accessibility:"&#xe879;",wheelchair:"&#xe87a;",disabled:"&#xe87a;",wall:"&#xe87b;",bricks:"&#xe87b;",fence:"&#xe87c;",wall2:"&#xe87c;",wall3:"&#xe87d;",bricks2:"&#xe87d;",icons:"&#xe87e;",grid:"&#xe87e;","resize-handle":"&#xe87f;",icons2:"&#xe880;",grid2:"&#xe880;",select:"&#xe881;",cursor:"&#xe881;",select2:"&#xe882;",cursor2:"&#xe882;","site-map":"&#xe883;",tree2:"&#xe883;",earth:"&#xe884;",globe:"&#xe884;","earth-lock":"&#xe885;","internet-lock":"&#xe885;",network:"&#xe886;",globe2:"&#xe886;","network-lock":"&#xe887;","internet-lock2":"&#xe887;",planet:"&#xe888;",globe3:"&#xe888;",happy:"&#xe889;",emoticon:"&#xe889;",smile:"&#xe88a;",emoticon2:"&#xe88a;",grin:"&#xe88b;",emoticon3:"&#xe88b;",tongue:"&#xe88c;",emoticon4:"&#xe88c;",sad:"&#xe88d;",emoticon5:"&#xe88d;",wink:"&#xe88e;",emoticon6:"&#xe88e;",dream:"&#xe88f;",emoticon7:"&#xe88f;",shocked:"&#xe890;",emoticon8:"&#xe890;",shocked2:"&#xe891;",emoticon9:"&#xe891;",tongue2:"&#xe892;",emoticon10:"&#xe892;",neutral:"&#xe893;",emoticon11:"&#xe893;","happy-grin":"&#xe894;",emoticon12:"&#xe894;",cool:"&#xe895;",emoticon13:"&#xe895;",mad:"&#xe896;",emoticon14:"&#xe896;","grin-evil":"&#xe897;",emoticon15:"&#xe897;",evil:"&#xe898;",emoticon16:"&#xe898;",wow:"&#xe899;",emoticon17:"&#xe899;",annoyed:"&#xe89a;",emoticon18:"&#xe89a;",wondering:"&#xe89b;",emoticon19:"&#xe89b;",confused:"&#xe89c;",emoticon20:"&#xe89c;",zipped:"&#xe89d;",emoticon21:"&#xe89d;",grumpy:"&#xe89e;",emoticon22:"&#xe89e;",mustache:"&#xe89f;",emoticon23:"&#xe89f;","tombstone-hipster":"&#xe8a0;",rip:"&#xe8a0;",tombstone:"&#xe8a1;",rip2:"&#xe8a1;",ghost:"&#xe8a2;",spirit:"&#xe8a2;","ghost-hipster":"&#xe8a3;",spirit2:"&#xe8a3;",halloween:"&#xe8a4;",pumpkin:"&#xe8a4;",christmas:"&#xe8a5;",tree3:"&#xe8a5;","easter-egg":"&#xe8a6;",egg3:"&#xe8a6;",mustache2:"&#xe8a7;",hipster:"&#xe8a7;","mustache-glasses":"&#xe8a8;",hipster2:"&#xe8a8;",pipe:"&#xe8a9;",hipster3:"&#xe8a9;",alarm2:"&#xe8aa;",bell:"&#xe8aa;","alarm-add":"&#xe8ab;",bell2:"&#xe8ab;","alarm-snooze":"&#xe8ac;",bell3:"&#xe8ac;","alarm-ringing":"&#xe8ad;",bell4:"&#xe8ad;",bullhorn:"&#xe8ae;",megaphone:"&#xe8ae;",hearing:"&#xe8af;",health9:"&#xe8af;","volume-high":"&#xe8b0;",speaker:"&#xe8b0;","volume-medium":"&#xe8b1;",speaker2:"&#xe8b1;","volume-low":"&#xe8b2;",speaker3:"&#xe8b2;",volume:"&#xe8b3;",speaker4:"&#xe8b3;",mute:"&#xe8b4;",speaker5:"&#xe8b4;",lan:"&#xe8b5;",network2:"&#xe8b5;",lan2:"&#xe8b6;",network3:"&#xe8b6;",wifi:"&#xe8b7;",connection:"&#xe8b7;","wifi-lock":"&#xe8b8;",connection2:"&#xe8b8;","wifi-blocked":"&#xe8b9;",connection3:"&#xe8b9;","wifi-mid":"&#xe8ba;",connection4:"&#xe8ba;","wifi-low":"&#xe8bb;",connection5:"&#xe8bb;","wifi-low2":"&#xe8bc;",connection6:"&#xe8bc;","wifi-alert":"&#xe8bd;",connection7:"&#xe8bd;","wifi-alert-mid":"&#xe8be;",connection8:"&#xe8be;","wifi-alert-low":"&#xe8bf;",connection9:"&#xe8bf;","wifi-alert-low2":"&#xe8c0;",connection10:"&#xe8c0;",stream:"&#xe8c1;",broadcast:"&#xe8c1;","stream-check":"&#xe8c2;",stream2:"&#xe8c2;","stream-error":"&#xe8c3;",stream3:"&#xe8c3;","stream-alert":"&#xe8c4;",stream4:"&#xe8c4;",communication:"&#xe8c5;",waves:"&#xe8c5;","communication-crossed":"&#xe8c6;",waves2:"&#xe8c6;",broadcast2:"&#xe8c7;",waves3:"&#xe8c7;",antenna:"&#xe8c8;",waves4:"&#xe8c8;",satellite:"&#xe8c9;",gps:"&#xe8c9;",satellite2:"&#xe8ca;",antenna2:"&#xe8ca;",mic:"&#xe8cb;",voice:"&#xe8cb;","mic-mute":"&#xe8cc;",voice2:"&#xe8cc;",mic2:"&#xe8cd;",voice3:"&#xe8cd;",spotlights:"&#xe8ce;",featured:"&#xe8ce;",hourglass:"&#xe8cf;",loading:"&#xe8cf;",loading2:"&#xe8d0;",spinner:"&#xe8d0;",loading3:"&#xe8d1;",spinner2:"&#xe8d1;",loading4:"&#xe8d2;",spinner3:"&#xe8d2;",refresh:"&#xe8d3;",spinner4:"&#xe8d3;",refresh2:"&#xe8d4;",spinner5:"&#xe8d4;",undo:"&#xe8d5;",left3:"&#xe8d5;",redo:"&#xe8d6;",right:"&#xe8d6;",jump2:"&#xe8d7;","step-over":"&#xe8d7;",undo2:"&#xe8d8;",ccw:"&#xe8d8;",redo2:"&#xe8d9;",cw:"&#xe8d9;",sync:"&#xe8da;",spinner6:"&#xe8da;","repeat-one2":"&#xe8db;","sync-crossed":"&#xe8dc;",sync2:"&#xe8dd;",spinner7:"&#xe8dd;","repeat-one3":"&#xe8de;","sync-crossed2":"&#xe8df;","return":"&#xe8e0;",backward:"&#xe8e0;",return2:"&#xe8e1;",backward2:"&#xe8e1;",refund:"&#xe8e2;",return3:"&#xe8e2;",history:"&#xe8e3;",archive3:"&#xe8e3;",history2:"&#xe8e4;",archive4:"&#xe8e4;","self-timer":"&#xe8e5;",clock:"&#xe8e6;",time:"&#xe8e6;",clock2:"&#xe8e7;",time2:"&#xe8e7;",clock3:"&#xe8e8;",time3:"&#xe8e8;",watch:"&#xe8e9;",time4:"&#xe8e9;",alarm3:"&#xe8ea;",time5:"&#xe8ea;","alarm-add2":"&#xe8eb;",time6:"&#xe8eb;","alarm-remove":"&#xe8ec;",time7:"&#xe8ec;","alarm-check":"&#xe8ed;",time8:"&#xe8ed;","alarm-error":"&#xe8ee;",time9:"&#xe8ee;",timer:"&#xe8ef;",time10:"&#xe8ef;","timer-crossed":"&#xe8f0;",time11:"&#xe8f0;",timer2:"&#xe8f1;",time12:"&#xe8f1;","timer-crossed2":"&#xe8f2;",time13:"&#xe8f2;",download:"&#xe8f3;",down:"&#xe8f3;",upload:"&#xe8f4;",up:"&#xe8f4;",download2:"&#xe8f5;",down2:"&#xe8f5;",upload2:"&#xe8f6;",up2:"&#xe8f6;","enter-up":"&#xe8f7;",up3:"&#xe8f7;","enter-down":"&#xe8f8;",down3:"&#xe8f8;","enter-left":"&#xe8f9;",left4:"&#xe8f9;","enter-right":"&#xe8fa;",right2:"&#xe8fa;","exit-up":"&#xe8fb;",up4:"&#xe8fb;","exit-down":"&#xe8fc;",down4:"&#xe8fc;","exit-left":"&#xe8fd;",left5:"&#xe8fd;","exit-right":"&#xe8fe;",right3:"&#xe8fe;","enter-up2":"&#xe8ff;",up5:"&#xe8ff;","enter-down2":"&#xe900;",down5:"&#xe900;","enter-vertical":"&#xe901;","enter-left2":"&#xe902;",left6:"&#xe902;","enter-right2":"&#xe903;",right4:"&#xe903;","enter-horizontal":"&#xe904;",arrow:"&#xe904;","exit-up2":"&#xe905;",up6:"&#xe905;","exit-down2":"&#xe906;",down6:"&#xe906;","exit-left2":"&#xe907;",left7:"&#xe907;","exit-right2":"&#xe908;",right5:"&#xe908;",cli:"&#xe909;",console:"&#xe909;",bug:"&#xe90a;",insect:"&#xe90a;",code:"&#xe90b;",embed:"&#xe90b;","file-code":"&#xe90c;",file7:"&#xe90c;","file-image":"&#xe90d;",file8:"&#xe90d;","file-zip":"&#xe90e;",file9:"&#xe90e;","file-audio":"&#xe90f;",file10:"&#xe90f;","file-video":"&#xe910;",file11:"&#xe910;","file-preview":"&#xe911;",file12:"&#xe911;","file-charts":"&#xe912;",file13:"&#xe912;","file-stats":"&#xe913;",file14:"&#xe913;","file-spreadsheet":"&#xe914;",file15:"&#xe914;",link:"&#xe915;",url:"&#xe915;",unlink:"&#xe916;",url2:"&#xe916;",link2:"&#xe917;",url3:"&#xe917;",unlink2:"&#xe918;",url4:"&#xe918;","thumbs-up":"&#xe919;",like:"&#xe919;","thumbs-down":"&#xe91a;",dislike:"&#xe91a;","thumbs-up2":"&#xe91b;",like2:"&#xe91b;","thumbs-down2":"&#xe91c;",dislike2:"&#xe91c;","thumbs-up3":"&#xe91d;",like3:"&#xe91d;","thumbs-down3":"&#xe91e;",dislike3:"&#xe91e;",share2:"&#xe91f;","export":"&#xe91f;",share3:"&#xe920;",social:"&#xe920;",share4:"&#xe921;",social2:"&#xe921;",magnifier:"&#xe922;",search:"&#xe922;","file-search":"&#xe923;",file16:"&#xe923;","find-replace":"&#xe924;",search2:"&#xe924;","zoom-in":"&#xe925;",magnifier2:"&#xe925;","zoom-out":"&#xe926;",magnifier3:"&#xe926;",loupe:"&#xe927;",magnifier4:"&#xe927;","loupe-zoom-in":"&#xe928;",magnifier5:"&#xe928;","loupe-zoom-out":"&#xe929;",magnifier6:"&#xe929;",cross:"&#xe92a;",cancel:"&#xe92a;",menu:"&#xe92b;",options:"&#xe92b;",list:"&#xe92c;",options2:"&#xe92c;",list2:"&#xe92d;",options3:"&#xe92d;",list3:"&#xe92e;",options4:"&#xe92e;",menu2:"&#xe92f;",options5:"&#xe92f;",list4:"&#xe930;",options6:"&#xe930;",menu3:"&#xe931;",dropdown:"&#xe931;",exclamation:"&#xe932;",alert:"&#xe932;",question:"&#xe933;",help2:"&#xe933;",check:"&#xe934;",checkmark:"&#xe934;",cross2:"&#xe935;",cancel2:"&#xe935;",plus:"&#xe936;",add:"&#xe936;",minus:"&#xe937;",subtract:"&#xe937;",percent:"&#xe938;",discount:"&#xe938;","chevron-up":"&#xe939;",up7:"&#xe939;","chevron-down":"&#xe93a;",down7:"&#xe93a;","chevron-left":"&#xe93b;",left8:"&#xe93b;","chevron-right":"&#xe93c;",right6:"&#xe93c;","chevrons-expand-vertical":"&#xe93d;",chevrons:"&#xe93d;","chevrons-expand-horizontal":"&#xe93e;",chevrons2:"&#xe93e;","chevrons-contract-vertical":"&#xe93f;",chevrons3:"&#xe93f;","chevrons-contract-horizontal":"&#xe940;",chevrons4:"&#xe940;","arrow-up":"&#xe941;",up8:"&#xe941;","arrow-down":"&#xe942;",down8:"&#xe942;","arrow-left":"&#xe943;",left9:"&#xe943;","arrow-right":"&#xe944;",right7:"&#xe944;","arrow-up-right":"&#xe945;","up-right":"&#xe945;","arrows-merge":"&#xe946;",up9:"&#xe946;","arrows-split":"&#xe947;",up10:"&#xe947;","arrow-divert":"&#xe948;",reflect:"&#xe948;","arrow-return":"&#xe949;",left10:"&#xe949;",expand:"&#xe94a;",maximize:"&#xe94a;",contract:"&#xe94b;",minimize:"&#xe94b;",expand2:"&#xe94c;",maximize2:"&#xe94c;",contract2:"&#xe94d;",minimize2:"&#xe94d;",move:"&#xe94e;",arrows:"&#xe94e;",tab:"&#xe94f;","switch":"&#xe94f;","arrow-wave":"&#xe950;",expand3:"&#xe951;",maximize3:"&#xe951;",expand4:"&#xe952;",maximize4:"&#xe952;",contract3:"&#xe953;",minimize3:"&#xe953;",notification:"&#xe954;",alert2:"&#xe954;",warning:"&#xe955;",alert3:"&#xe955;","notification-circle":"&#xe956;",alert4:"&#xe956;","question-circle":"&#xe957;",help3:"&#xe957;","menu-circle":"&#xe958;",menu4:"&#xe958;","checkmark-circle":"&#xe959;",checkmark2:"&#xe959;","cross-circle":"&#xe95a;",cross3:"&#xe95a;","plus-circle":"&#xe95b;",plus2:"&#xe95b;","circle-minus":"&#xe95c;",minus2:"&#xe95c;","percent-circle":"&#xe95d;",discount2:"&#xe95d;","arrow-up-circle":"&#xe95e;",up11:"&#xe95e;","arrow-down-circle":"&#xe95f;",down9:"&#xe95f;","arrow-left-circle":"&#xe960;",left11:"&#xe960;","arrow-right-circle":"&#xe961;",right8:"&#xe961;","chevron-up-circle":"&#xe962;",up12:"&#xe962;","chevron-down-circle":"&#xe963;",down10:"&#xe963;","chevron-left-circle":"&#xe964;",left12:"&#xe964;","chevron-right-circle":"&#xe965;",right9:"&#xe965;","backward-circle":"&#xe966;",backward3:"&#xe966;","first-circle":"&#xe967;",first:"&#xe967;","previous-circle":"&#xe968;",previous:"&#xe968;","stop-circle":"&#xe969;",stop:"&#xe969;","play-circle":"&#xe96a;",play2:"&#xe96a;","pause-circle":"&#xe96b;",pause:"&#xe96b;","next-circle":"&#xe96c;",next:"&#xe96c;","last-circle":"&#xe96d;",last:"&#xe96d;","forward-circle":"&#xe96e;",forward:"&#xe96e;","eject-circle":"&#xe96f;",eject:"&#xe96f;",crop:"&#xe970;",cut:"&#xe970;","frame-expand":"&#xe971;",maximize5:"&#xe971;","frame-contract":"&#xe972;",minimize4:"&#xe972;",focus:"&#xe973;",target2:"&#xe973;",transform:"&#xe974;","bounding-box":"&#xe974;",grid3:"&#xe975;",squares:"&#xe975;","grid-crossed":"&#xe976;",squares2:"&#xe976;",layers:"&#xe977;",stack3:"&#xe977;","layers-crossed":"&#xe978;",stack4:"&#xe978;",toggle4:"&#xe979;",fold:"&#xe979;",rulers:"&#xe97a;",tool14:"&#xe97a;",ruler:"&#xe97b;",tool15:"&#xe97b;",funnel:"&#xe97c;",filter:"&#xe97c;","flip-horizontal":"&#xe97d;",mirror:"&#xe97d;","flip-vertical":"&#xe97e;",mirror2:"&#xe97e;","flip-horizontal2":"&#xe97f;",mirror3:"&#xe97f;","flip-vertical2":"&#xe980;",mirror4:"&#xe980;",angle:"&#xe981;",measurement:"&#xe981;",angle2:"&#xe982;",measurement2:"&#xe982;",subtract2:"&#xe983;","boolean-operation":"&#xe983;",combine:"&#xe984;","boolean-operation2":"&#xe984;",intersect:"&#xe985;","boolean-operation3":"&#xe985;",exclude:"&#xe986;","boolean-operation4":"&#xe986;","align-center-vertical":"&#xe987;",align:"&#xe987;","align-right":"&#xe988;",align2:"&#xe988;","align-bottom":"&#xe989;",align3:"&#xe989;","align-left":"&#xe98a;",align4:"&#xe98a;","align-center-horizontal":"&#xe98b;",align5:"&#xe98b;","align-top":"&#xe98c;",align6:"&#xe98c;",square:"&#xe98d;",geometry2:"&#xe98d;","plus-square":"&#xe98e;",add2:"&#xe98e;","minus-square":"&#xe98f;",subtract3:"&#xe98f;","percent-square":"&#xe990;",discount3:"&#xe990;","arrow-up-square":"&#xe991;",up13:"&#xe991;","arrow-down-square":"&#xe992;",down11:"&#xe992;","arrow-left-square":"&#xe993;",left13:"&#xe993;","arrow-right-square":"&#xe994;",right10:"&#xe994;","chevron-up-square":"&#xe995;",up14:"&#xe995;","chevron-down-square":"&#xe996;",down12:"&#xe996;","chevron-left-square":"&#xe997;",left14:"&#xe997;","chevron-right-square":"&#xe998;",right11:"&#xe998;","check-square":"&#xe999;",checkmark3:"&#xe999;","cross-square":"&#xe99a;",cross4:"&#xe99a;","menu-square":"&#xe99b;",menu5:"&#xe99b;",prohibited:"&#xe99c;",forbidden:"&#xe99c;",circle:"&#xe99d;",geometry3:"&#xe99d;","radio-button":"&#xe99e;",ligature:"&#xe99f;",typography:"&#xe99f;","text-format":"&#xe9a0;",typography2:"&#xe9a0;","text-format-remove":"&#xe9a1;",typography3:"&#xe9a1;","text-size":"&#xe9a2;",typography4:"&#xe9a2;",bold:"&#xe9a3;",typography5:"&#xe9a3;",italic:"&#xe9a4;",typography6:"&#xe9a4;",underline:"&#xe9a5;",typography7:"&#xe9a5;",strikethrough:"&#xe9a6;",typography8:"&#xe9a6;",highlight:"&#xe9a7;","magic-marker":"&#xe9a7;","text-align-left":"&#xe9a8;",typography9:"&#xe9a8;","text-align-center":"&#xe9a9;",typography10:"&#xe9a9;","text-align-right":"&#xe9aa;",typography11:"&#xe9aa;","text-align-justify":"&#xe9ab;",typography12:"&#xe9ab;","line-spacing":"&#xe9ac;",typography13:"&#xe9ac;","indent-increase":"&#xe9ad;",typography14:"&#xe9ad;","indent-decrease":"&#xe9ae;",typography15:"&#xe9ae;","text-wrap":"&#xe9af;",typography16:"&#xe9af;",pilcrow:"&#xe9b0;",typography17:"&#xe9b0;","direction-ltr":"&#xe9b1;",typography18:"&#xe9b1;","direction-rtl":"&#xe9b2;",typography19:"&#xe9b2;","page-break":"&#xe9b3;","page-break2":"&#xe9b4;","sort-alpha-asc":"&#xe9b5;",sort:"&#xe9b5;","sort-alpha-desc":"&#xe9b6;",sort2:"&#xe9b6;","sort-numeric-asc":"&#xe9b7;",sort3:"&#xe9b7;","sort-numeric-desc":"&#xe9b8;",sort4:"&#xe9b8;","sort-amount-asc":"&#xe9b9;",sort5:"&#xe9b9;","sort-amount-desc":"&#xe9ba;",sort6:"&#xe9ba;","sort-time-asc":"&#xe9bb;",sort7:"&#xe9bb;","sort-time-desc":"&#xe9bc;",sort8:"&#xe9bc;",sigma:"&#xe9bd;",symbols:"&#xe9bd;","pencil-line":"&#xe9be;","border-color":"&#xe9be;",hand:"&#xe9bf;",drag:"&#xe9bf;","pointer-up":"&#xe9c0;",hand2:"&#xe9c0;","pointer-right":"&#xe9c1;",hand3:"&#xe9c1;","pointer-down":"&#xe9c2;",hand4:"&#xe9c2;","pointer-left":"&#xe9c3;",hand5:"&#xe9c3;","finger-tap":"&#xe9c4;",hand6:"&#xe9c4;","fingers-tap":"&#xe9c5;",hand7:"&#xe9c5;",reminder:"&#xe9c6;",hand8:"&#xe9c6;","fingers-crossed":"&#xe9c7;",hand9:"&#xe9c7;","fingers-victory":"&#xe9c8;",hand10:"&#xe9c8;","gesture-zoom":"&#xe9c9;",hand11:"&#xe9c9;","gesture-pinch":"&#xe9ca;",hand12:"&#xe9ca;","fingers-scroll-horizontal":"&#xe9cb;",hand13:"&#xe9cb;","fingers-scroll-vertical":"&#xe9cc;",hand14:"&#xe9cc;","fingers-scroll-left":"&#xe9cd;",hand15:"&#xe9cd;","fingers-scroll-right":"&#xe9ce;",hand16:"&#xe9ce;",hand17:"&#xe9cf;",drag2:"&#xe9cf;","pointer-up2":"&#xe9d0;",hand18:"&#xe9d0;","pointer-right2":"&#xe9d1;",hand19:"&#xe9d1;","pointer-down2":"&#xe9d2;",hand20:"&#xe9d2;","pointer-left2":"&#xe9d3;",hand21:"&#xe9d3;","finger-tap2":"&#xe9d4;",hand22:"&#xe9d4;","fingers-tap2":"&#xe9d5;",hand23:"&#xe9d5;",reminder2:"&#xe9d6;",hand24:"&#xe9d6;","gesture-zoom2":"&#xe9d7;",hand25:"&#xe9d7;","gesture-pinch2":"&#xe9d8;",hand26:"&#xe9d8;","fingers-scroll-horizontal2":"&#xe9d9;",hand27:"&#xe9d9;","fingers-scroll-vertical2":"&#xe9da;",hand28:"&#xe9da;","fingers-scroll-left2":"&#xe9db;",hand29:"&#xe9db;","fingers-scroll-right2":"&#xe9dc;",hand30:"&#xe9dc;","fingers-scroll-vertical3":"&#xe9dd;",hand31:"&#xe9dd;","border-style":"&#xe9de;",border:"&#xe9de;","border-all":"&#xe9df;",border2:"&#xe9df;","border-outer":"&#xe9e0;",border3:"&#xe9e0;","border-inner":"&#xe9e1;",border4:"&#xe9e1;","border-top":"&#xe9e2;",border5:"&#xe9e2;","border-horizontal":"&#xe9e3;",border6:"&#xe9e3;","border-bottom":"&#xe9e4;",border7:"&#xe9e4;","border-left":"&#xe9e5;",border8:"&#xe9e5;","border-vertical":"&#xe9e6;",border9:"&#xe9e6;","border-right":"&#xe9e7;",border10:"&#xe9e7;","border-none":"&#xe9e8;",border11:"&#xe9e8;",ellipsis:"&#xe9e9;",dots:"&#xe9e9;","0":0},delete n["0"],window.icomoonLiga=function(t){var e,r,f,i,u;for(t=t||document.getElementsByTagName("*"),t.length||(t=[t]),f=0;;f+=1){if(r=t[f],!r)break;if(e=r.className,/icon-/.test(e)&&(i=r.innerHTML,i&&i.length>1)){for(u in n)n.hasOwnProperty(u)&&(i=i.replace(new RegExp(u,"g"),n[u]));r.innerHTML=i}}},window.icomoonLiga())}()